    /* Экран входа «Круг». Дизайн-код «Покрытия»: грунт ведёт действие,
       хард — право и документ. Цепочка метода заканчивается входом в кабинет:
       всё, что мы делаем, делается ради правовой защиты.
       Стили инлайном: до входа отдаётся только этот файл и /media/img/login-*. */
    :root {
      --clay: #D2662F;
      --clay-light: #E5834F;
      --clay-deep: #A8451D;
      --clay-ink: #8F3A16;
      --hard: #0037FF;
      --grass: #35693A;
      --graphite: #14120F;
      --sand: #09090a;
      --ink: #ededed;
      --ink-muted: #8e8e93;
      --ink-faint: #5c5c61;
      --line: rgba(255, 255, 255, 0.09);
      --border-light: rgba(255, 255, 255, 0.18);
      --calm: #7fd6c2;
      --display: 'Manrope', system-ui, -apple-system, sans-serif;
      --text: 'Golos Text', system-ui, -apple-system, sans-serif;
      --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
      --pad: clamp(20px, 4vw, 56px);
      --shell: 1400px;   /* потолок композиции: на 4K она не расползается */
      --gutter: max(0px, (100vw - 1400px) / 2);  /* поле между колонкой и краем окна */
      --cycle: 20s;        /* полный круг огонька: лента + орбита */
      --start-deg: 270deg; /* угол стыковки ленты с кольцом, уточняется скриптом */
    }
    * { box-sizing: border-box; }
    html, body { margin: 0; }
    body {
      min-height: 100vh;
      background: var(--sand);
      background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
      background-size: 48px 48px;
      color: var(--ink);
      font-family: var(--text);
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
    }
    .mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.2em; font-size: 10px; }
    .shell { width: 100%; max-width: var(--shell); margin: 0 auto; }

    /* ── шапка ───────────────────────────────────────────────── */
    .bar { border-bottom: 1px solid var(--line); }
    .bar .shell {
      display: flex; align-items: center; justify-content: space-between;
      gap: 24px; padding: 24px var(--pad);
    }
    .lockup { display: flex; align-items: center; gap: 13px; }
    .mark {
      width: 38px; height: 38px; border-radius: 19px 19px 19px 4px;
      background: var(--clay); color: #1A1512; display: grid; place-items: center;
      font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: -0.01em;
    }
    .names { display: flex; flex-direction: column; gap: 3px; }
    .names b { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
    .names .mono { color: var(--ink-faint); }
    .nav { display: flex; align-items: center; gap: 26px; }
    .nav a.txt { font-size: 14px; color: var(--ink-muted); text-decoration: none; }
    .nav a.txt:hover { color: var(--clay-ink); }
    .site {
      display: inline-flex; align-items: center; height: 38px; padding: 0 20px;
      border: 1px solid var(--border-light); border-radius: 999px;
      font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--ink); text-decoration: none;
      transition: color .15s, border-color .15s, background .15s;
    }
    .site:hover { color: var(--hard); border-color: var(--hard); background: rgba(255,255,255,.06); }

    /* ── сцена ───────────────────────────────────────────────── */
    .stage { flex: 1; display: flex; align-items: center; padding: clamp(24px, 4vh, 56px) 0; }
    .stage .shell { position: relative; padding: 0 var(--pad); }

    /* круг привязан к колонке контента, а не к краю экрана */
    .orbit {
      --ring: clamp(360px, 34vw, 560px);
      position: absolute; top: 50%; right: calc(28px - var(--gutter));
      transform: translateY(-50%);
      width: var(--ring); height: var(--ring);
      border-radius: 50%; border: 1.5px solid var(--clay);
      z-index: 1; pointer-events: none;
      animation: ring 1.1s .1s cubic-bezier(.22,.61,.36,1) both;
    }
    .orbit img {
      position: absolute; inset: 18px;
      width: calc(100% - 36px); height: calc(100% - 36px);
      border-radius: 50%; object-fit: cover; object-position: 62% 44%;
      filter: grayscale(1) contrast(1.05); display: block;
      animation: bloom 1.3s .2s cubic-bezier(.22,.61,.36,1) both;
    }
    @keyframes ring { from { opacity: 0; transform: translateY(-50%) scale(.94) rotate(-4deg); } to { opacity: 1; transform: translateY(-50%); } }
    @keyframes bloom { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

    /* события, которые уже внутри системы: идут по кольцу своим ходом */
    .sat { position: absolute; inset: 0; z-index: 2; animation: satrun 34s linear infinite; }
    .sat::before {
      content: ""; position: absolute; top: -4px; left: 50%;
      width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
      background: var(--hard); box-shadow: 0 0 0 4px rgba(0, 55, 255, .13);
    }
    .sat.b { animation-duration: 53s; animation-direction: reverse; }
    .sat.b::before { width: 6px; height: 6px; margin-left: -3px; top: -3px; box-shadow: 0 0 0 4px rgba(0, 55, 255, .10); }
    .sat.c { animation-duration: 41s; }
    .sat.c::before { width: 6px; height: 6px; margin-left: -3px; top: -3px; background: var(--clay); box-shadow: 0 0 0 4px rgba(210, 102, 47, .14); }
    @keyframes satrun {
      from { transform: rotate(var(--a, 0deg)); }
      to   { transform: rotate(calc(var(--a, 0deg) + 360deg)); }
    }

    .badge {
      position: absolute; top: 21%; left: -46px; z-index: 4;
      display: inline-flex; align-items: baseline; gap: 10px;
      height: 46px; padding: 0 22px; border-radius: 999px;
      background: var(--clay); color: #1A1512; white-space: nowrap;
      animation: rise .5s .9s ease both;
    }
    .badge b { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
    .badge span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

    /* ── заголовок ───────────────────────────────────────────── */
    .head { position: relative; z-index: 2; max-width: min(720px, 56%); }
    .eyebrow { margin: 0 0 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--clay-ink); }
    h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }

    /* ── цепочка метода: лента — право, точки — шаги, финал — защита ── */
    .flow { position: relative; z-index: 3; margin-top: clamp(30px, 5vh, 54px); width: min(880px, 62%); }
    .chain { position: relative; width: var(--chain-w, calc(80% + 7px)); }
    .nodes b {
      position: absolute; top: -21px; left: 0;
      font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
      font-weight: 500; color: var(--ink-faint);
    }
    /* стрелки направления между шагами */
    .rail i.tick {
      position: absolute; top: -2px; width: 6px; height: 6px;
      border-top: 1.4px solid rgba(255, 255, 255, .28);
      border-right: 1.4px solid rgba(255, 255, 255, .28);
      transform: rotate(45deg);
    }
    .rail {
      position: absolute; left: 7px; right: 0; top: 7px; height: 2px;
      background: rgba(255, 255, 255, .12); border-radius: 2px;
    }
    .rail::before {
      content: ""; position: absolute; inset: 0; background: var(--hard);
      transform: scaleX(0); transform-origin: left;
      animation: draw 1.8s .4s cubic-bezier(.22,.61,.36,1) forwards;
    }
    /* бегущий огонёк: белое ядро в тёплом ореоле */
    .spark {
      position: absolute; top: 50%; left: 0; width: 8px; height: 8px;
      border-radius: 50%; background: #FFFFFF;
      transform: translate(-50%, -50%);
      box-shadow:
        0 0 0 3px rgba(210, 102, 47, .38),
        0 0 10px 3px rgba(229, 131, 79, .75),
        0 0 26px 9px rgba(210, 102, 47, .30);
      animation: travel var(--cycle) 2.1s cubic-bezier(.42, 0, .86, 1) infinite,
                 sparkfade var(--cycle) 2.1s linear infinite;
    }
    @keyframes draw { to { transform: scaleX(1); } }
    @keyframes travel {
      0%    { left: 0%; }
      33%   { left: 100%; }
      100%  { left: 100%; }
    }
    @keyframes sparkfade {
      0%    { opacity: 0; }
      4%    { opacity: 1; }
      33%   { opacity: 1; }
      35%   { opacity: 0; }
      100%  { opacity: 0; }
    }
    /* огонёк перешёл на кольцо и идёт по нему до конца цикла */
    .runner { position: absolute; inset: 0; z-index: 3; animation: orbitrun var(--cycle) 2.1s linear infinite; }
    .runner::before {
      content: ""; position: absolute; top: -5px; left: 50%;
      width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
      background: #FFFFFF; opacity: 0;
      box-shadow:
        0 0 0 3px rgba(210, 102, 47, .38),
        0 0 10px 3px rgba(229, 131, 79, .75),
        0 0 26px 9px rgba(210, 102, 47, .30);
      animation: runnerfade var(--cycle) 2.1s linear infinite;
    }
    @keyframes orbitrun {
      0%, 34%  { transform: rotate(var(--start-deg)); }
      100%     { transform: rotate(calc(var(--start-deg) + 360deg)); }
    }
    @keyframes runnerfade {
      0%, 33%  { opacity: 0; }
      35%      { opacity: 1; }
      96%      { opacity: 1; }
      100%     { opacity: 0; }
    }
    .nodes { list-style: none; margin: 0; padding: 0; position: relative; height: 46px; }
    .chain { position: relative; }
    .nodes li {
      position: absolute; top: 0; left: var(--x); width: max-content;
      display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left;
      opacity: 0; transform: translateY(6px);
      animation: rise .5s both; animation-delay: calc(.5s + var(--i) * .16s);
    }
    @keyframes rise { to { opacity: 1; transform: none; } }
    .dot {
      width: 15px; height: 15px; border-radius: 50%;
      background: var(--sand); border: 2px solid rgba(255,255,255,.2);
      animation: lit .4s calc(.7s + var(--i) * .16s) ease both, pulse var(--cycle) calc(2.1s + var(--t)) linear infinite;
    }
    @keyframes lit { to { border-color: var(--clay); background: var(--clay); } }
    .dot.hard { animation-name: lit-hard, pulse-hard; }
    /* правовая защита — итог цепочки: бирюзовый «спокойствие», как на сайте */
    .dot.calm { animation-name: lit-calm, pulse; }
    @keyframes lit-calm { to { border-color: var(--calm); background: var(--calm); } }
    @keyframes lit-hard { to { border-color: var(--hard); background: var(--hard); } }
    @keyframes pulse-hard {
      0%, 5%, 100% { box-shadow: 0 0 0 0 rgba(0,55,255,0); }
      0.9% { box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 14px 5px rgba(120,150,255,.55); }
      2.6% { box-shadow: 0 0 0 7px rgba(0,55,255,.16); }
    }
    @keyframes pulse {
      0%, 5%, 100% { box-shadow: 0 0 0 0 rgba(210,102,47,0); }
      0.9% { box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 14px 5px rgba(229,131,79,.55); }
      2.6% { box-shadow: 0 0 0 7px rgba(210,102,47,.16); }
    }
    .nodes span { font-weight: 500; font-size: clamp(11px, .95vw, 13px); line-height: 1.25; color: var(--ink-muted); }

    /* ── вход: под лентой, без плашки ─────────────────────────── */
    .door { margin-top: clamp(26px, 4vh, 40px); }
    form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; max-width: 620px; }
    form label { display: grid; gap: 6px; font: 600 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
    .door-k { margin: 0 0 12px; font: 600 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
    .door-k i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--calm); box-shadow: 0 0 8px var(--calm); margin-right: 8px; vertical-align: 1px; }
    .forgot { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0 0; font-size: 13px; }
    .forgot a { color: var(--ink-muted); text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.25); }
    .forgot a:hover { color: var(--ink); }
    .door-ok { margin: 0 0 12px; font-size: 13.5px; color: var(--calm); max-width: 560px; }
    .door-note { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-muted); max-width: 560px; line-height: 1.5; }
    form.one { grid-template-columns: minmax(0, 1fr) auto; max-width: 460px; }
    form.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
    @media (max-width: 640px) { form.one, form.two { grid-template-columns: minmax(0, 1fr); } }
    @media (max-width: 640px) { form { grid-template-columns: minmax(0, 1fr); } }
    input {
      width: 100%; height: 46px; padding: 0 18px;
      font: inherit; font-size: 15px; color: var(--ink); background: #141417;
      border: 1px solid var(--border-light); border-radius: 999px;
      transition: border-color .15s, box-shadow .15s;
    }
    input::placeholder { color: var(--ink-faint); }
    input:focus { outline: 0; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(210,102,47,.20); }
    button {
      height: 46px; padding: 0 30px; font: inherit; font-weight: 600; font-size: 15px;
      color: #1A1512; background: var(--clay); border: 0; border-radius: 999px;
      cursor: pointer; transition: background .15s;
    }
    button:hover { background: var(--clay-light); }
    button:active { background: var(--clay-deep); color: var(--sand); }
    .err { margin: 10px 0 0; font-size: 13px; font-weight: 500; color: var(--clay-deep); }
    .err:empty { display: none; }

    .foot { border-top: 1px solid var(--line); }
    .foot a { color: inherit; }
    /* события, которые уже внутри системы: идут по кольцу своим ходом */
    .sat { position: absolute; inset: 0; z-index: 2; animation: satrun 34s linear infinite; }
    .sat::before {
      content: ""; position: absolute; top: -4px; left: 50%;
      width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
      background: var(--hard); box-shadow: 0 0 0 4px rgba(0, 55, 255, .13);
    }
    .sat.b { animation-duration: 53s; animation-direction: reverse; }
    .sat.b::before { width: 6px; height: 6px; margin-left: -3px; top: -3px; box-shadow: 0 0 0 4px rgba(0, 55, 255, .10); }
    .sat.c { animation-duration: 41s; }
    .sat.c::before { width: 6px; height: 6px; margin-left: -3px; top: -3px; background: var(--clay); box-shadow: 0 0 0 4px rgba(210, 102, 47, .14); }
    @keyframes satrun {
      from { transform: rotate(var(--a, 0deg)); }
      to   { transform: rotate(calc(var(--a, 0deg) + 360deg)); }
    }

    .foot .shell { padding: 18px var(--pad); font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }

    @media (max-width: 1180px) {
      .orbit { --ring: clamp(300px, 42vw, 440px); right: calc(20px - var(--gutter)); opacity: .6; }
    .badge { display: none; }
      .head { max-width: min(680px, 64%); }
      .flow { width: 72%; }
    }
    @media (max-width: 860px) {
      /* На телефоне снимок встаёт над заголовком и уходит за правый край:
         круг остаётся, но не спорит с текстом за место. */
      .orbit {
        position: relative; inset: auto;
        display: block; opacity: 1;
        width: 70vw; height: 70vw;
        margin: 0 -14vw 18px auto;
        /* своя анимация: в настольной кольцо держится на translateY(-50%),
           и после неё круг остался бы поднятым над шапкой */
        animation: ring-in 1s .1s cubic-bezier(.22,.61,.36,1) both;
      }
      @keyframes ring-in {
        from { opacity: 0; transform: scale(.94) rotate(-4deg); }
        to   { opacity: 1; transform: none; }
      }
      .orbit .sat, .orbit .runner, .badge { display: none; }
      .head { max-width: none; }
      .flow { width: 100%; }
      .chain { width: 100%; }

      /* Цепочка становится списком: шаг в строку, номер справа.
         Пять колонок на узком экране не читаются. */
      .nodes { position: static; height: auto; display: block; }
      .nodes::before {
        content: ""; position: absolute; left: 7px; top: 22px; bottom: 22px;
        width: 2px; background: rgba(255, 255, 255, .12);
      }
      .nodes li {
        position: static; width: auto;
        flex-direction: row; align-items: center; gap: 13px;
        padding: 11px 0; opacity: 1; transform: none;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
      }
      .nodes li:last-child { border-bottom: 0; }
      .dot { flex: none; order: 1; }
      .nodes span { order: 2; font-size: 15px; color: var(--ink); }
      .nodes b { position: static; order: 3; margin-left: auto; }
      .rail, .spark, .runner { display: none; }

      form { flex-wrap: wrap; }
      input { width: 100%; }
      button { width: 100%; }
      .nav a.txt { display: none; }
      /* содержимое выше экрана: центрирование по вертикали срезало бы верх */
      .stage { align-items: flex-start; padding: 18px 0 24px; }
      .flow { margin-top: 26px; }
    }
    /* Телефон: в Safari под интерфейсом остаётся около 745 px высоты.
       Заголовок, цепочка и вход должны помещаться без прокрутки. */
    @media (max-width: 520px) {
      .bar .shell { padding: 16px var(--pad); }
      .mark { width: 34px; height: 34px; font-size: 14px; }
      .names b { font-size: 14px; }
      .site { height: 34px; padding: 0 14px; font-size: 10px; }

      .stage { padding: 12px 0 18px; }
      /* круг по центру: он здесь не фон, а первое, что видно */
      .orbit { width: 50vw; height: 50vw; margin: 2px auto 18px; }

      .eyebrow { margin: 0 0 12px; font-size: 10px; letter-spacing: .16em; }
      h1 { font-size: clamp(26px, 7vw, 31px); }

      .flow { margin-top: 24px; }
      .nodes li { padding: 9px 0; gap: 12px; }
      .nodes span { font-size: 15px; }
      .dot { width: 14px; height: 14px; }
      .nodes::before { left: 6px; top: 18px; bottom: 18px; }

      .door { margin-top: 22px; }
      input, button { height: 48px; }
      .foot .shell { padding: 14px var(--pad); }
    }

    @media (prefers-reduced-motion: reduce) {
      .orbit, .orbit img, .nodes li, .badge { animation: none; opacity: 1; }
      .dot { animation: none; }
      .orbit { transform: translateY(-50%); }
      .nodes li { transform: none; }
      .spark, .runner, .sat { animation: none; }
      .spark, .runner { display: none; }
      .rail::before { transform: scaleX(1); animation: none; }
      .dot { animation: none; border-color: var(--clay); background: var(--clay); }
    }
    .log-note { margin: 10px 0 0; font-size: 12px; line-height: 1.4; opacity: .55; }
    .site { white-space: nowrap; }
    .mark-img { display: block; width: 36px; height: 36px; }
    @media (max-width: 520px) { .mark-img { width: 32px; height: 32px; } }
    @media (max-width: 520px) { .names .mono { display: none; } }
