/* ============================================================
   Детейлинг-студия «АПЕКС» — демо-проект CloudxBear
   Дизайн-ДНК: глянцевый премиум. Чёрный глянец #0c0d10 +
   ледяной циан #46d5e6 + хром-серебро. Play (дисплей) +
   JetBrains Mono (цены/спеки) + Inter (текст). Единственное
   оправданно-тёмное демо — люкс-авто.
   Фирменные приёмы: блик по глянцу за курсором, морф цен по
   классу авто, до/после со скользящим бликом, капли воды.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --void: #0c0d10;
    --panel: #14161b;
    --panel-2: #191c22;
    --line: #262a32;
    --line-soft: #1e222a;
    --ice: #46d5e6;
    --ice-deep: #22b6c8;
    --ice-dim: rgba(70, 213, 230, 0.14);
    --chrome-1: #eef2f6;
    --chrome-2: #9aa6b2;
    --chrome-3: #5c6672;
    --text: #e6ebf0;
    --text-soft: #9aa4b0;
    --muted: #6a727e;
    --danger: #ff5a54;
    --ok: #57e08a;
    --font-display: 'Play', 'Arial', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --nav-h: 72px;
    --radius: 14px;
    --chrome-grad: linear-gradient(180deg, #f4f7fa 0%, #c3ccd5 38%, #8b97a3 60%, #eef2f6 100%);
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--void);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* мягкое зерно/винитка поверх фона */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(70, 213, 230, 0.05), transparent 60%),
                radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0, 0, 0, 0.5), transparent 70%);
}

::selection { background: var(--ice); color: #04191c; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 3px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* ---------- Типографика ---------- */

h1, h2, h3, .display {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

h1 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.14rem; letter-spacing: 0.02em; }

.chrome {
    background: var(--chrome-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lead { font-size: 1.1rem; color: var(--text-soft); font-family: var(--font-body); text-transform: none; }

.mono { font-family: var(--font-mono); }

/* метка-эйрбраун (моно) */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ice);
}

.tag::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--ice);
    box-shadow: 0 0 8px var(--ice);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}

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

.btn-ice {
    background: var(--ice);
    color: #04191c;
    box-shadow: 0 0 0 0 var(--ice-dim), 0 10px 30px -12px rgba(70, 213, 230, 0.7);
}
.btn-ice:hover { box-shadow: 0 0 30px -4px rgba(70, 213, 230, 0.55); background: #5ee0ef; }

.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }

/* скользящий блик по кнопке */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-16deg);
    transition: left 0.6s ease;
}
.btn:hover::after { left: 130%; }

/* ---------- Навигация ---------- */

.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
    background: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line-soft);
}

.nav-inner { width: 100%; display: flex; align-items: center; gap: 26px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }

.logo-mark {
    width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.logo-text { line-height: 1.05; }
.logo-text strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: 0.14em; }
.logo-text span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
    text-decoration: none; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-soft); padding: 6px 0; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--ice); }

.nav-phone { font-family: var(--font-mono); font-size: 0.85rem; text-decoration: none; color: var(--text); white-space: nowrap; }
.nav-phone:hover { color: var(--ice); }
.nav-cta { padding: 11px 22px; font-size: 0.72rem; }

.burger {
    display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--panel); flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Блик за курсором (фирменный приём) ---------- */

.glare-surface { position: relative; overflow: hidden; }

.glare-surface .glare {
    position: absolute;
    top: 0; left: 0;
    width: 460px; height: 460px;
    margin: -230px 0 0 -230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 213, 230, 0.35) 0%, rgba(120, 230, 255, 0.14) 30%, transparent 62%);
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
    will-change: transform;
    z-index: 2;
}

.glare-surface:hover .glare { opacity: 1; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 92svh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 48px) 0 56px;
    background: var(--void);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; }
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12,13,16,0.55) 0%, rgba(12,13,16,0.2) 40%, rgba(12,13,16,0.92) 100%),
                linear-gradient(90deg, rgba(12,13,16,0.8) 0%, transparent 55%);
}

.hero .container { z-index: 2; width: 100%; }

.hero-inner { max-width: 760px; }

.hero h1 { margin: 20px 0 18px; }
.hero h1 .chrome { display: inline-block; }

.hero-sub { max-width: 52ch; margin-bottom: 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

/* класс авто — переключатель под hero */
.class-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 14px 16px;
    background: rgba(20, 22, 27, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: 14px;
    max-width: 640px;
}

.class-switch .cs-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 6px;
}

.class-chip {
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 999px;
    padding: 9px 16px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    color: var(--text-soft);
    transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.class-chip:hover { color: var(--text); border-color: var(--chrome-3); }
.class-chip.active {
    color: #04191c; background: var(--ice); border-color: var(--ice);
    box-shadow: 0 0 20px -4px rgba(70, 213, 230, 0.6);
}

.class-hint { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); margin-top: 10px; }
.class-hint b { color: var(--ice); }

/* ---------- Секции ---------- */

.section { padding: 96px 0; position: relative; }

.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head .tag { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--text-soft); }

