/* Магистраль — сеть доставки контента. Общий стиль. */

:root {
  /* поверхности */
  --bg:      #10141b;
  --bg-2:    #161c25;
  --bg-3:    #1d2530;
  --bg-4:    #242e3b;
  --stroke:  rgba(255,255,255,.08);
  --stroke-2:rgba(255,255,255,.15);

  /* текст */
  --ink:     #eef2f6;
  --ink-2:   #b7c0cc;
  --muted:   #7c8794;
  --muted-2: #545f6d;

  /* сигналы — два акцента, разного назначения, не один яркий */
  --amber:   #e8a33c;   /* бренд / CTA / маркер маршрута */
  --amber-d: #c8842a;
  --signal:  #59b79d;   /* сеть / статус ок */
  --alert:   #d9695a;   /* деградация / ошибка */

  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --cond: "Arial Narrow", "Roboto Condensed", var(--sans);

  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);

  --fs-xs:  .6875rem;
  --fs-sm:  .8125rem;
  --fs-base:1rem;
  --fs-lg:  1.125rem;

  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--cond); font-weight: 800; font-stretch: condensed; letter-spacing: -.01em; line-height: 1.06; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button { font: inherit; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num  { font-variant-numeric: tabular-nums; }
.amber { color: var(--amber); }
.signal { color: var(--signal); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

/* ---------------------------------------------------------- eyebrow / labels */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before { content: ""; width: 14px; height: 2px; background: var(--amber); display: inline-block; }

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--stroke);
}
.nav { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__name {
  font-family: var(--cond); font-stretch: condensed; font-weight: 800;
  font-size: 1.08rem; letter-spacing: .01em; text-transform: uppercase;
}
.nav__spacer { flex: 1 1 auto; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-2);
  padding: 4px 0; position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--amber);
}
.nav__actions { display: flex; align-items: center; gap: 10px; }
.only-mobile { display: none; }

.btn {
  --bg-b: var(--amber); --fg: #17110a; --bd: var(--amber);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .02em; line-height: 1;
  padding: 11px 18px; color: var(--fg); background: var(--bg-b); border: 1px solid var(--bd);
  cursor: pointer; transition: transform .12s var(--ease), filter .15s var(--ease);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg-b: transparent; --fg: var(--ink); --bd: var(--stroke-2); }
.btn--ghost:hover { --bd: var(--ink-2); filter: none; background: var(--bg-3); }
.btn--outline-signal { --bg-b: transparent; --fg: var(--signal); --bd: var(--signal); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 24px; font-size: var(--fs-base); }

.nav__burger {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--stroke-2); color: var(--ink); cursor: pointer;
}

/* ---------------------------------------------------------- sections */
.section { padding: clamp(52px, 7vw, 96px) 0; border-bottom: 1px solid var(--stroke); }
.section--tight { padding: clamp(28px, 4vw, 44px) 0; }
.section--flush { border-bottom: none; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); text-transform: uppercase; }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 54ch; }

