/*
 * Вид главной страницы porfiry.ru. Вынесен из разметки: стиль, живущий внутри одного
 * файла, повторяют копированием — и через месяц у двух страниц оказывается два разных
 * представления об одном и том же элементе.
 *
 * Страницы-спутники (случаи, хаб, выписка) держат свой case.css: у них другая задача и
 * другая ширина колонки. Общее у них — палитра, и она объявлена здесь первой.
 */

/* ── Правило акцента ─────────────────────────────────────────────────────────────────
   Цвет здесь не украшение и не характер студии: цвет — улика. В комнате следователя
   серым будет всё, кроме того, что относится к вам, — и подсвечивается ровно то, что
   вас выдаёт.

   Отсюда одно правило на весь сайт: акцентом окрашивается только место, где названа
   цена, — число, срок, сумма, потеря, — и одно действие, ведущее к разговору. Заголовки,
   иконки, метки, рамки и вкладки остаются графитом. Когда цветного десяток на экран, оно
   перестаёт что-либо значить; когда три точки на длинной странице — каждая читается как
   «вот здесь у вас утекают деньги».

   Первый экран сух целиком — вплоть до кнопки и чисел под ней: там мы говорим о себе.
   Первая тлеющая точка ждёт глубже, в ценах и потерях, где речь заходит о ваших деньгах.
   Единственное исключение — рамка фокуса с клавиатуры: она служит не разговору о цене, а
   тому, кто не видит курсора. */

:root {
    --bg: var(--brand-bg);
    --text: #ffffff;
    --accent: var(--brand-accent);
    --on-accent: var(--brand-ink-on-accent);
    --gray: #8c8c8c;
    --dark-gray: #4a4a4a;
    --border: #1f1f1f;
    --card-bg: var(--brand-surface);
    --overlay-bg: rgba(10, 10, 10, 0.98);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Светлая тема берёт нейтральные из той же палитры: серый, подмешанный к акценту,
   читается как выбранный, а чистый серый рядом с тёплым акцентом — как оставленный по
   недосмотру. */
body.light-theme {
    --bg: var(--brand-paper);
    --text: var(--brand-paper-ink);
    --accent: var(--brand-accent-on-light);
    --on-accent: var(--brand-ink-on-accent-light);
    --gray: var(--brand-paper-ink-2);
    --dark-gray: var(--brand-paper-ink-3);
    --border: var(--brand-paper-line);
    --card-bg: var(--brand-paper-surface);
    --overlay-bg: rgba(250, 247, 242, 0.98);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 18px; } }

@keyframes glassBreath {
    0%, 100% { backdrop-filter: blur(13px) saturate(145%) contrast(1); -webkit-backdrop-filter: blur(13px) saturate(145%); }
    50% { backdrop-filter: blur(19px) saturate(185%) contrast(1.06); -webkit-backdrop-filter: blur(19px) saturate(185%); }
}

@media (prefers-reduced-motion: reduce) { header { animation: none; } }

header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--bg) 46%, transparent);
    /* Стекло: размытие с лёгким усилением цвета. Карта смещения из SVG в backdrop-filter
       Chromium не берёт — вместе с ней отваливается всё правило, и шапка остаётся голой.
       Поэтому рябь сделана иначе: стекло дышит — глубина размытия и контраст медленно
       ходят туда-сюда, и содержимое под ним плывёт, не застывая. */
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    animation: glassBreath 9s ease-in-out infinite;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 900; letter-spacing: -1px; text-decoration: none; color: var(--text); }
nav ul { list-style: none; display: flex; gap: 32px; }
nav a { color: var(--gray); text-decoration: none; font-size: 16px; transition: color 0.2s; }
nav a:hover, nav a:focus-visible { color: var(--text); outline: none; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.theme-toggle {
    background: transparent; border: 1px solid var(--border); color: var(--text);
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--text); color: var(--text); }

/* ── Кнопки ──────────────────────────────────────────────────────────────────────────
   Кнопка не развлекает, она отвечает. Наведение говорит «это можно нажать», нажатие даёт
   вес, фокус с клавиатуры виден отчётливо — и ничего сверх этого: подпрыгивающая или
   пробегающая бликом кнопка стареет быстрее, чем сайт успевает окупиться.

   Фирменное движение DELO — набор плотности из тумана. По буквам блёр вести нельзя, они
   поплывут, поэтому здесь то же самое сказано светом: янтарь при наведении наливается и
   обзаводится ореолом собственного цвета. Нажатие гасит ореол и роняет кнопку на место —
   рука чувствует вес, а не отскок. */
