@charset "UTF-8";
/* =====================================================
   region-modal.css — Модальное окно выбора региона
   Содержит: .region-modal и все дочерние элементы
   Зависимости: base.css (анимации fadeIn, slideUp)
   Триггер: кнопка .region-selector-btn (в HEADER.css)
   ===================================================== */

/* ═══ OVERLAY + КОНТЕЙНЕР ═══ */

.region-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  overflow-y: auto;
}

.region-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.region-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  z-index: 1;
}

/* ═══ ЗАГОЛОВОК ═══ */

.region-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  color: #666;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.region-modal-close:hover { background: #f5f5f5; color: #333; }

.region-modal-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.region-modal-subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: #666;
}

/* ═══ ВАРИАНТЫ РЕГИОНОВ ═══ */

.region-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.region-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.region-option:hover {
  border-color: #4CAF50;
  background: #f9fdf9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.1);
}

/* Активный регион */
.region-option_active,
.region-option.active {
  border-color: #4CAF50;
  background: #f0f8f0;
}

.region-option-icon { font-size: 32px; flex-shrink: 0; line-height: 1; }
.region-option-content { flex: 1; }
.region-option-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 4px; }
.region-option-description { font-size: 13px; color: #666; line-height: 1.4; }

/* Чекбокс (зелёный кружок) */
.region-option-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.region-option-check svg {
  opacity: 0;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
  transition: opacity 0.2s ease;
}
.region-option_active .region-option-check,
.region-option.active .region-option-check {
  background: #4CAF50;
  border-color: #4CAF50;
}
.region-option_active .region-option-check svg,
.region-option.active .region-option-check svg {
  opacity: 1;
}

/* ═══ АДАПТИВ ═══ */

@media (max-width: 768px) {
  .region-modal-content { padding: 24px; max-width: 95%; }
  .region-modal-title { font-size: 20px; }
  .region-option { padding: 14px; }
  .region-option-icon { font-size: 28px; }
  .region-option-title { font-size: 15px; }
  .region-option-description { font-size: 12px; }
}

@media (max-width: 360px) {
  .region-modal-content { padding: 16px; }
  .region-modal-title { font-size: 18px; }
  .region-option { padding: 12px; gap: 10px; }
}

@media (max-width: 240px) {
  .region-modal-content { width: 95%; padding: 12px; border-radius: 10px; }
  .region-modal-title { font-size: 16px; }
  .region-option { padding: 10px; gap: 8px; flex-wrap: wrap; }
  .region-option-icon { font-size: 24px; }
}
