@media screen and (max-width: 639px) {
  .brands-slider .slide .item span {
    font-size: 11px;
    font-weight: 300;
  }
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;

  /* Начальное скрытое состояние для анимации */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* Класс, который плавно проявляет подложку */
.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  min-width: 280px;

  /* Эффект легкого вылета снизу вверх */
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

/* Когда попап активен, контент встает на свое место */
.popup-overlay.active .popup-content {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  border: none;
  background: none;
  cursor: pointer;
  color: #aaa;
}
.close-btn:hover {
  color: #000;
}
#city-select {
  padding: 10px;
  font-size: 16px;
  margin: 20px 0;
  display: block;
  width: 100%;
  border-radius: 4px;
  border: 1px solid #ccc;
}
#apply-city {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 100%;
}
#apply-city:hover {
  background: #0056b3;
}

/* Полное затемнение фона с эффектом размытия заднего плана */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    43,
    31,
    24,
    0.4
  ); /* Полупрозрачный глубокий коричневый */
  backdrop-filter: blur(8px); /* Размытие сайта на фоне */
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Модерн-контент в стиле матового кофейного стекла */
.popup-content {
  background: rgba(
    253,
    251,
    247,
    0.85
  ); /* Нежно-кремовый полупрозрачный фон */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 35px 40px;
  border-radius: 24px; /* Трендовые сильно скругленные углы */
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 360px;
  box-shadow:
    0 20px 40px rgba(43, 31, 24, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5); /* Внутреннее свечение */
  border: 1px solid rgba(139, 115, 85, 0.2); /* Едва заметная кофейная рамка */

  /* Плавное увеличение и выпрямление при появлении */
  transform: scale(0.9) translateY(15px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.popup-overlay.active .popup-content {
  transform: scale(1) translateY(0);
}

/* Заголовок окна */
.popup-content h3 {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #4a3728; /* Насыщенный шоколадный цвет */
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
}

/* Стильный минималистичный выпадающий список */
#city-select {
  padding: 12px 16px;
  font-size: 16px;
  margin-bottom: 25px;
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(139, 115, 85, 0.3);
  background: rgba(255, 255, 255, 0.9);
  color: #4a3728;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(43, 31, 24, 0.04);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  appearance: none; /* Убираем дефолтную стрелку браузера */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://w3.org' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2370533e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

#city-select:focus {
  border-color: #8b7355; /* Светло-коричневый акцент при фокусе */
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.15);
}

/* Кнопка "Применить" */
#apply-city {
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: #70533e; /* Благородный кофейный цвет */
  color: #fff;
  border: none;
  border-radius: 14px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(112, 83, 62, 0.3);
  transition:
    background 0.3s,
    transform 0.2s,
    box-shadow 0.3s;
}

#apply-city:hover {
  background: #594130; /* Более темный оттенок при наведении */
  box-shadow: 0 6px 20px rgba(112, 83, 62, 0.4);
}

#apply-city:active {
  transform: scale(0.98); /* Легкий отклик на нажатие */
}

/* Кнопка закрытия (крестик) */
.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  font-weight: 300;
  border: none;
  background: none;
  cursor: pointer;
  color: #8b7355;
  transition:
    color 0.2s,
    transform 0.2s;
  line-height: 1;
}

.close-btn:hover {
  color: #4a3728;
  transform: rotate(90deg); /* Элегантный поворот крестика */
}

.geo-address {
  font-weight: 600;
}
.popup-content {
  position: relative !important;
}

#city-select {
  appearance: none !important;
  padding-right: 40px !important;
}

.popup-content::after {
  content: "" !important;
  position: absolute !important;

  top: 105px !important;
  right: 55px !important;
  transform: translateY(-50%) !important;

  border-width: 6px 5px 0 5px !important;
  border-style: solid !important;
  border-color: #4a3728 transparent transparent transparent !important;

  pointer-events: none !important;
  z-index: 10 !important;
}
