/* ============================================================
   Daimo — portal.css: общая дизайн-система страниц портала (пакет №2)
   Источник паттернов — собранная главная /ru/b/ (тёмная).
   Палитра тёмной темы = регистр «Ночь» (brand-book-v2 §3):
   фон #050814 · панели #0B1231 · линии #17204A · текст #B9C0D6.
   Светлая тема — класс .theme-light на <html>, без перевёрстки.
   ============================================================ */

/* ============================================================
   ЗНАК DAIMO — КАНОНИЧЕСКОЕ ПРАВИЛО (повторяющаяся ошибка, НЕ НАРУШАТЬ):
   точка-бусина стоит ВСЕГДА строго над стойкой буквы I —
   никогда не по геометрическому центру слова и не отдельным
   элементом над словом. Разметка:
     <div class="daimo-mark">DA<span class="i">I<span class="bead"></span></span>MO</div>
   Классы ниже. ВАЖНО: внутри .i обнулены ОБА наследуемых свойства,
   искажающих коробку буквы: letter-spacing (хвостовой трекинг) и
   text-indent (inline-block — свой блок, унаследованный indent
   сдвигает глиф вправо внутри коробки → точка уезжает влево).
   Интервал перед M возвращает margin-right.
   Коробка span тогда = ровно глиф I → left:50% = центр буквы.
   ============================================================ */
