/* RUNiD.SU — «командный мостик»: кобальтовая ночь, латунь приборов, сигнальный алый */

@font-face { font-family: 'Unbounded'; font-weight: 400; font-display: swap; src: url(/_a-fonts-unbounded-cyrillic-400-normal) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 400; font-display: swap; src: url(/_a-fonts-unbounded-latin-400-normal) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url(/_a-fonts-unbounded-cyrillic-500-normal) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url(/_a-fonts-unbounded-latin-500-normal) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url(/_a-fonts-unbounded-cyrillic-700-normal) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url(/_a-fonts-unbounded-latin-700-normal) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url(/_a-fonts-onest-cyrillic-400-normal) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url(/_a-fonts-onest-latin-400-normal) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url(/_a-fonts-onest-cyrillic-500-normal) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url(/_a-fonts-onest-latin-500-normal) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url(/_a-fonts-onest-cyrillic-600-normal) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url(/_a-fonts-onest-latin-600-normal) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(/_a-fonts-jetbrains-mono-cyrillic-400-normal) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(/_a-fonts-jetbrains-mono-latin-400-normal) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 600; font-display: swap; src: url(/_a-fonts-jetbrains-mono-cyrillic-600-normal) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 600; font-display: swap; src: url(/_a-fonts-jetbrains-mono-latin-600-normal) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* «Центр управления»: ночной пульт, лайм — «работает», циан — «разработка», янтарь — «проектирование» */
  --ink: #060A16;
  --deck: #0C1329;
  --deck-2: #111A38;
  --rule: #1E2B50;
  --seg: #1A2446;
  --text: #E7EDFF;
  --muted: #95A1C4;
  --accent: #B8FF3C;
  --brass: #B8FF3C;
  --signal: #FF5A4A;
  --ok: #B8FF3C;
  --blue: #46D6FF;
  --amber: #FFC24A;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --wrap: 1312px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 15px/1.6 var(--body);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .92em; color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--ink); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.build { color: var(--muted); font-size: 12.5px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-signal { background: var(--accent); color: var(--ink); }
.btn-signal:hover { background: #CCFF6E; }
.btn-line { border-color: var(--rule); background: transparent; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--rule); }
.btn-ghost:hover { text-decoration-color: var(--brass); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn-danger { border-color: rgba(255, 75, 58, .5); color: var(--signal); background: transparent; }
.btn-danger:hover { background: rgba(255, 75, 58, .12); }

/* ---------- бренд ---------- */
.brand { display: inline-flex; align-items: center; font: 700 22px/1 var(--display); letter-spacing: .01em; text-decoration: none; color: var(--text); }
.brand-dot { color: var(--accent); }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--brass); position: relative; flex: none; }
.brand-mark::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); top: -4px; left: 50%; margin-left: -3px; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 36px; min-height: 80px; box-sizing: border-box;
  padding: env(safe-area-inset-top, 0px) max(24px, calc((100vw - var(--wrap)) / 2)) 0;
  margin-top: calc(-1 * env(safe-area-inset-top, 0px));
  background: rgba(6, 10, 22, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.top-nav { display: flex; gap: 28px; font-size: 15px; }
.top-nav a { text-decoration: none; color: var(--muted); }
.top-nav a:hover { color: var(--text); }

/* ---------- герой ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 7vw, 96px) 24px clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'acro acro' 'copy ring'; gap: 8px 48px; align-items: center;
}
.hero .acro { grid-area: acro; }
.hero-copy { grid-area: copy; }
.hero-ring { grid-area: ring; }
.acro { display: flex; flex-wrap: wrap; gap: 6px clamp(8px, 1.4vw, 22px); margin-bottom: 20px; }
.acro-c { display: flex; flex-direction: column; }
.acro-l {
  font: 700 clamp(44px, 9.2vw, 132px)/.92 var(--display); letter-spacing: -.02em;
  clip-path: inset(0 0 100% 0); animation: acroIn .9s var(--ease) forwards; animation-delay: calc(var(--d) * 90ms);
}
.acro-c { --d: 0; }
.acro-c:nth-child(2) { --d: 1; } .acro-c:nth-child(3) { --d: 2; } .acro-c:nth-child(4) { --d: 3; } .acro-c:nth-child(5) { --d: 4; }
.acro-su .acro-l { color: var(--brass); }
.acro-en, .acro-ru {
  font-size: 14px; line-height: 1.3; white-space: nowrap; opacity: 0; transform: translateY(6px);
  animation: wordIn .6s var(--ease) forwards; animation-delay: calc(700ms + var(--d) * 110ms);
}
.acro-en { margin-top: 14px; color: var(--brass); font-weight: 600; }
.acro-ru { color: var(--muted); }
@keyframes acroIn { to { clip-path: inset(0 0 0 0); } }
@keyframes wordIn { to { opacity: 1; transform: none; } }

.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 32px; }

.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 48px 0 0; border-top: 1px solid var(--rule); }
.gauges div { padding: 16px 16px 0 0; }
.gauges div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.gauges dt { color: var(--muted); font-size: 13px; line-height: 1.3; }
.gauges dd { margin: 6px 0 0; font: 500 30px/1 var(--display); }
.gauges .is-alert dd { color: var(--signal); }

.hero-ring { position: relative; }
.hero-ring::before {
  content: ''; position: absolute; inset: 12% 18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126, 151, 255, .16), transparent); pointer-events: none;
}
.ring { width: 100%; height: auto; display: block; overflow: visible; }
.ring-track { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.ring-inner { fill: none; stroke: rgba(216, 178, 106, .35); stroke-width: 1; stroke-dasharray: 2 7; }
.ring-dot { fill: var(--ink); stroke: var(--brass); stroke-width: 2; }
.ring-t { fill: var(--text); font: 600 19px var(--body); }
.ring-s { fill: var(--muted); font: 400 15px var(--body); }
.ring-c1 { fill: var(--text); font: 500 26px var(--display); }
.ring-c2 { fill: var(--brass); font: 500 26px var(--display); }
.ring-pulse { fill: var(--signal); filter: drop-shadow(0 0 6px rgba(255, 75, 58, .9)); }
.ring-list { display: none; }
.ring-node { --i: 0; }
.ring-node:nth-of-type(2) { --i: 1; } .ring-node:nth-of-type(3) { --i: 2; } .ring-node:nth-of-type(4) { --i: 3; } .ring-node:nth-of-type(5) { --i: 4; }
.ring-node:nth-of-type(6) { --i: 5; } .ring-node:nth-of-type(7) { --i: 6; } .ring-node:nth-of-type(8) { --i: 7; }
.ring-node { opacity: 0; animation: wordIn .5s var(--ease) forwards; animation-delay: calc(900ms + var(--i) * 110ms); }

/* ---------- полосы ---------- */
.band { max-width: var(--wrap); margin: 0 auto; padding: clamp(44px, 6vw, 72px) 24px; }
.band-deep { max-width: none; background: var(--deck); border-block: 1px solid var(--rule); padding-inline: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.band-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 48px; align-items: end; margin-bottom: 44px; }
.band-head h2 { font: 500 clamp(28px, 3.4vw, 44px)/1.08 var(--display); letter-spacing: -.01em; hyphens: manual; overflow-wrap: break-word; min-width: 0; }
.band-head p { color: var(--muted); font-size: 17px; max-width: 36em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--rule); background: transparent; cursor: pointer; font-size: 14px; color: var(--muted); }
.chip:hover { color: var(--text); }
.chip.is-on { background: var(--text); color: var(--ink); border-color: var(--text); }

