/* ==========================================================================
   TFShop — дизайн-система
   Фирменные цвета 4Life: синий PMS 3590 C (#3B54A5) + оранжевый PMS 1495 C
   (#F7941D). Основной шрифт компании — Roboto.
   ========================================================================== */

:root {
    --blue: #3b54a5;
    --blue-600: #32478c;
    --blue-700: #2a3c76;
    --blue-300: #7186c4;
    --navy: #1b2450;
    --navy-soft: #26315f;

    --accent: #f7941d;
    --accent-600: #e07d09;
    --accent-soft: #fff4e5;

    --teal: #22a37f;

    --ink: #1b2450;
    --text: #414a68;
    --muted: #737d99;
    --line: #e3e7f2;
    --line-soft: #eef1f8;

    --bg: #f5f6fb;
    --bg-alt: #e9ecf7;
    --surface: #ffffff;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(27, 36, 80, .06);
    --shadow-sm: 0 4px 16px rgba(27, 36, 80, .07);
    --shadow: 0 12px 32px rgba(27, 36, 80, .1);
    --shadow-lg: 0 26px 60px rgba(27, 36, 80, .18);

    --topbar-h: 40px;
    --header-h: 76px;
    --ease: cubic-bezier(.22, .61, .36, 1);

    /* Roboto — основной шрифт компании, используется и в тексте, и в заголовках. */
    --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Roboto', var(--font);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: -.02em;
    margin: 0;
    font-weight: 700;
}

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

a { color: var(--blue); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--accent-600); }

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

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; }

/* ── Кнопки ──────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border: 1.5px solid transparent;
    border-radius: var(--r-pill);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease),
                background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(59, 84, 165, .26); }
.btn-primary:hover { background: var(--blue-600); color: #fff; box-shadow: 0 12px 26px rgba(59, 84, 165, .34); transform: translateY(-2px); }

.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(247, 148, 29, .32); }
.btn-accent:hover { background: var(--accent-600); color: #fff; box-shadow: 0 12px 26px rgba(247, 148, 29, .4); transform: translateY(-2px); }

.btn-outline { background: transparent; border-color: rgba(59, 84, 165, .35); color: var(--blue); }
.btn-outline:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.btn-white:hover { background: #fff; color: var(--accent-600); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-ghost-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--blue); border-color: #fff; }

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 17px 34px; font-size: 15px; }
.btn-block { width: 100%; }

/* ── Шапка ───────────────────────────────────────────────────────────── */

.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
}

.topbar-inner { display: flex; align-items: center; gap: 24px; width: 100%; }
.topbar a { color: rgba(255, 255, 255, .72); }
.topbar a:hover { color: #fff; }
.topbar-contacts { display: flex; gap: 20px; align-items: center; }
.topbar-contacts a { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.topbar-links { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.topbar-links a { position: relative; }
.topbar-links a::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: -3px;
    height: 1px; background: var(--accent); transition: right .22s var(--ease);
}
.topbar-links a:hover::after { right: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.site-header.is-stuck { box-shadow: 0 6px 24px rgba(27, 36, 80, .08); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: var(--header-h);
    /* Логотип + 6 пунктов меню + поиск + телефон + кнопка объективно шире
       контентного контейнера (1240px) — шапке нужен собственный, более
       широкий предел, иначе элементы либо переполняют страницу, либо
       flex сминает поле поиска до нечитаемой полоски. */
    max-width: 1400px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

/* Фирменный знак 4Life из брендбука. Подпись «Независимый аффилиат 4Life»
   вынесена в текст рядом: внутри логотипа при высоте шапки она нечитаема. */
.brand-logo { height: 40px; width: auto; }
.footer-brand .brand-logo { height: 52px; }

.brand-affiliate {
    padding-left: 13px;
    border-left: 1px solid var(--line);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .01em;
    color: var(--muted);
    text-transform: uppercase;
    white-space: nowrap;
}

.topbar-socials { display: inline-flex; align-items: center; gap: 10px; }
.topbar-socials a { display: inline-flex; }

.brand-mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(140deg, var(--blue), var(--blue-300));
    box-shadow: 0 6px 16px rgba(59, 84, 165, .28);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -.02em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -.02em;
    color: var(--ink);
}

.brand-tag {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: rgba(255, 255, 255, .55); }

.main-nav { display: flex; align-items: center; flex-shrink: 0; gap: 2px; margin-right: auto; }

.main-nav a {
    display: block;
    padding: 9px 10px;
    border-radius: var(--r-sm);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
}

.main-nav a:hover { background: var(--bg-alt); color: var(--blue); }
.main-nav a.is-active { color: var(--blue); background: rgba(59, 84, 165, .08); }

.header-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    overflow: hidden;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.header-search:focus-within { border-color: var(--blue-300); box-shadow: 0 0 0 4px rgba(59, 84, 165, .1); }

.header-search input {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    padding: 9px 6px 9px 16px;
    width: 150px;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    outline: none;
}

.header-search input::placeholder { color: var(--muted); }

.header-search button {
    border: 0;
    background: transparent;
    color: var(--blue);
    padding: 8px 14px 8px 8px;
    cursor: pointer;
    display: flex;
}

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.header-phone {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: -.01em;
}

.header-phone:hover { color: var(--blue); }

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    cursor: pointer;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Модальное окно ──────────────────────────────────────────────────── */

.overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(27, 36, 80, .55);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), visibility .25s var(--ease);
}

.overlay.active { opacity: 1; visibility: visible; }

.modal {
    position: relative;
    width: min(440px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(18px) scale(.98);
    transition: transform .25s var(--ease);
}

.overlay.active .modal { transform: none; }

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--bg);
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s var(--ease), color .18s var(--ease);
}

