/* ===== ООО «РЕЗЕРВ» — официальный сайт ===== */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --navy-deep: #061633;
  --gold: #b8860b;
  --gold-soft: #c9a961;
  --burgundy: #7c1e1e;
  --ivory: #f5f1e8;
  --paper: #fbf8f1;
  --paper-2: #f1ece0;
  --ink: #1a1f2e;
  --ink-soft: #4a5468;
  --rule: #d9d2bf;
  --rule-soft: #ebe5d4;
  --ok: #2f6b3a;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display-font, 'PT Serif'), 'Times New Roman', Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.acc {
  /* legacy class - replaced by data-acc attributes */
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--burgundy); text-decoration: underline; }

button { font-family: inherit; cursor: pointer; }

img, svg { display: block; max-width: 100%; }

/* ----- top utility bar ----- */
.utility-bar {
  background: var(--navy-deep);
  color: #cdd6ea;
  font-family: 'PT Sans', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #1f3a66;
}
.utility-bar .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.utility-links { display: flex; gap: 20px; }
.utility-links a { color: #cdd6ea; }
.utility-links a:hover { color: var(--gold-soft); }
.utility-actions { display: flex; gap: 14px; align-items: center; }
.utility-actions button {
  background: transparent;
  border: 1px solid #2a4677;
  color: #cdd6ea;
  padding: 4px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-family: inherit;
  border-radius: 1px;
}
.utility-actions button:hover { background: var(--navy-2); color: #fff; }
.utility-actions button.active { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }

/* ----- crest bar (logo + title) ----- */
.crest-bar {
  background: var(--navy);
  color: var(--ivory);
  border-bottom: 3px solid var(--gold);
  position: relative;
}
.crest-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(to bottom,
    #ffffff 0 33.33%,
    #0033A0 33.33% 66.66%,
    #DA291C 66.66% 100%);
}
.crest-bar .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 32px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.crest-search {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(201,169,97,0.4);
  background: rgba(6,22,51,0.5);
  height: 40px;
}
.crest-search-wrap {
  position: relative;
}
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 380px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 24px rgba(6,16,38,0.35);
  z-index: 200;
}
.search-row {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.1s;
}
.search-row:last-child { border-bottom: none; }
.search-row:hover { background: var(--paper-2); }
.search-row-section {
  display: block;
  font-family: 'PT Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 4px;
}
.search-row-title {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 14.5px;
  color: var(--navy-deep);
  line-height: 1.35;
}
.search-empty {
  padding: 16px;
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.crest-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--ivory);
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  padding: 0 14px;
  width: 220px;
}
.crest-search input::placeholder { color: #8290b3; }
.crest-search button {
  background: var(--gold);
  border: none;
  color: var(--navy-deep);
  padding: 0 14px;
  font-size: 16px;
  cursor: pointer;
}
.emblem {
  flex-shrink: 0;
  position: relative;
  display: grid;
  place-items: center;
}
.emblem-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: var(--navy-deep);
  box-shadow: inset 0 0 0 4px var(--navy-deep), inset 0 0 0 5px rgba(201,169,97,0.35);
}
.emblem-mono {
  position: relative;
  font-family: var(--display-font, 'PT Serif'), serif;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: 'kern' 1;
  transform: translateY(-1px);
}
.crest-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.crest-title .crest-pre {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c9bbf;
  margin-bottom: 2px;
}
.crest-title .full {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ivory);
}
.crest-title .sub {
  font-family: 'PT Sans', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  margin-top: 6px;
}
.crest-spacer { flex: 1; }
.crest-meta {
  text-align: right;
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  color: #b8c4dc;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.crest-meta .reg {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  color: var(--gold-soft);
  margin-top: 4px;
}

/* ----- main nav ----- */
.nav-bar {
  background: var(--navy-2);
  color: #fff;
  font-family: 'PT Sans', sans-serif;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 var(--gold), 0 4px 12px rgba(0,0,0,0.08);
}
.nav-bar .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
}
.nav-bar a, .nav-bar button {
  color: #fff;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  position: relative;
  text-transform: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
}
.nav-bar a:first-child, .nav-bar button:first-child { border-left: 1px solid rgba(255,255,255,0.08); }
.nav-bar a:hover, .nav-bar button:hover,
.nav-bar a.active, .nav-bar button.active {
  background: var(--navy-deep);
  text-decoration: none;
}
.nav-bar a.active::after, .nav-bar button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

