﻿/* ============================================================
   Юлия Голубева — дерматовенеролог
   Тёмно-тёплая редакционная типографика, полные экраны
   ============================================================ */

:root {
  --cream: #f3ede4;
  --cream-2: #efe6da;
  --sand: #e6d8c6;
  --ink: #17120e;
  --ink-2: #241c16;
  --muted: #6c5f55;
  --clay: #9c6b52;
  --line: rgba(23, 18, 14, .16);
  --line-light: rgba(243, 237, 228, .22);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --brand: "Montserrat", "Inter", -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pad: clamp(20px, 4.2vw, 80px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: clamp(64px, 9vh, 96px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, .55vw + 12px, 17px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--cream); }

.wrap { width: min(1320px, 100% - var(--pad) * 2); margin-inline: auto; }

/* ---------- типографика ---------- */

.eyebrow {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 clamp(18px, 2vw, 34px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: clamp(28px, 4vw, 54px);
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.eyebrow--light { color: rgba(243, 237, 228, .72); }

.h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -.015em;
  margin: 0 0 clamp(24px, 3vw, 44px);
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

/* ---------- панели ---------- */

.panel {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 9vh, 120px) 0;
}

/* ---------- анимации появления ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; transform: translateY(115%); transition: transform 1.15s var(--ease); }
.is-in .line > span { transform: none; }
.line:nth-child(2) > span { transition-delay: .07s; }
.line:nth-child(3) > span { transition-delay: .14s; }
.line:nth-child(4) > span { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- шапка ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  transform: translateY(-105%);
  transition: transform .6s var(--ease), background .4s ease, backdrop-filter .4s;
  background: rgba(243, 237, 228, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar.is-visible { transform: none; }
.topbar__brand { display: flex; align-items: center; gap: 13px; }
.brand-logo {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: var(--ink);
  transition: transform .6s var(--ease);
}
.brand-logo svg { width: 100%; height: 100%; display: block; }
.topbar__brand:hover .brand-logo { transform: rotate(-4deg) scale(1.04); }
.topbar__name { display: flex; flex-direction: column; gap: 3px; }
.topbar__name b {
  font-family: var(--brand);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.topbar__name em {
  font-style: normal;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .19em;
  text-transform: uppercase;
  line-height: 1;
}
.topbar__nav { display: flex; gap: clamp(14px, 2.4vw, 38px); font-size: 13px; letter-spacing: .02em; }
.topbar__nav a { position: relative; padding-bottom: 3px; }
.topbar__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.topbar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.topbar__cta {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: background .4s ease, color .4s ease;
}
.topbar__cta:hover { background: var(--ink); color: var(--cream); }
.topbar__cta-short { display: none; }

/* ---------- индикатор ---------- */

.rail {
  position: fixed;
  right: clamp(14px, 2vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
  mix-blend-mode: difference;
  color: #fff;
}
.rail__line { width: 1px; height: 86px; background: rgba(255, 255, 255, .35); display: block; position: relative; }
.rail__line i { position: absolute; inset: 0 auto auto 0; width: 100%; height: 0; background: #fff; display: block; }
.rail__total { opacity: .6; }
.rail.is-light { mix-blend-mode: normal; color: var(--muted); }
.rail.is-light .rail__line { background: rgba(23, 18, 14, .18); }
.rail.is-light .rail__line i { background: var(--ink); }

/* ============================================================
   01 · ГЕРОЙ
   ============================================================ */

.hero {
  position: relative;
  display: block;
  padding: 0;
  min-height: 100svh;
  background: var(--cream);
  overflow: hidden;
}

.hero__text {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 54%;
  min-height: 100svh;
  padding: clamp(90px, 11vh, 150px) 0 clamp(56px, 8vh, 96px) var(--pad);
}

.hero__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(58px, 10.4vw, 158px);
  line-height: .86;
  letter-spacing: -.03em;
  margin: 0 0 clamp(26px, 3.4vw, 46px);
}

.hero__lead {
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.58;
  max-width: 32ch;
  text-wrap: pretty;
  color: var(--ink);
  margin: 0 0 clamp(34px, 4vw, 58px);
}

.hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 46px);
  padding: 0;
  margin: 0 0 clamp(34px, 5vw, 64px);
  border-top: 1px solid var(--line);
  padding-top: clamp(16px, 2vw, 24px);
  max-width: 620px;
}
.hero__meta li { display: flex; flex-direction: column; gap: 2px; }
.hero__meta b {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  line-height: 1;
}
.hero__meta span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: flex-start;
}
.scroll-cue svg { width: 14px; height: 26px; animation: cue 2.6s var(--ease) infinite; }
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: .45; }
  50% { transform: translateY(7px); opacity: 1; }
}

.hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 48%;
  z-index: 1;
  background: transparent;
}
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 52% 22%;
  will-change: transform;
  -webkit-mask-image: none;
  mask-image: none;
}

/* второй слой: крем «затекает» на фото, части встречаются в одной зоне */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: none;
}
.hero__caption {
  position: absolute;
  right: clamp(14px, 1.6vw, 26px);
  bottom: clamp(18px, 3vh, 34px);
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(243, 237, 228, .8);
}

/* ============================================================
   02 · МАНИФЕСТ
   ============================================================ */

.manifesto { background: var(--cream); overflow: hidden; }
.manifesto .wrap {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
}
.manifesto__left { position: relative; z-index: 2; }

.manifesto__text {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4.9vw, 74px);
  line-height: 1.02;
  letter-spacing: -.018em;
  margin: 0;
  max-width: 17ch;
}

.manifesto__right {
  padding-bottom: clamp(6px, 1vw, 16px);
  padding-left: clamp(0px, 2vw, 34px);
  border-left: 1px solid var(--line);
}
.manifesto__right > p:not(.manifesto__sign) {
  color: var(--muted);
  font-size: clamp(14px, .95vw, 16px);
  max-width: 44ch;
}
.manifesto__sign {
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--display);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.2;
  color: var(--ink);
}
.manifesto__sign em {
  font-style: normal;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   03 · О ВРАЧЕ
   ============================================================ */

.about {
  min-height: 100svh;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  background: var(--cream-2);
}

.about__media {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 100%;
  background: #ded3c5;
}
.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  will-change: transform;
}

.about__text {
  max-width: 760px;
  align-self: center;
  padding: clamp(76px, 9vh, 110px) clamp(24px, 4vw, 72px) clamp(56px, 7vh, 86px) clamp(28px, 4.6vw, 78px);
}
.about .h2 { font-size: clamp(32px, 4.4vw, 62px); }
.about__text p { color: var(--muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px);
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding-top: clamp(20px, 2.4vw, 30px);
  border-top: 1px solid var(--line);
}
.stats__item dt {
  font-family: var(--display);
  font-size: clamp(30px, 3.1vw, 46px);
  font-weight: 300;
  line-height: .95;
  margin-bottom: 6px;
}
.stats__item dd { margin: 0; font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   04 · НАПРАВЛЕНИЯ
   ============================================================ */

.services { background: var(--cream); }

.services__intro {
  background: var(--cream);
  padding: clamp(44px, 6.2vh, 76px) 0 clamp(14px, 2.2vh, 26px);
}
.services__intro .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 24%);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.services__side { padding-bottom: clamp(6px, 1vw, 14px); }
.services__head .h2 { font-size: clamp(30px, 3.85vw, 54px); max-width: 22ch; }
.services__count {
  display: block;
  font-family: var(--display);
  font-size: clamp(26px, 2.4vw, 38px);
  color: var(--clay);
  letter-spacing: .04em;
  margin-bottom: clamp(14px, 2vw, 22px);
}
.services__note {
  color: var(--muted);
  font-size: clamp(13.5px, .95vw, 16px);
  max-width: 34ch;
  margin: 0;
}

/* ---------- темы: компактный список вместо шести экранов ---------- */

.topics {
  background: var(--cream);
  padding: clamp(6px, 1.4vh, 18px) 0 clamp(64px, 8.5vh, 104px);
}
.topics__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.topic {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1.12fr) minmax(0, 1.62fr) minmax(0, .76fr);
  grid-template-areas: "num name text tags";
  gap: clamp(12px, 2.4vw, 44px);
  align-items: start;
  padding: clamp(12px, 1.5vw, 19px) 0;
  border-bottom: 1px solid var(--line);
  transition: background .45s var(--ease);
}
.topic:hover { background: rgba(156, 107, 82, .055); }
.topic__num {
  grid-area: num;
  font-family: var(--display);
  font-size: clamp(19px, 1.5vw, 24px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--clay);
  opacity: .72;
  padding-top: 2px;
}
.topic__name {
  grid-area: name;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(20px, 1.95vw, 29px);
  line-height: 1.06;
  letter-spacing: -.012em;
  margin: 0;
  transition: color .4s var(--ease);
}
.topic:hover .topic__name { color: var(--clay); }
.topic__text {
  grid-area: text;
  margin: 0;
  color: var(--muted);
  font-size: clamp(12.8px, .91vw, 14.2px);
  line-height: 1.56;
}
.topic__tags {
  grid-area: tags;
  list-style: none;
  margin: 0;
  padding: 2px 0 0;
  display: flex;
  flex-wrap: wrap;
}
.topic__tags li {
  font-size: 9.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .9;
}
.topic__tags li + li::before {
  content: "·";
  margin: 0 8px;
  color: var(--clay);
  opacity: .7;
}

