@font-face {
  font-family: 'PopularScript';
  src: url('../fonts/PopularScript.woff2') format('woff2'),
       url('../fonts/PopularScript.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'AGUniversity';
  src: url('../fonts/AGUniversityCyrRomanNormal.woff2') format('woff2'),
       url('../fonts/AGUniversityCyrRomanNormal.woff') format('woff');
  font-display: swap;
}

:root {
  --milk: #f7f3ed;
  --cream: #fffaf6;
  --white: #ffffff;
  --text: #25211d;
  --muted: #746b60;
  --gold: #b08a49;
  --gold-soft: #d9c49a;
  --gold-dark: #826631;
  --line: rgba(176, 138, 73, .22);
  --shadow: 0 22px 55px rgba(63, 49, 32, .10);

  --heading: 'Cormorant Garamond', Georgia, serif;
  --body: 'Inter', Arial, sans-serif;
  --script: 'PopularScript', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--milk);
  line-height: 1.65;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

a { color: inherit; text-decoration: none; transition: .25s ease; }
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ============================================
   HEADER
============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 246, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity .25s ease;
}

.header-logo:hover { opacity: .85; }

.menu-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.site-menu a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 13px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: #5f5850;
}

.site-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: .25s ease;
}

.site-menu a:hover,
.site-menu a.active { color: var(--text); }

.site-menu a:hover::after,
.site-menu a.active::after { width: 100%; }

.phone-link {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.phone-link:hover { color: var(--gold); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(176, 138, 73, .35);
  border-radius: 50%;
  background: var(--cream);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  color: #000;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 10px;
  background: #000;
  transition: .25s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   SCROLLING BANNER
============================================ */

.scrolling-banner {
  background: var(--cream);
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  display: flex;
}

.scrolling-text-wrapper {
  display: flex;
  animation: scrollLeft 60s linear infinite;
  will-change: transform;
}

.scrolling-block {
  white-space: nowrap;
  padding-right: 60px;
}

.scrolling-block span {
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============================================
   HERO INDEX
============================================ */

.kz-hero-section {
  min-height: calc(100vh - 80px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  overflow: hidden;
  padding: 0 80px;
}

.kz-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

.kz-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .12));
  z-index: 2;
}

.kz-content-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateY(-38px);
}

.kz-main-logo {
  max-width: 600px;
  width: 100%;
  margin-bottom: 26px;
}

.kz-hero-subtitle {
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, .92);
}

.kz-hero-subtitle-main {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: .25em;
  text-transform: uppercase;
}

.kz-hero-subtitle-main::before {
  content: '';
  display: inline-block;
  width: 100px;
  height: 1px;
  margin-right: 20px;
  vertical-align: middle;
  background: linear-gradient(90deg, #d4a356, transparent);
}

.kz-hero-subtitle-small {
  display: block;
  font-size: clamp(14px, 1.8vw, 20px);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}

.kz-hero-events {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 163, 86, .52);
  font-family: var(--body);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .86);
}

.kz-hero-events i {
  display: inline-block;
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d4a356;
  box-shadow: 0 0 12px rgba(212, 163, 86, .8);
}

.kz-scroll-arrow {
  position: absolute;
  left: 80px;
  bottom: 34px;
  width: 34px;
  height: 34px;
  border-right: 2px solid rgba(255, 255, 255, .9);
  border-bottom: 2px solid rgba(255, 255, 255, .9);
  transform: rotate(45deg);
  animation: arrowMove 1.7s ease-in-out infinite;
  z-index: 3;
}

@keyframes arrowMove {
  0%, 100% { transform: rotate(45deg); }
  50% { transform: rotate(45deg) translateY(10px); }
}

/* ============================================
   COMMON SECTIONS
============================================ */

.section { padding: clamp(70px, 8vw, 118px) 0; }
.section-light { background: var(--white); }

.section-kicker {
  display: block;
  margin-bottom: 22px;
  color: var(--gold-dark);
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--heading);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.9;
}

.intro {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro p,
.intro .lead { margin-top: 28px; }

.center-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* Buttons */
.btn,
.price-btn,
.template-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .25s ease;
  border-radius: 2px;
}

.btn:hover,
.price-btn:hover,
.template-btn:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(176, 138, 73, .25);
}

/* ============================================
   BENEFITS
============================================ */

.benefits-layout {
  display: grid;
  grid-template-columns: minmax(300px, 520px) 1fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

.benefits-photo {
  overflow: hidden;
  border-radius: 4px;
  background: #eee2d3;
}

.benefits-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .6s ease;
}

