@font-face{font-family:'Golos Text';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/golos-text-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:'Golos Text';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/golos-text-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+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:500;font-display:swap;src:url(fonts/golos-text-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:'Golos Text';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/golos-text-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+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:600;font-display:swap;src:url(fonts/golos-text-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:'Golos Text';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/golos-text-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+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:700;font-display:swap;src:url(fonts/golos-text-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:'Golos Text';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/golos-text-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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* GorinHub — страница входа. Токены — из ui/prototype/style.css. */
:root {
  --accent: #2f6feb;
  --accent-hover: #1f5ad1;
  --accent-soft: #e8f0fe;
  --accent-ink: #fff;
  --bg: #eceef1;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --line: #e1e4e8;
  --line-strong: #cfd4da;
  --text: #1d2228;
  --text-2: #4b5562;
  --text-3: #7a8494;
  --danger: #d1242f;
  --danger-soft: #fdecee;
  --ok: #1a8f4c;
  --ok-soft: #e6f4ec;
  --chrome: #15181d;
  --chrome-2: #1b1f25;
  --chrome-text: #c9d1db;
  --chrome-dim: #8b95a3;
  --font: 'Golos Text', 'Segoe UI', Roboto, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 180ms var(--ease-out);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent-soft: #1d2b44;
    --bg: #111418;
    --surface: #171a20;
    --surface-2: #1d2128;
    --line: #2c323b;
    --line-strong: #3a414c;
    --text: #e6e9ed;
    --text-2: #b4bcc6;
    --text-3: #87909c;
    --danger: #ff7b72;
    --danger-soft: #3a1d20;
    --ok: #7fd196;
    --ok-soft: #18321f;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(440px, 0.85fr);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------------- сцена ---------------- */
.stage {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1b1f25 0%, #15181d 55%, #111418 100%);
  color: var(--chrome-text);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 40px 56px 56px;
  isolation: isolate;
}
.stage-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}
.stage-glow {
  position: absolute; z-index: -2;
  width: 900px; height: 900px; left: 50%; top: 42%;
  margin: -450px 0 0 -450px;
  background:
    radial-gradient(closest-side at 40% 45%, rgba(47,111,235,.30), transparent 70%),
    radial-gradient(closest-side at 65% 60%, rgba(130,80,223,.16), transparent 70%);
  filter: blur(10px);
  animation: drift 22s var(--ease-io) infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(-40px, -20px) scale(1); }
  50%  { transform: translate(30px, 20px) scale(1.08); }
  100% { transform: translate(-10px, 35px) scale(.96); }
}

.stage-brand { display: flex; align-items: center; gap: 12px; font-size: 20px; letter-spacing: -.01em; color: #fff; }
.stage-brand .word { color: var(--chrome-text); font-weight: 500; }
.stage-brand .word b { color: #fff; font-weight: 700; }
.mark { width: 34px; height: 34px; color: var(--accent); }
.mark-box { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 900ms var(--ease-out) 150ms forwards; }
.mark-line { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: grow 520ms var(--ease-out) forwards; }
.mark-line.l1 { animation-delay: 650ms; }
.mark-line.l2 { animation-delay: 730ms; }
.mark-line.l3 { animation-delay: 810ms; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { to { transform: scaleX(1); } }

.flow {
  position: relative;
  align-self: center; justify-self: center;
  width: min(100%, 600px);
  aspect-ratio: 560 / 420;
  margin: 24px 0;
}
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rail { stroke: rgba(201,209,219,.16); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.pulse {
  stroke: #6b9bff; stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 16 100; stroke-dashoffset: 16;
  filter: drop-shadow(0 0 4px rgba(47,111,235,.9));
  opacity: 0;
  animation: travel 3.6s linear infinite;
}
.pulse.s1 { animation-delay: 1.2s; }
.pulse.s2 { animation-delay: 2.1s; }
.pulse.s3 { animation-delay: 1.65s; }
.pulse.s4 { animation-delay: 2.55s; }
@keyframes travel {
  0%   { stroke-dashoffset: 16; opacity: 0; }
  8%   { opacity: 1; }
  62%  { stroke-dashoffset: -84; opacity: 1; }
  70%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
.hub-halo { animation: breathe 3.6s var(--ease-io) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 0%, 100% { opacity: .65; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
.hub-ring { stroke: rgba(107,155,255,.55); stroke-width: 1.5; fill: none; transform-box: fill-box; transform-origin: center; opacity: 0; animation: ring 3.6s var(--ease-out) infinite; }
.hub-ring.r1 { animation-delay: 1.9s; }
.hub-ring.r2 { animation-delay: 3.7s; }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }

.hub {
  position: absolute; left: 50%; top: 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 20px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #232a35, #1a1f27);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 40px rgba(47,111,235,.35), inset 0 1px 0 rgba(255,255,255,.06);
  opacity: 0; transform: scale(.6);
  animation: pop 700ms var(--ease-out) 450ms forwards;
}
.hub svg { width: 38px; height: 38px; }
@keyframes pop { to { opacity: 1; transform: scale(1); } }

.src {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px 0 6px;
  border-radius: 10px;
  background: rgba(34,39,46,.92);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  font-size: 13px; font-weight: 500; color: #e6e9ed; white-space: nowrap;
}
.src-1 { left: 15.7%; top: 17.6%; }
.src-2 { left: 15.7%; top: 82.4%; }
.src-3 { left: 84.3%; top: 17.6%; }
.src-4 { left: 84.3%; top: 82.4%; }
.src-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(47,111,235,.16); color: #8ab4f8; }
.src-2 .src-ic { background: rgba(130,80,223,.18); color: #c4a8ff; }
.src-3 .src-ic { background: rgba(15,139,141,.2); color: #6fd6d8; }
.src-4 .src-ic { background: rgba(232,113,10,.18); color: #f6b860; }
.src-ic svg, .chip-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.chip {
  position: absolute; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 9px;
  border-radius: 12px;
  background: rgba(240,243,247,.97);
  color: #1d2228;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  white-space: nowrap;
}
.chip-a { top: 86%; }
.chip-b { top: 13%; }
.chip-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.chip-ic.ok { background: #e6f4ec; color: #1a8f4c; }
.chip-ic.cal { background: #e8f0fe; color: #2f6feb; }
.chip-t { display: grid; line-height: 1.25; }
.chip-t b { font-size: 13px; font-weight: 600; }
.chip-t small { font-size: 12px; color: #6b7480; }
@keyframes float { from { translate: 0 0; } to { translate: 0 -8px; } }

.stage-copy { max-width: 520px; }
.stage-copy h2 { margin: 0 0 12px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; color: #fff; text-wrap: balance; }
.stage-copy p { margin: 0; font-size: 15px; color: var(--chrome-dim); max-width: 440px; text-wrap: pretty; }

/* общий вход элементов */
.rise { opacity: 0; transform: translateY(10px); animation: rise 640ms var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 60ms + 120ms); }
.src.rise { transform: translate(-50%, calc(-50% + 10px)); animation-name: rise-c; }
.chip.rise { transform: translate(-50%, calc(-50% + 10px)); animation: rise-c 640ms var(--ease-out) calc(var(--d, 0) * 60ms + 120ms) forwards, float 6.5s var(--ease-io) 1.2s infinite alternate; }
.chip-b.rise { animation-duration: 640ms, 7.5s; animation-direction: normal, alternate-reverse; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes rise-c { to { opacity: 1; transform: translate(-50%, -50%); } }

/* ---------------- панель с формой ---------------- */
.panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px 48px;
  background: var(--surface);
}
.panel-top { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.mini-brand { display: none; align-items: center; gap: 10px; font-size: 18px; color: var(--accent); }
.mini-brand svg { width: 28px; height: 28px; }
.mini-brand span { color: var(--text-2); font-weight: 500; }
.mini-brand b { color: var(--text); font-weight: 700; }
.demo-badge { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }

.card { align-self: center; justify-self: center; width: 100%; max-width: 380px; display: grid; }
.step {
  grid-area: 1 / 1;
  display: grid; gap: 18px; align-content: start;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(28px);
  transition: opacity 220ms var(--ease-in), transform 220ms var(--ease-in), visibility 0s linear 220ms;
}
.step.is-left { transform: translateX(-28px); }
.step.is-active {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity 420ms var(--ease-out) 80ms, transform 520ms var(--ease-out) 80ms, visibility 0s;
}
.step-head { display: grid; gap: 6px; margin-bottom: 6px; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.sub { margin: 0; color: var(--text-3); font-size: 14px; text-wrap: pretty; }

.field { display: grid; gap: 6px; }
.label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.control {
  position: relative; display: flex; align-items: center;
  height: 46px; border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.control:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); }
.control:focus-within { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.control .lead { width: 18px; height: 18px; margin: 0 2px 0 13px; flex: none; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--t); }
.control:focus-within .lead { stroke: var(--accent); }
.control input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 12px 0 8px; font-size: 15px; }
.control input::placeholder { color: var(--text-3); }
.field.is-bad .control { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent); }
.reveal { flex: none; width: 40px; height: 40px; margin-right: 3px; border: 0; background: transparent; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: var(--text-3); transition: color var(--t), background var(--t); }
.reveal:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.reveal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reveal .i-eye-off { display: none; }
.reveal[aria-pressed="true"] .i-eye { display: none; }
.reveal[aria-pressed="true"] .i-eye-off { display: block; }
.caps { font-size: 12px; color: #b25e00; }

.remember { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; color: var(--text-2); font-size: 13px; }
.remember input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; width: 34px; height: 20px; flex: none; border-radius: 999px; background: var(--line-strong); transition: background var(--t); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 260ms var(--ease-out); }
.remember input:checked + .switch { background: var(--accent); }
.remember input:checked + .switch::after { transform: translateX(14px); }
.remember input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border-radius: 10px;
  background: var(--danger-soft); color: var(--danger);
  font-size: 13px; line-height: 1.4;
}
.alert::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; background: currentColor; -webkit-mask: var(--i-alert) center / contain no-repeat; mask: var(--i-alert) center / contain no-repeat; }
:root { --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E"); }
.alert.in { animation: alert-in 360ms var(--ease-out); }
@keyframes alert-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.primary {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; width: 100%; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: background var(--t), transform 120ms var(--ease-out), box-shadow var(--t);
}
.primary:hover { background: var(--accent-hover); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 24px color-mix(in srgb, var(--accent) 42%, transparent); }
.primary:active { transform: scale(.985); }
.primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); }
.primary:hover::after { transform: translateX(120%); transition: transform 900ms var(--ease-out); }
.btn-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t), opacity var(--t); }
.primary:hover .btn-arrow { transform: translateX(3px); }
.btn-label { transition: opacity var(--t), transform var(--t); }
.spinner { position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.2px solid rgba(255,255,255,.35); border-top-color: #fff; opacity: 0; transform: scale(.6); transition: opacity var(--t), transform var(--t); }
.primary.is-busy { cursor: progress; }
.primary.is-busy .btn-label, .primary.is-busy .btn-arrow { opacity: 0; transform: translateY(-6px); }
.primary.is-busy .spinner { opacity: 1; transform: scale(1); animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.shake { animation: shake 420ms var(--ease-io); }
@keyframes shake { 0%, 100% { translate: 0; } 20% { translate: -7px; } 40% { translate: 6px; } 60% { translate: -4px; } 80% { translate: 2px; } }

/* шаг 2 */
.back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin: -6px 0 10px -8px; padding: 6px 10px 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); font-size: 13px; cursor: pointer; transition: color var(--t), background var(--t); }
.back:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t); }
.back:hover svg { transform: translateX(-2px); }
.shield { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.shield svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step.is-active .shield { animation: pop 600ms var(--ease-out) 120ms both; }

.otp { display: flex; gap: 8px; justify-content: space-between; }
.otp-gap { width: 6px; flex: none; align-self: center; height: 2px; border-radius: 2px; background: var(--line-strong); }
.otp input {
  width: 100%; min-width: 0; height: 58px; flex: 1;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface-2);
  text-align: center; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums;
  caret-color: var(--accent); outline: 0;
  transition: border-color var(--t), box-shadow var(--t), background var(--t), transform 200ms var(--ease-out);
}
.otp input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.otp input.filled { border-color: color-mix(in srgb, var(--accent) 60%, var(--line-strong)); background: var(--surface); animation: tick 220ms var(--ease-out); }
@keyframes tick { 0% { transform: scale(.92); } 100% { transform: scale(1); } }
.otp.is-bad input { border-color: var(--danger); box-shadow: none; }
.otp.is-ok input { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); transition-delay: calc(var(--i, 0) * 45ms); }
.timer { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: -6px; }
.timer-bar { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; opacity: .7; }
.timer-bar.low { background: #e8710a; }

/* шаг 3 */
.step-done { justify-items: center; text-align: center; gap: 10px; padding-top: 12px; }
.done-mark svg { width: 72px; height: 72px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done-c { stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; }
.done-p { stroke: var(--ok); stroke-width: 3.5; stroke-dasharray: 40; stroke-dashoffset: 40; }
.step-done.is-active .done-c { animation: draw 620ms var(--ease-out) 120ms forwards; }
.step-done.is-active .done-p { animation: draw 420ms var(--ease-out) 560ms forwards; }
.step-done h1 { font-size: 24px; }

.aux { margin: 2px 0 0; text-align: center; font-size: 13px; color: var(--text-3); }
.aux a { color: var(--accent); text-decoration: none; font-weight: 500; }
.aux a:hover { text-decoration: underline; }
.aux a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 12px; color: var(--text-3); }
.foot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.noscript { position: fixed; inset: auto 16px 16px; padding: 12px 16px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); text-align: center; }
.noscript a { color: inherit; font-weight: 600; }

/* ---------------- адаптивность ---------------- */
@media (max-width: 1100px) {
  .shell { grid-template-columns: minmax(0, 1fr) minmax(400px, 460px); }
  .stage { padding: 32px 36px 40px; }
  .chip { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .stage { min-height: 0; padding: 22px 22px 26px; grid-template-rows: auto auto; gap: 8px; }
  .flow, .stage-brand { display: none; }
  .stage-copy h2 { font-size: 22px; margin-bottom: 6px; }
  .stage-copy p { font-size: 13px; }
  .panel { padding: 22px 22px 28px; }
  .mini-brand { display: flex; }
  .card { align-self: start; padding-top: 28px; }
  h1 { font-size: 24px; }
}
@media (max-width: 860px) and (max-height: 700px) { .stage { display: none; } }

/* меньше движения — по настройке системы */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .pulse, .hub-ring { display: none; }
}