.daimo-mark { font-family: 'Unbounded', sans-serif; font-weight: 900; color: #fff; letter-spacing: 0.18em; text-indent: 0.18em; line-height: 1; }
.daimo-mark .i { position: relative; display: inline-block; letter-spacing: 0; text-indent: 0; margin-right: 0.18em; }
.daimo-mark .bead { position: absolute; left: 50%; top: -0.5em; transform: translateX(-50%); width: 0.17em; height: 0.17em; border-radius: 50%; background: var(--fire, #FFC700); box-shadow: 0 0 0.45em 0.12em rgba(255,199,0,.5); }
/* опциональное мягкое белое свечение знака: class="daimo-mark daimo-glow" */
.daimo-glow { animation: daimoBreathe 5.5s ease-in-out infinite; }
@keyframes daimoBreathe {
  0%, 100% { text-shadow: 0 0 14px rgba(255,255,255,.18), 0 0 40px rgba(255,255,255,.08); }
  50%      { text-shadow: 0 0 24px rgba(255,255,255,.45), 0 0 68px rgba(255,255,255,.2); }
}
@media (prefers-reduced-motion: reduce) { .daimo-glow { animation: none; text-shadow: 0 0 18px rgba(255,255,255,.3); } }

/* ---------- шрифты: только self-hosted woff2 ---------- */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/unbounded-var-cyrillic.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: 300 900;
  font-display: swap;
  src: url('/assets/fonts/unbounded-var-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/golos-text-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/golos-text-var-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- темы ---------- */
:root {
  --bg: #050814;
  --panel: #0B1231;
  --line: #17204A;
  --text: #E8EAF2;
  --muted: #B9C0D6;
  --dim: #4A5578;
  --electric: #0038FF;
  --el-text: #4D7CFF;   /* электрик для мелкого текста на ночном фоне (AA) */
  --fire: #FFD500;
  --on-accent: #FFFFFF;
  --bead-ahead: #17204A;
}
.theme-light {
  --bg: #FFFFFF;
  --panel: #FFFFFF;
  --line: #E0DCD2;
  --text: #0A0A0A;
  --muted: #3C3C3C;
  --dim: #777777;
  --el-text: #0038FF;
  --bead-ahead: #DAD2C2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
p + p { margin-top: 1em; }

/* ---------- навигация ---------- */
nav.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; gap: 20px; align-items: center; padding: 14px 24px; overflow-x: auto; white-space: nowrap; }
nav.top .logo { font-family: 'Unbounded'; font-weight: 900; font-size: 15px; color: var(--text); margin-right: 8px; text-decoration: none; letter-spacing: 0.005em; }
nav.top a { font-size: 13px; color: var(--muted); text-decoration: none; }
nav.top a:hover { color: var(--fire); }
nav.top .nav-cta { color: var(--fire); font-weight: 600; margin-left: auto; }

/* ---------- обложка: компактная электрик-лента (паттерн /ru/b) ---------- */
.cover { background: var(--electric); padding: 76px 0 60px; }
.cover .kicker { font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fire); font-weight: 600; margin-bottom: 18px; }
.cover h1 { font-family: 'Unbounded'; font-weight: 900; font-size: clamp(30px, 5.5vw, 64px); color: #fff; text-transform: uppercase; letter-spacing: 0.005em; line-height: 1.1; max-width: 20ch; }
.cover h1 em { font-style: normal; color: var(--fire); }
.cover .sub { margin-top: 20px; font-size: clamp(16px, 2vw, 20px); font-weight: 500; color: rgba(255,255,255,0.9); max-width: 52ch; }

/* ---------- секции ---------- */
section { border-top: 1px solid var(--line); padding: 72px 0; }
.num { font-family: 'Unbounded'; font-weight: 400; font-size: 13px; color: var(--el-text); letter-spacing: 0.14em; margin-bottom: 10px; text-transform: uppercase; }
h2 { font-family: 'Unbounded'; font-weight: 700; font-size: clamp(21px, 2.8vw, 30px); text-transform: uppercase; margin-bottom: 14px; line-height: 1.15; color: var(--text); }
h2 em { font-style: normal; color: var(--fire); }
h3 { font-family: 'Unbounded'; font-weight: 700; font-size: clamp(15px, 1.9vw, 18px); color: var(--text); margin: 40px 0 12px; text-transform: uppercase; }
.lead { color: var(--muted); max-width: 700px; font-size: 16px; }
.lead b { color: var(--text); }
.prose { max-width: 700px; color: var(--muted); }
.prose b { color: var(--text); }
.caption { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 34px 0 12px; }

.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } .cards2 { grid-template-columns: 1fr; } .cards4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards4 { grid-template-columns: 1fr; } }

.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px 24px 22px; }
.tile h4 { font-family: 'Unbounded'; font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--text); }
.tile h4 span { color: var(--fire); }
.tile p { font-size: 14px; color: var(--muted); }
.tile p b { color: var(--text); }
.tile .g-num { font-family: 'Unbounded'; font-weight: 900; font-size: 34px; color: var(--el-text); line-height: 1; margin-bottom: 12px; }
.tile.accent { background: var(--electric); border-color: var(--electric); }
.tile.accent h4, .tile.accent p b { color: #fff; }
.tile.accent h4 span { color: var(--fire); }
.tile.accent p { color: rgba(255,255,255,0.85); }

/* раскрывашка «углубиться» внутри карточки */
.tile details { margin-top: 12px; }
.tile details summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--fire); border-bottom: 1px solid color-mix(in srgb, var(--fire) 50%, transparent); display: inline-block; padding-bottom: 1px; }
.tile details summary::-webkit-details-marker { display: none; }
.tile details p { margin-top: 10px; font-size: 13.5px; color: var(--dim); }

/* ---------- плейсхолдер статистики: НЕ финальные данные ---------- */
.stat-slot { display: inline-block; border: 1px dashed var(--dim); border-radius: 8px; padding: 4px 12px; font-size: 13px; color: var(--dim); margin: 4px 8px 4px 0; }

