/* ============================================================
   COURSEL: — образовательный портал (light theme)
   Фирменный чёрно-белый минимализм Yurconsult в светлой
   версии: белое поле, чёрная графика, волосяные линии,
   прямые углы, инверсия при наведении. Чисто чёрными
   остаются футер и акцентные секции (.section--dark).
   ============================================================ */

/* шрифты разрезаны на субсеты: латиница и кириллица — отдельные файлы,
   поэтому для каждого веса нужны ДВА @font-face с unicode-range.
   Иначе браузер загружает только первый src и вся латиница/цифры
   уходят в fallback-шрифт */
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-latin-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-cyrillic-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-latin-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-cyrillic-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-latin-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-cyrillic-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-latin-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-cyrillic-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------------- tokens ---------------- */

:root {
    --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-x: cubic-bezier(.65, 0, .15, 1);
    --wrap: 1440px;
    --pad-x: max(28px, calc((100vw - var(--wrap)) / 2));

    /* светлая тема по умолчанию */
    --fg: #0a0a0a;
    --on-fg: #ffffff;
    --muted: #525252;
    --dim: #8a8a8a;
    --line: rgba(0, 0, 0, .12);
    --line-strong: rgba(0, 0, 0, .38);
    --card-border: rgba(0, 0, 0, .28);
    --tint: #f4f4f4;

    --bg: #ffffff;
    --surface: #ffffff;

    /* единственный цветной акцент — бейдж скидки */
    --red: #c8281e;
}

/* акцентные секции — чистый чёрный */
.section--dark {
    --fg: #ffffff;
    --on-fg: #000000;
    --muted: #b3b3b3;
    --dim: #7a7a7a;
    --line: rgba(255, 255, 255, .16);
    --line-strong: rgba(255, 255, 255, .4);
    --tint: #1a1a1a;
    --surface: #0d0d0d;
    background: #000000;
    color: var(--fg);
}

/* ---------------- base ---------------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    color-scheme: light;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main { flex: 1; position: relative; z-index: 1; }
em, i { font-style: normal; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: #0a0a0a; color: #ffffff; }

/* видимый фокус для клавиатурной навигации (мышь не подсвечивается) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .25); border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, .45); }

/* ---------------- контурная поверхность ---------------- */

.glass {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: border-color .25s ease;
}
.glass:hover { border-color: var(--line-strong); }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    border: 1px solid var(--line-strong);
    font-size: 12px;
    color: var(--muted);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
a.chip, button.chip { cursor: pointer; }
a.chip:hover, button.chip:hover,
.chip.is-active {
    background: var(--fg);
    color: var(--on-fg);
    border-color: var(--fg);
}

.tag {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 5px 11px;
    border: 1px solid var(--line-strong);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg);
}
.tag--solid { background: var(--fg); color: var(--on-fg); border-color: var(--fg); }

/* ---------------- header ---------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.header.scrolled::before { opacity: 1; }

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    height: 68px;
    padding: 0 var(--pad-x);
}

.header-logo { display: flex; align-items: baseline; gap: 10px; flex-shrink: 0; }
.header-logo b {
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--fg);
}
.header-logo span {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
}

.header-nav {
    display: flex;
    gap: 2px;
    margin-left: auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.header-nav::-webkit-scrollbar { display: none; }

.header-nav-link {
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 9px 11px;
    transition: color .2s ease;
}
.header-nav-link::after {
    content: '';
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 4px;
    height: 2px;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}
.header-nav-link:hover, .header-nav-link.is-active { color: var(--fg); }
.header-nav-link:hover::after, .header-nav-link.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }

.btn.header-cta {
    padding: 9px 18px;
    font-size: 11px;
    background: transparent;
    border-color: var(--line-strong);
    color: var(--fg);
}
.btn.header-cta:hover {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--on-fg);
}

.hprog {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    height: 2px;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}

/* шапка поверх hero (главная страница): до скролла — прозрачная,
   после .scrolled появляется белая плашка с линией */

.burger {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-strong);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4.5px;
}
.burger span {
    width: 16px;
    height: 2px;
    background: var(--fg);
    transition: transform .3s var(--ease), opacity .2s ease;
}
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------- mobile nav ---------------- */