/* ---------------------------------------------------------- hero */
.hero { padding-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(44px, 6vw, 76px); border-bottom: 1px solid var(--stroke); position: relative; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(720px 420px at 82% 8%, color-mix(in srgb, var(--signal) 14%, transparent), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.2fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: start; position: relative; z-index: 1; }
.hero__lead h1 {
  margin-top: 18px;
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  letter-spacing: -.02em; text-transform: none;
}
.hero__lead h1 em { font-style: normal; color: var(--amber); }
.hero__slogan { margin: 20px 0 0; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-2); max-width: 46ch; line-height: 1.55; }
.hero__meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__meta span { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); }
.hero__meta b { color: var(--ink); font-weight: 700; }
.hero__cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------- network pulse panel (сигнатура) */
.pulse-panel {
  border: 1px solid var(--stroke-2);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  position: relative; z-index: 1;
}
.pulse-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--stroke);
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.pulse-panel__head .chan { color: var(--signal); }
.pulse-map { display: block; width: 100%; height: auto; padding: 10px 6px 0; }
.pulse-map .land { fill: none; stroke: var(--stroke-2); stroke-width: 1; }
.pulse-map .link { fill: none; stroke: var(--muted-2); stroke-width: 1; stroke-dasharray: 3 4; }
.pulse-map .link--active { stroke: var(--signal); stroke-width: 1.4; stroke-dasharray: none; opacity: .85; }
.pulse-map .pop { fill: var(--bg-2); stroke: var(--ink-2); stroke-width: 1.2; }
.pulse-map .pop--core { fill: var(--amber); stroke: var(--amber); }
.pulse-map .pop--core.is-live { animation: corepulse 2.2s var(--ease) infinite; }
.pulse-map .lbl { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; fill: var(--muted); }
@keyframes corepulse {
  0% { filter: drop-shadow(0 0 0 color-mix(in srgb, var(--amber) 70%, transparent)); }
  60% { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--amber) 0%, transparent)); }
  100% { filter: drop-shadow(0 0 0 transparent); }
}
.pulse-readout { border-top: 1px solid var(--stroke); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.pulse-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: var(--fs-sm); }
.pulse-row .k { color: var(--muted); }
.pulse-row .v { color: var(--ink); font-weight: 600; }
.pulse-row .v.is-warn { color: var(--alert); }
.pulse-status { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); display: inline-block; flex: none; }
.dot--live { animation: dotpulse 2.2s var(--ease) infinite; }
.pulse-status.is-degraded .dot { background: var(--alert); }
@keyframes dotpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 55%, transparent);} 70% { box-shadow: 0 0 0 6px transparent;} 100% { box-shadow: 0 0 0 0 transparent;} }

/* ---------------------------------------------------------- metrics band */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--stroke); background: var(--bg-2); }
.metric { padding: 24px 22px; border-right: 1px solid var(--stroke); }
.metric:last-child { border-right: 0; }
.metric__v { font-family: var(--mono); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1; }
.metric__v .u { color: var(--amber); }
.metric__k { margin-top: 9px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------- service cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--stroke); border: 1px solid var(--stroke); }
.svc-card { background: var(--bg-2); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; transition: background .15s var(--ease); }
.svc-card:hover { background: var(--bg-3); }
.svc-card__icon { width: 40px; height: 40px; color: var(--signal); }
.svc-card h3 { font-size: 1.2rem; text-transform: none; }
.svc-card p { color: var(--ink-2); font-size: .93rem; line-height: 1.55; }
.svc-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.svc-card__link { margin-top: 6px; font-family: var(--mono); font-size: var(--fs-sm); color: var(--amber); display: inline-flex; align-items: center; gap: 6px; }
.svc-card__link svg { width: 14px; height: 14px; transition: transform .15s var(--ease); }
.svc-card:hover .svc-card__link svg { transform: translateX(3px); }

.tag {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .03em;
  color: var(--ink-2); padding: 3px 9px; border: 1px solid var(--stroke-2); background: var(--bg-3);
}

/* service detail (services.html anchors) */
.svc-detail { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px,4vw,56px); padding: clamp(36px,5vw,56px) 0; border-bottom: 1px solid var(--stroke); scroll-margin-top: 84px; }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail__no { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); letter-spacing: .1em; }
.svc-detail h3 { font-size: clamp(1.5rem,3vw,2rem); margin-top: 10px; }
.svc-detail__lead { color: var(--ink-2); margin-top: 14px; max-width: 40ch; }
.svc-detail__body { color: var(--ink-2); }
.svc-detail__body p + p { margin-top: 12px; }
.feature-list { list-style: none; margin: 18px 0 0; display: flex; flex-direction: column; gap: 9px; }
.feature-list li { padding-left: 22px; position: relative; font-size: .95rem; color: var(--ink-2); }
.feature-list li::before { content: "—"; position: absolute; left: 0; color: var(--signal); font-family: var(--mono); }

/* ---------------------------------------------------------- PoP coverage badges */
.pop-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pop-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-2);
  padding: 9px 14px; border: 1px solid var(--stroke-2); background: var(--bg-2);
}
.pop-badge .dot { width: 6px; height: 6px; background: var(--signal); }
.pop-badge.is-core { color: var(--ink); border-color: var(--amber); }
.pop-badge.is-core .dot { background: var(--amber); }