.benefits-photo:hover img { transform: scale(1.03); }

.benefits-kicker {
  margin: 34px 0 40px;
  text-align: left;
}

.benefits-list {
  border-left: 2px solid var(--gold-soft);
  padding-left: 34px;
  display: grid;
  gap: 22px;
}

.benefits-list li {
  padding-left: 6px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
}

.benefits-list li::marker { color: var(--gold-dark); }

/* ============================================
   FAQ
============================================ */

.faq-section {
  padding: clamp(70px, 8vw, 118px) 0;
  background: var(--milk);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item { border-bottom: 1px solid var(--line); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--heading);
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text);
}

.faq-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  transition: .3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: .3s ease;
}

.faq-icon::before { width: 14px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 14px; }

.faq-item.active .faq-icon {
  border-color: var(--gold);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.faq-answer-inner {
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.faq-answer-inner p { margin-bottom: 12px; }

.domain-example {
  display: inline-block;
  margin: 2px;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(176, 138, 73, .1);
  color: var(--gold-dark);
  font-size: 14px;
}

.domain-example.main {
  background: rgba(176, 138, 73, .15);
  font-weight: 500;
}

.faq-item.active .faq-answer { max-height: 800px; }

/* ============================================
   PAGE HERO
============================================ */

.page-hero {
  padding: clamp(72px, 9vw, 128px) 0 54px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 250, 246, .86), rgba(255, 250, 246, .96)),
    url('../img/glava.jpg') center top / cover no-repeat;
}

.page-hero h1 {
  margin-bottom: 20px;
  font-family: var(--heading);
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

/* ============================================
   CATALOG
============================================ */

.catalog-section {
  position: relative;
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: background-image .6s ease;
}

.catalog-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247, 243, 237, .92);
  z-index: 0;
}

.catalog-section .container {
  position: relative;
  z-index: 1;
  padding-top: 40px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 54px;
}

.tab {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 22px;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  transition: .25s ease;
  border-radius: 999px;
}

.tab.active,
.tab:hover {
  border-color: var(--gold);
  color: var(--text);
  background: var(--cream);
}

.catalog-loader {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Desktop: 4 телефона в ряд */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 52px 34px;
  padding-bottom: 90px;
}

.template-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(24px);
  transition: .45s ease;
}

.template-card.visible {
  opacity: 1;
  transform: none;
}

.template-name {
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 500;
  color: var(--text);
  text-align: center;
  margin-top: 6px;
  margin-bottom: 8px;
  letter-spacing: .05em;
}

.template-price {
  margin-top: 4px;
  font-family: var(--heading);
  font-size: 28px;
  line-height: 1;
}

.empty-message {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 50px 0 90px;
  font-size: 18px;
}

/* ====== Phone mockup ====== */

.phone {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  transition: transform .3s ease;
}

.phone:hover { transform: translateY(-8px); }

.phone-frame {
  background: #111;
  border-radius: 42px;
  padding: 6px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .25);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 9 / 16.7;
  background: #fbf6ee;
}

.poster-img,
.phone-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #fbf6ee;
}

.phone-screen video {
  display: none;
  z-index: 2;
}

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 5;
  width: 88px;
  height: 26px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: none;
  background: rgba(0, 0, 0, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .25s ease;
}

.video-overlay:hover { background: rgba(0, 0, 0, .24); }
.video-overlay.hidden { opacity: 0; pointer-events: none; }

.play-btn {
  width: 60px;
  height: 60px;
  padding: 17px;
  border-radius: 50%;
  fill: #fff;
  background: rgba(255, 255, 255, .25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .55);
  transition: .25s ease;
}

.video-overlay:hover .play-btn {
  transform: scale(1.08);
  background: rgba(255, 255, 255, .38);
}

/* ============================================
   PRICE
============================================ */

.prices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 90px;
}

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 65px rgba(63, 49, 32, .14);
}

.price-card.featured {
  border-color: var(--gold);
  transform: translateY(-12px);
}

.price-card.featured:hover { transform: translateY(-16px); }

.price-card h3 {
  font-family: var(--heading);
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.price-subtitle {
  color: var(--gold-dark);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
}

.price-card ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  color: var(--muted);
}

.price-amount {
  margin-top: auto;
  font-family: var(--heading);
  font-size: 42px;
}

/* ============================================
   FORM
============================================ */

.card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 44px);
  margin-bottom: 90px;
}

.selection-box {
  display: block;
  margin-bottom: 28px;
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: #fbf6ee;
  color: var(--text);
  font-size: 16px;
}

.selection-box strong { color: var(--gold-dark); }