.registry { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.reg-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.reg-row[hidden] { display: none; }
.reg-name { font-size: 19px; }
.reg-name a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.reg-name a:hover { border-color: var(--brass); }
.reg-sum { margin-top: 6px; color: var(--muted); max-width: 46em; }
.reg-meta { display: grid; grid-template-columns: 132px 170px 150px 100px; align-items: center; gap: 12px; font-size: 13.5px; }
.reg-layer { color: var(--muted); }
.meter { display: block; width: 100%; height: 4px; border-radius: 2px; overflow: hidden; }
.meter-bg { fill: var(--rule); }
.meter-fg { fill: var(--brass); }
.mt { margin-top: 12px; }

.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; letter-spacing: .04em; font-weight: 500; border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; justify-self: start; }
.st-live, .st-solved, .st-active, .st-answer { color: var(--accent); border-color: rgba(184, 255, 60, .45); }
.st-build, .st-sent, .st-forming { color: var(--blue); border-color: rgba(70, 214, 255, .45); }
.st-design, .st-new { color: var(--amber); border-color: rgba(255, 194, 74, .45); }
.st-formal, .st-escalated { color: var(--signal); border-color: rgba(255, 75, 58, .5); }

.foot { max-width: var(--wrap); margin: 0 auto; padding: 36px 24px 48px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; color: var(--muted); font-size: 14px; border-top: 1px solid var(--rule); }
.foot-cmd { color: var(--accent); }
.brand-small { font: 700 14px var(--display); color: var(--text); }
.foot .build { margin-left: auto; }