/* ---------- видео-слот 16:9 ---------- */
.video-slot { position: relative; aspect-ratio: 16 / 9; background: var(--panel); border: 1px solid var(--line); color: var(--text); display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 16px; }
.video-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-quote { font-family: 'Unbounded'; font-weight: 700; font-size: clamp(16px, 2.4vw, 26px); line-height: 1.35; padding: 6%; max-width: 26ch; }
.video-quote em { font-style: normal; color: var(--fire); }
.video-label { position: absolute; left: 6%; bottom: 7%; font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- нить бусин — разделитель ---------- */
.thread { height: 4px; max-width: 1032px; margin: 0 auto; background-image: radial-gradient(circle at 2px 2px, var(--bead-ahead) 2px, transparent 2.6px); background-size: 16px 4px; background-repeat: repeat-x; position: relative; }
.thread::after { content: ''; position: absolute; left: 50%; top: 0; width: 4px; height: 4px; background: var(--fire); border-radius: 50%; }

/* ---------- таймлайн (дорога, день участника) ---------- */
.tl { display: flex; flex-direction: column; max-width: 760px; }
.tl .step { display: grid; grid-template-columns: 18px 1fr; gap: 20px; padding-bottom: 30px; }
.tl .step:last-child { padding-bottom: 0; }
.tl .dot-col { display: flex; flex-direction: column; align-items: center; }
.tl .tdot { width: 11px; height: 11px; border-radius: 50%; background: var(--fire); margin-top: 7px; flex: none; }
.tl .tdot.el { background: var(--electric); }
.tl .tline { width: 1px; flex: 1; background: var(--line); margin-top: 6px; }
.tl .step:last-child .tline { display: none; }
.tl h4 { font-family: 'Unbounded'; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--text); text-transform: uppercase; }
.tl p { margin: 0; font-size: 15px; color: var(--muted); max-width: 620px; }

/* ---------- кнопки ---------- */
.btn-fire { display: inline-block; font-family: 'Golos Text', sans-serif; font-weight: 700; font-size: 15.5px; color: #0A0A0A; background: var(--fire); border: none; border-radius: 10px; padding: 15px 30px; cursor: pointer; text-decoration: none; transition: transform .12s ease; }
.btn-fire:hover { transform: translateY(-2px); }
.btn-ghost { display: inline-block; font-weight: 600; font-size: 15px; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 14px 28px; text-decoration: none; }
.btn-ghost:hover { border-color: var(--fire); color: var(--fire); }

/* ---------- faq / details ---------- */
.faq-list { max-width: 760px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { font-weight: 600; font-size: 16px; color: var(--text); padding: 18px 36px 18px 0; cursor: pointer; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: 'Unbounded'; font-weight: 700; font-size: 18px; color: var(--fire); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding: 0 0 20px; max-width: 660px; font-size: 14.5px; color: var(--muted); }

/* ---------- финальный CTA ---------- */
.final { background: var(--electric); border-top: none; padding: 80px 0; }
.final h2, .final .sub { color: #fff; }
.final h2 em { color: var(--fire); }
.final .sub { font-size: clamp(16px, 2vw, 20px); font-weight: 500; margin-bottom: 28px; }

/* ---------- ведущий ---------- */
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 30px; align-items: start; }
@media (max-width: 860px) { .founder-grid { grid-template-columns: 1fr; } }
.founder-grid img { width: 100%; height: auto; border-radius: 16px; }
.edu-line { margin-top: 26px; font-size: 13.5px; color: var(--dim); max-width: 700px; }

/* ---------- слоты-заглушки (календарь, юртексты) ---------- */
.slot { border: 1px dashed var(--dim); border-radius: 14px; padding: 34px 28px; color: var(--dim); font-size: 15px; max-width: 760px; }
.slot b { color: var(--muted); }

/* ---------- футер (один-в-один с главной) ---------- */
footer { border-top: 1px solid var(--line); padding: 46px 0 80px; font-size: 14px; }
footer .f-logo { font-family: 'Unbounded'; font-weight: 900; font-size: 15px; color: var(--text); margin-bottom: 26px; letter-spacing: 0.005em; }
footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { color: var(--fire); border-bottom-color: var(--fire); }
footer .f-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 22px; }
footer .f-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--dim); font-size: 13.5px; }
footer .f-meta a { color: var(--dim); }
