/* ============================================================
   Дарим · darim.ai — единая дизайн-система
   Сцена ↔ Кулисы. Тёмный театр для выхода, светлая бумага для работы.
   Источник истины — design/darim-landing-brilliant.html.
   Шрифты самохостятся из /fonts/ (Unbounded display + Onest text).
   Все имена классов из старого site.css сохранены — только перекрашены.
   ============================================================ */

/* ---------- 1. Шрифты (Cyrillic + Latin сабсеты) -------------- */

@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/unbounded-cyrillic-500-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/unbounded-latin-500-normal.woff2') format('woff2');
    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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/unbounded-cyrillic-600-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/unbounded-latin-600-normal.woff2') format('woff2');
    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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/unbounded-cyrillic-700-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/unbounded-latin-700-normal.woff2') format('woff2');
    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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/onest-cyrillic-400-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/onest-latin-400-normal.woff2') format('woff2');
    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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/onest-cyrillic-500-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/onest-latin-500-normal.woff2') format('woff2');
    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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/onest-cyrillic-600-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/onest-latin-600-normal.woff2') format('woff2');
    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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/onest-cyrillic-700-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/onest-latin-700-normal.woff2') format('woff2');
    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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Токены ---------------------------------------- */

:root {
    /* Сцена (тёмная) */
    --ink: #160F1E;
    --ink-2: #1E1528;
    --ink-3: #2A1E38;
    --line-dark: #372A45;

    /* Кулисы (светлые) */
    --paper: #F4ECE3;
    --paper-2: #FCF7F1;
    --line: #E5DACE;

    /* Прожектор (янтарь + жар) */
    --glow: #F4B860;
    --glow-hot: #E8804A;

    /* Берри (контраст к янтарю) */
    --berry: #D85A82;
    --berry-ink: #B8456A;

    /* Текст */
    --ink-text: #241B2B;
    --paper-text: #F3E9DF;
    --paper-muted: #B7A4B2;
    --light-muted: #6E6175;

    /* Movement */
    --ease: cubic-bezier(.2, .7, .2, 1);
    --maxw: 1180px;
    --radius: 16px;
    --radius-s: 12px;
    --shadow: 0 24px 50px -28px rgba(34, 24, 41, .5);
}

/* ---------- 3. Базовые элементы ------------------------------ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-text);
    font-family: "Onest", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.theatre {
    background: var(--ink);
    color: var(--paper-text);
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 500;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* HTML5 [hidden] must always win over explicit display:flex/grid/inline-flex
   we set on components. Without this, /r/ #scene-contribution (.contribution
   is display:flex), /c/ #tg-row (.link-row), /c/ #preview-btn (.btn), and
   /n/ #link-invite-tg (.tg-btn) stay visible when JS sets the hidden attribute. */
[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--glow);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- 4. Утилитарные классы ---------------------------- */

.serif {
    font-family: "Unbounded", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.07;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 26px;
}

.eyebrow {
    font-size: 11.5px;
    letter-spacing: .26em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--berry-ink);
}

.theatre .eyebrow {
    color: var(--glow);
}

.muted {
    color: var(--light-muted);
}

.theatre .muted {
    color: var(--paper-muted);
}

.muted.small,
.small {
    font-size: 13px;
}

.hint {
    color: var(--light-muted);
    font-size: 13px;
    font-weight: 400;
}

.star {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--glow);
    box-shadow: 0 0 12px var(--glow);
}

/* ---------- 5. Lights-up + scroll-reveal --------------------- */

.anim {
    transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.preload .anim {
    opacity: 0;
    transform: translateY(16px);
}
.preload #beam {
    opacity: 0;
}
#beam {
    transition: opacity 1.2s var(--ease);
}

.d1 { transition-delay: .45s; }
.d2 { transition-delay: .62s; }
.d3 { transition-delay: .79s; }
.d4 { transition-delay: .96s; }
.d5 { transition-delay: .60s; }