/* ---------- вход и установка ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 20% -10%, #0F1C45, transparent), var(--ink); }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font: 500 28px/1.15 var(--display); margin: 36px 0 12px; }
.auth-box .build { margin-top: 28px; }
.form { display: grid; gap: 16px; margin-top: 24px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form label.check { display: flex; gap: 10px; align-items: center; color: var(--text); }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--rule);
  background: var(--ink); color: var(--text); font-size: 15px;
}
input[type=checkbox] { width: 18px; min-height: 18px; accent-color: var(--brass); }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(216, 178, 106, .2); }
.form-err { margin-top: 16px; padding: 10px 14px; border-left: 3px solid var(--signal); background: rgba(255, 75, 58, .1); }
.form-ok { margin-top: 16px; padding: 10px 14px; border-left: 3px solid var(--ok); background: rgba(92, 201, 167, .1); }

/* ---------- панель ---------- */
.panel { background: var(--deck); }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; padding: 24px 18px; background: var(--ink); border-right: 1px solid var(--rule); }
.side-nav { display: grid; gap: 2px; }
.side-nav a { padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--muted); font-weight: 500; }
.side-nav a:hover { color: var(--text); background: rgba(38, 57, 122, .35); }
.side-nav a.is-on { color: var(--text); background: var(--deck-2); box-shadow: inset 3px 0 0 var(--brass); }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.me { display: grid; font-size: 14px; }
.me span { color: var(--muted); font-size: 13px; }

.work { padding: 32px clamp(18px, 3vw, 40px) 64px; outline: none; }
.work-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 24px; }
.work-head h1 { font: 500 26px/1.1 var(--display); margin-right: auto; }
.search { max-width: 300px; min-height: 40px; }
.work-head select { width: auto; min-width: 200px; min-height: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters select { width: auto; min-height: 38px; padding: 6px 10px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 8px; background: var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 12px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; position: sticky; top: 0; background: var(--ink); }
td { padding: 12px 14px; border-bottom: 1px solid rgba(38, 57, 122, .55); vertical-align: top; }
tbody tr.is-link { cursor: pointer; }
tbody tr.is-link:hover td { background: rgba(38, 57, 122, .25); }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }
.dl-over { color: var(--signal); font-weight: 600; }
.dl-soon { color: var(--brass); font-weight: 600; }
.empty { padding: 40px 20px; color: var(--muted); text-align: center; }
.up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.up-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(38, 57, 122, .55); font-size: 14px; }
.up-list li:last-child { border-bottom: 0; }