.btn-accent, .btn-outline, .sector-btn, #leadForm button {
    cursor: pointer;
    display: inline-block;
    font-family: inherit;
    text-decoration: none;
    transition:
        transform var(--press-in) var(--press-ease),
        box-shadow var(--press-in) var(--press-ease),
        background var(--press-in) var(--press-ease),
        color var(--press-in) var(--press-ease),
        border-color var(--press-in) var(--press-ease),
        filter var(--press-in) var(--press-ease);
}

/* Уход быстрее прихода — иначе кнопка «тянется» за курсором, который уже ушёл. */
.btn-accent:not(:hover), .btn-outline:not(:hover), .sector-btn:not(:hover), #leadForm button:not(:hover) {
    transition-duration: var(--press-out);
}

.btn-accent:active, .btn-outline:active, .sector-btn:active, #leadForm button:active {
    transform: translateY(0);
    box-shadow: none;
    transition-duration: 60ms;
}

.btn-accent:focus-visible, .btn-outline:focus-visible, .sector-btn:focus-visible, #leadForm button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn-accent {
    background: var(--text); color: var(--bg); font-weight: 800; padding: 12px 24px;
    border: none;
}
.btn-accent:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--text) 60%, transparent);
}

.btn-outline {
    border: 1px solid var(--border); color: var(--text); padding: 12px 24px;
    font-weight: 600; background: transparent;
}
/* Второе действие не спорит с первым: обводка теплеет до акцента, но заливки не получает —
   две сплошные кнопки рядом отменяют друг друга. */
.btn-outline:hover {
    border-color: var(--text);
    color: var(--text);
    transform: translateY(-1px);
}

.hero { padding: 140px 0 80px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: none;
    pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(40px, 7vw, 96px); font-weight: 900; line-height: 1; margin-bottom: 24px; letter-spacing: -3px; }
.hero h1 span { color: var(--text); }
.hero p { font-size: clamp(16px, 2vw, 20px); color: var(--gray); max-width: 700px; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* Числа под первым экраном. Держатся на общей линии сверху, а не в рамках: рамки
   превратили бы их в карточки товара, тогда как это подпись под обещанием выше. */
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 56px 0 0; padding-top: 32px; border-top: 1px solid var(--border); max-width: 900px; }
@media (max-width: 720px) { .hero-facts { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; } }
.hero-fact dt { color: var(--text); font-size: clamp(30px, 4.4vw, 44px); font-weight: 900; letter-spacing: -1.5px; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-fact dd { color: var(--gray); font-size: 15px; line-height: 1.45; margin: 10px 0 0; }

/* Случаи: четыре способа терять время, по одному на каждую грань DELO. Карточки
   одного веса — важен тот случай, в котором читатель узнал себя, а не порядок. */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.case-card-link { background: var(--card-bg); border: 1px solid var(--border); padding: 28px; text-decoration: none; display: grid; gap: 10px; align-content: start; transition: border-color .25s, transform .25s; }
.case-card-link:hover, .case-card-link:focus-visible { border-color: var(--text); transform: translateY(-3px); }
.case-card-link .name { font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--text); }
.case-card-link:hover .name, .case-card-link:focus-visible .name { color: var(--text); }
.case-card-link .who { color: var(--muted); font-size: 15px; }
/* Цена внизу и есть довод: без неё названия случаев остаются заголовками. */
.case-card-link .cost { color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.cases-foot { margin-top: 40px; }
.cases-foot a { color: var(--muted); text-decoration: none; font-size: 16px; }
.cases-foot a:hover, .cases-foot a:focus-visible { color: var(--text); }
.cases-invite { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 18px; color: var(--gray); }
.cases-invite a { color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--dark-gray); }
.cases-invite a:hover, .cases-invite a:focus-visible { text-decoration: underline; }
/* Ниже — классы вместо инлайновых стилей: правка вида в одном месте, а не поиск по
   разметке, и одинаковый вид у одинаковых по смыслу элементов. */
.section-title-sm { font-size: clamp(32px, 4vw, 48px); margin-bottom: 24px; }