.sr {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.sr.in {
    opacity: 1;
    transform: none;
}

/* ---------- 6. Nav (общий для всех страниц) ------------------ */

.nav {
    position: fixed;
    left: 0; right: 0; top: 0;
    z-index: 40;
    transition: .3s var(--ease);
    border-bottom: 1px solid transparent;
}
.theatre .nav.scrolled {
    background: rgba(20, 13, 27, .82);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line-dark);
}
.nav.on-paper {
    position: sticky;
    background: rgba(252, 247, 241, .92);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
.nav-in {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 26px;
}
.brand {
    font-family: "Unbounded", system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    font-size: 14.5px;
    font-weight: 500;
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--light-muted);
    transition: .16s var(--ease);
}
.theatre .nav-links a {
    color: var(--paper-muted);
}
.nav-links a:hover {
    color: var(--berry-ink);
}
.theatre .nav-links a:hover {
    color: var(--glow);
}
.nav-cta {
    background: var(--ink);
    color: var(--paper-text) !important;
}
.nav-cta:hover {
    background: var(--glow);
    color: #2a1a10 !important;
}
.theatre .nav-cta {
    background: var(--paper);
    color: var(--ink-text) !important;
}

/* ---------- 7. Кнопки ---------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: .2s var(--ease);
    text-decoration: none;
    line-height: 1;
}
.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.btn-primary {
    background: linear-gradient(120deg, var(--glow), var(--glow-hot));
    color: #2a1a10;
    box-shadow: 0 14px 36px -14px rgba(232, 128, 74, .8);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px -14px rgba(232, 128, 74, .9);
}
.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--line);
    color: var(--ink-text);
}
.theatre .btn-ghost {
    border-color: var(--line-dark);
    color: var(--paper-text);
}
.btn-ghost:hover {
    border-color: var(--berry-ink);
    color: var(--berry-ink);
}
.theatre .btn-ghost:hover {
    border-color: var(--glow);
    color: var(--glow);
}
.btn-block {
    width: 100%;
    justify-content: center;
}
.btn.danger {
    background: var(--berry);
    color: #fff;
}
.btn.danger:hover {
    background: var(--berry-ink);
}

.mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-text);
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: .16s var(--ease);
}
.mini-btn:hover {
    border-color: var(--berry-ink);
    color: var(--berry-ink);
}
.theatre .mini-btn {
    border-color: var(--line-dark);
    color: var(--paper-text);
}
.theatre .mini-btn:hover {
    border-color: var(--glow);
    color: var(--glow);
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-text);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: .16s var(--ease);
}
.copy-btn:hover {
    border-color: var(--berry-ink);
    color: var(--berry-ink);
}

/* Share intent buttons — sit under a link-row label, one per channel.
   Style mirrors .copy-btn but smaller and lighter, so they read as
   "secondary actions" not "primary CTAs". */
.share-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-block;
    background: var(--paper-2);
    border: 1px solid var(--line);
    color: var(--light-muted);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    text-decoration: none;
    transition: .16s var(--ease);
}
.share-btn:hover {
    border-color: var(--berry-ink);
    color: var(--berry-ink);
    background: var(--paper);
}

.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 32px;
}

.tg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #229ED9;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 22px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: .2s var(--ease);
    text-decoration: none;
}
.tg-btn:hover {
    transform: translateY(-2px);
    background: #1B8FC6;
}

/* ---------- 8. Театральные примитивы (для сцены и /r/) ------- */

#beam {
    position: absolute;
    top: -12%;
    left: 50%;
    width: 60%;
    height: 130%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(closest-side, rgba(244, 184, 96, .20), rgba(244, 184, 96, .04) 55%, transparent 72%);
    filter: blur(8px);
    animation: beam 9s var(--ease) infinite alternate;
}
@keyframes beam {
    from { transform: translateX(-57%) rotate(-2deg); }
    to   { transform: translateX(-43%) rotate(2deg); }
}

.cursor-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    left: 50%;
    top: 30%;
    background: radial-gradient(closest-side, rgba(244, 184, 96, .10), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .5s;
    mix-blend-mode: screen;
}

.dust {
    position: absolute;
    inset: 0 0 30% 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.mote {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(244, 184, 96, .55);
    filter: blur(.4px);
    animation: drift linear infinite;
}
@keyframes drift {
    0%   { transform: translateY(20px); opacity: 0; }
    12%  { opacity: .55; }
    88%  { opacity: .45; }
    100% { transform: translateY(-130px); opacity: 0; }
}

.floor {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 34%;
    background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent);
    pointer-events: none;
    z-index: 1;
}

.conf {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}
.conf i {
    position: absolute;
    top: -10px;
    width: 7px;
    height: 11px;
    border-radius: 2px;
    opacity: .9;
    animation: fall linear forwards;
}
@keyframes fall {
    to { transform: translateY(560px) rotate(540deg); opacity: .6; }
}

/* ---------- 9. Формы ----------------------------------------- */

