/* ─── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  --forest:    #1B3022;
  --forest-mid:#243d2e;
  --moss:      #4E6E58;
  --bark:      #4B3D33;
  --sand:      #D6CFC7;
  --sand-light:#EDE8E3;
  --amber:     #C8860A;
  --amber-hover:#A36D08;
  --cream:     #F5F0EA;
  --text-dark: #1B2218;
  --text-mid:  #3D4F3A;
  --text-light:#F5F0EA;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-card: 0 4px 24px rgba(27,48,34,0.10);
  --shadow-hover: 0 12px 40px rgba(27,48,34,0.18);

  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);

  /* Moss alpha variants */
  --moss-a04: rgba(78,110,88,0.04);
  --moss-a05: rgba(78,110,88,0.05);
  --moss-a06: rgba(78,110,88,0.06);
  --moss-a08: rgba(78,110,88,0.08);
  --moss-a09: rgba(78,110,88,0.09);
  --moss-a10: rgba(78,110,88,0.10);
  --moss-a12: rgba(78,110,88,0.12);
  --moss-a14: rgba(78,110,88,0.14);
  --moss-a15: rgba(78,110,88,0.15);
  --moss-a18: rgba(78,110,88,0.18);
  --moss-a20: rgba(78,110,88,0.20);
  --moss-a25: rgba(78,110,88,0.25);
  --moss-a30: rgba(78,110,88,0.30);
  --moss-a35: rgba(78,110,88,0.35);
  --moss-a40: rgba(78,110,88,0.40);
  --moss-a50: rgba(78,110,88,0.50);
  --moss-a65: rgba(78,110,88,0.65);
  --moss-a80: rgba(78,110,88,0.80);

  /* Forest alpha variants */
  --forest-a08: rgba(27,48,34,0.08);
  --forest-a97: rgba(27,48,34,0.97);

  /* Sand alpha variants */
  --sand-a10: rgba(214,207,199,0.10);
  --sand-a20: rgba(214,207,199,0.20);
  --sand-a30: rgba(214,207,199,0.30);
  --sand-a35: rgba(214,207,199,0.35);
  --sand-a40: rgba(214,207,199,0.40);
  --sand-a50: rgba(214,207,199,0.50);
  --sand-a55: rgba(214,207,199,0.55);
  --sand-a65: rgba(214,207,199,0.65);
  --sand-a70: rgba(214,207,199,0.70);
  --sand-a75: rgba(214,207,199,0.75);
  --sand-a80: rgba(214,207,199,0.80);
  --sand-a85: rgba(214,207,199,0.85);

  /* White */
  --white:     #ffffff;
  --white-a04: rgba(255,255,255,0.04);
  --white-a06: rgba(255,255,255,0.06);
  --white-a07: rgba(255,255,255,0.07);
  --white-a08: rgba(255,255,255,0.08);
  --white-a15: rgba(255,255,255,0.15);
  --white-a30: rgba(255,255,255,0.30);
  --white-a65: rgba(255,255,255,0.65);
  --white-a95: rgba(255,255,255,0.95);

  /* Black */
  --black-a30: rgba(0,0,0,0.30);
  --black-a40: rgba(0,0,0,0.40);
  --black-a85: rgba(0,0,0,0.85);

  /* Amber variants */
  --amber-dark:    #9A6A08;
  --amber-darker:  #7D5606;
  --amber-a10:     rgba(200,134,10,0.10);
  --amber-dark-a35:rgba(154,106,8,0.35);

  /* Bark */
  --bark-a25: rgba(75,61,51,0.25);

  /* Cream */
  --cream-a92: rgba(245,240,234,0.92);

  /* State colors */
  --error-bg:     #fef2f2;
  --error-border: #fca5a5;
  --error-text:   #b91c1c;
  --urgent:       #c0392b;

  /* Document type colors */
  --doc-pdf-bg:    rgba(192,57,43,0.10);
  --doc-doc-bg:    rgba(41,128,185,0.10);
  --doc-pdf-color: #c0392b;
  --doc-xls-bg:    rgba(33,115,70,0.10);
  --doc-xls-bg-sm: rgba(33,115,70,0.08);
  --doc-pdf-color: #c0392b;
  --doc-doc-color: #2980b9;
  --doc-xls-color: #217347;
}
.high-contrast {
    --forest:    #F5F0EA;
    --forest-mid:#1B3022;
    --moss:      #1B3022;
    --bark:      #1B3022;
    --sand:      #D6CFC7;
    --sand-light:#EDE8E3;
    --amber:     #C8860A;
    --amber-hover:#A36D08;
    --cream:     #F5F0EA;
    --text-dark: #F5F0EA;
    --text-mid:  #3D4F3A;
    --text-light:#1B2218;
}

/* ─── RESET & BASE ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--forest);
  color: var(--text-light);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  height:100vh;
}

/* Paper-grain texture via SVG filter */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
p  { line-height: 1.75; font-weight: 400; }

.label-bilingual {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.label-bilingual .lv { font-weight: 600; font-size: 0.95rem; }
.label-bilingual .en { font-size: 0.72rem; font-weight: 300; opacity: 0.7; letter-spacing: 0.04em; }

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-amber {
  background: var(--amber-dark);
  color: var(--white);
  border-color: var(--amber-dark);
}
.btn-amber:hover {
  background: var(--amber-darker);
  border-color: var(--amber-darker);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--amber-dark-a35);
}
.btn-ghost {
  background: transparent;
  color: var(--sand);
  border-color: var(--sand-a50);
}
.btn-ghost:hover {
  background: var(--sand-a10);
  border-color: var(--sand);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
  transform: translateY(-2px);
}

/* ─── SECTION HELPERS ───────────────────────────────────────────── */
.section { padding: 6rem 0; position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 0.6rem;
}
.section-title {
  margin-bottom: 1rem;
  color: var(--forest);
}
.section-title + .section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ─── WAVE DIVIDERS ─────────────────────────────────────────────── */
.wave-top, .wave-bottom {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-top svg, .wave-bottom svg { display: block; width: 100%; }

main {
  margin-bottom:auto;
}

/* ─── ═══════════════════════════════════════════════════════════ ─── */
/* ─── HEADER / NAV ──────────────────────────────────────────────── */
/* ─── ═══════════════════════════════════════════════════════════ ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--forest-a97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--moss-a25);
  transition: box-shadow var(--transition);
}
header.scrolled {
  box-shadow: 0 4px 32px var(--black-a30);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { width: auto; height: 32px; flex-shrink: 0; }
.nav-logo-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--sand);
}
.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  font-family: var(--sans);
  opacity: 0.7;
  text-transform: uppercase;
}

/* Primary Nav */
.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sand-a85);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link.active {
  color: var(--sand);
  background: var(--moss-a25);
}
.nav-link svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav-item:hover > .nav-link svg { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest-mid);
  border: 1px solid var(--moss-a30);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-width: 320px;
  box-shadow: 0 20px 60px var(--black-a40);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(-8px);
}
.mega-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}
.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-menu.wide { min-width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 2rem; }
.mega-menu-col-header {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--moss-a25);
  grid-column: 1 / -1;
}
.mega-menu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sand);
}
.mega-menu a:hover { background: var(--moss-a20); }

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Accessibility toggle */
.a11y-toggle {
  position: relative;
}
.a11y-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  border: 1px solid var(--moss-a40);
  background: none;
  color: var(--sand-a70);
  cursor: pointer;
  transition: var(--transition);
}
.a11y-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] {
  border-color: var(--moss);
  color: var(--sand);
  background: var(--moss-a15);
}
.a11y-btn svg { width: 18px; height: 18px; }
.a11y-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--forest);
  border: 1px solid var(--moss-a35);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-hover);
  z-index: 1001;
}
.a11y-panel.open { display: flex; }
.a11y-panel-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand-light);
  margin-bottom: 0.25rem;
}
.a11y-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sand-light);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.a11y-option:hover { background: var(--moss-a20); }
.a11y-option.active { background: var(--moss); color: var(--white); }
.a11y-option svg { width: 16px; height: 16px; opacity: 0.6; flex-shrink: 0; }
.a11y-font-controls {
  display: flex;
  gap: 4px;
}
.a11y-font-controls button {
  
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--moss-a35);
  background: none;
  color: var(--sand-light);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.a11y-font-controls button:hover { background: var(--moss-a20); }
