/* ============================================================
   drtokaev.ru — стили лендинга
   Порядок: шрифты → токены → база → утилиты → компоненты → секции
   ============================================================ */

/* ---------- Шрифты (локальные, без обращения к Google) ---------- */
@font-face {
  font-family: 'Roboto Local';
  src: url('/assets/fonts/roboto-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto Local';
  src: url('/assets/fonts/roboto-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20B9-20BA, U+2212;
}
@font-face {
  font-family: 'Roboto Condensed Local';
  src: url('/assets/fonts/roboto-condensed-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto Condensed Local';
  src: url('/assets/fonts/roboto-condensed-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20B9-20BA, U+2212;
}

/* ---------- Токены ---------- */
:root {
  --teal: #65bdc2;
  --teal-dark: #46a1a7;
  --teal-soft: #e8f5f6;
  --navy: #0e3055;
  --navy-deep: #0a2340;
  --ink: #2e2e2e;
  --muted: #5c5c5c;
  --line: #e2e7ea;
  --soft: #f4f8f9;
  --white: #fff;

  --font: 'Roboto Local', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-cond: 'Roboto Condensed Local', 'Roboto Local', system-ui, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 8vw, 120px);
  --radius: 4px;
  --shadow: 0 18px 40px rgba(14, 48, 85, .12);
  --header-h: 76px;
  --topbar-h: 44px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { font-family: var(--font-cond); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
[id^='i-tg'], .socials .icon, .icon--filled { stroke: none; fill: currentColor; }
.socials .icon { width: 18px; height: 18px; }

/* ---------- Утилиты ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--soft); }
.section__head { max-width: 620px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }

.h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.5px; }
.h2--light { color: var(--white); }

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow--light { background: var(--white); color: var(--navy); }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: fixed; z-index: 200; top: 12px; left: 12px;
  padding: 10px 16px; background: var(--navy); color: var(--white);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-cond);
  font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background-color .25s, color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--teal); color: var(--white); }
.btn--accent:hover { background: var(--teal-dark); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--lg { padding: 18px 40px; font-size: 18px; letter-spacing: 1px; }
.btn--block { width: 100%; }

.ctrl {
  padding: 10px 18px;
  border: 1px solid currentColor;
  font-family: var(--font-cond);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  transition: background-color .25s, color .25s;
}
.ctrl:hover { background: currentColor; }
.ctrl:hover { color: var(--navy); }
.ctrl[disabled] { opacity: .35; cursor: default; }

/* ============================================================
   ШАПКА
   ============================================================ */
.topbar {
  position: relative; z-index: 60;
  height: var(--topbar-h);
  display: flex; align-items: center;
  color: rgba(255, 255, 255, .92);
  font-family: var(--font-cond);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  transition: height .3s var(--ease), opacity .3s;
}
.topbar__inner { display: flex; align-items: center; gap: 24px; }
.topbar__item { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.topbar__item--end { margin-left: auto; }
.topbar a:hover { color: var(--teal); }

.ticker { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; gap: 60px; width: max-content; animation: ticker 28s linear infinite; }
.ticker__item { display: flex; align-items: center; gap: 10px; }
.ticker__label { background: var(--teal); color: var(--white); padding: 2px 8px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(calc(-50% - 30px)); } }

.header { position: relative; z-index: 60; }
.header__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
  background: var(--white);
  padding-inline: clamp(16px, 3vw, 32px);
  box-shadow: 0 10px 30px rgba(14, 48, 85, .08);
}

/* прилипающая шапка после прокрутки */
body.is-scrolled .topbar { height: 0; opacity: 0; overflow: hidden; }
body.is-scrolled .header { position: fixed; top: 0; left: 0; right: 0; }
body.is-scrolled .header .container { max-width: 100%; padding-inline: 0; }
body.is-scrolled .header__inner { box-shadow: 0 6px 24px rgba(14, 48, 85, .14); }

.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.logo__mark { width: 34px; height: 34px; color: var(--teal); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-family: var(--font-cond); font-size: 22px; letter-spacing: 3px; text-transform: uppercase; }
.logo__text i { font-style: normal; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.logo--light { color: var(--white); }
.logo--light .logo__text i { color: rgba(255, 255, 255, .65); }

.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); }
.nav__list a {
  position: relative;
  font-family: var(--font-cond);
  font-size: 14px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink);
  padding-block: 6px;
}
.nav__list a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--teal); transition: width .3s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-current::after { width: 100%; }
.nav__cta { align-self: stretch; padding-inline: clamp(20px, 3vw, 40px); border-radius: 0; }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; background: var(--navy); transition: transform .3s, opacity .2s; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   СЛАЙДЕР
   ============================================================ */
.hero {
  position: relative;
  margin-top: calc(-1 * (var(--topbar-h) + var(--header-h)));
  min-height: clamp(620px, 100svh, 920px);
  display: flex;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero__slides { position: absolute; inset: 0; }

.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.hero__slide.is-active { opacity: 1; z-index: 2; }
.hero__slide::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }

.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero__slide.is-active .hero__img { animation: kenburns 11s linear forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, 0); } }