.mobile-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: var(--bg);
    padding: clamp(20px, 4vh, 40px) var(--pad-x) clamp(26px, 5vh, 48px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s var(--ease), visibility 0s .25s;
}
/* свободное место делится между верхом и зоной CTA — короткое меню
   остаётся центрированным, длинное прокручивается от начала */
.mobile-nav > :first-child { margin-top: auto; }
.mobile-nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s ease, transform .25s var(--ease);
}
body.menu-open { overflow: hidden; }
body.menu-open .header::before { opacity: 1; }
.mobile-nav-link {
    padding: clamp(13px, 2.6vh, 20px) 4px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(16px, 2.4vh, 20px);
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--fg);
    transition: border-color .2s ease, transform .25s var(--ease);
}
.mobile-nav-link:hover { border-color: var(--line-strong); transform: translateX(4px); }

/* подписи групп и подпункты (направления, форматы) */
.mobile-nav-label {
    margin-top: clamp(14px, 3vh, 28px);
    padding: 4px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dim);
}
.mobile-nav-sub {
    display: block;
    padding: clamp(7px, 1.5vh, 11px) 4px clamp(7px, 1.5vh, 11px) 16px;
    border-left: 1px solid var(--line);
    font-size: clamp(13px, 1.9vh, 15px);
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .2s ease, border-color .2s ease, transform .25s var(--ease);
}
.mobile-nav-sub:hover { color: var(--fg); border-left-color: var(--fg); transform: translateX(4px); }

.mobile-nav-cta { margin: auto 0 0; padding-top: clamp(18px, 4vh, 32px); }

/* ---------------- buttons ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--fg); border-color: var(--fg); color: var(--on-fg); }
.btn-primary:hover { background: transparent; color: var(--fg); }
.btn-glass { background: transparent; border-color: var(--line-strong); color: var(--fg); }
.btn-glass:hover { background: var(--fg); border-color: var(--fg); color: var(--on-fg); }

.actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.arrow-link {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg);
    transition: gap .3s var(--ease), color .2s ease;
}
.arrow-link::after { content: '→'; }
.arrow-link--out::after { content: '↗'; }
.arrow-link:hover { gap: 14px; }

/* ---------------- типографика секций ---------------- */

.eyebrow,
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow::before,
.section-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--fg);
    flex: none;
    animation: sq-pulse 2.6s ease-in-out infinite;
}
@keyframes sq-pulse { 50% { opacity: .3; } }

.title,
.section-title {
    margin: 0 0 24px;
    font-size: clamp(34px, 4.6vw, 62px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.03em;
    color: var(--fg);
}
.title em,
.section-title em,
.page-title em {
    font-style: normal;
    background: var(--fg);
    color: var(--on-fg);
    padding: 0 .13em;
    margin-left: .12em;
}

.lead,
.section-sub {
    margin: 0 0 34px;
    max-width: 640px;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.65;
    color: var(--muted);
}

/* ---------------- sections ---------------- */

.section {
    position: relative;
    z-index: 1;
    padding: clamp(84px, 12vh, 140px) var(--pad-x);
    border-top: 1px solid var(--line);
    color: var(--fg);
}
.hero + .section, .page-hero + .section { border-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 64px); }
.section--tint { background: var(--tint); }

/* ============================================================
   HERO — контрастная чёрная панель-постер в белой рамке:
   центрированный блок с крупным поиском по каталогу
   и строкой направлений у нижней кромки
   ============================================================ */

.hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(68px + clamp(14px, 2.5vh, 26px)) var(--pad-x) clamp(14px, 2.5vh, 26px);
    background: var(--bg);
}

.hero-panel {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    --fg: #ffffff;
    --on-fg: #000000;
    --muted: #b3b3b3;
    --dim: #7a7a7a;
    --line: rgba(255, 255, 255, .16);
    --line-strong: rgba(255, 255, 255, .4);
    --tint: #1a1a1a;
    --surface: #0d0d0d;
    background: #000000;
    color: var(--fg);
}
.hero-panel ::selection { background: #ffffff; color: #000000; }

/* чертёжная сетка — тонкие белые линии к центру */
.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 72% at 50% 40%, #000 26%, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse 80% 72% at 50% 40%, #000 26%, transparent 76%);
}
@keyframes hero-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.hero-main {
    width: 100%;
    max-width: 920px;
    margin-block: auto; /* центрирует контент; направления прижаты к нижней кромке */
    padding: clamp(44px, 8vh, 96px) var(--pad-x);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: hero-in .7s var(--ease) both;
}