.lang-switch {
  display: flex;
  background: var(--moss-a20);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--sand-a85);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
}
.lang-btn.active {
  background: var(--moss);
  color: var(--white);
}
.nav-login {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--moss-a40);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sand-a70);
  cursor: pointer;
  transition: var(--transition);
  background: none;
}
.nav-login:hover {
  border-color: var(--moss);
  color: var(--sand);
  background: var(--moss-a15);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sand);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--forest);
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-section { border-bottom: 1px solid var(--moss-a20); padding-bottom: 1rem; margin-bottom: 1rem; }
.mobile-nav-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--sand);
  margin-bottom: 0.75rem;
}
.mobile-nav-links a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--sand-a70);
  border-bottom: 1px solid var(--moss-a10);
}
.mobile-nav-links a:last-child { border: none; }

/* ─── ═══════════════════════════════════════════════════════════ ─── */
/* ─── HERO ──────────────────────────────────────────────────────── */
/* ─── ═══════════════════════════════════════════════════════════ ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('hero.jpg') center center / cover no-repeat;
  transform: scale(1.03);
  z-index: 0;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(237,232,227,0.2) 0%, transparent 42%),
    radial-gradient(circle at 82% 10%, rgba(16,32,24,0.42) 0%, transparent 45%),
    linear-gradient(165deg, rgba(11,21,16,0.68) 0%, rgba(17,34,24,0.62) 38%, rgba(19,39,27,0.74) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Floating leaf particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.particle {
  position: absolute;
  width: 6px;
  height: 10px;
  border-radius: 50% 50% 50% 0;
  background: var(--moss-a40);
  animation: float-up linear infinite;
}
.particle:nth-child(1)  { left: 8%;  bottom: -20px; animation-duration: 14s; animation-delay: 0s;    width: 5px;  height: 8px;  }
.particle:nth-child(2)  { left: 18%; bottom: -20px; animation-duration: 18s; animation-delay: 2s;    width: 4px;  height: 7px;  opacity: 0.6; }
.particle:nth-child(3)  { left: 28%; bottom: -20px; animation-duration: 12s; animation-delay: 5s;    width: 6px;  height: 10px; }
.particle:nth-child(4)  { left: 42%; bottom: -20px; animation-duration: 20s; animation-delay: 1s;    width: 3px;  height: 6px;  opacity: 0.5; }
.particle:nth-child(5)  { left: 55%; bottom: -20px; animation-duration: 16s; animation-delay: 7s;    }
.particle:nth-child(6)  { left: 65%; bottom: -20px; animation-duration: 13s; animation-delay: 3s;    width: 4px;  height: 7px;  opacity: 0.7; }
.particle:nth-child(7)  { left: 75%; bottom: -20px; animation-duration: 22s; animation-delay: 9s;    width: 5px;  height: 9px;  }
.particle:nth-child(8)  { left: 88%; bottom: -20px; animation-duration: 17s; animation-delay: 4s;    width: 3px;  height: 5px;  opacity: 0.4; }
.particle:nth-child(9)  { left: 93%; bottom: -20px; animation-duration: 15s; animation-delay: 11s;   }
.particle:nth-child(10) { left: 50%; bottom: -20px; animation-duration: 19s; animation-delay: 6s;    width: 4px;  height: 8px;  opacity: 0.5; }

@keyframes float-up {
  0%   { transform: translateY(0) translateX(0)   rotate(0deg);   opacity: 0; }
  5%   { opacity: 1; }
  50%  { transform: translateY(-50vh) translateX(30px) rotate(180deg); }
  95%  { opacity: 0.3; }
  100% { transform: translateY(-110vh) translateX(-20px) rotate(360deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: 8rem 2rem 8rem;
  margin: 0 auto;
  text-align: center;
  animation: hero-in 1.2s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--moss-a40);
  border-radius: 100px;
  background: var(--moss-a10);
  animation: hero-in 1.2s 0.2s cubic-bezier(0.4,0,0.2,1) both;
}

.hero-content h1 {
  color: var(--sand);
  font-size: clamp(1.375rem, 2.5vw, 2.25rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.01em;
  max-width: 740px;
  text-wrap: pretty;
  margin-bottom: 1.4rem;
  animation: hero-in 1.2s 0.35s cubic-bezier(0.4,0,0.2,1) both;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--sand-light);
  font-weight: 400;
}
.hero-content p {
  font-size: 1.1rem;
  color: var(--sand-a75);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.8;
  animation: hero-in 1.2s 0.5s cubic-bezier(0.4,0,0.2,1) both;
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: hero-in 1.2s 0.65s cubic-bezier(0.4,0,0.2,1) both;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--sand-a40);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
  animation: hero-in 1.2s 1s cubic-bezier(0.4,0,0.2,1) both;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--sand-a30), transparent);
  animation: scroll-line 2s ease infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.1%{ transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── ═══════════════════════════════════════════════════════════ ─── */
/* ─── MISSION STRIP ─────────────────────────────────────────────── */
/* ─── ═══════════════════════════════════════════════════════════ ─── */
.mission-strip {
  background: var(--moss);
  position: relative;
  padding: 0;
}
.mission-inner {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.mission-deco {
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--white-a08);
  margin-bottom: -2rem;
  user-select: none;
  font-style: italic;
}
.mission-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--white);
  font-weight: 400;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.mission-quote strong {
  font-weight: 600;
  font-style: normal;
  color: var(--white-a95);
}
.mission-sub {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--white-a65);
  letter-spacing: 0.05em;
  font-weight: 300;
}

/* ─── ═══════════════════════════════════════════════════════════ ─── */
/* ─── ACTIVITY AREAS ────────────────────────────────────────────── */
/* ─── ═══════════════════════════════════════════════════════════ ─── */
#activity { background: var(--cream); }
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.activity-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--moss-a12);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.activity-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--moss), var(--forest));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--moss-a25);
}
.activity-card:hover::before { transform: scaleX(1); }
.activity-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--moss-a10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.activity-icon svg { width: 26px; height: 26px; color: var(--moss); }
.activity-card h3 { margin-bottom: 0.75rem; color: var(--forest); font-size: 1.15rem; }
.activity-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; }

/* ─── ═══════════════════════════════════════════════════════════ ─── */
/* ─── PROJECTS ──────────────────────────────────────────────────── */
/* ─── ═══════════════════════════════════════════════════════════ ─── */
#projects { background: var(--sand-light); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--moss-a10);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.project-year {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--forest);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}
.project-status {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  font-weight: 500;
}
.project-status.active { background: var(--moss-a12); color: var(--moss); }
.project-status.completed { background: var(--amber-a10); color: var(--amber); }
.project-card h3 { font-size: 1rem; color: var(--forest); margin-bottom: 0.4rem; line-height: 1.35; }
.project-card .proj-en { font-size: 0.8rem; color: var(--moss); margin-bottom: 0.75rem; font-style: italic; }
.project-card p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--moss);
  transition: var(--transition);
}
.project-link:hover { color: var(--forest); gap: 0.7rem; }