@media (max-width: 1100px) {
  .topic {
    grid-template-columns: 3rem minmax(0, 1fr);
    grid-template-areas:
      "num name"
      ".   text"
      ".   tags";
    row-gap: 10px;
  }
  .topic__num { padding-top: 4px; }
}

/* ============================================================
   05 · ДЕРМАТОСКОПИЯ
   ============================================================ */

.dermo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  background: var(--ink);
  color: var(--cream);
}
.dermo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 8.5vh, 104px) clamp(28px, 5vw, 90px);
  order: 1;
}
.dermo__text .h2 { color: var(--cream); font-size: clamp(32px, 4.6vw, 64px); }
.dermo__text p { color: rgba(243, 237, 228, .72); max-width: 42ch; }

.dermo__media { order: 2; position: relative; overflow: hidden; min-height: 60vh; }
.dermo__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }

.dermo__facts { margin: clamp(24px, 3vw, 36px) 0 0; padding-top: clamp(18px, 2.2vw, 28px); border-top: 1px solid var(--line-light); display: grid; gap: 14px; }
.dermo__facts div { display: grid; grid-template-columns: minmax(88px, auto) 1fr; gap: 14px; align-items: baseline; }
.dermo__facts dt { font-family: var(--display); font-size: clamp(20px, 1.9vw, 27px); font-weight: 300; color: var(--cream); white-space: nowrap; }
.dermo__facts dd { margin: 0; font-size: 13px; color: rgba(243, 237, 228, .6); }

/* ============================================================
   06 · ДЕТИ
   ============================================================ */

.kids {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 5vw, 96px);
  align-items: center;
  padding-inline: var(--pad);
  background: var(--sand);
}
.kids__media { position: relative; overflow: hidden; height: min(74vh, 700px); }
.kids__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; will-change: transform; }
.kids__text { max-width: 620px; }
.kids__text p { color: #5d5148; }
.kids__facts {
  margin-top: clamp(24px, 3vw, 38px);
  padding-top: clamp(18px, 2.2vw, 26px);
  border-top: 1px solid rgba(23, 18, 14, .18);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted) !important;
}
.kids__facts b {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 300;
  letter-spacing: 0;
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

/* ============================================================
   07 · ОБРАЗОВАНИЕ
   ============================================================ */

.edu { background: var(--cream); }
.edu__head { margin-bottom: clamp(30px, 4vw, 52px); }
.edu__body { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(30px, 5vw, 90px); align-items: start; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(11px, 1.4vw, 16px) 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__year { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); padding-top: 5px; }
.timeline b { font-weight: 500; font-size: 15.5px; letter-spacing: .005em; display: block; margin-bottom: 3px; }
.timeline p { color: var(--muted); font-size: 13.5px; margin: 0; }

.edu__side img { width: 100%; height: auto; margin-bottom: 24px; }
.edu__side-note {
  font-size: 12.5px;
  color: var(--muted);
  padding-left: 16px;
  border-left: 1px solid var(--line);
  margin-bottom: 18px;
}

/* заголовок-фраза вместо крупного заголовка */
.booking .h2.booking__title {
  font-size: clamp(21px, 2.45vw, 34px);
  line-height: 1.26;
  letter-spacing: -.008em;
  max-width: 30ch;
  margin-bottom: 0;
}

/* ============================================================
   08 · ЗАПИСЬ НА ПРИЁМ
   ============================================================ */

.booking { background: var(--cream-2); padding-block: clamp(58px, 7vh, 92px); }
.booking .h2 { font-size: clamp(30px, 3.8vw, 56px); margin-bottom: clamp(18px, 2vw, 28px); }
.booking__head { max-width: 720px; margin-bottom: clamp(24px, 3.2vw, 44px); }
.booking__lead { color: var(--muted); max-width: 46ch; margin: 0; }

.routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.route {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 30px);
  background: var(--cream);
  border: 1px solid rgba(23, 18, 14, .12);
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
  min-height: clamp(280px, 38vh, 380px);
}
.route:hover { background: #fbf7f1; border-color: rgba(23, 18, 14, .3); }
.route:hover .route__arrow { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.route__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}
.route__kicker {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay);
}
.route__arrow {
  width: 38px; height: 38px;
  border: 1px solid rgba(23, 18, 14, .2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .4s ease, color .4s ease, border-color .4s ease, transform .5s var(--ease);
}
.route__arrow svg { width: 15px; height: 15px; }
.route__arrow:hover { transform: scale(1.06); }

.route h3 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: clamp(20px, 2.6vw, 34px) 0 clamp(12px, 1.4vw, 16px);
}
.route p {
  color: var(--muted);
  font-size: clamp(13px, .9vw, 14.5px);
  max-width: 38ch;
  margin: 0 0 clamp(14px, 1.6vw, 18px);
}
.route__note {
  margin: 0 0 clamp(14px, 1.6vw, 18px);
  padding-left: 12px;
  border-left: 1px solid rgba(156, 107, 82, .45);
  font-size: 11.5px !important;
  line-height: 1.45;
  color: var(--muted);
  max-width: 44ch;
}

