.custom-slider {
  position: relative;
  width: 400px; /* Фиксированная ширина */
  height: 400px; /* Фиксированная высота */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff; /* Белый фон */
  
}

.slider-container {
  display: flex;
  width: 100%;
  height: 100%;
}

.slide {
  min-width: 100%;
  display: none;
  height: 100%;
}

.slide.active {
  display: flex; /* Используем flex для центрирования */
  align-items: center;
  justify-content: center;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Без обрезки */
  display: block;
}

.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Видео заполняет всю область */
  display: block;
  background: #000; /* Черный фон для видео */
}

/* Индикаторы ПОД слайдером */
.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px; /* Отступ от слайдера */
  padding: 10px 0;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3); /* Темные индикаторы */
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: #000000; /* Черные активные индикаторы */
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .custom-slider {
    width: 100%;
    height: 300px;
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  .custom-slider {
    height: 250px;
  }
}
.slider-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0px 20px;
}

.custom-slider {
  position: relative;
  height: 400px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
}

.slider-container {
  display: flex;
  width: 100%;
  height: 100%;
}

.slide {
  min-width: 100%;
  display: none;
  height: 100%;
}

.slide.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  padding: 10px 0;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: #000000;
}

@media (max-width: 768px) {
  .custom-slider {
    width: 100%;
    height: 300px;
    max-width: 600px;
  }
}
/* СТИЛИ ДЛЯ БЛОКА С КАРТИНКАМИ PDF */
.pdf-download-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.pdf-download-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.pdf-download-row {
  display: flex;
  gap: 30px;
  justify-content: center;
}

/* ВЕРХНИЙ РЯД - БЕЗ ФОНА */
.pdf-download-row.pdf-top-row .pdf-download-item {
  background: transparent;
  box-shadow: none;
  border: none;
}

.pdf-download-row.pdf-top-row .pdf-download-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* НИЖНИЙ РЯД - С ФОНОМ */
.pdf-download-row.pdf-bottom-row .pdf-download-item {
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pdf-download-row.pdf-bottom-row .pdf-download-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ОБЩИЕ СТИЛИ ДЛЯ КАРТИНОК */
.pdf-download-item {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  overflow: hidden;
  width: 300px;
  height: 200px;
  border-radius: 12px;
}

.pdf-download-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-download-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.pdf-download-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(52, 152, 219, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
}

.pdf-download-icon {
  font-size: 24px;
  margin-bottom: 5px;
}

.pdf-download-text {
  font-size: 16px;
  font-weight: 600;
}

.pdf-download-item:hover .pdf-download-overlay {
  opacity: 1;
}

.pdf-download-item:hover .pdf-download-image img {
  transform: scale(1.05);
}

/* Адаптивность для блока с картинками */
@media (max-width: 768px) {
  .pdf-download-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .pdf-download-item {
    width: 100%;
    max-width: 300px;
    height: 180px;
  }
  
  .pdf-download-section {
    padding: 20px 15px;
  }
}
/* Адаптация PDF блока для мобильных устройств до 960px */
@media (max-width: 960px) {
  .pdf-download-section {
    max-width: 100%;
    padding: 30px 20px;
  }
  
  .pdf-download-grid {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .pdf-download-row {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
  }
  
  .pdf-top-row,
  .pdf-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .pdf-download-item {
    width: 100%;
    max-width: 350px;
    height: 180px;
  }
  
  /* ВЕРХНИЙ РЯД - БЕЗ ФОНА (как на десктопе) */
  .pdf-download-row.pdf-top-row .pdf-download-item {
    background: transparent;
    box-shadow: none;
    border: none;
  }
  
  .pdf-download-row.pdf-top-row .pdf-download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  
  /* НИЖНИЙ РЯД - С ФОНОМ (как на десктопе) */
  .pdf-download-row.pdf-bottom-row .pdf-download-item {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  
  .pdf-download-row.pdf-bottom-row .pdf-download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }
}

/* Дополнительная адаптация для очень маленьких экранов */
@media (max-width: 480px) {
  .pdf-download-section {
    padding: 20px 15px;
  }
  
  .pdf-download-item {
    height: 160px;
    max-width: 100%;
  }
  
  .pdf-download-text {
    font-size: 14px;
  }
  
  .pdf-download-icon {
    font-size: 20px;
  }
}