
/* Art direction: Ukrainian civil protection system — official, trustworthy, grounded
   Palette: warm earth tones (ochre, terracotta, stone), not the typical blue/purple AI palette
   Typography: Exo 2 (display, engineered precision) + Raleway (body, readable authority)
   Density: balanced — professional with breathing room */

/* ═══════════ TOKENS ═══════════ */
:root {
  /* Type */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl:  clamp(2.5rem, 1rem + 4vw, 5rem);
  --font-display: 'Exo 2', 'Trebuchet MS', sans-serif;
  --font-body: 'Raleway', 'Segoe UI', sans-serif;
  /* Spacing */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  /* Radius */
  --radius-sm: .375rem; --radius-md: .5rem; --radius-lg: .75rem;
  --radius-xl: 1rem; --radius-full: 9999px;
  /* Transitions */
  --trans: 180ms cubic-bezier(.16,1,.3,1);
  /* Content widths */
  --narrow: 640px; --default: 1000px; --wide: 1240px;
}

/* ═══════════ LIGHT THEME ═══════════ */
:root, [data-theme="light"] {
  --bg:          #f5f2ec;
  --surface:     #faf8f4;
  --surface-2:   #ffffff;
  --surface-off: #edeae3;
  --surface-dyn: #e4e0d8;
  --divider:     #d8d4cc;
  --border:      #ccc8c0;
  --text:        #2a2520;
  --text-muted:  #756f66;
  --text-faint:  #b5b0a8;
  --text-inv:    #f8f6f2;
  /* Accent — warm ochre/amber (avoids blue/purple AI palette) */
  --accent:        #8b5e1a;
  --accent-hover:  #6e4912;
  --accent-active: #50340d;
  --accent-light:  #f0e4cc;
  /* Secondary — terracotta */
  --terra:         #b34c2a;
  --terra-hover:   #8f3c20;
  --terra-light:   #f5ddd4;
  /* Success */
  --success:       #3d7a2f;
  --success-light: #d4eacc;
  /* Shadow */
  --shadow-sm: 0 1px 3px oklch(0.2 0.02 60 / .07);
  --shadow-md: 0 4px 16px oklch(0.2 0.02 60 / .09);
  --shadow-lg: 0 12px 40px oklch(0.2 0.02 60 / .13);
}

/* ═══════════ DARK THEME ═══════════ */
[data-theme="dark"] {
  --bg:          #1a1712;
  --surface:     #201d18;
  --surface-2:   #252117;
  --surface-off: #1e1b16;
  --surface-dyn: #2e2a22;
  --divider:     #302c24;
  --border:      #3d3930;
  --text:        #d4cec5;
  --text-muted:  #7d7870;
  --text-faint:  #5a5650;
  --text-inv:    #2a261e;
  --accent:        #d4973a;
  --accent-hover:  #e6ab55;
  --accent-active: #f0c077;
  --accent-light:  #3a3120;
  --terra:         #d4724a;
  --terra-hover:   #e08060;
  --terra-light:   #3d2218;
  --success:       #66b24e;
  --success-light: #1e3418;
  --shadow-sm: 0 1px 3px oklch(0 0 0 / .25);
  --shadow-md: 0 4px 16px oklch(0 0 0 / .35);
  --shadow-lg: 0 12px 40px oklch(0 0 0 / .45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg:#1a1712; --surface:#201d18; --surface-2:#252117; --surface-off:#1e1b16;
    --surface-dyn:#2e2a22; --divider:#302c24; --border:#3d3930;
    --text:#d4cec5; --text-muted:#7d7870; --text-faint:#5a5650; --text-inv:#2a261e;
    --accent:#d4973a; --accent-hover:#e6ab55; --accent-active:#f0c077; --accent-light:#3a3120;
    --terra:#d4724a; --terra-hover:#e08060; --terra-light:#3d2218;
    --success:#66b24e; --success-light:#1e3418;
    --shadow-sm:0 1px 3px oklch(0 0 0/.25); --shadow-md:0 4px 16px oklch(0 0 0/.35); --shadow-lg:0 12px 40px oklch(0 0 0/.45);
  }
}

/* ═══════════ BASE ═══════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: var(--space-20);
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.15; }
p, li { text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: oklch(from var(--accent) l c h / .22); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ═══════════ SKIP LINK ═══════════ */
.skip-link {
  position: absolute; left: -9999px; top: var(--space-2);
  background: var(--accent); color: var(--text-inv);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  font-weight: 600; z-index: 1000; font-size: var(--text-sm);
}
.skip-link:focus { left: var(--space-4); }

