/* ==========================================================================
   реклама-стоматологии.рф — стили лендинга
   ========================================================================== */

@font-face {
  font-family: 'Onest';
  src: url('/assets/fonts/onest-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  src: url('/assets/fonts/onest-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'InterVar';
  src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'InterVar';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --navy-950: #04121F;
  --navy-900: #071A2F;
  --navy-800: #0C2740;
  --navy-700: #13385A;
  --aqua: #17B8AC;
  --aqua-600: #0E9B92;
  --aqua-300: #7FE0D6;
  --aqua-050: #E8F8F6;
  --gold: #E3B23C;
  --gold-600: #C9962A;
  --gold-050: #FBF3E0;
  --text: #0E1F2E;
  --text-2: #4B5F70;
  --text-3: #7C8C99;
  --line: #E4EBF1;
  --line-2: #EFF3F7;
  --bg: #ffffff;
  --bg-soft: #F3F7FA;
  --green: #14A05C;

  --shadow-xs: 0 1px 2px rgba(9, 30, 50, .06);
  --shadow-sm: 0 4px 16px rgba(9, 30, 50, .06);
  --shadow-md: 0 14px 40px rgba(9, 30, 50, .09);
  --shadow-lg: 0 30px 70px rgba(9, 30, 50, .14);
  --shadow-glow: 0 16px 40px rgba(23, 184, 172, .28);
  --shadow-gold: 0 16px 40px rgba(227, 178, 60, .3);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* Атрибут hidden сильнее любых display в правилах ниже. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: 'InterVar', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, details, summary { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: 'Onest', 'InterVar', sans-serif;
  margin: 0;
  color: var(--text);
  letter-spacing: -.022em;
  line-height: 1.12;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(31px, 3.7vw, 47px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 42px); }
h3 { font-size: 19px; line-height: 1.3; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--aqua); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 10px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 880px; }

/* --------------------------------------------------------------- Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Onest', sans-serif;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 15px 26px; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .ic { width: 18px; height: 18px; }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--aqua); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { background: var(--aqua-600); transform: translateY(-2px); box-shadow: 0 20px 46px rgba(23, 184, 172, .36); }

.btn--gold { background: linear-gradient(135deg, var(--gold) 0%, #F0C560 100%); color: #33260A; box-shadow: var(--shadow-gold); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(227, 178, 60, .42); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); }

.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-800); transform: translateY(-2px); }

/* ---------------------------------------------------------------- Шапка */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  background: rgba(7, 26, 47, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(7, 26, 47, .96); box-shadow: 0 10px 30px rgba(4, 18, 31, .28); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 18px; }
.header .logo__text i { display: none; }

.logo { display: flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--aqua) 0%, #0E7F8C 100%);
  color: #fff; box-shadow: 0 8px 20px rgba(23, 184, 172, .35);
}
.logo__mark .ic { width: 24px; height: 24px; stroke-width: 1.6; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text b { font-family: 'Onest', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.logo__text i { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .55); letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav a { font-size: 14px; color: rgba(255, 255, 255, .78); transition: color .2s; position: relative; white-space: nowrap; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--aqua); border-radius: 2px; transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: #fff; }

.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header__phone {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff;
  transition: background-color .2s, border-color .2s;
}
.header__phone span { display: none; }
.header__phone .ic { width: 18px; height: 18px; color: var(--aqua-300); }
.header__phone:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .34); }

.burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; place-items: center;
}

