:root {
  --bg: #07090d;
  --bg-2: #0c1017;
  --panel: #111821;
  --line: #243044;
  --text: #e8eef7;
  --muted: #8a97ab;
  --accent: #5b8cff;
  --accent-2: #8b7cff;
  --ok: #3ee0a0;
  --danger: #ff6b7a;
  --max: 1120px;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(91, 140, 255, 0.14), transparent 50%),
    radial-gradient(700px 380px at -10% 20%, rgba(139, 124, 255, 0.1), transparent 46%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: 0;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #9bbcff;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 10px;
  top: 10px;
  z-index: 80;
  background: var(--panel);
  padding: 8px 12px;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--ok));
  z-index: 70;
}

.site-header,
.hero,
.wrap,
.page-hero,
.layout,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.mark {
  width: 38px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061018;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.logo b {
  display: block;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.logo span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--text);
}

.nav .contact-link {
  color: #061018;
  background: var(--accent);
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.nav .contact-link:hover {
  color: #061018;
  filter: brightness(1.08);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ok);
  letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 46ch;
}

.terminal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #0a0e14;
}

.terminal-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4556;
}

.terminal-bar i:first-child { background: #ff6b7a; }
.terminal pre {
  margin: 0;
  padding: 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #c9d6e8;
  white-space: pre-wrap;
}

.terminal .ok { color: var(--ok); }
.terminal .cmd { color: var(--accent); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px 80px;
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.card {
  grid-column: span 2;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  color: inherit;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.card.wide {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 434px;
  background:
    linear-gradient(180deg, rgba(91, 140, 255, 0.08), transparent 40%),
    var(--panel);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
}

.num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.card h2 {
  margin: 10px 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.card.wide h2 {
  font-size: 34px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .go {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ok);
}

.section-title {
  margin: 56px 0 16px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}

.panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.note-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 140px 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}

.note-strip b {
  display: grid;
  place-items: center;
  background: #0a1220;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ok);
}

.note-strip p {
  margin: 0;
  padding: 16px 18px;
  color: var(--muted);
}

.site-footer {
  background: #05070a;
  border-top: 1px solid var(--line);
  padding: 36px 20px 24px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.site-footer h4 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 6px;
}

.copy {
  max-width: var(--max);
  margin: 22px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #66758a;
  font-size: 13px;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 8px;
}

.page-hero h1 {
  max-width: 28ch;
}

.article-figure {
  margin: 20px 0 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}

.article-figure img {
  width: 100%;
  height: auto;
}

.meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 20px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 40px;
}

.article {
  max-width: 72ch;
}

.lead {
  font-size: 20px;
  color: #c5d0e0;
}

.article h2 {
  margin: 40px 0 12px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.article h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.article p,
.article li {
  color: #c9d3e0;
}

blockquote {
  margin: 22px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: #101826;
  border-radius: 0 10px 10px 0;
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
  background: var(--panel);
}

th,
td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #0b1220;
  color: var(--text);
  font-weight: 600;
}

.toc {
  position: sticky;
  top: 78px;
  align-self: start;
  padding: 12px 0 12px 14px;
  border-left: 1px solid var(--line);
}

.toc p {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toc a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 8px;
}

.toc a.is-active,
.toc a:hover {
  color: var(--accent);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.related a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  color: var(--muted);
}

.related strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.form {
  display: grid;
  gap: 10px;
  max-width: 480px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--accent);
  color: #061018;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.form-ok {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: #10261c;
  color: var(--ok);
  border: 1px solid #1f5a42;
}

.stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.stamp {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ok);
  border: 1px solid #1f5a42;
  background: #10261c;
  border-radius: 999px;
  padding: 4px 8px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 0 12px 52px;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero,
  .layout,
  .two,
  .footer-inner,
  .related,
  .note-strip,
  .dossier-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .card.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0b0f16;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 16px;
    gap: 12px;
  }

  .nav.open {
    display: flex;
  }

  .toc {
    display: none;
  }
}
