/* Yakutia Access — site styles. No external assets, no scripts. */
:root {
  color-scheme: light dark;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0efe9;
  --surface-3: #e9e7df;
  --ink: #0d1b26;
  --ink-2: #283a44;
  --muted: #5b6b73;
  --faint: #5f6f76;
  --line: #dcdad2;
  --line-strong: #c9c6bb;
  --accent: #0b6b53;
  --accent-2: #095845;
  --accent-soft: #e3f2ec;
  --accent-ink: #ffffff;
  --warm: #a85a08;
  --warm-soft: #f7ead8;
  --ok: #0b6b53;
  --ok-soft: #e3f2ec;
  --danger: #a3341f;
  --console: #0d1b26;
  --console-2: #13242f;
  --console-line: #29404d;
  --console-text: #e8efec;
  --console-muted: #9db0b8;
  --footer-bg: #0d1b26;
  --footer-text: #e8efec;
  --footer-muted: #9db0b8;
  --shadow: 0 24px 70px rgba(13, 27, 38, 0.09);
  --shadow-sm: 0 8px 24px rgba(13, 27, 38, 0.06);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1115;
    --surface: #101a1f;
    --surface-2: #0d161a;
    --surface-3: #162329;
    --ink: #e9efec;
    --ink-2: #c8d5d0;
    --muted: #9aaba7;
    --faint: #7f918d;
    --line: #223137;
    --line-strong: #2e424a;
    --accent: #63d3b0;
    --accent-2: #8ae6c9;
    --accent-soft: #12352b;
    --accent-ink: #06110d;
    --warm: #e0a25a;
    --warm-soft: #322516;
    --ok: #63d3b0;
    --ok-soft: #12352b;
    --danger: #e07a63;
    --console: #0d161a;
    --console-2: #111f25;
    --console-line: #263a42;
    --console-text: #e9efec;
    --console-muted: #97aaa4;
    --footer-bg: #070d10;
    --footer-text: #e9efec;
    --footer-muted: #92a49f;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, table { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.03; margin-bottom: 22px; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; margin-bottom: 16px; }
h3 { font-size: 21px; line-height: 1.3; margin-bottom: 10px; }
h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
p { color: var(--muted); }
strong { color: var(--ink); font-weight: 650; }
small { font-size: 13px; }
code, pre, .mono { font-family: var(--mono); }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 650;
}
.skip:focus { top: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
[id] { scroll-margin-top: 110px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.top-inner { height: 76px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font: 800 14px/1 var(--sans); letter-spacing: -0.5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.brand-text b { display: block; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
.brand-text small {
  display: block; margin-top: 1px; font-size: 10.5px; line-height: 1.2;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav a { font-size: 14px; color: var(--muted); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { position: relative; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.top .btn { margin-left: 2px; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 13px; font-weight: 650; color: var(--ink); background: var(--surface);
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 230px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow);
  padding: 8px; display: grid;
}
.menu-panel a { padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.menu-panel a:hover { background: var(--surface-2); color: var(--ink); }

.ticker { border-top: 1px solid var(--line); background: var(--surface-2); }
.ticker-inner {
  display: flex; align-items: center; gap: 22px; min-height: 30px;
  font: 11.5px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.01em;
  overflow: hidden; white-space: nowrap;
}
.ticker-inner span { display: inline-flex; align-items: center; gap: 7px; }
.ticker-inner span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.ticker .ok { color: var(--ok); }
.ticker .ok::before { background: var(--ok) !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 19px; border: 1px solid var(--line-strong); border-radius: 9px;
  font: 650 14px/1.2 var(--sans); color: var(--ink); background: transparent;
  cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn-sm { padding: 10px 14px; font-size: 13px; }
.btn .arrow { font-family: var(--sans); font-size: 15px; line-height: 1; }
.btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }

/* Typographic helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font: 650 11.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.section { padding: 76px 0; }
.section-tight { padding: 52px 0; }
.alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { margin-bottom: 0; }
.kicker { font: 650 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.no-margin { margin: 0; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.mt-18 { margin-top: 18px; }
.contact-block { padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-block:last-of-type { border-bottom: 0; }
.contact-link { display: inline-block; margin-top: 3px; font-weight: 650; color: var(--ink); }
.contact-link:hover { color: var(--accent); }
.uptime {
  display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px;
  margin: 20px 0 8px; height: 34px; align-items: end;
}
.uptime i { display: block; height: 100%; border-radius: 2px; background: var(--ok); opacity: .82; }
.uptime i.warn { background: var(--warm); opacity: .9; }
@media (max-width: 620px) { .uptime { gap: 1px; } }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .55;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 64px; align-items: center; padding: 84px 0 70px;
}
.hero h1 { max-width: 760px; }
.hero .lead { max-width: 590px; }
.hero-notes {
  display: flex; flex-wrap: wrap; gap: 18px 24px; margin-top: 28px;
  font-size: 13px; color: var(--muted);
}
.hero-notes span { display: inline-flex; align-items: center; gap: 8px; }
.tick { color: var(--accent); font-weight: 800; }

/* NOC console */
.console {
  background: linear-gradient(155deg, var(--console-2), var(--console));
  border: 1px solid var(--console-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden; color: var(--console-text);
}
.console-top {
  display: flex; align-items: center; gap: 7px; padding: 14px 17px;
  border-bottom: 1px solid var(--console-line);
}
.console-top i { width: 8px; height: 8px; border-radius: 50%; background: #38505c; }
.console-top i:first-child { background: #c9725d; }
.console-top i:nth-child(2) { background: #c9a25d; }
.console-top i:nth-child(3) { background: #5da47f; }
.console-top .console-title {
  margin-left: 8px; font: 11px/1 var(--mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--console-muted);
}
.console-body { padding: 20px; }
.console-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.console-head b { display: block; font-size: 15px; letter-spacing: -.01em; }
.console-head small { color: var(--console-muted); font-size: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 5px 9px; border-radius: 99px; background: #63d3b01a; color: #7fe0bd;
  font: 650 10.5px/1 var(--sans); letter-spacing: .03em; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.city-list { display: grid; gap: 11px; }
.city {
  display: grid; grid-template-columns: 92px 1fr 58px; align-items: center; gap: 12px;
  font-size: 12.5px; color: var(--console-muted);
}
.city b { color: var(--console-text); font-weight: 550; }
.city .lat { text-align: right; font: 11.5px/1 var(--mono); color: var(--console-text); font-variant-numeric: tabular-nums; }
.bar { display: block; height: 4px; border-radius: 99px; background: #ffffff12; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3f9e80, #7fe0bd); }
.w-12 { width: 12%; } .w-18 { width: 18%; } .w-24 { width: 24%; } .w-31 { width: 31%; }
.w-38 { width: 38%; } .w-46 { width: 46%; } .w-54 { width: 54%; } .w-63 { width: 63%; }
.console-foot {
  display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--console-line);
  font: 11px/1.4 var(--mono); color: var(--console-muted);
}
.console-foot b { color: var(--console-text); font-weight: 500; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 32px; line-height: 1; letter-spacing: -.03em; font-weight: 600; }
.stat span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* Cards and grids */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  padding: 26px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.card p { font-size: 14.5px; margin-bottom: 0; }
.card h3 { margin-bottom: 8px; }
.card .icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 11px; background: var(--accent-soft); color: var(--accent);
  margin-bottom: 18px;
}
.icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card .more { display: inline-flex; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 650; color: var(--accent); }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.list li { position: relative; padding-left: 24px; color: var(--muted); font-size: 14.5px; }
.list li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.list.tight li { font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.wide { grid-template-columns: 1.15fr .85fr; }

.quote {
  margin: 0; padding: 26px 0 26px 28px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.32;
  letter-spacing: -.02em; color: var(--ink);
}
.quote cite { display: block; margin-top: 14px; font: 500 12px/1.4 var(--sans); letter-spacing: .02em; color: var(--muted); font-style: normal; }

/* Topology */
.topo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.topo svg { width: 100%; height: auto; }
.topo-compact { display: none; }
.topo-compact .topo-label { font-size: 17px; }
.topo-compact .topo-label.mono { font-size: 13px; }
.topo-line { stroke: var(--line-strong); stroke-width: 1.4; fill: none; }
.topo-line.accent { stroke: var(--accent); stroke-width: 1.8; }
.topo-line.dash { stroke-dasharray: 4 5; }
.topo-node { fill: var(--surface); stroke: var(--accent); stroke-width: 1.8; }
.topo-node.core { fill: var(--accent); }
.topo-halo { fill: var(--accent-soft); }
.topo-label { fill: var(--ink); font: 600 11px var(--sans); }
.topo-label.muted { fill: var(--muted); font-weight: 500; }
.topo-label.mono { font-family: var(--mono); font-size: 9.5px; letter-spacing: .02em; }
.topo-label.mono.muted { paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; }
.topo-box { fill: var(--surface-2); stroke: var(--line); }
.topo-arrow { fill: var(--accent); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 15px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 650 11px/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
td { color: var(--muted); }
td b, td strong { color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 38%, transparent); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li {
  position: relative; padding: 18px 20px 18px 62px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 14.5px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 18px; top: 18px;
  font: 650 11px/1 var(--mono); color: var(--accent); letter-spacing: .04em;
}
.steps strong { display: block; color: var(--ink); margin-bottom: 3px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price {
  display: flex; flex-direction: column; padding: 26px 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.price.featured { background: var(--console); border-color: var(--console-line); color: var(--console-text); }
.price.featured h3, .price.featured .amount { color: var(--console-text); }
.price.featured p, .price.featured .unit, .price.featured .price-list li { color: var(--console-muted); }
.price.featured .price-list li::before { background: #7fe0bd; box-shadow: none; }
.price .tag {
  align-self: flex-start; margin-bottom: 14px; padding: 4px 8px; border-radius: 5px;
  font: 650 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
}
.price.featured .tag { background: #63d3b01f; color: #7fe0bd; }
.price h3 { font-size: 18px; margin-bottom: 6px; }
.price .amount { font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -.03em; margin: 14px 0 2px; color: var(--ink); }
.price .unit { font-size: 12px; color: var(--muted); }
.price-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 9px; }
.price-list li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--muted); }
.price-list li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.price .btn { margin-top: auto; width: 100%; }
.price.featured .btn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.price-note { margin-top: 18px; font-size: 12.5px; color: var(--faint); }

/* Status */
.status-banner {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  border: 1px solid var(--line); border-left: 3px solid var(--ok);
  background: var(--ok-soft); border-radius: var(--r-md); margin-bottom: 28px;
}
.status-banner .status-dot {
  width: 11px; height: 11px; border-radius: 50%; background: var(--ok); flex-shrink: 0;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 14%, transparent);
}
.status-banner strong { display: block; font-size: 18px; font-family: var(--serif); font-weight: 600; color: var(--ink); }
.status-banner small { color: var(--muted); }
.components { border-top: 1px solid var(--line); }
.component {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.component span:first-child { color: var(--ink-2); }
.component .state { display: inline-flex; align-items: center; gap: 8px; font: 650 11px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ok); }
.component .state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.timeline { border-left: 1px solid var(--line); margin-left: 5px; padding-left: 22px; display: grid; gap: 22px; }
.timeline article { position: relative; }
.timeline article::before {
  content: ""; position: absolute; left: -27px; top: 6px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--accent);
}
.timeline time { display: block; font: 11px/1.4 var(--mono); color: var(--faint); letter-spacing: .03em; }
.timeline h3 { font-size: 17px; margin: 5px 0 4px; }
.timeline p { font-size: 14px; margin: 0; }

/* Page hero */
.page-hero { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.page-hero-inner { padding: 64px 0 46px; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 16px; }
.page-hero p { max-width: 720px; font-size: 18px; margin-bottom: 0; }
.crumbs { display: flex; gap: 8px; align-items: center; font: 11px/1.4 var(--mono); color: var(--faint); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }

/* Prose */
.prose { max-width: 800px; margin-inline: auto; }
.prose h2 { font-size: 28px; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 7px 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.callout {
  padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--surface);
  font-size: 14px; color: var(--muted); margin: 22px 0;
}
.callout strong { color: var(--ink); }

/* Code */
pre.code {
  background: var(--console); color: var(--console-text); border: 1px solid var(--console-line);
  border-radius: 12px; padding: 20px; overflow: auto; font-size: 12.5px; line-height: 1.75;
}
pre.code .cm { color: var(--console-muted); }
pre.code .ac { color: #7fe0bd; }

/* CTA band */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 34px 36px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--accent-soft), var(--surface));
}
.cta h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 6px; }
.cta p { margin: 0; max-width: 620px; }
.cta .actions { margin: 0; flex-shrink: 0; }

/* Footer */
.footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding: 54px 0 40px; }
.footer .brand-text b { color: var(--footer-text); }
.footer .brand-text small { color: var(--footer-muted); }
.footer .mark { background: var(--accent); color: var(--accent-ink); }
.footer p { color: var(--footer-muted); font-size: 13px; max-width: 300px; }
.footer h4 { color: var(--footer-muted); font-size: 10.5px; letter-spacing: .12em; }
.footer a { display: block; color: var(--footer-muted); font-size: 13px; margin: 8px 0; }
.footer a:hover { color: var(--footer-text); }
.footer .contact-line { color: var(--footer-text); font-size: 13px; margin: 8px 0; }
.copyright {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 18px 0 26px; border-top: 1px solid #ffffff14;
  font-size: 11.5px; color: var(--footer-muted);
}

/* 404 */
.notfound { padding: 110px 0 120px; }
.notfound .code404 { font: 600 13px/1 var(--mono); letter-spacing: .18em; color: var(--accent); margin-bottom: 18px; }
.notfound h1 { font-size: clamp(34px, 4.5vw, 56px); }

/* Responsive */
@media (max-width: 1040px) {
  .hero-inner { gap: 40px; }
  .grid-4, .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
  .top .btn { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 38px; padding: 58px 0 54px; }
  .console { max-width: 620px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.wide { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  .table-wrap table { min-width: 0; }
  th, td { padding: 10px 9px; font-size: 12.5px; }
  th { font-size: 10px; letter-spacing: .06em; }
  .topo-detailed { display: none; }
  .topo-compact { display: block; }
  .top-inner { height: 66px; gap: 14px; }
  .brand-text small { display: none; }
  .ticker-inner { gap: 16px; font-size: 10px; }
  .ticker-inner span:nth-child(2) { display: none; }
  h1 { letter-spacing: -.03em; }
  .hero h1 { font-size: clamp(32px, 9.8vw, 44px); }
  .lead { font-size: 17px; }
  .section { padding: 54px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; }
  .stat b { font-size: 27px; }
  .grid-3, .grid-2, .grid-4, .price-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .price-grid { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; padding: 40px 0 30px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .copyright { display: block; }
  .copyright span { display: block; margin-top: 6px; }
  .page-hero-inner { padding: 44px 0 34px; }
  .cta { padding: 26px 22px; }
  .timeline { padding-left: 18px; }
  .timeline article::before { left: -23px; }
}
@media (max-width: 380px) {
  .ticker-inner span:first-child { display: none; }
  th, td { padding: 8px 6px; font-size: 11.5px; }
  th { font-size: 9.5px; letter-spacing: .05em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
