/**
 * Стили публичного сайта. Тёмное премиальное направление.
 *
 * Три приёма делают глубину, из которой складывается впечатление:
 *
 *   слой света   несколько радиальных градиентов низкой плотности,
 *                один из них следует за курсором (--mx / --my);
 *   стекло       полупрозрачная поверхность с размытием и светлой
 *                верхней кромкой — она читается как отражение;
 *   зерно        едва заметный шум поверх всего, чтобы градиенты
 *                не выглядели «пластиковыми» полосами.
 *
 * Движение подчинено правилу: оно объясняет, а не украшает. Блоки
 * проявляются по мере чтения, цифры досчитываются, доска смены
 * заполняется — то есть показывает, что делает продукт. Всё это
 * выключается при prefers-reduced-motion.
 *
 * Файл свой, а не стили приложения: приложению нужны панели и списки,
 * сайту — читаемый текст, свет и одна форма. Общие только цвета.
 */

/* --- Палитра --------------------------------------------------------------- */

:root {
    color-scheme: dark;

    --ink:        #05060b;
    --ink-2:      #090b14;
    --surface:    rgba(255, 255, 255, 0.035);
    --surface-2:  rgba(255, 255, 255, 0.055);
    --hairline:   rgba(255, 255, 255, 0.08);
    --hairline-2: rgba(255, 255, 255, 0.14);

    --text:       #eef0f7;
    --text-dim:   #a2a8bd;
    --text-faint: #6f7590;

    --accent:      #7c6cff;
    --accent-2:    #4dd6c1;
    --accent-warm: #ff9d6c;

    --ok:    #34d399;
    --warn:  #fbbf24;
    --alert: #fb7185;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 30px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Позиция курсора для подвижного света. Обновляется в site.js. */
    --mx: 50%;
    --my: 0%;

    --shell: 1180px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/*
 * Слой света. Фиксирован, поэтому свет не «уезжает» при прокрутке,
 * а страница движется под ним — так глубина держится до самого низа.
 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(700px 500px at var(--mx) var(--my),
            rgba(124, 108, 255, 0.22), transparent 66%),
        radial-gradient(1000px 700px at 6% -8%,
            rgba(124, 108, 255, 0.26), transparent 64%),
        radial-gradient(780px 560px at 98% 4%,
            rgba(77, 214, 193, 0.17), transparent 62%),
        radial-gradient(900px 700px at 50% 112%,
            rgba(124, 108, 255, 0.14), transparent 68%);
}

/*
 * Зерно. Инлайновый SVG вместо картинки: лишний сетевой запрос
 * на лендинге дороже, чем полкилобайта в стилях.
 */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Всё содержимое — над слоями света и зерна. */
.topbar,
main,
.footer { position: relative; z-index: 1; }

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

a { color: var(--text); text-decoration: none; }

h1, h2, h3 { margin: 0 0 12px; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }

[hidden] { display: none !important; }

/* Цифры одинаковой ширины: иначе счётчик «дёргает» соседний текст. */
.nums,
.stats dt,
.board__time,
.evt__num { font-variant-numeric: tabular-nums; }

.wrap {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 22px;
}

.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.text-sm { font-size: 0.9rem; }
.center { text-align: center; }
.col { display: flex; flex-direction: column; gap: 10px; }

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 0 0 var(--r-sm) 0;
}

.skip:focus { left: 0; }

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Шапка ---------------------------------------------------------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid transparent;
    transition: border-color 300ms var(--ease), background-color 300ms var(--ease);
}

/* Фон появляется только когда страница ушла вверх: в самом верху шапка
   должна сливаться с героем, а не резать его линией. */
.topbar.is-stuck {
    background: rgba(5, 6, 11, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: var(--hairline);
}

.topbar__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: -0.01em;
    flex: none;
}

.brand__mark {
    width: 28px;
    height: 28px;
    color: var(--accent);
    filter: drop-shadow(0 0 12px rgba(124, 108, 255, 0.65));
}

