/* ── Запобігаємо горизонтальному скролу ── */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.zone-section {
  overflow: hidden;
}

/* ============================================
   СІТКА РАЙОНІВ ЗАПОРІЖЖЯ
   ============================================ */

.districts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
  /* запобігає переповненню */
}

.district-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--warm-white);
  border: 1.5px solid rgba(123, 191, 106, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all var(--transition);
  cursor: default;
  min-width: 0;
  /* критично для grid-переповнення */
  overflow: hidden;
}

.district-card:hover {
  border-color: rgba(123, 191, 106, 0.5);
  background: var(--green-pale);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(74, 140, 63, 0.10);
}

.district-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.district-card:hover .district-icon {
  transform: scale(1.1);
}

.district-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  line-height: 1.3;
  min-width: 0;
  word-break: break-word;
}

/* ── Мобільна адаптація зони доставки ── */
@media (max-width: 860px) {

  /* Стек: спочатку текст, потім райони */
  .zone-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .zone-text {
    text-align: left;
  }

  /* Кнопка на всю ширину */
  .zone-text .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Райони: 2 колонки */
  .districts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 420px) {

  /* На дуже маленьких — 1 колонка */
  .districts-grid {
    grid-template-columns: 1fr;
  }

  .district-card:hover {
    transform: none;
  }

  /* без зсуву на тач */
}



/* Пульсуюча кнопка */
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  70% {
    transform: scale(1.35);
    opacity: 0;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.btn-pulse {
  position: relative;
}

.btn-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(74, 140, 63, 0.4);
  animation: pulse-ring 2.4s ease-out infinite;
  pointer-events: none;
}

/* Декоративний роздільник */
.divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto 60px;
  max-width: 300px;
  opacity: 0.4;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--green-mid);
}

.divider-leaf {
  font-size: 1.1rem;
}

/* Тег "Безкоштовно" */
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fff7e0, #ffeab0);
  border: 1.5px solid var(--gold-light);
  color: #8a5e1a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

/* Shimmer ефект на картках при завантаженні */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg,
      transparent 40%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 60%);
  animation: shimmer-move 2.4s ease-in-out infinite;
}

@keyframes shimmer-move {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

/* Смуга прокрутки */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--green-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green-mid);
}

/* Виділення тексту */
::selection {
  background: rgba(123, 191, 106, 0.3);
  color: var(--green-dark);
}

/* Маленький значок доставки */
.delivery-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
}

.delivery-tag .tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
}

/* ============================================
   СЕКЦІЯ — ЗОНА ДОСТАВКИ (мінімальна)
   ============================================ */
.zone-section {
  background: var(--cream);
  padding: 80px 0;
}

.zone-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.zone-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.zone-text p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.zone-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zone-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-mid);
  font-weight: 500;
}

.zone-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green-light);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Декоративна карта (SVG-плейсхолдер) */
.map-placeholder {
  background: var(--green-pale);
  border-radius: var(--radius-lg);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed rgba(123, 191, 106, 0.4);
  position: relative;
  overflow: hidden;
}

.map-placeholder .map-city {
  font-size: 3.5rem;
  opacity: 0.6;
}

.map-placeholder .map-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--green-dark);
  font-weight: 700;
}

.map-placeholder .map-sub {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Пульс на карті */
.map-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
}

.map-pulse::before,
.map-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(74, 140, 63, 0.4);
}

.map-pulse::before {
  animation: pulse-ring 2s ease-out infinite;
}

.map-pulse::after {
  animation: pulse-ring 2s ease-out 1s infinite;
}

/* Адаптація зони доставки */
@media (max-width: 860px) {
  .zone-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Липкий телефон (мобільний) */
.sticky-phone {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 990;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 32px rgba(45, 90, 39, 0.4);
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition);
}

.sticky-phone:hover {
  transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 860px) {
  .sticky-phone {
    display: flex;
  }
}