/* Step 1: the production hero remains unchanged. */
@font-face {
  font-family: 'Shifo Manrope';
  src: url('../fonts/Manrope-Variable.woff2') format('woff2'), url('../fonts/Manrope-Variable.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Shifo Cormorant';
  src: url('../fonts/CormorantGaramond-Variable.woff2') format('woff2'), url('../fonts/CormorantGaramond-Variable.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
.site-header { position: fixed; transition: background-color 220ms ease, color 220ms ease; }
.site-header.is-past-hero {
  color: #171d27;
  background: #fff;
  border-bottom-color: #e8e8e5;
  backdrop-filter: none;
}
.site-header.is-past-hero .brand,
.site-header.is-past-hero .desktop-nav a,
.site-header.is-past-hero .header-phone { color: #171d27; }
.site-header.is-past-hero .desktop-nav a:hover,
.site-header.is-past-hero .desktop-nav a:focus-visible { color: #0b5462; background: #f2f5f4; }
.site-header.is-past-hero .lang-switcher { border-color: #d9dfdf; background: #f5f7f7; }
.site-header.is-past-hero .lang-switcher button.is-active { color: #fff; background: #0b3d48; }
.site-header.is-past-hero .header-book { color: #171d27; background: transparent; border-color: #d9dfdf; }
.site-header.is-past-hero .burger { color: #171d27; background: #f5f7f7; border-color: #d9dfdf; }
.site-header a:focus-visible { outline: 3px solid #b9a34d; outline-offset: 5px; }

/* One continuous landscape; the annotated map itself is never cropped or redrawn. */
.territory-overview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 66%);
  align-items: stretch;
  isolation: isolate;
  color: #f8f6ec;
  background: #063b3c;
  scroll-margin-top: -18px;
}
.territory-summary {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 3.4vw, 68px);
  background: linear-gradient(100deg, rgba(0, 37, 33, .94), rgba(1, 48, 46, .82) 62%, rgba(4, 53, 57, .66)), url('../../img/maps/territory-atmosphere.webp') center top / auto 180% no-repeat;
}
.territory-summary::after {
  content: '';
  position: absolute;
  inset: 0 -32px 0 auto;
  width: 64px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(3, 48, 49, .38) 50%, transparent);
}
.territory-summary h2 {
  position: relative;
  margin: 0 0 30px;
  padding: 22px 20px 26px;
  border: 3px double #cba65d;
  background: linear-gradient(110deg, rgba(0, 27, 28, .94), rgba(0, 43, 42, .85));
  color: #eed096;
  font: 400 clamp(26px, 2.05vw, 40px)/1.18 Georgia, 'Times New Roman', serif;
  text-align: center;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.territory-summary h2::after { content: ''; position: absolute; left: 50%; bottom: -15px; width: 78px; height: 28px; transform: translateX(-50%); background: #062f2e url('../../img/maps/title-ornament.svg') center / 72px 26px no-repeat; }
.territory-summary > p { margin: 0; color: #f2f4ed; font: 400 clamp(15px, 1.05vw, 20px)/1.6 'Shifo Manrope', Arial, sans-serif; }
.territory-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; margin: 30px 0 0; }
.territory-facts > div { display: flex; min-width: 0; flex-direction: column; }
.territory-facts dt { order: 1; padding-top: 9px; border-top: 1px solid rgba(221,194,139,.65); color: #e6ebe4; font: 400 clamp(11px, .8vw, 15px)/1.45 'Shifo Manrope', Arial, sans-serif; text-transform: uppercase; }
.territory-facts dd { margin: 0 0 6px; color: #edd299; font: 400 clamp(48px, 4.4vw, 84px)/.95 'Shifo Cormorant', Georgia, serif; font-variant-numeric: lining-nums; letter-spacing: -.025em; white-space: nowrap; }
.territory-facts dd small { font-size: .45em; }
.territory-map { min-width: 0; align-self: center; background: #063b3c; }
.territory-map > a { display: block; cursor: pointer; }
.territory-map > a:focus-visible { outline: 3px solid #edd299; outline-offset: -4px; }
.territory-map img { display: block; width: 100%; height: auto; }
@media (min-width: 901px) and (max-width: 1150px) {
  .territory-overview { grid-template-columns: minmax(0, 35%) minmax(0, 65%); }
  .territory-summary { padding: 26px; }
  .territory-facts { gap: 20px; margin-top: 24px; }
}
@media (max-width: 900px) {
  .territory-overview { grid-template-columns: 1fr; }
  .territory-summary { padding: 34px 32px; background-size: cover, auto max(220%, 190vw); background-position: center top; }
  .territory-summary::after { inset: auto 0 -20px; width: auto; height: 40px; background: linear-gradient(180deg, transparent, rgba(3,48,49,.38), transparent); }
  .territory-summary h2 { max-width: 600px; font-size: 34px; }
  .territory-summary > p { max-width: 620px; font-size: 16px; }
  .territory-facts { max-width: 600px; margin-top: 24px; gap: 20px 32px; }
  .territory-facts dd { font-size: 58px; }
  .territory-facts dt { font-size: 12px; }
}
@media (max-width: 480px) {
  .territory-summary { padding: 30px 24px; }
  .territory-summary h2 { font-size: 28px; padding: 20px 14px 24px; }
  .territory-facts { gap: 22px; }
  .territory-facts dd { font-size: 54px; }
}
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

