/* ChemBioEGE — общие стили лендинга. Единая визуальная подпись для всех страниц. */

:root {
    /* Базовая палитра — белый фон, лайм как основной акцент,
       жёлтый зарезервирован для CTA-кнопок «записаться» (см. .site-topbar__link--cta). */
    --bg: #ffffff;
    --bg-warm: #fafafa;
    --paper: #ffffff;
    --text: #15171a;
    --text-muted: #6a6f5d;
    --accent: #a7fc00;
    --accent-ink: #1a2a00;
    --accent-soft: #c6f06b;
    --cta-yellow: #f5c500;
    --cta-yellow-soft: #ffe070;
    --black: #0a0a0a;
    --display: 'Onest', 'Inter', -apple-system, sans-serif;
    --font-brutal: 'Unbounded', 'Dela Gothic One', Impact, 'Arial Narrow', sans-serif;
    --hand: 'Caveat', cursive;
    --font: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 4px 24px rgba(15, 17, 26, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 17, 26, 0.10);
    --site-topbar-h: clamp(44px, 5.5vw, 56px);
    --site-topbar-total: calc(var(--site-topbar-h) + env(safe-area-inset-top, 0px));
    --doc-scroll: 0;
    --scroll-prog: 0;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--site-topbar-total) + 12px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    /* iOS/Android: fallback для браузеров без dvh */
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    padding-top: var(--site-topbar-total);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    position: relative;
}

/* Чисто белый фон — без градиентов и подсветок. */
body::before { display: none; }