.page {
    padding: 100px 0 80px;
}
.page-head {
    margin-bottom: 32px;
}
.page-head .eyebrow {
    display: block;
    margin-bottom: 12px;
}
.page-head h1 {
    font-size: clamp(30px, 4.6vw, 50px);
}
.page-head p {
    margin-top: 12px;
    color: var(--light-muted);
    max-width: 54ch;
}

.crumbs {
    margin-bottom: 24px;
    font-size: 13.5px;
}
.crumbs a {
    color: var(--berry-ink);
}

.panel {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}

.field {
    margin-bottom: 18px;
}
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--light-muted);
    margin-bottom: 8px;
}
.input {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 13px 16px;
    font: inherit;
    font-size: 15px;
    color: var(--ink-text);
    transition: .16s var(--ease);
}
.input:focus {
    outline: 0;
    border-color: var(--berry);
    box-shadow: 0 0 0 4px rgba(216, 90, 130, .12);
}
textarea.input {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.two-col {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 30px;
    align-items: start;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-text);
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: .16s var(--ease);
}
.chip:hover {
    border-color: var(--berry-ink);
}
.chip.sel {
    background: var(--ink);
    color: var(--paper-text);
    border-color: var(--ink);
}

.swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.sw {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .16s var(--ease);
    display: inline-block;
}
.sw.on {
    border-color: var(--ink);
    transform: scale(1.08);
}

/* ---------- 10. Обложка-превью ------------------------------- */

.cover {
    position: relative;
    aspect-ratio: 5 / 3.4;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: radial-gradient(120% 130% at 80% 0%, #F7C982, #E8804A 46%, #B8456A 100%);
    color: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cover .badge {
    align-self: flex-start;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(34, 24, 41, .4);
    backdrop-filter: blur(6px);
    padding: 5px 10px;
    border-radius: 999px;
}
.cover .ttl {
    font-family: "Unbounded", system-ui, sans-serif;
    font-weight: 600;
    font-size: 21px;
    letter-spacing: -.02em;
    line-height: 1.05;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.cover-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* ---------- 11. Ссылки на расшаривание ----------------------- */

.links-out {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.link-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 12px 14px;
}
.lr-ic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper-text);
    display: grid;
    place-items: center;
    font-size: 15px;
    flex: none;
}
.lr-grow {
    flex: 1;
    min-width: 0;
}
.lr-t {
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--light-muted);
}
.lr-u {
    font-size: 13.5px;
    word-break: break-all;
    color: var(--ink-text);
}

/* ---------- 12. Статистика (cabinet / metrics) ---------------- */

.dash-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.dash-top h1 {
    font-size: clamp(26px, 4vw, 40px);
}
.countdown {
    text-align: right;
}
.countdown .num {
    font-family: "Unbounded", system-ui, sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    color: var(--glow-hot);
}
.countdown .lab {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--light-muted);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.stat {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 18px 20px;
}
.stat .v {
    font-family: "Unbounded", system-ui, sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
}
.stat .l {
    font-size: 13px;
    color: var(--light-muted);
    margin-top: 4px;
}

.dash-cols {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 24px;
    align-items: start;
}

.list-card {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.lc-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    font-weight: 600;
}

.person {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
}
.person:last-child {
    border-bottom: 0;
}
.p-ava {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex: none;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    background: var(--ink-3);
}
.p-name {
    font-weight: 500;
    font-size: 14.5px;
}
.p-meta {
    font-size: 12.5px;
    color: var(--light-muted);
    margin-top: 2px;
}
.badge2 {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
}
.badge2.ok    { background: rgba(46, 160, 90, .13); color: #2c8a52; }
.badge2.wait  { background: rgba(110, 97, 117, .12); color: var(--light-muted); }
.badge2.flag  { background: rgba(184, 69, 106, .14); color: var(--berry-ink); }

.side-card {
    background: var(--ink);
    color: var(--paper-text);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.side-card h3 {
    font-family: "Unbounded", system-ui, sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
}
.side-card p {
    font-size: 13.5px;
    color: var(--paper-muted);
    margin-bottom: 18px;
}
.dash-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}
.side-card .mini-btn {
    border-color: var(--line-dark);
    color: var(--paper-text);
    justify-content: center;
}
.side-card .mini-btn:hover {
    border-color: var(--glow);
    color: var(--glow);
}

/* ---------- 13. Флаги модерации ------------------------------ */

.flag-box {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-top: 24px;
}
.flag-box .fb-h {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 14px;
    color: var(--berry-ink);
    margin-bottom: 10px;
}
.flag-box .fb-msg {
    font-size: 14px;
    color: var(--light-muted);
    font-style: italic;
    margin-bottom: 14px;
}
.flag-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- 14. Auth (логин-карточка) ------------------------ */

.auth-wrap {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    text-align: center;
}
.auth-card .brand {
    font-family: "Unbounded", system-ui, sans-serif;
    font-size: 30px;
    font-weight: 600;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}
.auth-card h1 {
    font-size: 22px;
    margin-bottom: 6px;
}
.auth-card p.sub {
    color: var(--light-muted);
    font-size: 14.5px;
    margin-bottom: 24px;
}
.auth-card .field {
    text-align: left;
}
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--light-muted);
    font-size: 12.5px;
    margin: 20px 0;
}
.divider::before,
.divider::after {
    content: "";
    height: 1px;
    background: var(--line);
    flex: 1;
}
.auth-note {
    font-size: 12.5px;
    color: var(--light-muted);
    margin-top: 20px;
}