/* ─── ═══════════════════════════════════════════════════════════ ─── */
/* ─── SERVICES ──────────────────────────────────────────────────── */
/* ─── ═══════════════════════════════════════════════════════════ ─── */
#services { background: var(--forest); }
#services .section-label { color: var(--moss-a80); }
#services .section-title { color: var(--sand); }
#services .section-title + .section-sub { color: var(--sand-a65); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.service-card {
  background: var(--white-a04);
  border: 1px solid var(--moss-a25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--moss-a15) 0%, transparent 70%);
  pointer-events: none;
}
.service-card:hover {
  background: var(--white-a07);
  border-color: var(--moss-a50);
  transform: translateY(-4px);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--moss-a20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 28px; height: 28px; color: var(--moss); }
.service-card h3 { color: var(--sand); margin-bottom: 0.4rem; font-size: 1.25rem; }
.service-card .svc-en { font-size: 0.8rem; color: var(--sand-a50); margin-bottom: 1rem; font-style: italic; }
.service-card p { color: var(--sand-a70); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.7; }

/* ─── ═══════════════════════════════════════════════════════════ ─── */
/* ─── AUCTIONS ──────────────────────────────────────────────────── */
/* ─── ═══════════════════════════════════════════════════════════ ─── */
.auctions-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--moss-a15);
  box-shadow: var(--shadow-card);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
thead {
  background: var(--forest);
}
thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand-a80);
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid var(--moss-a10);
  transition: background var(--transition);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--moss-a04); }
tbody td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  vertical-align: middle;
}
.lot-badge {
  display: inline-block;
  background: var(--forest-a08);
  color: var(--forest);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: monospace;
}
.price-cell { font-weight: 600; color: var(--forest); }
.deadline-cell {
  font-size: 0.82rem;
  color: var(--text-mid);
}
.deadline-urgent { color: var(--urgent); font-weight: 600; }
.badge-closed {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--forest-a08);
  color: var(--text-mid);
  letter-spacing: 0.02em;
}
.auctions-footer { margin-top: 1.5rem; text-align: center; }
.auction-group {
  padding-bottom: 2rem;
  padding-top:2rem;
  border-bottom: 1px solid var(--moss-a12);
  &:first-child {
    padding-top:0;
  }
}
.auction-group:last-of-type { border-bottom: none; }

/* ─── IEPIRKUMI ──────────────────────────────────────────────────── */
.iepirkumi-info {
  max-width: 680px;
  margin: 1.5rem 0 2rem;
}
.iepirkumi-info p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.iepirkumi-info p a { color: var(--moss); }
.iepirkumi-profile-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
  transition: var(--transition);
}
.iepirkumi-profile-link svg { flex-shrink: 0; margin-top: 2px; }
.iepirkumi-profile-link:hover { color: var(--moss); }
.iepirkumi-sub-title {
  font-size: 1rem;
  color: var(--forest);
  margin: 0 0 1.25rem;
  font-weight: 600;
}
.auction-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.auction-doc-link:hover { color: var(--moss); text-decoration: underline; }

/* ─── ═══════════════════════════════════════════════════════════ ─── */
/* ─── DOWNLOADS ─────────────────────────────────────────────────── */
/* ─── ═══════════════════════════════════════════════════════════ ─── */
#downloads { background: var(--sand-light); }
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--moss-a10);
  transition: var(--transition);
}
.download-card:hover {
  border-color: var(--moss-a30);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.download-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--amber-a10);
  display: flex;
  align-items: center;
  justify-content: center;
  @media(max-width:480px) {
    display:none;
  }
}

.download-icon svg { width: 22px; height: 22px; color: var(--amber); }
.download-info { 
  /*flex: 1; min-width: 0; */
  flex:1 1 auto;
  @media(max-width:480px) {
    flex:1 1 100%;
  }
}
.download-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
  /*white-space: nowrap;*/
  overflow: hidden;
  text-overflow: ellipsis;
}
.download-meta {
  font-size: 0.75rem;
  color: var(--text-mid);
  opacity: 0.7;
}
.download-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--forest);
  color: var(--sand);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}
.download-btn:hover {
  background: var(--moss);
  transform: translateY(-1px);
}
.download-btn svg { width: 14px; height: 14px; }

/* Small variant — tighter padding, smaller icon + text */
.download-card--sm {
  padding: 0.7rem 1rem;
  gap: 0.875rem;
}
.download-card--sm .download-icon {
  width: 32px;
  height: 32px;
}
.download-card--sm .download-icon svg {
  width: 15px;
  height: 15px;
}
.download-card--sm .download-name {
  font-size: 0.82rem;
}
.download-card--sm .download-btn {
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
}
.download-card--sm .download-btn svg {
  width: 12px;
  height: 12px;
}

/* ─── ═══════════════════════════════════════════════════════════ ─── */
/* ─── REGIONAL CENTERS ──────────────────────────────────────────── */
/* ─── ═══════════════════════════════════════════════════════════ ─── */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--moss-a10);
  transition: var(--transition);
  position: relative;
}
.contact-card:hover {
  border-color: var(--moss-a30);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.contact-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-pin {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--moss-a10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-pin svg { width: 20px; height: 20px; color: var(--moss); }
.contact-card h3 { font-size: 1rem; color: var(--forest); line-height: 1.3; }
.contact-card .cnt-en { font-size: 0.72rem; color: var(--moss); margin-top: 2px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.contact-detail svg { width: 15px; height: 15px; color: var(--moss); flex-shrink: 0; margin-top: 2px; }
.contact-detail a { color: var(--moss); transition: color var(--transition); }
.contact-detail a:hover { color: var(--forest); }
.contact-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  transition: var(--transition);
}
.contact-card-cta::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234e6e58' stroke-width='2'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--transition);
}
.contact-card-cta:hover { color: var(--moss); }
.contact-card-cta:hover::after { transform: translateX(3px); }

/* ─── ═══════════════════════════════════════════════════════════ ─── */
/* ─── CONTENT PAGE ──────────────────────────────────────────────── */
/* ─── ═══════════════════════════════════════════════════════════ ─── */

/* Page header */
.page-header {
  margin-top: 68px;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--moss-a10);
}
.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-mid);
  opacity: 0.55;
  margin-bottom: 0.8rem;
}
.breadcrumb a { color: var(--text-mid); transition: color var(--transition), opacity var(--transition); }
.breadcrumb a:hover { color: var(--forest); opacity: 1; }
.breadcrumb svg { width: 10px; height: 10px; flex-shrink: 0; }
.page-header h1 {
  color: var(--forest);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

/* Content layout */
.content-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* Prose */
.prose h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  color: var(--forest);
  margin: 2.5rem 0 0.9rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose ul {
  list-style: none;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.prose ul li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 4px var(--moss-a12);
}
.prose ul ul {
  margin: 0.4rem 0 0;
  gap: 0.35rem;
  padding-left: 0.25rem;
}
.prose ul ul li::before {
  top: 0.72em;
  width: 0.5rem;
  height: 1px;
  border-radius: 0;
  background: var(--moss-a65);
  box-shadow: none;
}
.prose strong { font-weight: 600; color: var(--text-dark); }
.prose a { color: var(--amber); transition: color var(--transition); }
.prose a:hover { color: var(--amber-hover); }
.inline-file-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  opacity: 0.6;
  margin-left: 0.2em;
  vertical-align: middle;
}

/* Inline mini download card (inside timeline / sidebar) */
.timeline-download {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.65rem 0.9rem;
  background: var(--moss-a05);
  border: 1px solid var(--moss-a14);
  border-radius: var(--radius-md);
  transition: var(--transition);
  max-width: 100%;
  flex-wrap:wrap;
}
.timeline-download:hover {
  border-color: var(--moss-a30);
  background: var(--moss-a09);
}
.timeline-download-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--moss-a10);
  color: var(--moss);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-download-icon svg { width: 15px; height: 15px; }