.modal-close:hover { background: var(--line); color: var(--ink); }
.modal h2 { text-align: center; font-size: 22px; margin-bottom: 6px; }
.modal-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.modal-options { display: grid; gap: 8px; }

.modal-option {
    padding: 14px 20px;
    border-radius: var(--r-sm);
    background: var(--bg);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    text-align: center;
    transition: background .18s var(--ease), color .18s var(--ease);
}

.modal-option:hover { background: var(--blue); color: #fff; }
.modal-contact-phone {
    display: block;
    margin: 8px 0 18px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}
.modal-contact-phone:hover { color: var(--blue); }
.modal-contact-link { margin-top: 4px; }

/* ── Секции и заголовки ──────────────────────────────────────────────── */

.section { padding: 88px 0; }
.section-sm { padding: 60px 0; }
.section-alt { background: var(--bg); }
.section-soft { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); }

.section-dark {
    position: relative;
    color: rgba(255, 255, 255, .82);
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue-700) 65%, var(--blue) 130%);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    color: var(--accent-600);
    font-family: var(--font-head);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.section-dark .eyebrow { background: rgba(255, 255, 255, .12); color: #ffc79a; }

.section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section-lead { margin-top: 14px; font-size: 17px; color: var(--muted); }
.section-dark .section-lead { color: rgba(255, 255, 255, .74); }

.section-foot { margin-top: 44px; display: flex; justify-content: center; }

/* ── Первый экран ────────────────────────────────────────────────────── */

/* Первый экран: молекулярный фон из фирменных материалов даёт «научное»
   настроение, поверх — светлая вуаль, чтобы текст оставался читаемым. */
.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(105deg, rgba(245, 246, 251, .97) 0%, rgba(245, 246, 251, .9) 42%, rgba(233, 236, 247, .72) 100%),
        url('img/bg-hexagons-light.jpg') right center / cover no-repeat,
        #f5f6fb;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 620px; height: 620px;
    top: -220px; right: -160px;
    background: radial-gradient(circle, rgba(59, 84, 165, .16), transparent 68%);
}

.hero::after {
    width: 420px; height: 420px;
    bottom: -200px; left: -120px;
    background: radial-gradient(circle, rgba(247, 148, 29, .16), transparent 68%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: center;
    padding: 76px 0 68px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 7px 16px 7px 8px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .8);
    box-shadow: var(--shadow-xs);
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue-700);
}

.hero-badge b {
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    letter-spacing: .04em;
}

.hero h1 {
    font-size: clamp(2.25rem, 4.6vw, 3.5rem);
    letter-spacing: -.035em;
}

.hero h1 em { font-style: normal; color: var(--blue); }

.hero-sub {
    margin: 20px 0 0;
    max-width: 520px;
    font-size: 18px;
    color: var(--text);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px solid rgba(59, 84, 165, .14);
}

.hero-meta div strong {
    display: block;
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}

.hero-meta div span { font-size: 13px; color: var(--muted); }