.brand--sm { font-size: 1rem; margin-bottom: 10px; }

.topnav {
    display: flex;
    gap: 4px;
    margin-left: auto;
    font-size: 0.93rem;
}

.topnav a {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--text-dim);
    transition: color 200ms var(--ease), background-color 200ms var(--ease);
}

.topnav a:hover { color: var(--text); background: var(--surface); }
.topnav a[aria-current] { color: var(--text); background: var(--surface); }

.topbar__actions { display: flex; gap: 10px; flex: none; }

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 17px;
    height: 1.5px;
    margin: 0 auto;
    background: var(--text);
    border-radius: 2px;
    transition: transform 260ms var(--ease), opacity 200ms var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
    background: rgba(5, 6, 11, 0.94);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--hairline);
    padding: 16px 0 22px;
    animation: drop 260ms var(--ease-out) both;
}

.mobile-nav a { padding: 10px 0; color: var(--text-dim); }
.mobile-nav a:hover { color: var(--text); }

@keyframes drop {
    from { opacity: 0; transform: translateY(-10px); }
}

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

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    overflow: hidden;
    transition: transform 220ms var(--ease), box-shadow 260ms var(--ease),
                border-color 220ms var(--ease), color 220ms var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: linear-gradient(135deg, #8b7bff, #6a55f5);
    color: #fff;
    box-shadow: 0 10px 30px -12px rgba(124, 108, 255, 0.85),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--primary:hover {
    box-shadow: 0 18px 44px -14px rgba(124, 108, 255, 0.95),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Блик пробегает по кнопке при наведении — короткий, чтобы не отвлекать. */
.btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%,
        rgba(255, 255, 255, 0.28) 50%, transparent 65%);
    transform: translateX(-120%);
}

.btn--primary:hover::after { animation: sheen 700ms var(--ease) 1; }

@keyframes sheen {
    to { transform: translateX(120%); }
}

.btn--outline {
    background: var(--surface);
    border-color: var(--hairline-2);
    color: var(--text);
    backdrop-filter: blur(8px);
}

.btn--outline:hover {
    border-color: rgba(124, 108, 255, 0.6);
    background: var(--surface-2);
}

.btn--ghost { background: transparent; color: var(--text-dim); }
.btn--ghost:hover { color: var(--text); }

.btn--lg { height: 54px; padding: 0 30px; font-size: 1rem; }
.btn--block { width: 100%; }

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

.section { padding: 96px 0; }
.section--narrow { padding: 48px 0 96px; }

/* Тонкая светящаяся линия вместо жёсткой границы между секциями. */
.section--edge { border-top: 1px solid transparent; }

.section--edge::before {
    content: "";
    display: block;
    height: 1px;
    margin: -96px 0 96px;
    background: linear-gradient(90deg, transparent,
        rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.12) 80%, transparent);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    padding: 6px 14px 6px 11px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.section__title {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    font-weight: 700;
}

.section__sub {
    max-width: 700px;
    margin: 0 0 40px;
    color: var(--text-dim);
    font-size: 1.06rem;
}

.page__title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 750; margin-bottom: 18px; }
.subhead { font-size: 1.12rem; font-weight: 650; margin: 30px 0 14px; }
.lead { font-size: 1.14rem; color: var(--text-dim); line-height: 1.62; }
.hint { margin: 12px 0 0; font-size: 0.86rem; color: var(--text-faint); }
.hint a { color: var(--accent-2); }

/* --- Проявление при прокрутке --------------------------------------------- */

/*
 * Блоки появляются по мере чтения. Класс ставит скрипт, поэтому без
 * JavaScript содержимое видно сразу — это важнее анимации.
 */
/*
 * Прячем только там, где JavaScript точно есть: класс has-js ставит
 * встроенный скрипт в <head>, до отрисовки. Раньше правило работало
 * безусловно, и обещание из комментария выше не выполнялось — без
 * JavaScript посетитель видел пустую страницу.
 */