.section-line { border-top: 1px solid var(--line-soft); }

/* ---------- Услуги: интерактивные пакеты ---------- */

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

.svc-card {
    position: relative;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    transition: border-color 0.25s, transform 0.25s;
}
.svc-card:hover { border-color: var(--ice-deep); transform: translateY(-4px); }

.svc-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.svc-card h3 { margin-bottom: 10px; }
.svc-card p { color: var(--text-soft); font-size: 0.94rem; margin-bottom: 16px; }

.svc-steps { list-style: none; margin-top: auto; display: flex; flex-direction: column; gap: 7px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s; }
.svc-card:hover .svc-steps { max-height: 200px; opacity: 1; }
.svc-steps li { display: flex; gap: 9px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-soft); }
.svc-steps li::before { content: '›'; color: var(--ice); }

.svc-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.svc-price { font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; color: var(--text); }
.svc-price small { color: var(--muted); font-weight: 400; font-size: 0.72rem; }
.svc-more { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ice); letter-spacing: 0.08em; }

/* цена, реагирующая на класс */
[data-price] { font-variant-numeric: tabular-nums; }

/* ---------- До/после ---------- */

.reveal-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

.reveal-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    touch-action: none;
    user-select: none;
    cursor: ew-resize;
    background: #000;
}
.reveal-stage img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    pointer-events: none; user-select: none; -webkit-user-drag: none; -webkit-user-select: none;
}

.reveal-before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.reveal-before-wrap .reveal-inner { position: absolute; inset: 0; width: var(--stage-w, 100%); height: 100%; }
.reveal-before-wrap .reveal-inner img { width: 100%; }

.reveal-seam {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--ice), transparent);
    box-shadow: 0 0 18px 2px rgba(70, 213, 230, 0.7);
    transform: translateX(-50%);
    pointer-events: none;
}
.reveal-knob {
    position: absolute;
    top: 50%; left: 50%;
    width: 46px; height: 46px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(12, 13, 16, 0.85);
    border: 1px solid var(--ice);
    box-shadow: 0 0 24px -4px rgba(70, 213, 230, 0.8);
    display: flex; align-items: center; justify-content: center;
    color: var(--ice); font-family: var(--font-mono); font-size: 0.9rem;
    pointer-events: none;
}
.reveal-tag {
    position: absolute; bottom: 14px;
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
    background: rgba(12, 13, 16, 0.8); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px;
    pointer-events: none;
}
.reveal-tag.rt-before { left: 14px; color: var(--text-soft); }
.reveal-tag.rt-after { right: 14px; color: var(--ice); }

/* ---------- Класс-цены (таблица) ---------- */

.price-panel {
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 150px;
    gap: 20px;
    align-items: center;
    padding: 20px 26px;
    border-top: 1px solid var(--line-soft);
}
.price-row:first-child { border-top: none; }
.price-row.head { background: rgba(255, 255, 255, 0.02); }
.price-row.head span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.price-name b { font-weight: 600; display: block; }
.price-name span { font-size: 0.82rem; color: var(--muted); font-family: var(--font-mono); }
.price-cell { font-family: var(--font-mono); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.price-cell.hl { color: var(--ice); font-weight: 700; }
.price-term { text-align: right; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-soft); }

/* ---------- Процесс: этапы ---------- */

.process-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.proc-step {
    position: relative;
    padding: 30px 22px 24px;
    border-left: 1px solid var(--line-soft);
}
.proc-step:first-child { border-left: none; }
.proc-step .ps-num {
    font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem;
    color: transparent; -webkit-text-stroke: 1px var(--chrome-3); letter-spacing: 0.04em;
    transition: color 0.3s, -webkit-text-stroke 0.3s;
}
.proc-step.lit .ps-num { color: var(--ice); -webkit-text-stroke: 0; text-shadow: 0 0 18px rgba(70,213,230,0.5); }
.proc-step h3 { font-size: 1rem; margin: 12px 0 8px; }
.proc-step p { color: var(--text-soft); font-size: 0.88rem; }
.proc-step .ps-dot { position: absolute; top: 38px; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.3s, box-shadow 0.3s; }
.proc-step.lit .ps-dot { background: var(--ice); box-shadow: 0 0 12px var(--ice); }

/* ---------- Полоса-статы ---------- */

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: var(--text); font-variant-numeric: tabular-nums; }
.stat b .u { color: var(--ice); }
.stat span { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-soft); letter-spacing: 0.04em; }

/* ---------- Галерея / плитки ---------- */

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.tile.wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, opacity 0.3s; opacity: 0.9; }
.tile:hover img { transform: scale(1.06); opacity: 1; }
.tile .tile-cap { position: absolute; left: 12px; bottom: 12px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); background: rgba(12,13,16,0.7); border-radius: 5px; padding: 4px 9px; }

/* ---------- Отзыв ---------- */

