/* «Муар Клиника», Ставрополь — центр доказательной и превентивной медицины.
   Направление (unslop):
   продукт — медицинская клиника для всей семьи на двух адресах: неврология и рефлексотерапия, гинекология,
     эндокринология, УЗИ, анализы, ДНК-тесты; косметология вторична;
   характер — спокойно, по-врачебному ясно, бережно; без косметического глянца;
   мир — светлые кабинеты, стеклянный фасад, неоновая бабочка на ресепшене, их персиково-сиреневый градиент;
   моменты — подход клиники словами основательницы, направления с ценой приёма, врачи, прайс, ДНК-тесты, два адреса;
   подпись — бабочка из логотипа и тонкая петляющая линия её полёта. */

:root {
  /* Цвета старого сайта muare-clinique.ru (вычисленные) */
  --peach: #FFE2D8;       /* левый край их градиента */
  --orchid: #EAADE0;      /* правый край градиента — только декор */
  --coral: #FF8562;       /* их акцентный текст — здесь не используется для текста (контраст 2.5:1) */
  /* Свои добавки — медицинская основа, бренд акцентом */
  --plum: #6E3A6B;        /* кнопки и акцент: белый текст 8.5:1 */
  --plum-2: #5E3460;      /* наведение */
  --lilac: #B77FAE;       /* бабочка и линии */
  --tint: #FBF5F9;        /* фон секций */
  --tint-2: #F4E9F1;
  --ink: #2B2230;         /* текст 15:1 */
  --ink-2: #4E4553;
  --mute: #6E6475;        /* мета, 5.6:1 */
  --line: rgba(43, 34, 48, .1);
  --line-strong: rgba(43, 34, 48, .18);
  --shadow: 0 1px 2px rgba(43, 34, 48, .05), 0 14px 36px rgba(43, 34, 48, .08);

  --font: "Source Sans 3", system-ui, sans-serif;
  --serif: "Brygada 1918", Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(88px, 11vw, 152px);
  --r: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);     /* появление блоков */
  --ease-soft: cubic-bezier(.4, 0, .2, 1);  /* ховеры — ровно, без рывка */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 18px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--orchid); color: var(--ink); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 4px; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.small { font-size: 14px; color: var(--mute); }