/* Модалки курса и тарифа исключены, чтобы сохранить position:fixed + высокий z-index. */
body > *:not(.scroll-curtain):not(.scroll-progress):not(.site-topbar):not(.fab-mail):not(.to-top):not(.cookie-bar):not(.course-modal):not(.tier-modal) {
    position: relative;
    z-index: 1;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
a:hover { color: var(--accent-ink); }
img { max-width: 100%; height: auto; display: block; }

/* ─── Шторка перехода + полоса прогресса (только index.html) ─── */
.scroll-curtain {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 45%, var(--bg) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    display: none;
}
.scroll-curtain.is-open { opacity: 0.94; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
    .scroll-curtain { transition: none; }
    .scroll-curtain.is-open { opacity: 1; }
}

.scroll-progress {
    position: fixed;
    top: var(--site-topbar-total);
    left: 0;
    height: 3px;
    width: calc(var(--scroll-prog, 0) * 100%);
    max-width: 100%;
    background: linear-gradient(90deg, #1a1a1a, #5c5346);
    z-index: 10001;
    pointer-events: none;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }

/* ─── Топбар ─── */
.site-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: var(--site-topbar-total);
    display: flex;
    align-items: center;
    padding: env(safe-area-inset-top, 0px) clamp(14px, 3vw, 28px) 0;
    background: #000;
    z-index: 10002;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-topbar__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    /* Навигация абсолютно центрирована относительно topbar'а: бренд слева в обычном
       потоке, nav — absolute по центру, чтобы центровка не сдвигалась шириной бренда. */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    column-gap: 16px;
}
.site-topbar__brand { flex-shrink: 0; }
.site-topbar__nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.site-topbar__brand {
    font-family: var(--display);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: #fff;
    padding: 6px 0;
    flex-shrink: 0;
}
.site-topbar__brand:hover { color: var(--accent-soft); }
.site-topbar__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(4px, 1vw, 10px);
}
.site-topbar__link {
    font-family: var(--font);
    font-size: clamp(0.78rem, 1.1vw, 0.92rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    padding: 8px 16px;
    border-radius: 999px;
}
.site-topbar__link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.site-topbar__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-topbar__link.is-active { background: rgba(255, 255, 255, 0.12); color: #fff; }
/* CTA «записаться» — жёлтая (выделяется на белом фоне; основной акцент сайта лайм). */
.site-topbar__link--cta {
    border: 1.5px solid var(--cta-yellow);
    background: var(--cta-yellow);
    color: #1a1a1a;
    margin-left: 2px;
}
.site-topbar__link--cta:hover { background: var(--cta-yellow-soft); color: #1a1a1a; border-color: var(--cta-yellow-soft); }
/* После скролла за первый экран — кнопка становится лаймовой (плавный переход).
   Класс .is-scrolled выставляется JS из index.html при scrollY > 60% высоты hero. */
.site-topbar__link--cta {
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
body.is-scrolled .site-topbar__link--cta {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}
body.is-scrolled .site-topbar__link--cta:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
    color: var(--accent-ink);
}
@media (max-width: 640px) {
    .site-topbar__inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: static;
    }
    .site-topbar__brand,
    .site-topbar__nav { justify-self: auto; }
    .site-topbar__nav {
        position: static;
        transform: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: 100%;
        padding-bottom: 6px;
        justify-content: flex-start;
    }
    .site-topbar__nav::-webkit-scrollbar { display: none; }
    .site-topbar__link { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; }
}

/* ─── Хлебные крошки ─── */
.breadcrumbs {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px clamp(16px, 4vw, 32px) 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.breadcrumbs a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.breadcrumbs span { margin: 0 0.35em; opacity: 0.5; }

/* ─── Hero (главная): фон-фото целиком + декорации ─── */
.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: block;
    padding: 0;
    margin: 0;
    background: transparent;
    scroll-snap-align: start;
    isolation: isolate;
    /* Лёгкая обрезка «пустого неба» сверху: 1024×630 вместо 1024×682 (≈7.6%).
     * «ХИМБИО»-облака начинаются с y≈72 — остаются видимыми. */
    aspect-ratio: 1024 / 630;
}
/* Сцена сохраняет натуральные пропорции 1024×682, прижата к низу .hero —
 * лишнее небо сверху уходит за overflow:hidden. Все %-координаты
 * (.hero-bg-picture, .hero-sign-overlay, .hero-head, .hero-receipt)
 * считаются относительно сцены, поэтому совпадение с пикселями исходника не ломается. */
.hero-stage {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    aspect-ratio: 1024 / 682;
}
.hero-bg-picture {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}
.hero-bg {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
/*
 * Оверлей щита: PNG/WebP с прозрачным фоном (sign-himbio.*).
 * Контейнер подобран по bbox жёлтого постера в hero (1024×682):
 *   yellow bbox ≈ (302, 269)–(721, 497) → центр ≈ 50% × 56.2%.
 * Размер 44% × 37% — пропорции нового знака (1012/567 ≈ 1.785),
 * с запасом ~2% по сторонам, чтобы рамка нового знака закрыла старый щит.
 */
.hero-sign-overlay {
    position: absolute;
    left: 28%;
    top: 37.73%;
    width: 44%;
    height: 37%;
    z-index: 4;
    pointer-events: none;
    user-select: none;
    display: block;
    line-height: 0;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}
.hero-sign-overlay__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    user-select: none;
    pointer-events: none;
}
/*
 * Голова — поверх пегаса в hero-billboard-himbio.png.
 * Bbox пегаса (грива+тело+крылья) на 1024×682 ≈ X 64–84%, Y 5–25%.
 * Голова растровая 640×853 (соотн. 0.75), берём ширину ≈ 20% от .hero-stage —
 * этого хватает закрыть пегаса по обоим осям, не выглядит «огромной».
 */
.hero-head {
    position: absolute;
    top: -2%;
    left: 68.5%;
    right: auto;
    width: 16%;
    min-width: 100px;
    max-width: 196px;
    height: auto;
    z-index: 12;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
    animation: heroHeadFloat 5s ease-in-out infinite;
    transform-origin: 50% 35%;
    will-change: transform;
}
@keyframes heroHeadFloat {
    0%, 100% { transform: translate(0, 0) rotate(-3deg); }
    50%      { transform: translate(2px, -5px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-head { animation: none; transform: translate(0, 0) rotate(-2deg); }
}
/* Вторая голова — рыжая, справа от знака (ниже основной), со своим тактом анимации */
.hero-head--2 {
    top: 36%;
    left: 80%;
    right: auto;
    width: 16%;
    min-width: 100px;
    max-width: 196px;
    z-index: 11;
    animation-name: heroHeadFloat2;
    animation-duration: 5.6s;
    animation-delay: -1.2s;
    transform-origin: 50% 50%;
}
@keyframes heroHeadFloat2 {
    0%, 100% { transform: translate(-2px, 2px) rotate(4deg); }
    50%      { transform: translate(0, -4px) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-head--2 { animation: none; transform: rotate(2deg); }
}
.hero-receipt {
    position: absolute;
    left: clamp(8px, 2vw, 28px);
    bottom: clamp(60px, 11vw, 120px);
    width: clamp(110px, 18vw, 220px);
    height: auto;
    z-index: 3;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
    transform: rotate(-6deg);
    animation: heroReceiptFloat 6.5s ease-in-out infinite;
    transform-origin: 50% 100%;
    will-change: transform;
}
@keyframes heroReceiptFloat {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50%      { transform: rotate(-3deg) translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-receipt { animation: none; }
}
/*
 * Кнопки CTA — внутри сцены, ровно под жёлтым щитом.
 * Жёлтый bbox: top 38.85%, height 34.75% → bottom 73.6% от .hero-stage.
 * Отступ ровно 15px от низа щита.
 */
.hero-actions {
    position: absolute;
    z-index: 25;
    left: 50%;
    transform: translateX(-50%);
    top: calc(73.6% + 15px);
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}
.hero-actions .btn { box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22); }
.hero-actions .btn--ghost {
    background: rgba(255, 255, 255, 0.96);
    color: #0a0a0a;
    border: none;
    backdrop-filter: blur(2px);
}
.hero-actions .btn--ghost:hover {
    background: #fff;
    border: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
@media (max-width: 720px) {
    .hero-head {
        top: -2%;
        left: 66%;
        right: auto;
        width: 22%;
        min-width: 86px;
        max-width: 156px;
    }
    .hero-head--2 {
        top: 38%;
        left: 76%;
        width: 22%;
        min-width: 86px;
        max-width: 156px;
    }
    .hero-receipt {
        width: clamp(80px, 20vw, 160px);
        left: clamp(4px, 1vw, 12px);
        bottom: clamp(40px, 9vw, 80px);
    }
    .hero-actions { gap: 8px; }
    .hero-actions .btn { padding: 10px 18px; font-size: 0.88rem; }
}

/* ─── Мобильные фиксы (iPhone/Android) ─── */
@media (max-width: 480px) {
    html { scroll-padding-top: calc(var(--site-topbar-total) + 8px); }

    /* На мобильных: делаем первый экран читабельным — текст + кнопки в потоке,
       декор скрываем, чтобы не перекрывал и не «съедал» экран. */
    .hero { aspect-ratio: auto; }
    .hero-stage { position: relative; }
    .hero-actions { display: none; }
    .hero-head, .hero-receipt { display: none; }

    .hero-sign-overlay {
        left: 50%;
        top: 38%;
        width: 88%;
        height: auto;
        transform: translateX(-50%);
        filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
    }
    .hero-sign-overlay__img { height: auto; }

    .hero-mobile-copy {
        display: block;
        margin: 14px auto 0;
        width: min(92vw, 520px);
        background: rgba(247, 243, 235, 0.88);
        border: 1px solid rgba(10, 10, 10, 0.14);
        border-radius: 18px;
        box-shadow: 0 10px 28px rgba(12, 10, 9, 0.10);
        padding: 18px 16px 16px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .hero-mobile-copy__kicker {
        font-family: var(--mono);
        font-size: 0.7rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 10px;
    }
    .hero-mobile-copy__title {
        font-family: var(--display);
        font-size: 1.55rem;
        line-height: 1.05;
        letter-spacing: -0.03em;
        text-transform: lowercase;
        margin-bottom: 10px;
    }
    .hero-mobile-copy__desc {
        color: var(--text-muted);
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 14px;
    }
    .hero-mobile-copy__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .hero-mobile-copy__actions .btn {
        width: 100%;
        min-height: 46px;
        font-size: 0.96rem;
        padding: 12px 18px;
    }

    /* Сетки: чуть меньше минимальная ширина карточек, чтобы не было горизонтального скролла */
    .courses-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
    .plans-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .reviews-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

    .course-card-body { padding: 18px 18px 18px; }
    .course-card-price-amount { font-size: 1.32rem; }

    /* Внутренние страницы: чуть компактнее «герой» */
    .page-hero { padding-top: clamp(28px, 7vw, 72px); }
}

/* По умолчанию (не мобилка) — мобильный блок скрыт */
.hero-mobile-copy { display: none; }

/* На устройствах без hover — убираем «лифт» карточек */
@media (hover: none) {
    .course-card:hover,
    .team-card:hover,
    .feature-card:hover {
        transform: none;
    }
}

/* Скрин-ридерный текст */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* Старые декоративные элементы (красный спрей, маркизы, штампы) — отключены */
.spray-bg,
.spray-fg,
.brand-dot,
.scribble,
.head-sticker,
.brand-stamp,
.brand-arrow-wrap,
.brand-arrow-label,
.brand-arrow-svg,
.brand-marquee,
.divider,
.divider-word,
.divider-meta,
.hero-tagline,
.hero-row,
.hero-photo,
.hero-middle,
.big-num,
.hero-meta,
.big-word { display: none !important; }

.spray-fg {
    position: relative;
    font-family: var(--display);
    font-size: clamp(4rem, 14vw, 14rem);
    line-height: 0.85;
    letter-spacing: -0.045em;
    color: var(--text);
    text-transform: lowercase;
    font-weight: 900;
    margin-top: clamp(4px, 1.2vh, 16px);
    z-index: 2;
    transform: translateY(calc(var(--doc-scroll, 0) * -0.035px));
    will-change: transform;
}
.brand-dot {
    color: var(--accent);
    -webkit-text-stroke: 4px #0e0e0e;
    paint-order: stroke fill;
    text-shadow: 4px 4px 0 #0e0e0e;
}
.hero-tagline {
    position: relative;
    z-index: 4;
    max-width: 36rem;
    margin-top: clamp(10px, 2vh, 20px);
    padding: 0 4px;
    font-family: var(--font);
    font-size: clamp(1.02rem, 2.4vw, 1.45rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    text-transform: lowercase;
}
.hero-tagline strong { font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.hero-tagline .tagline-accent { color: var(--accent); font-weight: 700; }
.hero-tagline__rule {
    display: block;
    width: min(100%, 220px);
    height: 3px;
    margin-top: 16px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(217, 47, 36, 0.25));
}

.scribble { position: absolute; z-index: 3; pointer-events: none; opacity: 0.9; }

.head-sticker {
    position: absolute;
    width: clamp(72px, 13vw, 132px);
    height: auto;
    z-index: 25;
    filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.12));
    animation: headFloat 5s ease-in-out infinite;
}
.head-hero { top: clamp(8px, 2vh, 28px); right: clamp(8px, 3vw, 24px); }
@keyframes headFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
    .head-sticker { animation: none; }
    .spray-bg { transform: rotate(-2deg) translateY(-6%); }
    .spray-fg { transform: none; }
}

.hero-row {
    position: relative;
    margin-top: clamp(24px, 6vh, 64px);
    display: grid;
    grid-template-columns: minmax(180px, 280px) auto 1fr;
    gap: clamp(14px, 3vw, 28px);
    align-items: end;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.hero-photo {
    border: 2px solid var(--text);
    background: var(--paper);
    overflow: hidden;
    transform: translateY(calc(var(--doc-scroll, 0) * 0.055px));
    will-change: transform;
}
.hero-photo--banner img { width: 100%; height: auto; display: block; }
.hero-middle {
    position: relative;
    align-self: end;
    padding: 0 12px 24px 8px;
    min-width: 0;
    max-width: 100%;
    transform: translateY(calc(var(--doc-scroll, 0) * -0.045px));
    will-change: transform;
}
.brand-stamp {
    width: min(200px, 42vw);
    height: auto;
    display: block;
    margin: 0 auto 8px;
    animation: stampSpin 22s linear infinite;
}
@keyframes stampSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand-stamp { animation: none; } }

.big-num {
    font-family: var(--display);
    font-size: clamp(3.2rem, 10vw, 6rem);
    line-height: 0.85;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 2px rgba(14, 14, 14, 0.35);
    letter-spacing: -0.04em;
}
.hero-meta {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-muted);
    margin-top: 8px;
}
.brand-arrow-wrap { margin-top: 10px; text-align: center; }
.brand-arrow-label {
    font-family: var(--hand);
    font-size: clamp(1.1rem, 2.8vw, 1.5rem);
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}
.brand-arrow-svg { width: min(200px, 55vw); height: auto; margin: 0 auto; display: block; }

.big-word {
    font-family: var(--display);
    text-transform: lowercase;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-align: right;
    padding-left: 8px;
    transform: translateY(calc(var(--doc-scroll, 0) * 0.065px));
    will-change: transform;
}
.big-word--stack .bw-line { display: block; font-size: clamp(2.4rem, 7vw, 5rem); }
.big-word--stack .bw-line:last-child { color: var(--accent); }

.brand-marquee {
    --marquee-h: clamp(46px, 11.5vw, 86px);
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--marquee-dock-gap) + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    width: auto;
    height: var(--marquee-h);
    overflow: hidden;
    background: #050505;
    border-block: 2px solid #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.brand-marquee__track {
    display: flex;
    align-items: stretch;
    width: max-content;
    height: 100%;
    animation: brandMarquee 32s linear infinite;
    will-change: transform;
}
.brand-marquee__chunk {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    white-space: nowrap;
    font-family: var(--display);
    font-weight: 900;
    text-transform: lowercase;
    color: #ff2f24;
    font-size: calc(var(--marquee-h) * 0.88);
    line-height: 0.78;
    letter-spacing: -0.055em;
    word-spacing: 0;
}
@keyframes brandMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .brand-marquee__track { animation: none; width: 100%; justify-content: center; transform: none; }
    .brand-marquee__chunk:nth-child(2) { display: none; }
    .hero-photo, .hero-middle, .hero-row .big-word { transform: none !important; }
}

@media (max-width: 960px) {
    .hero-row { grid-template-columns: 1fr; align-items: start; }
    .big-word { text-align: left; padding-left: 0; }
}

/* ─── Reveal-on-scroll ─── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ─── Pitch (главная) ─── */
.pitch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin: clamp(48px, 10vh, 96px) auto 0;
    padding: 0 clamp(16px, 4vw, 32px);
    max-width: 1320px;
    width: 100%;
    align-items: start;
    overflow-x: clip;
    scroll-snap-align: start;
}
.pitch-left .photo-card {
    aspect-ratio: 1 / 1.15;
    border: 2px solid var(--text);
    background: linear-gradient(135deg, #c0b9a8, #9c947f);
    background-size: cover;
    background-position: center;
}
.pitch-right h2 {
    font-family: var(--display);
    text-transform: uppercase;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.pitch-text { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.btn-cta {
    display: inline-block;
    margin-top: 22px;
    font-family: var(--display);
    text-transform: uppercase;
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    color: var(--accent-ink);
    border-bottom: 3px solid var(--accent);
    padding-bottom: 4px;
}
.btn-cta:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
@media (max-width: 820px) { .pitch { grid-template-columns: 1fr; } }

/* ─── Divider ─── */
.divider {
    margin: clamp(56px, 10vh, 100px) auto 0;
    padding: 0 clamp(16px, 4vw, 32px);
    max-width: 1320px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: end;
    scroll-snap-align: start;
}
.divider-word {
    font-family: var(--display);
    font-size: clamp(3rem, 12vw, 7rem);
    line-height: 0.9;
    text-transform: lowercase;
    letter-spacing: -0.04em;
}
.divider-word em { font-style: normal; color: var(--accent); }
.divider-meta {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-bottom: 12px;
}
@media (max-width: 720px) { .divider { grid-template-columns: 1fr; } }

/* ─── Курсы (главная и страница) ─── */
.courses-section {
    margin: clamp(56px, 11vh, 120px) auto 0;
    padding: 0 clamp(16px, 4vw, 32px) 8px;
    max-width: 1320px;
    scroll-snap-align: start;
}
.courses-inner { border-top: 1.5px solid rgba(0, 0, 0, 0.55); padding-top: 40px; }
.courses-head { margin-bottom: 28px; }
.courses-title {
    font-family: var(--display);
    text-transform: uppercase;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 10px;
}
.courses-lead { font-size: 0.98rem; color: var(--text-muted); max-width: 560px; line-height: 1.55; }

.courses-mount { min-height: 120px; }
.courses-loading, .courses-error {
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 24px 0;
}
.courses-error { color: var(--accent); }
.courses-error a { text-decoration: underline; text-underline-offset: 3px; }
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(18px, 2.2vw, 28px);
}

/* Карточка курса — чистый «маркетинговый» стиль:
 * белый фон, мягкая тень, аккуратная типографика, hover-лифт. */
.course-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05), 0 18px 40px rgba(15, 23, 42, 0.12);
    border-color: rgba(10, 10, 10, 0.16);
}
.course-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #eafac5 0%, #c6f06b 50%, #9fe023 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.course-card-media::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 35%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.14));
    pointer-events: none;
}
.course-card-media--placeholder {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), transparent 60%),
        linear-gradient(135deg, #eafac5 0%, #c6f06b 50%, #9fe023 100%);
}
.course-card-media--placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.06) 0 1.5px, transparent 2px),
        radial-gradient(circle at 30% 80%, rgba(0, 0, 0, 0.05) 0 1.2px, transparent 1.6px),
        radial-gradient(circle at 60% 30%, rgba(0, 0, 0, 0.05) 0 1px, transparent 1.4px);
    background-size: 32px 32px, 24px 24px, 18px 18px;
    opacity: 0.7;
}
.course-card-media--placeholder {
    background:
        repeating-linear-gradient(135deg, rgba(10,10,10,0.05) 0 12px, transparent 12px 24px),
        linear-gradient(135deg, #eafac5, #c6f06b);
}
.course-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-family: var(--font);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    color: #0a0a0a;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 5px 11px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.course-card-badge--open {
    left: auto;
    right: 12px;
    background: rgba(10, 10, 10, 0.86);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.course-card-badge--open::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #ff5e5e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 94, 94, 0.6);
    animation: courseLivePulse 1.6s ease-in-out infinite;
}
@keyframes courseLivePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 94, 94, 0.55); }
    50%      { box-shadow: 0 0 0 5px rgba(255, 94, 94, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .course-card-badge--open::before { animation: none; }
}

.course-card-body {
    padding: 22px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.course-card-title {
    font-family: var(--font);
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--text);
    text-transform: none;
    /* 2 строки максимум */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.course-card-desc {
    font-family: var(--font);
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Inline-метаданные с иконками */
.course-card-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-family: var(--font);
    font-size: 0.82rem;
    color: var(--text-muted);
}
.course-card-stats li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.1;
}
.course-card-stats li svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: rgba(10, 10, 10, 0.6);
}
.course-card-stats li b {
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
/* Низ карточки: цена слева + CTA справа, разделены тонкой линией сверху */
.course-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(10, 10, 10, 0.08);
}
.course-card-price-block {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}
.course-card-price-label {
    font-family: var(--font);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.course-card-price-amount {
    font-family: var(--font);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.45rem;
    color: var(--text);
}
.course-card-price-block--free .course-card-price-amount { color: #2c9b3a; }
.course-card-price-note { display: none; }

/* Действия */
.course-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.course-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 12px;
    padding: 11px 20px;
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(167, 252, 0, 0.35);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.course-card-cta:hover {
    background: #ffd54a;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(167, 252, 0, 0.45);
}
.course-card-cta::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.18s ease;
}
.course-card-cta:hover::after { transform: translateX(2px); }
.course-card-actions .course-card-cta.is-disabled {
    background: rgba(10, 10, 10, 0.06);
    color: var(--text-muted);
    border: 1px dashed rgba(10, 10, 10, 0.25);
    box-shadow: none;
    cursor: default;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    padding: 10px 18px;
}
.course-card-actions .course-card-cta.is-disabled::after { content: none; }

/* ─── «Скоро» — заблюренная карточка с лентой-скотчем ─── */
.course-card--soon {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.course-card--soon .course-card-media,
.course-card--soon .course-card-body {
    filter: blur(6px) saturate(0.9);
    -webkit-filter: blur(6px) saturate(0.9);
    user-select: none;
    pointer-events: none;
}
.course-card--soon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    z-index: 1;
    pointer-events: none;
}
.course-card--soon:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.45);
}