.section-lead { color: var(--gray); margin-bottom: 40px; max-width: 700px; font-size: 18px; }
.contact-lead { color: var(--gray); font-size: 20px; max-width: 600px; margin: 0 auto; }
.btn-accent.centered, .btn-outline.centered { text-align: center; }
.link-accent { color: var(--text); }
.footer-side { text-align: right; display: grid; gap: 8px; justify-items: end; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: var(--gray); text-decoration: none; }
.footer-contact { color: var(--text); text-decoration: none; }
.form-done { color: var(--text); text-align: center; font-size: 32px; }
.form-done-note { text-align: center; margin-top: 16px; }
.hidden-pixel { position: absolute; left: -9999px; }
/* ── Ритм страницы ───────────────────────────────────────────────────────────────────
   Однотонность кабинета — не отсутствие порядка: бумаги там пронумерованы, и по ним видно,
   где ты находишься и сколько осталось. Каждый экран — лист дела: черта, номер, имя. */
section { padding: 120px 0; border-bottom: 1px solid var(--border); }
main > section:nth-of-type(odd):not(.hero) { background: var(--card-bg); }
@media (max-width: 720px) { section { padding: 72px 0; } }

.sheet-mark {
    align-items: baseline;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    padding-top: 14px;
}

.sheet-num { color: var(--dark-gray); font-family: 'JetBrains Mono', monospace; font-size: 13px; font-variant-numeric: tabular-nums; }
.sheet-name { color: var(--gray); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }

.contact.is-final { border-top: 1px dashed var(--dark-gray); }

/* ── Развёртывание страницы из самой себя ────────────────────────────────────────────
   Не показ по факту появления, а движение, привязанное к прокрутке: сколько листа вошло
   в поле зрения, настолько он и собрался. Отмотал назад — лист снова ушёл в туман.

   Считает браузер по временной шкале прокрутки: ни обработчиков, ни лишних кадров. Для
   браузеров без такой шкалы ту же долю считает JavaScript и кладёт её в --p. */
main > section:not(.hero) {
    --p: 1;
    transform-origin: 50% 0;
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        main > section:not(.hero) {
            animation: sheetUnfold linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 62%;
        }

    }

    /* Браузеры без шкалы прокрутки получают ту же долю числом. */
    @supports not (animation-timeline: view()) {
        main > section:not(.hero) {
            opacity: var(--p);
            filter: blur(calc((1 - var(--p)) * 7px));
            transform: translateY(calc((1 - var(--p)) * 26px)) scale(calc(0.975 + var(--p) * 0.025));
        }
    }
}

@keyframes sheetUnfold {
    from { opacity: 0; filter: blur(8px); transform: translateY(30px) scale(0.972); }
    to { opacity: 1; filter: blur(0); transform: none; }
}

}

.section-title { font-size: clamp(36px, 5vw, 64px); font-weight: 900; margin-bottom: 60px; letter-spacing: -2px; line-height: 1.1; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }
.service-item { background: var(--bg); padding: 40px; transition: background 0.2s; }
.service-item:hover, .service-item:focus-within { background: var(--card-bg); }
.service-num { font-size: 14px; color: var(--dark-gray); margin-bottom: 16px; font-weight: 700; }
.service-item h3 { font-size: 22px; margin-bottom: 12px; font-weight: 800; }
.service-item p { color: var(--gray); }

.principles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.principle h3 { font-size: 24px; margin-bottom: 16px; color: var(--text); }
.principle p { color: var(--gray); font-size: 18px; }

/* Направления */

.sector-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.sector-btn { background: transparent; border: 1px solid var(--border); color: var(--gray); font-size: 15px; font-weight: 600; padding: 12px 22px; }
.sector-btn:hover { color: var(--text); border-color: var(--gray); }
/* Выбранное направление держится акцентом, а не заливкой: заливка спорила бы с кнопками
   призыва, которых на экране и так две. */
/* Выбранное направление держится акцентом и лёгким ореолом — тем же светом, что у кнопки
   при наведении, чтобы язык был один. */
.sector-btn.is-active { border-color: var(--text); color: var(--text); }
/* ── Материализация направления ──────────────────────────────────────────────────────
   Тот же переход, что у месяца в календаре DELO, до значений: движется только плотность
   и фокус — ничего не сдвигается и не масштабируется. Сдвиг читается как перелистывание
   слайдов, а нужно, чтобы содержимое собиралось из тумана на месте.

   Кривая cubic-bezier(0.65, 0, 0.35, 1) на 900 мс: медленный вход, быстрая середина и
   долгое незаметное оседание. Именно она, а не длительность, отличает проявление от
   рывка — короткая линейная анимация той же длины читается как подмена.

   Приходит слоями, как месяц: сначала призрак всей панели, следом заголовок, потом довод,
   последними — плитки со свойствами. Три события для глаза вместо одного. */