/* Ширина у видео и плашки под ним общая — задаётся один раз на контейнере,
   чтобы они всегда совпадали и не расходились по брейкпоинтам. */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero-visual img,
.hero-visual video {
    display: block;
    width: 100%;
    aspect-ratio: 460 / 307;
    object-fit: cover;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(160deg, #e9f1f8, #d9e6f2);
}

/* Снимок продукта — с прозрачным фоном и мягким свечением по краям.
   Рамка, подложка и обрезка по краю ему не нужны: они срезали бы
   свечение и создавали видимые границы вокруг него. */
.hero-visual img.hero-product {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 24px;
    background: none;
    box-shadow: none;
    filter: drop-shadow(0 22px 40px rgba(27, 36, 80, .18));
    -webkit-mask-image: radial-gradient(ellipse at center, #000 52%, rgba(0, 0, 0, .92) 67%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, #000 52%, rgba(0, 0, 0, .92) 67%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* У видео есть собственная полоса управления снизу — плашку ставим под
   плеером, а не поверх кадра, как было с картинкой. */
.hero-visual .hero-float {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 14px 16px;
    border-radius: var(--r);
    background: #fff;
    box-shadow: var(--shadow);
}

.hero-float .hero-float-icon {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-600);
}

.hero-float strong { display: block; font-family: var(--font-head); font-size: 14px; color: var(--ink); }
.hero-float span { font-size: 12.5px; color: var(--muted); }

/* ── Полоса преимуществ ──────────────────────────────────────────────── */

.usp-strip {
    background: var(--surface);
    border-bottom: 1px solid var(--line-soft);
    padding: 48px 0;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.usp-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 24px 26px;
    background: var(--surface);
}

.usp-item svg { flex-shrink: 0; color: var(--blue); margin-top: 2px; }
.usp-item strong { display: block; font-family: var(--font-head); font-size: 14.5px; color: var(--ink); }
.usp-item span { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── Плашка с дисклеймером ───────────────────────────────────────────── */

.disclaimer-strip {
    padding: 11px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* Нейтральная серая сноска: это справочное примечание, а не
   предупреждение, поэтому без акцентного цвета и значка внимания.
   Оставлена элементом div, а не p: глобальное правило
   `p:last-child { margin-bottom: 0 }` перебивало нижний отступ, и плашка
   упиралась в следующую (тёмную) секцию. */
.disclaimer-banner {
    max-width: 1240px;
    margin: 36px auto;
    padding: 16px 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
}

/* ── Показатели доверия ──────────────────────────────────────────────── */

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.stat-card {
    padding: 30px 26px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.stat-card strong { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--blue); line-height: 1.1; }
.stat-card h3 { margin: 12px 0 6px; font-size: 16px; }
.stat-card p { font-size: 13.5px; color: var(--muted); }

/* ── Три фактора ─────────────────────────────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 60px;
    align-items: center;
}

.about-visual { display: flex; justify-content: center; }
.about-visual img { max-width: 320px; }

/* ── Карточки преимуществ ────────────────────────────────────────────── */

.value-cards { display: grid; gap: 12px; margin-top: 28px; }

.value-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 26px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    overflow: hidden;
    transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}

/* Акцентная полоса «вырастает» слева при наведении. */
.value-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--blue), var(--accent));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .28s var(--ease);
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.value-card:hover::before { transform: scaleY(1); }

.value-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--bg-alt);
    color: var(--blue);
    transition: background .24s var(--ease), color .24s var(--ease), transform .24s var(--ease);
}

.value-card:hover .value-icon {
    background: linear-gradient(140deg, var(--blue), var(--blue-300));
    color: #fff;
    transform: rotate(-5deg) scale(1.05);
}

.value-body { padding-top: 3px; }
.value-body h4 { font-size: 16px; margin-bottom: 5px; letter-spacing: -.01em; }
.value-body p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ── Каталог ─────────────────────────────────────────────────────────── */

.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }

.filter-pill {
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: all .18s var(--ease);
}

.filter-pill:hover { border-color: var(--blue-300); color: var(--blue); }
.filter-pill.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    overflow: hidden;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.product-badge {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.product-media {
    display: grid;
    place-items: center;
    height: 216px;
    padding: 22px;
    background: linear-gradient(160deg, #f7fafd, #e9f1f8);
}

.product-media img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform .3s var(--ease);
}

.product-card:hover .product-media img { transform: scale(1.07); }

.product-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }

.product-cat {
    /* Оформлена как плашка, а не голая надпись, чтобы точно не читалась
       как подпись, напечатанная на фотографии товара. */
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 11px;
    margin-bottom: 10px;
    border-radius: var(--r-pill);
    background: var(--bg-alt);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--blue);
}

.product-body h3 { font-size: 16px; line-height: 1.35; }
.product-body h3 a { color: var(--ink); }
.product-body h3 a:hover { color: var(--blue); }
.product-excerpt { margin: 10px 0 16px; font-size: 13.5px; color: var(--muted); }

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.product-price { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--ink); }
.product-points { display: block; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); }

/* ── Специалисты ─────────────────────────────────────────────────────── */

.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.expert-card {
    display: flex;
    flex-direction: column;
    padding: 26px 24px 24px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    text-align: center;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.expert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }

.expert-photo,
.expert-initial {
    width: 128px;
    height: 128px;
    margin: 0 auto 18px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-alt);
}

.expert-initial {
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--blue), var(--blue-300));
    color: #fff;
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 700;
}

.expert-card h3 { font-size: 16.5px; }
.expert-card h3 a { color: var(--ink); }
.expert-role { margin: 8px 0 14px; font-size: 13px; color: var(--blue); font-weight: 500; }

/* Краткая специализация — короткая плашка над именем, регалии — строкой ниже. */
.expert-tag {
    align-self: center;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: var(--bg-alt);
    color: var(--blue);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Регалии занимают разное число строк, поэтому блок растягивается и
   забирает лишнюю высоту на себя — строка опыта и кнопка тогда стоят
   на одном уровне во всех карточках ряда. */
.expert-credentials {
    flex: 1;
    margin: 8px 0 12px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.expert-experience {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--accent-600);
}

.expert-facts { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; }

.expert-facts li {
    position: relative;
    padding: 5px 0 5px 22px;
    font-size: 13px;
    color: var(--muted);
}

.expert-facts li::before {
    content: '';
    position: absolute;
    left: 4px; top: 12px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.expert-card .btn { margin-top: auto; }

/* ── Главный видеоблок ───────────────────────────────────────────────── */

.video-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(27, 36, 80, .95) 0%, rgba(42, 60, 118, .92) 55%, rgba(59, 84, 165, .88) 100%),
        url('img/bg-molecules.jpg') center / cover no-repeat,
        var(--navy);
    color: rgba(255, 255, 255, .82);
}

.video-section h2, .video-section h3 { color: #fff; }

.video-stage {
    max-width: 900px;
    margin: 0 auto;
}

.video-frame {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #0e1430;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

.video-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #0e1430;
}

.video-note {
    max-width: 760px;
    margin: 28px auto 0;
    padding: 22px 26px;
    border-radius: var(--r);
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .07);
    font-size: 15px;
    line-height: 1.65;
    text-align: center;
}

.video-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.video-author img {
    width: 54px; height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .3);
}

.video-author strong { display: block; color: #fff; font-size: 15px; }
.video-author span { font-size: 13px; color: rgba(255, 255, 255, .7); }

/* ── Программы ───────────────────────────────────────────────────────── */

.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.program-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    overflow: hidden;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }

.program-media { position: relative; display: block; overflow: hidden; background: var(--bg-alt); }
.program-media img { width: 100%; height: auto; object-fit: contain; }

.program-badge {
    position: absolute;
    top: 14px; left: 14px;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.program-duration {
    position: absolute;
    top: 14px; right: 14px;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    background: rgba(27, 36, 80, .78);
    color: #fff;
    font-size: 11.5px;
    font-weight: 500;
}

.program-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.program-body h3 { font-size: 21px; }
.program-subtitle { margin: 8px 0 0; font-size: 14px; font-weight: 500; color: var(--blue); }
.program-body p.program-excerpt { margin: 14px 0 22px; font-size: 14.5px; color: var(--muted); }
.program-body .btn { margin-top: auto; align-self: flex-start; }

/* ── Сплит-блоки ─────────────────────────────────────────────────────── */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-reverse .split-media { order: 2; }
.split-media img { border-radius: var(--r-lg); box-shadow: var(--shadow); }

.check-list { list-style: none; margin: 24px 0 0; padding: 0; }

.check-list li {
    position: relative;
    padding: 9px 0 9px 34px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
}

.check-list li:last-child { border-bottom: 0; }

.check-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 13px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(22, 163, 148, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a394' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

.section-dark .check-list li { border-bottom-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .84); }
.section-dark .check-list li::before { background-color: rgba(255, 255, 255, .14); }

/* ── Баннер-призыв ───────────────────────────────────────────────────── */

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 44px 48px;
    border-radius: var(--r-lg);
    background: linear-gradient(120deg, var(--blue-700), var(--blue) 60%, #1a6cc4);
    color: rgba(255, 255, 255, .85);
    box-shadow: var(--shadow-lg);
}

.cta-banner h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.cta-banner p { margin: 10px 0 0; max-width: 560px; }
.cta-banner .btn { flex-shrink: 0; }

/* ── Материалы блога ─────────────────────────────────────────────────── */

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.article-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    overflow: hidden;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.article-media { height: 190px; overflow: hidden; background: var(--bg-alt); }
.article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.article-card:hover .article-media img { transform: scale(1.05); }
.article-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }

.article-tag {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 4px 11px;
    border-radius: var(--r-pill);
    background: var(--bg-alt);
    color: var(--blue);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.article-body h3 { font-size: 17px; line-height: 1.35; }
.article-body h3 a { color: var(--ink); }
.article-body h3 a:hover { color: var(--blue); }
.article-body p { margin: 10px 0 16px; font-size: 13.5px; color: var(--muted); }

.article-meta {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    font-size: 12.5px;
    color: var(--muted);
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.faq-list { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.faq-item[open] { border-color: transparent; box-shadow: var(--shadow-sm); }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-head);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '';
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311519b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/13px no-repeat;
    transition: transform .22s var(--ease);
}

.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-answer { padding: 0 24px 22px; font-size: 14.5px; color: var(--text); }
.faq-answer p:first-child { margin-top: 0; }

/* ── Форма заявки ────────────────────────────────────────────────────── */

.lead-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.lead-form {
    padding: 34px;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--bg);
    font: inherit;
    font-size: 14.5px;
    color: var(--ink);
    outline: none;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

.field textarea { min-height: 104px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--blue-300);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(59, 84, 165, .1);
}

.field-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 20px 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

.field-consent input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }
.form-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }

.contact-methods { display: grid; gap: 12px; margin-top: 26px; }

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--r);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
}

.contact-method svg { flex-shrink: 0; color: #ffc79a; }
.contact-method strong { display: block; color: #fff; font-family: var(--font-head); font-size: 15px; }
.contact-method span { font-size: 13px; }
.contact-method a { color: #fff; }

/* ── Уведомления ─────────────────────────────────────────────────────── */

.flash-stack { position: fixed; top: 92px; right: 24px; z-index: 1400; display: grid; gap: 10px; max-width: 360px; }

.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--r-sm);
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 14px;
    border-left: 4px solid var(--blue);
    animation: flash-in .3s var(--ease);
}

.flash-success { border-left-color: var(--teal); }
.flash-danger { border-left-color: #e5484d; }
.flash-warning { border-left-color: var(--accent); }

@keyframes flash-in { from { opacity: 0; transform: translateX(20px); } }

/* ── Карточки клиента и партнёра ─────────────────────────────────────── */

.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.duo-card {
    position: relative;
    overflow: hidden;
    padding: 40px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.duo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.duo-card h3 { font-size: 22px; margin-bottom: 12px; }
.duo-card p { color: var(--muted); margin-bottom: 24px; }

.duo-card::after {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 84, 165, .1), transparent 70%);
}

.duo-card-accent::after { background: radial-gradient(circle, rgba(247, 148, 29, .16), transparent 70%); }

/* ── Офисы ───────────────────────────────────────────────────────────── */

.office-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.office-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.office-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

.office-card .office-pin {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--bg-alt);
    color: var(--blue);
}