mark.stub { background: #FFF1C9; color: #6B4E00; padding: 0 4px; border-radius: 4px; }

/* ---------- Типографика ---------- */
.eyebrow { font-size: 16px; font-weight: 600; color: var(--plum); }
.h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.9vw, 54px); line-height: 1.12; letter-spacing: -.012em; text-wrap: balance; }
.h1 span { display: block; color: var(--plum); }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 1.8vw, 24px); line-height: 1.3; }
.lead { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.55; color: var(--ink-2); }
.sec { padding-block: var(--sec); }
.sec-tint { background: var(--tint); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(44px, 5vw, 72px); max-width: 860px; }
.sec-head.row { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.sec-head.row > div { display: grid; gap: 18px; max-width: 860px; }
.sec-lead { font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.sec-note { color: var(--mute); font-size: 16px; text-align: right; display: grid; gap: 4px; justify-items: end; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 1.5px; background: var(--lilac); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px;
  background: var(--plum); color: #fff; font-weight: 600; font-size: 16px; line-height: 1.2; white-space: nowrap; border: 1px solid transparent;
  transition: background-color .55s var(--ease-soft), color .55s var(--ease-soft), border-color .55s var(--ease-soft), box-shadow .55s var(--ease-soft), transform .3s var(--ease-soft);
}
.btn svg.i { transition: transform .6s var(--ease-soft); }
.btn:hover { background: var(--plum-2); box-shadow: 0 10px 24px rgba(110, 58, 107, .22); }
.btn:hover svg.i { transform: translate(1px, -1px); }
.btn:active { transform: scale(.98); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { background: var(--tint-2); border-color: var(--lilac); color: var(--plum-2); box-shadow: none; }
.btn-line:hover svg.i { transform: none; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-sm svg.i { width: 18px; height: 18px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btns.center { justify-content: center; margin-top: 40px; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: box-shadow .55s var(--ease-soft); }
.hdr.is-solid { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(43, 34, 48, .05); }
.hdr-in { height: 84px; display: flex; align-items: center; gap: 24px; }
.brand { flex: none; margin-right: auto; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 16px; font-weight: 500; white-space: nowrap; transition: background-color .5s var(--ease-soft), color .5s var(--ease-soft); }
.nav a:hover { background: var(--tint-2); color: var(--plum); }
.hdr-contact { display: grid; text-align: right; line-height: 1.25; }
.hdr-phone { font-weight: 600; font-size: 17px; white-space: nowrap; transition: color .5s var(--ease-soft); }
.hdr-phone:hover { color: var(--plum); }
.hdr-contact span { font-size: 13px; color: var(--mute); white-space: nowrap; }
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; transition: background-color .5s var(--ease-soft), border-color .5s var(--ease-soft); }
.burger:hover { background: var(--tint-2); border-color: var(--lilac); }
.burger i { position: absolute; left: 13px; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .45s var(--ease); }
.burger i:first-child { top: 17px; }
.burger i:last-child { top: 23px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3px) rotate(-45deg); }
/* меню поверх страницы — не раздвигает sticky-шапку */
.mnav { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 32px rgba(43, 34, 48, .12); }
.mnav nav { display: grid; padding-block: 12px 24px; }
.mnav nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 22px; transition: color .5s var(--ease-soft); }
.mnav nav > a:hover { color: var(--plum); }
.mnav-foot { display: grid; gap: 6px; padding-top: 20px; font-weight: 600; }
.mnav-foot span { font-weight: 400; color: var(--mute); font-size: 15px; }
body.menu-open { overflow: hidden; }

.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: #fff; transition: background-color .55s var(--ease-soft), color .55s var(--ease-soft), border-color .55s var(--ease-soft); }
.socials a:hover { background: #fff; color: var(--plum); border-color: #fff; }
.socials svg { width: 19px; height: 19px; }

/* ---------- Первый экран: их градиент мягко, только здесь ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 8vw, 112px); background: linear-gradient(110deg, #FFF4F0 0%, #FCEEF6 55%, #F7E8F5 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.rating { display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px 12px 16px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); font-size: 14px; line-height: 1.35; color: var(--ink-2); transition: box-shadow .55s var(--ease-soft); }
.rating:hover { box-shadow: 0 1px 2px rgba(43, 34, 48, .05), 0 18px 40px rgba(43, 34, 48, .14); }
.rating b { font-family: var(--serif); font-weight: 500; font-size: 32px; color: var(--ink); line-height: 1; }
.rating small { color: var(--mute); font-size: 13px; }
.stars { display: inline-flex; gap: 2px; color: #C8963E; }
.stars svg { width: 15px; height: 15px; }
.addr { display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); }
.addr li { display: flex; align-items: center; gap: 8px; }
.addr svg.i { width: 17px; height: 17px; color: var(--plum); }
.hero-visual { position: relative; min-height: 560px; }
.founder { position: absolute; right: 4%; bottom: 0; width: 62%; max-width: 420px; }
.bfly { position: absolute; left: 6%; top: 4%; width: 92px; height: auto; opacity: .9; }
.flight { position: absolute; inset: 0; width: 100%; height: 100%; }
.flight path { fill: none; stroke: var(--lilac); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7; transition: stroke-dashoffset 2.6s var(--ease) .5s; }
.hero-visual.is-in .flight path { stroke-dashoffset: 0; }
.founder-name { position: absolute; left: 4%; bottom: 40px; display: grid; gap: 2px; padding: 14px 20px; border-radius: var(--r); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow); font-size: 14px; line-height: 1.4; color: var(--mute); max-width: 300px; }
.founder-name b { font-size: 17px; color: var(--ink); font-weight: 600; }

/* ---------- О клинике: цитата основательницы ---------- */
.about { padding-block: clamp(72px, 9vw, 120px); }
.about-in { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px 40px; max-width: 1060px; }
.about-bfly { width: 96px; height: auto; grid-row: span 2; }
.about blockquote { font-family: var(--serif); font-size: clamp(21px, 2.1vw, 28px); line-height: 1.5; color: var(--ink); }
.about-sign { display: grid; font-size: 15px; color: var(--mute); }
.about-sign b { font-size: 18px; color: var(--plum); font-weight: 600; }

/* ---------- Направления ---------- */
.dirs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.dirs a { height: 100%; display: grid; align-content: space-between; gap: 18px; min-height: 120px; padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: border-color .55s var(--ease-soft), background-color .55s var(--ease-soft), box-shadow .55s var(--ease-soft); }
.dirs b { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.25; }
.dirs span { font-size: 14px; color: var(--mute); transition: color .55s var(--ease-soft); }
.dirs a:hover { border-color: var(--orchid); background: var(--tint); box-shadow: var(--shadow); }
.dirs a:hover span { color: var(--plum); }

/* ---------- Почему выбирают ---------- */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.why-item { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: #fff; }
.why-item p { color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.why-item b { color: var(--ink); font-weight: 600; }
.ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--tint-2); color: var(--plum); margin-bottom: 4px; }
.ico svg.i { width: 24px; height: 24px; }
.facade { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }
.facade img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--r); }

/* ---------- Специалисты ---------- */
.doctors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px) clamp(16px, 2vw, 24px); }
.doctors:not(.is-open) .dr.more { display: none; }
.dr { display: grid; gap: 6px; align-content: start; }
.dr img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--r); background: var(--tint); margin-bottom: 10px; }
.dr h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.3; }
.dr p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dr span { font-size: 14px; color: var(--plum); font-weight: 600; }
#doc-more svg.i, #dna-more svg.i { transition: transform .6s var(--ease-soft); }
#doc-more[aria-expanded="true"] svg.i, #dna-more[aria-expanded="true"] svg.i { transform: rotate(180deg); }