.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer[hidden] { display: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(5, 10, 28, .6); animation: fade .2s var(--ease); }
.drawer-card {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); overflow-y: auto;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 28px calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--deck); border-left: 1px solid var(--rule); animation: slideIn .28s var(--ease);
}
.drawer-card h2 { font: 500 22px/1.2 var(--display); margin-bottom: 6px; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.drawer-actions .btn-danger { margin-left: auto; }
.field-err { color: var(--signal); font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.toasts { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; z-index: 60; }
.toast { padding: 12px 16px; border-radius: 6px; background: var(--text); color: var(--ink); font-weight: 500; animation: slideIn .25s var(--ease); max-width: 360px; }
.toast.is-err { background: var(--signal); color: #fff; }


/* ---------- витрина: реестр, вакансии, карточка ---------- */
.top .btn-sm { min-height: 38px; }
.top-nav a[aria-current] { color: var(--text); }
.reg-row { cursor: pointer; }
.reg-row:hover .reg-name a { border-color: var(--brass); }
.reg-steps { display: grid; gap: 6px; color: var(--muted); }
.reg-vac { color: var(--brass); }

.vacs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.vac { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.card-sec .vacs { border-top: 0; }
.status-inline { display: none; }
.vac:target { background: linear-gradient(90deg, rgba(216, 178, 106, .12), transparent 70%); }
.vac h3 { font-size: 19px; }
.vac-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; font-size: 14px; color: var(--brass); }
.vac-meta a { text-decoration: none; border-bottom: 1px solid rgba(216, 178, 106, .4); }
.vac-meta span { color: var(--muted); }
.vac-meta a + span, .vac-meta span + span { position: relative; }
.vac-desc { margin-top: 8px; color: var(--muted); max-width: 46em; }

.join-band { text-align: left; }
.join-band h2 { font: 500 clamp(28px, 3.4vw, 44px)/1.08 var(--display); margin-bottom: 14px; }
.join-band p { color: var(--muted); font-size: 17px; max-width: 40em; margin-bottom: 26px; }

.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--text); }

.card-page { max-width: var(--wrap); margin: 0 auto; padding: 32px 24px 88px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 15px; min-height: 44px; }
.back::before { content: ''; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.back:hover { color: var(--text); }
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; margin-top: 18px; }
.card-kicker { color: var(--muted); font-size: 15px; }
.card-kicker span { color: var(--brass); margin-left: 12px; }
.card-title { font: 700 clamp(34px, 5vw, 64px)/1.02 var(--display); letter-spacing: -.015em; margin: 12px 0 22px; }
.card-lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 36em; }
.card-about { margin-top: 20px; color: var(--muted); max-width: 42em; display: grid; gap: 14px; }
.card-sec { margin-top: 56px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.sec-head h2 { font: 500 24px/1.2 var(--display); }

.road { list-style: none; margin: 0; padding: 0; position: relative; }
.road li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
.road li::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--rule); }
.road li:first-child::before { top: 30px; }
.road li:last-child::before { bottom: calc(100% - 30px); }
.road li.road-done::before { background: var(--brass); }
.road-dot { position: relative; z-index: 1; width: 18px; height: 18px; margin: 4px 0 0 7px; border-radius: 50%; border: 2px solid var(--rule); background: var(--ink); }
.road-done .road-dot { background: var(--brass); border-color: var(--brass); }
.road-active .road-dot { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(70, 214, 255, .16); }
.road-active .road-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); }
.road h3 { font-size: 18px; }
.road-planned h3 { color: var(--muted); font-weight: 500; }
.road p { color: var(--muted); margin-top: 4px; max-width: 40em; }
.road-state { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.road-done .road-state { color: var(--brass); }
.road-active .road-state { color: var(--blue); }

.card-side { position: sticky; top: 96px; display: grid; gap: 12px; }
.status-box { padding: 22px; border: 1px solid var(--rule); border-radius: 8px; background: var(--deck); margin-bottom: 4px; }
.status-date { color: var(--muted); font-size: 14px; }
.status-val { font: 500 26px/1.15 var(--display); margin-top: 8px; color: var(--text); }
.status-val.st-live { color: var(--ok); }
.status-val.st-build { color: var(--blue); }
.status-val.st-design { color: var(--amber); }
.status-val.st-idea { color: var(--muted); }
.status-note { margin-top: 10px; }
.status-meter { display: grid; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.btn-wide { width: 100%; }
.share { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; gap: 10px; font-size: 14px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-url { color: var(--muted); font-size: 13px; word-break: break-all; }

.join-page, .text-page { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 80px) 24px 96px; }
.join-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.join-intro h1, .done-box h1, .text-page h1 { font: 700 clamp(30px, 3.4vw, 46px)/1.08 var(--display); margin-bottom: 20px; overflow-wrap: anywhere; }
.join-intro .muted { margin-top: 18px; max-width: 30em; }
.join-form { margin-top: 0; padding: 28px; border: 1px solid var(--rule); border-radius: 8px; background: var(--deck); }
.join-form .check { align-items: flex-start; font-size: 14.5px; }
.join-form .check input { margin-top: 3px; flex: none; }
.join-form .check a { color: var(--brass); }
.join-form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done-box { max-width: 36em; }
.done-box .btn { margin-top: 28px; }
.text-page { max-width: 780px; }
.text-page p { margin-bottom: 16px; }
.text-page a { color: var(--brass); }



/* ---------- «центр управления»: общие элементы ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; }
.band h2, .sec-top h2, .band-head h2 { font: 700 clamp(28px, 3.2vw, 44px)/1.08 var(--display); }
.kicker { font-size: 15px; letter-spacing: .06em; color: var(--accent); margin-bottom: 12px; }
.acc { color: var(--accent); }
.acc-link { color: var(--accent); text-decoration: none; font-size: 15px; white-space: nowrap; }
.acc-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.mono-dim { color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.c-live { --c: var(--accent); } .c-build { --c: var(--blue); } .c-design { --c: var(--amber); } .c-idea { --c: var(--muted); }
.dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); box-shadow: 0 0 10px var(--c, transparent); }
.st { display: inline-flex; align-items: center; gap: 8px; color: var(--c); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.segs { display: flex; gap: 4px; min-width: 0; }
.segs.is-empty { height: 6px; }
.seg { flex: 1 1 0; height: 6px; border-radius: 3px; background: var(--seg); }
.seg.s-done { background: var(--c); }
.seg.s-active { background: var(--c); opacity: .42; }
.sys-live { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-size: 14px; color: var(--accent); white-space: nowrap; }
.top-nav + .btn { margin-left: auto; }
.sys-live + .btn { margin-left: 0; }
.page-h1 { font: 700 clamp(32px, 4vw, 52px)/1.06 var(--display); }
.sec-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.sec-lead { color: var(--muted); max-width: 46em; margin: -8px 0 24px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.legend .st { text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 14px; }
.legend .dot { background: var(--c); }

/* первый экран */
.cc-hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px 48px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.cc-copy { display: flex; flex-direction: column; gap: 22px; }
.cc-copy .kicker { margin: 0; }
.cc-copy h1 { font: 700 clamp(38px, 4.6vw, 64px)/1.04 var(--display); }
.cc-copy .lead { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 34em; }
.cc-copy .hero-cta { margin-top: 4px; }
.win { background: var(--deck); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.wd { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.wd.r { background: var(--signal); } .wd.y { background: var(--amber); }
.win-title { margin-left: 10px; }
.sys-list { list-style: none; margin: 0; padding: 6px 22px 4px; }
.sys-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) 150px 130px; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--text); }
.sys-list li:first-child .sys-row { border-top: 0; }
.sys-row:hover .sys-name { color: var(--accent); }
.sys-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-st { color: var(--c); font-size: 12.5px; letter-spacing: .04em; text-align: right; white-space: nowrap; }
.win-more { display: block; padding: 12px 22px 16px; border-top: 1px solid var(--rule); color: var(--muted); text-decoration: none; font-size: 13px; }
.win-more:hover { color: var(--text); }

/* сводка */
.kpis-row { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpis-row .kpi { background: var(--deck); border: 1px solid var(--rule); border-radius: 14px; padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.kpis-row .kpi span { font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.kpis-row .kpi b { font: 700 56px/1 var(--display); color: var(--text); }
.kpis-row .kpi b.acc { color: var(--accent); }

/* мозаика модулей */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 180px; grid-auto-flow: row dense; gap: 14px; }
.tile { box-sizing: border-box; min-width: 0; background: var(--deck); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); overflow: hidden; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.tile:hover { border-color: rgba(184, 255, 60, .6); transform: translateY(-2px); }
.tile[hidden] { display: none; }
.tile.is-featured { border-color: var(--accent); }
.t-6x2 { grid-column: span 6; grid-row: span 2; } .t-3x2 { grid-column: span 3; grid-row: span 2; } .t-4x2 { grid-column: span 4; grid-row: span 2; }
.t-4x1 { grid-column: span 4; } .t-3x1 { grid-column: span 3; } .t-6x1 { grid-column: span 6; } .t-12x1 { grid-column: span 12; }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
.tile-top .mono-dim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-title { font: 700 20px/1.1 var(--display); }
.t-6x2 .tile-title { font-size: clamp(28px, 2.8vw, 40px); }
.t-3x2 .tile-title, .t-4x2 .tile-title { font-size: clamp(22px, 2vw, 30px); }
.tile-sum { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 34em; overflow: hidden; }
.tile-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.tile-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.tile-all { background: transparent; border-style: dashed; justify-content: space-between; }
.tile-all .tile-title { font-size: 22px; }

/* вакансии: панель-таблица */
.cc-panel { background: var(--deck); border: 1px solid var(--rule); border-radius: 16px; padding: 30px 32px 14px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; }
.panel-head h2 { font-size: clamp(24px, 2.4vw, 30px); }
.vac-table { list-style: none; margin: 0; padding: 0; }
.vrow { display: grid; grid-template-columns: 70px minmax(0, 2fr) minmax(0, 2fr) minmax(0, 2fr) 160px; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); scroll-margin-top: 100px; }
.vrow:target { background: linear-gradient(90deg, rgba(184, 255, 60, .08), transparent 70%); }
.vrow-title { font-weight: 600; }
.vrow-proj, .vrow-fmt { color: var(--muted); }
.vrow-proj a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.vrow-proj a:hover { color: var(--text); }
.vrow-go { color: var(--accent); text-align: right; text-decoration: none; }
.vrow-go:hover { text-decoration: underline; text-underline-offset: 4px; }

/* R&D на главной */
.dir-chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dir-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; background: var(--deck); }
.dir-chips a:hover { border-color: var(--accent); color: var(--accent); }

/* призыв */
.join-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; padding: 36px 40px; border: 1px solid var(--accent); border-radius: 16px; background: linear-gradient(135deg, rgba(184, 255, 60, .08), transparent 60%), var(--deck); }
.join-panel .kicker { margin-bottom: 10px; }
.join-panel p:not(.kicker) { color: var(--muted); max-width: 40em; margin-top: 12px; }

