.carousel-wrapper {
    position: relative;
    margin: 20px auto;
    max-width: 100%;
    width: 100%; /* Явно задаём ширину */
}

.carousel {
    display: block;
    overflow: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%; /* Заполняем контейнер */
    height: 240px; /* Фиксируем высоту */
}

.carousel::-webkit-scrollbar {
    height: 0;
}

.carousel-prev,
.carousel-next {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    /* Добавляем явные размеры */
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

.carousel-content {
    display: grid;
    grid-auto-flow: column;
    grid-gap: 16px;
    padding: 0 60px; /* Отступы для кнопок */
    margin: 0 auto;
    min-width: 0; /* Важно для grid */
}

.carousel-item {
    display: block;
    min-width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Запрещаем сжатие */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.parallax {
    height: 60vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    perspective: 1px;
}