.office-card h3 { font-size: 19px; margin-bottom: 12px; }
.office-line { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.office-line svg { flex-shrink: 0; margin-top: 3px; color: var(--blue-300); }
.office-line .schedule { white-space: pre-line; }
.office-card .btn { margin-top: auto; align-self: flex-start; }

/* Контакты: показываем список городов без адресов и телефонов; карточки
   городов с офисами остаются ссылками на полноценные страницы офисов. */
.office-city-grid .office-card .office-pin,
.office-city-grid .office-card .office-line,
.office-city-grid .office-card .btn { display: none; }

.office-city-grid .office-card {
    min-height: 92px;
    justify-content: center;
    padding: 20px 24px;
}

.office-city-grid .office-card h3 { margin: 0; }
.office-city-grid .office-card > a { color: var(--ink); }
.city-request {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 44px;
    padding: 24px 28px;
    border-radius: var(--r);
    background: var(--bg-alt);
}

.city-request p { margin: 0; color: var(--ink); }

.office-map { height: 420px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }

/* ── Внутренние страницы ─────────────────────────────────────────────── */

.page-hero {
    position: relative;
    padding: 56px 0 52px;
    background: linear-gradient(120deg, var(--navy) 0%, var(--blue-700) 70%, var(--blue) 120%);
    color: rgba(255, 255, 255, .78);
}

.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.page-hero p { margin: 14px 0 0; max-width: 680px; font-size: 16.5px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span.sep { opacity: .5; }

.breadcrumb-light { color: var(--muted); }
.breadcrumb-light a { color: var(--muted); }
.breadcrumb-light a:hover { color: var(--blue); }

/* ── Карточка товара ─────────────────────────────────────────────────── */

.product-detail { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }

.product-gallery {
    display: grid;
    place-items: center;
    padding: 36px;
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, #f8fbfd, #e8f1f8);
    border: 1px solid var(--line);
}

.product-gallery img { max-height: 460px; width: auto; object-fit: contain; }

.product-detail-info h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.product-detail-lead { font-size: 16.5px; color: var(--text); }

.price-box {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 26px 0;
    padding: 22px 26px;
    border-radius: var(--r);
    background: var(--bg);
    border: 1px solid var(--line);
}

.price-box .price { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--ink); line-height: 1; }

.detail-tabs { display: grid; gap: 20px; margin-top: 56px; }

.detail-block {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
}

.detail-block h2 { font-size: 20px; margin-bottom: 8px; }
.video-block iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-sm); }

/* ── Типографика CMS и статей ────────────────────────────────────────── */

.prose { font-size: 16.5px; color: var(--text); }
.prose h2 { font-size: 26px; margin: 40px 0 14px; }
.prose h3 { font-size: 20px; margin: 32px 0 12px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose img { border-radius: var(--r); margin: 26px 0; }
.prose strong { color: var(--ink); }

.prose blockquote {
    margin: 26px 0;
    padding: 18px 24px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: var(--accent-soft);
    color: #8a5a15;
}

.article-hero-img { border-radius: var(--r-lg); box-shadow: var(--shadow); margin-bottom: 36px; max-height: 440px; width: 100%; object-fit: cover; }

/* ── Специалист: подробно ────────────────────────────────────────────── */

.doctor-detail { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; }

.doctor-detail-photo {
    width: 100%;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    background: var(--bg-alt);
}

.doctor-cta { margin-top: 24px; }

.doctor-bio { white-space: pre-line; font-size: 16px; }

.doctor-office-block {
    margin-top: 26px;
    padding: 22px 26px;
    border-radius: var(--r);
    background: var(--bg);
    border: 1px solid var(--line);
    font-size: 14.5px;
}

/* ── Документы ───────────────────────────────────────────────────────── */

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }

.doc-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    overflow: hidden;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.doc-card:hover, .doc-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.doc-card:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 2px; }

.doc-card-thumb {
    position: relative;
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, #f7fafd, #e9f1f8);
    overflow: hidden;
}

.doc-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s var(--ease);
}

.doc-card:hover .doc-card-thumb img { transform: scale(1.06); }

.doc-card-icon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue-300); }

.doc-card-badge {
    position: absolute;
    top: 10px; left: 10px;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: rgba(27, 36, 80, .72);
    color: #fff;
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
}

.doc-card-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 36, 80, 0);
    opacity: 0;
    transition: opacity .2s var(--ease), background .2s var(--ease);
}

.doc-card-zoom svg {
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    transform: scale(.75);
    transition: transform .2s var(--ease);
}

.doc-card:hover .doc-card-zoom,
.doc-card:focus-visible .doc-card-zoom { opacity: 1; background: rgba(27, 36, 80, .32); }
.doc-card:hover .doc-card-zoom svg,
.doc-card:focus-visible .doc-card-zoom svg { transform: scale(1); }

.doc-card-title {
    padding: 12px 14px 14px;
    font-family: var(--font-head);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
}