/* ═══════════ LAYOUT ═══════════ */
.container {
  max-width: var(--default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
}

/* ═══════════ HEADER ═══════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; gap: var(--space-4);
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: var(--space-2);
  color: var(--text); font-family: var(--font-display);
  font-weight: 700; font-size: var(--text-lg); white-space: nowrap;
  flex-shrink: 0;
}
.logo svg { color: var(--accent); transition: color var(--trans); }
.logo:hover svg { color: var(--accent-hover); }
.main-nav { flex: 1; }
.main-nav ul {
  display: flex; list-style: none; gap: var(--space-1);
  flex-wrap: wrap;
}
.nav-link {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  color: var(--text-muted); font-size: var(--text-sm);
  border-radius: var(--radius-md);
  transition: color var(--trans), background var(--trans);
  white-space: nowrap;
}
.nav-link i { font-size: .85em; transition: color var(--trans); }
.nav-link:hover, .nav-link.active {
  color: var(--accent); background: var(--accent-light);
}
.nav-link.active { font-weight: 600; }

.header-controls { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

/* Lang switcher */
.lang-switcher { display: flex; gap: 2px; }
.lang-btn {
  padding: 4px 8px; border-radius: var(--radius-sm);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .03em;
  color: var(--text-muted); background: transparent;
  border: 1px solid oklch(from var(--text) l c h / .12);
  transition: color var(--trans), background var(--trans), border-color var(--trans);
}
.lang-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
.lang-btn.active { color: var(--accent); background: var(--accent-light); border-color: var(--accent); }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); color: var(--text-muted);
  transition: color var(--trans), background var(--trans);
}
.theme-toggle:hover { color: var(--accent); background: var(--accent-light); }

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-muted); border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════ PAGES ═══════════ */
.page { display: none; }
.page.active { display: block; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: clamp(420px, 60vh, 700px);
  display: flex; align-items: center; overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    oklch(0.15 0.04 50 / .82) 0%,
    oklch(0.2 0.06 50 / .55) 60%,
    oklch(0.2 0.02 60 / .2) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-block: var(--space-20);
  max-width: 700px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: oklch(from var(--accent) l c h / .2);
  border: 1px solid oklch(from var(--accent) l c h / .4);
  color: #f0d090;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full); font-size: var(--text-xs);
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-3xl); color: #f5f0e8;
  margin-bottom: var(--space-4); line-height: 1.1;
}
.hero-subtitle {
  font-size: var(--text-lg); color: #d4cec0;
  margin-bottom: var(--space-8); max-width: 60ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md); font-weight: 600;
  font-size: var(--text-sm); transition: background var(--trans), color var(--trans), box-shadow var(--trans);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--text-inv);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--text-inv); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: oklch(from var(--surface-2) l c h / .15);
  border: 1px solid oklch(1 0 0 / .3);
  color: #f0e8d8;
}
.btn-ghost:hover { background: oklch(1 0 0 / .15); color: #fff; }

/* ═══════════ AUTHORITY BAR ═══════════ */
.authority-bar {
  background: var(--surface-off);
  border-top: 2px solid var(--accent);
  padding: var(--space-6) 0;
}
.authority-quote {
  display: flex; gap: var(--space-4); align-items: flex-start;
}
.authority-quote i {
  font-size: 2rem; color: var(--accent); flex-shrink: 0; margin-top: .1em;
}
.authority-quote p {
  font-size: var(--text-base); color: var(--text-muted);
  font-style: italic; max-width: 80ch;
}

/* ═══════════ STATS BAR ═══════════ */
.stats-bar {
  background: var(--accent);
  padding: var(--space-8) 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-8); text-align: center;
}
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-2xl); color: var(--text-inv); line-height: 1;
}
.stat-label {
  display: block; font-size: var(--text-xs); color: oklch(from var(--text-inv) l c h / .8);
  margin-top: var(--space-1); text-transform: uppercase; letter-spacing: .08em;
}

/* ═══════════ FEATURE SECTION ═══════════ */
.feature-section {
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
}
.feature-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-12); align-items: center;
}
.feature-text h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xl); color: var(--text); margin-bottom: var(--space-4);
}
.feature-text p { color: var(--text-muted); margin-bottom: var(--space-4); max-width: 55ch; }
.feature-list { list-style: none; margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.feature-list li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--text-sm); color: var(--text);
}
.feature-list i { color: var(--success); font-size: 1rem; flex-shrink: 0; margin-top: .15em; }
.feature-image img {
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}