.sector-panel { position: relative; }
.sector-panel.is-hidden { display: none; }

/* Уходящее не гаснет, а истончается: расфокус ведёт почти линейно, как погода, а не как
   кнопка. */
.sector-panel.is-leaving {
    animation: sectorThinOut 380ms cubic-bezier(0.4, 0, 0.6, 1) both;
    pointer-events: none;
}

.sector-panel.is-arriving { animation: sectorDensity 900ms cubic-bezier(0.65, 0, 0.35, 1) both; }
.sector-panel.is-arriving .sector-title { animation: sectorStratum 620ms cubic-bezier(0.65, 0, 0.35, 1) 260ms both; }
.sector-panel.is-arriving .sector-lead { animation: sectorStratum 620ms cubic-bezier(0.65, 0, 0.35, 1) 400ms both; }
.sector-panel.is-arriving .feature { animation: sectorStratum 480ms cubic-bezier(0.65, 0, 0.35, 1) 520ms both; }
.sector-panel.is-arriving .sector-foot { animation: sectorStratum 480ms cubic-bezier(0.65, 0, 0.35, 1) 640ms both; }

@keyframes sectorDensity {
    from { filter: blur(7px); opacity: 0; }
    45% { filter: blur(2.5px); opacity: 0.72; }
    to { filter: blur(0); opacity: 1; }
}

@keyframes sectorStratum {
    from { filter: blur(3px); opacity: 0; }
    to { filter: blur(0); opacity: 1; }
}

@keyframes sectorThinOut {
    from { filter: blur(0); opacity: 1; }
    to { filter: blur(7px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .sector-panel.is-leaving, .sector-panel.is-arriving,
    .sector-panel.is-arriving .sector-title, .sector-panel.is-arriving .sector-lead,
    .sector-panel.is-arriving .feature, .sector-panel.is-arriving .sector-foot { animation: none; }
}
}
.sector-title { font-size: clamp(24px, 2.9vw, 36px); font-weight: 900; line-height: 1.15; margin-bottom: 16px; max-width: none; text-wrap: balance; }
@media (min-width: 1100px) { .sector-title { white-space: nowrap; } }
.sector-lead {
    color: var(--text);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 300;
    line-height: 1.35;
    max-width: 900px;
    margin: 0 0 52px;
    padding-left: 22px;
    border-left: 3px solid var(--border);
}


/* Свойства сеткой, а не списком: шесть строк подряд читаются как перечень требований,
   шесть плиток — как устройство работы. Ряд из трёх держит взгляд ровно столько, сколько
   нужно, чтобы прочесть заголовок и решить, читать ли дальше. */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 28px; } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; gap: 28px; } }

.feature-icon { width: 30px; height: 30px; color: var(--dark-gray); display: block; margin-bottom: 14px; }
.feature h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--gray); font-size: 16px; line-height: 1.55; }

.sector-foot { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
@media (max-width: 980px) { .sector-foot { grid-template-columns: 1fr; } }
.sector-note { color: var(--gray); font-size: 18px; max-width: 520px; }
.sector-note a { color: var(--text); }
.sector-cta { border: 1px solid var(--border); padding: 28px; }
.sector-cta strong { display: block; font-size: 20px; margin-bottom: 10px; }
.sector-cta p { color: var(--gray); font-size: 15px; margin-bottom: 20px; }
.sector-cta .btn-accent { display: block; text-align: center; }




.case-item { display: flex; justify-content: space-between; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--border); transition: padding 0.2s; flex-wrap: wrap; gap: 20px; }
.case-item:hover { padding-left: 20px; }
.case-info { flex: 1; min-width: 250px; }
.case-info h3 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.case-info p { color: var(--gray); max-width: 600px; }
/* Результат работы, а не ярлыки стека. Ярлык говорит, чем делали; строка результата — что
   у клиента появилось. Второе и есть то, за чем сюда приходят. */
