.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
    touch-action: pan-y;
}

.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.hero-slide__video,
.hero-slide__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-family: 'inherit';
}

.hero-slide__video {
    background-color: #000;
}

.hero-slide__vimeo {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-slide__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-carousel__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, calc(var(--overlay-opacity, 0.4))) 55%,
        rgba(0, 0, 0, calc(var(--overlay-opacity, 0.5) + 0.15)) 80%,
        rgba(0, 0, 0, calc(var(--overlay-opacity, 0.6) + 0.2)) 100%
    );
}

.hero-carousel__content {
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
}

.hero-carousel__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 300;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.02em;
}

.hero-carousel__subtitle {
    font-size: 16px;
    font-size: clamp(16px, 1.8vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-carousel__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-carousel__actions .btn-hero-primary {
    background: var(--color-primary, #2563eb);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 28px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.hero-carousel__actions .btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.hero-carousel__actions .btn-hero-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 13px 34px;
    border-radius: 28px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.hero-carousel__actions .btn-hero-ghost:hover {
    background: #fff;
    color: var(--color-text-dark, #1a1a2e);
    border-color: #fff;
}

.hero-carousel__scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.hero-carousel__scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    animation: hero-bounce 2s infinite;
}

.hero-carousel__scroll-link:hover {
    color: #fff;
}

@keyframes hero-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.hero-carousel__scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
}

.swiper-button-prev { left: 20px; }
.swiper-button-next { right: 20px; }

.swiper-button-prev::after,
.swiper-button-next::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
}

.swiper-button-prev::after {
    transform: rotate(135deg);
    margin-left: -3px;
}

.swiper-button-next::after {
    transform: rotate(-45deg);
    margin-right: -3px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-pagination {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.hero-pagination__bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    opacity: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

@media (hover: none), (pointer: coarse) {
    .hero-pagination__bullet {
        width: 12px;
        height: 12px;
        padding: 6px;
        background-clip: content-box;
    }
}

.hero-pagination__bullet--active {
    background: #fff;
    transform: scale(1.25);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .hero-carousel {
        min-height: 500px;
    }

    .hero-carousel__content {
        bottom: 18%;
        padding: 0 16px;
    }

    .hero-carousel__title {
        font-size: 28px;
    }

    .hero-carousel__subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-carousel__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-carousel__actions .btn-hero-primary,
    .hero-carousel__actions .btn-hero-ghost {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 44px;
        height: 44px;
    }

    .swiper-button-prev { left: 10px; }
    .swiper-button-next { right: 10px; }

    .hero-pagination {
        bottom: 60px;
    }
}