.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--font-display); font-weight: 400; text-transform: none; font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.4; color: var(--text); margin-bottom: 20px; }
.quote blockquote em { font-style: normal; color: var(--ice); }
.quote footer { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.quote footer b { color: var(--text); }

/* ---------- CTA / запись ---------- */

.book { position: relative; overflow: hidden; }
.book-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.book-text h2 { margin-bottom: 14px; }
.book-text p { color: var(--text-soft); margin-bottom: 22px; }
.book-badges { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.book-badges span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-soft); }
.book-badges svg { color: var(--ice); }

.book-form {
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px;
}
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 7px; }
.form-row input, .form-row select {
    width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--void); color: var(--text); font-family: var(--font-body); font-size: 0.96rem;
    transition: border-color 0.2s;
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--ice); }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book-form .btn { width: 100%; margin-top: 4px; }
.form-note { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.form-ok { text-align: center; padding: 22px 6px; }
.form-ok .ok-i { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: var(--ice-dim); color: var(--ice); display: flex; align-items: center; justify-content: center; }
.form-ok h3 { margin-bottom: 8px; }
.form-ok p { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- Page hero (внутренние) ---------- */

.page-hero { position: relative; padding: calc(var(--nav-h) + 48px) 0 44px; border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { margin: 16px 0 14px; max-width: 22ch; }
.page-hero .lead { max-width: 60ch; }
.crumbs { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ice); }
.crumbs span::before { content: '/'; margin-right: 8px; color: var(--line); }

/* ---------- Пакеты детально (страница услуг) ---------- */

.pack { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line-soft); }
.pack:first-of-type { border-top: none; }
.pack.reverse .pack-media { order: 2; }
.pack-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pack-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pack-body .tag { margin-bottom: 14px; }
.pack-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.pack-body p { color: var(--text-soft); margin-bottom: 16px; }
.pack-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.pack-list li { display: flex; gap: 11px; align-items: baseline; color: var(--text-soft); font-size: 0.95rem; }
.pack-list li::before { content: '✓'; color: var(--ice); font-family: var(--font-mono); }
.pack-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 16px; border-top: 1px dashed var(--line); }
.pack-foot .svc-price { font-size: 1.5rem; }

/* ---------- Появление ---------- */
.reveal-on { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-on.visible { opacity: 1; transform: none; }
.reveal-on.d1 { transition-delay: 0.1s; }
.reveal-on.d2 { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal-on { opacity: 1; transform: none; transition: none; }
    .glare-surface .glare { display: none; }
    .btn::after { display: none; }
}

/* ---------- Футер ---------- */

.site-footer { background: #0a0b0e; border-top: 1px solid var(--line-soft); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; margin-bottom: 36px; }
.footer-brand strong { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.14em; color: var(--text); display: block; margin-bottom: 10px; }
.footer-brand p { max-width: 34ch; color: var(--muted); font-size: 0.92rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 15px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-soft); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--ice); }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.footer-bottom a { color: var(--text-soft); }

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

@media (max-width: 1024px) {
    .svc-grid { grid-template-columns: 1fr 1fr; }
    .process-track { grid-template-columns: 1fr 1fr; }
    .proc-step:nth-child(-n+2) { border-left: none; }
    .proc-step { border-top: 1px solid var(--line-soft); }
    .proc-step:nth-child(1), .proc-step:nth-child(2) { border-top: none; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: none; }
    .tiles { grid-template-columns: 1fr 1fr; }
    .tile.wide { grid-column: span 2; }
    .book-inner { grid-template-columns: 1fr; }
    .pack { grid-template-columns: 1fr; gap: 26px; }
    .pack.reverse .pack-media { order: 0; }
}

@media (max-width: 768px) {
    .section { padding: 66px 0; }
    .container { padding: 0 20px; }
    .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
        gap: 4px; background: rgba(10, 11, 14, 0.97); border-bottom: 1px solid var(--line); padding: 12px 18px 18px; display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 12px; font-size: 0.92rem; border-radius: 10px; }
    .nav-links a:active, .nav-links a.active { background: var(--panel); }
    .nav-phone { display: none; }
    .burger { display: flex; }
    .nav-cta { padding: 9px 16px; font-size: 0.64rem; }

    .svc-grid { grid-template-columns: 1fr; }
    .svc-steps { max-height: 200px; opacity: 1; }  /* на мобилке шаги видны сразу */
    .price-row { grid-template-columns: 1fr auto; gap: 6px 14px; }
    .price-row .price-term { grid-column: 1 / -1; text-align: left; color: var(--muted); }
    .price-row.head .price-term { display: none; }
    .process-track { grid-template-columns: 1fr; }
    .proc-step { border-left: none; border-top: 1px solid var(--line-soft); }
    .proc-step:first-child { border-top: none; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .tiles { grid-template-columns: 1fr; }
    .tile.wide { grid-column: auto; }
    .form-cols { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .class-switch { max-width: 100%; }
    .hero { min-height: auto; }
}

@media (max-width: 480px) {
    .hero-actions .btn { width: 100%; }
    .stats-row { grid-template-columns: 1fr; }
    .stat { border-left: none; border-top: 1px solid var(--line-soft); }
    .stat:first-child { border-top: none; }
    .class-chip { padding: 8px 13px; font-size: 0.68rem; }
}