/* hamburger toggle — hidden on desktop */
.nav-toggle { display: none; }
/* nav extras section — only shown inside open mobile menu */
.nav-extras { display: none; }

/* ----- breadcrumb ----- */
.breadcrumb {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.breadcrumb .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 9px 32px;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb .sep { margin: 0 8px; color: var(--rule); }

/* ----- main container ----- */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ----- slim page banner (replaces hero) ----- */
.page-banner {
  background: var(--navy-deep);
  color: var(--ivory);
  border-bottom: 1px solid #1a3866;
  position: relative;
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 90% 50%, rgba(184,134,11,0.10), transparent 55%);
  pointer-events: none;
}
.page-banner .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 32px 40px;
  position: relative;
}
.banner-kicker {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.page-banner h1 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.18;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.005em;
  text-wrap: balance;
  max-width: 30ch;
}
.page-banner p {
  font-size: 15px;
  line-height: 1.65;
  color: #b8c4dc;
  max-width: 78ch;
  margin: 0;
  text-wrap: pretty;
}

/* ----- hero (legacy, kept for safety) ----- */
.hero {
  background: var(--navy-deep);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(184,134,11,0.18), transparent 60%),
    radial-gradient(ellipse at 10% 100%, rgba(19,49,92,0.6), transparent 50%);
}
.hero .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px 56px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  position: relative;
  align-items: center;
}
.hero h1 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 24px;
  color: #fff;
  text-wrap: balance;
}
.hero-affil {
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201,169,97,0.25);
  display: inline-block;
  padding-right: 32px;
}
.hero h1 .accent { color: var(--gold-soft); font-style: italic; font-weight: 400; }
.hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: #d6dcec;
  max-width: 56ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  font-family: 'PT Sans', sans-serif;
  font-size: 14px;
  padding: 13px 24px;
  border: 1px solid transparent;
  background: var(--gold);
  color: var(--navy-deep);
  letter-spacing: 0.06em;
  border-radius: 1px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.15s;
}
.btn:hover { background: var(--gold-soft); color: var(--navy-deep); text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: #fff; border-color: var(--gold-soft); }

.hero-card {
  border: 1px solid rgba(201,169,97,0.4);
  background: rgba(8,26,54,0.55);
  backdrop-filter: blur(2px);
  padding: 0;
  position: relative;
}
.hero-card .img-slot {
  height: 280px;
  background:
    repeating-linear-gradient(45deg, rgba(201,169,97,0.06) 0 12px, rgba(201,169,97,0.12) 12px 24px),
    linear-gradient(180deg, #0a2244, #061633);
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(201,169,97,0.3);
}
.hero-card .img-slot .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(6,22,51,0.7);
  padding: 6px 12px;
  border: 1px dashed rgba(201,169,97,0.4);
}
.hero-card .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-card .stat {
  padding: 18px 18px;
  border-right: 1px solid rgba(201,169,97,0.15);
  text-align: center;
}
.hero-card .stat:last-child { border-right: none; }
.hero-card .stat .num {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1;
}
.hero-card .stat .lbl {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  color: #b8c4dc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ----- section base ----- */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
.section.alt { background: var(--ivory); }
.section.dark { background: var(--navy-deep); color: var(--ivory); }
.section.dark .section-head h2 { color: #fff; }
.section.dark .section-head .kicker { color: var(--gold-soft); }
.section.dark .section-head .lede { color: #b8c4dc; }

.section-head {
  margin-bottom: 40px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}
.section-head .kicker {
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-head .kicker::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
}
.section-head h2 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--navy-deep);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.section-head .lede {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 70ch;
  text-wrap: pretty;
}

/* ----- about / pillars ----- */
.about-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.about-text p:first-letter {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-weight: 700;
  font-size: 1.05em;
}
.about-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 2px solid var(--gold);
  padding-left: 28px;
}
.aside-block {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 18px 20px;
}
.aside-label {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.aside-block dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
}
.aside-block dt {
  color: var(--ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.aside-block dd {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--navy-deep);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.pillar {
  background: var(--paper);
  padding: 32px 28px;
  position: relative;
}
.pillar .num {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 14px;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.1em;
}
.pillar h3 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 22px;
  font-weight: 700;
  margin: 10px 0 12px;
  color: var(--navy-deep);
}
.pillar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ----- activities (tabs) ----- */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab {
  background: transparent;
  border: none;
  padding: 14px 20px;
  font-family: 'PT Sans', sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  position: relative;
  cursor: pointer;
}
.tab:hover { color: var(--navy); }
.tab.active {
  color: var(--navy-deep);
  border-bottom-color: var(--gold);
  font-weight: 600;
}
.tab .tab-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  margin-right: 10px;
}
.activity-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.activity-panel h3 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 28px;
  margin: 0 0 16px;
  color: var(--navy-deep);
  text-wrap: balance;
}
.activity-panel p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.activity-list { margin: 20px 0 0; padding: 0; list-style: none; }
.activity-list li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px dashed var(--rule);
  position: relative;
  font-size: 15px;
}
.activity-list li::before {
  content: '§';
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--gold);
  font-family: var(--display-font, 'PT Serif'), serif;
  font-weight: 700;
}
.activity-img {
  background:
    repeating-linear-gradient(135deg, rgba(11,37,69,0.04) 0 14px, rgba(11,37,69,0.08) 14px 28px),
    var(--paper-2);
  border: 1px solid var(--rule);
  height: 360px;
  display: grid;
  place-items: center;
}
.activity-img .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--paper);
  padding: 6px 12px;
  border: 1px dashed var(--rule);
}