.has-js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal.is-in { opacity: 1; transform: none; }

/* Задержка по индексу — «лестница» внутри группы. */
.reveal[style*="--d"] { transition-delay: calc(var(--d) * 70ms); }

/* --- Герой ---------------------------------------------------------------- */

.hero { padding: 68px 0 104px; }

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 5.4vw, 3.9rem);
    font-weight: 760;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}

/* Ключевые слова подсвечиваем градиентом, а не цветом: так акцент
   не спорит с кнопкой, которая тоже цветная. */
.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #a99bff, #4dd6c1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead { max-width: 560px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }

/* --- Живая строка --------------------------------------------------------- */

.live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
    padding: 9px 17px 9px 14px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.live__dot {
    position: relative;
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: var(--ok);
}

.live__dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--ok);
    animation: ping 2.4s var(--ease-out) infinite;
}

@keyframes ping {
    0%   { transform: scale(0.6); opacity: 0.9; }
    70%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* --- Доска смены в герое -------------------------------------------------- */

/*
 * Иллюстрация интерфейса, а не живые данные: имена условные. Настоящие
 * мероприятия показаны ниже, в блоке «сейчас в работе», — там им и место.
 * Здесь задача другая: за пять секунд объяснить, что делает продукт.
 */
.board {
    position: relative;
    padding: 20px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.028));
    border: 1px solid var(--hairline-2);
    border-radius: var(--r-xl);
    backdrop-filter: blur(20px) saturate(130%);

    /*
     * Свечение делаем тенью, а не размытым псевдоэлементом позади.
     * Элемент с backdrop-filter создаёт свой корень наложения, и слой
     * под ним размывался неровно — сквозь строки доски проступало
     * лиловое пятно.
     */
    box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9),
                0 0 130px -34px rgba(124, 108, 255, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.board__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 4px 16px;
    border-bottom: 1px solid var(--hairline);
}

.board__title { font-size: 0.95rem; font-weight: 650; }
.board__sub { font-size: 0.78rem; color: var(--text-faint); margin-top: 2px; }

.board__badge {
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--ok);
    font-size: 0.74rem;
    font-weight: 650;
    white-space: nowrap;
}

.board__rows { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }

.board__row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 11px 6px;
    border-radius: var(--r-sm);
    transition: background-color 300ms var(--ease);
}

.board__row + .board__row { border-top: 1px solid rgba(255, 255, 255, 0.045); }
.board__row:hover { background: rgba(255, 255, 255, 0.035); }

.board__time { font-size: 0.8rem; color: var(--text-faint); }

.board__who { display: flex; align-items: center; gap: 10px; min-width: 0; }

.board__ava {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(140deg, #8b7bff, #4dd6c1);
    color: #06070d;
    font-size: 0.66rem;
    font-weight: 750;
}

.board__name { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board__pos { font-size: 0.74rem; color: var(--text-faint); }

.board__mark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 650;
    white-space: nowrap;
}

.board__mark--in {
    background: rgba(52, 211, 153, 0.13);
    border: 1px solid rgba(52, 211, 153, 0.28);
    color: var(--ok);
}

.board__mark--wait {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hairline);
    color: var(--text-faint);
}

.board__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--hairline);
    font-size: 0.8rem;
    color: var(--text-faint);
}

/* Отметки «прилетают» по очереди, когда доска попала в кадр. */
.board.is-in .board__row { animation: row-in 620ms var(--ease-out) both; }
.board.is-in .board__row:nth-child(1) { animation-delay: 120ms; }
.board.is-in .board__row:nth-child(2) { animation-delay: 220ms; }
.board.is-in .board__row:nth-child(3) { animation-delay: 320ms; }
.board.is-in .board__row:nth-child(4) { animation-delay: 420ms; }

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

