:root {
  --bg: #0B1220;
  --surface: #121A2B;
  --surface-2: #182338;
  --text: #E8EEF7;
  --muted: #9AA8BD;
  --accent: #3D8BFF;
  --accent-2: #6AA4FF;
  --ok: #3CB371;
  --line: #2A3A55;
  --danger: #D9786A;
  --radius: 12px;
  --max: 1120px;
  --header-h: 68px;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #061018;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: 36px; }
.brand-name { font-weight: 650; letter-spacing: 0.12em; font-size: 0.92rem; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.lang { display: flex; gap: 6px; font-size: 0.8rem; }
.lang a { color: var(--muted); text-decoration: none; padding: 4px 6px; border: 1px solid transparent; border-radius: 6px; }
.lang a[aria-current="true"] { color: var(--text); border-color: var(--line); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  color: #061018;
  background: var(--accent);
}
.btn:hover { background: var(--accent-2); color: #061018; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.hero { padding: 72px 0 48px; }
.kicker {
  color: var(--ok);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 650;
  margin: 0 0 12px;
}
h1, h2, h3, h4 {
  font-family: "IBM Plex Serif", "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 12px;
}
h1 { font-size: clamp(2rem, 4vw, 3.15rem); max-width: 18ch; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section header { margin-bottom: 28px; max-width: 70ch; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
tr:last-child td { border-bottom: 0; }

.sov-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sov { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.sov strong { display: block; font-size: 0.82rem; letter-spacing: 0.04em; }
.sov span { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 6px; }

.arch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.note {
  border-left: 3px solid var(--ok);
  padding: 8px 0 8px 14px;
  color: var(--muted);
}
.warn {
  border-left: 3px solid var(--danger);
  padding: 8px 0 8px 14px;
  color: var(--muted);
}

details.faq {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
}
details.faq p { color: var(--muted); margin: 8px 0 0; }

form { display: grid; gap: 14px; max-width: 640px; }
label { display: grid; gap: 6px; font-size: 0.9rem; }
input, select, textarea {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.88rem; }

.placeholder {
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  padding: 2px 6px;
  border-radius: 4px;
}

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-grid a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
.footer-grid a:hover { color: var(--text); }
.legal-list { color: var(--muted); }
.legal-list dt { color: var(--text); margin-top: 16px; }

@media (max-width: 920px) {
  .grid-4, .sov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: none; }
  .nav-panel {
    display: flex;
    flex-basis: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding-bottom: 10px;
  }
  .header-inner { flex-wrap: wrap; }
  .grid-2, .grid-3, .grid-4, .sov-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { max-width: none; }
}
@page { margin: 16mm; }
@media print {
  .site-header, .hero-actions, .menu-toggle { position: static; }
  body { background: #fff; color: #111; }
  .card, .sov, table { break-inside: avoid; }
}
