.carousel-section {
    margin: auto;
    text-align: left;
    background-color: #fff;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.carousel-header h2 {
    font-size: 22px;
    font-weight: bold;
}

.request-btn {
    background: yellow;
    padding: 12px 20px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: 20px;
}

.main-carousel-container {
    position: relative;
    overflow: hidden;
}

.compilation-link {
    text-decoration: none;
    color: inherit;
    outline: none;
    background: none;
    user-select: none;
    cursor: pointer;
    width: 100%;
    height: 100%;
    border: 0;
}

.carousel-wrapper {
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    margin-bottom: 15vh;
    margin-top: 10vh;
    transition: transform 0.4sease-in-out;
    padding-right: 100px;
    padding-left: 100px;

}

.carousel-item {
    width: 400px; /* Новая ширина */
    height: 300px; /* Новая высота */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    margin-right: 2vh;
    margin-left: : 2vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Добавим тень для лучшего визуала */
}

.carousel-item img {
    width: 100%;
    height: 100%; /* Добавляем высоту для изображения */
    display: block;
    border-radius: 15px;
}

.image-05{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  flex-direction: column;
}

.image-05 img {
object-fit: cover;
}

.carousel-item .info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(2px); /* Эффект размытия фона */
}

.carousel-item .info img {
    width: 16px;
    margin-right: 5px;
}

.carousel-btn {
    position: absolute;
    top: 40%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    z-index: 10;
    transition: transform 0.2s ease; /* Анимация нажатия */
}


.carousel-btn:hover {
    transform: scale(1.1); /* Эффект при наведении */
}

.carousel-btn.left {
    left: 5px;
}

.carousel-btn.right {
    right: 5px;
}

.compilation-card-title {
    font-size: 18px;
    display: flex;
    align-items: center;
}
.compilation-card-title span {
    color: #FFD700;
    font-size: 20px;
    margin-right: 5px;
}
.carousel-item:hover {
    transition: transform 0.3s ease;
    transform: scale(1.03); /* Легкое увеличение изображений */
}

/* Устройства с шириной до 1200px */
@media (max-width: 1200px) {
  .carousel-wrapper {
    padding-left: 50px;
    padding-right: 50px;
  }

  .carousel-item {
    width: 350px;
    height: 260px;
  }

  .carousel-header h2 {
    font-size: 20px;
  }

  .request-btn {
    padding: 10px 18px;
    font-size: 14px;
  }
}

/* Устройства с шириной до 992px */
@media (max-width: 992px) {
  .carousel-wrapper {
    padding-left: 30px;
    padding-right: 30px;
    justify-content: center;
    transform: 0;
  }

  .carousel-item {
    width: 300px;
    height: 220px;
    margin: 0 10px;
  }

  .carousel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .carousel-header h2 {
    font-size: 18px;
  }

  .request-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Устройства с шириной до 768px */
@media (max-width: 768px) {
  .carousel-wrapper {
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  .carousel-item {
    width: 90%;
    height: auto;
    margin: 10px 0;
  }

  .carousel-header h2 {
    font-size: 16px;
  }

  .request-btn {
    padding: 6px 14px;
    font-size: 12px;
  }

  .com-btn {
    display: none !important;
  }
}

/* Устройства с шириной до 480px */
@media (max-width: 480px) {
  .carousel-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }

  .carousel-item {
    width: 100%;
    height: 300px;
    margin: 8px 0;
    object-fit: cover;
  }

  .carousel-header h2 {
    font-size: 14px;
  }

  .request-btn {
    padding: 5px 12px;
    font-size: 11px;
  }

  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .carousel-item .info {
    font-size: 12px;
    padding: 4px 8px;
  }

  .carousel-item .info img {
    width: 14px;
    margin-right: 4px;
  }
}
