.container {
  margin: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.slider-container {
  position: relative;
  height: 2rem;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.track {
  width: 100%;
  height: 0.5rem;
  background-color: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #3b82f6;
  border-radius: 999px;
  transform-origin: left;
  transition: transform 0.1s ease-out;
}

.custom-thumb {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 1.5rem;
  height: 1.5rem;
  background-color: #3b82f6;
  border: 2px solid white;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateX(-50%) translateY(-50%);
  z-index: 10;
  cursor: pointer;
  transition: transform 0.2s ease-out;
}

.custom-thumb:hover {
  transform: translateX(-50%) translateY(-50%) scale(1.1);
}

#slider {
  position: absolute;
  width: 100%;
  height: 2rem;
  opacity: 0;
  cursor: pointer;
  z-index: 20;
  -webkit-appearance: none;
}

select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  font-size: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9f9f9;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

select::after {
  content: "▾";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 16px;
  color: #999;
  pointer-events: none;
}

select:focus {
  border-color: #012B8E;
  outline: none;
}

option {
  padding: 8px;
  background-color: #ffffff;
  color: #333;
}

.custom-select {
  width: 100%;
  padding: 16px 40px 16px 16px;
  font-size: 18px;
  border-radius: 8px;
  color: #b8b8b8;
  height: 76px;
  background-image: url("./assets/Polygon 2.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: color 0.2s ease;
}
.custom-select.has-value {
  color: #000000 !important;
}

.custom-select:focus {
  border-color: #012B8E;
  box-shadow: 0 0 0 3px rgba(72, 134, 255, 0.2);
}

#map {
  width: 100%;
  height: 400px;
  border: 1px solid #ccc;
}

#popupModal {
  display: none;
}

#popupModal.show {
  display: flex;
}

#popupModal img {
  max-width: 100%;
  height: auto;
}

.adaptive-card__stock {
  background-image: url("../img/Box6.png");
  background-size: 784px;
  background-repeat: no-repeat;
}

#mobileMenu {
  display: none;
  position: fixed;
  z-index: 9999;
  transition: transform 0.3s ease-in-out;
  transform: translateX(-100%);
}

#mobileMenu.active {
  display: block;
  transform: translateX(0);
}

#mobileMenu ul {
  list-style: none;
  padding: 0;
}

#mobileMenu li a {
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}

/* .active {
  background-color: #012B8E;
  color: white;
} */

.thick-blue-slider {
  width: 100%;
  height: 30px;
  margin: 20px 0;
  -webkit-appearance: none;
  background: transparent;
}

.thick-blue-slider::-webkit-slider-runnable-track {
  height: 15px;
  background: linear-gradient(
    to right,
    #012B8E 0%,
    #012B8E var(--fill-percent, 50%),
    #ddd var(--fill-percent, 50%),
    #ddd 100%
  );
  border-radius: 10px;
}

.thick-blue-slider::-moz-range-track {
  height: 15px;
  background: linear-gradient(
    to right,
    #012B8E 0%,
    #012B8E var(--fill-percent, 50%),
    #ddd var(--fill-percent, 50%),
    #ddd 100%
  );
  border-radius: 10px;
}

.thick-blue-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 25px;
  height: 25px;
  margin-top: -5px;
  background: #012B8E;
  border-radius: 50%;
  cursor: pointer;
}

.thick-blue-slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #012B8E;
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 1600px) {
  .contacts__custom-card {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
  }

  .adaptive-card__stock {
    background-image: url("../img/Adaptive-card-stock.png");
    background-size: 100%;
    background-repeat: no-repeat;
  }
}

#price-slider {
  width: 100%;
  cursor: pointer;
  height: 7px;
  border: none;
  background-color: #d9d9d9;
  margin-top: 30px;
}

#price-slider .noUi-connect {
  background-color: #012B8E;
}

#price-slider .noUi-handle {
  cursor: pointer;
  height: 30px;
  width: 30px;
  top: -12px;
  right: -9px;
  border-radius: 50%;
  border: none;
  box-shadow: none;
  background-color: #012B8E;
  outline: none;
}

#price-slider .noUi-handle::after {
  display: none;
}

#price-slider .noUi-handle::before {
  display: none;
}



/* Стиль для всех чекбоксов */
input[type="checkbox"] {
  /* Убираем стандартный внешний вид */
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background-color: #003399; /* Тёмно-синий */
  border-radius: 6px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease;
}

/* Галочка внутри чекбокса */
input[type="checkbox"]::after {
  content: "✓";
  color: white;
  font-size: 10px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

/* Показываем галочку при checked */
input[type="checkbox"]:checked::after {
  opacity: 1;
}

/* Эффект наведения */
input[type="checkbox"]:hover {
  background-color: #00267f;
}

/* Эффект клика */
input[type="checkbox"]:active {
  background-color: #001a5c;
}