/* ═══════════ HIERARCHY ═══════════ */
.hierarchy-section {
  background: var(--surface);
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xl); color: var(--text);
  text-align: center; margin-bottom: var(--space-4);
}
.section-sub {
  text-align: center; color: var(--text-muted); font-size: var(--text-sm);
  max-width: 64ch; margin-inline: auto; margin-bottom: var(--space-10);
}
.hierarchy-tree {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  max-width: 480px; margin-inline: auto;
}
.h-node {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-1);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  text-align: center;
}
.h-node i { font-size: 1.5rem; color: var(--text-faint); }
.h-node strong { font-family: var(--font-display); font-size: var(--text-lg); color: var(--text); }
.h-node span { font-size: var(--text-sm); color: var(--text-muted); }
.h-highlight { border-color: var(--accent); background: var(--accent-light); }
.h-highlight i, .h-highlight strong { color: var(--accent); }
.h-arrow {
  padding: var(--space-1) 0;
  color: var(--text-faint); font-size: 1rem;
}
.hierarchy-note {
  margin-top: var(--space-8); padding: var(--space-4) var(--space-5);
  background: var(--surface-off); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: flex; gap: var(--space-3); align-items: flex-start;
  font-size: var(--text-sm); color: var(--text-muted);
  max-width: var(--default);
}
.hierarchy-note i { color: var(--accent); flex-shrink: 0; margin-top: .1em; }

/* ═══════════ FULL BLEED ═══════════ */
.full-bleed-section { position: relative; min-height: 400px; display: flex; align-items: center; overflow: hidden; }
.full-bleed-img { position: absolute; inset: 0; }
.full-bleed-img img { width: 100%; height: 100%; object-fit: cover; }
.full-bleed-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, oklch(0.15 0.04 50 / .88), oklch(0.15 0.04 50 / .4));
}
.full-bleed-content {
  position: relative; z-index: 2; padding-block: var(--space-16);
  max-width: 560px;
}
.full-bleed-content h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xl); color: #f5f0e8; margin-bottom: var(--space-4);
}
.full-bleed-content p { color: #c8c2b4; font-size: var(--text-base); }

/* ═══════════ PAGE HERO SIMPLE ═══════════ */
.page-hero-simple {
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  padding: clamp(var(--space-8), 5vw, var(--space-16)) 0;
}
.page-hero-simple h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-2xl); color: var(--text); margin-bottom: var(--space-3);
}
.page-hero-simple p { color: var(--text-muted); font-size: var(--text-base); max-width: 64ch; }

.page-content { padding-block: clamp(var(--space-8), 5vw, var(--space-16)); }
.page-content h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xl); color: var(--text);
  margin-bottom: var(--space-6); margin-top: var(--space-12);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--divider);
}
.page-content h2:first-child { margin-top: 0; }

/* ═══════════ SEO QUOTE ═══════════ */
.seo-quote-block {
  background: var(--surface-off);
  border-left: 4px solid var(--accent);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-bottom: var(--space-10);
}
.seo-quote-block blockquote p {
  font-style: italic; color: var(--text-muted);
  font-size: var(--text-base); max-width: 80ch;
}

/* ═══════════ NORM CARDS ═══════════ */
.norm-cards {
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
}
.norm-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.norm-card-header { display: flex; gap: var(--space-4); align-items: flex-start; }
.norm-card-header > i {
  font-size: 1.5rem; flex-shrink: 0; margin-top: .2em;
}
.norm-card-header h3 {
  font-family: var(--font-display); font-size: var(--text-base);
  font-weight: 700; color: var(--text); margin-top: var(--space-1);
}
.norm-level-badge {
  display: inline-block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--radius-full);
  background: var(--surface-off); color: var(--text-muted);
}
.norm-law .norm-card-header > i { color: var(--terra); }
.norm-law { border-top: 3px solid var(--terra); }
.norm-kmu .norm-card-header > i { color: var(--accent); }
.norm-kmu { border-top: 3px solid var(--accent); }
.norm-badge-mvs { background: oklch(0.3 0.1 230 / .15); color: oklch(0.5 0.12 230); }
.norm-mvs .norm-card-header > i { color: oklch(0.5 0.12 230); }
.norm-mvs { border-top: 3px solid oklch(0.5 0.12 230); }
.norm-badge-dsns { background: var(--success-light); color: var(--success); }
.norm-dsns .norm-card-header > i { color: var(--success); }
.norm-dsns { border-top: 3px solid var(--success); }
.norm-badge-other { background: var(--surface-off); color: var(--text-muted); }
.norm-other { border-top: 3px solid var(--divider); }
.norm-meta { font-size: var(--text-xs); color: var(--text-faint); }
.norm-card p { font-size: var(--text-sm); color: var(--text-muted); }
.norm-articles { list-style: none; font-size: var(--text-sm); display: flex; flex-direction: column; gap: var(--space-2); }
.norm-articles li { color: var(--text-muted); }
.norm-articles strong { color: var(--text); }
.norm-highlight {
  display: flex; gap: var(--space-2); align-items: flex-start;
  background: var(--accent-light); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md); font-size: var(--text-xs); color: var(--accent);
}
.norm-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; color: var(--accent);
  margin-top: auto; padding-top: var(--space-2);
}
.norm-link:hover { color: var(--accent-hover); }
.norm-link i { font-size: .75em; }