/* ------------------------------------------------------- Переключатель города */
.city-switch {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  max-width: 190px; padding: 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .85); font-size: 13.5px; font-weight: 500;
  transition: background-color .2s, border-color .2s, color .2s;
}
.city-switch:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .34); color: #fff; }
.city-switch .ic { width: 15px; height: 15px; color: var(--aqua-300); }
.city-switch .ic--chevron { width: 12px; height: 12px; color: rgba(255, 255, 255, .5); }
.city-switch .geo-city { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----------------------------------------------------------- Первый экран */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 54px) 0 112px;
  background: radial-gradient(120% 130% at 15% 0%, #12395C 0%, var(--navy-900) 52%, var(--navy-950) 100%);
  color: #fff;
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 20%, #000 0%, transparent 78%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero__glow--1 { width: 520px; height: 520px; background: rgba(23, 184, 172, .3); top: -180px; right: -80px; }
.hero__glow--2 { width: 420px; height: 420px; background: rgba(227, 178, 60, .16); bottom: -200px; left: -120px; }

.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center;
}
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero h1 { color: #fff; }
.hero h1 .hl {
  background: linear-gradient(100deg, var(--aqua-300) 10%, var(--aqua) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .74); max-width: 560px; }
.hero__lead b { color: #fff; font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.hero__trust li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(255, 255, 255, .7); }
.hero__trust .ic { width: 17px; height: 17px; color: var(--aqua); stroke-width: 2.4; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1.25;
}
.pill .ic { width: 16px; height: 16px; }
.pill--gold { background: rgba(227, 178, 60, .14); color: var(--gold); border: 1px solid rgba(227, 178, 60, .34); }
.pill--solid { background: var(--gold); color: #33260A; border-color: transparent; }

/* Визуал первого экрана */
.hero__visual { position: relative; }
.hero__photo {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 90px rgba(2, 12, 22, .55);
  aspect-ratio: 4 / 3;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.float-card {
  position: absolute; z-index: 3;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 14px 18px; color: var(--text);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.float-card--stat { left: -34px; bottom: 26px; min-width: 210px; }
.float-card--stat figcaption { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.float-card__row { display: flex; align-items: baseline; gap: 8px; }
.float-card__num { font-family: 'Onest', sans-serif; font-size: 24px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.float-card__num .ic { width: 16px; height: 16px; color: var(--aqua); }
.float-card__unit { font-size: 12px; color: var(--text-3); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-top: 8px; }
.spark i { width: 8px; height: var(--h); background: linear-gradient(180deg, var(--aqua) 0%, var(--aqua-300) 100%); border-radius: 3px; }
.spark i:last-child { background: linear-gradient(180deg, var(--gold) 0%, #F3D278 100%); }

.float-card--romi { right: -22px; top: 34px; text-align: center; animation-delay: -2.4s; }
.float-card__label { display: block; font-size: 11.5px; color: var(--text-3); }
.float-card__value { font-family: 'Onest', sans-serif; font-size: 26px; font-weight: 800; color: var(--green); }

.float-card--gift {
  right: 16px; bottom: -26px;
  display: flex; align-items: center; gap: 11px;
  background: linear-gradient(135deg, var(--gold) 0%, #F2CB6C 100%); color: #33260A;
  box-shadow: 0 20px 44px rgba(227, 178, 60, .45); animation-delay: -4.8s;
}
.float-card--gift .ic { width: 24px; height: 24px; }
.float-card--gift span { font-size: 12.5px; line-height: 1.25; }
.float-card--gift b { font-family: 'Onest', sans-serif; font-size: 19px; font-weight: 800; }

/* ------------------------------------------------------------- Опорные цифры */
.proof { position: relative; z-index: 5; margin-top: -66px; padding-bottom: 8px; }
.proof__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden;
}
.proof__item { padding: 26px 24px; border-right: 1px solid var(--line-2); }
.proof__item:last-child { border-right: 0; }
.proof__num {
  display: block; font-family: 'Onest', sans-serif; font-size: 30px; font-weight: 800;
  color: var(--navy-900); letter-spacing: -.03em; margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.proof__txt { font-size: 13.5px; line-height: 1.5; color: var(--text-2); }

/* ----------------------------------------------------------------- Секции */
.section { padding: 96px 0; background: var(--bg); }
.section--alt { background: var(--bg-soft); }
.section--tight { padding-top: 40px; }

.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--aqua-600); margin-bottom: 14px;
}
.eyebrow--light { color: var(--aqua-300); }
.lead { font-size: 17px; color: var(--text-2); margin-top: 16px; max-width: 640px; }

.ticks { display: flex; flex-direction: column; gap: 9px; }
.ticks li { position: relative; padding-left: 27px; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--aqua-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E9B92' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6.5L9.4 17.5 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ticks--light li { color: rgba(255, 255, 255, .78); }
.ticks--light li::before { background-color: rgba(23, 184, 172, .18); }

/* Появление при прокрутке. Без JS содержимое видно сразу. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------------------------- Боли */
.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pain {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D9E4EC; }
.pain__ic { width: 26px; height: 26px; color: #E0714E; margin-bottom: 14px; }
.pain h3 { font-size: 17px; margin-bottom: 8px; }
.pain p { font-size: 14px; color: var(--text-2); line-height: 1.55; }

.bridge {
  margin-top: 28px; padding: 30px 34px;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-radius: var(--r-lg); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.bridge p { font-size: 16px; color: rgba(255, 255, 255, .76); max-width: 720px; }
.bridge b { color: #fff; }
.bridge .btn { flex: none; }

/* ------------------------------------------------------------------ Оффер */
.offer {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  padding: 52px 54px;
  background: linear-gradient(140deg, var(--navy-900) 0%, #0A2137 55%, var(--navy-950) 100%);
  border-radius: var(--r-xl); color: #fff;
  box-shadow: var(--shadow-lg);
}
.offer__glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 178, 60, .28) 0%, transparent 68%);
  top: -240px; right: -160px; pointer-events: none;
}
.offer__main { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.offer__title { color: #fff; font-size: clamp(25px, 3vw, 38px); }
.offer__title .gold { color: var(--gold); }
.offer__sub { color: rgba(255, 255, 255, .7); font-size: 15.5px; max-width: 520px; }

.offer__price { display: flex; align-items: center; gap: 16px; }
.offer__price-old { font-size: 24px; color: rgba(255, 255, 255, .4); text-decoration: line-through; }
.offer__price-arrow { width: 22px; height: 22px; color: rgba(255, 255, 255, .4); }
.offer__price-new { font-family: 'Onest', sans-serif; font-size: 52px; font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -.03em; }

.countdown { width: 100%; }
.countdown__label { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .5); margin-bottom: 9px; }
.countdown__tiles { display: flex; gap: 10px; }
.countdown__tile {
  min-width: 74px; padding: 10px 12px; border-radius: 14px; text-align: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
}
.countdown__tile b {
  display: block; font-family: 'Onest', sans-serif; font-size: 26px; font-weight: 800;
  color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.countdown__tile i { font-style: normal; font-size: 11.5px; color: rgba(255, 255, 255, .5); }

.offer__terms { font-size: 12.5px; color: rgba(255, 255, 255, .45); line-height: 1.6; max-width: 520px; }

.offer__list {
  position: relative; z-index: 2;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg); padding: 30px 28px;
}
.offer__list h3 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.offer__list ul { display: flex; flex-direction: column; gap: 13px; }
.offer__list li { display: flex; gap: 11px; font-size: 14px; color: rgba(255, 255, 255, .8); line-height: 1.45; }
.offer__list .ic { width: 18px; height: 18px; color: var(--gold); stroke-width: 2.6; margin-top: 2px; }
.offer__note { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: rgba(255, 255, 255, .5); }

/* ---------------------------------------------------------------- Услуги */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #CFE6E3; }
.service__ic {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px;
  background: linear-gradient(140deg, var(--aqua-050) 0%, #DFF3F1 100%); color: var(--aqua-600);
  margin-bottom: 18px;
}
.service__ic .ic { width: 25px; height: 25px; }
.service h3 { margin-bottom: 9px; }
.service > p { font-size: 14px; color: var(--text-2); margin-bottom: 16px; line-height: 1.55; }
.service .ticks li { font-size: 13.5px; }

/* ----------------------------------------------------------- Направления */
.dirs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dir {
  background: linear-gradient(180deg, #fff 0%, #FAFCFD 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.dir:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.dir h3 { color: var(--navy-800); margin-bottom: 4px; }
.dir__meta { font-size: 13px; color: var(--aqua-600); font-weight: 600; margin-bottom: 16px; }

/* --------------------------------------------------------- Модель оплаты */
.model { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.model__steps { display: flex; flex-direction: column; gap: 14px; }
.model__step {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px;
  transition: box-shadow .3s var(--ease), border-color .3s;
}
.model__step:hover { box-shadow: var(--shadow-sm); border-color: #CFE6E3; }
.model__num {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-family: 'Onest', sans-serif; font-weight: 800; font-size: 15px;
  background: var(--navy-900); color: #fff;
}
.model__step:nth-child(3) .model__num { background: linear-gradient(140deg, var(--aqua) 0%, var(--aqua-600) 100%); }
.model__step h3 { font-size: 17px; margin-bottom: 5px; }
.model__step p { font-size: 14px; color: var(--text-2); line-height: 1.55; }

.model__media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.model__media img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; }
.model__facts {
  position: absolute; inset: auto 0 0 0; padding: 22px 24px 20px;
  background: linear-gradient(180deg, rgba(4, 18, 31, 0) 0%, rgba(4, 18, 31, .88) 46%, rgba(4, 18, 31, .96) 100%);
  display: flex; flex-direction: column; gap: 9px;
}
.model__facts div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.model__facts b { color: #fff; font-size: 14px; font-weight: 600; }
.model__facts span { color: var(--aqua-300); font-size: 13px; }

.callout {
  margin-top: 34px; display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid #CFE6E3; border-left: 4px solid var(--aqua);
  border-radius: var(--r); padding: 22px 26px; box-shadow: var(--shadow-xs);
}
.callout .ic { width: 28px; height: 28px; color: var(--aqua-600); flex: none; }
.callout p { font-size: 15.5px; color: var(--text-2); }

/* -------------------------------------------------------------- Сравнение */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; min-width: 780px; font-size: 14px; }
.compare th, .compare td { padding: 17px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.compare thead th {
  font-family: 'Onest', sans-serif; font-size: 14px; font-weight: 700; color: var(--navy-900);
  background: #F7FAFC; border-bottom: 1px solid var(--line);
}
.compare thead th.is-us { background: var(--navy-900); color: #fff; border-radius: 0; }
.compare tbody th { font-weight: 600; color: var(--text); width: 168px; font-size: 14px; }
.compare td { color: var(--text-2); }
.compare td.is-us { background: rgba(23, 184, 172, .07); color: var(--text); font-weight: 500; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.table-hint { display: none; margin-top: 10px; font-size: 13px; color: var(--text-3); }

/* ----------------------------------------------------------------- Кейсы */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.case__top { margin-bottom: 12px; }
.case__top h3 { margin-bottom: 5px; }
.case__geo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.case__geo .ic { width: 15px; height: 15px; }
.case__desc { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-bottom: 20px; }
.case__kpi { display: flex; gap: 26px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.case__kpi b { display: block; font-family: 'Onest', sans-serif; font-size: 25px; font-weight: 800; color: var(--green); letter-spacing: -.02em; }
.case__kpi div:last-child b { color: var(--navy-900); font-size: 21px; }
.case__kpi span { font-size: 12px; color: var(--text-3); }

.quote {
  margin: 26px 0 0; display: grid; grid-template-columns: .78fr 1.22fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.quote__media img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.quote__body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.quote blockquote {
  margin: 0 0 20px; font-family: 'Onest', sans-serif; font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5; color: var(--text); letter-spacing: -.015em; position: relative; padding-left: 30px;
}
.quote blockquote::before {
  content: '«'; position: absolute; left: -2px; top: -10px;
  font-size: 62px; color: var(--aqua); opacity: .35; line-height: 1;
}
.quote figcaption { display: flex; flex-direction: column; padding-left: 30px; }
.quote figcaption b { font-size: 15px; }
.quote figcaption span { font-size: 13.5px; color: var(--text-3); }

/* --------------------------------------------------------------- План работ */
.plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.plan__head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.plan__num {
  flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  font-family: 'Onest', sans-serif; font-size: 21px; font-weight: 800;
  background: var(--bg-soft); color: var(--navy-900); border: 1px solid var(--line);
}
.plan__item:nth-child(2) .plan__num { background: linear-gradient(140deg, var(--gold) 0%, #F2CB6C 100%); color: #33260A; border-color: transparent; }
.plan__time { font-size: 13px; color: var(--aqua-600); font-weight: 600; }
.plan__price {
  margin-top: auto; padding-top: 20px; font-family: 'Onest', sans-serif; font-size: 22px; font-weight: 800;
  color: var(--navy-900); display: flex; flex-direction: column; gap: 2px;
}
.plan__price span { font-family: 'InterVar', sans-serif; font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.plan__price--free { color: var(--green); }
.plan__price--muted { color: var(--text-2); font-size: 18px; }

.guarantee {
  margin-top: 26px; display: flex; align-items: center; gap: 24px;
  background: linear-gradient(120deg, #F0FBF6 0%, #E8F8F6 100%);
  border: 1px solid #C7EBE2; border-radius: var(--r-lg); padding: 28px 32px;
}
.guarantee__ic {
  flex: none; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center;
  background: #fff; color: var(--green); box-shadow: var(--shadow-xs);
}
.guarantee__ic .ic { width: 27px; height: 27px; }
.guarantee h3 { margin-bottom: 6px; }
.guarantee p { font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.guarantee .btn { flex: none; }

/* -------------------------------------------------------------- География */
.cities { display: flex; flex-wrap: wrap; gap: 10px; }
.city-tag {
  padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 14px; color: var(--text-2); cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s, transform .2s var(--ease);
}
.city-tag:hover { border-color: var(--aqua); color: var(--aqua-600); background: var(--aqua-050); transform: translateY(-2px); }
.city-tag.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.city-tag--more { border-style: dashed; color: var(--aqua-600); font-weight: 600; }
.cities__note { margin-top: 22px; font-size: 14px; color: var(--text-3); }

/* --------------------------------------------------------------------- FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 4px 26px; transition: border-color .25s, box-shadow .25s;
}
.faq__item[open] { border-color: #CFE6E3; box-shadow: var(--shadow-sm); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: 'Onest', sans-serif; font-size: 16.5px; font-weight: 600; color: var(--text); letter-spacing: -.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; position: absolute; right: 0; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; background: var(--aqua-050);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E9B92' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 14px;
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__body { padding: 0 30px 22px 0; font-size: 14.5px; color: var(--text-2); line-height: 1.65; }

/* ------------------------------------------------------------ Финальный CTA */
.section--cta {
  position: relative; overflow: hidden;
  background: radial-gradient(110% 120% at 80% 10%, #12395C 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: #fff;
}
.cta__glow {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 184, 172, .22) 0%, transparent 68%);
  top: -260px; left: -140px; pointer-events: none;
}
.cta { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr .86fr; gap: 56px; align-items: start; }
.cta h2 { color: #fff; margin-bottom: 18px; }
.cta__text > p { color: rgba(255, 255, 255, .74); font-size: 16px; margin-bottom: 18px; }
.cta__contacts { margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta__contacts a { display: inline-flex; align-items: center; gap: 9px; font-family: 'Onest', sans-serif; font-size: 21px; font-weight: 700; color: #fff; }
.cta__contacts a:hover { color: var(--aqua-300); }
.cta__contacts .ic { width: 20px; height: 20px; color: var(--aqua); }
.cta__contacts span { font-size: 13.5px; color: rgba(255, 255, 255, .5); }

/* -------------------------------------------------------------------- Форма */
.form {
  background: #fff; border-radius: var(--r-xl); padding: 34px 34px 30px;
  box-shadow: 0 40px 90px rgba(2, 12, 22, .45);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form__title { grid-column: 1 / -1; font-size: 21px; margin-bottom: 2px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field__label i { color: #E0714E; font-style: normal; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; padding: 14px 16px; font-size: 15px; font-family: inherit; color: var(--text);
  background: #F7FAFC; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #A9B7C2; }
.field input:focus {
  outline: none; background: #fff; border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(23, 184, 172, .14);
}
.field.is-invalid input { border-color: #E0714E; background: #FEF6F3; }
.field__error { font-size: 12px; color: #C9553A; min-height: 0; }
.field.is-invalid .field__error { min-height: 16px; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 12.5px; color: var(--text-3); line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--aqua); }
.consent a { color: var(--aqua-600); text-decoration: underline; }
.consent.is-invalid { color: #C9553A; }

.form .btn--block { grid-column: 1 / -1; }
.form__note { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-3); margin: 0; }
.form__note .ic { width: 16px; height: 16px; color: var(--green); flex: none; }
.form__result { grid-column: 1 / -1; padding: 16px 18px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.form__result.is-ok { background: #EAF9F0; color: #0F7A45; border: 1px solid #BFE8D0; }
.form__result.is-err { background: #FEF2EE; color: #C9553A; border: 1px solid #F5CFC2; }

/* ------------------------------------------------------------------ Подвал */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .62); padding: 56px 0 40px; font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer__brand .logo { margin-bottom: 18px; }
.footer__owner { font-size: 13.5px; color: rgba(255, 255, 255, .68); line-height: 1.65; max-width: 430px; margin-bottom: 14px; }
.footer__owner a { color: var(--aqua-300); text-decoration: underline; text-underline-offset: 2px; }
.footer__legal { font-size: 12.5px; color: rgba(255, 255, 255, .4); line-height: 1.7; }
.footer__legal a { color: rgba(255, 255, 255, .55); text-decoration: underline; text-underline-offset: 2px; }
.footer__nav, .footer__contacts { display: flex; flex-direction: column; gap: 9px; }
.footer b { display: block; color: #fff; font-family: 'Onest', sans-serif; font-size: 15px; margin-bottom: 6px; }
.footer a { color: rgba(255, 255, 255, .62); transition: color .2s; }
.footer a:hover { color: var(--aqua-300); }
.footer__contacts a:first-of-type { font-family: 'Onest', sans-serif; font-size: 18px; font-weight: 700; color: #fff; }
.footer__small { font-size: 11.5px; color: rgba(255, 255, 255, .32); margin-top: 8px; line-height: 1.6; }

/* ------------------------------------------------------- Мобильная панель */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 26, 47, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, .1);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { flex: 1; }

/* ---------------------------------------------------------- Модальное окно */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 18, 31, .6); backdrop-filter: blur(4px); animation: fade .25s; }
.modal__box {
  position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: var(--r-lg);
  padding: 34px 32px 28px; box-shadow: var(--shadow-lg); animation: pop .3s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal__box h3 { font-size: 21px; margin-bottom: 7px; }
.modal__box > p { font-size: 14px; color: var(--text-2); margin-bottom: 18px; }
.modal__box input {
  width: 100%; padding: 14px 16px; font-size: 15px; font-family: inherit;
  background: #F7FAFC; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px;
}
.modal__box input:focus { outline: none; background: #fff; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(23, 184, 172, .14); }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-soft); border: 0; color: var(--text-2); display: grid; place-items: center;
}
.modal__close:hover { background: var(--line); }
.modal__suggest { max-height: 190px; overflow-y: auto; margin-bottom: 12px; }
.modal__suggest li { padding: 10px 14px; border-radius: 10px; font-size: 14.5px; cursor: pointer; }
.modal__suggest li:hover, .modal__suggest li.is-active { background: var(--aqua-050); color: var(--aqua-600); }
.modal__suggest li.is-own { color: var(--aqua-600); font-weight: 600; }
.modal__alt { display: block; width: 100%; margin-top: 12px; background: none; border: 0; color: var(--text-3); font-size: 13.5px; text-decoration: underline; }
.modal__alt:hover { color: var(--text); }

/* ---------------------------------------------------------------- Адаптив */
@media (max-width: 1180px) {
  .offer { padding: 44px 38px; gap: 34px; }
}

@media (max-width: 1024px) {
  .section { padding: 74px 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 46px; }
  .hero { padding-bottom: 110px; }
  .hero__visual { max-width: 620px; }
  .proof__grid { grid-template-columns: repeat(2, 1fr); }
  .proof__item:nth-child(2) { border-right: 0; }
  .proof__item:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .pains, .services, .dirs { grid-template-columns: repeat(2, 1fr); }
  .model { grid-template-columns: 1fr; gap: 30px; }
  .cases { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; gap: 36px; }
  .quote { grid-template-columns: 1fr; }
  .quote__media img { min-height: 220px; max-height: 280px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Навигация уезжает в бургер раньше остальной адаптивной сетки:
   с чипом города полная шапка перестаёт помещаться в контейнер около 1200 px. */
@media (max-width: 1240px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: rgba(7, 26, 47, .98); backdrop-filter: blur(14px);
    padding: 8px 24px 22px; border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 16px; }
  .nav a::after { display: none; }
  .burger { display: grid; }
  .header__actions { margin-left: auto; }
}

@media (max-width: 900px) {
  .header__actions .btn { display: none; }
  .header__inner { gap: 10px; }
  .header__actions { margin-left: auto; gap: 8px; }
  .header__phone { display: none; }
  .city-switch { max-width: 138px; padding: 7px 10px; font-size: 12.5px; gap: 5px; }
  .logo { min-width: 0; }
  .logo__text i { display: none; }
  .logo__text b { font-size: 15px; }

  .hero__visual { max-width: 100%; display: flex; flex-wrap: wrap; gap: 12px; }
  .hero__photo { flex: 1 1 100%; }
  .float-card { position: static; animation: none; margin: 0; }
  .float-card--stat { display: none; }
  .float-card--romi {
    flex: 1 1 0; display: flex; align-items: center; justify-content: space-between;
    gap: 14px; text-align: left; padding: 16px 20px;
  }
  .float-card--romi .float-card__label { font-size: 13px; }
  .float-card--gift { flex: 1 1 0; justify-content: center; padding: 16px 20px; }

  .bridge { flex-direction: column; align-items: flex-start; }
  .guarantee { flex-direction: column; align-items: flex-start; text-align: left; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 32px; }
  .container { padding: 0 18px; }
  .hero { padding: calc(var(--header-h) + 44px) 0 84px; }
  .hero__lead { font-size: 16px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; }
  .proof { margin-top: -46px; }
  .proof__grid { grid-template-columns: 1fr; }
  .proof__item { border-right: 0; border-bottom: 1px solid var(--line-2); padding: 20px 22px; }
  .proof__item:last-child { border-bottom: 0; }
  .proof__num { font-size: 26px; }
  .pains, .services, .dirs { grid-template-columns: 1fr; }
  .offer { padding: 32px 22px; border-radius: var(--r-lg); }
  .offer__price-new { font-size: 42px; }
  .countdown__tile { min-width: 0; flex: 1; }
  .offer__list { padding: 24px 20px; }
  .quote__body { padding: 28px 24px; }
  .quote blockquote { padding-left: 22px; font-size: 17px; }
  .quote figcaption { padding-left: 22px; }
  .form { padding: 26px 20px 22px; grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .btn--lg { padding: 16px 24px; font-size: 15px; }
  .case__kpi { gap: 18px; }
  .callout { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* В шапке остаётся только знак: название бренда не влезает рядом с городом. */
  .header .logo__text { display: none; }
  .hero__content { gap: 18px; }
  .hero__trust li { font-size: 13.5px; }

  .table-hint { display: block; }
  .compare { min-width: 640px; font-size: 13.5px; }
  .compare th, .compare td { padding: 14px 14px; }
  .compare tbody th {
    position: sticky; left: 0; z-index: 1; width: 118px; min-width: 118px;
    background: #fff; box-shadow: 1px 0 0 var(--line-2);
  }
  .compare thead th:first-child { position: sticky; left: 0; z-index: 2; background: #F7FAFC; min-width: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .mobile-bar, .modal, .hero__glow, .cta__glow { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { color: #000; }
}