form { display: grid; gap: 24px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
}

.wide { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }

.field label {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4a4239;
}

.field small { color: var(--muted); font-size: 12px; }

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea {
  width: 100%;
  border: 1px solid rgba(176, 138, 73, .26);
  background: #fffaf4;
  padding: 15px 16px;
  color: var(--text);
  outline: none;
  transition: .25s ease;
  border-radius: 2px;
}

textarea { min-height: 120px; resize: vertical; }

input:focus,
textarea:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(176, 138, 73, .08);
}

.helper-box {
  border-left: 2px solid var(--gold-soft);
  padding: 14px 18px;
  background: #fbf6ee;
  color: var(--muted);
}

.blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.chip {
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fffaf4;
  cursor: pointer;
  transition: .25s ease;
  border-radius: 2px;
}

.chip.active,
.chip:hover {
  border-color: var(--gold);
  background: #fbf1e2;
}

.chip input { accent-color: var(--gold); }
.chip strong { display: block; font-size: 14px; }
.chip span { display: block; color: var(--muted); font-size: 12px; }

.block-section { display: grid; gap: 14px; }
.block-text { display: none; }
.block-text.visible { display: grid; gap: 8px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.status { display: none; padding: 16px; border-radius: 2px; }
.status.ok { display: block; background: #edf8ef; color: #246636; }
.status.err { display: block; background: #fff0ef; color: #9b1c1c; }

/* ============================================
   FOOTER
============================================ */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; }

.footer-logo {
  height: 120px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity .25s ease;
}

.footer-logo:hover { opacity: .85; }

.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-socials a {
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 3px;
  transition: .25s ease;
}

.footer-socials a:hover {
  border-color: var(--gold);
  color: var(--text);
  transform: translateY(-1px);
}

.footer-legal {
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 600px;
  text-align: justify;
}

/* ============================================
   ADAPTIVE: LARGE TABLET (1200px)
============================================ */

@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 42px 28px;
  }

  .phone { max-width: 245px; }
}

/* ============================================
   ADAPTIVE: TABLET (980px)
============================================ */

@media (max-width: 980px) {
  .site-nav { min-height: 72px; }
  .header-logo { height: 78px; }

  .kz-hero-section {
    padding: 0 46px;
    min-height: calc(100svh - 72px);
  }

  .kz-bg-image {
    object-position: 72% center;
  }

  .kz-content-wrapper {
    transform: translateY(-56px);
  }

  .kz-main-logo { max-width: 480px; }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin: 0 auto;
    gap: 44px 28px;
    padding-bottom: 90px;
  }

  .phone { max-width: 260px; }

  .benefits-layout,
  .prices-grid,
  .grid-2 { grid-template-columns: 1fr; }

  .benefits-photo {
    max-width: 520px;
    margin: 0 auto;
  }

  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }

  .page-hero { padding: 72px 0 44px; }
  .page-hero p { font-size: 16px; }
}

/* ============================================
   ADAPTIVE: iPad (761px – 980px)
============================================ */

@media (min-width: 761px) and (max-width: 980px) {
  .kz-hero-section {
    padding: 0 34px;
  }

  .kz-bg-image {
    object-position: 72% center;
  }

  .kz-content-wrapper {
    transform: translateY(-110px);
  }

  .kz-main-logo {
    max-width: 560px;
    margin-bottom: 22px;
  }

  .kz-hero-subtitle-main {
    font-size: clamp(28px, 4.8vw, 52px);
    letter-spacing: .26em;
  }

  .kz-hero-subtitle-main::before {
    width: 130px;
    margin-right: 18px;
  }

  .kz-hero-subtitle-small {
    font-size: clamp(16px, 2.4vw, 24px);
    letter-spacing: .15em;
  }

  .kz-hero-events {
    font-size: 13px;
    letter-spacing: .18em;
    margin-top: 20px;
    padding-top: 16px;
  }
}