/* ---------- 15. AI text-help (M3) ---------------------------- */

#ai-help {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}
.tone-btn {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-text);
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: .16s var(--ease);
}
.tone-btn:hover {
    border-color: var(--berry-ink);
    color: var(--berry-ink);
}
.tone-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}
#ai-preview {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 14px;
}
#ai-preview-body {
    white-space: pre-wrap;
    font-size: 14px;
}
.ai-status {
    font-size: 12.5px;
    color: var(--light-muted);
    margin-top: 6px;
}
.ai-status.err {
    color: var(--berry-ink);
}

/* ---------- 16. Reveal-плеер (минимум — токены + читаемость) -- */

/* Плеер сам по себе — отдельная сцена, body.theatre активна */

.theatre .panel,
.theatre .auth-card,
.theatre .stat,
.theatre .list-card,
.theatre .link-row,
.theatre .flag-box {
    background: var(--ink-2);
    border-color: var(--line-dark);
    color: var(--paper-text);
}
.theatre .input {
    background: var(--ink-3);
    border-color: var(--line-dark);
    color: var(--paper-text);
}
.theatre .chip {
    background: var(--ink-2);
    border-color: var(--line-dark);
    color: var(--paper-text);
}
.theatre .chip.sel {
    background: var(--glow);
    color: #2a1a10;
    border-color: var(--glow);
}

/* Точки прогресса (.dot активна в /r/reveal.js) */
.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-dark);
    margin: 0 4px;
    transition: .3s var(--ease);
}
.dot.active {
    background: var(--glow);
    transform: scale(1.4);
}
.dot.past {
    background: var(--paper-muted);
}

/* Переходы сцен */
.in-rise { animation: scene-rise .6s var(--ease); }
.in-fade { animation: scene-fade .6s var(--ease); }
.in-slide { animation: scene-slide .6s var(--ease); }
@keyframes scene-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes scene-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes scene-slide { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

.effect.glow {
    text-shadow: 0 0 24px rgba(244, 184, 96, .8);
}

/* ---------- 17. Footer (общий) ------------------------------- */

.foot {
    background: var(--ink);
    color: var(--paper-text);
    border-top: 1px solid var(--line-dark);
    padding: 30px 0 40px;
}
.foot-in {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.foot-brand {
    font-family: "Unbounded", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.02em;
    display: flex;
    gap: 9px;
    align-items: center;
}
.foot-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.foot a {
    font-size: 13.5px;
    color: var(--paper-muted);
}
.foot a:hover {
    color: var(--glow);
}
.foot-meta {
    width: 100%;
    border-top: 1px solid var(--line-dark);
    padding-top: 16px;
    font-size: 12.5px;
    color: var(--paper-muted);
}

/* ---------- 18. Файл-загрузка (вклад /m/) -------------------- */

.file-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.file-list li {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 8px 12px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.file-list li.ok {
    border-color: rgba(46, 160, 90, .3);
}
.file-list li.err {
    border-color: var(--berry-ink);
    color: var(--berry-ink);
}

/* ---------- 18b. Лендинг — сцена в hero + кулисы + CTA -------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 124px 0 70px;
    overflow: hidden;
    background: var(--ink);
    color: var(--paper-text);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 50% -6%, rgba(244, 184, 96, .30), transparent 60%),
        radial-gradient(120% 80% at 50% 120%, rgba(184, 69, 106, .12), transparent 55%),
        var(--ink);
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: 56px;
    align-items: center;
    width: 100%;
}
.hero h1 {
    font-size: clamp(33px, 5.1vw, 62px);
    letter-spacing: -.025em;
    line-height: 1.08;
    margin: 20px 0 0;
}
.hero h1 em {
    font-style: normal;
    color: var(--glow);
    position: relative;
}
.hero .lead {
    margin-top: 24px;
    font-size: 18px;
    max-width: 36ch;
    color: var(--paper-muted);
}
.hero .cta-row {
    margin-top: 36px;
}
.free {
    font-size: 13px;
    color: var(--paper-muted);
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Live mini-stage (правая колонка hero) */
.stage {
    position: relative;
    aspect-ratio: 4 / 4.5;
    border-radius: 24px;
    border: 1px solid var(--line-dark);
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 50% 4%, rgba(244, 184, 96, .22), transparent 50%),
        linear-gradient(180deg, var(--ink-2), #120B19);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7);
}
.stage-spot {
    position: absolute;
    top: -22%;
    left: 50%;
    width: 64%;
    height: 115%;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(244, 184, 96, .34), transparent 70%);
    filter: blur(6px);
    transition: left 1.2s var(--ease);
}
.stage-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    z-index: 3;
}
.stage-tag {
    font-size: 10px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--glow);
    opacity: .9;
}
.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--paper-muted);
}
.live-dot i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--glow-hot);
    box-shadow: 0 0 8px var(--glow-hot);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .3; }
}

