/* Гормон.Москва — стили по макету Figma «MEDO Clinic / ГОРМОН.МОСКВА» (десктоп 1440, мобайл 390) */

:root {
  --ink: #121413;
  --grey: #68706f;
  --mint: #dae6e2;
  --green: #648278;
  --green-dark: #4f6b61;
  --nav-link: #8ba89a;
  --bg: #f0f0f0;
  --bg-soft: #f7f7f7;
  --line: #d6dcda;
  --shadow-card: 0 10px 24px -8px rgba(0, 0, 0, .05);
  --pad-x: clamp(16px, 5.56vw, 80px);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-logo: 'Oswald', 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: 100px; }
.section--flush-top { padding-top: 40px; }

.h2 { font-weight: 600; font-size: 48px; line-height: 1.25; letter-spacing: -.01em; }
.heading { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.heading__text { font-size: 16px; line-height: 1.55; color: rgba(18, 20, 19, .7); }
.heading__text--grey { color: var(--grey); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: .01em; white-space: nowrap; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: #2c302e; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .filter:focus-visible, .more:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.btn--sm { padding: 10px 20px; font: 600 13px/1.2 var(--font-ui); letter-spacing: 0; }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 4px; padding: 10px 12px; font-weight: 400; font-size: 14px; letter-spacing: 0; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--xs { padding: 8px 12px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }

/* Навигация */
.nav { position: fixed; z-index: 50; top: 16px; left: 0; right: 0; padding-inline: 32px; pointer-events: none; }
.nav__bar { pointer-events: auto; max-width: 1376px; margin: 0 auto; height: 72px; padding: 0 64px; display: flex; align-items: center; justify-content: space-between; background: #fafafa; border-radius: 8px; transition: box-shadow .2s; }
.nav.is-scrolled .nav__bar { box-shadow: 0 10px 30px -12px rgba(18, 20, 19, .18); }
.logo { font: 500 22px/1 var(--font-logo); letter-spacing: -.5px; white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links > a { font: 400 13px/1.2 var(--font-ui); letter-spacing: .01em; color: var(--nav-link); transition: color .2s; }
.nav__links > a:hover { color: var(--ink); }
.nav__links > .nav__phone { display: none; }
.nav__burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .2s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 1. Первый экран */
.hero { position: relative; overflow: hidden; background: var(--mint); min-height: 764px; display: flex; align-items: flex-end; }
.hero__dna { position: absolute; left: calc(50% - 685px); top: -180px; width: 1535px; max-width: none; height: 856px; object-fit: cover; pointer-events: none; }
.hero__molecule { position: absolute; left: calc(50% - 428px); top: 248px; width: 216px; opacity: .8; pointer-events: none; }
.hero__content { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 79px 56px; display: flex; align-items: flex-start; }
.hero__title { width: 589px; flex-shrink: 0; font-weight: 500; font-size: 64px; line-height: 1.05; letter-spacing: -.03em; }
.hero__aside { width: 419px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__lead { font-size: 26px; line-height: 1.25; letter-spacing: -.01em; color: #142a27; }
.hero__aside .btn { font-weight: 500; }

/* 2. Симптомы */
.symptoms__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.symptom-card { position: relative; overflow: hidden; padding: 36px; border-radius: 16px; background: #f9f9fa; display: flex; flex-direction: column; gap: 20px; }
.symptom-card--men { background: #f9f9f9; }
.symptom-card__img { position: absolute; max-width: none; pointer-events: none; }
.symptom-card--women .symptom-card__img { left: 43.04%; top: -14.93%; width: 72.67%; height: 120.16%; object-fit: cover; }
.symptom-card--men .symptom-card__img { left: 43.73%; top: -5.78%; width: 67.7%; height: 111.94%; object-fit: cover; }
.symptom-card__title { position: relative; font-weight: 700; font-size: 24px; line-height: 1.3; }
.symptom-card__list { position: relative; display: flex; flex-direction: column; gap: 20px; }
.symptom-card__list li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.3; }
.plus { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(18, 20, 19, .13); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

/* 3. Программы */
.programs__row { position: relative; display: flex; gap: 20px; align-items: flex-start; }
.programs__main { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; width: 692px; flex-shrink: 0; }
.programs__card { width: 100%; display: flex; gap: 16px; padding: 36px; border-radius: 16px; background: var(--mint); box-shadow: var(--shadow-card); }
.profile { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.profile__title { font-weight: 700; font-size: 18px; line-height: 1.35; max-width: 230px; }
.profile__list { display: flex; flex-direction: column; gap: 8px; }
.profile__list li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.35; }
.profile__list li::before { content: ''; position: absolute; left: 10px; top: .6em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.programs__visual { position: relative; flex: 1; display: flex; justify-content: flex-end; }
.programs__molecule { position: absolute; z-index: 2; left: 0; top: 230px; width: 302px; pointer-events: none; }
.visual-card { position: relative; width: 568px; max-width: 100%; height: 550px; border-radius: 16px; overflow: hidden; box-shadow: 0 242px 97px rgba(0, 0, 0, .02), 0 61px 61px rgba(0, 0, 0, .13), 0 15px 33px rgba(0, 0, 0, .15); }
.visual-card__img { position: absolute; top: 0; left: -36.74%; width: 173.49%; height: 100%; max-width: none; object-fit: cover; }
.visual-card__grid { position: absolute; top: 0; left: 18.13%; width: 81.87%; height: 100%; mix-blend-mode: color-dodge; }

/* 4. Как проходит обследование */
.process__row { display: flex; gap: 72px; align-items: stretch; }
.process__content { width: 620px; flex-shrink: 0; }
.process__content .heading { margin-bottom: 32px; }
.process__content .heading__text { max-width: 560px; }
.steps { padding: 32px; border-radius: 16px; background: #f9f9f8; box-shadow: var(--shadow-card); }
.step { position: relative; display: flex; gap: 20px; }
.step:not(:last-child) { padding-bottom: 26px; }
.step:not(:last-child)::before { content: ''; position: absolute; left: 20.5px; top: 50px; bottom: 0; width: 1px; background: #cdd5d2; }
.step__num { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.step__copy { padding-top: 2px; display: flex; flex-direction: column; gap: 8px; }
.step__title { font-weight: 700; font-size: 18px; line-height: 1.35; }
.step__text { font-size: 16px; line-height: 1.45; color: var(--grey); }
.consult { position: relative; flex: 1; min-height: 647px; overflow: hidden; padding: 32px; border-radius: 16px; background: var(--mint); display: flex; flex-direction: column; justify-content: flex-end; }
.consult__photo { position: absolute; right: 0; bottom: 0; width: 470px; height: 650px; object-fit: cover; filter: drop-shadow(0 24px 42px rgba(35, 48, 45, .1)); }
.consult__action { position: relative; width: 310px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.consult__quote { font-weight: 500; font-size: 18px; line-height: 1.2; }
.consult__text { font-size: 16px; line-height: 1.45; color: var(--grey); }

/* 5. Индивидуальный подход */
.approach__intro { display: flex; gap: 80px; margin-bottom: 40px; }
.approach__title { width: 650px; flex-shrink: 0; }
.approach__text { flex: 1; font-size: 16px; line-height: 1.55; color: var(--grey); }
.compare { padding: 16px 32px; border-radius: 16px; background: #fafaf9; box-shadow: var(--shadow-card); }
.compare__row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 82px; padding-block: 16px; border-top: 1px solid var(--line); }
.compare__row--head { min-height: 72px; padding-block: 0; border-top: 0; font-weight: 700; font-size: 18px; }
.compare__cell { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.4; }
.compare__row--head .compare__cell { font-size: 18px; }
.compare__cell--yes { position: relative; padding-left: 32px; font-weight: 500; }
.compare__cell--yes::before { content: ''; position: absolute; left: 0; top: 50%; height: 40px; margin-top: -20px; width: 1px; background: var(--line); }
.compare__row--head .compare__cell--yes { font-weight: 700; }
.mark { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.mark--no { background: #f3e5e1; color: #a85a52; }
.mark--yes { background: #e2eee7; color: #4f8062; }
.mark--lg { width: 56px; height: 56px; font-size: 26px; }

/* 6. Врачи */
.doctors__row { display: flex; gap: 48px; align-items: flex-start; }
.doctors__index { position: sticky; top: 104px; width: 350px; flex-shrink: 0; min-height: min(716px, calc(100vh - 124px)); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.doctors__intro { display: flex; flex-direction: column; gap: 22px; }
.doctors__intro .heading__text { max-width: 300px; }
.filters { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.filter { padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; background: #fff; font-weight: 500; font-size: 16px; line-height: 1.2; transition: background .2s, color .2s; }
.filter:hover { background: var(--mint); }
.filter.is-active { background: var(--ink); color: #fff; border-color: rgba(255, 255, 255, .16); }
.doctors__list { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.doctors__cards { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.doctor { display: flex; min-height: 228px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-card); animation: fade-in .35s ease; }
.doctor__photo { position: relative; width: 250px; flex-shrink: 0; overflow: hidden; background: var(--green); }
.doctor__photo img { position: absolute; left: -5%; top: -6%; width: 110%; max-width: none; }
.doctor__profile { flex: 1; min-width: 0; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.doctor__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 6px 12px; border-radius: 4px; background: #f7f7f7; font-size: 12px; line-height: 1.2; }
.doctor__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-bottom: -8px; }
.doctor__name { font-weight: 600; font-size: 20px; line-height: 1.15; }
.doctor__exp { position: relative; padding-left: 22px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.doctor__exp::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ink); }
.doctor__about { font-size: 14px; line-height: 1.4; color: var(--grey); }
.doctor__profile .btn { margin-top: auto; }
.more { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 600; font-size: 16px; }
.more img { transform: rotate(90deg); transition: transform .2s; }
.more:hover img { transform: rotate(90deg) translateX(3px); }
.doctors__empty { padding: 32px; border-radius: 16px; background: #fff; color: var(--grey); }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } }

/* 7. О клинике */
.about { background: var(--bg-soft); }
.about .h2 { margin-bottom: 32px; }
.gallery { display: flex; gap: 20px; height: 430px; }
.gallery__photo { width: 913px; max-width: 72%; height: 100%; object-fit: cover; border-radius: 16px; }
.gallery__features { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.feature { flex: 0 1 206px; padding: 24px; border: 1px solid #dce5e1; border-radius: 8px; background: #fff; display: flex; flex-direction: column; gap: 16px; }
.feature__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--mint); display: flex; align-items: center; justify-content: center; }
.feature__title { font-weight: 500; font-size: 18px; line-height: 1.18; }
.feature__text { font-size: 16px; line-height: 1.5; color: var(--grey); }
.location { display: flex; gap: 24px; height: 330px; margin-top: 32px; }
.contacts { width: 430px; flex-shrink: 0; padding: 24px; border-radius: 16px; background: var(--mint); box-shadow: 0 12px 32px rgba(23, 51, 45, .07); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.contacts__address { font-weight: 500; font-size: 32px; line-height: 1.18; margin-bottom: 8px; }
.contacts__hint { font-size: 16px; line-height: 1.55; color: var(--grey); }
.contacts__label { font-weight: 500; font-size: 12px; color: var(--grey); margin-bottom: 6px; }
.contacts__hours { font-size: 20px; line-height: 1.55; }
.map { position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: 16px; background: #dce9e3; }
.map img { position: absolute; left: -.53%; top: -22.67%; width: 101.16%; height: 145.58%; max-width: none; object-fit: cover; transition: transform .4s; }
.map:hover img { transform: scale(1.02); }
.final { display: flex; min-height: 416px; margin-top: 100px; border-radius: 16px; overflow: hidden; background: #fff; }
.final__photo { width: 454px; flex-shrink: 0; background: var(--mint); }
.final__photo img { width: 100%; height: 100%; object-fit: cover; }
.final__content { flex: 1; padding: 60px 60px 60px 64px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.final__title { padding-top: 28px; font-weight: 700; font-size: 52px; line-height: 1.1; letter-spacing: -.02em; color: var(--green); }
.final__title span { display: block; opacity: .35; }
.final__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.final__text { max-width: 300px; font-size: 16px; line-height: 1.5; color: var(--grey); }

/* 8. Подвал */
.footer { font-family: var(--font-ui); }
.footer__main { background: var(--green); padding-block: 64px; }
.footer__container { max-width: 1440px; margin: 0 auto; padding-inline: var(--pad-x); display: flex; flex-direction: column; gap: 32px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; }
.logo--footer { font-size: 26px; color: #fff; }
.socials { display: flex; align-items: center; gap: 26px; }
.socials a { transition: opacity .2s; }
.socials a:hover { opacity: .75; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__legal { display: flex; flex-direction: column; gap: 10px; max-width: 240px; font-size: 9.2px; line-height: 11px; letter-spacing: -.02em; color: rgba(255, 255, 255, .47); text-transform: none; }
.footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; font-size: 14px; line-height: 1.2; color: rgba(255, 255, 255, .75); }
.footer__links a:hover, .footer__contact:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__contacts { display: flex; flex-direction: column; gap: 32px; color: #fff; font-size: 16px; line-height: 20.9px; letter-spacing: -.02em; }
.footer__contact { display: block; margin-bottom: 4px; }
.footer__hint { font-size: 14px; line-height: 15.4px; letter-spacing: 0; color: rgba(255, 255, 255, .47); }
.footer__dev { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 15.4px; color: rgba(255, 255, 255, .47); }
.footer__disclaimer { background: var(--green-dark); padding: 27px var(--pad-x) 26px; text-align: center; font-size: 12px; line-height: 19.5px; color: rgba(255, 255, 255, .47); }
.footer__disclaimer p { max-width: 1310px; margin: 0 auto; }
.footer__warning { margin-top: 8px !important; font-weight: 700; font-size: 13.3px; letter-spacing: .02em; color: rgba(255, 255, 255, .75); }

/* Модальное окно записи */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(18, 20, 19, .45); backdrop-filter: blur(4px); animation: fade .2s ease; }
.modal__dialog { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; padding: 40px 36px 36px; border-radius: 16px; background: #fff; box-shadow: 0 30px 80px -20px rgba(18, 20, 19, .4); animation: pop .25s ease; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; font-size: 28px; line-height: 1; color: var(--grey); }
.modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.lead-form { display: flex; flex-direction: column; gap: 16px; }
.lead-form__title { font-weight: 600; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; padding-right: 24px; }
.lead-form__text { font-size: 15px; line-height: 1.5; color: var(--grey); margin-bottom: 8px; }
.lead-form__text a { color: var(--ink); text-decoration: underline; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-weight: 500; font-size: 13px; color: var(--grey); }
.field__input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: #fafaf9; font: 400 16px var(--font); color: var(--ink); transition: border-color .2s, background .2s; }
.field__input:focus { outline: 0; border-color: var(--green); background: #fff; }
.field__input.is-error { border-color: #a85a52; background: #fdf6f4; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--grey); cursor: pointer; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.consent a { text-decoration: underline; }
.consent.is-error { color: #a85a52; }
.lead-form__error { font-size: 14px; color: #a85a52; }
.lead-form .btn { margin-top: 8px; height: 52px; }
.lead-success { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
body.is-locked { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* Появление блоков при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1360px) {
  .hero__content { padding-inline: var(--pad-x); gap: 32px; }
  .hero__title { width: auto; flex: 1 1 540px; font-size: clamp(48px, 4.6vw, 64px); }
  .hero__aside { flex: 0 1 419px; }
  .programs__main { width: auto; flex: 1 1 55%; }
  .programs__visual { flex: 1 1 45%; }
  .programs__molecule { width: 22vw; max-width: 302px; left: -6%; }
  .process__row { gap: 40px; }
  .process__content { width: auto; flex: 1 1 50%; }
  .consult { flex: 1 1 50%; }
  .consult__photo { width: 80%; height: auto; max-height: 100%; object-fit: contain; object-position: bottom right; }
  .approach__intro { gap: 40px; }
  .approach__title { width: auto; flex: 1 1 50%; }
  .doctors__index { width: 280px; }
  .final__title { font-size: clamp(36px, 3.6vw, 52px); }
}

@media (max-width: 1100px) {
  .nav { padding-inline: 16px; }
  .nav__bar { padding: 0 24px 0 32px; }
  .nav__links { gap: 24px; }
  .section { padding-block: 72px; }
  .section--flush-top { padding-top: 24px; }
  .h2 { font-size: 40px; }
  .hero { min-height: 680px; }
  .hero__content { flex-direction: column; gap: 24px; padding-bottom: 48px; }
  .hero__title { flex: none; max-width: 640px; }
  .hero__aside { flex: none; }
  .hero__dna { left: -10%; top: -120px; width: 130%; height: auto; }
  .hero__molecule { left: 8%; top: 180px; width: 160px; }
  .symptom-card__img { opacity: .45; }
  .programs__row { flex-direction: column; }
  .programs__main { width: 100%; }
  .programs__visual { width: 100%; justify-content: center; }
  .programs__molecule { left: 4%; top: 30%; width: 220px; }
  .process__row { flex-direction: column; }
  .consult { min-height: 560px; }
  .consult__photo { width: 440px; }
  .approach__intro { flex-direction: column; gap: 16px; }
  .doctors__row { flex-direction: column; gap: 24px; }
  .doctors__index { position: static; width: 100%; min-height: 0; gap: 20px; }
  .filters { flex-direction: row; flex-wrap: wrap; }
  .gallery { height: auto; flex-direction: column; }
  .gallery__photo { width: 100%; max-width: none; height: 380px; }
  .gallery__features { flex-direction: row; }
  .feature { flex: 1; }
  .location { flex-direction: column; height: auto; }
  .contacts { width: 100%; }
  .map { height: 320px; flex: none; }
  .final { flex-direction: column; }
  .final__photo { width: 100%; height: 300px; }
  .final__photo img { object-position: center 20%; }
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 900px) {
  .nav__bar { height: 64px; }
  .nav__burger { display: flex; }
  .nav__links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; border-radius: 8px; background: #fafafa; box-shadow: 0 20px 40px -16px rgba(18, 20, 19, .25); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links > a { padding: 14px 0; border-bottom: 1px solid #ececec; font-size: 16px; color: var(--ink); }
  .nav__links > .nav__phone { display: block; font-weight: 600; }
  .nav__links .btn { margin-top: 16px; height: 48px; font-size: 15px; }
  .nav { position: absolute; }
  .nav.is-scrolled { position: fixed; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 88px; }
  .section { padding-block: 56px; }
  .section--flush-top { padding-top: 16px; }
  .h2 { font-size: 32px; line-height: 1.2; }
  .heading { gap: 10px; margin-bottom: 24px; }
  .heading__text { font-size: 15px; }
  .btn { width: 100%; height: 48px; font-size: 15px; }
  .btn--outline { width: auto; height: auto; font-size: 14px; }

  .hero { min-height: 653px; }
  .hero__dna { left: -12%; top: 40px; width: 150%; }
  .hero__molecule { display: none; }
  .hero__content { padding-bottom: 64px; gap: 16px; }
  .hero__title { font-size: 34px; line-height: 1.12; letter-spacing: -.02em; }
  .hero__lead { font-size: 16px; line-height: 1.3; }
  .hero__aside { width: 100%; gap: 24px; }

  .symptoms__cards { grid-template-columns: 1fr; gap: 16px; }
  .symptom-card { padding: 24px 20px 260px; gap: 16px; }
  .symptom-card__img { opacity: 1; }
  .symptom-card--women .symptom-card__img, .symptom-card--men .symptom-card__img { left: auto; right: -10%; top: auto; bottom: -8%; width: 90%; height: auto; }
  .symptom-card__title { font-size: 22px; }
  .symptom-card__list { gap: 14px; }
  .symptom-card__list li { font-size: 15px; }

  .programs__card { flex-direction: column; gap: 24px; padding: 24px 20px; }
  .programs__card .profile + .profile { padding-top: 24px; border-top: 1px solid rgba(18, 20, 19, .08); }
  .profile__title { max-width: none; }
  .programs__main { gap: 24px; }
  .visual-card { height: 360px; }
  .programs__molecule { width: 150px; left: 0; top: 40%; }

  .steps { padding: 24px 20px; }
  .step { gap: 16px; }
  .step__title { font-size: 17px; }
  .step__text { font-size: 15px; }
  .consult { min-height: 0; padding: 0; background: var(--mint); }
  .consult__photo { position: relative; width: 100%; height: 360px; object-fit: cover; object-position: center top; }
  .consult__action { width: 100%; padding: 24px 20px; }

  .compare { padding: 8px 16px; }
  .compare__row { grid-template-columns: 1fr; gap: 12px; }
  .compare__row--head { display: none; }
  .compare__row:nth-child(2) { border-top: 0; }
  .compare__cell { font-size: 15px; }
  .compare__cell--yes { padding-left: 0; }
  .compare__cell--yes::before { display: none; }

  .filters { gap: 8px; }
  .filter { padding: 8px 14px; font-size: 14px; }
  .doctor { flex-direction: column; }
  .doctor__photo { width: 100%; height: 260px; }
  .doctor__photo img { left: 50%; top: -4%; width: auto; height: 118%; transform: translateX(-50%); }
  .doctor__profile { padding: 20px; }
  .doctor__head { flex-direction: column; align-items: flex-start; }
  .doctor__exp { padding-left: 0; }
  .doctor__exp::before { display: none; }
  .doctor__profile .btn { margin-top: 0; }

  .gallery__photo { height: 240px; }
  .gallery__features { flex-direction: column; }
  .contacts__address { font-size: 24px; }
  .contacts__hours { font-size: 18px; }
  .map { height: 260px; }
  .final { margin-top: 56px; }
  .final__photo { height: 240px; }
  .final__content { padding: 32px 20px 24px; }
  .final__title { padding-top: 0; font-size: 30px; }
  .final__row { flex-direction: column; align-items: stretch; }
  .final__text { max-width: none; }

  .footer__main { padding-block: 48px; }
  .footer__cols { grid-template-columns: 1fr; gap: 32px; }
  .footer__legal { order: 4; max-width: none; }
  .footer__links { gap: 20px; }
  .footer__disclaimer { text-align: left; }
  .modal { align-items: flex-end; padding: 0; }
  .modal__dialog { max-width: none; border-radius: 16px 16px 0 0; padding: 32px 20px 24px; }
}

/* Юридические страницы */
.legal-page .nav { position: fixed; }
.legal-page__back { width: auto !important; height: auto !important; }
.legal { max-width: 920px; padding-top: 136px; padding-bottom: 80px; }
.legal__crumbs { font-size: 14px; color: var(--grey); margin-bottom: 16px; }
.legal__crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.legal .h2 { margin-bottom: 32px; }
.legal__body { font-size: 16px; line-height: 1.6; }
.legal__body h2 { margin: 32px 0 12px; font-weight: 600; font-size: 22px; line-height: 1.3; }
.legal__body p, .legal__body ul { margin-bottom: 12px; }
.legal__body ul { padding-left: 22px; list-style: disc; }
.legal__body li { margin-bottom: 6px; }
.legal__body a { text-decoration: underline; }
.legal-page .footer__disclaimer a { color: inherit; }
@media (max-width: 900px) { .legal-page .nav__bar { padding: 0 16px 0 20px; } }
@media (max-width: 700px) { .legal { padding-top: 104px; } }
@media (min-width: 1101px) { .hero__lead-line { display: block; white-space: nowrap; } }