/* ============================================
   ADAPTIVE: MOBILE (760px)
============================================ */

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1180px); }
  body { overflow-x: hidden; }

  .site-header { background: rgba(255, 250, 246, .97); }

  .site-nav {
    min-height: 66px;
    padding: 8px 0;
    flex-wrap: wrap;
  }

  .header-logo { height: 58px; }
  .menu-toggle { display: flex; }

  /* mobile menu */
  .menu-container,
  nav.site-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 8px;
    padding: 18px 0 20px;
    border-top: 1px solid var(--line);
    background: rgba(255, 250, 246, .98);
  }

  .menu-container.open,
  nav.site-menu.open { display: flex; }

  .menu-container .site-menu {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    list-style: none;
  }

  .site-menu a,
  nav.site-menu a {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: center;
    border-bottom: 1px solid rgba(176, 138, 73, .14);
    font-size: 13px;
    letter-spacing: .2em;
  }

  .site-menu a::after,
  nav.site-menu a::after { display: none; }

  /* номер по центру красиво */
  .phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 17px auto 0;
    padding: 12px 18px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-align: center;
    box-shadow: 0 10px 26px rgba(176, 138, 73, .12);
    white-space: nowrap;
  }

  /* hero mobile */
  .kz-hero-section {
    min-height: calc(100svh - 66px);
    padding: 0 18px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .kz-bg-image { object-position: 72% center; }

  .kz-hero-section::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, .56) 0%,
      rgba(0, 0, 0, .30) 45%,
      rgba(0, 0, 0, .50) 100%
    );
  }

  .kz-content-wrapper {
    width: 100%;
    align-items: center;
    transform: translateY(-66px);
  }

  .kz-main-logo {
    width: min(82vw, 330px);
    max-width: 330px;
    margin-bottom: 20px;
  }

  .kz-hero-subtitle-main {
    font-size: clamp(19px, 6vw, 28px);
    letter-spacing: .17em;
    line-height: 1.35;
  }

  .kz-hero-subtitle-main::before {
    display: block;
    width: 78px;
    margin: 0 auto 14px;
  }

  .kz-hero-subtitle-small {
    margin-top: 4px;
    font-size: clamp(13px, 4vw, 17px);
    letter-spacing: .13em;
  }

  .kz-hero-events {
    justify-content: center;
    gap: 8px 10px;
    max-width: 340px;
    margin: 16px auto 0;
    padding: 15px 10px 0;
    font-size: 11px;
    letter-spacing: .12em;
  }

  .kz-scroll-arrow {
    left: 50%;
    bottom: 30px;
    width: 28px;
    height: 28px;
    transform: translateX(-50%) rotate(45deg);
    animation: arrowMoveMobile 1.7s ease-in-out infinite;
  }

  @keyframes arrowMoveMobile {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(45deg); }
    50% { transform: translateX(-50%) translateY(10px) rotate(45deg); }
  }

  .section { padding: 58px 0; }

  .section-title {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.08;
  }

  .section-kicker { font-size: 11px; letter-spacing: .22em; }
  .lead { font-size: 16px; line-height: 1.8; }

  .center-actions { flex-direction: column; align-items: stretch; }
  .center-actions .btn { width: 100%; }

  /* catalog mobile */
  .catalog-section {
    background-attachment: scroll;
    background-position: center top;
  }

  .catalog-section::before { background: rgba(247, 243, 237, .94); }
  .catalog-section .container { padding-top: 6px; }

  .tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 42px;
    overflow-x: auto;
    padding: 0 0 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar { display: none; }

  .tab {
    flex: 0 0 auto;
    padding: 11px 16px;
    font-size: 11px;
    letter-spacing: .11em;
  }

  /* 1 телефон в ряд на мобильном */
  .catalog-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
    gap: 44px;
    padding-bottom: 70px;
  }

  .template-card { gap: 14px; }
  .phone { max-width: min(84vw, 300px); }

  .phone-frame { padding: 6px; }
  .phone-screen { border-radius: 29px; }
  .phone-island { width: 78px; height: 23px; top: 9px; }

  .template-price { font-size: 26px; }

  /* FAQ mobile */
  .faq-question { padding: 18px 0; font-size: 18px; line-height: 1.35; }
  .faq-icon { width: 32px; height: 32px; }

  /* footer mobile */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-logo { height: 56px; }
  .footer-socials { justify-content: center; }
  .footer-legal { max-width: 100%; text-align: center; }

  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
}

/* ============================================
   ADAPTIVE: SMALL MOBILE (400px)
============================================ */

@media (max-width: 400px) {
  .header-logo { height: 52px; }

  .kz-content-wrapper { transform: translateY(-56px); }
  .kz-main-logo { width: min(84vw, 300px); }

  .kz-hero-events {
    max-width: 300px;
    font-size: 10px;
    letter-spacing: .1em;
  }

  .phone { max-width: min(88vw, 285px); }

  .btn,
  .template-btn,
  .price-btn {
    padding: 12px 18px;
    font-size: 12px;
    letter-spacing: .14em;
  }

  .center-actions { flex-direction: column; align-items: center; }
  .center-actions .btn { width: 100%; max-width: 280px; }
}

/* ============================================
   REDUCED MOTION
============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}