/* =========================================================================
   Витарт — лендинг «Рецессия десны». Чистая вёрстка на flexbox.
   ========================================================================= */

/* ------------------------------- Шрифты -------------------------------- */
@font-face { font-family: "Moula";      src: url("../fonts/Moula-Regular.otf")  format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Moula";      src: url("../fonts/Moula-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Moula Light"; src: url("../fonts/Moula-Light.otf")    format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Bergen Mono"; src: url("../fonts/BergenMono-Regular.otf")  format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bergen Mono"; src: url("../fonts/BergenMono-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }

/* ------------------------------- Токены -------------------------------- */
:root {
  --bg:        #1b2712;
  --bg-2:      #213617;
  --card:      rgba(255,255,255,.045);
  --text:      #ffffff;
  --muted:     rgba(255,255,255,.72);
  --faint:     rgba(255,255,255,.08);
  --line:      rgba(255,255,255,.16);
  --accent:    #00cc97;
  --accent-ink:#0b1c12;
  --stroke:    rgba(255,255,255,.06);

  --pill-green: #00cc97;
  --pill-pink:  #ff759c;
  --pill-yellow:#ffdb59;
  --pill-blue:  #19b3f1;

  --ff-body:  "Moula", "Segoe UI", sans-serif;
  --ff-light: "Moula Light", "Moula", sans-serif;
  --ff-mono:  "Bergen Mono", "Moula", monospace;

  --wrap: 1290px;
  --gap: 24px;
  --radius: 14px;
}

html[data-theme="light"] {
  --bg:        #ffffff;
  --bg-2:      #e7e9df;
  --card:      rgba(20,26,14,.035);
  --text:      #141a0e;
  --muted:     rgba(20,26,14,.72);
  --faint:     rgba(20,26,14,.06);
  --line:      rgba(20,26,14,.16);
  --accent:    #00a97e;
  --accent-ink:#ffffff;
  --stroke:    rgba(20,26,14,.06);
}

/* ------------------------------- Сброс --------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: .3px;
  color: var(--muted);
  background: var(--bg);
  background-image: url("../img/bg/distort-bg.png");
  background-repeat: repeat;
  background-size: 1920px auto;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--ff-mono); font-weight: 600; color: var(--text); line-height: 1.02; }

/* ----------------------------- Утилиты --------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}

.section-head { position: relative; margin-bottom: 46px; }
.section-title { font-size: clamp(38px, 6vw, 70px); letter-spacing: -.02em; }
.section-title + .section-note { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 460px; }

/* гигантский контурный текст-фон */
.bgtext {
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: clamp(70px, 15vw, 200px);
  line-height: .9;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px var(--stroke);
  user-select: none;
  pointer-events: none;
}

/* --------------------------- Кнопки-таблетки --------------------------- */
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 70px; padding: 0 46px;
  border-radius: 100px;
  font-family: var(--ff-mono); font-weight: 600; font-size: 20px;
  letter-spacing: 1px;
  transition: transform .25s ease, filter .25s ease, background .3s ease;
}
.pill-btn:hover { transform: translateY(-3px); filter: brightness(1.05); }
.pill-btn--green { background: var(--accent); color: var(--accent-ink); }
.pill-btn--white { background: var(--text); color: var(--bg); }

/* круглая кнопка со стрелкой */
.circle-btn {
  position: relative;
  width: 172px; height: 172px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 8px;
  font-family: var(--ff-mono); font-weight: 600; font-size: 16px; line-height: 1.25;
  color: var(--text);
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.circle-btn svg { width: 13px; height: 13px; transition: transform .3s ease; }
.circle-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(-4deg); }
.circle-btn:hover svg { transform: translate(3px,-3px); }
.circle-btn .dot { position: absolute; bottom: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--pill-yellow); }

