.ad-slider {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.slides {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
  min-width: 100%;

}

.slide img {
  width: 100%;

  height: auto;
  max-height: 160px;
  display: block;
  max-width: 100%;       /* защита от выхода за контейнер */
  object-fit: cover;    /* опционально: если хочешь, чтобы картинка заполняла блок без искажений */
  border: 1px solid #e0e0e0;
  border-radius: 10px;
}

/* Индикаторы (точки) */
.indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.indicator {
  width: 12px;
  height: 12px;
  background: #ffffff00;
  border-radius: 50%;
  cursor: pointer;
  transition: background .3s;
}

.indicator.active {
  background: #ffffff00;
}

/* Адаптив */
@media (max-width: 768px) {
  .ad-slider {
    border-radius: 0;
  }
}

/* ВСПЛЫВАЮЩЕЕ ОКНО ПО ТАЙМУРУ */

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.5); */
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.popup-window {
    background: linear-gradient(94.43deg, #f5110030 5.35%, #0087ff4d 121.08%);
    backdrop-filter: blur(25px);
    padding: 25px;
    border: 1px solid #575757;
    border-radius: 25px 25px 0px 0px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    /* max-width: 400px; */
    text-align: center;
    bottom: 0px;
    position: absolute;
    height: 50%;
    width: 96%;
    color: #000000;
}
.close-btn {
    background: #f44336;
    border: 1px solid #424242;
    color: #e0e0e0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.close-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.close-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