.hero__body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%;
  padding-top: calc(var(--topbar-h) + var(--header-h) + clamp(24px, 5vh, 60px));
  padding-bottom: clamp(120px, 16vh, 190px);
  padding-left: clamp(16px, 7vw, 96px);
  color: var(--white);
}

.hero__eyebrow {
  align-self: flex-start;
  margin: 0 0 clamp(8px, 2vh, 18px);
  padding: 8px 20px;
  background: var(--navy);
  font-family: var(--font-cond);
  font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero__title { margin: 0; }
.hero__title-outline,
.hero__title-solid { display: block; font-family: var(--font-cond); }
.hero__title-outline {
  font-size: clamp(28px, 5.2vw, 70px);
  font-weight: 400;
  letter-spacing: clamp(-3px, -.35vw, -1px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .95);
}
@supports not (-webkit-text-stroke: 1px #fff) {
  .hero__title-outline { color: rgba(255, 255, 255, .7); }
}
.hero__title-solid {
  font-size: clamp(46px, 9.2vw, 130px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: clamp(-5px, -.4vw, -1px);
}

.hero__bottom {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(20px, 5vw, 80px);
  margin-top: clamp(20px, 4vh, 44px);
  max-width: 1040px;
}
.hero__cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(17px, 1.5vw, 25px);
  transition: gap .25s var(--ease), color .25s;
}
.hero__cta .icon { width: .8em; height: .8em; }
.hero__cta:hover { gap: 22px; color: var(--teal); }
.hero__text { max-width: 480px; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.6; color: rgba(255, 255, 255, .88); }

/* появление текста слайда */
.hero__eyebrow, .hero__title-outline, .hero__title-solid, .hero__bottom > * {
  opacity: 0;
  transform: translateY(28px);
}
.hero__slide.is-active :is(.hero__eyebrow, .hero__title-outline, .hero__title-solid, .hero__bottom > *) {
  animation: slideUp .9s var(--ease) forwards;
}
.hero__slide.is-active .hero__eyebrow { animation-delay: .05s; }
.hero__slide.is-active .hero__title-outline { animation-delay: .15s; }
.hero__slide.is-active .hero__title-solid { animation-delay: .25s; }
.hero__slide.is-active .hero__bottom > * { animation-delay: .4s; }
@keyframes slideUp { to { opacity: 1; transform: none; } }

.hero__counter {
  position: absolute; z-index: 5; left: clamp(10px, 2.6vw, 44px); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  color: var(--white);
  font-family: var(--font-cond);
  font-size: 18px; letter-spacing: 1px;
}
.hero__rail { position: relative; width: 2px; height: 200px; background: rgba(255, 255, 255, .35); }
.hero__rail-fill { position: absolute; inset: 0 0 auto; height: 0; background: var(--white); }
.hero__rail-fill.is-running { animation: rail var(--slide-duration, 9s) linear forwards; }
@keyframes rail { to { height: 100%; } }

.hero__nav {
  position: absolute; z-index: 5; right: clamp(16px, 4vw, 56px); bottom: clamp(130px, 17vh, 200px);
  display: flex; gap: 10px;
}
.hero__arrow {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  color: var(--white);
  transition: background-color .25s, border-color .25s, color .25s;
}
.hero__arrow:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.hero__arrow[data-slide='prev'] .icon { transform: rotate(180deg); }

/* ============================================================
   СПРОСИТЕ ВРАЧА
   ============================================================ */
.ask { position: relative; z-index: 10; margin-top: clamp(-160px, -14vh, -110px); }
.ask__box {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(240px, 1fr) minmax(280px, 1.15fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 48px);
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow);
}
.ask__side {
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  justify-self: center;
  font-family: var(--font-cond);
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.ask__title { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: .3em; }
.ask__text { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .92); }