/* ------------------------------- Хэдер --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--faint);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.logo img { height: 30px; width: auto; }
.logo .logo-black { display: none; }
html[data-theme="light"] .logo .logo-white { display: none; }
html[data-theme="light"] .logo .logo-black { display: block; }

.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-family: var(--ff-body); font-weight: 600; font-size: 16px; letter-spacing: 1px;
  color: var(--text); position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent); transition: width .3s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: space-between;
  width: 60px; height: 30px; padding: 0 9px; border-radius: 100px;
  border: 1px solid var(--line);
}
.theme-toggle svg { position: relative; z-index: 2; width: 13px; height: 13px; color: var(--text); }
.theme-toggle .knob {
  position: absolute; top: 50%; left: 3px; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent);
  transform: translate(30px, -50%); transition: transform .3s ease;
}
html[data-theme="light"] .theme-toggle .knob { transform: translate(0, -50%); }

.wa-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25d366; transition: transform .25s ease;
}
.wa-btn:hover { transform: scale(1.08); }
.wa-btn img { width: 22px; height: 22px; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.burger span { width: 18px; height: 2px; background: var(--text); transition: .3s; }

/* ------------------------------- Герой --------------------------------- */
.hero {
  position: relative; padding: 40px 0 0; overflow: hidden;
  background-color: var(--bg-2);
  background-image: url("../img/bg/distort-bg.png");
  background-repeat: repeat; background-size: 1920px auto;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 240px;
  background: url("../img/hero/overlay.png") bottom center / cover no-repeat;
  opacity: .5; pointer-events: none;
}
.hero-glow {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,204,151,.22), transparent);
  filter: blur(60px); top: -120px; right: -80px; pointer-events: none;
}
.hero-social {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 18px; z-index: 5;
}
.hero-social::before { content: ""; width: 1px; height: 70px; background: var(--line); }
.hero-social a { width: 22px; opacity: .8; transition: opacity .25s, transform .25s; }
.hero-social a:hover { opacity: 1; transform: translateY(-2px); }

.hero-inner { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 40px; }
.hero-content { flex: 1 1 56%; padding: 40px 0 80px; }
.hero-eyebrow { font-family: var(--ff-light); font-size: 18px; letter-spacing: 1px; color: var(--muted); }
.hero-title {
  font-size: clamp(40px, 8vw, 100px); line-height: 1; letter-spacing: -.04em;
  margin: 18px 0 26px;
}
.hero-title .rotate {
  display: inline-block; padding-right: 4px;
  background: linear-gradient(92deg, #bcffa4 8%, #f59571 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .25s ease;
}
.hero-content p { max-width: 430px; color: var(--muted); }
.hero-cta { margin-top: 44px; display: flex; align-items: flex-end; gap: 40px; }

.hero-scroll { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 8px; }
.hero-scroll .bar { width: 1px; height: 34px; background: var(--line); }
.hero-scroll .mouse { width: 18px; height: 28px; border: 1px solid var(--line); border-radius: 12px; position: relative; }
.hero-scroll .mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; border-radius: 3px; background: var(--muted); transform: translateX(-50%); animation: scroll-dot 1.6s ease-in-out infinite; }
@keyframes scroll-dot { 0%,100% { opacity: 0; top: 6px; } 50% { opacity: 1; top: 12px; } }

.hero-photo { flex: 1 1 40%; align-self: flex-end; }
.hero-photo img {
  display: block; margin-left: auto;
  width: 100%; height: auto; max-width: 520px;
  mix-blend-mode: hard-light;
}
html[data-theme="light"] .hero-photo img { mix-blend-mode: normal; }