/* Лента-«скотч»: жёлтая полоса под наклоном с повторяющимся «скоро» */
.course-card-tape {
    position: absolute;
    left: -22%;
    right: -22%;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    z-index: 3;
    background:
        linear-gradient(var(--accent), var(--accent)) padding-box,
        repeating-linear-gradient(45deg, #0a0a0a 0 8px, var(--accent) 8px 16px) border-box;
    color: var(--accent-ink);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    box-shadow: 0 8px 22px rgba(10, 10, 10, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    padding: 12px 0 13px;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}
.course-card-tape__text {
    display: block;
    white-space: nowrap;
    font-family: 'Anton', 'Archivo Black', Impact, sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
    color: #0a0a0a;
    font-style: italic;
    text-shadow: 1px 1px 0 rgba(255, 233, 74, 0.6), 2px 2px 0 rgba(10, 10, 10, 0.18);
    -webkit-text-stroke: 0.6px #0a0a0a;
    paint-order: stroke fill;
}
.course-card-tape__row {
    display: inline-block;
    transform: skewX(-6deg);
    padding: 0 8px;
}
@media (prefers-reduced-motion: reduce) {
    .course-card-tape { box-shadow: 0 4px 14px rgba(10, 10, 10, 0.28); }
}

/* ─── Команда / преподаватели ─── */
.team {
    margin: clamp(56px, 10vh, 100px) auto 0;
    padding: 0 clamp(16px, 4vw, 32px) 48px;
    max-width: 1320px;
    scroll-snap-align: start;
}
.team-head { margin-bottom: 28px; }
.team-title {
    font-family: var(--display);
    text-transform: uppercase;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    letter-spacing: -0.03em;
}
.team-lead { color: var(--text-muted); margin-top: 10px; max-width: 52ch; }
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 2.4vw, 26px);
}
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-card {
    --team-accent: var(--accent);
    --team-ink: var(--accent-ink);
    position: relative;
    background: var(--paper);
    border: 2.5px solid #0a0a0a;
    border-radius: 6px;
    padding: clamp(22px, 2.4vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 6px 6px 0 #0a0a0a;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
    isolation: isolate;
}
.team-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 8px;
    background: var(--team-accent);
    z-index: 0;
}
.team-card:hover {
    transform: translate(-2px, -3px);
    box-shadow: 8px 9px 0 #0a0a0a;
}
.team-card--bio { --team-accent: #c6f135; --team-ink: #112; }
.team-card--chem { --team-accent: #a7fc00; --team-ink: #1a1a1a; }
.team-card--support { --team-accent: #ff7aa3; --team-ink: #1a1a1a; }

.team-card__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}
.team-card__tag {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--team-ink);
    background: var(--team-accent);
    border: 2px solid #0a0a0a;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}
.team-card__num {
    font-family: var(--display);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: rgba(10, 10, 10, 0.18);
    letter-spacing: -0.04em;
    line-height: 1;
}
.team-card__title {
    position: relative;
    z-index: 1;
    font-family: var(--display);
    text-transform: lowercase;
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 4px 0 0;
}
/* Блок с фото преподавателя — поверх «полароид»-аватар + имя/роль */
.team-card__person {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}
.team-card__avatar {
    width: clamp(88px, 9vw, 110px);
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    display: block;
    overflow: hidden;
    border: 2.5px solid #0a0a0a;
    border-radius: 4px;
    background: var(--team-accent);
    box-shadow: 4px 4px 0 #0a0a0a;
    transform: rotate(-3deg);
    transition: transform 0.18s ease;
}
.team-card:hover .team-card__avatar { transform: rotate(-1deg) scale(1.02); }
.team-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    user-select: none;
    pointer-events: none;
}
.team-card__person-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.team-card__person .team-card__title { margin: 0; line-height: 1.05; }
.team-card__role {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
@media (prefers-reduced-motion: reduce) {
    .team-card__avatar { transition: none; }
    .team-card:hover .team-card__avatar { transform: rotate(-3deg); }
}
.team-card__list {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.45;
    flex: 1;
}
.team-card__list li {
    position: relative;
    padding-left: 22px;
}
.team-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 12px;
    height: 12px;
    background: var(--team-accent);
    border: 2px solid #0a0a0a;
    transform: rotate(45deg);
}
.team-card__foot {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1.5px dashed rgba(10, 10, 10, 0.25);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
@media (prefers-reduced-motion: reduce) {
    .team-card { transition: none; }
    .team-card:hover { transform: none; }
}

.teacher-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
@media (min-width: 640px) { .teacher-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .teacher-grid { grid-template-columns: repeat(3, 1fr); } }
.teacher-card {
    border: 1.5px solid rgba(0, 0, 0, 0.45);
    background: var(--paper);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.teacher-card__photo {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #c4bdb0, #8a8275);
    background-size: cover;
    background-position: center;
}
.teacher-card__photo[data-photo] { background-image: var(--photo); }
.teacher-card__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.teacher-card__tag {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-ink);
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 8px;
}
.teacher-card h2 {
    font-family: var(--display);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.teacher-card ul { list-style: none; font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.teacher-card li { padding: 4px 0 4px 14px; position: relative; }
.teacher-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-ink);
}

/* ─── Page-hero для внутренних страниц (courses/teachers/faq/about) ─── */
.page-hero {
    position: relative;
    padding: clamp(40px, 8vw, 88px) clamp(16px, 4vw, 32px) clamp(28px, 5vw, 56px);
    overflow: hidden;
    max-width: 1320px;
    margin: 0 auto;
}
.page-hero__bg {
    position: absolute;
    top: -8%;
    left: -3%;
    right: -3%;
    font-family: var(--display);
    font-size: clamp(6rem, 18vw, 16rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--accent);
    filter: blur(18px) saturate(1.1);
    opacity: 0.45;
    transform: rotate(-2deg);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    text-transform: lowercase;
    z-index: 0;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__kicker {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 14px;
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent);
    border-radius: 4px;
}
.page-hero h1 {
    font-family: var(--display);
    font-size: clamp(2.4rem, 8vw, 5.5rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-transform: lowercase;
    margin-bottom: 18px;
}
.page-hero h1 .accent { color: var(--accent-ink); background: var(--accent); padding: 0 0.18em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.page-hero__lead {
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    color: var(--text-muted);
    max-width: 60ch;
    margin-bottom: 24px;
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Контентные секции ─── */
.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 32px);
    scroll-snap-align: start;
}
.section__head { margin-bottom: 28px; max-width: 880px; }
.section__kicker {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 10px;
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent);
    border-radius: 4px;
}
.section__title {
    font-family: var(--display);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.section__desc { margin-top: 12px; color: var(--text-muted); max-width: 60ch; }

/* Карточки features */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.feature-card {
    background: var(--paper);
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--text); }
@media (hover: none) { .feature-card:hover { transform: none; } }
.feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--accent-ink);
}
.feature-card h3 {
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-size: 1.05rem;
    margin-bottom: 8px;
}
.feature-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.5; }