/* ---------------------------------------------------------- numbered process (real sequence only) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--stroke); background: var(--bg-2); }
.step { padding: 26px 22px; border-right: 1px solid var(--stroke); position: relative; }
.step:last-child { border-right: 0; }
.step__no { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .12em; color: var(--amber); }
.step h3 { margin-top: 12px; font-size: 1.1rem; text-transform: none; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------------------------------------------------------- pricing */
.calc {
  border: 1px solid var(--stroke-2); background: var(--bg-2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.calc__side { padding: 28px 26px; }
.calc__side + .calc__side { border-left: 1px solid var(--stroke); background: var(--bg-3); }
.calc__label { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.calc__slider { margin-top: 18px; }
.calc__slider input[type="range"] {
  width: 100%; accent-color: var(--amber); height: 4px; background: transparent;
}
.calc__slider-val { margin-top: 12px; font-family: var(--mono); font-size: 1.6rem; font-weight: 700; }
.calc__slider-val .u { color: var(--muted); font-size: 1rem; font-weight: 400; }
.calc__ticks { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted-2); }
.calc__result { display: flex; flex-direction: column; gap: 14px; height: 100%; justify-content: center; }
.calc__price { font-family: var(--mono); font-size: clamp(2rem,4vw,2.6rem); font-weight: 700; }
.calc__price .u { font-size: 1rem; color: var(--muted); font-weight: 400; }
.calc__tier { font-family: var(--mono); font-size: var(--fs-sm); color: var(--signal); }
.calc__note { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }

.tier-table { border: 1px solid var(--stroke); border-top: 1px solid var(--stroke-2); }
.tier-row { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: baseline; padding: 16px 18px; border-bottom: 1px solid var(--stroke); font-family: var(--mono); font-size: .95rem; }
.tier-row:last-child { border-bottom: 0; }
.tier-row .rng { color: var(--ink); }
.tier-row .lbl { color: var(--muted); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; }
.tier-row .price { color: var(--amber); font-weight: 700; text-align: right; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--stroke); }
.plan { padding: 26px 22px; border-right: 1px solid var(--stroke); background: var(--bg-2); display: flex; flex-direction: column; }
.plan:last-child { border-right: 0; }
.plan.is-featured { background: var(--bg-3); box-shadow: inset 0 2px 0 var(--amber); }
.plan__tag { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); min-height: 1em; }
.plan h3 { margin-top: 8px; font-size: 1.25rem; text-transform: none; }
.plan__price { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; margin-top: 14px; }
.plan__price .per { font-size: .8rem; color: var(--muted); font-weight: 400; }
.plan__list { list-style: none; margin: 16px 0 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan__list li { font-size: .9rem; padding-left: 20px; position: relative; color: var(--ink-2); }
.plan__list li::before { content: "—"; position: absolute; left: 0; color: var(--signal); font-family: var(--mono); }

/* ---------------------------------------------------------- checkout / payment */
.checkout { border: 1px solid var(--stroke-2); background: var(--bg-2); }
.checkout__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--stroke); }
.checkout__head .lead { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); }
.checkout__head .lead b { color: var(--ink); }
.checkout__body { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  font-family: var(--mono); font-size: var(--fs-base); padding: 11px 12px;
  border: 1px solid var(--stroke-2); background: var(--bg); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--ink-2); }

/* ---------------------------------------------------------- docs */
.doc-quick { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--stroke); background: var(--bg-2); }
.doc-quick .step { }
.code-panel { border: 1px solid var(--stroke-2); background: #0b0e13; overflow: hidden; }
.code-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--stroke); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .06em; color: var(--muted); }
.code-panel__head button { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--stroke-2); padding: 4px 9px; cursor: pointer; }
.code-panel pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: .85rem; line-height: 1.65; color: #cbd4e0; }
.code-panel .tok-key { color: #7fb8e0; }
.code-panel .tok-str { color: #9fd6a0; }
.code-panel .tok-com { color: #6a7480; }
.code-panel .tok-met { color: var(--amber); }

.endpoint-table { border: 1px solid var(--stroke); }
.endpoint-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: baseline; padding: 14px 16px; border-bottom: 1px solid var(--stroke); font-family: var(--mono); font-size: .9rem; }
.endpoint-row:last-child { border-bottom: 0; }
.endpoint-row .verb { color: var(--signal); font-weight: 700; }
.endpoint-row .verb.is-post { color: var(--amber); }
.endpoint-row .path { color: var(--ink); }
.endpoint-row .desc { color: var(--muted); font-size: var(--fs-xs); text-align: right; }

.status-list { border: 1px solid var(--stroke); }
.status-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--stroke); font-family: var(--mono); font-size: .92rem; }
.status-item:last-child { border-bottom: 0; }
.status-item .name { flex: 1; color: var(--ink-2); }
.status-item .val { color: var(--muted); font-size: var(--fs-xs); }
.status-item .dot { background: var(--signal); }