.marquee { overflow: hidden; border-top: 1px solid var(--faint); }
.marquee-track { display: flex; gap: 60px; padding: 22px 0; white-space: nowrap; width: max-content; animation: marquee 22s linear infinite; }
.marquee-track span { font-family: var(--ff-mono); font-weight: 600; font-size: clamp(30px,5vw,58px); color: var(--text); opacity: .1; text-transform: uppercase; letter-spacing: .04em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------- Преимущества ------------------------------ */
.advantages { padding: 120px 0; position: relative; overflow: hidden; }
.advantages .bgtext { position: absolute; left: 0; bottom: 20px; }
.adv-inner { display: flex; gap: 70px; align-items: flex-start; position: relative; z-index: 1; }
.adv-left { flex: 1 1 50%; }
.adv-left .section-title { margin-top: 14px; }
.adv-left .section-note { margin-bottom: 40px; }

.capsules { display: flex; flex-wrap: wrap; gap: 12px; max-width: 480px; }
.capsule { padding: 10px 24px; border-radius: 100px; font-size: 15px; font-weight: 600; font-family: var(--ff-body); color: #0b1c12; }
.capsule.c-green  { background: var(--pill-green); color:#04140d; }
.capsule.c-pink   { background: var(--pill-pink);  color:#3a0d1c; }
.capsule.c-yellow { background: var(--pill-yellow);color:#2c2500; }
.capsule.c-blue   { background: var(--pill-blue);  color:#04222f; }

.adv-right { flex: 1 1 50%; border-left: 1px solid var(--line); padding-left: 60px; }

.accordion-item { border-bottom: 1px solid var(--line); position: relative; }
.accordion-item::before { content: ""; position: absolute; left: -61px; top: 0; width: 2px; height: 0; background: var(--text); transition: height .4s ease; }
.accordion-item.open::before { height: 100%; }
.accordion-head {
  width: 100%; display: flex; align-items: baseline; gap: 16px;
  padding: 26px 0; text-align: left;
  font-family: var(--ff-mono); font-weight: 600; font-size: clamp(24px,3.4vw,34px); color: var(--text);
}
.accordion-head .num { font-family: var(--ff-body); font-size: 16px; font-weight: 600; color: var(--muted); }
.accordion-head .arrow { margin-left: auto; font-size: 22px; transition: transform .3s ease; color: var(--muted); }
.accordion-item.open .accordion-head .arrow { transform: rotate(45deg); color: var(--accent); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.accordion-body p { padding: 0 0 26px; color: var(--muted); max-width: 460px; }

/* ------------------------------ О докторе ------------------------------ */
.about { padding: 120px 0; }
.about-inner { display: flex; gap: 60px; align-items: center; }
.about-photo { flex: 1 1 42%; position: relative; }
.about-photo .shape {
  position: absolute; inset: 0; margin: auto; width: 78%; aspect-ratio: 1;
  background: url("../img/about/shape.png") center/contain no-repeat; z-index: 0;
  filter: hue-rotate(-10deg);
}
.about-photo img { position: relative; z-index: 1; margin: 0 auto; }
.about-body { flex: 1 1 55%; }

.ig-badge { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.ig-badge img { width: 44px; height: 44px; }
.ig-badge h4 { font-family: var(--ff-mono); font-size: 20px; color: var(--text); }
.about-body > p { color: var(--muted); margin-bottom: 40px; }

.stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { flex: 1 1 140px; }
.stat h4 { font-family: var(--ff-mono); font-weight: 600; font-size: 54px; color: var(--text); line-height: 1; }
.stat p { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* ------------------------------- Кейсы --------------------------------- */
.cases { padding: 120px 0; position: relative; overflow: hidden; }
.cases .bgtext { position: absolute; top: 40px; right: 0; }
.cases .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cases-grid { display: flex; flex-wrap: wrap; gap: 30px; }
.case { flex: 1 1 calc(50% - 15px); min-width: 300px; }
.case-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; background: #000;
}
.case-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.case-title { font-family: var(--ff-body); font-weight: 600; font-size: 26px; color: var(--text); margin: 20px 0 8px; }
.case-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.case-meta .n { letter-spacing: 1px; }
.case-meta .arrow { width: 34px; height: 1px; background: var(--muted); position: relative; }
.case-meta .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: rotate(45deg); }
.cases-more { display: flex; align-items: center; justify-content: flex-end; }
.circle-btn--sm { width: 150px; height: 150px; font-size: 15px; }

/* --------------------------- Соцсети / отзывы -------------------------- */
.social { padding: 110px 0; background: var(--bg-2); background-image: url("../img/bg/panel-distort.png"); background-size: cover; }
.social .section-head { text-align: center; }
.social .section-note { margin: 18px auto 0; }
.tabs { display: flex; justify-content: center; gap: 8px; margin: 40px 0 54px; }
.tab {
  position: relative; font-family: var(--ff-mono); font-weight: 600; font-size: 16px; letter-spacing: 1px;
  padding: 10px 26px; border-radius: 100px; color: var(--muted); transition: color .25s, background .25s;
}
.tab.active { color: var(--text); background: var(--card); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.icon-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.icon-card { width: 170px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.icon-tile {
  width: 150px; height: 160px; border-radius: 90px 8px 90px 90px;
  background: var(--card); border: 1px solid var(--faint);
  display: flex; align-items: center; justify-content: center; transition: transform .3s ease, border-color .3s ease;
}
.icon-card:hover .icon-tile { transform: translateY(-6px); border-color: var(--accent); }
.icon-tile img { width: 64px; height: 64px; object-fit: contain; }
.icon-card h3 { font-family: var(--ff-body); font-weight: 600; font-size: 18px; color: var(--text); }

/* -------------------------- Статьи и видео ----------------------------- */
.articles { padding: 120px 0; }
.articles-inner { display: flex; gap: 70px; align-items: flex-start; }
.articles-left { flex: 1 1 36%; }
.articles-left .section-title { margin-top: 14px; }
.articles-list { flex: 1 1 64%; }
.article-row {
  position: relative; display: block; width: 100%;
  border: 0; border-bottom: 1px solid var(--line);
  overflow: hidden; text-align: left; background: none; cursor: pointer;
  font: inherit; color: inherit;
}
.article-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.article-row-inner { display: flex; align-items: center; gap: 20px; padding: 26px 4px; position: relative; z-index: 1; }
.article-row .rev-arrow { color: var(--accent); width: 18px; flex: none; }
.article-content h3 { font-family: var(--ff-mono); font-weight: 600; font-size: clamp(20px,2.6vw,28px); color: var(--text); }
.article-content p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.article-row .go { margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; transition: background .3s, color .3s; }
.article-row .go svg { width: 12px; height: 12px; margin-left: 2px; }
.article-row .reveal { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity .45s ease, transform .6s ease; z-index: 0; }
.article-row .reveal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,28,10,.85), rgba(20,28,10,.35)); }
.article-row:hover .reveal { opacity: 1; transform: scale(1); }
.article-row:hover .go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ------------------------------- Отзывы -------------------------------- */
.reviews { padding: 110px 0 120px; }
.reviews .section-head { text-align: center; }
.review-viewport { max-width: 900px; margin: 50px auto 0; }
.review-track { position: relative; min-height: 260px; }
.review-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease;
  background: var(--bg-2); background-image: url("../img/testimonial/bg-distort.png"); background-size: cover;
  border: 1px solid var(--faint); border-radius: var(--radius); padding: 46px 50px;
}
.review-slide.active { opacity: 1; visibility: visible; position: relative; }
.review-quote { position: absolute; top: 30px; right: 40px; width: 46px; opacity: .5; }
.review-stars { display: flex; gap: 5px; color: #ffb545; margin-bottom: 20px; }
.review-stars svg { width: 15px; height: 15px; }
.review-slide p { font-family: var(--ff-light); font-size: 20px; line-height: 1.55; color: var(--text); }
.review-nav { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.review-dot { padding: 8px 18px; border-radius: 100px; border: 1px solid var(--line); font-family: var(--ff-mono); font-size: 14px; color: var(--muted); transition: .25s; }
.review-dot.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ------------------------------- Футер --------------------------------- */
.cta { position: relative; overflow: hidden; padding: 110px 0 40px; background: var(--bg-2); background-image: url("../img/bg/panel-distort.png"); background-size: cover; }
.cta::before { content: ""; position: absolute; left: 50%; bottom: -60%; transform: translateX(-50%); width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.05), transparent); pointer-events: none; }
.cta-title { text-align: center; font-size: clamp(40px,8vw,110px); letter-spacing: -.03em; color: var(--text); }
.cta-buttons { display: flex; gap: 20px; justify-content: center; margin: 50px 0; flex-wrap: wrap; }
.cta-buttons .pill-btn { min-height: 96px; flex: 1 1 340px; max-width: 460px; font-size: 24px; }

.socials { display: flex; gap: 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.social-row { flex: 1 1 300px; }
.social-row a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); position: relative; }
.social-row a::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--accent); transition: width .35s ease; }
.social-row a:hover::after { width: 100%; }
.social-row .st { display: flex; flex-direction: column; }
.social-row .st .k { font-family: var(--ff-mono); font-weight: 600; font-size: 22px; color: var(--text); }
.social-row .st .h { font-size: 14px; color: var(--muted); }
.social-row .ic { width: 40px; height: 40px; flex: none; }
.social-row .ic-phone {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink);
}
.social-row .ic-phone svg { width: 22px; height: 22px; }
.copyright { text-align: center; margin-top: 60px; font-size: 14px; color: var(--muted); }

/* ------------------------- Попапы (общая база) -------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 76px 24px 24px;
  opacity: 0; transition: opacity .3s ease;
}
.modal[hidden] { display: none; }
.modal.open { opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(6px); }
.modal__box {
  position: relative; z-index: 1; max-width: 100%; max-height: 100%;
  transform: scale(.96); transition: transform .3s ease;
}
.modal.open .modal__box { transform: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, transform .25s ease;
}
.modal__close:hover { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }
body.modal-open { overflow: hidden; }

/* ------------------------------ Попап видео ---------------------------- */
.video-modal__box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.video-modal__title {
  font-family: var(--ff-mono); font-weight: 600; font-size: 20px;
  color: #fff; text-align: center; max-width: 520px;
}
.video-modal video {
  display: block; border-radius: var(--radius); background: #000;
  max-height: calc(100vh - 180px); max-width: 100%;
  width: auto; height: auto;
}

/* --------------------------- Попап записи ------------------------------ */
.booking-box {
  width: 460px; max-width: 100%; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--faint);
  border-radius: var(--radius); padding: 40px;
}
.booking-title {
  font-size: clamp(28px, 5vw, 38px); line-height: 1.05; color: var(--text); margin-bottom: 28px;
}
.booking-form { display: flex; flex-direction: column; gap: 18px; }
.booking-form[hidden] { display: none; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 14px; letter-spacing: .5px; color: var(--muted); }
.field__input {
  width: 100%; padding: 14px 16px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .25s ease, background .25s ease;
}
.field__input:focus { outline: none; border-color: var(--accent); background: transparent; }
.field__input::placeholder { color: var(--muted); opacity: .5; }
select.field__input { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 20px center, right 14px center; background-size: 6px 6px; background-repeat: no-repeat;
}
select.field__input option { background: var(--bg-2); color: var(--text); }
.field__trap { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.field__error { font-size: 13px; color: #ff7b7b; min-height: 0; }
.field__error:empty { display: none; }
.field--invalid .field__input { border-color: #ff7b7b; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--accent); text-decoration: underline; }

.booking-submit { width: 100%; min-height: 60px; font-size: 18px; margin-top: 4px; }
.booking-submit[disabled] { opacity: .6; pointer-events: none; }
.booking-fallback { font-size: 14px; text-align: center; color: var(--muted); }
.booking-fallback a { color: var(--text); border-bottom: 1px solid var(--line); }

.booking-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 20px 0; }
.booking-done[hidden] { display: none; }
.booking-done__icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
}
.booking-done__icon svg { width: 32px; height: 32px; }
.booking-done h4 { font-family: var(--ff-mono); font-size: 24px; color: var(--text); }
.booking-done p { font-size: 15px; color: var(--muted); max-width: 300px; }
.booking-done .pill-btn { margin-top: 8px; min-height: 54px; }

@media (max-width: 640px) {
  .modal { padding: 70px 16px 16px; }
  .booking-box { padding: 28px 22px; }
}

/* --------------------------- Кнопка наверх ----------------------------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ----------------------------- Мобильное меню -------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: var(--bg);
  display: flex; flex-direction: column; padding: 90px 32px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { font-family: var(--ff-mono); font-weight: 600; font-size: 30px; color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .close { position: absolute; top: 26px; right: 26px; font-size: 34px; color: var(--text); }

/* ----------------------------- Адаптив --------------------------------- */
@media (max-width: 991px) {
  .main-nav, .hero-social { display: none; }
  .burger { display: flex; }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-content { padding-bottom: 40px; }
  .hero-photo { max-width: 440px; margin: 0 auto; }
  .hero-photo img { margin: 0 auto; max-width: 100%; }
  .adv-inner, .about-inner, .articles-inner { flex-direction: column; gap: 46px; }
  .adv-right { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .accordion-item::before { display: none; }
  .about-photo img { width: 100%; max-width: 360px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  h1, h2, h3, h4 { overflow-wrap: break-word; }
  .hero-title { font-size: clamp(30px, 9vw, 46px); }
  .section-title { font-size: clamp(28px, 8vw, 40px); }
  .cta-title { font-size: clamp(28px, 8.5vw, 44px); }
  .case { flex: 1 1 100%; min-width: 0; }
  .cases-more { justify-content: center; margin-top: 10px; }
  .stat h4 { font-size: 42px; }
  .cta-buttons .pill-btn { flex: 1 1 100%; }
  .review-slide { padding: 34px 22px; }
  .icon-card { width: 130px; }
  .icon-tile { width: 118px; height: 130px; }
  .capsules { max-width: 100%; }
  .accordion-head { font-size: clamp(20px, 6vw, 26px); }
}