.route__foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.route__cta {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: opacity .4s ease;
}
.route__cta:hover { opacity: .55; }
.route__alt {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .4s ease, border-color .4s ease;
}
.route__alt:hover { color: var(--ink); border-color: rgba(23, 18, 14, .4); }
.route__alt::after { content: " ↗"; font-size: .9em; opacity: .6; }

/* ============================================================
   09 · КОНТАКТЫ
   ============================================================ */

.cta { padding: 0; justify-content: flex-end; background: var(--ink); color: var(--cream); overflow: hidden; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.9); }
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23, 18, 14, .1) 0%, rgba(23, 18, 14, .55) 45%, rgba(23, 18, 14, .88) 100%);
}
.cta__inner {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 10vh, 120px) var(--pad) 0;
  margin-top: auto;
}
.cta__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(44px, 7.4vw, 118px);
  line-height: .92;
  letter-spacing: -.025em;
  margin: 0 0 clamp(30px, 4vw, 56px);
  color: var(--cream);
}
.cta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(28px, 4vh, 48px);
  border-bottom: 1px solid var(--line-light);
}
.cta__link {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 300;
  letter-spacing: .01em;
  border-bottom: 1px solid rgba(243, 237, 228, .4);
  padding-bottom: .08em;
  transition: border-color .4s ease, color .4s ease;
}
.cta__link::after { content: "  ↗"; font-family: var(--sans); font-size: .55em; vertical-align: .35em; opacity: .7; }
.cta__link:hover { border-color: var(--cream); color: #fff; }
.cta__info { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243, 237, 228, .66); }
.cta__info p { margin: 0 0 4px; }

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  justify-content: space-between;
  padding: 22px var(--pad) 26px;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(243, 237, 228, .45);
}
.footer__disclaimer { text-transform: none; letter-spacing: .02em; max-width: 52ch; opacity: .85; }

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1100px) {
  .rail { display: none; }
  .topbar__nav { display: none; }
  .topbar__cta-full { display: none; }
  .topbar__cta-short { display: inline; }
  .topbar__cta { padding: 10px 18px; }
}