/* ── Лайтбокс документов ─────────────────────────────────────────────── */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: rgba(6, 14, 28, .86);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), visibility .25s var(--ease);
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    z-index: 1;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s var(--ease), transform .18s var(--ease);
}

.lightbox-close:hover { background: rgba(255, 255, 255, .24); transform: rotate(90deg); }

.lightbox-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: min(880px, 100%);
    max-height: 100%;
    transform: translateY(14px) scale(.98);
    transition: transform .25s var(--ease);
}

.lightbox.active .lightbox-body { transform: none; }

.lightbox-frame {
    display: flex;
    max-height: calc(100vh - 168px);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--navy);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.lightbox-img { max-width: 100%; max-height: calc(100vh - 168px); object-fit: contain; display: block; }

.lightbox-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(255, 255, 255, .85);
    font-size: 14.5px;
    text-align: center;
}

.lightbox-caption span { font-family: var(--font-head); font-weight: 700; color: #fff; }

.lightbox-open {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: var(--r-pill);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: background .18s var(--ease), border-color .18s var(--ease);
}

.lightbox-open:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

/* ── Отзывы ──────────────────────────────────────────────────────────── */

.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.review-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
}

.review-stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.review-text { font-size: 14.5px; color: var(--text); }
.review-author { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.review-author strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 14.5px; }
.review-author span { font-size: 13px; color: var(--muted); }

.empty-state {
    padding: 64px 32px;
    border: 1px dashed var(--line);
    border-radius: var(--r-lg);
    background: var(--bg);
    text-align: center;
    color: var(--muted);
}

.empty-state h3 { margin-bottom: 10px; font-size: 20px; }

/* ── Поиск ───────────────────────────────────────────────────────────── */

.search-form-large { display: flex; gap: 12px; max-width: 640px; margin-bottom: 40px; }

.search-form-large input {
    flex: 1;
    padding: 15px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    font: inherit;
    font-size: 15px;
    outline: none;
}

.search-form-large input:focus { border-color: var(--blue-300); box-shadow: 0 0 0 4px rgba(59, 84, 165, .1); }

.search-group { margin-bottom: 40px; }

.search-group h2 {
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.search-results { display: grid; gap: 10px; }

.search-result {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--text);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.search-result:hover { border-color: transparent; box-shadow: var(--shadow-sm); transform: translateX(4px); color: var(--text); }
.search-result img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.search-result strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 15px; }
.search-result span { font-size: 13px; color: var(--muted); }

.search-icon {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 8px;
    background: var(--bg-alt);
    color: var(--blue);
    flex-shrink: 0;
}

/* ── Подвал ──────────────────────────────────────────────────────────── */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, .62); font-size: 14px; }

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 44px;
    padding: 60px 0 48px;
}

.footer-brand img { height: 52px; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; font-size: 13.5px; line-height: 1.6; }