/* ----- news ----- */
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.news-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.news-card.feature { grid-row: span 2; }
.news-card .img {
  background:
    repeating-linear-gradient(45deg, rgba(11,37,69,0.05) 0 10px, rgba(11,37,69,0.1) 10px 20px),
    var(--paper-2);
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
}
.news-card.feature .img { aspect-ratio: 16/12; }
.news-card .img .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--paper);
  padding: 5px 10px;
  border: 1px dashed var(--rule);
}
.news-card .body {
  padding: 18px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-card .meta {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  color: var(--burgundy);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  gap: 14px;
}
.news-card .meta .tag { color: var(--ink-soft); }
.news-card h3 {
  font-family: var(--display-font, 'PT Serif'), serif;
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  color: var(--navy-deep);
  text-wrap: balance;
}
.news-card.feature h3 { font-size: 26px; }
.news-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}
.news-card .read {
  margin-top: auto;
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: 8px;
}
.news-card .read::after { content: ' →'; color: var(--gold); }

/* ----- procurement table ----- */
.procurement-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'PT Sans', sans-serif;
  font-size: 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.procurement-table th {
  background: var(--navy-deep);
  color: var(--ivory);
  font-family: 'PT Sans', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 2px solid var(--gold);
}
.procurement-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.procurement-table tr:last-child td { border-bottom: none; }
.procurement-table tr:hover td { background: var(--paper-2); }
.procurement-table .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.procurement-table .price {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  color: var(--navy-deep);
  text-align: right;
  white-space: nowrap;
}
.status {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 1px;
  display: inline-block;
}
.status.open { background: rgba(47,107,58,0.12); color: var(--ok); border: 1px solid rgba(47,107,58,0.3); }
.status.review { background: rgba(184,134,11,0.15); color: var(--gold); border: 1px solid rgba(184,134,11,0.35); }
.status.closed { background: rgba(74,84,104,0.1); color: var(--ink-soft); border: 1px solid var(--rule); }

/* ----- autopark ----- */
.autopark-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.vehicle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.vehicle .img {
  background:
    repeating-linear-gradient(45deg, rgba(11,37,69,0.05) 0 12px, rgba(11,37,69,0.1) 12px 24px),
    var(--paper-2);
  display: grid;
  place-items: center;
  min-height: 220px;
}
.vehicle .img .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--paper);
  padding: 5px 10px;
  border: 1px dashed var(--rule);
  text-align: center;
}
.vehicle .body { padding: 22px 24px; }
.vehicle .body h3 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--navy-deep);
}
.vehicle .body .plate {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--burgundy);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.vehicle dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  font-size: 13px;
  font-family: 'PT Sans', sans-serif;
}
.vehicle dt { color: var(--ink-soft); }
.vehicle dd {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--navy-deep);
}