/* ═══════════ CHANGES TABLE ═══════════ */
.changes-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.changes-table {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; min-width: 600px;
}
.changes-table th {
  background: var(--surface-off); color: var(--text);
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700;
  padding: var(--space-3) var(--space-4); text-align: left;
  border-bottom: 1px solid var(--divider);
}
.changes-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm); color: var(--text-muted);
  border-bottom: 1px solid var(--divider); vertical-align: top;
}
.changes-table tr:last-child td { border-bottom: none; }
.changes-table tr:hover td { background: var(--surface-off); }
.changes-table strong { color: var(--accent); }

/* ═══════════ REQUIREMENTS ═══════════ */
.req-filters {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.req-filter {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full); font-size: var(--text-xs);
  font-weight: 600; letter-spacing: .04em;
  color: var(--text-muted); background: var(--surface-off);
  border: 1px solid var(--border);
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.req-filter:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.req-filter.active { background: var(--accent); color: var(--text-inv); border-color: var(--accent); }

.req-group { margin-bottom: var(--space-10); }
.req-group-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-base);
  color: var(--text); padding: var(--space-3) var(--space-4);
  background: var(--surface-off); border-radius: var(--radius-md);
  margin-bottom: var(--space-3); margin-top: var(--space-6);
  border-bottom: 2px solid transparent;
}
.req-group-title:first-child { margin-top: 0; }
.req-group-title i { color: var(--accent); }
.req-source { font-size: var(--text-xs); color: var(--text-faint); font-weight: 400; margin-left: auto; }

.req-items { display: flex; flex-direction: column; gap: var(--space-2); }
.req-item {
  display: flex; align-items: flex-start; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans), border-color var(--trans);
}
.req-item:hover { box-shadow: var(--shadow-md); border-color: oklch(from var(--accent) l c h / .35); }
.req-id {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs);
  color: var(--text-faint); white-space: nowrap; flex-shrink: 0;
  width: 52px; padding-top: .1em;
}
.req-body { flex: 1; min-width: 0; }
.req-body p { font-size: var(--text-sm); color: var(--text); margin: 0; }
.req-ref { display: block; font-size: var(--text-xs); color: var(--text-faint); margin-top: var(--space-1); }
.must-badge {
  display: inline-block; font-size: 10px; font-weight: 800;
  letter-spacing: .08em; padding: 2px 7px; border-radius: var(--radius-full);
  background: oklch(0.62 0.15 35 / .15); color: oklch(0.45 0.15 35);
  border: 1px solid oklch(0.62 0.15 35 / .3); flex-shrink: 0; white-space: nowrap; align-self: flex-start;
}
.should-badge {
  display: inline-block; font-size: 10px; font-weight: 800;
  letter-spacing: .08em; padding: 2px 7px; border-radius: var(--radius-full);
  background: oklch(0.65 0.12 230 / .12); color: oklch(0.45 0.12 230);
  border: 1px solid oklch(0.65 0.12 230 / .28); flex-shrink: 0; white-space: nowrap; align-self: flex-start;
}
.req-legend {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-off); border-radius: var(--radius-md);
  margin-top: var(--space-8);
}
.legend-item { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-xs); color: var(--text-muted); }

/* Hidden groups */
.req-group.hidden { display: none; }

/* ═══════════ COMPLIANCE ═══════════ */
.comp-quote {
  display: flex; gap: var(--space-4); align-items: flex-start;
  background: var(--surface-off); border-left: 4px solid var(--accent);
  padding: var(--space-5) var(--space-6); border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  margin-bottom: var(--space-10);
}
.comp-quote i { font-size: 2rem; color: var(--accent); flex-shrink: 0; }
.comp-quote p { font-style: italic; color: var(--text-muted); }

