/* Geneva Onyx & Brushed Gold + Executive Ivory — Gruppa Alfa International */
:root {
  color-scheme: dark;
  --bg: #070A10;
  --bg-elev: #0D131F;
  --bg-card: #111827;
  --bg-recess: #090D16;
  --bg-glass: rgba(13, 19, 31, 0.84);
  --ink: #F3F6FA;
  --muted: #98A6BA;
  --line: rgba(148, 163, 184, 0.15);
  --line-strong: rgba(212, 170, 90, 0.38);
  --gold: #D4AA5A;
  --gold-soft: rgba(212, 170, 90, 0.13);
  --gold-ink: #080B11;
  --emerald: #28B47E;
  --emerald-soft: rgba(40, 180, 126, 0.14);
  --crimson: #E05A4F;
  --crimson-soft: rgba(224, 90, 79, 0.14);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F4EE;
  --bg-elev: #EFECE3;
  --bg-card: #FFFFFF;
  --bg-recess: #F2EFE7;
  --bg-glass: rgba(246, 244, 238, 0.88);
  --ink: #0E1626;
  --muted: #4C5B70;
  --line: rgba(14, 22, 38, 0.12);
  --line-strong: rgba(142, 101, 24, 0.36);
  --gold: #8E6518;
  --gold-soft: rgba(142, 101, 24, 0.11);
  --gold-ink: #FFFFFF;
  --emerald: #15734B;
  --emerald-soft: rgba(21, 115, 75, 0.11);
  --crimson: #B42318;
  --crimson-soft: rgba(180, 35, 24, 0.1);
  --shadow: 0 14px 36px rgba(14, 22, 38, 0.07);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15.5px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus { left: 16px; }

.container {
  width: min(94vw, 2880px);
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #9C302A;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 19px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-recess);
  border: 1px solid var(--line);
}
.lang-switch a, .lang-switch button {
  padding: 6px 11px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 700 13px/1 inherit;
  cursor: pointer;
}
.lang-switch a.active, .lang-switch button.active {
  background: var(--bg-card);
  color: var(--gold);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink);
  font: 650 14.5px/1 inherit;
  cursor: pointer;
  transition: border-color .15s ease, transform .12s ease;
}
.btn:hover { border-color: var(--gold); }
.btn.primary {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: transparent;
  font-weight: 750;
}
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }

.hero {
  padding: 48px 0 36px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: stretch;
}
.hero-copy {
  background: radial-gradient(circle at 12% 10%, var(--gold-soft), transparent 52%), var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 42px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.09;
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.hero-lead {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 17px;
  max-width: 62ch;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.metric-val {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.metric-lbl {
  font-size: 13px;
  color: var(--muted);
}

/* Interactive GS1 DataMatrix Console */
.gs1-console {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.console-title {
  font-weight: 750;
  font-size: 17px;
}
.status-chip {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 750;
  background: var(--emerald-soft);
  color: var(--emerald);
}
.status-chip.bad { background: var(--crimson-soft); color: var(--crimson); }
.sample-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip-btn {
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-recess);
  color: var(--ink);
  font: 600 13px/1.2 inherit;
  cursor: pointer;
}
.chip-btn:hover { border-color: var(--gold); }
.gs1-input {
  width: 100%;
  background: var(--bg-recess);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  font: 13.5px/1.45 ui-monospace, "Cascadia Code", Consolas, monospace;
}
.gs1-output {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: var(--bg-recess);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.dm-box {
  width: 112px;
  height: 112px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  place-items: center;
}
.parsed-list {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}
.parsed-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 4px;
}
.parsed-row:last-child { border-bottom: 0; padding-bottom: 0; }
.parsed-key { color: var(--muted); }
.parsed-val { font-weight: 700; text-align: right; }

/* Bento Grid Sections */
.section { padding: 26px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(23px, 2.2vw, 32px);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  max-width: 68ch;
}
.bento-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: -0.015em;
}
.card p {
  margin: 0 0 16px;
  color: var(--muted);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 9px;
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 800;
}
.country-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.country-item {
  background: var(--bg-recess);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.country-item strong { display: block; font-size: 14.5px; }
.country-item span { font-size: 13px; color: var(--muted); }

/* Legal & Inner Pages */
.prose-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 38px;
  box-shadow: var(--shadow);
  width: 100%;
}
.prose-card h1 { max-width: none; font-size: clamp(26px, 2.8vw, 40px); }
.prose-card h2 { margin: 28px 0 10px; font-size: 21px; }
.prose-card p, .prose-card li { color: var(--muted); font-size: 15.5px; }
.prose-card strong { color: var(--ink); }
.prose-card code {
  background: var(--bg-recess);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ink);
}
.lang-pane[hidden] { display: none; }

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.footer-links {
  display: grid;
  gap: 8px;
}
.footer-links a:hover { color: var(--gold); }

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; }
  .col-7, .col-5, .col-6, .col-4, .col-3 { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-copy, .gs1-console, .card, .prose-card { padding: 22px; }
  .metrics-strip, .country-grid, .gs1-output { grid-template-columns: 1fr; }
}