.board.is-in .board__mark--in { animation: mark-pop 520ms var(--ease-out) both; }
.board.is-in .board__row:nth-child(1) .board__mark--in { animation-delay: 640ms; }
.board.is-in .board__row:nth-child(2) .board__mark--in { animation-delay: 800ms; }
.board.is-in .board__row:nth-child(3) .board__mark--in { animation-delay: 960ms; }

@keyframes mark-pop {
    0%   { opacity: 0; transform: scale(0.7); }
    60%  { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- Цифры ---------------------------------------------------------------- */

.stats { display: flex; flex-wrap: wrap; gap: 16px 42px; margin: 38px 0 0; }
.stats__item { margin: 0; }

.stats dt {
    font-size: 2.1rem;
    font-weight: 750;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(160deg, #fff, #9aa0bb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stats dd { margin: 6px 0 0; color: var(--text-faint); font-size: 0.86rem; }

/* --- Сейчас в работе ------------------------------------------------------ */

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

.evt {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform 320ms var(--ease), border-color 320ms var(--ease),
                background-color 320ms var(--ease);
}

.evt:hover {
    transform: translateY(-4px);
    border-color: var(--hairline-2);
    background: var(--surface-2);
}

/* Идущее мероприятие отмечаем светящейся полосой сверху. */
.evt--running::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ok), transparent);
}

.evt__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.evt__title { font-size: 1.04rem; font-weight: 650; letter-spacing: -0.015em; }
.evt__where { margin-top: 4px; font-size: 0.86rem; color: var(--text-faint); }

.evt__tag {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
    white-space: nowrap;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    color: var(--text-dim);
}

.evt__tag--live {
    background: rgba(52, 211, 153, 0.13);
    border-color: rgba(52, 211, 153, 0.3);
    color: var(--ok);
}

.evt__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.85rem; color: var(--text-dim); }
.evt__num { font-weight: 650; color: var(--text); }

/*
 * Полоски заполнения состава здесь больше нет: доля закрытых мест —
 * внутренняя цифра, наружу она не идёт. Подробнее — в комментарии
 * к блоку мероприятий в resources/site/home.php.
 */

.evt__foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-faint);
    /* Отделяем итоговую строку от состава позиций над ней. */
    padding-top: 12px;
    border-top: 1px solid var(--hairline);
}

/* «Открыт набор» — единственное, что здесь адресовано оператору. */
.evt__open {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(77, 214, 193, 0.13);
    color: var(--accent-2);
    font-weight: 600;
}

/* --- Шаги ----------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.step {
    position: relative;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    transition: transform 320ms var(--ease), border-color 320ms var(--ease);
}

.step:hover { transform: translateY(-4px); border-color: var(--hairline-2); }

.step h3 { font-size: 1.08rem; font-weight: 650; margin: 18px 0 10px; }
.step p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

.step__num {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(139, 123, 255, 0.28), rgba(77, 214, 193, 0.16));
    border: 1px solid var(--hairline-2);
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--text);
}

.steps--plain {
    display: block;
    list-style: none;
    counter-reset: plain;
    padding: 0;
    margin: 0 0 22px;
}

.steps--plain li {
    counter-increment: plain;
    position: relative;
    padding: 0 0 0 34px;
    margin-bottom: 12px;
    background: none;
    border: 0;
    color: var(--text-dim);
}

.steps--plain li::before {
    content: counter(plain);
    position: absolute;
    left: 0;
    top: 1px;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 700;
}

/* --- Карточки ------------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }

.card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    transition: transform 320ms var(--ease), border-color 320ms var(--ease),
                background-color 320ms var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--hairline-2);
    background: var(--surface-2);
}

.card h3 { font-size: 1.04rem; font-weight: 650; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

.card--accent {
    background: linear-gradient(165deg, rgba(139, 123, 255, 0.14), var(--surface));
    border-color: rgba(139, 123, 255, 0.3);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(139, 123, 255, 0.26), rgba(77, 214, 193, 0.14));
    border: 1px solid var(--hairline-2);
    color: var(--text);
}

.card__icon svg { width: 20px; height: 20px; }

.grid-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px 48px; }

/* --- Списки с галочками --------------------------------------------------- */