.hero-kicker {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: clamp(20px, 3vh, 30px);
}
.hero-kicker::before { content: '// '; color: var(--dim); }

.hero-title {
    font-size: clamp(42px, 7vw, 96px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.03em;
    color: var(--fg);
    margin-bottom: clamp(18px, 2.6vh, 26px);
}
/* акцентное слово — белая плашка с чёрным текстом */
.hero-title em {
    display: inline-block;
    padding: 0 .22em .04em;
    background: var(--fg);
    color: var(--on-fg);
}

.hero-lead {
    max-width: 620px;
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: clamp(26px, 4vh, 38px);
}

.hero-search {
    display: flex;
    width: min(620px, 100%);
    margin-bottom: 22px;
    border: 1px solid var(--line-strong);
    transition: border-color .2s ease;
}
.hero-search:focus-within { border-color: var(--fg); }
.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 16px 18px;
    font: inherit;
    font-family: var(--mono);
    font-size: 13.5px;
    color: var(--fg);
    background: transparent;
    border: 0;
    outline: none;
    text-align: left;
}
.hero-search input::placeholder { color: var(--dim); }
.hero-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    margin-left: 10px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--muted) 55%, transparent);
    cursor: pointer;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath stroke='%23fff' stroke-width='1.5' stroke-linecap='round' d='M3 3l6 6M9 3 3 9'/%3E%3C/svg%3E") center / 8px no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath stroke='%23fff' stroke-width='1.5' stroke-linecap='round' d='M3 3l6 6M9 3 3 9'/%3E%3C/svg%3E") center / 8px no-repeat;
}
.hero-search button {
    flex: none;
    padding: 0 26px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--fg);
    color: var(--on-fg);
    transition: opacity .2s ease;
}
.hero-search button:hover { opacity: .82; }

.hero .actions { justify-content: center; }

/* направления — строка ссылок с инверсией при наведении */
.hero-dirs {
    align-self: stretch;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    padding: 13px var(--pad-x) 16px;
    border-top: 1px solid var(--line);
    animation: hero-in .7s var(--ease) .12s both;
}
.hero-dirs a {
    display: inline-block;
    text-align: center;
    padding: 5px 9px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    transition: background .2s ease, color .2s ease;
}
.hero-dirs a i {
    font-style: normal;
    margin-right: 7px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--dim);
    transition: color .2s ease;
}
.hero-dirs a:hover { background: var(--fg); color: var(--on-fg); }
.hero-dirs a:hover i { color: var(--on-fg); opacity: .55; }
.hero-dirs-all { font-weight: 600; color: var(--fg) !important; }

/* ============================================================
   Направления (dir-grid): компактный нумерованный индекс
   в две колонки, инверсия при ховере
   ============================================================ */

.dir-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--line);
}
.dir-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 4px 20px;
    padding: 17px 22px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    transition: background .25s ease;
}
.dir-card:nth-child(2n) { border-right: 0; }
.dir-card:hover { background: var(--fg); }
.dir-card:hover * { color: var(--on-fg) !important; }
.dir-card-num {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--dim);
    transition: color .25s ease;
}
.dir-card-main { min-width: 0; }
.dir-card h3 {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
    transition: color .25s ease;
}
.dir-card p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .25s ease;
}
.dir-card-count {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
    white-space: nowrap;
    color: var(--dim);
    transition: color .25s ease;
}
.dir-card-arrow {
    font-size: 15px;
    color: var(--dim);
    transition: transform .25s var(--ease), color .25s ease;
}
.dir-card:hover .dir-card-arrow { transform: translateX(4px); color: var(--on-fg); }

/* ---------------- feat-grid: преимущества / шаги ---------------- */