/* Шаги */
.steps { display: grid; gap: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
    display: flex;
    gap: 14px;
    padding: 20px 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(12, 10, 9, 0.1);
    border-radius: var(--radius);
}
.step__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--black);
    color: #fff;
    font-family: var(--display);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step h3 {
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-size: 1rem;
    margin-bottom: 6px;
}
.step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* FAQ */
.faq { max-width: 820px; }
.faq-item { border-bottom: 1px solid rgba(12, 10, 9, 0.12); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 0;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: var(--display);
    font-size: 1.35rem;
    color: var(--accent-ink);
    flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item__body { padding: 0 0 18px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

/* CTA-полоса */
.cta-band {
    margin: 32px auto 0;
    padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 48px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(167, 252, 0, 0.25), transparent 55%),
        linear-gradient(120deg, #0a0a0a, #1a1a1a 50%, #2c2c2c);
    color: #fff;
    text-align: center;
    max-width: 1120px;
}
.cta-band h2 {
    font-family: var(--display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    text-transform: lowercase;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.cta-band p { opacity: 0.88; margin-bottom: 24px; max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-band .btn--primary {
    background: var(--accent);
    color: var(--accent-ink);
}
.cta-band .btn--primary:hover { background: var(--accent-soft); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); color: var(--accent-ink); }

/* Тарифы */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.plan-card {
    background: var(--paper);
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    border-radius: var(--radius);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    box-shadow: var(--shadow);
}
.plan-card.is-popular { border-color: var(--accent-ink); }
.plan-card.is-popular::before {
    content: 'Популярно';
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.plan-card__tag {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.plan-card__title {
    font-family: var(--display);
    font-size: 1.25rem;
    text-transform: lowercase;
    letter-spacing: -0.02em;
}
.plan-card__price { font-family: var(--display); font-size: 1.6rem; color: var(--accent-ink); }
.plan-card__price small { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.plan-card ul { list-style: none; padding: 0; margin: 4px 0 12px; font-size: 0.92rem; color: var(--text-muted); flex: 1; }
.plan-card li { padding: 4px 0 4px 22px; position: relative; }
.plan-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    top: 7px;
}

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.review-card {
    background: var(--paper);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
    padding: 22px 22px 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}
.review-card::before {
    content: '“';
    position: absolute;
    top: 6px;
    right: 18px;
    font-family: var(--display);
    font-size: 3rem;
    line-height: 0.7;
    color: var(--accent);
    opacity: 0.6;
}
.review-card p { font-size: 0.96rem; color: var(--text); line-height: 1.55; }
.review-card__author {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.review-card__author strong { font-family: var(--display); color: var(--text); font-size: 0.92rem; letter-spacing: -0.01em; text-transform: lowercase; }

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.contact-card {
    background: var(--paper);
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    border-radius: var(--radius);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact-card__label {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.contact-card__value {
    font-family: var(--display);
    font-size: 1.1rem;
    text-transform: lowercase;
    letter-spacing: -0.02em;
    color: var(--text);
}
.contact-card a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.contact-card a:hover { background: var(--accent); color: var(--accent-ink); padding: 0 4px; border-radius: 3px; text-decoration: none; }

/* ─── Кнопки ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.98); }
/* «Записаться» (.btn--primary) — жёлтая, как в топбаре. */
.btn--primary {
    background: var(--cta-yellow);
    color: #1a1a1a;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}
.btn--primary:hover { background: var(--cta-yellow-soft); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); color: #1a1a1a; }
.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid rgba(12, 10, 9, 0.4);
}
.btn--ghost:hover { border-color: var(--text); background: var(--paper); }
.btn--small { padding: 8px 16px; font-size: 0.82rem; }

/* ─── Футер ─── */
.site-footer {
    margin-top: 48px;
    padding: 28px clamp(16px, 4vw, 32px);
    border-top: 1px solid rgba(12, 10, 9, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    scroll-snap-align: start;
}
.site-footer a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--accent-ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ─── Кнопка «наверх» ─── */
.to-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--black);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9990;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); }

/* ─── Cookie-баннер ─── */
.cookie-bar {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 10005;
    padding: 16px 18px;
    background: var(--paper);
    border: 1px solid rgba(12, 10, 9, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 520px;
}
.cookie-bar.is-show { display: flex; }
.cookie-bar p { flex: 1; min-width: 200px; font-size: 0.85rem; color: var(--text-muted); }
.cookie-bar__actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: var(--accent-ink);
}

/* ─── FAB Mail ─── */
.fab-mail {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(max(20px, env(safe-area-inset-bottom)) + 58px);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    border: 2px solid var(--accent-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9989;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}
.fab-mail:hover { transform: scale(1.06); color: var(--accent-ink); background: var(--accent-soft); }
@media (max-width: 520px) {
    .fab-mail { bottom: calc(max(20px, env(safe-area-inset-bottom)) + 68px); }
}

/* ════════════════════════════════════════════════════════════
   КАРТОЧКА КУРСА (как в маркете платформы) — публичный сайт
   Источник стиля: views/student/market.ejs + style.css платформы.
   Адаптировано под цвета лендинга, без зависимостей от темы.
   ════════════════════════════════════════════════════════════ */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin: 0 auto;
}
.market-card {
    /* Шрифты как в маркете платформы:
       тело — Space Grotesk, заголовок — Onest. */
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--course-card-bg, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0,0,0,0.09), 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
    color: #1a1a1a;
}
.market-card:hover {
    transform: translate(-1px, -2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13), 0 2px 6px rgba(0,0,0,0.07);
}
.market-card-photo {
    position: relative;
    aspect-ratio: 16 / 9;
    width: calc(100% - 1.1rem);
    margin: 0.5rem 0.55rem 0.4rem;
    align-self: center;
    flex-shrink: 0;
    background: #f1f3ed;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.market-card-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.market-card-body {
    padding: 0.55rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}
.market-card .mycourse-subject {
    font-size: 0.72rem;
    font-weight: 500;
    color: #6f6f6f;
    margin-bottom: 0;
}
.market-card-title {
    /* Onest — как на платформе. */
    font-family: 'Onest', 'Space Grotesk', -apple-system, sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.22;
    letter-spacing: -0.01em;
    margin: 2px 0 0;
    color: inherit;
}
.mkt-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    font-size: 0.78rem;
    color: #6f6f6f;
    font-weight: 500;
}
.mkt-card-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}
.mkt-card-meta__ico {
    display: inline-flex;
    color: #8a8a8a;
}
.mkt-footer {
    margin-top: auto;
    padding-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mkt-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.mkt-prices--single { grid-template-columns: 1fr; }
.mkt-price-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(26,26,26,0.05);
}
.mkt-price-chip__label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6f6f6f;
}
.mkt-price-chip__value {
    font-size: 1.02rem;
    font-weight: 800;
    color: #1a1a1a;
    font-feature-settings: 'tnum' 1;
    letter-spacing: -0.01em;
}
.mkt-price-chip__value.free { color: #059669; }
.mkt-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #a7fc00, #8be000);
    color: #1a2a00;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.12s ease;
    box-shadow: 0 3px 10px rgba(167, 252, 0, 0.32);
    text-decoration: none;
}
.mkt-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(167, 252, 0, 0.45);
    filter: brightness(1.05);
    color: #1a2a00;
}
.mkt-buy-btn:active { transform: translateY(0); }
.mkt-buy-btn svg { transition: transform 0.15s ease; }
.mkt-buy-btn:hover svg { transform: translateX(3px); }
.mkt-buy-btn--disabled {
    background: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
    box-shadow: none;
}
.mkt-buy-btn--disabled:hover {
    transform: none; box-shadow: none; filter: none; color: #6b7280;
}

/* ════════════════════════════════════════════════════════════════════
   COURSE-INCLUDES — секция «что входит в каждый курс» на /courses.html.
   Современные карточки с иконкой, заголовком, чипом-подзаголовком и
   описанием. Палитра: серый фон, лаймовые акценты, мягкие тени.
   ════════════════════════════════════════════════════════════════════ */
.ci-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.ci-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(15,17,26,0.08);
    border-radius: 20px;
    padding: 26px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
}
.ci-card::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, var(--accent, #b8d834) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.ci-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(15,17,26,0.05), 0 18px 40px rgba(15,17,26,0.10);
    border-color: rgba(15,17,26,0.14);
}
.ci-card:hover::after { opacity: 0.22; }

.ci-card__num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9aa3ad;
    margin-bottom: 2px;
}
.ci-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent, #b8d834);
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    box-shadow: 0 2px 8px rgba(184,216,52,0.32);
}
.ci-card__icon svg { width: 22px; height: 22px; }
.ci-card__title {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.18rem;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 4px 0 0;
    color: #15171a;
    text-transform: lowercase;
}
.ci-card__sub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f3f5;
    color: #5a6370;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.3;
}
.ci-card__sub::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent, #b8d834);
    flex-shrink: 0;
}
.ci-card__body {
    font-size: 0.94rem;
    line-height: 1.55;
    color: #525c66;
    margin: 0;
}
@media (max-width: 640px) {
    .ci-card { padding: 22px 20px 20px; }
}