/* фильтры — в моноширинном стиле пульта */
.chip { font-family: var(--body); border-radius: 999px; }
.chip.is-on { background: var(--accent); color: var(--ink); border-color: var(--accent); }


/* страницы-карточки и R&D в стиле пульта */
.status-val.c-live, .status-val.c-build, .status-val.c-design, .status-val.c-idea { color: var(--c); }
.status-box { border-radius: 16px; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin-top: 36px; }
.kpi-grid .kpi { background: var(--deck); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.kpi-grid .kpi span { font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.kpi-grid .kpi b { font: 700 44px/1 var(--display); }
.kpi-grid .kpi b.acc { color: var(--accent); }
.band-head .kicker, .band-head p.kicker { margin-bottom: 10px; color: var(--accent); font-size: 15px; }
.dirs { gap: 14px; }
.dir { background: var(--deck); border: 1px solid var(--rule); border-radius: 14px; padding: 22px 24px; }
.dir:hover { border-color: rgba(184, 255, 60, .5); }
.rules li, .steps li { border-top-color: var(--rule); }
.steps li { border-top: 2px solid var(--accent); }
.steps li::before { color: var(--accent); }
input, select, textarea { border-radius: 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184, 255, 60, .18); }
:focus-visible { outline-color: var(--accent); }

/* ---------- исследовательский центр ---------- */
.rc-hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 7vw, 96px) 24px clamp(40px, 5vw, 64px); }
.rc-title { font: 700 clamp(34px, 6vw, 84px)/1 var(--display); letter-spacing: -.02em; margin: 14px 0 28px; hyphens: manual; overflow-wrap: break-word; }
.rc-hero .lead { max-width: 38em; }
.rc-hero .gauges { max-width: 560px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; background: rgba(92, 201, 167, .14); color: var(--ok); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.card-kicker span.tag, .card-kicker > span { margin-left: 12px; }

.dirs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.dir { display: grid; gap: 12px; align-content: start; padding: 26px 0 30px; border-top: 1px solid var(--rule); }
.dir[hidden] { display: none; }
.dir h3 { font: 500 22px/1.2 var(--display); }
.dir h3 a { text-decoration: none; }
.dir h3 a:hover { color: var(--brass); }
.dir-sum { color: var(--muted); }
.dir-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; }
.dir-topics li { position: relative; padding-left: 18px; }
.dir-topics li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--brass); }
.dir-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; }
.dir-join { justify-self: start; margin-top: 4px; }

