/* ==== ТОКЕНЫ. Фирменный синий взят из векторного логотипа ==== */
  :root {
    --paper: #FFFFFF;
    --paper-2: #F3F5FB;
    --ink: #14183A;
    --ink-2: #5B6180;
    --brand: #102A83;        /* синий логотипа */
    --brand-ink: #FFFFFF;
    --brand-soft: #E4E9F8;   /* подложки */
    --band: #102A83;         /* синие полосы: цифры, история */
    --contour: #B9C5EA;      /* изолинии на фоне */
    --line: #D6DCEE;
    --gold: #C9A455;
    --todo-bg: #FFF1A8; --todo-ink: #5A4600;
    --card: #FFFFFF;
    --ok: #1E7F4F;
    --display: "Rubik", "Arial", sans-serif;
    --body: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --paper: #0E1330; --paper-2: #151B3F; --ink: #EDEFF9; --ink-2: #A7ADCC;
      --brand: #8FA8F2; --brand-ink: #0E1330; --brand-soft: #1C2452; --band: #1B2560; --contour: #2A3468;
      --line: #2C3466; --gold: #D9B86B; --todo-bg: #4A3D00; --todo-ink: #FFE680; --card: #151B3F; --ok: #5FCF8F;
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #0E1330; --paper-2: #151B3F; --ink: #EDEFF9; --ink-2: #A7ADCC;
    --brand: #8FA8F2; --brand-ink: #0E1330; --brand-soft: #1C2452; --band: #1B2560; --contour: #2A3468;
    --line: #2C3466; --gold: #D9B86B; --todo-bg: #4A3D00; --todo-ink: #FFE680; --card: #151B3F; --ok: #5FCF8F;
  }

  * { box-sizing: border-box; }
  body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
  a { color: inherit; }
  h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
  h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--brand); }
  h3 { font-size: 19px; font-weight: 700; }
  p { margin: 0; }
  .wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; position: relative; }
  section { padding-block: 72px; position: relative; }
  .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
  .lead { font-size: 20px; max-width: 60ch; }
  .muted { color: var(--ink-2); }
  .todo { background: var(--todo-bg); color: var(--todo-ink); border-radius: 4px; padding: 0 6px; font-weight: 600; }
  .todo::before { content: "ЗАПОЛНИТЬ: "; font-size: 11px; letter-spacing: 0.08em; }
  .btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 16px; background: var(--brand); color: var(--brand-ink); padding: 15px 28px; border-radius: 6px; text-decoration: none; border: 2px solid var(--brand); cursor: pointer; line-height: 1.2; }
  .btn.ghost { background: transparent; color: var(--brand); }
  .btn.small { padding: 9px 16px; font-size: 14px; }
  .btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
  [hidden] { display: none !important; }

  .logo { color: var(--brand); display: block; }
  #mv-mark path, #mv-rose path { fill: currentColor; fill-rule: evenodd; }
  #mv-mark .halo { fill: var(--paper); }

  .ticks { display: flex; gap: 14px; align-items: flex-end; height: 14px; margin-bottom: 18px; }
  .ticks i { width: 2px; height: 8px; background: var(--brand); opacity: .55; }
  .ticks i:nth-child(5n+1) { height: 14px; opacity: 1; }

  header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
  header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 17px; color: var(--brand); }
  .brand svg { width: 34px; height: 42px; }
  nav.menu { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
  nav.menu a { text-decoration: none; color: var(--ink-2); }
  nav.menu a:hover { color: var(--brand); }
  @media (max-width: 760px) { nav.menu { display: none; } }

  .hero { padding-block: 56px 64px; overflow: hidden; background: var(--paper); }
  .hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
  .hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
  .hero .logo { width: 100%; max-width: 520px; height: auto; }
  .hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; color: var(--brand); }
  .hero .sub { margin-top: 20px; font-size: 20px; max-width: 40ch; }
  .hero .cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
  .hero .meta { margin-top: 24px; font-size: 15px; color: var(--ink-2); }
  @media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 24px; } .hero .logo { max-width: 340px; } }

  .facts { background: var(--band); color: #fff; }
  .facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-block: 30px; }
  .fact b { font-family: var(--display); font-size: 40px; font-weight: 800; display: block; line-height: 1; font-variant-numeric: tabular-nums; }
  .fact small { display: block; margin-top: 8px; font-size: 14px; opacity: .85; max-width: 28ch; }
  @media (max-width: 600px) { .facts .wrap { grid-template-columns: 1fr; gap: 18px; } }

  .about .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
  .about .col p + p { margin-top: 16px; }
  @media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; gap: 24px; } }

  .day { background: var(--paper-2); }
  .day .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
  .step { background: var(--card); padding: 24px; border-radius: 8px; border: 1px solid var(--line); }
  .step .k { font-family: var(--display); color: var(--brand); font-size: 12px; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.14em; }
  .step p { color: var(--ink-2); margin-top: 8px; font-size: 15px; }
  @media (max-width: 860px) { .day .steps { grid-template-columns: 1fr; } }

  .studios { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 32px; }
  .studio { border-top: 3px solid var(--brand); padding-top: 16px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
  .studio h3 { font-size: 22px; color: var(--brand); }
  .studio p { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
  .studio .out { font-size: 13px; font-weight: 600; }
  @media (max-width: 960px) { .studios { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 600px) { .studios { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 400px) { .studios { grid-template-columns: 1fr; } }

  .mentors { background: var(--paper-2); }
  .mentors .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .mentors ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
  .mentors li { padding-left: 22px; position: relative; }
  .mentors li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 2px; background: var(--brand); }
  .slot { border: 2px dashed var(--line); border-radius: 8px; padding: 22px; color: var(--ink-2); font-size: 15px; background: var(--card); white-space: pre-line; }
  @media (max-width: 860px) { .mentors .wrap { grid-template-columns: 1fr; gap: 24px; } }

  .history { background: var(--band); color: #fff; overflow: hidden; }
  .history h2, .history .eyebrow { color: #fff; }
  .history .eyebrow { opacity: .7; }
  .history .ticks i { background: #fff; }
  .history .rose { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 420px; height: auto; color: #fff; opacity: .08; pointer-events: none; }
  .tl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; position: relative; }
  .tl div { border-top: 2px solid rgba(255,255,255,.35); padding-top: 14px; }
  .tl b { font-family: var(--display); font-size: 28px; font-weight: 800; display: block; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
  .tl p { font-size: 15px; opacity: .85; }
  @media (max-width: 860px) { .tl { grid-template-columns: 1fr 1fr; } .history .rose { display: none; } }
  @media (max-width: 460px) { .tl { grid-template-columns: 1fr; } }

  .apply .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 8px; }
  .apply ol { margin: 20px 0 0; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
  .apply ol li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
  .apply ol li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 800; color: var(--brand); font-size: 20px; line-height: 1.3; }
  .box { background: var(--brand-soft); border-radius: 8px; padding: 26px; }
  .box h3 { color: var(--brand); }
  .box dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; font-size: 15px; }
  .box dt { color: var(--ink-2); }
  .box dd { margin: 0; font-weight: 500; }
  @media (max-width: 860px) { .apply .grid { grid-template-columns: 1fr; gap: 24px; } .box dl { grid-template-columns: 1fr; gap: 4px 0; } .box dt { margin-top: 8px; } }

  .org { border-top: 1px solid var(--line); }
  .org .row { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 18px; align-items: baseline; }
  .org .row div { font-weight: 600; }
  .org .row small { display: block; color: var(--ink-2); font-weight: 400; font-size: 14px; }
  .org a { color: var(--brand); }
  footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 14px; color: var(--ink-2); }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
