.geography {
  padding: 0 0 var(--space-section);
  background: var(--bg-page);
}

.geography__intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.geography__title {
  margin: 0 0 var(--space-h2-after);
  font-size: var(--typo-h2-size);
  line-height: var(--typo-h2-line-height);
  font-weight: var(--typo-h2-weight);
  letter-spacing: -0.02em;
}

.geography__subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
}

.geography__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.geography__conditions {
  display: grid;
  gap: 16px;
}

.geography__zones {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.geography-zone {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  text-align: left;
  padding: 16px 18px;
  display: grid;
  gap: 6px;
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base),
    box-shadow var(--transition-base);
}

.geography-zone.is-active {
  border-color: rgba(255, 96, 0, 0.72);
  background: rgba(255, 96, 0, 0.09);
  box-shadow: 0 10px 24px rgba(255, 96, 0, 0.14);
}

.geography-zone:focus-visible {
  outline: none;
  box-shadow:
    var(--focus-ring),
    0 10px 24px rgba(0, 0, 0, 0.25);
}

.geography-zone__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.geography-zone__delivery,
.geography-zone__pricing {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.geography-zone__delivery {
  color: rgba(255, 255, 255, 0.92);
}

.geography-zone__pricing {
  color: rgba(255, 255, 255, 0.72);
}

.geography-panel {
  border-radius: 16px;
  border: 1px solid rgba(255, 96, 0, 0.34);
  background:
    radial-gradient(
      130% 140% at 100% 0%,
      rgba(255, 96, 0, 0.16) 0%,
      rgba(255, 96, 0, 0) 62%
    ),
    rgba(18, 19, 22, 0.96);
  padding: 20px;
  display: grid;
  gap: 10px;
}

.geography-panel__label {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.58);
}

.geography-panel__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.geography-panel__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}

.geography-panel__cta {
  width: 100%;
  margin-top: 8px;
}

.geography-map {
  position: relative;
  isolation: isolate;
  align-self: stretch;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #0a0b0d;
  height: 100%;
  min-height: 100%;
}

.geography-map__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(0.5) saturate(0.8) brightness(0.9) contrast(1);
  transform: scale(1.01);
}

.geography-map::before {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background:
  linear-gradient(180deg, rgba(7, 8, 10, 0.08) 0%, rgba(7, 8, 10, 0.18) 100%),
  radial-gradient(120% 110% at 50% 45%, rgba(16, 18, 22, 0.02) 0%, rgba(8, 9, 11, 0.14) 100%);
}

.geography-map__hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.geography-map__hotspot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 96, 0, 0.24);
  transform: translate(-50%, -50%);
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.geography-map__hotspot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.geography-map__hotspot.is-active {
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 96, 0, 0.86);
  transform: translate(-50%, -50%) scale(1.16);
  box-shadow: 0 0 0 5px rgba(255, 96, 0, 0.24);
}

.geography-map__hotspot:focus-visible {
  outline: none;
  box-shadow:
    var(--focus-ring),
    0 0 0 6px rgba(255, 96, 0, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .geography-zone:hover {
    border-color: rgba(255, 255, 255, 0.24);
  }

  .geography-map__hotspot:hover {
    border-color: rgba(255, 255, 255, 0.96);
    background: rgba(255, 96, 0, 0.72);
  }
}

@media (max-width: 1199px) {
  .geography__intro {
    margin-bottom: 24px;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .geography__layout {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .geography__conditions {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    align-items: start;
    gap: 14px;
  }

  .geography__zones {
    gap: 10px;
  }

  .geography-panel {
    height: 100%;
  }

  .geography-map {
    height: clamp(380px, 58vw, 560px);
    min-height: 0;
    aspect-ratio: auto;
  }

  .geography-map__hotspot {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 767px) {
  .geography__layout {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .geography__conditions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .geography__intro {
    margin-bottom: 18px;
  }

  .geography__subtitle {
    font-size: 15px;
    line-height: 1.4;
  }

  .geography-zone {
    border-radius: 14px;
    padding: 14px;
  }

  .geography-zone__title {
    font-size: 17px;
  }

  .geography-zone__delivery,
  .geography-zone__pricing {
    font-size: 14px;
  }

  .geography-panel {
    border-radius: 14px;
    padding: 16px;
    gap: 8px;
  }

  .geography-panel__title {
    font-size: 21px;
  }

  .geography-map {
    height: clamp(280px, 92vw, 420px);
    min-height: 280px;
    aspect-ratio: auto;
  }

  .geography-map__image {
    transform: scale(1);
  }

  .geography-map__hotspot {
    width: 16px;
    height: 16px;
  }
}

html[data-theme="light"] .geography__subtitle {
  color: var(--text-muted);
}

html[data-theme="light"] .geography-zone__delivery {
  color: var(--text-primary);
}

html[data-theme="light"] .geography-zone__pricing {
  color: var(--text-dim);
}

html[data-theme="light"] .geography-panel__label {
  color: var(--text-dim);
}

html[data-theme="light"] .geography-panel__text {
  color: var(--text-muted);
}

html[data-theme="light"] .geography-panel {
  border-color: rgba(16, 20, 24, 0.16);
  background:
    linear-gradient(180deg, rgba(17, 22, 28, 0.04) 0%, rgba(17, 22, 28, 0) 100%),
    #f3f6fa;
  box-shadow: none;
  border-left: 3px solid rgba(16, 20, 24, 0.2);
}

html[data-theme="light"] .geography-zone.is-active {
  border-color: rgba(16, 20, 24, 0.28);
  background: rgba(17, 22, 28, 0.06);
  box-shadow: none;
  border-left: 3px solid rgba(16, 20, 24, 0.35);
}

html[data-theme="light"] .geography-map {
  background: #e8edf4;
  border-color: rgba(16, 20, 24, 0.1);
}

html[data-theme="light"] .geography-map__image {
  filter: grayscale(0.15) saturate(0.92) brightness(1.08) contrast(0.96);
}

html[data-theme="light"] .geography-map::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(247, 249, 252, 0.12) 100%),
    radial-gradient(120% 110% at 50% 48%, rgba(255, 255, 255, 0.08) 0%, rgba(247, 249, 252, 0) 72%);
}

html[data-theme="light"] .geography-map__hotspot {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(17, 22, 28, 0.38);
}

html[data-theme="light"] .geography-map__hotspot.is-active {
  border-color: #ffffff;
  background: rgba(17, 22, 28, 0.88);
  box-shadow: 0 0 0 5px rgba(16, 20, 24, 0.12);
}

html[data-theme="light"] .geography-map__hotspot:focus-visible {
  box-shadow:
    var(--focus-ring),
    0 0 0 6px rgba(16, 20, 24, 0.1);
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="light"] .geography-map__hotspot:hover {
    border-color: #ffffff;
    background: rgba(17, 22, 28, 0.58);
  }
}
