/* Токены — бренд-гайд §2. В компонентах сырые hex не используются. */
:root {
  color-scheme: dark;
  --bg: #07090D;
  --bg2: #0B0F16;
  --surface: #10151F;
  --surface2: #151B28;
  --line: rgba(148, 178, 255, .14);
  --line2: rgba(148, 178, 255, .28);
  --text: #EEF2F9;
  --muted: #9AA6BC;
  --faint: #75839C;
  --accent: #4C8DFF;
  --accent2: #8FBBFF;
  --accent-dim: rgba(76, 141, 255, .16);
  --glow: rgba(76, 141, 255, .35);
  --hero-glow: rgba(76, 141, 255, .14);
  --ink: #07090D;
  --on-accent: #fff;
  --header: rgba(7, 9, 13, .88);
  --shadow: rgba(0, 0, 0, .35);
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --header-h: 4.5rem;
  --wrap: 1180px;
  --pad: clamp(20px, 6vw, 84px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }
a, button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: var(--accent2); text-underline-offset: .18em; }
p { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 6.2vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.9vw, 2.7rem); max-width: 22ch; }
.hl { color: var(--accent2); }
.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;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: .65rem 1rem;
  border-radius: 99px;
}
.skip:focus { top: 1rem; }
.wrap {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  max-width: 100%;
  margin-inline: auto;
  min-width: 0;
}
section[id] { scroll-margin-top: calc(var(--header-h) + .75rem); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .75em;
  margin: 0 0 clamp(1rem, 2.4vh, 1.6rem);
  font-family: var(--font-mono);
  font-size: clamp(.68rem, 1.4vw, .8rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent2);
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.lede {
  max-width: min(58ch, 100%);
  margin-top: clamp(1.1rem, 2.6vh, 1.7rem);
  font-size: clamp(1.02rem, 1.9vw, 1.22rem);
  color: var(--muted);
}
.lede b { color: var(--text); font-weight: 600; }

.mark { width: 34px; height: 34px; color: var(--accent); flex: none; }
.mark path { stroke: currentColor; fill: none; }
.mark .mark-base { stroke: var(--accent2); }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}
.wordmark .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.header .wordmark svg { filter: drop-shadow(0 0 6px var(--glow)); }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-inline: var(--pad);
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  padding: .55rem .75rem;
  border-radius: 99px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a:active { background: var(--surface2); }