.ask__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.ask__form .field--wide { grid-column: 1; }
.ask__form .field--action { display: flex; align-items: flex-end; }
.field--full { grid-column: 1 / -1; }

/* ============================================================
   ФОРМЫ
   ============================================================ */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.field { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-family: var(--font-cond); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.field input:not([type='checkbox']), .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s;
}
.field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(101, 189, 194, .25);
}
.field textarea { resize: vertical; min-height: 84px; }
.field__error { margin: 0; min-height: 0; font-size: 12px; color: #c0392b; }
.ask__form .field__error { color: #fff2f0; }
.field.is-invalid :is(input, select, textarea) { border-color: #c0392b; }

/* поля в бирюзовом блоке «Спросите врача» — подчёркивание вместо рамки */
.ask__box .ask__form input:not([type='checkbox']) {
  padding: 10px 2px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  border-radius: 0;
  color: var(--white);
}
.ask__box .ask__form input::placeholder { color: rgba(255, 255, 255, .85); }
.ask__box .ask__form input:focus { border-bottom-color: var(--white); box-shadow: none; }
.ask__box .ask__form input:focus-visible { outline: 2px solid rgba(255, 255, 255, .85); outline-offset: 4px; }
.ask__box .field.is-invalid input { border-bottom-color: #ffd7d2; }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; cursor: pointer; }
.consent input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--navy); flex: none; }
.consent a { text-decoration: underline; }

.form__status { margin: 0; min-height: 1.4em; font-size: 14px; }
.form__status.is-ok { color: #1f7a4d; }
.form__status.is-error { color: #c0392b; }
.ask__form .form__status { grid-column: 1 / -1; color: var(--white); }
.form__note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

.card { background: var(--white); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__title { font-size: 24px; margin-bottom: 20px; }

/* ============================================================
   О НАС
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }

.about__media { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); }
.about__img { box-shadow: var(--shadow); }
.about__img--main { grid-column: 1 / 5; grid-row: 1; width: 100%; }
.about__img--sq { grid-column: 4 / 7; grid-row: 1; align-self: start; margin-top: -6%; width: 100%; }
.about__img--wide { grid-column: 3 / 7; grid-row: 1; align-self: end; margin-bottom: -14%; width: 100%; z-index: 2; }

.about__content p { color: var(--muted); }
.about__note { display: flex; gap: 20px; align-items: flex-start; margin-block: 24px; }
.about__note img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); flex: none; }
.about__note p { margin: 0; }

.doctor-card { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.doctor-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top center; background: var(--teal-soft); }
.doctor-card b { display: block; font-family: var(--font-cond); font-size: 20px; }
.doctor-card span { font-size: 13px; color: var(--muted); }

/* ============================================================
   УСЛУГИ
   ============================================================ */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.service { position: relative; overflow: hidden; background: var(--navy); border-radius: var(--radius); }
.service img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.service:hover img { transform: scale(1.06); opacity: .85; }
.service__badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 6px 12px;
  background: var(--teal); color: var(--white);
  font-family: var(--font-cond); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
}
.service__badge--navy { background: var(--navy); }
.service__body {
  position: absolute; inset: auto 0 0; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px;
  padding: 22px;
  color: var(--white);
  background: linear-gradient(to top, rgba(10, 35, 64, .92), rgba(10, 35, 64, 0));
}
.service__body h3 { grid-column: 1; margin: 0; font-size: clamp(18px, 1.6vw, 22px); }
.service__price { grid-column: 1; margin: 0; font-family: var(--font-cond); font-size: 15px; letter-spacing: 1px; color: var(--teal); }
.service__link {
  grid-column: 2; grid-row: 1 / span 2;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .6);
  transition: background-color .25s, color .25s;
}
.service__link:hover { background: var(--teal); border-color: var(--teal); }

/* ============================================================
   ДО / ПОСЛЕ
   ============================================================ */
.results { position: relative; padding-block: var(--section-y); background: var(--navy); overflow: hidden; }
.results__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.results::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 35, 64, .96) 40%, rgba(14, 48, 85, .7)); }
.results__inner { position: relative; z-index: 2; display: flex; justify-content: flex-end; }
.results__content { width: min(560px, 100%); }
.results__content .h2 { margin-bottom: clamp(24px, 4vw, 40px); }

