/* ==========================================================================
   Терапевт.Москва — landing & CMS styles
   Palette: white base + deep blue/teal (trust) + mint accent (CTA)
   ========================================================================== */

:root {
    --teal-900: #083b43;
    --teal-700: #0b5d69;
    --teal-600: #0e7c86;
    --teal-500: #159aa6;
    --mint-500: #17c98f;
    --mint-600: #12b47f;
    --mint-050: #e7fbf3;
    --ink: #12303a;
    --muted: #5b7079;
    --line: #e3ebee;
    --bg: #ffffff;
    --bg-soft: #f4f8f9;
    --danger: #e15b4c;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 4px 14px rgba(11, 93, 105, .08);
    --shadow-md: 0 12px 32px rgba(11, 93, 105, .12);
    --container: 1200px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", Arial, sans-serif;

    --header-h: 76px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-700); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.section { padding: 84px 0; }
.section--muted { background: var(--bg-soft); }
.section__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.section__title--center { text-align: center; }
.section__lead { text-align: center; max-width: 760px; margin: 0 auto 40px; color: var(--muted); font-size: 1.08rem; }

.icon { width: 20px; height: 20px; }
.feature-icon { width: 28px; height: 28px; color: var(--teal-600); }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--teal-700);
    --btn-fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
    background: var(--btn-bg); color: var(--btn-fg);
    font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn--primary { --btn-bg: var(--mint-500); --btn-fg: #063b2b; }
.btn--primary:hover { --btn-bg: var(--mint-600); }
.btn--outline { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline:hover { --btn-bg: rgba(255,255,255,.12); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--teal-700); border-color: var(--line); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--sm { padding: 9px 18px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.logo { display: flex; align-items: center; }
.main-nav { margin-left: 8px; }
.main-nav__list { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav__list a { color: var(--ink); font-weight: 500; }
.main-nav__list a:hover { color: var(--teal-600); }
.header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.header__phone .icon { color: var(--teal-600); }
.header__phone:hover { color: var(--teal-600); }

.burger { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.burger span + span { margin-top: 6px; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(23,201,143,.16), transparent 60%),
        linear-gradient(160deg, #f2fbfb 0%, #eaf4f6 100%);
    padding: 72px 0 84px;
    overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__eyebrow {
    display: inline-block; background: var(--mint-050); color: var(--teal-700);
    padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; margin-bottom: 18px;
}
.hero__title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.hero__subtitle { font-size: 1.18rem; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 20px; }
.hero__actions .btn--outline { --btn-fg: var(--teal-700); border-color: var(--teal-600); }
.hero__actions .btn--outline:hover { --btn-bg: var(--teal-700); --btn-fg: #fff; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; color: var(--teal-700); font-weight: 600; }
.hero__media img { filter: drop-shadow(0 26px 40px rgba(11,93,105,.18)); }

/* ---------- Trust ---------- */
.trust { padding: 40px 0 20px; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust__item {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.trust__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.trust__item .feature-icon { margin: 0 auto 12px; width: 34px; height: 34px; }
.trust__value { font-size: 1.35rem; font-weight: 800; color: var(--teal-700); }
.trust__label { color: var(--muted); font-size: .96rem; }
.trust__license { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 22px; }

/* ---------- Problem ---------- */
.problem__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.problem__text p { color: var(--muted); }
.problem__card {
    background: linear-gradient(160deg, var(--teal-700), var(--teal-900));
    color: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md);
}
.problem__stat { font-size: 1.15rem; margin-bottom: 20px; }
.problem__stat span { display: block; font-size: 2.4rem; font-weight: 800; color: var(--mint-500); }
.problem__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.problem__list li { display: flex; align-items: center; gap: 12px; }
.problem__list .feature-icon { color: var(--mint-500); flex: none; }
.problem__accent { font-weight: 600; color: var(--ink); border-left: 4px solid var(--danger); padding-left: 16px; }

/* ---------- Recommendations band ---------- */
.reco { background: linear-gradient(160deg, var(--teal-700), var(--teal-900)); color: #eaf6f7; }
.reco__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 48px 0; }
.reco__icon { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.reco__icon .feature-icon { color: var(--mint-500); width: 34px; height: 34px; }
.reco__text p { margin: 0 0 10px; color: #d6ebee; }
.reco__text p:last-child { margin-bottom: 0; font-weight: 600; color: #fff; }
.reco__btn { white-space: nowrap; }
@media (max-width: 900px) {
    .reco__inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .reco__icon { margin: 0 auto; }
    .reco__btn { width: 100%; }
}

/* ---------- Types ---------- */
.types__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.type-card {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.type-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal-500); }
.type-card--danger { border-top: 4px solid var(--danger); }
.type-card__badge {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    background: var(--mint-050); color: var(--teal-700); font-weight: 800; font-size: 1.5rem; margin-bottom: 16px;
}
.type-card--danger .type-card__badge { background: #fdecea; color: var(--danger); }
.type-card__title { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.type-card__tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; background: var(--danger); color: #fff; padding: 3px 8px; border-radius: 6px; font-weight: 700; }
.type-card__meta { margin: 4px 0 14px; display: grid; gap: 10px; }
.type-card__meta dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.type-card__meta dd { margin: 2px 0 0; font-weight: 600; }
.type-card__signs { color: var(--muted); font-size: .96rem; margin: 0; }
.types__note { margin-top: 32px; text-align: center; color: var(--muted); max-width: 900px; margin-left: auto; margin-right: auto; }

/* ---------- Symptoms ---------- */
.symptoms__inner { display: grid; grid-template-columns: 1fr; gap: 28px; }
.symptoms__head { max-width: 720px; }
.symptoms__head p { color: var(--muted); }
.symptoms__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.symptoms__item {
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 18px; text-align: center; display: grid; gap: 12px; justify-items: center;
    transition: transform .2s ease, background .2s ease;
}
.symptoms__item:hover { transform: translateY(-4px); background: var(--mint-050); }
.symptoms__item .feature-icon { width: 34px; height: 34px; }
.symptoms__item span { font-size: .95rem; font-weight: 500; }
.symptoms__disclaimer { background: #fff7ed; border: 1px solid #f4d9b0; color: #8a5a12; border-radius: var(--radius-sm); padding: 16px 20px; font-weight: 500; }

/* ---------- Advantages ---------- */
.advantages__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.advantage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.advantage:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.advantage__icon { width: 58px; height: 58px; border-radius: 16px; background: var(--mint-050); display: grid; place-items: center; margin-bottom: 18px; }
.advantage__icon .feature-icon { width: 30px; height: 30px; }
.advantage__title { font-size: 1.15rem; }
.advantage p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Doctors ---------- */
.doctors__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doctor-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.doctor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.doctor-card__photo { aspect-ratio: 4 / 5; background: var(--bg-soft); }
.doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card__body { padding: 20px; }
.doctor-card__name { font-size: 1.12rem; margin-bottom: 6px; }
.doctor-card__spec { color: var(--teal-600); font-weight: 600; margin: 0 0 6px; }
.doctor-card__cat { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.doctor-card__exp { display: inline-block; background: var(--mint-050); color: var(--teal-700); padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.doctors__empty { text-align: center; color: var(--muted); grid-column: 1 / -1; }
.team-photo { margin: 0 auto 40px; max-width: 820px; }
.team-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.team-photo figcaption { text-align: center; color: var(--muted); margin-top: 12px; font-weight: 600; }

/* ---------- Booking ---------- */
.booking { background: linear-gradient(160deg, #f2fbfb, #eef6f7); }
.booking__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.booking__intro p { color: var(--muted); }
.booking__perks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.booking__perks li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--teal-700); }
.booking__form { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .95rem; }
.field input {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; color: var(--ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus { outline: none; border-color: var(--mint-500); box-shadow: 0 0 0 4px rgba(23,201,143,.15); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--muted); margin-bottom: 20px; cursor: pointer; }
.checkbox input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--mint-500); flex: none; }
.booking__phone { text-align: center; margin: 16px 0 0; color: var(--muted); }
.booking__phone a { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq__inner { max-width: 860px; margin: 0 auto; }
.faq__list { display: grid; gap: 14px; margin-top: 32px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; box-shadow: var(--shadow-sm); }
.faq__item summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; color: var(--teal-600); font-weight: 400; transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { color: var(--muted); padding-bottom: 16px; }

/* ---------- Contacts ---------- */
.contacts__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; margin-top: 32px; }
.contacts__info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.contacts__row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 500; }
.contacts__row .feature-icon { color: var(--teal-600); flex: none; }
.contacts__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 360px; }
.contacts__map iframe { display: block; border: 0; }

/* ---------- CMS pages / prose ---------- */
.cms-page__header { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.cms-page__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cms-page__subtitle { color: var(--muted); font-size: 1.1rem; }
.cms-page__cta { text-align: center; margin-top: 48px; }
.prose { font-size: 1.06rem; color: #26424c; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.3em; font-size: 1.3rem; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { border-left: 4px solid var(--mint-500); background: var(--bg-soft); margin: 1.4em 0; padding: 14px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose .block-table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px 12px; }
.block-delimiter { border: none; text-align: center; margin: 2em 0; }
.block-delimiter::before { content: "* * *"; color: var(--muted); letter-spacing: .4em; }

/* ---------- Articles list ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 500; }
.chip--active, .chip:hover { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.articles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-card__cover { display: block; aspect-ratio: 16/9; background: var(--bg-soft); }
.article-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 22px; }
.article-card__cat { display: inline-block; color: var(--teal-600); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.article-card__title { font-size: 1.18rem; margin-bottom: 8px; }
.article-card__title a { color: var(--ink); }
.article-card__title a:hover { color: var(--teal-600); }
.article-card__excerpt { color: var(--muted); font-size: .96rem; }
.article-card__date { color: var(--muted); font-size: .85rem; }
.breadcrumbs { display: flex; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 12px; justify-content: center; }
.article__meta { text-align: center; color: var(--muted); font-size: .92rem; }
.article__cover { border-radius: var(--radius); margin: 24px 0; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #cfe3e6; padding: 64px 0 28px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__tagline { color: #a9c8cd; font-size: .96rem; max-width: 280px; }
.footer__phone { display: inline-block; color: #fff; font-size: 1.3rem; font-weight: 800; margin: 6px 0 4px; }
.footer__phone:hover { color: var(--mint-500); }
.footer__hours { color: #a9c8cd; font-size: .9rem; }
.footer__title { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__links a { color: #cfe3e6; }
.footer__links a:hover { color: var(--mint-500); }
.footer__license { margin-top: 16px; color: #8fb3b9; font-size: .85rem; }
.footer__col--contacts p { color: #cfe3e6; margin-bottom: 8px; }
.footer__col--contacts a { color: #cfe3e6; }
.footer__legal { padding-top: 26px; }
.footer__disclaimer { color: #7fa3aa; font-size: .78rem; line-height: 1.5; margin-bottom: 10px; }
.footer__disclaimer--warn { color: #b9d3d7; font-weight: 600; }
.footer__copy { color: #8fb3b9; font-size: .82rem; margin-top: 14px; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
    position: fixed; right: 18px; bottom: 18px; z-index: 90;
    display: none; align-items: center; gap: 8px;
    background: var(--mint-500); color: #063b2b; font-weight: 700;
    padding: 14px 20px; border-radius: 999px; box-shadow: var(--shadow-md);
    animation: pulse 2.4s infinite;
}
.sticky-cta .icon { color: #063b2b; }
@keyframes pulse { 0%,100% { box-shadow: 0 12px 32px rgba(18,180,127,.4); } 50% { box-shadow: 0 12px 40px rgba(18,180,127,.7); } }

/* ---------- Staff edit bar ---------- */
.edit-bar {
    position: fixed; left: 16px; bottom: 16px; z-index: 130;
    display: flex; align-items: center; gap: 10px;
    background: #0b2b31; color: #eaf6f7; padding: 10px 14px;
    border-radius: 12px; box-shadow: var(--shadow-md); font-size: .9rem;
    border: 1px solid rgba(255,255,255,.12);
}
.edit-bar.is-hidden { display: none; }
.edit-bar__label { font-weight: 700; color: #9ff3d3; white-space: nowrap; }
.edit-bar__btn {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 7px 13px; border-radius: 8px; font-weight: 600;
    background: rgba(255,255,255,.12); color: #fff;
}
.edit-bar__btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.edit-bar__btn--accent { background: var(--mint-500); color: #063b2b; }
.edit-bar__btn--accent:hover { background: var(--mint-600); color: #063b2b; }
.edit-bar__btn--ghost { background: transparent; border: 1px solid rgba(255,255,255,.25); }
.edit-bar__close {
    background: none; border: none; color: #9fb6bb; font-size: 1.4rem;
    line-height: 1; cursor: pointer; padding: 0 4px;
}
.edit-bar__close:hover { color: #fff; }
@media (max-width: 640px) {
    .edit-bar { left: 8px; right: 8px; bottom: 8px; flex-wrap: wrap; justify-content: center; }
    .edit-bar__label { width: 100%; text-align: center; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; }
.cookie-banner__inner {
    max-width: var(--container); margin: 0 auto; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
    padding: 18px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-banner__text { margin: 0; font-size: .92rem; color: var(--muted); flex: 1 1 320px; }
.cookie-banner__actions { display: flex; gap: 10px; }

/* ---------- Reveal on scroll ---------- */
.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) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__media { order: -1; max-width: 440px; }
    .trust__grid { grid-template-columns: repeat(2, 1fr); }
    .types__grid { grid-template-columns: repeat(2, 1fr); }
    .advantages__grid { grid-template-columns: repeat(2, 1fr); }
    .doctors__grid { grid-template-columns: repeat(2, 1fr); }
    .symptoms__list { grid-template-columns: repeat(3, 1fr); }
    .problem__inner { grid-template-columns: 1fr; }
    .booking__inner { grid-template-columns: 1fr; }
    .contacts__grid { grid-template-columns: 1fr; }
    .articles__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }

    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
        transform: translateY(-120%); transition: transform .3s ease; margin: 0;
    }
    .main-nav.is-open { transform: translateY(0); }
    .main-nav__list { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
    .main-nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .burger { display: block; }
    .header__cta { display: none; }
    .sticky-cta { display: inline-flex; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .section { padding: 56px 0; }
    .container { padding: 0 18px; }
    .trust__grid { grid-template-columns: 1fr 1fr; }
    .types__grid,
    .advantages__grid,
    .doctors__grid,
    .articles__grid { grid-template-columns: 1fr; }
    .symptoms__list { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .hero__actions .btn { width: 100%; }
    .header__phone span { display: none; }
    .booking__form { padding: 24px; }
    .cookie-banner__inner { padding: 16px; }
    .cookie-banner__actions { width: 100%; }
    .cookie-banner__actions .btn { flex: 1; }
}