.checklist { list-style: none; padding: 0; margin: 0 0 20px; }

.checklist li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text-dim);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 8px;
    width: 7px;
    height: 12px;
    border: solid var(--accent-2);
    border-width: 0 1.8px 1.8px 0;
    transform: rotate(40deg);
}

.checklist--tight li { margin-bottom: 9px; }

/* --- Роли ----------------------------------------------------------------- */

.roles { width: 100%; border-collapse: collapse; font-size: 0.94rem; }

.roles th,
.roles td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid var(--hairline);
    vertical-align: top;
}

.roles thead th {
    color: var(--text-faint);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.roles td:first-child { font-weight: 650; white-space: nowrap; color: var(--text); }
.roles td:last-child { color: var(--text-dim); }
.roles tbody tr { transition: background-color 220ms var(--ease); }
.roles tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

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

.review blockquote { margin: 0 0 16px; font-size: 1rem; color: var(--text); line-height: 1.62; }
.review__score { margin: 0 0 10px; color: var(--warn); letter-spacing: 3px; }
.review__who { display: flex; flex-direction: column; gap: 3px; font-size: 0.88rem; }

/* --- Открытые смены операторам -------------------------------------------- */

.openlist { list-style: none; padding: 0; margin: 0 0 14px; }

.openlist li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
}

.openlist__main { display: flex; flex-direction: column; }
.openlist__main strong { font-weight: 650; }
.openlist__meta { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; }

.tag {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    color: var(--text-dim);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* --- Вопросы -------------------------------------------------------------- */

.faq { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.faq__item {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: 16px 20px;
    transition: border-color 260ms var(--ease), background-color 260ms var(--ease);
}

.faq__item:hover { border-color: var(--hairline-2); }
.faq__item[open] { background: var(--surface-2); border-color: var(--hairline-2); }

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

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

.faq__item summary::after {
    content: "";
    width: 9px;
    height: 9px;
    flex: none;
    border: solid var(--text-faint);
    border-width: 0 1.6px 1.6px 0;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 280ms var(--ease);
}

.faq__item[open] summary::after { transform: rotate(225deg) translateY(-2px); }

.faq__answer {
    padding-top: 12px;
    color: var(--text-dim);
    animation: fade 320ms var(--ease-out) both;
}

@keyframes fade {
    from { opacity: 0; transform: translateY(-4px); }
}

.qa { margin-bottom: 40px; }
.qa__item { padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.qa__item h3 { font-size: 1.06rem; font-weight: 650; margin-bottom: 10px; max-width: 62ch; }

/* Мера набора: строка во всю ширину 1180 пикселей читается тяжело —
   глаз теряет начало следующей. */
.qa__answer { color: var(--text-dim); max-width: 78ch; }

.faq__answer { max-width: 82ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }

.chip {
    padding: 7px 15px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    color: var(--text-dim);
    font-size: 0.87rem;
    transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.chip:hover { color: var(--text); border-color: var(--hairline-2); }

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

.doclist { list-style: none; padding: 0; margin: 0; }
.doclist li { margin-bottom: 12px; }

.doclist__item {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    transition: transform 280ms var(--ease), border-color 280ms var(--ease);
}

.doclist__item:hover { transform: translateX(4px); border-color: rgba(139, 123, 255, 0.45); }

.doclist__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 13px;
    background: linear-gradient(140deg, rgba(139, 123, 255, 0.24), rgba(77, 214, 193, 0.12));
    border: 1px solid var(--hairline-2);
    font-size: 0.7rem;
    font-weight: 750;
    color: var(--text-dim);
}

.doclist__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.doclist__body strong { font-weight: 650; }
.doclist__meta { font-size: 0.82rem; color: var(--text-faint); }

.prose { max-width: 740px; color: var(--text-dim); }
.prose h2 { font-size: 1.3rem; margin: 34px 0 12px; color: var(--text); }
.prose h3 { font-size: 1.1rem; margin: 26px 0 10px; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.prose th, .prose td { padding: 11px 13px; border: 1px solid var(--hairline); text-align: left; }
.prose a { color: var(--accent-2); }

.prose blockquote {
    margin: 0 0 18px;
    padding: 12px 18px;
    border-left: 2px solid var(--accent);
    color: var(--text-dim);
}

.prose pre {
    padding: 16px;
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
    font-size: 0.86rem;
    color: var(--text-faint);
}

.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--text); }

/* --- Форма ---------------------------------------------------------------- */

.lead-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }

.formbox {
    position: relative;
    padding: 30px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
    border: 1px solid var(--hairline-2);
    border-radius: var(--r-xl);
    backdrop-filter: blur(18px);
    box-shadow: 0 40px 90px -55px rgba(0, 0, 0, 0.9),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-faint);
    letter-spacing: 0.01em;
}

