@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/spectral-cyr-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/spectral-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/spectral-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/commissioner-cyr-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/commissioner-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/commissioner-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/commissioner-cyr-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/commissioner-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/commissioner-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}

:root {
  --fog: #eeeaf6;
  --paper: #fffdf8;
  --ink: #1b1730;
  --muted: #4d4663;
  --indigo: #261b45;
  --plum: #5c3d8a;
  --lime: #c5e05a;
  --lime-ink: #24300a;
  --focus: #5c3d8a;
  --serif: "Spectral", "Times New Roman", serif;
  --sans: "Commissioner", system-ui, sans-serif;
  --container: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink);
  background:
    repeating-linear-gradient(135deg, rgba(197, 224, 90, 0.12) 0 10px, transparent 10px 22px),
    var(--fog);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 80;
  padding: 0.6rem 1rem;
  background: var(--lime);
  color: var(--lime-ink);
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 1rem; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--indigo);
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); margin: 0 0 0.9rem; max-width: 22ch; }
h3 { font-size: 1.15rem; margin: 1.35rem 0 0.5rem; }
p { margin: 0 0 1rem; color: var(--muted); }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 4px solid var(--indigo);
  box-shadow: 8px 0 0 var(--lime) inset;
}

.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2rem, 1360px);
  min-height: 76px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--indigo);
}

.geo {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: var(--lime);
  color: var(--lime-ink);
  padding: 0.18rem 0.4rem;
}

.desktop {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: 0.85rem;
  overflow: auto;
}
.desktop a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.desktop a:hover { color: var(--indigo); border-bottom-color: var(--lime); }

.actions { display: flex; align-items: center; gap: 0.5rem; }

.lang { display: inline-flex; background: var(--fog); }
.lang a {
  min-width: 42px;
  min-height: 36px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
}
.lang a[aria-current="page"] { background: var(--indigo); color: var(--lime); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  border: 2px solid var(--indigo);
  background: transparent;
  color: var(--indigo);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--lime); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--indigo); color: var(--paper); border-color: var(--indigo); }
.btn-primary:hover { background: var(--plum); color: var(--paper); }

.nav-toggle, .burger, .mobile { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr);
  gap: 1.5rem;
  align-items: end;
  width: min(100% - 2rem, 1200px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.8rem) 0 2.6rem;
}

.hero-panel {
  background: var(--paper);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: 12px 12px 0 var(--lime);
}

.kicker {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.hero-flag {
  min-height: 220px;
  background:
    repeating-linear-gradient(-18deg, var(--indigo) 0 18px, var(--plum) 18px 28px),
    var(--indigo);
  color: var(--lime);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}
.hero-flag p { margin: 0; color: var(--lime); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-flag strong {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--paper);
}

.section { padding-bottom: 2.4rem; }

.banner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 132px;
  padding: 1rem 6vw;
  overflow: hidden;
  background: var(--indigo);
  color: var(--paper);
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 18px;
  background: repeating-linear-gradient(180deg, var(--lime) 0 10px, var(--indigo) 10px 18px);
}

.banner-title {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--paper);
}

.num {
  font-family: var(--sans);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.04em;
}

.banner svg {
  width: min(22vw, 140px);
  opacity: 0.85;
}

.body { padding-top: 1.5rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.05rem 1.1rem 1.1rem;
  background: var(--paper);
  border: 1px solid rgba(38, 27, 69, 0.12);
  border-left: 6px solid var(--lime);
}

.card h3 { margin: 0 0 0.4rem; }
.card p { margin: 0; }

.samples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.samples li {
  padding: 0.4rem 0.75rem;
  background: var(--indigo);
  color: var(--lime);
  font-weight: 700;
}

.gold { color: var(--plum); font-weight: 700; }

.layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin-top: 0.7rem;
}

.faq {
  margin-bottom: 0.5rem;
  padding: 0.8rem 1rem;
  background: var(--paper);
  border-left: 6px solid var(--plum);
}
.faq summary { cursor: pointer; color: var(--indigo); font-weight: 700; }

.form {
  display: grid;
  gap: 0.7rem;
  padding: 1.1rem;
  background: var(--indigo);
  color: var(--paper);
}
.form h3 { color: var(--lime); margin-top: 0; }
.form label { display: grid; gap: 0.3rem; color: var(--paper); }
.form input, .form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--lime);
  background: var(--paper);
  color: var(--ink);
}
.form input:user-invalid, .form textarea:user-invalid { border-color: #e07a7a; }

.footer {
  padding: 2rem 0 2.4rem;
  background: var(--indigo);
  color: var(--paper);
  text-align: left;
}
.footer p { color: #d8d3e6; }
.footer p:first-child { color: var(--lime); font-weight: 700; }

@media (max-width: 1280px) {
  .desktop, .hide-sm { display: none; }
  .burger {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 0.75rem;
    border: 2px solid var(--indigo);
    color: var(--indigo);
    cursor: pointer;
    font-weight: 700;
  }
  .mobile {
    display: none;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0 1rem 1rem;
    background: var(--paper);
  }
  .mobile a { text-decoration: none; color: var(--indigo); font-weight: 700; }
  .nav-toggle:checked ~ .mobile { display: flex; }
}

@media (max-width: 1024px) {
  .hero, .layout, .grid { grid-template-columns: 1fr; }
  .hero-flag { min-height: 140px; }
}

@media (max-width: 768px) {
  .banner { grid-template-columns: 1fr; min-height: 120px; padding: 1rem 1.2rem 1rem 2rem; }
  .banner svg { display: none; }
}

.toc {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto 2rem;
  padding: 1.1rem 1.2rem;
  background: var(--paper, #fffdf8);
  border: 2px solid var(--indigo, #261b45);
  box-shadow: 8px 8px 0 var(--lime, #c5e05a);
}
.toc h2 { margin: 0 0 0.7rem; font-size: 1.1rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc a { color: var(--plum, #5c3d8a); text-decoration: none; font-weight: 700; }
.toc a:hover { color: var(--indigo, #261b45); }
.lead { font-size: 1.05rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.1rem; }
.table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th, .table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--indigo, #261b45);
  text-align: left;
  vertical-align: top;
}
.table th { background: var(--indigo, #261b45); color: var(--lime, #c5e05a); }
.list { margin: 0 0 1rem; padding-left: 1.2rem; }
.list li { margin: 0 0 0.4rem; }
.section-cta { margin: 1rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
