.hero-media {
  background-image: url("apm-asamblea-2026.jpg");
  background-color: #08090b;
  background-position: right center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: brightness(1.18) saturate(0.9) contrast(1.02);
}

.hero-shade {
  background: linear-gradient(90deg, #08090b 0%, rgba(8, 9, 11, 0.96) 42%, rgba(8, 9, 11, 0.22) 72%, rgba(8, 9, 11, 0.06) 100%);
}

.hero-stats {
  left: 0;
  right: auto;
}

.territorial-map {
  margin-bottom: 4rem;
  background: #08090b;
  color: #fff;
}

.territorial-map-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 4rem 1rem;
}

.territorial-map-head h3 {
  font-size: clamp(2.8rem, 5vw, 5.4rem);
}

.map-legend {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 0.8rem;
  color: #b8b9bc;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.map-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
}

.map-legend i.demo {
  width: 13px;
  height: 13px;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(195, 17, 32, 0.2);
}

.map-mobile-hint {
  display: none;
}

.territorial-map-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.territorial-map-canvas {
  position: relative;
  min-width: 800px;
  aspect-ratio: 50 / 39;
  overflow: hidden;
  background: #0d1822;
}

.map-land,.map-points {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-land {
  object-fit: contain;
}

.map-source {
  margin: 0;
  padding: 0.9rem 4rem 1.1rem;
  color: #858a91;
  font-size: 0.72rem;
  text-align: right;
}

.map-source a {
  color: #b9bdc3;
}

.map-marker {
  --size: 9px;
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: var(--size);
  height: var(--size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
  cursor: default;
}

button.map-marker.demo {
  --size: 15px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(195, 17, 32, 0.2);
  cursor: pointer;
  z-index: 3;
}

.map-marker span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  padding: 0.42rem 0.58rem;
  border: 1px solid #464a52;
  background: rgba(8, 9, 11, 0.94);
  color: #fff;
  white-space: nowrap;
  font: 700 0.72rem/1 var(--body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.map-marker:hover span,.map-marker:focus-visible span,.map-marker.demo span {
  opacity: 1;
  transform: translate(-50%, -2px);
}

.map-marker:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 6px;
}

.map-marker.demo.active {
  background: #fff;
  box-shadow: 0 0 0 6px var(--red), 0 0 0 11px rgba(195, 17, 32, 0.22);
}

.central-board {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  margin: 0 7vw 6rem;
  background: #08090b;
  color: #fff;
}

.central-board-image {
  min-height: 520px;
  overflow: hidden;
  background: #111317;
}

.central-board-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.central-board-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem;
}

.central-board-copy h3 {
  max-width: 560px;
  font-size: clamp(2.5rem, 4vw, 4.6rem);
}

.central-board-copy > p:not(.eyebrow) {
  color: #b8b9bc;
}

.central-board-roles {
  margin-top: 1.5rem;
  color: #fff !important;
  font: 600 0.86rem/1.8 var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 901px) {
  .hero-media {
    left: 52%;
    background-position: center;
    background-size: contain;
  }

  .hero-shade {
    right: 48%;
    background: #08090b;
  }

  .hero-copy {
    left: 4vw;
    max-width: 47vw;
  }

  .hero-copy h1 {
    font-size: clamp(3.5rem, 5.4vw, 6rem);
  }
}

@media (max-width: 900px) {
  .hero {
    height: 960px;
  }

  .hero-media {
    bottom: auto;
    height: min(75vw, 430px);
    background-position: center top;
    background-size: 100% auto;
  }

  .hero-shade {
    background: linear-gradient(180deg, transparent 0, rgba(8, 9, 11, 0.08) min(75vw, 430px), #08090b calc(min(75vw, 430px) + 55px));
  }

  .hero-copy {
    top: min(75vw, 430px);
    transform: none;
    padding-top: 3rem;
  }

  .hero-stats {
    right: 0;
  }

  .territorial-map {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .territorial-map-head {
    display: block;
    padding: 3rem 1.5rem 1rem;
  }

  .map-legend {
    margin-top: 2rem;
  }

  .map-mobile-hint {
    display: block;
    margin: 0;
    padding: 0 1.5rem 1.2rem;
    color: #8f9298;
    font-size: 0.8rem;
  }

  .territorial-map-canvas {
    min-width: 760px;
  }

  .map-source {
    padding: 0.9rem 1.5rem 1.1rem;
    text-align: left;
  }

  .central-board {
    grid-template-columns: 1fr;
    margin: 0 1.5rem 4rem;
  }

  .central-board-image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .central-board-copy {
    padding: 3rem 1.5rem;
  }
}