/* ----- documents ----- */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.req-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 28px 32px;
}
.req-card h3 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 22px;
  margin: 0 0 20px;
  color: var(--navy-deep);
}
.req-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 22px;
  font-family: 'PT Sans', sans-serif;
  font-size: 14px;
}
.req-card dt {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}
.req-card dd {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--navy-deep);
}
.req-card dd.addr {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 14.5px;
  line-height: 1.5;
}

.docs-list { display: flex; flex-direction: column; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.doc-row {
  background: var(--paper);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
}
.doc-row:hover { background: var(--paper-2); }
.doc-icon {
  width: 36px;
  height: 44px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-family: 'PT Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.05em;
  position: relative;
}
.doc-icon::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 10px; height: 10px;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.doc-row .title {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 15px;
  color: var(--navy-deep);
  line-height: 1.4;
}
.doc-row .meta {
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}
.doc-row .size {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-soft);
}

/* ----- management ----- */
.mgmt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.person {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0;
}
.person .portrait {
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(45deg, rgba(11,37,69,0.05) 0 12px, rgba(11,37,69,0.1) 12px 24px),
    var(--paper-2);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--rule);
}
.person .portrait .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--paper);
  padding: 5px 10px;
  border: 1px dashed var(--rule);
}
.person .body { padding: 22px 24px 26px; }
.person h3 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 19px;
  margin: 0 0 4px;
  color: var(--navy-deep);
  text-wrap: balance;
}
.person .role {
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
}

/* ----- contacts ----- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-block h3 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 22px;
  margin: 0 0 18px;
  color: var(--navy-deep);
}
.contact-block .row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  font-family: 'PT Sans', sans-serif;
  font-size: 14px;
}
.contact-block .row .k {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}
.contact-block .row .v { color: var(--navy-deep); }

.map-frame {
  height: 360px;
  background:
    radial-gradient(circle at 60% 40%, rgba(184,134,11,0.15), transparent 30%),
    repeating-linear-gradient(0deg, rgba(11,37,69,0.04) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(11,37,69,0.04) 0 1px, transparent 1px 40px),
    var(--paper-2);
  border: 1px solid var(--rule);
  position: relative;
}
.map-frame .pin {
  position: absolute;
  top: 40%;
  left: 60%;
  width: 14px;
  height: 14px;
  background: var(--burgundy);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(124,30,30,0.25);
}
.map-frame .pin::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  border: 1px dashed var(--burgundy);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  opacity: 0.5;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { width: 14px; height: 14px; opacity: 0.7; }
  100% { width: 80px; height: 80px; opacity: 0; }
}
.map-frame .map-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 6px 10px;
  border: 1px solid var(--rule);
  letter-spacing: 0.1em;
}

/* ----- footer ----- */
.footer {
  background: var(--navy-deep);
  color: #cdd6ea;
  padding: 56px 0 24px;
  font-family: 'PT Sans', sans-serif;
  font-size: 14px;
}
.footer .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1f3a66;
}
.footer h4 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-soft);
  margin: 0 0 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 6px 0; }
.footer a { color: #cdd6ea; }
.footer a:hover { color: var(--gold-soft); text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 12px;
  color: #8290b3;
  letter-spacing: 0.04em;
}
.footer-emblem {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.footer-emblem .text-block .name {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-weight: 700;
  color: var(--ivory);
  font-size: 16px;
}
.footer-emblem .text-block .sub {
  font-size: 12px;
  color: #8290b3;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ----- modal ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,16,38,0.7);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--paper);
  max-width: 560px;
  width: 100%;
  border-top: 4px solid var(--gold);
  padding: 36px 40px 32px;
  position: relative;
  animation: slideIn 0.25s ease-out;
}
@keyframes slideIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal h2 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--navy-deep);
}
.modal .sub {
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.modal .close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
}
.modal .close:hover { color: var(--burgundy); }
.modal .field {
  margin-bottom: 16px;
}
.modal label {
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 6px;
}
.modal input, .modal textarea, .modal select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: #fff;
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 15px;
  color: var(--navy-deep);
  border-radius: 1px;
}
.modal input:focus, .modal textarea:focus, .modal select:focus {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
  border-color: var(--gold);
}
.modal textarea { resize: vertical; min-height: 90px; }
.modal .actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}
.modal .btn-secondary {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
}
.modal .btn-secondary:hover { background: var(--paper-2); color: var(--navy-deep); }