.dir-links { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--rule); }
.dir-links li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.dir-links a { font-weight: 600; text-decoration: none; }
.dir-links a:hover { color: var(--brass); }
.card-sec .dir-links { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; margin-bottom: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--brass); }
.steps li::before { content: counter(step); display: block; font: 500 34px/1 var(--display); color: var(--brass); margin-bottom: 14px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.rules li { padding: 20px 0 24px; border-top: 1px solid var(--rule); }
.rules h3 { font-size: 18px; margin-bottom: 6px; }
.rules p { color: var(--muted); }

.bullets { list-style: none; margin: 0; padding: 0; display: grid; }
.bullets li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid rgba(38, 57, 122, .55); }
.bullets li:last-child { border-bottom: 0; }
.bullets li::before { content: ''; position: absolute; left: 4px; top: 1.45em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--brass); }

.rs-recruiting, .st-recruiting { color: var(--ok); border-color: rgba(92, 201, 167, .45); }
.rs-active, .st-active { color: var(--blue); border-color: rgba(126, 151, 255, .45); }
.rs-forming, .st-forming { color: var(--brass); border-color: rgba(216, 178, 106, .45); }
.status-val.rs-recruiting, .status-inline .rs-recruiting { color: var(--ok); }
.status-val.rs-active, .status-inline .rs-active { color: var(--blue); }
.status-val.rs-forming, .status-inline .rs-forming { color: var(--brass); }