.footer-col h4 {
    margin-bottom: 18px;
    color: #fff;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.footer-col a { display: block; margin-bottom: 10px; color: rgba(255, 255, 255, .62); font-size: 13.5px; }
.footer-col a:hover { color: #fff; }

/* Ссылки соцсетей объявлены ПОСЛЕ `.footer-col a` и с более высокой
   специфичностью: иначе то правило (display:block) сбивало центрирование
   иконки внутри круга и добавляло лишний отступ. */
.site-footer .footer-socials { display: flex; flex-direction: column; gap: 10px; margin-top: 0; }

.site-footer .footer-socials a {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 13.5px;
    line-height: 1;
}

.site-footer .footer-socials a span { line-height: 1; }

.site-footer .footer-socials .social-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    color: rgba(255, 255, 255, .85);
    transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.site-footer .footer-socials a:hover { color: #fff; }
.site-footer .footer-socials a:hover .social-icon {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-contacts p { margin-bottom: 12px; font-size: 13.5px; }
.footer-contacts a { color: #fff; font-family: var(--font-head); font-weight: 700; }

.footer-legal {
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 12.5px;
    color: rgba(255, 255, 255, .45);
    line-height: 1.7;
}

.footer-legal-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.footer-legal a { color: rgba(255, 255, 255, .7); }
.footer-legal strong { color: rgba(255, 255, 255, .7); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 12.5px;
    color: rgba(255, 255, 255, .4);
}

.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ── 404 ─────────────────────────────────────────────────────────────── */

.notfound { padding: 120px 0; text-align: center; }
.notfound-code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; background: linear-gradient(120deg, var(--blue), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

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

@media (max-width: 1400px) {
    .expert-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .usp-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
    .header-search { display: none; }

    /* Семь пунктов меню рядом с телефоном и кнопкой не помещаются на
       планшетных и «неполноэкранных» ноутбучных ширинах — здесь навигация
       уже уходит в бургер, а не только при мобильном брейкпоинте. */
    .burger { display: flex; }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 20px 28px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        transition: all .24s var(--ease);
    }

    .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .main-nav a { padding: 13px 14px; font-size: 15px; }
}

@media (max-width: 900px) {
    .section { padding: 64px 0; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 56px; }
    .hero-visual { order: -1; max-width: 460px; }
    .about-grid, .split, .lead-block, .product-detail, .doctor-detail, .duo-grid,
    .footer-legal-grid { grid-template-columns: 1fr; gap: 36px; }
    .split-reverse .split-media { order: 0; }
    .about-visual img { max-width: 220px; }
    .cta-banner { flex-direction: column; align-items: flex-start; padding: 34px; }
    .usp-strip { padding: 32px 0; }
    .usp-grid { border-radius: 0; box-shadow: none; }
    .doctor-detail-photo { max-width: 260px; }
    .topbar-contacts a span { display: none; }
    .program-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    :root { --header-h: 66px; }

    .container { padding-left: 16px; padding-right: 16px; }
    .topbar { display: none; }
    .brand-logo { height: 32px; }
    /* На узких экранах подпись не помещается рядом с меню-бургером. */
    .brand-affiliate { display: none; }
    .brand-mark { width: 36px; height: 36px; font-size: 13px; border-radius: 11px; }
    .brand-name { font-size: 16.5px; }
    .brand-tag { display: none; }
    .header-inner {
        gap: 7px;
        padding-left: 12px;
        padding-right: 12px;
        justify-content: flex-start;
    }
    .brand { order: 1; flex: 0 1 auto; margin-left: 0; }
    .brand-logo { height: 30px; }
    .header-actions { display: contents; }
    .burger { order: 2; }
    .header-phone {
        order: 3;
        margin-left: auto;
        display: inline-block;
        flex: 0 1 auto;
        min-width: 0;
        font-size: 12px;
        letter-spacing: -.03em;
        white-space: nowrap;
    }
    .header-actions .btn {
        order: 4;
        display: inline-flex;
        flex: 0 0 auto;
        padding: 8px 10px;
        font-size: 11px;
    }
    .burger { flex: 0 0 36px; width: 36px; height: 36px; }

    .hero-inner {
        gap: 28px;
        padding-top: 32px;
        padding-bottom: 40px;
    }
    .hero-text, .hero-visual { min-width: 0; max-width: 100%; }
    .hero-badge { max-width: 100%; }
    .hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); overflow-wrap: break-word; }
    .hero-sub { font-size: 16px; line-height: 1.55; }
    .hero-actions { gap: 10px; margin-top: 24px; }
    .hero-actions .btn { max-width: 100%; }
    .hero-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 30px;
        padding-top: 20px;
    }
    .hero-meta div { min-width: 0; }
    .hero-meta div strong { font-size: 24px; }

    .expert-grid, .article-grid, .stats-grid, .usp-grid,
    .product-grid { grid-template-columns: 1fr; }

    .section-head { margin-bottom: 34px; }
    .lead-form { padding: 26px 22px; }
    .duo-card, .detail-block, .product-gallery { padding: 26px 22px; }
    .flash-stack { top: 78px; left: 16px; right: 16px; max-width: none; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 44px 0 36px; }
    .price-box { flex-direction: column; align-items: flex-start; gap: 10px; }

    .doc-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .video-note { padding: 18px 20px; font-size: 14px; }
    .program-body { padding: 22px; }
    .city-request { flex-direction: column; align-items: flex-start; }
    .lightbox { padding: 20px 14px; }
    .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 22px; }
    .lightbox-frame, .lightbox-img { max-height: calc(100vh - 140px); }
    .lightbox-caption { flex-direction: column; gap: 10px; }
}

@media (max-width: 360px) {
    .header-inner { gap: 5px; padding-left: 10px; padding-right: 10px; }
    .header-actions { gap: 4px; }
    .header-phone { font-size: 11px; }
    .header-actions .btn { padding-left: 8px; padding-right: 8px; font-size: 10px; }
    .burger { flex-basis: 34px; width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