.feat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
}
.feat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.feat-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feat-grid--5 { grid-template-columns: repeat(5, 1fr); }
.feat-grid--2 { grid-template-columns: repeat(2, 1fr); }
.feat {
    position: relative;
    padding: 28px 26px;
    border-right: 1px solid var(--line);
    background: var(--surface);
    transition: background .25s ease;
}
.feat:last-child { border-right: 0; }
.feat:hover { background: var(--tint); }
.section--dark .feat:hover { background: #1c1c1c; }
.feat-num {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--dim);
    margin-bottom: 40px;
}
.feat h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -.01em;
}
.feat p { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* шаги «как мы работаем» — свободная последовательность:
   номер + волосая линия-соединитель, без рамок */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(30px, 3vw, 46px);
}
.step-num {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dim);
}
.step-num::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
    transform: translateY(-3px);
}
.step h3 {
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    margin-bottom: 9px;
}
.step p { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------------- spec / kv-ведомости ---------------- */

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
.spec { border: 1px solid var(--line); background: var(--surface); }
.spec__head {
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.spec dl { padding: 6px 24px 18px; }
.spec__row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.spec__row:last-child { border-bottom: 0; }
.spec__row dt {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dim);
    padding-top: 3px;
}
.spec__row dd { font-size: 14px; line-height: 1.55; }
.spec__row dd i { font-style: normal; border-bottom: 1px solid var(--line-strong); }

/* ---------------- split / prose ---------------- */

.split-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
.split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(36px, 6vw, 90px);
    align-items: center;
}
.prose-block { padding: 30px 32px; }
.prose-block h3 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.check-list { list-style: none; }
.check-list li {
    position: relative;
    padding: 9px 0 9px 26px;
    font-size: 14px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--fg);
}

/* ---------------- shot-window ---------------- */

.shot-window {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    overflow: hidden;
}
.shot-window img, .shot-window video { width: 100%; height: auto; display: block; }
.shot-window img { filter: grayscale(1); transition: filter .3s ease; }
.shot-window:hover img { filter: grayscale(0); }
.mini-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    color: var(--dim);
}
.mini-window-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
}
.mini-window-bar span { margin-left: 8px; }

/* ============================================================
   Карточки курсов
   ============================================================ */

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

.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: border-color .25s ease, transform .3s var(--ease);
}
.course-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.course-card-cover {
    position: relative;
    aspect-ratio: 16 / 8.5;
    border-bottom: 1px solid var(--line);
    background-color: #0b0b0d;
    background-clip: padding-box;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 34px 34px;
    display: flex;
    align-items: flex-end;
    padding: 16px 18px;
    transition: background-color .25s ease;
    overflow: hidden;
}
.course-card-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 600;
    letter-spacing: -.02em;
    color: #ffffff;
    opacity: .55;
    transition: opacity .3s ease;
}
.course-card:hover .course-card-logo { opacity: 1; }
.course-card:hover .course-card-cover { background-color: #151518; }
.course-card-cover .tag { position: relative; z-index: 1; background: var(--surface); }
.course-card-discount {
    position: absolute;
    z-index: 1;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    background: var(--red);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
}

.course-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 22px 18px;
    flex: 1;
}
.course-card-dir {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim);
}
.course-card-title {
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.01em;
}
.course-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .06em;
    color: var(--dim);
    margin-top: auto;
}
.course-card-meta b { font-weight: 400; color: var(--muted); }

.course-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 22px;
    border-top: 1px solid var(--line);
}
.price { display: flex; align-items: baseline; gap: 10px; }
.price-cur {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.price-old {
    font-size: 13px;
    color: var(--dim);
    text-decoration: line-through;
    white-space: nowrap;
}
.course-card-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg);
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    transition: gap .25s var(--ease);
}
.course-card-link::after { content: '→'; }
.course-card:hover .course-card-link { gap: 12px; }