/* ════════════════════════════════════════════════════════════════════
   COURSE MODAL — открывается кликом по карточке курса на главной.
   Слева фото + описание (скролл), справа — тарифы с кнопкой «Оплатить».
   Кнопка ведёт на /register с параметрами курса и тарифа.
   ════════════════════════════════════════════════════════════════════ */
.course-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: stretch;
    justify-content: center;
    padding: 0;
}
.course-modal.is-open { display: flex; }
.course-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,17,26,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.course-modal__panel {
    position: relative;
    margin: auto;
    width: min(960px, calc(100% - 32px));
    max-height: 90vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(15,17,26,0.32);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.course-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(15,17,26,0.06);
    color: #15171a;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s ease;
}
.course-modal__close:hover { background: rgba(15,17,26,0.12); }
.course-modal__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 0;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}
@media (max-width: 760px) {
    .course-modal__grid { grid-template-columns: 1fr; }
    .course-modal__panel { max-height: 100vh; height: 100vh; border-radius: 0; }
}
.course-modal__left {
    padding: 28px 28px 24px;
    overflow-y: auto;
    border-right: 1px solid #ececec;
}
@media (max-width: 760px) {
    .course-modal__left { border-right: 0; border-bottom: 1px solid #ececec; padding: 24px 20px; }
}
.course-modal__photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 18px;
}
.course-modal__subject {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}
.course-modal__title {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.018em;
    margin: 0 0 16px;
    color: #15171a;
}
.course-modal__desc { font-size: 0.96rem; line-height: 1.6; color: #2a2d33; }
.course-modal__desc p { margin: 0 0 0.9em; }
.course-modal__desc p:last-child { margin-bottom: 0; }
.course-modal__right {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fafafa;
    overflow-y: auto;
}
.cm-tier {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.cm-tier--curator {
    border-color: var(--cta-yellow);
    box-shadow: 0 4px 16px rgba(245,197,0,0.18);
}
.cm-tier__badge {
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--cta-yellow);
    color: #1a1a1a;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cm-tier__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.cm-tier__label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
}
.cm-tier__price {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #15171a;
    letter-spacing: -0.015em;
}
.cm-tier__desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}
.cm-tier__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    background: #15171a;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.12s ease;
    margin-top: 4px;
}
.cm-tier__cta:hover { background: #000; transform: translateY(-1px); color: #fff; }
.cm-tier__cta--primary {
    background: var(--cta-yellow);
    color: #1a1a1a;
}
.cm-tier__cta--primary:hover { background: var(--cta-yellow-soft); color: #1a1a1a; }

/* ════════════════════════════════════════════════════════════════════
   ШАГ 1 — компактные карточки тарифов внутри course-modal.
   Заменяют большие cm-tier, чтобы первая модалка была обзорной (как в маркете).
   ════════════════════════════════════════════════════════════════════ */
.cm-tiers-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 760px) {
    .cm-tiers-row { grid-template-columns: 1fr; }
}
.cm-tier-card {
    position: relative;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.cm-tier-card--curator {
    border-color: var(--cta-yellow, #f5c500);
    box-shadow: 0 4px 16px rgba(245,197,0,0.16);
}
.cm-tier-card__badge {
    position: absolute;
    top: -10px;
    left: 14px;
    background: var(--cta-yellow, #f5c500);
    color: #1a1a1a;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cm-tier-card__name { font-size: 0.86rem; font-weight: 600; color: var(--text-muted, #6a6f5d); }
.cm-tier-card__price {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #15171a;
    letter-spacing: -0.02em;
}
.cm-tier-card__btn {
    margin-top: auto;
    padding: 11px 14px;
    background: #15171a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}
.cm-tier-card__btn:hover { background: #000; transform: translateY(-1px); }
.cm-tier-card--curator .cm-tier-card__btn {
    background: var(--cta-yellow, #f5c500);
    color: #1a1a1a;
}
.cm-tier-card--curator .cm-tier-card__btn:hover { background: var(--cta-yellow-soft, #ffe070); }

/* ════════════════════════════════════════════════════════════════════
   ШАГ 2 — детальная модалка тарифа: картинка + текст + кнопка «Записаться».
   ════════════════════════════════════════════════════════════════════ */
.tier-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: stretch;
    justify-content: center;
}
.tier-modal.is-open { display: flex; }
.tier-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,17,26,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.tier-modal__panel {
    position: relative;
    margin: auto;
    width: min(820px, calc(100% - 32px));
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(15,17,26,0.32);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tier-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(15,17,26,0.06);
    color: #15171a;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
}
.tier-modal__close:hover { background: rgba(15,17,26,0.12); }
.tier-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    flex: 1;
    min-height: 0;
}
@media (max-width: 720px) {
    .tier-modal__grid { grid-template-columns: 1fr; }
    .tier-modal__panel { max-height: 100vh; height: 100vh; border-radius: 0; }
}
.tier-modal__imgwrap {
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tier-modal__imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tier-modal__textwrap {
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}
.tier-modal__label {
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #6a6f5d);
}
.tier-modal__price {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 800;
    color: #15171a;
    letter-spacing: -0.025em;
    line-height: 1;
}
.tier-modal__desc {
    font-size: 0.98rem;
    line-height: 1.55;
    color: #2a2d33;
    white-space: pre-line;
}
.tier-modal__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    background: var(--cta-yellow, #f5c500);
    color: #1a1a1a;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.12s ease;
}
.tier-modal__cta:hover { background: var(--cta-yellow-soft, #ffe070); transform: translateY(-1px); color: #1a1a1a; }

/* ── Мобильная версия: убираем большой постер с облаками (hero-stage) ── */
@media (max-width: 720px) {
    .hero-stage { display: none !important; }
}