.nav a[aria-current="page"] { color: var(--accent2); background: var(--accent-dim); }
.header-cta { margin-left: .35rem; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line2);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle .bars::before { top: -5px; }
.nav-toggle .bars::after { top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1.15rem;
  border-radius: 99px;
  border: 1px solid var(--line2);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn:hover { border-color: var(--accent); background: var(--surface2); }
.btn:active { background: var(--surface2); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 500;
}
.btn-primary:hover,
.btn-primary:active { background: var(--accent2); border-color: var(--accent2); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: clamp(1.6rem, 4vh, 2.4rem); }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 0;
  padding: clamp(3.2rem, 8vh, 6rem) 0;
  background:
    radial-gradient(1200px 640px at 78% -10%, var(--hero-glow), transparent 60%),
    var(--bg);
}
.hero .wrap {
  flex: 0 1 auto;
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  max-width: min(var(--wrap), calc(100% - var(--pad) * 2));
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-mark {
  position: absolute;
  z-index: 0;
  right: clamp(48px, 7vw, 120px);
  top: 50%;
  width: min(34vw, 420px);
  height: auto;
  transform: translateY(-48%);
  opacity: .42;
  pointer-events: none;
  filter: drop-shadow(0 0 22px var(--glow));
}
.hero-mark path { fill: none; }
.hero .wrap { position: relative; z-index: 1; }
.cover-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 2.2rem;
  margin-top: clamp(2rem, 5vh, 3.2rem);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section { padding: clamp(2.8rem, 5vh, 4.2rem) 0; border-top: 1px solid var(--line); position: relative; }
.section .wrap { position: relative; z-index: 1; }
.ghost {
  position: absolute;
  top: clamp(1.2rem, 3vh, 2.2rem);
  right: clamp(16px, 4vw, 48px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line2);
  user-select: none;
  pointer-events: none;
}

.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
}
.grid > * { background: var(--bg2); padding: clamp(1.15rem, 2.4vh, 1.7rem) clamp(1.05rem, 2.2vw, 1.55rem); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.cell-k {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(.98rem, 1.8vw, 1.18rem);
  margin-bottom: .55rem;
  text-wrap: balance;
}
.cell-k .n {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .85em;
  margin-right: .55em;
}
.cell-v { color: var(--muted); font-size: clamp(.9rem, 1.5vw, 1rem); }
.nums { font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.15rem; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: 100%;
  padding: .35rem .75rem;
  border-radius: 99px;
  border: 1px solid var(--line2);
  background: var(--accent-dim);
  color: var(--accent2);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
a.chip { min-height: 44px; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
a.chip:hover { border-color: var(--accent); color: var(--text); }

.bigline {
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.02rem, 2.2vw, 1.45rem);
  max-width: 36ch;
}
.bigline .acc { color: var(--accent2); }
.bigline small, .note {
  display: block;
  margin-top: .55rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 64ch;
}
.note a { font-weight: 600; }

.cases { margin-top: clamp(1.6rem, 4vh, 2.6rem); }
.case-k { margin-bottom: .7rem; }
.case-v + .case-v { margin-top: .7rem; }

.contact-phone {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.15;
}
.contact-phone:hover { color: var(--accent2); }
.addr { font-style: normal; color: var(--muted); }

.page-head { padding: clamp(3.2rem, 8vh, 5.5rem) 0 clamp(1.2rem, 3vh, 2rem); }
.page-head h1 { font-size: clamp(1.7rem, 4.2vw, 3rem); max-width: 22ch; }
.subhead { margin-top: 1.8rem; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.plain strong { color: var(--text); font-weight: 600; }
.toc { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.4rem; }
.spec { margin-top: clamp(1.2rem, 3vh, 1.8rem); }
.spec > div {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) 1fr;
  gap: .35rem 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.spec > div:last-child { border-bottom: 1px solid var(--line); }
.spec dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.spec dd { margin: 0; }
.spec a { font-weight: 600; }

.block { margin-top: clamp(2.4rem, 6vh, 3.6rem); }
.codes { list-style: none; margin: clamp(1.2rem, 3vh, 1.8rem) 0 0; padding: 0; }
.codes li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.codes li:last-child { border-bottom: 1px solid var(--line); }
.code {
  font-family: var(--font-mono);
  color: var(--accent2);
  letter-spacing: .04em;
}
.plain { margin: .85rem 0 0; color: var(--muted); max-width: 65ch; }
.plain + .plain { margin-top: .7rem; }
.service-list { margin: 1rem 0 0; padding: 0; list-style: none; max-width: 76ch; }
.service-list li {
  padding: .85rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list strong { color: var(--text); font-weight: 600; }

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 5vh, 3rem) 0 1.4rem;
  background: var(--bg2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr .7fr;
  gap: 2rem;
}
.footer-lead { margin-top: 1rem; color: var(--muted); max-width: 36ch; }
.footer-meta {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  line-height: 1.7;
}
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; }
.footer-nav a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: .88rem;
}

.miss {
  padding: clamp(3.2rem, 8vh, 5.5rem) 0 clamp(3rem, 6vh, 4.5rem);
}
.miss h1 {
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  max-width: 12ch;
}

@media (max-width: 1180px) {
  .hero-mark { display: none; }
}
@media (max-width: 1120px) {
  .wordmark .name { letter-spacing: .16em; font-size: .82rem; }
  .nav a { padding-inline: .5rem; }
  .header-cta { display: none; }
}
@media (max-width: 980px) {
  .g3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .header {
    height: var(--header-h);
    flex-wrap: nowrap;
    padding-block: 0;
  }
  .header-cta { display: none; }
  .nav-toggle {
    display: grid;
    margin-left: auto;
    flex: none;
    position: relative;
    z-index: 2;
  }
  .header:has(.nav-toggle) .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    margin: .55rem 0 0;
    padding: .6rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line2);
    border-radius: 16px;
    box-shadow: 0 18px 50px var(--shadow);
  }
  .header:has(.nav-toggle) .nav.is-open { display: flex; }
  .header:not(:has(.nav-toggle)) {
    height: auto;
    flex-wrap: wrap;
    padding-block: .55rem;
  }
  .header:not(:has(.nav-toggle)) .nav {
    display: flex;
    position: static;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }
  html:not(.js) .nav {
    display: flex;
    position: static;
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 .4rem;
  }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header { height: auto; flex-wrap: wrap; padding-block: .55rem; }
  body.nav-open { overflow: hidden; }
  .nav a { width: 100%; }
  .g2, .g3, .cases { grid-template-columns: 1fr; }
  .spec > div, .codes li { grid-template-columns: 1fr; gap: .3rem; }
  .hero-mark { display: none; }
  .ghost { font-size: 2.4rem; }
  .wordmark .name { letter-spacing: .16em; font-size: .8rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-height: 760px) {
  .hero { min-height: 0; padding-top: 2.4rem; padding-bottom: 2.8rem; }
  h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .nav-toggle, #stars, .hero-mark, .header-cta { display: none !important; }
  .header, .nav { position: static; display: flex; height: auto; background: var(--bg); }
  .nav { flex-wrap: wrap; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