/* ---------------------------------------------------------- about / requisites */
.grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px,4vw,56px); }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose h3 { margin-top: 28px; font-size: 1.2rem; text-transform: none; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--stroke); }
.timeline li:last-child { border-bottom: 0; }
.timeline .yr { font-family: var(--mono); font-weight: 700; color: var(--amber); }
.timeline .ev { color: var(--ink-2); }

.requisites { border: 1px solid var(--stroke-2); background: var(--bg-2); font-family: var(--mono); font-size: var(--fs-sm); scroll-margin-top: 84px; }
.req-row { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--stroke); }
.req-row:last-child { border-bottom: 0; }
.req-row .k { color: var(--muted); letter-spacing: .05em; text-transform: uppercase; font-size: var(--fs-xs); }
.req-row .v { color: var(--ink); }
.req-row .v.placeholder { color: var(--muted-2); font-style: italic; }

/* ---------------------------------------------------------- auth / login */
.auth { max-width: 460px; margin: clamp(40px, 8vw, 88px) auto; border: 1px solid var(--stroke-2); background: var(--bg-2); }
.auth__head { padding: 22px 24px; border-bottom: 1px solid var(--stroke); }
.auth__head .eyebrow { margin-bottom: 12px; }
.auth__head h1 { font-size: 1.5rem; text-transform: none; }
.auth__tabs { display: flex; border-bottom: 1px solid var(--stroke); }
.auth__tabs button { flex: 1; font-family: var(--mono); font-size: var(--fs-sm); padding: 15px; background: var(--bg-3); border: 0; border-right: 1px solid var(--stroke); color: var(--muted); cursor: pointer; }
.auth__tabs button:last-child { border-right: 0; }
.auth__tabs button[aria-selected="true"] { background: var(--bg-2); color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber); }
.auth__body { padding: 24px; }
.auth__panel { display: flex; flex-direction: column; gap: 14px; }
.auth__panel[hidden] { display: none; }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.auth__row a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.checkline { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.auth__foot { padding: 17px 24px; border-top: 1px solid var(--stroke); font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.auth__foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-note { font-family: var(--mono); font-size: var(--fs-xs); color: var(--signal); }
.form-note[hidden] { display: none; }

/* ---------------------------------------------------------- error pages */
.errpage { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.errpage__card { max-width: 480px; text-align: center; }
.errpage__code { font-family: var(--mono); font-size: clamp(3.5rem, 12vw, 5.5rem); font-weight: 800; color: var(--amber); line-height: 1; }
.errpage__title { margin-top: 10px; font-size: 1.4rem; text-transform: none; }
.errpage__text { margin-top: 14px; color: var(--ink-2); line-height: 1.6; }
.errpage__actions { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.errpage__brand { margin-bottom: 26px; display: inline-flex; }

/* ---------------------------------------------------------- footer */
.site-footer { background: #0a0d12; border-top: 1px solid var(--stroke); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding: 52px 0 34px; }
.footer__brand p { color: var(--muted); margin: 14px 0 0; max-width: 34ch; font-size: .92rem; }
.footer__col h4 { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.footer__col ul { list-style: none; margin: 15px 0 0; display: flex; flex-direction: column; gap: 9px; }
.footer__col a { font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-2); }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 40px; border-top: 1px solid var(--stroke); }
.footer__bottom p { margin: 0; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.socials { display: flex; gap: 8px; }
.socials a { width: 34px; height: 34px; border: 1px solid var(--stroke-2); display: inline-flex; align-items: center; justify-content: center; }
.socials a:hover { border-color: var(--ink-2); }
.socials svg { width: 16px; height: 16px; }

/* utility / page hero */
.pagehero { padding: clamp(44px,6vw,76px) 0 clamp(28px,4vw,40px); border-bottom: 1px solid var(--stroke); }
.pagehero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.pagehero p { margin: 16px 0 0; color: var(--ink-2); max-width: 60ch; }
.breadcrumb { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.breadcrumb b { color: var(--ink); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--stroke); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .doc-quick { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--stroke); }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--stroke); }
  .plan:last-child { border-bottom: 0; }
  .calc { grid-template-columns: 1fr; }
  .calc__side + .calc__side { border-left: 0; border-top: 1px solid var(--stroke); }
  .checkout__body { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .svc-detail { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 64px; left: calc(-1 * var(--gut)); right: calc(-1 * var(--gut));
    background: var(--bg-2); border-bottom: 1px solid var(--stroke); padding: 8px var(--gut) 16px;
  }
  .nav.is-open .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--stroke); font-size: var(--fs-base); }
  .only-mobile { display: block; }
  .svc-grid { grid-template-columns: 1fr; }
  .steps, .doc-quick { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--stroke); }
  .step:last-child { border-bottom: 0; }
  .tier-row { grid-template-columns: 1fr; gap: 4px; }
  .tier-row .price { text-align: left; }
  .req-row { grid-template-columns: 1fr; gap: 4px; }
  .timeline li { grid-template-columns: 64px 1fr; }
  .endpoint-row { grid-template-columns: 1fr; gap: 4px; }
  .endpoint-row .desc { text-align: left; }
}