.stage-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 26px;
}
.director {
    font-family: "Onest", system-ui, sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(15px, 1.9vw, 18px);
    color: var(--glow);
    min-height: 3.4em;
    max-width: 27ch;
    transition: opacity .5s;
    margin-bottom: 18px;
}
.stage .card {
    width: min(86%, 330px);
    background: var(--paper-2);
    color: var(--ink-text);
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 0 60px -8px rgba(244, 184, 96, .45);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.stage .card.swap {
    opacity: 0;
    transform: translateY(16px) scale(.97);
}
.stage .card .who {
    font-family: "Onest", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--berry-ink);
    margin-bottom: 10px;
}
.stage .card .msg {
    font-family: "Onest", system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.32;
}
.stage .card .photo {
    margin-top: 14px;
    height: 96px;
    border-radius: 11px;
    background: linear-gradient(120deg, #E9D9C6, #D8B7A0);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.stage-finale {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 26px;
    background: radial-gradient(70% 55% at 50% 42%, rgba(244, 184, 96, .20), transparent 70%);
}
.stage-finale.show {
    display: flex;
    animation: fade .6s var(--ease);
}
.stage-finale h3 {
    font-family: "Unbounded", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -.02em;
    font-size: clamp(23px, 3.2vw, 32px);
    color: #fff;
    line-height: 1.12;
}
.stage-finale h3 b {
    color: var(--glow);
    font-weight: 700;
}
.stage-finale p {
    margin-top: 14px;
    color: var(--paper-muted);
    font-size: 13.5px;
}
@keyframes fade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; }
}
.stage-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 0 18px;
    z-index: 3;
}
.stage .dots {
    display: flex;
    gap: 7px;
}
.stage .dots i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--line-dark);
    transition: .3s;
}
.stage .dots i.on {
    background: var(--glow);
    transform: scale(1.4);
}
.stage .dots i.done {
    background: var(--paper-muted);
}
.stage-cap {
    font-size: 10.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--paper-muted);
}
.scrollcue {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 10.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--paper-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: .7;
}
.scrollcue i {
    width: 1px; height: 26px;
    background: linear-gradient(var(--glow), transparent);
    animation: cue 2s var(--ease) infinite;
}
@keyframes cue {
    0%, 100% { opacity: .3; transform: scaleY(.6); }
    50%      { opacity: 1;  transform: scaleY(1); }
}

/* Contrast strip между сценой и кулисами */
.contrast {
    position: relative;
    z-index: 2;
    background: var(--ink);
    color: var(--paper-text);
    border-top: 1px solid var(--line-dark);
}
.contrast .wrap {
    display: flex;
    gap: 22px;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 30px;
    padding-bottom: 30px;
}
.contrast .big {
    font-family: "Unbounded", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.18;
    font-size: clamp(19px, 2.6vw, 28px);
    max-width: 24ch;
}
.contrast .big s {
    color: var(--paper-muted);
    text-decoration-color: var(--berry);
}
.contrast .big b {
    color: var(--glow);
    font-weight: 700;
}
.contrast .sub {
    font-size: 14px;
    color: var(--paper-muted);
    max-width: 24ch;
}