/* ============================================================
   Каталог: тулбар, фильтры, поиск
   ============================================================ */

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 40px;
}
.search-box {
    position: relative;
    flex: 1 1 300px;
    min-width: 240px;
}
.search-box input {
    width: 100%;
    padding: 13px 44px 13px 18px;
    font: inherit;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--fg);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    outline: none;
    transition: border-color .2s ease;
}
.search-box input:focus { border-color: var(--fg); }
.search-box input::placeholder { color: var(--dim); }
.search-box::after {
    content: '⌕';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: var(--dim);
    pointer-events: none;
}
.search-box:has(input:not(:placeholder-shown))::after { display: none; }
.search-box input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 15px;
    width: 15px;
    margin-left: 8px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--muted) 55%, transparent);
    cursor: pointer;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath stroke='%23fff' stroke-width='1.5' stroke-linecap='round' d='M3 3l6 6M9 3 3 9'/%3E%3C/svg%3E") center / 8px no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath stroke='%23fff' stroke-width='1.5' stroke-linecap='round' d='M3 3l6 6M9 3 3 9'/%3E%3C/svg%3E") center / 8px no-repeat;
}
.filter-group { margin-bottom: 26px; }
.filter-group-label {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 12px;
    display: block;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.catalog-empty {
    padding: 70px 30px;
    text-align: center;
    border: 1px dashed var(--line-strong);
    color: var(--muted);
    font-size: 14px;
}
.catalog-empty b { display: block; font-size: 17px; margin-bottom: 8px; color: var(--fg); }

/* ---------------- каталог: фильтры слева, курсы справа ---------------- */

.catalog-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: clamp(30px, 4vw, 56px);
    align-items: start;
}
.catalog-aside {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.catalog-aside .filter-group { margin-bottom: 0; }

.filter-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    background: var(--surface);
}
.filter-opt {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 16px;
    font-size: 13.5px;
    text-align: left;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    transition: background .2s ease, color .2s ease;
}
.filter-opt:last-child { border-bottom: 0; }
.filter-opt i {
    font-style: normal;
    flex: none;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--dim);
    transition: color .2s ease;
}
.filter-opt:hover { background: var(--tint); color: var(--fg); }
.filter-opt.is-active { background: var(--fg); color: var(--on-fg); }
.filter-opt.is-active i { color: var(--on-fg); opacity: .55; }

.catalog-reset {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 13px 16px;
    border: 1px solid var(--line-strong);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.catalog-reset.is-visible { display: inline-flex; }
.catalog-reset:hover { background: var(--fg); border-color: var(--fg); color: var(--on-fg); }

/* ============================================================
   Страница курса
   ============================================================ */

.course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(30px, 4vw, 56px);
    align-items: start;
}
.course-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
.course-cover {
    position: relative;
    aspect-ratio: 16 / 8.5;
    border: 1px solid var(--line);
    background-color: #0b0b0d;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 34px 34px;
}
.course-cover .course-card-logo { opacity: 1; }

/* в узкой колонке сайдбара — метки над значениями */
.course-aside .spec__head { padding: 14px 20px; }
.course-aside .spec dl { padding: 4px 20px 16px; }
.course-aside .spec__row { grid-template-columns: 1fr; gap: 3px; }
.course-aside .spec__row dt { padding-top: 0; }

.price-box { border: 1px solid var(--line-strong); background: var(--surface); }

/* шапка карточки цены — чёрная панель-постер, инверсия токенов как у .section--dark */
.price-box-head {
    --fg: #ffffff;
    --on-fg: #0a0a0a;
    --dim: #a8a8a8;
    --line-strong: rgba(255, 255, 255, .45);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #000000;
    color: var(--fg);
}
.price-box-head .price-cur { font-size: 30px; }
.price-box-head .price-old { font-size: 14px; }
.price-box-body { padding: 20px 24px 24px; }
.price-box .spec { border: 0; }
.price-box .spec dl { padding: 0; }
.price-box .spec__row:last-child { border-bottom: 1px solid var(--line); }
.price-box-body .btn { width: 100%; margin-top: 20px; }

.course-section { padding: clamp(34px, 5vh, 52px) 0; border-top: 1px solid var(--line); }
.course-section:first-child { border-top: 0; padding-top: 0; }
.course-section h2 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.course-section h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--fg);
    flex: none;
}
.course-desc p { margin-bottom: 16px; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.course-desc p b { color: var(--fg); font-weight: 600; }

.prog { counter-reset: prog; }
.prog-theme {
    counter-increment: prog;
    border: 1px solid var(--line);
    margin-bottom: -1px;
    background: var(--surface);
}
.prog-theme-head {
    display: flex;
    gap: 18px;
    align-items: baseline;
    padding: 16px 22px;
    font-size: 14.5px;
    font-weight: 600;
}
.prog-theme-head::before {
    content: counter(prog, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
    flex: none;
}
.prog-items { list-style: none; border-top: 1px solid var(--line); }
.prog-items li {
    padding: 10px 22px 10px 58px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.prog-items li:last-child { border-bottom: 0; }
.prog-items li::before {
    content: '—';
    position: absolute;
    left: 26px;
    color: var(--dim);
}
.prog-note {
    margin-top: 16px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--dim);
}

/* ---------------- форма заявки на курс ---------------- */

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
}
.order-fields { padding: clamp(24px, 3vw, 40px); }
.order-block-title {
    display: block;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dim);
}
.order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 22px;
}