/* ---------- R&D: команда, цикл, идеи ---------- */
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.member { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; padding: 22px; border: 1px solid var(--rule); border-radius: 8px; background: var(--deck); }
.member.is-open { background: transparent; border-style: dashed; }
.avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--brass); font: 500 18px/1 var(--display); color: var(--brass); background: var(--ink); }
.member.is-open .avatar { border-style: dashed; border-color: var(--rule); position: relative; }
.member.is-open .avatar::before, .member.is-open .avatar::after { content: ''; position: absolute; width: 16px; height: 2px; background: var(--muted); }
.member.is-open .avatar::after { transform: rotate(90deg); }
.member-body { display: grid; gap: 6px; min-width: 0; }
.member-body h3 { font-size: 18px; }
.tag-open { background: rgba(216, 178, 106, .14); color: var(--brass); }
.member-pos { color: var(--brass); font-weight: 500; font-size: 15px; }
.member-dir { font-size: 14px; }
.member-dir a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--rule); }
.member-dir a:hover { border-color: var(--brass); }
.expertise { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.expertise li { font-size: 12.5px; padding: 3px 9px; border-radius: 12px; border: 1px solid var(--rule); color: var(--muted); }
.member-bio { color: var(--muted); font-size: 14.5px; }
.member .btn { justify-self: start; margin-top: 6px; }
.team-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rnd-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.rnd-cta p { margin-bottom: 0; }
.idea-flow { margin: 24px 0 0; padding-left: 22px; display: grid; gap: 10px; color: var(--muted); }
.idea-flow li::marker { color: var(--brass); font-weight: 600; }
.join-intro .card-kicker { margin-bottom: 12px; }
fieldset.optional { border: 1px solid var(--rule); border-radius: 8px; padding: 16px; margin: 0; display: grid; gap: 14px; }
fieldset.optional legend { padding: 0 6px; font-weight: 600; }
.id-new { color: var(--signal); border-color: rgba(255, 75, 58, .5); }
.id-review { color: var(--brass); border-color: rgba(216, 178, 106, .45); }
.id-accepted { color: var(--blue); border-color: rgba(126, 151, 255, .45); }
.id-done { color: var(--ok); border-color: rgba(92, 201, 167, .45); }


/* ---------- терминал для разработчиков ---------- */
.dev-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 56px; align-items: center; }
.dev-copy h2 { margin-bottom: 18px; }
.dev-copy .kicker { margin-bottom: 12px; }
.dev-copy p { color: var(--muted); font-size: 15.5px; max-width: 34em; margin-bottom: 14px; }
.dev-copy p.kicker { color: var(--accent); font-size: 15px; }
.dev-copy code { color: var(--brass); font-size: .95em; }
.dev-copy .hero-cta { margin-top: 26px; }
.term { margin: 0; border-radius: 16px; overflow: hidden; background: var(--deck); border: 1px solid var(--rule); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; background: var(--deck); border-bottom: 1px solid var(--rule); }
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--rule); }
.term-dot:first-child { background: var(--signal); }
.term-dot:nth-child(2) { background: var(--amber); }
.term-title { margin-left: 10px; color: var(--muted); font-size: 13px; }
.term-body { padding: 20px 22px 18px; min-height: calc(9 * 1.65em + 38px); font: 15px/1.65 ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace; color: #D9DEEE; }
.tl { white-space: pre-wrap; overflow-wrap: anywhere; }
.tl.is-hidden { visibility: hidden; }
.tp { color: var(--accent); }
.tp-root { color: var(--blue); }
.t-ok { color: var(--ok); }
.t-dim { color: var(--muted); letter-spacing: .1em; }
.t-su { color: var(--accent); font-weight: 600; }
.t-caret, .tl.is-typing::after { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--text); animation: caret 1s steps(1) infinite; }
.tl.is-typing::after { content: ''; margin-left: 1px; }
@keyframes caret { 50% { opacity: 0; } }
.term-replay { display: block; margin: 0 22px 18px auto; min-height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--rule); background: transparent; color: var(--muted); font: 500 13.5px var(--body); cursor: pointer; }
.term-replay:hover { color: var(--text); border-color: var(--brass); }
.term-replay[hidden] { display: none; }
.term-replay.is-waiting { visibility: hidden; }