.results__list { display: grid; gap: 12px; }
.result { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: var(--radius); transition: background-color .3s; }
.result:hover { background: rgba(255, 255, 255, .07); }
.result img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.result h3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: 18px; color: var(--white); }
.result__price { font-size: 15px; color: var(--teal); }
.result p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .72); }
.result--accent { background: linear-gradient(90deg, rgba(14, 48, 85, .9), rgba(101, 189, 194, .55)); }
.result--accent:hover { background: linear-gradient(90deg, rgba(14, 48, 85, .95), rgba(101, 189, 194, .7)); }

/* ============================================================
   КОМАНДА
   ============================================================ */
.team__box {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(115deg, var(--teal) 0%, var(--navy) 75%);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.team__slider { overflow: hidden; }
.team__track { display: flex; gap: 24px; transition: transform .55s var(--ease); }
.member { flex: 0 0 calc(50% - 12px); }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.member h3 { margin: 0 0 4px; font-size: 20px; }
.member__role { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .78); }

.team__aside { display: flex; flex-direction: column; }
.team__title { font-size: clamp(24px, 2.6vw, 32px); }
.team__aside > p { font-size: 15px; color: rgba(255, 255, 255, .85); }
.team__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.team__tags li { padding: 8px 16px; background: rgba(255, 255, 255, .16); font-family: var(--font-cond); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .25); text-align: center; }
.stats b { display: block; font-family: var(--font-cond); font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.stats span { font-family: var(--font-cond); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255, 255, 255, .75); }

.team__controls { display: flex; gap: 10px; margin-top: 24px; }
.team__controls .ctrl { color: var(--white); }
.team__controls .ctrl:hover:not([disabled]) { background: var(--white); color: var(--navy); }

/* ============================================================
   ГРАФИК И ЗАПИСЬ
   ============================================================ */
.schedule { position: relative; padding-block: var(--section-y); background: var(--navy); overflow: hidden; }
.schedule__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.schedule::after { content: ''; position: absolute; inset: 0; background: linear-gradient(80deg, rgba(10, 35, 64, .95) 45%, rgba(14, 48, 85, .65)); }
.schedule__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr minmax(340px, .8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.schedule__info { color: var(--white); }
.schedule__text { max-width: 520px; color: rgba(255, 255, 255, .85); }

.hours { max-width: 460px; margin: 0 0 32px; }
.hours li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.hours span { font-family: var(--font-cond); font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; }
.hours b { margin-left: auto; padding: 4px 12px; background: rgba(255, 255, 255, .14); font-family: var(--font-cond); font-size: 13px; letter-spacing: 1px; white-space: nowrap; }

.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.booking .card__title, .booking .btn, .booking .form__status, .booking .form__note { grid-column: 1 / -1; }

/* ============================================================
   СКИДКИ
   ============================================================ */
.promo { position: relative; padding-block: clamp(56px, 7vw, 96px); background: var(--navy-deep); overflow: hidden; }
.promo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 35, 64, .92), rgba(10, 35, 64, .35)); }
.promo__inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; color: var(--white); }
.promo__content { max-width: 560px; }
.promo__content p { color: rgba(255, 255, 255, .85); }
.promo__badge { display: grid; justify-items: center; gap: 2px; margin: 0; padding: 24px 36px; border: 2px solid rgba(255, 255, 255, .35); text-align: center; }
.promo__badge span { font-family: var(--font-cond); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.promo__badge b { font-family: var(--font-cond); font-size: clamp(44px, 6vw, 72px); line-height: 1; color: var(--teal); }
.promo__badge i { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .75); }