.order-side {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    padding: clamp(22px, 2.5vw, 30px);
}
.order-course { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.order-course-kind {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dim);
}
.order-course b { font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.order-course-org { font-size: 12.5px; color: var(--muted); }
.order-rows { margin-top: 18px; border-top: 1px solid var(--line); }
.order-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--muted);
}
.order-row b { color: var(--fg); font-weight: 500; }
.order-row--total { color: var(--fg); }
.order-row--total b { font-weight: 600; }

.order-opts {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 20px 0;
}
.order-opt {
    display: flex;
    gap: 11px;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}
.order-opt input {
    flex: none;
    margin-top: 3px;
    accent-color: var(--fg);
}
.order-opt small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.order-agree {
    padding-top: 16px;
    border-top: 1px solid var(--line);
    margin-bottom: 18px;
    color: var(--muted);
}
.order-opt a { border-bottom: 1px solid var(--line-strong); }
.order-side .form-field { margin-bottom: 16px; }
.order-side .order-submit { width: 100%; }
.order-side .form-note { margin-top: 12px; }
.order-msg { font-size: 13px; color: var(--red); margin-top: 10px; }
.order-msg a { color: var(--fg); border-bottom: 1px solid var(--line-strong); }
.order-msg:empty { display: none; }
#orderDone { margin-top: 24px; }

/* ---------------- полноэкранное окно заявки ---------------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--fg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s var(--ease), visibility .3s;
}
.modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
body.modal-open { overflow: hidden; }

.modal-close {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    font-size: 24px;
    line-height: 1;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.modal-close:hover { background: var(--fg); color: var(--on-fg); border-color: var(--fg); }

.modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal-inner { padding: clamp(72px, 10vh, 96px) var(--pad-x) clamp(30px, 6vh, 64px); }

/* honeypot — вне экрана, но доступен ботам */
.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
}

/* ---------------- FAQ accordion ---------------- */

/* переключатель групп — тихие табы с подчёркиванием */
#faqChips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 30px;
    margin-bottom: 28px;
}
#faqChips .chip {
    padding: 4px 2px 10px;
    border: 0;
    border-bottom: 1.5px solid transparent;
    font-size: 13.5px;
    color: var(--fg);
    transition: border-color .25s ease;
}
#faqChips .chip:hover { background: none; color: var(--fg); border-bottom-color: var(--fg); }
#faqChips .chip.is-active {
    background: none;
    color: var(--fg);
    border-bottom-color: var(--fg);
    font-weight: 600;
}

.acc { border: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); background: var(--surface); }
.acc-item:last-child { border-bottom: 0; }
/* открытый пункт — тонкая чёрная рейка слева */
.acc-item.open { box-shadow: inset 2px 0 0 var(--fg); }
.acc-btn {
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 20px 26px;
    text-align: left;
}
.acc-btn:hover .acc-q {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}
.acc-num {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--fg);
}
.acc-q {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.01em;
}
.acc-ico {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: var(--fg);
    transition: transform .3s var(--ease);
}
.acc-item.open .acc-ico { transform: rotate(45deg); }
.acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
}
.acc-panel-inner {
    padding: 24px 26px 28px 86px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--fg);
}
.acc-panel-inner p { margin-bottom: 10px; }
.acc-panel-inner ol, .acc-panel-inner ul { padding-left: 20px; margin-bottom: 10px; }
.acc-panel-inner li { margin-bottom: 6px; }
.acc-panel-inner b { color: var(--fg); font-weight: 600; }

/* ---------------- новости ---------------- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 24px 22px;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color .25s ease;
}
.news-card:hover { border-color: var(--line-strong); }
.news-card-img {
    margin: -24px -24px 8px;
    width: calc(100% + 48px);
    max-width: none;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
    filter: grayscale(1);
    transition: filter .3s ease;
}
.news-card:hover .news-card-img { filter: grayscale(0); }
.news-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.news-card-date {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .08em;
    color: var(--dim);
}
.news-card h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}
.news-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.news-card .arrow-link { margin-top: auto; padding-top: 8px; }

/* ---------------- article ---------------- */