@media (max-width: 900px) {
  .panel { min-height: auto; padding: clamp(64px, 10vh, 110px) 0; }

  .hero { display: flex; flex-direction: column; justify-content: flex-start; min-height: 100svh; }
  .hero__text {
    order: 2;
    max-width: none;
    min-height: 0;
    flex: 1;
    justify-content: center;
    padding: 30px var(--pad) clamp(40px, 7vh, 60px);
  }
  .hero__media {
    order: 1;
    position: relative;
    inset: auto;
    width: 100%;
    height: 54svh;
  }
  .hero__media img {
    object-position: 58% 8%;
    -webkit-mask-image: linear-gradient(180deg, #000 58%, rgba(0,0,0,.4) 80%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(180deg, #000 58%, rgba(0,0,0,.4) 80%, rgba(0,0,0,0) 100%);
  }
  .hero__veil { display: none; }
  .hero__title { font-size: clamp(46px, 15vw, 92px); }
  .hero__lead { max-width: 32ch; }
  .hero__meta { gap: 22px; }
  .hero__caption { display: none; }
  .scroll-cue { display: none; }

  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__media { position: static; width: 100%; margin-top: 36px; }
  .manifesto__media img { width: 100%; max-height: 46vh; object-fit: cover; }

  .about, .kids, .dermo { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .about__media, .kids__media { height: 58svh; min-height: 0; }
  .about__text, .kids__text { padding: clamp(36px, 6vh, 56px) var(--pad); max-width: none; align-self: auto; }
  .dermo__text { order: 2; padding: clamp(40px, 6vh, 60px) var(--pad); }
  .dermo__media { order: 1; min-height: 48svh; }
  .dermo__facts div { grid-template-columns: 96px 1fr; }

  .svc { grid-template-columns: 1fr; min-height: auto; padding: clamp(40px, 6vh, 64px) var(--pad); gap: 26px; }
  .svc--rev .svc__media { order: 0; }
  .svc__media { height: 56svh; }
  .svc__body { max-width: none; }

  .edu__body { grid-template-columns: 1fr; }
  .edu__side { display: grid; gap: 16px; }
  .timeline li { grid-template-columns: 106px 1fr; }


  .cta { min-height: 100svh; }
  .footer { font-size: 9.5px; }
}

@media (max-width: 560px) {
  .hero__meta { gap: 16px 26px; }
  .hero__meta b { font-size: 26px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .stats__item dt { font-size: 30px; }
  .cta__row { flex-direction: column; align-items: flex-start; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .footer { flex-direction: column; gap: 8px; }
}

/* ============================================================
   МОБИЛЬНЫЕ УТОЧНЕНИЯ (перекрывают базовые правила)
   ============================================================ */

@media (max-width: 900px) {
  .hero { padding: 0; }
  .cta__bg { object-position: 30% 18%; }
  .routes { grid-template-columns: 1fr; }
  .route { min-height: 0; padding: 26px 22px 24px; }
  .route h3 { margin-top: 26px; }
  .manifesto .wrap { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .manifesto__right {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 26px;
  }
  .manifesto__text { max-width: 20ch; }

  .services__intro .wrap { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .services__side { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
  .services__count { margin: 0; }
  .services__head .h2 { max-width: none; }

  .hero__media { height: 48svh; }
  .hero__text { padding: 22px var(--pad) 34px; }
  .hero__lead { margin-bottom: 22px; font-size: 15px; }
  .hero__meta {
    margin-bottom: 0;
    padding-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 0 12px;
  }
  .hero__meta b { font-size: 24px; }
  .hero__meta span { font-size: 9px; letter-spacing: .1em; }
  .hero__title { font-size: clamp(44px, 13vw, 78px); margin-bottom: 20px; }

}

@media (hover: none) {
  .svc:hover .svc__media img { transform: none; }
}

/* ---------- индекс направлений ---------- */

.services__intro {
  justify-content: space-between;
  padding-bottom: clamp(0px, 2vh, 24px);
}
.services__intro .wrap { margin-top: auto; margin-bottom: auto; padding-top: 0; }

/* ---------- «один экран — один прокрут» на больших экранах ---------- */

@media (min-width: 1100px) and (pointer: fine) {
  html { scroll-snap-type: y proximity; }
  .panel, .services__intro { scroll-snap-align: start; scroll-snap-stop: normal; }
  .booking { scroll-snap-align: start; }
}

/* ---------- инстаграм ---------- */

.topbar__actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.ig {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color .4s ease;
  white-space: nowrap;
}
.ig svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  transition: transform .5s var(--ease);
}
.ig:hover { color: var(--ink); }
.ig:hover svg { transform: scale(1.08) rotate(-4deg); }

.ig--light { color: rgba(243, 237, 228, .72); }
.ig--light:hover { color: var(--cream); }

.cta__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cta__aside .cta__info { margin-top: 4px; }

@media (max-width: 900px) {
  .ig--top span { display: none; }
  .ig--top { color: var(--ink); }
}


/* визуально скрытый текст (ключевой префикс в H1) */
.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;
}


.faq {
  background: var(--cream);
  padding: clamp(52px, 7vh, 92px) 0 clamp(46px, 6vh, 78px);
  border-top: 1px solid var(--line);
}
.faq__head { max-width: 780px; margin-bottom: clamp(22px, 3vw, 38px); }
.faq__head .h2 { font-size: clamp(26px, 3.2vw, 46px); margin-bottom: clamp(12px, 1.6vw, 18px); }
.faq__lead { color: var(--muted); margin: 0; max-width: 56ch; font-size: clamp(14.5px, 1vw, 16px); }

.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: clamp(13px, 1.7vw, 19px) 0;
  font-size: clamp(14.5px, 1.05vw, 16.5px);
  font-weight: 500;
  transition: color .35s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--clay); }
.qa summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--clay);
  flex: 0 0 auto;
}
.qa[open] summary::after { content: "–"; }
.qa p {
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  color: var(--muted);
  max-width: 62ch;
  font-size: clamp(13.5px, .98vw, 15px);
  line-height: 1.62;
}