.success-state {
  text-align: center;
  padding: 20px 0;
}
.success-state .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

/* ----- tweaks override ----- */
[data-tweak-accent="burgundy"] .nav-bar a.active::after,
[data-tweak-accent="burgundy"] .nav-bar button.active::after,
[data-tweak-accent="burgundy"] .crest-bar { border-bottom-color: var(--burgundy); }

/* ----- responsive (basic) ----- */
@media (max-width: 980px) {
  .hero .inner, .activity-panel, .news-grid, .autopark-grid, .docs-grid, .mgmt-grid, .contacts-grid, .pillars { grid-template-columns: 1fr; }
  .news-card.feature { grid-row: auto; }
  .hero h1 { font-size: 38px; }
}

/* ===== institutional rewrite — new components ===== */

/* activity aside (replaces photo placeholder) */
.activity-aside {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 28px;
}
.activity-aside .aside-label {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ref-list li {
  font-family: 'PT Sans', sans-serif;
  font-size: 13.5px;
  padding: 9px 0 9px 24px;
  border-bottom: 1px dashed var(--rule);
  position: relative;
  color: var(--navy-deep);
  line-height: 1.45;
}
.ref-list li::before {
  content: '§';
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--gold);
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 16px;
}
.aside-text {
  margin: 0;
  font-family: 'PT Sans', sans-serif;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
}

/* news — feature + list */
.news-feature {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--burgundy);
  padding: 26px 30px 24px;
  margin-bottom: 28px;
}
.news-feature h3 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 24px;
  line-height: 1.3;
  margin: 8px 0 12px;
  color: var(--navy-deep);
  text-wrap: balance;
}
.news-feature p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 78ch;
}
.news-feature-meta, .news-date-col {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-family: 'PT Sans', sans-serif;
}
.news-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--burgundy);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.news-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.news-read {
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-top: 8px;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.news-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--rule);
}
.news-row .news-date-col {
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.news-title-col a {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 17px;
  line-height: 1.4;
  color: var(--navy-deep);
  text-wrap: balance;
}
.news-title-col a:hover { color: var(--burgundy); }

/* management — list */
.mgmt-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  border: 1px solid var(--rule);
}
.mgmt-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 2fr;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.mgmt-row:last-child { border-bottom: none; }
.mgmt-role {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-deep);
}
.mgmt-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--burgundy);
}
.mgmt-note {
  font-family: 'PT Sans', sans-serif;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* vehicle list (replaces autopark-grid) */
.vehicle-list {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.vehicle-row {
  background: var(--paper);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
}
.vehicle-head h3 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--navy-deep);
  letter-spacing: 0.01em;
}
.vehicle-head .plate {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--burgundy);
  padding: 6px 12px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display: inline-block;
  letter-spacing: 0.04em;
}
.vehicle-dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr max-content 1fr;
  gap: 10px 24px;
  font-family: 'PT Sans', sans-serif;
  font-size: 13.5px;
}
.vehicle-dl dt {
  color: var(--ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 2px;
}
.vehicle-dl dd {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--navy-deep);
}

/* contacts 3-col */
.contacts-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.contact-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 40ch;
}

@media (max-width: 980px) {
  .vehicle-row, .contacts-cols, .news-row, .mgmt-row { grid-template-columns: 1fr; }
  .crest-search input { width: 140px; }
}