/* ============================================================
   БЛОГ
   ============================================================ */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post__body { padding: 22px; }
.post__meta { margin: 0 0 8px; font-family: var(--font-cond); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--teal-dark); }
.post h3 { font-size: 20px; margin-bottom: .4em; }
.post__body p { font-size: 14px; color: var(--muted); }
.post__more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-cond); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--navy); }
.post__more::after { content: '→'; transition: transform .25s; }
.post:hover .post__more::after { transform: translateX(4px); }

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews__slider { max-width: 840px; margin-inline: auto; overflow: hidden; }
.reviews__track { display: flex; transition: transform .55s var(--ease); }
.review { flex: 0 0 100%; padding-inline: 4px; text-align: center; }
.review blockquote { margin: 0 0 20px; font-size: clamp(17px, 2vw, 22px); line-height: 1.6; color: var(--ink); }
.review__author b { display: block; font-family: var(--font-cond); font-size: 18px; }
.review__author span { font-size: 13px; color: var(--muted); }
.reviews__controls { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.reviews__controls .ctrl { color: var(--navy); }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer { padding-block: clamp(48px, 6vw, 80px) 28px; background: var(--navy); color: rgba(255, 255, 255, .8); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.footer__col--wide p { max-width: 420px; font-size: 14px; }
.footer__col--wide .logo { margin-bottom: 20px; }
.footer__title { font-size: 20px; color: var(--white); }
.contacts li { display: flex; flex-direction: column; margin-bottom: 14px; }
.contacts span { font-family: var(--font-cond); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.contacts a:hover, .footer__nav a:hover { color: var(--teal); }
.footer__nav li { margin-bottom: 10px; font-size: 14px; }

.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .28); color: var(--white); transition: background-color .25s, border-color .25s, color .25s; }
.socials a:hover { background: var(--teal); border-color: var(--teal); }

.footer__legal { margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 12px; color: rgba(255, 255, 255, .6); }
.footer__legal p { margin: 0 0 6px; }
.footer__warning { color: rgba(255, 255, 255, .85); font-weight: 500; }

/* плавающая кнопка записи */
.callback {
  position: fixed; z-index: 80; right: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: var(--teal); color: var(--white);
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(14, 48, 85, .3);
  font-family: var(--font-cond); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s, transform .3s, visibility .3s, background-color .25s;
}
body.is-scrolled .callback { opacity: 1; visibility: visible; transform: none; }
.callback:hover { background: var(--teal-dark); }

/* ---------- Появление блоков при прокрутке ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); }
[data-reveal].is-visible { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--wide { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .ticker { display: none; }
  .about__grid, .team__box, .schedule__grid { grid-template-columns: 1fr; }
  .results__inner { justify-content: flex-start; }
  .member { flex: 0 0 calc(50% - 12px); }
  .ask__box { grid-template-columns: 1fr; }
  .ask__side { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .burger { display: flex; }
  .nav {
    position: fixed; inset: calc(var(--topbar-h) + var(--header-h)) 0 auto;
    display: grid; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  body.is-scrolled .nav { inset: var(--header-h) 0 auto; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 16px; }

  .hero__body { padding-bottom: clamp(90px, 12vh, 140px); }
  .hero__counter { display: none; }
  .hero__nav { display: none; }

  .ask { margin-top: -40px; }
  .ask__form { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; }

  .member { flex: 0 0 100%; }
  .posts { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
}

@media (max-width: 560px) {
  .topbar__item:not(.topbar__item--end) { display: none; }
  .topbar__item--end { margin-inline: auto; font-size: 11px; }
  .services__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; text-align: left; }
  .stats li { display: flex; align-items: baseline; gap: 10px; }
  .callback span { display: none; }
  .callback { padding: 16px; border-radius: 50%; }
}

/* ---------- Уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__slide.is-active .hero__img { animation: none; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__slide.is-active :is(.hero__eyebrow, .hero__title-outline, .hero__title-solid, .hero__bottom > *) { opacity: 1; transform: none; }
}

@media print {
  .topbar, .header, .hero__nav, .callback, .team__controls, .reviews__controls { display: none !important; }
  body { color: #000; }
}