/* Backstage (светлая секция «как устроено») */
.backstage {
    position: relative;
    background: var(--paper);
    color: var(--ink-text);
    border-radius: 36px 36px 0 0;
    margin-top: -1px;
    padding: 84px 0 78px;
}
.bs-head {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 40px;
    align-items: end;
}
.backstage .kicker {
    display: block;
    margin-bottom: 16px;
    color: var(--berry-ink);
}
.backstage h2 {
    font-family: "Unbounded", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.12;
    font-size: clamp(25px, 3.7vw, 40px);
    max-width: 20ch;
}
.cover-teaser {
    position: relative;
    aspect-ratio: 5 / 3.4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 50px -28px rgba(34, 24, 41, .5);
    background: radial-gradient(120% 130% at 80% 0%, #F7C982, #E8804A 46%, #B8456A 100%);
}
.cover-teaser .tlabel {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 9.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
    background: rgba(34, 24, 41, .4);
    backdrop-filter: blur(6px);
    padding: 5px 10px;
    border-radius: 999px;
}
.cover-teaser .tttl {
    position: absolute;
    left: 16px; right: 16px; bottom: 14px;
    font-family: "Unbounded", system-ui, sans-serif;
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -.02em;
    color: #fff;
    line-height: 1.05;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.acts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.act {
    position: relative;
    padding-top: 22px;
    border-top: 1.5px solid var(--ink-text);
}
.act .ac {
    font-family: "Onest", system-ui, sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--berry-ink);
}
.act h3 {
    font-family: "Onest", system-ui, sans-serif;
    font-size: 19px;
    margin: 11px 0 9px;
    font-weight: 600;
}
.act p {
    font-size: 14.5px;
    color: var(--light-muted);
}
.ai-note {
    margin-top: 50px;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 14px;
    color: var(--ink-text);
}
.ai-note .d {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--glow);
    box-shadow: 0 0 8px var(--glow);
}
.occ-h {
    margin-top: 64px;
    color: var(--berry-ink);
}
.occ {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.occ span {
    font-size: 15px;
    font-weight: 500;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    transition: .16s var(--ease);
}
.occ span:hover {
    border-color: var(--berry-ink);
    transform: translateY(-1px);
}
.occ span i {
    color: var(--berry-ink);
    font-style: normal;
}

/* CTA-band (тёмная сцена между кулисами и футером) */
.cta {
    position: relative;
    background: var(--ink);
    color: var(--paper-text);
    overflow: hidden;
    padding: 96px 0 100px;
    text-align: center;
}
.cta .beam2 {
    position: absolute;
    top: -30%;
    left: 50%;
    width: 50%;
    height: 120%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(244, 184, 96, .22), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}
.cta .wrap {
    position: relative;
    z-index: 2;
}
.cta h2 {
    font-family: "Unbounded", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.08;
    font-size: clamp(27px, 4.6vw, 50px);
}
.cta h2 em {
    font-style: normal;
    color: var(--glow);
}
.cta p {
    margin: 16px 0 30px;
    color: var(--paper-muted);
    font-size: 17px;
}

/* ---------- 19. Mobile ---------------------------------------- */

@media (max-width: 880px) {
    .two-col, .dash-cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .stat-row {
        grid-template-columns: 1fr;
    }
    .two {
        grid-template-columns: 1fr;
    }
    .countdown {
        text-align: left;
    }
    .nav-links a:not(.nav-cta) {
        display: none;
    }
    .page {
        padding: 90px 0 60px;
    }
    .hero {
        padding: 110px 0 56px;
        min-height: auto;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero .lead {
        max-width: none;
    }
    .stage {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
    .bs-head {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .cover-teaser {
        max-width: 340px;
    }
    .acts {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .scrollcue {
        display: none;
    }
}

/* ---------- 20. reduced-motion / no-JS / a11y -------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    #beam {
        transform: translateX(-50%) !important;
        opacity: 1 !important;
    }
    .sr {
        opacity: 1 !important;
        transform: none !important;
    }
    .mote {
        display: none;
    }
    .cursor-glow {
        display: none;
    }
    .preload .anim {
        opacity: 1;
        transform: none;
    }
}