.timeline-download-icon--pdf { background: var(--doc-pdf-bg);  color: var(--urgent); }
.timeline-download-icon--doc { background: var(--doc-doc-bg); color: var(--doc-doc-color); }
.timeline-download-icon--xls { background: var(--doc-xls-bg);  color: var(--doc-xls-color); }
.download-icon--pdf { background: rgba(192,57,43,0.08);  color: var(--urgent); }
.download-icon--doc { background: rgba(41,128,185,0.08); color: var(--doc-doc-color); }
.download-icon--xls { background: var(--doc-xls-bg-sm);  color: var(--doc-xls-color); }
.timeline-download-info {
  flex: 1;
  min-width: 0;
}
.timeline-download-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-download-meta {
  font-size: 0.7rem;
  color: var(--text-mid);
  margin-top: 0.1rem;
}
.timeline-download-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--moss);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--moss-a30);
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
}
.timeline-download-btn:hover {
  background: var(--moss);
  color: var(--white);
  border-color: var(--moss);
}
.timeline-download-btn svg { width: 11px; height: 11px; }

/* Sidebar timeline-download — full width, text wraps */
.sidebar .timeline-download {
  display: flex;
  width: 100%;
  margin-top: 0;
}
.sidebar .timeline-download-name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* Feature list (used in about + content pages) */
.about-feature-list {
  margin: 0.35rem 0 0;
  padding-left: 0.75rem;
  display: grid;
  gap: 0.72rem;
}
.about-feature-list > li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 1.02rem;
  color: var(--text-mid);
  line-height: 1.85;
}
.about-feature-list > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 4px var(--moss-a12);
}
.about-feature-list ul {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.45rem;
}
.about-feature-list ul li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.98rem;
  color: var(--text-mid);
  line-height: 1.75;
}
.about-feature-list ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 0.5rem;
  height: 1px;
  background: var(--moss-a65);
}

/* Blockquote */
blockquote {
  background: var(--moss-a06);
  border-left: 3px solid var(--moss);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
}
blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-style: italic;
  opacity: 0.6;
}

/* Accreditation callout */
.accred-callout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--moss-a06);
  border: 1px solid var(--moss-a20);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.accred-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--moss-a10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.accred-icon svg { width: 24px; height: 24px; color: var(--moss); }
.accred-text strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--forest);
  display: block;
  margin-bottom: 0.2rem;
}
.accred-text span { font-size: 0.8rem; color: var(--text-mid); line-height: 1.5; }
.accred-text a { color: var(--amber); transition: color var(--transition); }
.accred-text a:hover { color: var(--amber-hover); }

/* Sidebar */
.sidebar-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--moss-a10);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.sidebar-block:last-child { margin-bottom: 0; }
.sidebar-block-body { padding: 1.5rem; }
.sidebar-block-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1rem;
}
.sidebar-lab-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.sidebar-img-caption {
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  color: var(--text-mid);
  opacity: 0.65;
  font-style: italic;
}

/* Document list */
.doc-list { display: flex; flex-direction: column; gap: 0.5rem; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--moss-a10);
  transition: var(--transition);
  text-decoration: none;
}
.doc-item:hover {
  border-color: var(--moss-a30);
  background: var(--moss-a04);
}
.doc-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-icon.pdf { background: var(--doc-pdf-bg); }
.doc-icon.doc { background: var(--doc-doc-bg); }
.doc-icon svg { width: 16px; height: 16px; }
.doc-icon.pdf svg { color: var(--urgent); }
.doc-icon.doc svg { color: var(--doc-doc-color); }
.doc-name {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
}
.doc-ext {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  opacity: 0.5;
}

/* ─── STAFF / DEPARTMENT PAGE ───────────────────────────────────── */
.staff-group { margin-bottom: 2.5rem; }
.staff-group:last-child { margin-bottom: 0; }
.staff-group-title {
  font-size: 1rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--moss-a12);
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.staff-card {
  background: var(--white);
  border: 1px solid var(--moss-a10);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
}
.staff-card:hover {
  border-color: var(--moss-a25);
  box-shadow: var(--shadow-card);
}
.staff-name {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--forest);
  margin-bottom: 0.25rem;
}
.staff-role {
  font-size: 0.78rem;
  color: var(--moss);
  font-style: italic;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.staff-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}
.staff-contact-row svg { width: 13px; height: 13px; color: var(--moss); flex-shrink: 0; margin-top: 2px; }
.staff-contact-row a { color: var(--moss); transition: color var(--transition); }
.staff-contact-row a:hover { color: var(--forest); }
@media (max-width: 768px) { .staff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .staff-grid { grid-template-columns: 1fr; } }

/* Sidebar contact rows */
.sidebar-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 0.6rem;
  line-height: 1.55;
}
.sidebar-contact-row:last-child { margin-bottom: 0; }
.sidebar-contact-row svg { width: 15px; height: 15px; color: var(--moss); flex-shrink: 0; margin-top: 2px; }
.sidebar-contact-row a { color: var(--amber); transition: color var(--transition); }
.sidebar-contact-row a:hover { color: var(--amber-hover); }

/* Map section */
.map-section {
  background: var(--sand-light);
  border-top: 1px solid var(--moss-a10);
}
.map-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.map-section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.map-section-header h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--forest); }
.map-section-header a { font-size: 0.82rem; color: var(--amber); transition: color var(--transition); }
.map-section-header a:hover { color: var(--amber-hover); }
.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--moss-a12);
}
.map-wrap iframe { width: 100%; height: 420px; display: block; border: none; }

/* Content page responsive */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr 290px; gap: 2rem; }
}
@media (max-width: 768px) {
  .content-grid { grid-template-columns: 1fr; }
  .content-grid .sidebar { order: -1; }
  .map-wrap iframe { height: 300px; }
  .content-layout { padding: 2rem 1.5rem 4rem; }
}

/* ─── ═══════════════════════════════════════════════════════════ ─── */
/* ─── ERROR PAGES ───────────────────────────────────────────────── */
/* ─── ═══════════════════════════════════════════════════════════ ─── */
.error-page {
  padding: 8rem 2rem 8rem;
  text-align: center;
}
.error-page-inner {
  max-width: 560px;
  margin: 0 auto;
}
.error-code {
  font-family: var(--serif);
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 700;
  color: var(--forest);
  opacity: 0.08;
  line-height: 1;
  margin-bottom: -1.5rem;
}
.error-message {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.error-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── ═══════════════════════════════════════════════════════════ ─── */
/* ─── FOOTER ────────────────────────────────────────────────────── */
/* ─── ═══════════════════════════════════════════════════════════ ─── */
footer {
  background: var(--forest);
  position: relative;
}
footer .wave-divider {
  position:absolute;
  top:0;left:0;
  transform:translateY(-96%);
  color:var(--forest);
  aspect-ratio: 1440 / 60;
  margin-top:unset;
  margin-bottom:unset;
  svg rect {
    fill:transparent;
  }
  svg path {
    fill:currentColor;
  }
}
/*footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}*/
.footer-main {
  padding: 4rem 2rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  position: relative;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.25rem 0.25rem;
}
.footer-nav a {
  font-size: 0.85rem;
  color: var(--sand-a55);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  transition: color var(--transition), background var(--transition);
}
.footer-nav a:hover {
  color: var(--sand);
  background: var(--white-a06);
}
.footer-bottom {
  border-top: 1px solid var(--moss-a15);
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--sand-a35);
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: 0.78rem;
  color: var(--sand-a40);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--sand); }