.article-body { max-width: 780px; }
.article-img {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border: 1px solid var(--line-strong);
    margin-bottom: 34px;
    filter: grayscale(1);
    transition: filter .3s ease;
}
.article-img:hover { filter: grayscale(0); }
.article-body p { margin-bottom: 18px; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.article-body h3 {
    font-size: 19px;
    font-weight: 600;
    margin: 34px 0 14px;
    letter-spacing: -.01em;
}
.article-body ul { margin: 0 0 18px 20px; }
.article-body li { margin-bottom: 8px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.article-body li b { color: var(--fg); }

/* ---------------- CTA ---------------- */

/* тёмный баннер в акцентной секции: контурная панель,
   текст и кнопка — колонкой слева */
.cta {
    padding: clamp(44px, 7vh, 76px) clamp(28px, 6vw, 80px);
    text-align: left;
}
.section--dark .cta { border-color: var(--line-strong); }
.cta-title {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.03em;
    margin-bottom: 16px;
}
.cta-title em {
    background: var(--fg);
    color: var(--on-fg);
    padding: 0 .13em;
    margin-left: .12em;
    white-space: nowrap;
}
.cta-sub { max-width: 560px; font-size: 15px; color: var(--muted); margin-bottom: 30px; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }


/* ---------------- topline / cols (editorial) ---------------- */

.topline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: clamp(30px, 5vh, 48px);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
}
.topline i { font-style: normal; color: var(--fg); }

.cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 60px);
    max-width: 1000px;
}
.cols p { font-size: 15px; line-height: 1.7; color: var(--muted); }

.edu-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ---------------- формы ---------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field.is-hidden { display: none; }
.form-field label {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
}
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    min-width: 0;
    padding: 13px 16px;
    font: inherit;
    font-size: 14px;
    color: var(--fg);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    outline: none;
    transition: border-color .2s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--fg); }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 12px; color: var(--dim); margin-top: 6px; }
.form-note a { border-bottom: 1px solid var(--line-strong); }
.form-done {
    padding: 22px 26px;
    border: 1px solid var(--fg);
    font-size: 14px;
    display: none;
}
.form-done.show { display: block; }

/* ============================================================
   SUBPAGES
   ============================================================ */

.crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim);
}
.crumbs a { color: var(--muted); transition: color .2s ease; }
.crumbs a:hover { color: var(--fg); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs:last-child { margin-bottom: 0; }

.page-hero {
    position: relative;
    padding: clamp(140px, 18vh, 190px) var(--pad-x) clamp(56px, 8vh, 84px);
    overflow: hidden;
    isolation: isolate;
    background: var(--bg);
    color: var(--fg);
    border-bottom: 1px solid var(--line);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: .35;
    mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 80%, transparent);
}
.page-hero--compact {
    padding-top: clamp(96px, 12vh, 132px);
    padding-bottom: clamp(36px, 5vh, 56px);
}
.page-hero--compact + .section { padding-top: clamp(40px, 6vh, 64px); }
.page-hero--dark {
    background: #000000;
    color: #ffffff;
    --fg: #ffffff;
    --on-fg: #000000;
    --muted: #b3b3b3;
    --dim: #7a7a7a;
    --line: rgba(255, 255, 255, .16);
    --line-strong: rgba(255, 255, 255, .4);
    --tint: #1a1a1a;
    --surface: #0d0d0d;
}
.page-hero--dark .page-title,
.page-hero--dark .crumbs a:hover { color: #ffffff; }
.page-hero--dark .page-lead { color: #b3b3b3; }
.page-hero--dark .crumbs, .page-hero--dark .crumbs a { color: #7a7a7a; }
.page-hero--dark::before {
    background-image:
        linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
}

.page-title {
    font-size: clamp(34px, 5vw, 68px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.03em;
    margin-bottom: 22px;
    max-width: 20ch;
}
/* названия курсов длинные — на странице курса заголовок шире */
.page-hero--course .page-title { max-width: 30ch; }
.page-lead {
    max-width: 720px;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: 14px;
}
.page-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: clamp(30px, 5vh, 44px);
    border: 1px solid var(--line);
    max-width: 860px;
}
.page-facts > span {
    flex: 1 1 180px;
    padding: 14px 20px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    border-right: 1px solid var(--line);
}
.page-facts > span:last-child { border-right: 0; }
.page-facts b {
    display: block;
    margin-top: 3px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--fg);
}

/* ---------------- footer (тёмный) ---------------- */

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line-strong);
    background: #000000;
    color: #ffffff;
    --fg: #ffffff;
    --on-fg: #000000;
    --muted: #b3b3b3;
    --dim: #7a7a7a;
    --line: rgba(255, 255, 255, .18);
    --line-strong: rgba(255, 255, 255, .4);
}
.footer-inner {
    padding: 60px var(--pad-x) 44px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand b {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -.02em;
    display: block;
}
.footer-brand > span {
    display: block;
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
}
.footer-brand p { margin-top: 24px; font-size: 13px; color: var(--dim); letter-spacing: .02em; }
.footer-desc { font-size: 12.5px; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 8px;
}
.footer-link { font-size: 13.5px; color: var(--dim); width: max-content; transition: color .2s ease; }
.footer-link:hover { color: var(--fg); }
.footer-text { font-size: 13.5px; color: var(--dim); }
.footer-copy {
    margin: 0 var(--pad-x);
    padding: 20px 0 10px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--dim);
    letter-spacing: .04em;
}
.footer-note {
    margin: 0 var(--pad-x);
    padding: 0 0 28px;
    font-size: 11.5px;
    color: var(--dim);
    letter-spacing: .04em;
}