@media (max-width: 520px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--stroke); }
  .metric:last-child { border-bottom: 0; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .dot--live, .pop--core.is-live { animation: none; }
}

/* ---------------------------------------------------------- footer contacts / legal inline */
.footer__contact { margin: 12px 0 0; font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-2); }
.footer__contact a { color: var(--ink-2); }
.footer__contact a:hover { color: var(--ink); }
.footer__legal-inline { margin: 0; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.footer__legal-inline a { color: var(--ink-2); }
.footer__legal-inline a:hover { color: var(--ink); }

/* ---------------------------------------------------------- legal pages */
.legal { max-width: 760px; }
.legal__meta { color: var(--muted); font-family: var(--mono); font-size: var(--fs-sm); border-left: 2px solid var(--amber); padding-left: 14px; margin-bottom: 30px; }
.legal h2 { font-size: 1.25rem; text-transform: none; margin-top: 34px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--ink-2); margin-top: 12px; }
.legal a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }
.legal__list { list-style: none; margin: 14px 0 0; padding: 0; }
.legal__list li { position: relative; padding-left: 20px; margin-top: 9px; color: var(--ink-2); }
.legal__list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; background: var(--amber); }

/* ---------------------------------------------------------- contacts page */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { border: 1px solid var(--stroke-2); background: var(--bg-2); padding: 22px; }
.contact-card h3 { font-size: 1.15rem; text-transform: none; margin: 10px 0 12px; }
.contact-card__line { font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink); margin-top: 4px; }
.contact-card__line a { color: var(--amber); }
.contact-card__note { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.contact-facts { margin-top: 22px; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--stroke-2); background: var(--bg-2); font-family: var(--mono); font-size: var(--fs-sm); }
.contact-fact { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--stroke); }
.contact-fact:last-child { border-bottom: 0; }
.contact-fact .k { color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: var(--fs-xs); }
.contact-fact .v { color: var(--ink); }
.contact-fact .v a { color: var(--amber); }
.contact-map { width: 100%; height: auto; border: 1px solid var(--stroke-2); display: block; }

/* ---------------------------------------------------------- cookie bar */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg-3); border-top: 1px solid var(--stroke-2); box-shadow: 0 -8px 24px rgba(0,0,0,.35); }
.cookie-bar__in { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gut); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-bar__txt { flex: 1 1 320px; font-size: .9rem; color: var(--ink-2); }
.cookie-bar__txt a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar[hidden] { display: none; }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-fact { grid-template-columns: 1fr; gap: 4px; }
}