/* ---------- данные доступа ---------- */
.creds { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 24px 0; }
.creds dt { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.creds dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.creds code { font-size: 16px; padding: 8px 12px; border-radius: 6px; background: var(--ink); border: 1px solid var(--rule); color: var(--text); user-select: all; word-break: break-all; }
.creds-note { padding: 12px 14px; border-left: 3px solid var(--signal); background: rgba(255, 75, 58, .08); font-size: 14px; }
.todo { margin-bottom: 20px; padding: 14px 18px; border-left: 3px solid var(--brass); background: var(--ink); border-radius: 0 8px 8px 0; display: grid; gap: 6px; font-size: 14.5px; }
.todo a { color: var(--brass); }

/* ---------- панель: витрина ---------- */
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 11px; background: var(--signal); color: #fff; font-size: 12px; font-weight: 600; }
.badge[hidden] { display: none; }
.ap-new { color: var(--signal); border-color: rgba(255, 75, 58, .5); }
.ap-work { color: var(--blue); border-color: rgba(126, 151, 255, .45); }
.ap-accepted { color: var(--ok); border-color: rgba(92, 201, 167, .45); }
.facts { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-word; }
.quote { padding: 14px 16px; border-left: 3px solid var(--brass); background: var(--ink); white-space: pre-wrap; }
.card-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 10px; font-size: 14px; }
.card-link a { color: var(--brass); word-break: break-all; }
.stages { border: 1px solid var(--rule); border-radius: 8px; padding: 16px; margin: 0; display: grid; gap: 12px; }
.stages legend { padding: 0 6px; font-weight: 600; }
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: st; }
.stage-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; border-radius: 6px; background: var(--ink); counter-increment: st; }
.stage-fields { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 8px; }
.stage-fields textarea { grid-column: 1 / -1; min-height: 60px; }
.stage-tools { display: grid; gap: 4px; align-content: start; }
.icon-btn { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--rule); background: transparent; cursor: pointer; font-size: 16px; line-height: 1; }
.icon-btn:hover { border-color: var(--brass); color: var(--brass); }
.box.narrow { max-width: 640px; }
.settings-form h2 { font-size: 16px; margin-top: 12px; }
.settings-form h2:first-child { margin-top: 0; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .cc-hero { grid-template-columns: 1fr; }
  .kpis-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .t-6x2, .t-6x1, .t-12x1 { grid-column: span 6; } .t-3x2, .t-4x2, .t-3x1, .t-4x1 { grid-column: span 3; }
  .vrow { grid-template-columns: 50px minmax(0, 2fr) minmax(0, 2fr) 140px; }
  .vrow-fmt { display: none; }
  .sys-live { display: none; }
  .hero { grid-template-columns: 1fr; grid-template-areas: 'acro' 'copy' 'ring'; }
  .hero-ring { max-width: 680px; }
  .reg-row { grid-template-columns: 1fr; }
  .card-grid, .join-grid, .dev-band { grid-template-columns: 1fr; gap: 36px; }
  .steps, .steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-compact { grid-template-columns: 1fr; }
  .rnd-cta { grid-template-columns: 1fr; }
  .dir-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-side { position: static; }
  .card-side .status-box { display: none; }
  .status-inline { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--brass); background: var(--deck); }
  .status-inline span { color: var(--muted); font-size: 14.5px; }
  .status-inline b { font: 500 18px var(--display); }
  .status-inline .st-live { color: var(--ok); } .status-inline .st-build { color: var(--blue); } .status-inline .st-design, .status-inline .st-idea { color: var(--brass); }
  .sec-head { flex-wrap: wrap; }
  .reg-meta { grid-template-columns: repeat(4, auto); justify-content: start; }
  .meter { width: 90px; }
}
@media (max-width: 760px) {
  .top { gap: 14px; min-height: 64px; }
  .brand { font-size: 18px; }
  .kpis-row .kpi b { font-size: 40px; }
  .kpi-grid { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .kpi-grid .kpi { padding: 14px; }
  .kpi-grid .kpi b { font-size: 28px; }
  .kpi-grid .kpi span { font-size: 11px; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .mosaic .tile { grid-column: auto; grid-row: auto; min-height: 150px; }
  .t-6x2, .t-3x2, .t-4x2 { min-height: 240px; }
  .sys-row { grid-template-columns: 14px minmax(0, 1fr) auto; }
  .sys-row .segs { display: none; }
  .vrow { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .vrow .mono-dim { display: none; }
  .vrow-go { text-align: left; margin-top: 6px; }
  .cc-panel { padding: 22px 18px 8px; }
  .join-panel { padding: 26px 22px; }
  .top { gap: 14px; }
  .top-nav { display: none; }
  .top .btn { margin-left: auto; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gauges div:nth-child(3) { padding-left: 0; border-left: 0; }
  .band-head { grid-template-columns: 1fr; }
  .reg-meta { grid-template-columns: repeat(2, auto); }
  .vac { grid-template-columns: 1fr; }
  .term-body { font-size: 13px; padding: 16px; }
  .dirs, .rules, .steps, .steps-5, .team, .dir-links, .card-sec .dir-links { grid-template-columns: 1fr; }
  .rc-hero .gauges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rc-hero .gauges div:nth-child(3) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .vac .btn { justify-self: start; }
  .join-form { padding: 20px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
  .stage-fields { grid-template-columns: 1fr; }
  .acro { flex-direction: column; gap: 12px; margin-bottom: 28px; }
  .acro-c { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; column-gap: 12px; }
  .acro-l { grid-row: span 2; font-size: 42px; }
  .acro-en { margin-top: 0; align-self: end; }
  .acro-ru { align-self: start; }
  .ring { display: none; }
  .hero-ring::before { display: none; }
  .ring-list { display: grid; gap: 0; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: step; border-left: 2px solid var(--brass); }
  .ring-list li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; padding: 8px 0 8px 14px; font-size: 15px; }
  .ring-list li::before { content: counter(step); color: var(--brass); font: 500 14px var(--display); grid-row: span 2; }
  .ring-list span { color: var(--muted); font-size: 13.5px; }
  .foot .build { margin-left: 0; }
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .side-nav { grid-auto-flow: column; overflow-x: auto; width: 100%; order: 3; }
  .side-nav a { white-space: nowrap; }
  .side-foot { margin: 0 0 0 auto; grid-auto-flow: column; align-items: center; }
  .side-foot .me, .side-foot .build { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ring-pulse { display: none; }
}