/* news — primary list with description */
.news-list-prim {
  border-top: 2px solid var(--navy-deep);
}
.news-row-wide {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.news-row-wide .news-date-col {
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding-top: 4px;
}
.news-link-title {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 20px;
  line-height: 1.35;
  color: var(--navy-deep);
  text-wrap: balance;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.news-link-title:hover { color: var(--burgundy); }
.news-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 78ch;
}

/* notice card (procurement) */
.notice-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  padding: 32px 40px 32px;
  max-width: 880px;
  margin: 0 auto;
}
.notice-pre {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 10px;
}
.notice-card h3 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 24px;
  margin: 0 0 16px;
  color: var(--navy-deep);
  text-wrap: balance;
}
.notice-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 78ch;
}
.notice-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--ivory);
  text-decoration: none;
}
.notice-meta {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--rule);
  flex-wrap: wrap;
}
.notice-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.notice-meta .k {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.notice-meta .v { color: var(--navy-deep); }

/* docs: verify link & stubs */
.verify-link {
  display: inline-block;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: 'PT Sans', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.verify-link:hover { color: var(--navy-deep); text-decoration: none; }
.doc-row-stub { cursor: default; }
.doc-row-stub:hover { background: var(--paper); }
.doc-action {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  color: var(--burgundy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc-action.muted { color: var(--ink-soft); }
a.doc-row { color: inherit; }
a.doc-row:hover { text-decoration: none; }

/* welcome block — official greeting */
.section-welcome {
  padding: 56px 0 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.welcome-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.welcome-kicker {
  border-right: 2px solid var(--gold);
  padding-right: 28px;
}
.welcome-kicker .kicker-pre {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 10px;
}
.welcome-kicker .kicker-title {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.2;
}
.welcome-text p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 70ch;
  text-wrap: pretty;
}
.welcome-lead {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 19px !important;
  font-style: italic;
  color: var(--navy-deep) !important;
  font-weight: 700;
  margin-bottom: 18px !important;
}
.welcome-text .verify-link {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 980px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-kicker { border-right: none; border-bottom: 2px solid var(--gold); padding-right: 0; padding-bottom: 18px; }
}

/* compliance grid (anti-corruption / disclosure / PD blocks) */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.compliance-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--burgundy);
  padding: 26px 28px 24px;
  scroll-margin-top: 80px;
}
.compliance-kicker {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
}
.compliance-card h3 {
  font-family: var(--display-font, 'PT Serif'), serif;
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--navy-deep);
  text-wrap: balance;
}
.compliance-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}
.compliance-card .verify-link {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
}
@media (max-width: 980px) {
  .compliance-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   MOBILE ADAPTATION (tablets ≤ 900px, phones ≤ 640px)
   ========================================================= */

@media (max-width: 900px) {
  html, body { font-size: 15px; }

  /* containers */
  .utility-bar .inner,
  .crest-bar .inner,
  .nav-bar .inner,
  .breadcrumb .inner,
  .page-banner .inner,
  .section-head,
  .page,
  .footer .inner { padding-left: 20px; padding-right: 20px; }

  /* utility bar — hidden on mobile; its links live inside burger menu */
  .utility-bar { display: none; }

  /* crest bar — stack; tricolor moves to bottom, replacing gold underline */
  .crest-bar { border-bottom: none; }
  .crest-bar::before {
    top: auto;
    bottom: 0;
    height: 4px;
  }
  .crest-bar .inner {
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .crest-title .full { font-size: 26px; letter-spacing: 0.03em; }
  .crest-title .crest-pre { font-size: 10px; letter-spacing: 0.14em; }
  .crest-title .sub { font-size: 11px; margin-top: 4px; }
  .crest-spacer { display: none; }
  .crest-search-wrap { flex: 1 1 100%; }
  .crest-search { width: 100%; height: 38px; }
  .crest-search input { width: 100%; flex: 1; padding: 0 12px; }
  .search-results { width: 100%; right: auto; left: 0; }

  /* nav bar — collapse to hamburger */
  .nav-bar { position: sticky; top: 0; }
  .nav-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'PT Sans', sans-serif;
    padding: 12px 20px;
    cursor: pointer;
    text-align: left;
  }
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .nav-toggle-pre {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-soft);
  }
  .nav-toggle-cur {
    font-size: 15px;
    letter-spacing: 0.02em;
    color: #fff;
    font-weight: 600;
  }
  .nav-toggle-icon {
    width: 22px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
  }
  .nav-toggle-icon span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transition: transform 0.2s, opacity 0.2s, top 0.2s;
  }
  .nav-toggle-icon span:nth-child(1) { top: 2px; }
  .nav-toggle-icon span:nth-child(2) { top: 7px; }
  .nav-toggle-icon span:nth-child(3) { top: 12px; }
  .nav-toggle-icon.is-open span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .nav-toggle-icon.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle-icon.is-open span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  .nav-bar .inner {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-bar.nav-open .inner { display: flex; }
  .nav-bar a, .nav-bar button {
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 14px 20px;
    font-size: 14px;
    text-align: left;
    white-space: normal;
    width: 100%;
  }
  .nav-bar a:first-child, .nav-bar button:first-child { border-left: none; }
  .nav-bar a:last-child, .nav-bar button:last-child { border-bottom: none; }
  .nav-bar a.active, .nav-bar button.active { background: rgba(184,134,11,0.12); }
  .nav-bar a.active::after, .nav-bar button.active::after {
    top: 0;
    bottom: auto;
    right: auto;
    left: 0;
    width: 3px;
    height: auto;
    bottom: 0;
  }

  /* secondary section inside burger */
  .nav-extras {
    display: flex;
    flex-direction: column;
    background: #04102a;
    border-top: 1px solid rgba(184,134,11,0.25);
    padding: 4px 0 6px;
  }
  .nav-extras-label {
    font-family: 'PT Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-soft);
    padding: 14px 20px 8px;
  }
  .nav-bar .nav-extra,
  .nav-bar a.nav-extra {
    color: #cdd6ea;
    font-family: 'PT Sans', sans-serif;
    font-size: 13.5px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: transparent;
    text-align: left;
    letter-spacing: 0.02em;
  }
  .nav-bar .nav-extra:last-child { border-bottom: none; }
  .nav-bar .nav-extra.is-on { color: var(--gold-soft); }

  /* breadcrumb */
  .breadcrumb { display: none; }

  /* page banner */
  .page-banner .inner { padding-top: 32px; padding-bottom: 28px; }
  .page-banner h1 { font-size: 26px; line-height: 1.22; }
  .page-banner p { font-size: 14px; }
  .banner-kicker { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 10px; }

  /* sections */
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 26px; }
  .section-head .lede { font-size: 15px; margin-top: 10px; }
  .section-head .kicker { font-size: 11px; gap: 10px; }
  .section-head .kicker::before { width: 20px; }

  /* welcome */
  .section-welcome { padding: 36px 0 40px; }
  .welcome-grid { gap: 24px; }
  .welcome-kicker .kicker-title { font-size: 22px; }
  .welcome-text p { font-size: 15px; }
  .welcome-lead { font-size: 17px !important; }

  /* about */
  .about-cols { grid-template-columns: 1fr; gap: 28px; }
  .about-text p { font-size: 15px; line-height: 1.7; }
  .about-aside { border-left: none; border-top: 2px solid var(--gold); padding-left: 0; padding-top: 22px; }

  /* activities — tabs scroll, panel stacks */
  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px;
  }
  .tab { white-space: nowrap; flex-shrink: 0; padding: 12px 14px; font-size: 13px; }
  .tab .tab-num { margin-right: 6px; }
  .activity-panel { gap: 28px; }
  .activity-panel h3 { font-size: 22px; }
  .activity-panel p { font-size: 15px; }
  .activity-aside { border-left: none; border-top: 2px solid var(--gold); padding: 22px 0 0; }
  .activity-img { height: 240px; }

  /* news */
  .news-row-wide, .news-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 4px;
  }
  .news-link-title { font-size: 17px; }
  .news-desc { font-size: 14px; }
  .news-feature { padding: 22px 22px 20px; }
  .news-feature h3 { font-size: 20px; }

  /* procurement notice */
  .notice-card { padding: 24px 22px; }
  .notice-card h3 { font-size: 20px; }
  .notice-card p { font-size: 14.5px; }
  .notice-actions { gap: 10px; }
  .notice-actions .btn { width: 100%; text-align: center; }
  .notice-meta { gap: 18px; margin-top: 22px; padding-top: 18px; }

  /* procurement table — scroll */
  .procurement-table-wrap, .table-scroll {
    overflow-x: auto;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px;
  }
  .procurement-table { font-size: 13px; min-width: 600px; }
  .procurement-table th, .procurement-table td { padding: 12px 14px; }

  /* autopark / vehicles */
  .vehicle-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }
  .vehicle-head h3 { font-size: 20px; }
  .vehicle-dl { grid-template-columns: max-content 1fr; gap: 8px 18px; }

  /* documents */
  .docs-grid { gap: 24px; }
  .req-card { padding: 22px 22px; }
  .req-card h3 { font-size: 20px; }
  .req-card dl { gap: 10px 16px; font-size: 13.5px; }
  .doc-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon title"
      "icon meta"
      "size action";
    gap: 8px 14px;
    padding: 16px 18px;
  }
  .doc-row .doc-icon { grid-area: icon; align-self: start; }
  .doc-row .title { grid-area: title; font-size: 14.5px; }
  .doc-row .meta { grid-area: meta; }
  .doc-row .size { grid-area: size; }
  .doc-row .doc-action { grid-area: action; justify-self: end; }

  /* compliance */
  .compliance-grid { margin-top: 32px; padding-top: 28px; gap: 16px; }
  .compliance-card { padding: 22px 22px 20px; }
  .compliance-card h3 { font-size: 17px; }
  .compliance-card p { font-size: 13.5px; }

  /* management */
  .mgmt-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 22px; }
  .mgmt-role { font-size: 16px; }

  /* contacts */
  .contacts-cols { grid-template-columns: 1fr; gap: 28px; }
  .contact-block h3 { font-size: 20px; margin-bottom: 14px; }
  .contact-block .row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
  .contact-block .row .k { font-size: 11px; padding-top: 0; }
  .contact-text { font-size: 14px; }

  /* map */
  .map-frame { height: 260px; }

  /* hero (legacy) */
  .hero .inner { padding: 36px 20px 32px; gap: 28px; }
  .hero h1 { font-size: 28px; }
  .hero .lede { font-size: 15px; }
  .hero-card .img-slot { height: 200px; }
  .hero-card .stat .num { font-size: 22px; }

  /* footer */
  .footer { padding: 36px 0 20px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }

  /* modal */
  .modal { padding: 26px 22px 22px; }
  .modal h2 { font-size: 20px; }
  .modal-overlay { padding: 14px; }
  .modal .actions { flex-direction: column-reverse; gap: 8px; }
  .modal .actions .btn { width: 100%; }
}