/* ---------- Цены ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin-bottom: 32px; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 15px; font-weight: 600; white-space: nowrap; background: #fff; transition: background-color .55s var(--ease-soft), color .55s var(--ease-soft), border-color .55s var(--ease-soft); }
.tabs button:hover { border-color: var(--lilac); background: var(--tint-2); }
.tabs button[aria-selected="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.prices { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.panel { min-width: 0; padding: 8px 28px; border-radius: var(--r); background: #fff; }
.panel:not([hidden]) { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.price-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list span { font-size: 17px; line-height: 1.45; }
.price-list small { display: block; font-size: 14px; color: var(--mute); margin-top: 2px; }
.price-list b { font-weight: 600; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices-side { position: sticky; top: 108px; display: grid; gap: 16px; justify-items: start; padding: 32px; border-radius: var(--r); background: #fff; }
.side-bfly { width: 56px; height: auto; }
.prices-side p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.prices-side .small { font-size: 13px; color: var(--mute); }
.side-phone { font-size: 20px; font-weight: 600; transition: color .5s var(--ease-soft); }
.side-phone:hover { color: var(--plum); }

/* ---------- ДНК-тесты ---------- */
.dna-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-bottom: clamp(44px, 5vw, 64px); }
.dna-head > div { display: grid; gap: 18px; }
.dna-head .ticks { color: var(--ink-2); font-size: 17px; }
.steps { display: grid; gap: 0; counter-reset: s; border-left: 1px solid var(--orchid); padding-left: 28px; }
.steps li { position: relative; padding: 0 0 22px; font-size: 17px; color: var(--ink-2); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: -45px; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--orchid); font-family: var(--serif); font-size: 16px; color: var(--plum); }
.tests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tests:not(.is-open) .test.more { display: none; }
.test { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 26px; border-radius: var(--r); border: 1px solid var(--line); }
.test h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; }
.test p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.test .price { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.test .price b { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--plum); }
.test .price s { color: var(--mute); font-size: 15px; }
.test.hit { background: var(--tint); border-color: var(--tint-2); }
.tag { position: absolute; right: 18px; top: 18px; padding: 2px 10px; border-radius: 999px; background: var(--plum); color: #fff; font-size: 13px; font-weight: 600; }

/* ---------- Обучение ---------- */
.edu { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.edu-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: start; }
.courses { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.courses li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.courses b { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.courses span { font-size: 16px; color: var(--ink-2); }

/* ---------- Отзывы ---------- */
.rev-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.rev-score { display: grid; justify-items: start; gap: 4px; padding: 18px 26px; border-radius: var(--r); background: var(--tint); }
.rev-score b { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1; }
.rev-score small { font-size: 13px; line-height: 1.4; color: var(--mute); }
.reviews { columns: 3 320px; column-gap: 16px; }
.rev { break-inside: avoid; display: grid; gap: 12px; margin-bottom: 16px; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.rev header { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 4px; }
.rev header img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.rev header div { display: grid; line-height: 1.3; }
.rev header b { color: var(--ink); font-weight: 600; }
.rev time { font-size: 14px; color: var(--mute); }

/* ---------- Контакты ---------- */
.contact-phone { font-family: var(--serif); font-size: 28px; color: var(--ink); transition: color .5s var(--ease-soft); }
.contact-phone:hover { color: var(--plum); }
.branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.branch { overflow: hidden; border-radius: var(--r); background: #fff; display: grid; grid-template-rows: auto 1fr; }
.map { position: relative; height: 260px; overflow: hidden; }
.map > img:first-child { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.9) brightness(1.05) sepia(.12) hue-rotate(250deg); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 54px; height: auto; transform: translate(-50%, -60%); filter: drop-shadow(0 4px 10px rgba(43, 34, 48, .25)); }
.branch-body { display: grid; gap: 12px; align-content: start; padding: 28px; }
.branch-body p { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.branch-body b { color: var(--ink); font-weight: 600; }
.branch-body .btns { margin-top: 6px; }

/* ---------- Подвал ---------- */
.ftr { padding: clamp(64px, 8vw, 96px) 0 32px; background: #2B2230; color: rgba(255, 255, 255, .78); font-size: 15px; }
.ftr-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr; gap: 40px; }
.ftr-brand { display: grid; gap: 22px; align-content: start; justify-items: start; }
.ftr-logo { width: 150px; }
.ftr h4 { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .55); margin-bottom: 16px; }
.ftr nav, .ftr-col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.ftr nav a, .ftr-col a { transition: color .5s var(--ease-soft); }
.ftr nav a:hover, .ftr-col a:hover { color: var(--orchid); }
.plates { display: flex; flex-wrap: wrap; gap: 8px; }
.plate { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; line-height: 1.3; transition: border-color .5s var(--ease-soft), background-color .5s var(--ease-soft); }
.plate:hover { border-color: var(--orchid); background: rgba(234, 173, 224, .08); }
.plate b { color: #fff; font-weight: 600; }
.plate span { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .7); }
.plate svg { width: 13px; height: 13px; color: #C8963E; }
.ftr-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.ftr-legal .warn { font-size: 15px; color: rgba(255, 255, 255, .78); }

/* ---------- Появление ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .flight path { stroke-dashoffset: 0; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1320px) {
  .nav a { padding: 8px 9px; font-size: 15px; }
  .hdr-in { gap: 16px; }
  .dirs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .nav, .hdr-contact { display: none; }
  .burger { display: block; }
  .hero-grid, .dna-head, .edu { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { min-height: 520px; max-width: 640px; width: 100%; }
  .dirs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .prices-side { position: static; }
  .doctors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rev-head { grid-template-columns: minmax(0, 1fr); }
  .rev-score { justify-self: start; }
  .facade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sec-head.row { grid-template-columns: minmax(0, 1fr); }
  .sec-note { text-align: left; justify-items: start; }
  .why, .branches { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  body { font-size: 17px; }
  .hdr-in { height: 68px; gap: 10px; }
  .brand img { height: 48px; }
  .hero-visual { min-height: 0; display: grid; gap: 16px; }
  .founder { position: relative; right: auto; width: 78%; margin: 0 auto; }
  .bfly { width: 64px; left: 2%; }
  .founder-name { position: relative; left: auto; bottom: auto; max-width: none; }
  .about-in { grid-template-columns: minmax(0, 1fr); }
  .about-bfly { width: 64px; grid-row: auto; }
  .btns .btn { flex: 1 1 auto; }
  .dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dirs a { min-height: 104px; padding: 16px; }
  .dirs b { font-size: 17px; }
  .doctors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dr h3 { font-size: 17px; }
  .dr p { font-size: 14px; }
  .tests { grid-template-columns: minmax(0, 1fr); }
  .facade img { height: 220px; }
  .panel { padding: 4px 18px; }
  .price-list li { gap: 14px; }
  .price-list span, .price-list b { font-size: 16px; }
  .rev { padding: 22px; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .edu-copy .btn { white-space: normal; height: auto; min-height: 56px; padding-block: 12px; text-align: left; }
  .h1 { font-size: 32px; }
  .h2 { font-size: 28px; }
  .hdr-in .btn { padding: 0 14px; height: 40px; font-size: 14px; }
  .burger { width: 40px; height: 40px; }
  .burger i { left: 11px; }
  .burger i:first-child { top: 15px; }
  .burger i:last-child { top: 21px; }
  .dirs { grid-template-columns: minmax(0, 1fr); }
}