.footer-lang {
  display: flex;
  gap: 0.5rem;
}
.footer-lang a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sand-a40);
  transition: color var(--transition);
}
.footer-lang a.active, .footer-lang a:hover { color: var(--sand); }
.footer-lang span { color: var(--sand-a20); }

/* ─── ACCESSIBILITY MODES ──────────────────────────────────────── */

/* ── High contrast: true black-on-white, no filter trick ────────── */
.a11y-high-contrast {
  /* Base semantic tokens */
  --cream:        #ffffff;
  --sand:         #ffffff;
  --sand-light:   #ffffff;
  --forest:       #000000;
  --forest-mid:   #000000;
  --moss:         #000000;
  --bark:         #000000;
  --text-dark:    #000000;
  --text-mid:     #000000;
  --text-light:   #ffffff;
  --amber:        #000000;
  --amber-hover:  #000000;
  --amber-dark:   #000000;
  --amber-darker: #000000;
  --urgent:       #000000;

  /* Shadows → outline borders */
  --shadow-card:  0 0 0 1px #000000;
  --shadow-hover: 0 0 0 2px #000000;

  /* Moss tints — low opacity → transparent, high opacity → black */
  --moss-a04: transparent; --moss-a05: transparent; --moss-a06: transparent;
  --moss-a08: transparent; --moss-a09: transparent; --moss-a10: transparent;
  --moss-a12: transparent; --moss-a14: transparent; --moss-a15: transparent;
  --moss-a18: transparent; --moss-a20: transparent; --moss-a25: transparent;
  --moss-a30: transparent; --moss-a35: transparent;
  --moss-a40: #000000; --moss-a50: #000000; --moss-a65: #000000; --moss-a80: #000000;

  /* Forest tints */
  --forest-a08: transparent;
  --forest-a97: #000000;

  /* Sand tints — all → white (sand is used as text on dark surfaces) */
  --sand-a10: #ffffff; --sand-a20: #ffffff; --sand-a30: #ffffff;
  --sand-a35: #ffffff; --sand-a40: #ffffff; --sand-a50: #ffffff;
  --sand-a55: #ffffff; --sand-a65: #ffffff; --sand-a70: #ffffff;
  --sand-a75: #ffffff; --sand-a80: #ffffff; --sand-a85: #ffffff;

  /* White tints — subtle → transparent, significant → white */
  --white-a04: transparent; --white-a06: transparent;
  --white-a07: transparent; --white-a08: transparent;
  --white-a15: #ffffff; --white-a30: #ffffff;
  --white-a65: #ffffff; --white-a95: #ffffff;

  /* Black tints → solid black */
  --black-a30: #000000; --black-a40: #000000; --black-a85: #000000;

  /* Amber, Bark, Cream tints */
  --amber-a10:      transparent;
  --amber-dark-a35: #000000;
  --bark-a25:       transparent;
  --cream-a92:      #ffffff;

  /* State colors */
  --error-bg:     #ffffff;
  --error-border: #000000;
  --error-text:   #000000;

  /* Document type colors */
  --doc-pdf-bg: transparent; --doc-doc-bg: transparent;
  --doc-xls-bg: transparent; --doc-xls-bg-sm: transparent;
  --doc-pdf-color: #000000; --doc-doc-color: #000000; --doc-xls-color: #000000;
}

/* Kill decorative/visual-only elements */
.a11y-high-contrast body::before  { display: none; }
.a11y-high-contrast .wave-divider { display: none; }
.a11y-high-contrast .section-wave { display: none; }
.a11y-high-contrast .wave-top,
.a11y-high-contrast .wave-bottom  { display: none; }
.a11y-high-contrast .particle     { display: none; }