.case-metrics.is-draft { display: none; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 18px 0 0; max-width: 720px; }
@media (max-width: 720px) { .case-metrics { grid-template-columns: 1fr; gap: 12px; } }
.case-metric dt { color: var(--gray); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.case-metric dd { margin: 4px 0 0; font-size: 20px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.case-metric .was { color: var(--gray); font-weight: 400; text-decoration: line-through; margin-right: 8px; }
.case-metric .now { color: var(--accent); }

.case-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 20px 0 0; max-width: 720px; }
@media (max-width: 720px) { .case-results { grid-template-columns: 1fr; gap: 14px; } }
.case-result dt { color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.25; }
.case-result dd { color: var(--gray); font-size: 14px; line-height: 1.4; margin: 6px 0 0; }
.case-actions { display: flex; gap: 12px; flex-direction: column; }


.price-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 1100px) { .price-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .price-cards { grid-template-columns: 1fr; } }
.price-card { border: 1px solid var(--border); padding: 32px 26px; display: flex; flex-direction: column; background: var(--bg); }
/* Вход стоит особняком: пунктир вместо сплошной рамки говорит «попробуйте», тогда как
   сплошная у соседей говорит «выберите». Акцент здесь не нужен — он занят главным тарифом. */
.price-card-entry { border-style: dashed; background: var(--card-bg); }
.price-card-entry .price { color: var(--text); }
.price-card.featured { border-color: var(--text); }
.price-card h3 { font-size: 24px; margin-bottom: 16px; }
.price { color: var(--accent); font-size: clamp(26px, 2.1vw, 34px); font-weight: 900; letter-spacing: -0.5px; margin-bottom: 24px; white-space: nowrap; }
.price small { font-size: 16px; font-weight: 400; color: var(--gray); }
.price-card ul { list-style: none; margin-bottom: 32px; flex-grow: 1; }
.price-card ul li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); display: flex; gap: 10px; }
.price-card ul li::before { content: '✓'; color: var(--dark-gray); font-weight: bold; }
.price-card ul li:last-child { border: none; }
.price-note { color: var(--accent); font-size: 13px; line-height: 1.4; margin-top: 12px; }

.faq-category { margin-bottom: 60px; }
.faq-category h3 { font-size: 24px; font-weight: 800; margin-bottom: 24px; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 12px; display: inline-block; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-item summary { font-size: 20px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 24px; color: var(--dark-gray); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 16px; color: var(--gray); }

.contact { padding: 120px 0; text-align: center; }
.contact h2 { font-size: clamp(36px, 6vw, 72px); font-weight: 900; margin-bottom: 24px; letter-spacing: -2px; }
#leadForm { max-width: 600px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 16px; }
#leadForm input, #leadForm textarea, #leadForm select { background: var(--card-bg); border: 1px solid var(--gray); color: var(--text); padding: 18px; font-size: 16px; font-family: var(--font); }
#leadForm input:focus, #leadForm textarea:focus, #leadForm select:focus { outline: none; border-color: var(--accent); }
#leadForm button { background: var(--text); color: var(--bg); border: none; padding: 20px; font-size: 18px; font-weight: 800; text-transform: uppercase; }
#leadForm button:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--text) 60%, transparent); }

.cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 400px; background: var(--card-bg); border: 1px solid var(--border); padding: 24px; z-index: 1000; display: none; }
.cookie-banner p { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.cookie-banner button { width: 100%; }

.case-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay-bg); z-index: 2000; overflow-y: auto; display: none; animation: fadeIn 0.3s ease; }
.case-overlay.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.case-header { padding: 40px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--overlay-bg); backdrop-filter: blur(10px); }
.case-close-btn { display: flex; align-items: center; gap: 8px; background: transparent; border: none; color: var(--text); cursor: pointer; font-size: 18px; font-weight: 600; }
.case-body { padding: 60px 0; max-width: 800px; margin: 0 auto; }
.case-body h2 { font-size: 48px; font-weight: 900; margin-bottom: 16px; }
.case-body .case-link { color: var(--text); font-size: 20px; margin-bottom: 40px; display: block; }
.case-body h3 { font-size: 28px; margin-top: 40px; margin-bottom: 16px; color: var(--text); }
.case-body p { color: var(--gray); font-size: 18px; margin-bottom: 20px; }
.case-body ul { list-style: none; margin-bottom: 20px; }
.case-body ul li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; color: var(--text); }
.case-body ul li::before { content: '—'; color: var(--dark-gray); }

footer { padding: 40px 0; border-top: 1px solid var(--border); color: var(--gray); font-size: 14px; background: var(--card-bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }

@media (max-width: 768px) {
    nav { display: none; }
    .hero { padding: 60px 0; }
    .case-actions { width: 100%; flex-direction: row; }
    .btn-outline, .btn-accent { width: 100%; text-align: center; font-size: 14px; }
    .case-body h2 { font-size: 32px; }
}

/* Разметка фильтра не должна занимать места на странице. */
.ink-filter { position: absolute; width: 0; height: 0; overflow: hidden; }