.comp-matrix { display: flex; flex-direction: column; gap: var(--space-8); margin-bottom: var(--space-12); }
.comp-section {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
}
.comp-section h3 {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-base);
  color: var(--text); padding: var(--space-4) var(--space-5);
  background: var(--surface-off); border-bottom: 1px solid var(--divider);
}
.comp-section h3 i { color: var(--accent); }
.comp-items { padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.comp-row {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
}
.comp-row > i { flex-shrink: 0; font-size: 1rem; margin-top: .1em; }
.comp-yes > i { color: var(--success); }
.comp-row strong { display: block; font-size: var(--text-sm); color: var(--text); margin-bottom: var(--space-1); }
.comp-row span { font-size: var(--text-xs); color: var(--text-faint); }
.comp-yes { background: var(--success-light); }

/* ═══════════ GLOSSARY ═══════════ */
.glossary-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px,100%),1fr));
  gap: var(--space-3);
}
.gloss-item {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: var(--space-4); border-radius: var(--radius-lg);
}
.gloss-item dt {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-base);
  color: var(--accent); margin-bottom: var(--space-1);
}
.gloss-item dd { font-size: var(--text-sm); color: var(--text-muted); }

/* ═══════════ CONTACTS ═══════════ */
.contacts-layout {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12); align-items: start;
}
.contacts-info h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xl); color: var(--text); margin-bottom: var(--space-6);
}
.contact-items { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-8); }
.contact-item {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-4); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.contact-item > i {
  font-size: 1.25rem; color: var(--accent); flex-shrink: 0; margin-top: .1em;
  transition: color var(--trans);
}
.contact-item:hover > i { color: var(--accent-hover); }
.contact-item strong { display: block; font-size: var(--text-xs); color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--space-1); }
.contact-item a { font-size: var(--text-sm); color: var(--accent); }
.contact-item span { font-size: var(--text-sm); color: var(--text); }
.contacts-note {
  display: flex; gap: var(--space-3); align-items: flex-start;
  background: var(--accent-light); padding: var(--space-4);
  border-radius: var(--radius-lg); font-size: var(--text-sm); color: var(--text-muted);
}
.contacts-note i { color: var(--accent); flex-shrink: 0; }
.contacts-map h3 {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg);
  color: var(--text); margin-bottom: var(--space-4);
}
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }

/* ═══════════ FOOTER ═══════════ */
.site-footer {
  background: var(--surface-off);
  border-top: 1px solid var(--divider);
  padding: var(--space-12) 0 var(--space-6);
  margin-top: var(--space-16);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-10); margin-bottom: var(--space-10);
}
.footer-logo { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.footer-logo svg { color: var(--accent); }
.footer-logo span { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--text); }
.footer-desc { font-size: var(--text-sm); color: var(--text-muted); max-width: 36ch; margin-bottom: var(--space-4); }
.footer-copy { font-size: var(--text-xs); color: var(--text-faint); }
.footer-nav-col h4 {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  color: var(--text); margin-bottom: var(--space-4); text-transform: uppercase; letter-spacing: .06em;
}
.footer-nav-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-nav-col li a {
  font-size: var(--text-sm); color: var(--text-muted);
  display: flex; align-items: center; gap: var(--space-2);
  transition: color var(--trans);
}
.footer-nav-col li a:hover { color: var(--accent); }
.footer-nav-col li a i { font-size: .7em; color: var(--text-faint); }
.footer-bottom {
  border-top: 1px solid var(--divider); padding-top: var(--space-6);
}
.footer-seo { font-size: var(--text-xs); color: var(--text-faint); line-height: 1.8; }

/* ═══════════ COMPLIANCE INTRO ═══════════ */
.compliance-intro { margin-bottom: var(--space-4); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none; position: fixed; inset: 64px 0 0;
    background: var(--surface); z-index: 99;
    padding: var(--space-6) var(--space-4);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: var(--space-2); }
  .nav-link { font-size: var(--text-base); padding: var(--space-3) var(--space-4); }
  .burger { display: flex; }
  .feature-layout { grid-template-columns: 1fr; }
  .contacts-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-title { font-size: clamp(1.8rem, 8vw, 3rem); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { gap: var(--space-3); }
  .logo-text { display: none; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .req-filters { gap: var(--space-1); }
  .req-filter { font-size: 10px; padding: var(--space-1) var(--space-3); }
  .lang-switcher { display: none; }
}