.req { color: var(--alert); }

.field input,
.field textarea {
    width: 100%;
    padding: 13px 15px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--hairline);
    border-radius: 13px;
    color: var(--text);
    font: inherit;
    font-size: 0.97rem;
    transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease),
                background-color 220ms var(--ease);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(139, 123, 255, 0.7);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.16);
}

.field input[aria-invalid],
.field textarea[aria-invalid] { border-color: var(--alert); }

.field textarea { resize: vertical; min-height: 92px; }
.field__error { margin: 0; font-size: 0.84rem; color: var(--alert); }

/*
 * Ловушка для роботов. Не display:none — часть ботов такие поля пропускает;
 * убираем поле из потока и с экрана, оставляя его «настоящим» в разметке.
 */
.trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    padding: 16px 18px;
    border-radius: var(--r-md);
    margin-bottom: 18px;
    font-size: 0.95rem;
    border: 1px solid transparent;
    animation: fade 400ms var(--ease-out) both;
}

.notice--ok {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.3);
    color: #a7f3d0;
}

.notice--bad {
    background: rgba(251, 113, 133, 0.1);
    border-color: rgba(251, 113, 133, 0.32);
    color: #fecdd3;
}

.notice strong { display: block; margin-bottom: 4px; color: #fff; }

.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--hairline);
}

.cta p { margin: 0; color: var(--text-dim); }
.cta--center { justify-content: center; border: 0; }

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

.footer { padding: 60px 0 26px; border-top: 1px solid var(--hairline); }

.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 9px; }

.footer__col h3 {
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 6px;
}

.footer__col a { color: var(--text-dim); font-size: 0.93rem; transition: color 200ms var(--ease); }
.footer__col a:hover { color: var(--text); }
.footer__col p { margin: 0; font-size: 0.92rem; color: var(--text-faint); }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--hairline);
    font-size: 0.84rem;
    color: var(--text-faint);
}

/* --- Планшет и телефон ---------------------------------------------------- */

@media (max-width: 1000px) {
    .hero__inner,
    .lead-grid { grid-template-columns: 1fr; gap: 40px; }

    .steps { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .topnav,
    .topbar__actions { display: none; }
    .burger { display: flex; }
    .section { padding: 72px 0; }
    .section--edge::before { margin: -72px 0 72px; }
    .hero { padding: 40px 0 76px; }
}

@media (max-width: 560px) {
    .field-row { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; }
    .stats { gap: 14px 26px; }
    .stats dt { font-size: 1.7rem; }
    .formbox { padding: 22px; border-radius: var(--r-lg); }
    .board { padding: 16px; border-radius: var(--r-lg); }
    .board__row { grid-template-columns: 48px 1fr auto; gap: 9px; }
    .wrap { padding: 0 18px; }
}

/* --- Уважение к настройкам ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal { opacity: 1; transform: none; }
    body::before { transition: none; }
}