/* детям раскладок разрешаем сжиматься ниже min-content — иначе на узких
   экранах длинный неразрывный контент (длинное слово, select) раздувает
   колонку по правилу min-width:auto, и текст уходит за край экрана */
.dir-grid > *, .feat-grid > *, .course-grid > *, .news-grid > *,
.spec-grid > *, .split > *, .split-2 > *, .cols > *, .form-grid > *,
.catalog-layout > *, .course-layout > *, .order-layout > *, .order-grid > *, .spec__row > *,
.steps > *, .acc > *, .acc-btn > *, .topline > * { min-width: 0; }

/* ---------------- reveal ---------------- */

/* скрываем только когда JS активен (класс .js ставит main.js):
   без скриптов контент остаётся видимым */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------------- responsive ---------------- */

@media (max-width: 1200px) {
    .course-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .feat-grid, .feat-grid--5 { grid-template-columns: repeat(2, 1fr); }
    .feat { border-bottom: 1px solid var(--line); }
    .feat:nth-child(2n) { border-right: 0; }
    .course-layout { grid-template-columns: minmax(0, 1fr); }
    .course-aside { position: static; }
    .order-layout { grid-template-columns: minmax(0, 1fr); }
    .catalog-layout { grid-template-columns: minmax(0, 1fr); }
    .catalog-aside { position: static; }
}

@media (max-width: 1100px) {
    .header-nav { display: none; }
    .burger { display: flex; }
    .header-cta { display: none; }
    .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .dir-grid, .course-grid, .news-grid,
    .feat-grid, .feat-grid--2, .feat-grid--3, .feat-grid--5,
    .spec-grid, .split-2, .cols, .form-grid, .order-grid { grid-template-columns: minmax(0, 1fr); }
    .dir-card { border-right: 0; }
    .feat { border-right: 0; }
    .spec__row { grid-template-columns: 1fr; gap: 4px; }
    .footer-inner { grid-template-columns: 1fr 1fr; padding-top: 44px; }
    .page-facts > span { flex-basis: 50%; border-bottom: 1px solid var(--line); }
    .page-facts > span:nth-child(2n) { border-right: 0; }
    .catalog-toolbar { flex-direction: column; align-items: stretch; }
    #faqChips { gap: 4px 22px; margin-bottom: 22px; }
    #faqChips .chip { padding: 4px 2px 8px; font-size: 13px; }
    .acc-btn { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; padding: 16px 20px; }
    .acc-panel-inner { padding: 18px 20px 22px 62px; }
    .hero { padding: calc(68px + 10px) 10px 10px; }
    .hero-main { padding-top: 40px; padding-bottom: 40px; }
    .hero-title { font-size: clamp(34px, 10.5vw, 56px); }
    .hero-dirs { gap: 6px 8px; }
    /* на мобильном — только топ-3 направления + ссылка на все */
    .hero-dirs a:nth-child(n+4):not(.hero-dirs-all) { display: none; }
    .hero-search button { padding: 0 16px; }
    /* на iOS текстовые поля мельче 16px вызывают зум при фокусе */
    .hero-search input, .search-box input,
    .form-field input, .form-field textarea, .form-field select { font-size: 16px; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .page-facts > span { flex-basis: 100%; border-right: 0; }
}

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