/* phones */
@media (max-width: 560px) {
  .utility-bar .inner { flex-direction: column; align-items: flex-start; }
  .utility-links { font-size: 11px; gap: 10px 14px; }
  .utility-links a:nth-child(n+4) { display: none; }

  .crest-bar .inner { gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .crest-bar .emblem { width: 48px !important; height: 48px !important; }
  .crest-bar .emblem .emblem-mono { font-size: 24px !important; }
  .crest-title { flex: 1; min-width: 0; }
  .crest-title .full { font-size: 22px; }
  .crest-title .crest-pre { font-size: 9px; letter-spacing: 0.12em; }
  .crest-title .sub { font-size: 10.5px; }

  .page-banner h1 { font-size: 22px; }
  .page-banner p { font-size: 13.5px; }

  .section { padding: 36px 0; }
  .section-head h2 { font-size: 22px; }
  .section-head .lede { font-size: 14px; }

  .welcome-kicker .kicker-title { font-size: 19px; }
  .welcome-text p { font-size: 14.5px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid > div:first-child { grid-column: auto; }

  .btn { font-size: 13px; padding: 12px 20px; }

  /* aside dl reflow */
  .aside-block dl { grid-template-columns: 1fr; gap: 4px 0; }
  .aside-block dt { font-size: 10.5px; padding-top: 8px; }
  .aside-block dt:first-child { padding-top: 0; }

  /* req-card dl reflow */
  .req-card dl { grid-template-columns: 1fr; gap: 4px 0; }
  .req-card dt { padding-top: 10px; }
  .req-card dt:first-child { padding-top: 0; }

  /* vehicle dl reflow */
  .vehicle-dl { grid-template-columns: max-content 1fr !important; }
}

/* very narrow */
@media (max-width: 380px) {
  .nav-bar a, .nav-bar button { padding: 10px 12px; font-size: 12.5px; }
  .crest-title .full { font-size: 20px; }
  .page-banner h1 { font-size: 20px; }
  .section-head h2 { font-size: 20px; }
}