/* Hero sections: solid black bg, no decorative overlays */
.a11y-high-contrast #hero::before,
.a11y-high-contrast #hero::after  { display: none; }
.a11y-high-contrast #hero         { background: #000000 !important; }
.a11y-high-contrast .about-hero   { background: #000000 !important; }

/* Force all declared borders to black */
.a11y-high-contrast * { border-color: #000000 !important; }

/* On black-background sections, borders must be white instead */
.a11y-high-contrast .section-variant--forest *,
.a11y-high-contrast #services *,
.a11y-high-contrast .mission-strip *,
.a11y-high-contrast header *,
.a11y-high-contrast .mobile-nav *,
.a11y-high-contrast footer *,
.a11y-high-contrast #hero * { border-color: #ffffff !important; }

/* Section boundaries — clean horizontal rules replace decorative waves */
.a11y-high-contrast .section,
.a11y-high-contrast .section-variant--default,
.a11y-high-contrast .section-variant--sand,
.a11y-high-contrast .section-variant--forest,
.a11y-high-contrast #activity,
.a11y-high-contrast #projects,
.a11y-high-contrast #services,
.a11y-high-contrast #downloads,
.a11y-high-contrast .mission-strip,
.a11y-high-contrast .map-section,
.a11y-high-contrast footer { border-top: 1px solid #000000 !important; }

/* All links: black + underline */
.a11y-high-contrast a {
  color: #000000 !important;
  text-decoration: underline !important;
}

/* Navigation and button-style links: no underline */
.a11y-high-contrast .nav-link,
.a11y-high-contrast .nav-logo,
.a11y-high-contrast .mega-menu a,
.a11y-high-contrast .mobile-nav-links a,
.a11y-high-contrast .footer-nav a,
.a11y-high-contrast .footer-bottom-links a,
.a11y-high-contrast .footer-lang a,
.a11y-high-contrast .breadcrumb a,
.a11y-high-contrast .about-subnav a,
.a11y-high-contrast .pagination-link,
.a11y-high-contrast .contact-card-cta,
.a11y-high-contrast .project-link,
.a11y-high-contrast .iepirkumi-profile-link,
.a11y-high-contrast .auction-doc-link,
.a11y-high-contrast .download-btn,
.a11y-high-contrast .timeline-download-btn { text-decoration: none !important; }

/* Links on black surfaces (header, footer, mobile nav) must be white */
.a11y-high-contrast .nav-link,
.a11y-high-contrast .nav-logo,
.a11y-high-contrast .nav-logo-text,
.a11y-high-contrast .nav-login,
.a11y-high-contrast .mega-menu a,
.a11y-high-contrast .mobile-nav-links a,
.a11y-high-contrast .mobile-nav-title,
.a11y-high-contrast .footer-nav a,
.a11y-high-contrast .footer-bottom-links a,
.a11y-high-contrast .footer-lang a,
.a11y-high-contrast .footer-copy { color: #ffffff !important; }

/* Buttons: white fill, black border, black text */
.a11y-high-contrast .btn,
.a11y-high-contrast .btn-amber,
.a11y-high-contrast .btn-ghost,
.a11y-high-contrast .btn-outline,
.a11y-high-contrast .download-btn,
.a11y-high-contrast .timeline-download-btn {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

/* Status pills: transparent bg, black border + text (label text already in DOM) */
.a11y-high-contrast .project-status,
.a11y-high-contrast .lot-badge,
.a11y-high-contrast .badge-closed {
  background: transparent !important;
  border: 1px solid #000000 !important;
  color: #000000 !important;
}

/* Org chart + timeline connector lines: structural, must stay visible */
.a11y-high-contrast .org-stem,
.a11y-high-contrast .org-hbar,
.a11y-high-contrast .org-col-stem,
.a11y-high-contrast .org-sub-stem { background: #000000 !important; }
.a11y-high-contrast .projects-timeline::before { background: #000000 !important; }

/* Active subnav: border-left instead of background fill */
.a11y-high-contrast .about-subnav a.active {
  background: transparent !important;
  border-left: 2px solid #000000 !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
}

/* ── Dark high contrast: white-on-black, all surfaces black ─────── */
.a11y-high-contrast-dark {
  /* Base semantic tokens — every surface black, every foreground white */
  --cream:        #000000;
  --sand:         #000000;
  --sand-light:   #000000;
  --forest:       #000000;
  --forest-mid:   #000000;
  --moss:         #ffffff;
  --bark:         #ffffff;
  --text-dark:    #ffffff;
  --text-mid:     #ffffff;
  --text-light:   #ffffff;
  --amber:        #ffffff;
  --amber-hover:  #ffffff;
  --amber-dark:   #ffffff;
  --amber-darker: #ffffff;
  --urgent:       #ffffff;
  --white:        #000000;

  /* Shadows → outline borders */
  --shadow-card:  0 0 0 1px #ffffff;
  --shadow-hover: 0 0 0 2px #ffffff;

  /* Moss tints */
  --moss-a04: transparent; --moss-a05: transparent; --moss-a06: transparent;
  --moss-a08: transparent; --moss-a09: transparent; --moss-a10: transparent;
  --moss-a12: transparent; --moss-a14: transparent; --moss-a15: transparent;
  --moss-a18: transparent; --moss-a20: transparent; --moss-a25: transparent;
  --moss-a30: transparent; --moss-a35: transparent;
  --moss-a40: #ffffff; --moss-a50: #ffffff; --moss-a65: #ffffff; --moss-a80: #ffffff;

  /* Forest tints */
  --forest-a08: transparent;
  --forest-a97: #000000;

  /* Sand tints → black (all surfaces dark) */
  --sand-a10: #000000; --sand-a20: #000000; --sand-a30: #000000;
  --sand-a35: #000000; --sand-a40: #000000; --sand-a50: #000000;
  --sand-a55: #000000; --sand-a65: #000000; --sand-a70: #000000;
  --sand-a75: #000000; --sand-a80: #000000; --sand-a85: #000000;

  /* White tints → black */
  --white-a04: transparent; --white-a06: transparent;
  --white-a07: transparent; --white-a08: transparent;
  --white-a15: #000000; --white-a30: #000000;
  --white-a65: #000000; --white-a95: #000000;

  /* Black tints → white */
  --black-a30: #ffffff; --black-a40: #ffffff; --black-a85: #ffffff;

  /* Amber, Bark, Cream tints */
  --amber-a10:      transparent;
  --amber-dark-a35: #ffffff;
  --bark-a25:       transparent;
  --cream-a92:      #000000;

  /* State colors */
  --error-bg:     #000000;
  --error-border: #ffffff;
  --error-text:   #ffffff;

  /* Document type colors */
  --doc-pdf-bg: transparent; --doc-doc-bg: transparent;
  --doc-xls-bg: transparent; --doc-xls-bg-sm: transparent;
  --doc-pdf-color: #ffffff; --doc-doc-color: #ffffff; --doc-xls-color: #ffffff;
}

/* Kill decorative elements */
.a11y-high-contrast-dark body::before  { display: none; }
.a11y-high-contrast-dark .wave-divider { display: none; }
.a11y-high-contrast-dark .section-wave { display: none; }
.a11y-high-contrast-dark .wave-top,
.a11y-high-contrast-dark .wave-bottom  { display: none; }
.a11y-high-contrast-dark .particle     { display: none; }

/* Hero sections: solid black bg */
.a11y-high-contrast-dark #hero::before,
.a11y-high-contrast-dark #hero::after  { display: none; }
.a11y-high-contrast-dark #hero         { background: #000000 !important; }
.a11y-high-contrast-dark .about-hero   { background: #000000 !important; }

/* Force all declared borders to white — uniform across all surfaces */
.a11y-high-contrast-dark * { border-color: #ffffff !important; }

/* Force all text to white — all surfaces are black */
.a11y-high-contrast-dark * { color: #ffffff !important; }
/* Exception: active UI states with white (--moss → #fff) backgrounds need black text */
.a11y-high-contrast-dark .a11y-option.active,
.a11y-high-contrast-dark .lang-btn.active { color: #000000 !important; }

/* Section boundaries */
.a11y-high-contrast-dark .section,
.a11y-high-contrast-dark .section-variant--default,
.a11y-high-contrast-dark .section-variant--sand,
.a11y-high-contrast-dark .section-variant--forest,
.a11y-high-contrast-dark #activity,
.a11y-high-contrast-dark #projects,
.a11y-high-contrast-dark #services,
.a11y-high-contrast-dark #downloads,
.a11y-high-contrast-dark .mission-strip,
.a11y-high-contrast-dark .map-section,
.a11y-high-contrast-dark footer { border-top: 1px solid #ffffff !important; }

/* All links: white + underline */
.a11y-high-contrast-dark a {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* Navigation and button-style links: no underline */
.a11y-high-contrast-dark .nav-link,
.a11y-high-contrast-dark .nav-logo,
.a11y-high-contrast-dark .mega-menu a,
.a11y-high-contrast-dark .mobile-nav-links a,
.a11y-high-contrast-dark .footer-nav a,
.a11y-high-contrast-dark .footer-bottom-links a,
.a11y-high-contrast-dark .footer-lang a,
.a11y-high-contrast-dark .breadcrumb a,
.a11y-high-contrast-dark .about-subnav a,
.a11y-high-contrast-dark .pagination-link,
.a11y-high-contrast-dark .contact-card-cta,
.a11y-high-contrast-dark .project-link,
.a11y-high-contrast-dark .iepirkumi-profile-link,
.a11y-high-contrast-dark .auction-doc-link,
.a11y-high-contrast-dark .download-btn,
.a11y-high-contrast-dark .timeline-download-btn { text-decoration: none !important; }

/* Buttons: black fill, white border, white text */
.a11y-high-contrast-dark .btn,
.a11y-high-contrast-dark .btn-amber,
.a11y-high-contrast-dark .btn-ghost,
.a11y-high-contrast-dark .btn-outline,
.a11y-high-contrast-dark .download-btn,
.a11y-high-contrast-dark .timeline-download-btn {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
}

/* Status pills */
.a11y-high-contrast-dark .project-status,
.a11y-high-contrast-dark .lot-badge,
.a11y-high-contrast-dark .badge-closed {
  background: transparent !important;
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
}

/* Year badges use var(--white) as text — keep them white on black bg */
.a11y-high-contrast-dark .project-year,
.a11y-high-contrast-dark .timeline-year { color: #ffffff !important; }

/* Org chart + timeline connector lines */
.a11y-high-contrast-dark .org-stem,
.a11y-high-contrast-dark .org-hbar,
.a11y-high-contrast-dark .org-col-stem,
.a11y-high-contrast-dark .org-sub-stem { background: #ffffff !important; }
.a11y-high-contrast-dark .projects-timeline::before { background: #ffffff !important; }

/* Active subnav */
.a11y-high-contrast-dark .about-subnav a.active {
  background: transparent !important;
  border-left: 2px solid #ffffff !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
}

.a11y-underline-links a { text-decoration: underline !important; }

/* ─── WAVE SHAPES ───────────────────────────────────────────────── */
.wave-divider { display: block; width: 100%; overflow: hidden; line-height: 0; position: relative; margin-top: -1px; margin-bottom: -1px; }
.wave-divider svg { display: block; width: 100%; }

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav-primary { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .nav-right .lang-switch, .nav-right .nav-login { display: none; }
}

@media (max-width: 1024px) {
  .activity-grid, .projects-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {

  .activity-grid, .projects-grid, .services-grid,
  .contacts-grid, .downloads-grid { grid-template-columns: 1fr; }


  .hero-content { padding-top: 6rem; }
  .hero-trees { height: 240px; }
  .auctions-header { flex-direction: column; align-items: flex-start; }
  .footer-main { padding: 3rem 1.5rem 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .download-card { flex-wrap: wrap; }
}

/* ─── FONT SIZE 150% — layout treats site as ~768px viewport ────── */
html.a11y-font-150 .nav-primary { display: none; }
html.a11y-font-150 .hamburger { display: flex; }
html.a11y-font-150 .mobile-nav { display: block; }
html.a11y-font-150 .nav-right .lang-switch,
html.a11y-font-150 .nav-right .nav-login { display: none; }

html.a11y-font-150 .activity-grid,
html.a11y-font-150 .projects-grid,
html.a11y-font-150 .news-grid { grid-template-columns: 1fr 1fr; }

html.a11y-font-150 .services-grid,
html.a11y-font-150 .contacts-grid,
html.a11y-font-150 .downloads-grid { grid-template-columns: 1fr; }

html.a11y-font-150 .mvv-grid { grid-template-columns: 1fr 1fr; }
html.a11y-font-150 .org-branches { grid-template-columns: repeat(3, 1fr); }
html.a11y-font-150 .org-hbar { max-width: 100%; }

html.a11y-font-150 .staff-grid { grid-template-columns: 1fr 1fr; }

html.a11y-font-150 .content-grid { grid-template-columns: 1fr; }
html.a11y-font-150 .content-grid .sidebar { order: -1; }
html.a11y-font-150 .map-wrap iframe { height: 300px; }
html.a11y-font-150 .content-layout { padding: 2rem 1.5rem 4rem; }

/* ─── FONT SIZE 200% — layout treats site as ~480px viewport ────── */
html.a11y-font-200 .nav-primary { display: none; }
html.a11y-font-200 .hamburger { display: flex; }
html.a11y-font-200 .mobile-nav { display: block; }
html.a11y-font-200 .nav-right .lang-switch,
html.a11y-font-200 .nav-right .nav-login { display: none; }

html.a11y-font-200 .activity-grid,
html.a11y-font-200 .projects-grid,
html.a11y-font-200 .services-grid,
html.a11y-font-200 .contacts-grid,
html.a11y-font-200 .downloads-grid,
html.a11y-font-200 .news-grid,
html.a11y-font-200 .staff-grid,
html.a11y-font-200 .mvv-grid { grid-template-columns: 1fr; }

html.a11y-font-200 .org-branches { grid-template-columns: 1fr 1fr; }
html.a11y-font-200 .org-hbar,
html.a11y-font-200 .org-level-label,
html.a11y-font-200 .org-col-stem { display: none; }

html.a11y-font-200 .content-grid { grid-template-columns: 1fr; }
html.a11y-font-200 .content-grid .sidebar { order: -1; }
html.a11y-font-200 .map-wrap iframe { height: 300px; }
html.a11y-font-200 .content-layout { padding: 2rem 1.5rem 4rem; }
html.a11y-font-200 .section { padding: 4rem 0; }
html.a11y-font-200 .download-card { flex-wrap: wrap; }

/* ─── LOGIN PAGE ────────────────────────────────────────────────── */
.login-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}
.login-card-header {
  background: var(--forest);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
}
.login-card-header h1 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}
.login-card-header p {
  font-size: 0.8125rem;
  color: var(--sand-a65);
  margin: 0.4rem 0 0;
}
.login-card-body {
  padding: 2rem;
}
.login-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: var(--radius-sm);
  color: var(--error-text);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.login-field {
  margin-bottom: 1.25rem;
}
.login-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 0.375rem;
}
.login-field input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--bark-a25);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  transition: border-color var(--transition);
  outline: none;
}
.login-field input:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px var(--moss-a15);
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── CMS / STREAMFIELD UTILITIES ──────────────────────────────── */
/* Section background variants — controlled by Wagtail admin        */
.section-variant--default { background: var(--cream); }
.section-variant--sand    { background: var(--sand-light); }
.section-variant--forest  { background: var(--forest); }

/* Forest section text overrides (white-on-dark) */
.section-variant--forest .section-label { color: var(--moss-a80); }
.section-variant--forest .section-title { color: var(--sand); }
.section-variant--forest .section-sub   { color: var(--sand-a65); }

/* Wave transition fills — currentColor set per variant so the SVG  */
/* wave shape bleeds from the preceding section's background colour  */
.section-wave { position:absolute;top:0;left:0;display: block; width: 100%; overflow: hidden; line-height: 0; margin-top: -1px; transform:translateY(-96%);z-index:2;}
.section-wave svg { display: block; width: 100%; }
.section-wave svg path {fill:currentColor}
.section-variant--default .section-wave { 
  color: var(--sand-light); 
  svg path {
    fill:var(--cream);
  }
}

.section-variant--sand    .section-wave { 
  color: var(--cream);
  svg path {
    fill:var(--sand-light);
  }
}
.section-variant--forest  .section-wave { 
  color: var(--sand-light); 
  svg {
    path {
      fill:var(--forest);
    }
  }
}

.block-cta {
  margin-top:1.5rem;
  text-align:right;
}

/* ─── HERO BACKGROUND (CMS-driven via CSS custom property) ─────── */
#hero::before {
  background: var(--hero-bg, url('hero.jpg')) center center / cover no-repeat;
}

/* ─── ENTRY PAGE ────────────────────────────────────────────────── */
.entry-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  opacity: 0.65;
}
.entry-lead {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 400;
  border-left: 3px solid var(--moss);
  padding-left: 1rem;
}
.entry-feat-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  display: block;
}

/* Gallery */
.entry-gallery { margin-top: 3rem; }
.entry-gallery h3 { color: var(--forest); margin-bottom: 1.25rem; }
.entry-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.entry-gallery-item {
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3/2;
  position: relative;
}
.entry-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.entry-gallery-item:hover img { transform: scale(1.04); }

/* Lightbox */
.entry-lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
}
.entry-lightbox::backdrop { background: var(--black-a85); }
.entry-lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); display: block; }
.lightbox-close {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  background: var(--white-a15);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: var(--white-a30); }

/* Entry documents */
.entry-docs-section { margin-top: 3rem; }
.entry-docs-section h3 { color: var(--forest); margin-bottom: 1.25rem; }
.entry-docs-list { display: flex; flex-direction: column; gap: 0.6rem; }

/* Entry sidebar */
.entry-sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--moss-a10);
  font-size: 0.875rem;
}
.entry-sidebar-row:last-child { border-bottom: none; }
.entry-sidebar-row span { color: var(--text-mid); }
.entry-sidebar-row strong { color: var(--forest); }

@media (max-width: 768px) {
  .entry-gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── PAGINATION ────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--moss-a10);
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest);
  border: 1px solid var(--moss-a25);
  transition: var(--transition);
}
.pagination-link:hover {
  background: var(--forest);
  color: var(--sand);
  border-color: var(--forest);
}
.pagination-info {
  font-size: 0.82rem;
  color: var(--text-mid);
  opacity: 0.65;
}

/* ─── NEWS / ENTRY CARD (image + text) ──────────────────────────── */
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--moss-a10);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.news-card-image { display: block; aspect-ratio: 16/9; overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.news-card:hover .news-card-image img { transform: scale(1.04); }
.news-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-card-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--moss);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.news-card-title {
  font-size: 1rem;
  color: var(--forest);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.news-card-title a { color: inherit; transition: color var(--transition); }
.news-card-title a:hover { color: var(--moss); }
.news-card-lead {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .news-grid { grid-template-columns: 1fr; } }

/* ─── INLINE ICON + TEXT ────────────────────────────────────────── */
.ico-text {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}
.ico-text svg { flex-shrink: 0; margin-top: 2px; color: var(--moss); }

/* ─── ABOUT PAGE ────────────────────────────────────────────────── */

/* Sticky sub-nav */
.about-subnav {
  position: sticky;
  top: 68px;
  z-index: 900;
  background: var(--cream-a92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--moss-a10);
  overflow-x: auto;
  scrollbar-width: none;
}
.about-subnav::-webkit-scrollbar { display: none; }
.about-subnav-inner {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 48px;
}
.about-subnav a {
  flex-shrink: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  white-space: nowrap;
}
.about-subnav a:hover,
.about-subnav a.active {
  color: var(--forest);
  background: var(--moss-a10);
}

/* Page hero — muted subpage variant */
.about-hero {
  position: relative;
  padding: 9rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(36,61,46,0.6) 0%, transparent 70%),
    linear-gradient(175deg, #1B3022 0%, #243d2e 50%, #2a4535 100%);
}
.about-hero .particles { display: none; }
.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
  animation: hero-in 1.2s cubic-bezier(0.4,0,0.2,1) both;
}
.about-hero-content .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--moss-a40);
  border-radius: 100px;
  background: var(--moss-a10);
}
.about-hero-content h1 {
  color: var(--sand);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.about-hero-content h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--sand-light);
}
.about-hero-content p {
  font-size: 1.05rem;
  color: var(--sand-a70);
  font-weight: 300;
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto;
}

