@font-face {
  font-family: "e-Ukraine";
  src: url("../fonts/e-Ukraine/e-Ukraine-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "e-Ukraine";
  src: url("../fonts/e-Ukraine/e-Ukraine-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "e-Ukraine";
  src: url("../fonts/e-Ukraine/e-Ukraine-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Volja";
  src: url("../fonts/Volja/Volja-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f3f3f3;
  --bg-card: #ececec;
  --bg-header: #111111;
  --bg-footer: #111111;
  --cream: #ebe6c8;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --white: #ffffff;
  --gold: #e8a317;
  --gold-hover: #f0b53a;
  --line: #d6d6d6;
  --max: 1180px;
  --header-h: 64px;
  --font: "e-Ukraine", "Segoe UI", Arial, sans-serif;
  --title: "e-Ukraine", "Segoe UI", Arial, sans-serif;
  --title-sans: "e-Ukraine", "Segoe UI", Arial, sans-serif;
  --fs: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: var(--fs); }
html.font-lg { --fs: 18px; }
html.font-xl { --fs: 20px; }
html.is-mono { filter: grayscale(1); }

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--gold); }
button, input, select, textarea { font-family: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: .5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

.site-header {
  background: var(--bg-header);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
}
.brand:hover { color: var(--white); }
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-weight: 700;
  font-size: .95rem;
}
.brand-text span {
  font-size: .72rem;
  opacity: .8;
}

.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(232,163,23,.08) 52%, transparent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tool-btn,
.langswitcher a,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 .45rem;
  border: 1px solid rgba(255,255,255,.28);
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-size: .78rem;
  cursor: pointer;
}
.tool-btn:hover,
.langswitcher a:hover,
.social-links a:hover,
.tool-btn.is-active,
.langswitcher a.active {
  background: var(--white);
  color: #111;
}
.langswitcher {
  display: flex;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-links { display: flex; gap: .35rem; }
.social-links a { width: 32px; padding: 0; }
.social-icon { width: 16px; height: 16px; display: block; }

.header-nav {
  border-top: 1px solid rgba(255,255,255,.12);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  min-height: 48px;
}
.menu {
  display: flex;
  gap: .62rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.menu a {
  color: var(--white);
  text-decoration: none;
  font-size: .77rem;
  font-weight: 500;
  padding: .7rem 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.menu a:hover,
.menu .selected > a,
.menu .active > a {
  border-bottom-color: var(--gold);
  color: var(--white);
}
.menu .children {
  display: none;
}
.nav-search-btn,
.nav-toggle {
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: .92rem;
  padding: .4rem .55rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-toggle { display: none; }

.search-panel {
  display: none;
  background: #1c1c1c;
  padding: .75rem 0 1rem;
}
.search-panel.is-open { display: block; }
.search-panel form,
.search-wrapper form {
  display: flex;
  gap: .5rem;
}
.search-input {
  flex: 1;
  height: 44px;
  border: 0;
  padding: 0 1rem;
  font-size: 1rem;
}
.search-submit {
  background: var(--gold);
  border: 0;
  padding: 0 1.1rem;
  cursor: pointer;
  font-weight: 500;
}

.teletype {
  background: var(--cream);
  color: #111;
  overflow: hidden;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.teletype-inner {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 42s linear infinite;
}
.teletype a {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.teletype a:hover { color: #111; text-decoration: underline; }
.teletype:has(a:focus) .teletype-inner,
.teletype:hover .teletype-inner { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero {
  position: relative;
  min-height: min(72vh, 640px);
  background: #111;
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 50%;
  width: min(38vw, 340px);
  height: min(38vw, 340px);
  transform: translateY(-50%);
  background: url("../images/logo-white.png") center/contain no-repeat;
  opacity: .16;
  pointer-events: none;
  z-index: 2;
}
.hero-slide {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: min(72vh, 640px);
  padding: 4rem 0 3.2rem;
  display: none;
  align-items: flex-end;
  background: #1a1a1a center/cover no-repeat;
}
.hero-slide.is-active { display: flex; }
.hero-slide.is-active .wrap { animation: content-rise .62s cubic-bezier(.2,.75,.2,1) both; }
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.62) 48%, rgba(0,0,0,.2) 100%);
}
.hero-slide .wrap { position: relative; z-index: 1; }
.hero-label,
.section-kicker {
  margin: 0 0 .65rem;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-kicker {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  margin: 0 0 1rem;
  max-width: 38rem;
}
.hero h1,
.page-title {
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero p { max-width: 38rem; font-size: 1.05rem; opacity: .92; }
.hero .btn { margin-top: .3rem; box-shadow: 0 8px 22px rgba(0,0,0,.24); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--gold);
  color: #111;
  text-decoration: none;
  padding: .7rem 1.15rem;
  font-weight: 500;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--gold-hover); color: #111; }
.btn { transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(0,0,0,.16); }
.btn-dark {
  background: #111;
  color: #fff;
}
.btn-dark:hover { background: #000; color: #fff; }
.hero-dots {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  gap: .4rem;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.hero-dots button.is-active { background: var(--gold); }

.quick-actions {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: .75rem;
  padding: 1rem 0;
}
.quick-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  text-decoration: none;
  min-height: 84px;
  background: var(--bg);
  font-size: .82rem;
  font-weight: 500;
  text-align: center;
  padding: .6rem;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.quick-grid a:hover { background: var(--cream); border-color: var(--gold); color: #111; transform: translateY(-2px); }
.quick-grid .social-icon { width: 22px; height: 22px; }

.section { padding: 2.5rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-head h2 {
  font-family: var(--title-sans);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.section-head-stacked {
  align-items: end;
  margin-bottom: 1.75rem;
}
.section-head-stacked > p {
  max-width: 34rem;
  margin: 0;
  color: var(--text-muted);
}

.home-services {
  background: #fff;
  border-block: 1px solid var(--line);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  min-height: 250px;
  padding: 1.4rem;
  position: relative;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -48% auto;
  width: 11rem;
  height: 11rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .08;
  transform: scale(.7);
  transition: transform .32s cubic-bezier(.2,.75,.2,1), opacity .32s ease;
}
.service-card:hover {
  background: #1a1a1a;
  color: #fff;
  transform: translateY(-3px);
}
.service-card:hover::before { opacity: .24; transform: scale(1.1); }
.service-card-primary { background: var(--cream); }
.service-index {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.service-card:hover .service-index { color: var(--gold); }
.service-card h3 {
  max-width: 14rem;
  margin: 0 0 .6rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.2;
}
.service-card p {
  max-width: 18rem;
  margin: 0;
  color: var(--text-muted);
  font-size: .92rem;
}
.service-card:hover p { color: rgba(255,255,255,.74); }
.service-arrow {
  position: absolute;
  right: 1.3rem;
  bottom: 1.1rem;
  color: var(--gold);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid currentColor;
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.service-card:hover .service-arrow { color: #111; background: var(--gold); transform: translate(3px,-3px); }
.ui-icon { width: 1.25rem; height: 1.25rem; display: block; }

.news-list { display: flex; flex-direction: column; gap: 1rem; }
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.home-news-grid .news-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}
.home-news-grid .news-card-media { min-height: 190px; }
.home-news-grid .news-card-body { display: flex; flex: 1; flex-direction: column; }
.home-news-grid .news-meta { margin-top: auto; }
.news-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg-card);
  min-height: 160px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { color: inherit; box-shadow: 0 10px 26px rgba(0,0,0,.1); transform: translateY(-2px); }
.news-card-media {
  background: #2a2a2a center/cover no-repeat;
  min-height: 160px;
  position: relative;
}
.news-card-media.is-fallback {
  background:
    linear-gradient(160deg, #2b2b2b, #111),
    url("../images/logo-white.png") center/45% no-repeat;
}
.news-card-body { padding: 1.1rem 1.25rem; }
.news-card h3 {
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 .7rem;
  line-height: 1.3;
}
.news-meta {
  color: var(--text-muted);
  font-size: .85rem;
}
.badge {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #111;
  color: #fff;
  padding: .15rem .45rem;
  margin-bottom: .5rem;
}

.page-hero {
  background: #111;
  color: #fff;
  padding: 2.2rem 0 1.8rem;
  background: linear-gradient(116deg, #121212 0%, #171717 58%, #273c5e 160%);
}
@keyframes content-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 721px) {
  .home-services .service-card { animation: content-rise .55s cubic-bezier(.2,.75,.2,1) both; }
  .home-services .service-card:nth-child(2) { animation-delay: .06s; }
  .home-services .service-card:nth-child(3) { animation-delay: .12s; }
  .home-services .service-card:nth-child(4) { animation-delay: .18s; }
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .85rem;
  opacity: .8;
  margin-bottom: .8rem;
  list-style: none;
  padding: 0;
}
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: .4rem;
  opacity: .6;
}

.lang-notice {
  background: var(--cream);
  padding: .75rem 1rem;
  margin: 1rem 0 0;
  font-size: .92rem;
}

.prose {
  background: #fff;
  padding: 1.6rem 1.5rem 2rem;
  margin-top: 1.25rem;
}
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font);
  font-weight: 500;
}
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  font-size: 1.05rem;
}
.section-children { padding-inline: 0; }
.section-children .card-grid { margin-top: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.section-grid { margin-top: 1.2rem; }
.section-list { margin-top: 1.5rem; }
.empty-state {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: #fff;
  border-left: 3px solid var(--gold);
  color: var(--text-muted);
}

.appeal-actions {
  display: grid;
  gap: .9rem;
  margin: 1.3rem 0 0;
}
.appeal-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .75fr);
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  background: #3f587f;
  color: #fff;
  text-decoration: none;
  border-left: 4px solid var(--gold);
  transition: background .15s ease, transform .15s ease;
}
.appeal-action:hover { color: #fff; background: #293e60; transform: translateY(-1px); }
.appeal-action-dark { background: #1b2c46; }
.appeal-action span {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.appeal-action-title { display: flex; align-items: center; gap: .8rem; }
.appeal-action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.45rem;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(255,255,255,.5);
  font-style: normal;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.appeal-action-icon .ui-icon, .appeal-action-icon .social-icon { width: 1.35rem; height: 1.35rem; }
.appeal-action:hover .appeal-action-icon { background: var(--gold); color: #111; transform: rotate(-4deg); }
.appeal-action small { color: #edf1f6; font-size: .9rem; line-height: 1.4; }

.appeal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .36fr);
  gap: 1.25rem;
  align-items: start;
}
.appeal-layout .prose { margin-top: 1.25rem; }
.appeal-help {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: #1b2c46;
  color: #fff;
  border-top: 4px solid var(--gold);
}
.appeal-help h2 { margin: 0 0 1rem; color: #fff; font-size: 1.05rem; text-transform: uppercase; }
.appeal-help p { margin: 0 0 1rem; font-size: .92rem; color: #e6ecf5; }
.appeal-help a { color: #fff; font-weight: 700; }
.appeal-help .text-link { display: inline-block; margin-top: .2rem; color: var(--gold); }
.intake-panel {
  grid-column: 1 / -1;
  margin: .25rem 0 2rem;
  padding: 1.5rem;
  background: #fff;
  border-top: 4px solid #3f587f;
}
.intake-panel h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.intake-warning {
  margin: 0 0 1.25rem;
  padding: .85rem 1rem;
  background: #fff8e7;
  border-left: 3px solid var(--gold);
  color: #493b1c;
}
.appeal-urgent {
  margin: 1rem 0;
  padding: .85rem 1rem;
  background: #f9eceb;
  border-left: 3px solid #9b2e26;
  color: #4f1713;
}
.appeal-urgent a { color: inherit; font-weight: 800; white-space: nowrap; }
.intake-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.intake-steps li {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  padding: .75rem;
  background: #f2f4f6;
  font-size: .85rem;
  line-height: 1.35;
}
.intake-steps span {
  display: grid;
  place-items: center;
  flex: 0 0 1.4rem;
  height: 1.4rem;
  color: #fff;
  background: #3f587f;
  font-weight: 800;
}
.intake-form { max-width: 860px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .7rem .75rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #8a919b;
  border-radius: 0;
  font: inherit;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(204, 168, 63, .45); outline-offset: 1px; border-color: #3f587f; }
.field-help { margin: .35rem 0 0; color: var(--text-muted); font-size: .86rem; line-height: 1.4; }
.consent-check { display: flex; gap: .65rem; align-items: flex-start; margin: 1rem 0 1.25rem; line-height: 1.35; }
.consent-check input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: .1rem; }
.form-status { margin: 1rem 0 0; padding: .85rem 1rem; background: #eef5ed; border-left: 3px solid #3e7042; }
@media (max-width: 720px) {
  .appeal-action, .appeal-layout, .form-row { grid-template-columns: 1fr; }
  .appeal-action { gap: .45rem; }
  .intake-panel { padding: 1.15rem; }
  .intake-steps { grid-template-columns: 1fr; }
}
.person-card, .dir-card, .file-card, .album-card {
  background: #fff;
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
.person-card:hover, .dir-card:hover, .file-card:hover, .album-card:hover {
  color: inherit;
  box-shadow: 0 0 0 1px #111;
}
.person-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #222 url("../images/logo-white.png") center/50% no-repeat;
  margin-bottom: .8rem;
}
.person-card h2, .dir-card h2, .file-card h2, .album-card h2 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 .35rem;
}
.dir-card p { margin: 0; color: var(--text-muted); font-size: .9rem; }

.org-chart {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}
.org-node {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-weight: 500;
}
.org-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
}
.org-row span {
  background: #fff;
  padding: .9rem .6rem;
  text-align: center;
  font-size: .9rem;
}

.faq details {
  background: #fff;
  padding: .9rem 1rem;
  margin-bottom: .6rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 1rem 0 1.4rem;
}
.filters a, .filters span {
  text-decoration: none;
  font-size: .82rem;
  padding: .35rem .65rem;
  background: #fff;
  border: 1px solid var(--line);
}
.filters a.is-active, .filters a:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.map-placeholder {
  min-height: 320px;
  background: #fff url("../images/logo.jpg") center/180px no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  border: 1px solid var(--line);
}

.territory-directory {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 2rem;
  align-items: center;
  margin: 1.25rem 0 0;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
}
.territory-map { padding: .5rem; }
.territory-map svg { width: 100%; height: auto; display: block; }
.territory-shape { stroke: #fff; stroke-width: 4; }
.territory-west { fill: #d9d5b5; }
.territory-central { fill: #c6c1a2; }
.territory-south { fill: #eee9ce; }
.territory-east { fill: #aaa58b; }
.territory-outline { fill: none; stroke: #111; stroke-width: 3; stroke-linejoin: round; }
.territory-map text {
  fill: #111;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  text-anchor: middle;
}
.territory-directory-copy h2 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
}
.territory-list { display: grid; gap: .55rem; }
.territory-card {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .8rem;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
}
.territory-card:hover { color: var(--text); border-color: #111; }
.territory-code { color: var(--gold); font-size: .76rem; font-weight: 700; letter-spacing: .08em; }
.territory-card strong, .territory-card small { display: block; }
.territory-card strong { font-size: .9rem; font-weight: 500; }
.territory-card small { margin-top: .12rem; color: var(--text-muted); font-size: .78rem; }

.contact-group-title {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 2rem 0 .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.contact-card {
  background: #fff;
  padding: 1.1rem 1.15rem;
}
.contact-card h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 .5rem;
  line-height: 1.35;
}
.article-video {
  width: 100%;
  max-height: 520px;
  background: #111;
  margin: 0 0 1rem;
}
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
  margin: 1.2rem 0 0;
}
.article-lead img { width: 100%; height: auto; }

.pagination {
  display: flex;
  gap: .35rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: #fff;
  text-decoration: none;
}
.pagination .active { background: #111; color: #fff; }

.site-footer {
  background: var(--bg-footer);
  color: #ddd;
  margin-top: 3rem;
  padding: 2.4rem 0 1.4rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer h2 {
  font-family: var(--font);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  margin: 0 0 .8rem;
  font-weight: 500;
}
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .4rem; }
.footer-brand { display: flex; gap: .75rem; align-items: flex-start; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.footer-copy {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 1.6rem;
  padding-top: 1rem;
  font-size: .8rem;
  opacity: .75;
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1c1c1c;
  color: #fff;
  padding: .9rem 1rem;
  display: none;
  z-index: 80;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie.is-open { display: flex; }

.simplesearch .search-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  background: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid,
  .home-news-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 190px; }
  .territory-directory { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 140px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .menu {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: .4rem 0 1rem;
  }
  .menu.is-open { display: flex; }
  .nav-row { flex-wrap: wrap; }
  .brand-text span { display: none; }
}

@media (max-width: 640px) {
  .header-tools .social-links { display: none; }
  .news-card { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head-stacked { align-items: start; }
  .service-card { min-height: 170px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