/* About intro */
.about-intro { max-width: 760px; }

/* Mission / Vision / Values */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.mvv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--moss-a10);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.mvv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.mvv-card:nth-child(1)::before { background: var(--moss); }
.mvv-card:nth-child(2)::before { background: var(--amber); }
.mvv-card:nth-child(3)::before { background: var(--bark); }
.mvv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--moss-a25);
}
.mvv-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.mvv-card:nth-child(1) .mvv-icon { background: var(--moss-a10); color: var(--moss); }
.mvv-card:nth-child(2) .mvv-icon { background: var(--amber-a10); color: var(--amber); }
.mvv-card:nth-child(3) .mvv-icon { background: rgba(75,61,51,0.08); color: var(--bark); }
.mvv-icon svg { width: 22px; height: 22px; }
.mvv-card h3 {
  font-size: 0.7rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 0.75rem;
}
.mvv-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-style: italic;
  font-family: var(--serif);
}

/* Org chart */
.structure-org { margin-top: 2rem; }
.structure-intro {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 3rem;
}
.org-chart { display: flex; flex-direction: column; align-items: center; }
.org-root {
  background: var(--forest);
  color: var(--sand);
  padding: 1rem 2.2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.org-root h3 { font-size: 1rem; color: var(--sand); font-weight: 600; }
.org-root span {
  display: block;
  font-size: 0.72rem;
  color: var(--sand-a55);
  margin-top: 0.2rem;
  font-family: var(--sans);
  letter-spacing: 0.04em;
}
.org-stem { width: 2px; height: 32px; background: var(--moss-a20); }
.org-level-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 1rem;
  align-self: flex-end;
}
.org-hbar { width: 100%; max-width: 1100px; height: 2px; background: var(--moss-a18); }
.org-branches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 1100px;
  padding-top: 0;
}
.org-col { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-col-stem { width: 2px; height: 20px; background: var(--moss-a18); }
.org-branch {
  background: var(--white);
  border: 2px solid var(--forest);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.75rem;
  text-align: center;
  width: 100%;
  transition: var(--transition);
}
.org-branch:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.org-branch h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.3;
}
.org-sub-stem { width: 2px; height: 16px; background: var(--moss-a15); }
.org-district {
  background: var(--white);
  border: 1.5px solid var(--moss);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.5rem;
  text-align: center;
  width: 100%;
  transition: var(--transition);
}
.org-district:hover { border-color: var(--forest); box-shadow: 0 2px 12px var(--forest-a08); }
.org-district span {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 1.3;
  display: block;
}
.org-note {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.4;
  margin-top: 1rem;
  padding: 0 0.25rem;
  font-style: italic;
}

/* Projects timeline */
.projects-timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-top: 2rem;
}
.projects-timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 11px;
  width: 2px; height: 100%;
  background: var(--moss-a15);
  border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.5rem; top: 0.2rem;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--moss);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.timeline-dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--moss);
}
.timeline-item.completed .timeline-dot { border-color: var(--bark); }
.timeline-item.completed .timeline-dot::after { background: var(--bark); }
.timeline-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--moss-a10);
  transition: var(--transition);
}
.timeline-card:hover {
  border-color: var(--moss-a25);
  box-shadow: var(--shadow-card);
  transform: translateX(4px);
}
.timeline-year {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--forest);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.timeline-item.completed .timeline-year { background: var(--bark); }
.timeline-card h3 { font-size: 1rem; color: var(--forest); margin-bottom: 0.5rem; line-height: 1.35; }
.timeline-card p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 0.25rem; }
.timeline-dates { font-size: 0.78rem; color: var(--moss); font-weight: 500; margin-top: 0.5rem; }

/* Rekviziti */
.rekviziti-card {
  background: var(--moss-a04);
  border: 1px solid var(--moss-a12);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 680px;
}
.rekviziti-card h3 { font-size: 1.15rem; color: var(--forest); margin-bottom: 1.5rem; }
.rekviziti-row {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--moss-a08);
  font-size: 0.88rem;
  line-height: 1.5;
}
.rekviziti-row:last-child { border-bottom: none; }
.rekviziti-label { flex-shrink: 0; width: 180px; color: var(--text-mid); font-weight: 500; font-size: 0.82rem; }
.rekviziti-value { color: var(--text-dark); font-weight: 400; word-break: break-word; }
.rekviziti-value code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  background: var(--moss-a06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Document section (body mode DocumentListBlock) */
.doc-group-title { font-size: 1.25rem; font-weight: 600; color: var(--forest); margin: 0 0 1.25rem; }
.doc-sub-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--moss); margin: 0 0 0.85rem; }
.doc-sub-section { margin-bottom: 2rem; }
.doc-sub-section:last-child { margin-bottom: 0; }
.auction-group.doc-section { border-bottom: none; padding-bottom: 2.5rem; }
.auction-group.doc-section .download-card { padding: 0.7rem 1rem; gap: 0.875rem; }
.auction-group.doc-section .download-icon { width: 32px; height: 32px; }
.auction-group.doc-section .download-icon svg { width: 15px; height: 15px; }
.auction-group.doc-section .download-name { font-size: 0.82rem; }
.auction-group.doc-section .download-btn { padding: 0.3rem 0.65rem; font-size: 0.72rem; }
.auction-group.doc-section .download-btn svg { width: 12px; height: 12px; }

/* About page responsive */
@media (max-width: 1024px) {
  .mvv-grid { grid-template-columns: 1fr 1fr; }
  .org-branches { grid-template-columns: repeat(3, 1fr); }
  .org-hbar { max-width: 100%; }
}
@media (max-width: 768px) {
  .about-hero { padding: 8rem 2rem 3.5rem; }
  .about-subnav-inner { padding: 0 1rem; }
  .mvv-grid { grid-template-columns: 1fr; }
  .org-hbar { display: none; }
  .org-level-label { display: none; }
  .org-branches { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .org-col-stem { display: none; }
  .rekviziti-row { flex-direction: column; gap: 0.2rem; }
  .rekviziti-label { width: auto; }
  .projects-timeline { padding-left: 2rem; }
  .timeline-dot { left: -2rem; width: 20px; height: 20px; }
  .timeline-dot::after { width: 6px; height: 6px; }
}
@media (max-width: 480px) {
  .org-branches { grid-template-columns: 1fr; }
}
