/* ==========================================================================
   ÁËÎÊ: HERO CAROUSEL
   ========================================================================== */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 550px;
    overflow: hidden;
    background-color: #0f172a;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.8s ease-in-out,
        visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ==========================================================================
   ÊÎÍÒÅÉÍÅÐ
   ========================================================================== */

.hero-carousel .container {
    max-width: 95%;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   ÎÑÍÎÂÍÎÉ ÊÎÍÒÅÍÒ
   ========================================================================== */

.hero-content {
    max-width: 700px;
    color: #ffffff;
    margin-left: 75px;
    transform: translateY(25px);
    opacity: 0;
    transition:
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.8s ease-out;
    transition-delay: 0.15s;
}

.carousel-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   ÏÎÄÇÀÃÎËÎÂÎÊ
   ========================================================================== */

.hero-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #38bdf8;
    margin-bottom: 16px;
}

/* ==========================================================================
   ÇÀÃÎËÎÂÎÊ
   ========================================================================== */

.hero-title {
    font-size: 46px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

/* ==========================================================================
   ÎÏÈÑÀÍÈÅ
   ========================================================================== */

.hero-text {
    font-size: 17px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 35px;
}

/* ==========================================================================
   ÊÍÎÏÊÈ HERO
   ========================================================================== */

.hero-actions {
    display: flex;
    
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100vw;
    margin-left: 0px;
}

.hero-carousel .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.hero-carousel .btn-primary {
    background-color: #1f88b5;
    color: #ffffff;
    border: 2px solid #1f88b5;
}

.hero-carousel .btn-primary:hover {
    background-color: #15668a;
    border-color: #15668a;
}

.hero-carousel .btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hero-carousel .btn-secondary:hover {
    background-color: #ffffff;
    color: #0f172a;
}

/* ==========================================================================
   ÓÏÐÀÂËÅÍÈÅ ÑËÀÉÄÅÐÎÌ
   ========================================================================== */

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
    z-index: 10;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.carousel-control:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-control.prev {
    left: 24px;
}

.carousel-control.next {
    right: 24px;
}

/* ==========================================================================
   ÈÍÄÈÊÀÒÎÐÛ ÑËÀÉÄÅÐÀ — ÑÒÐÎÃÎ ÏÎ ÖÅÍÒÐÓ
   ========================================================================== */

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.carousel-indicators .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.carousel-indicators .dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.carousel-indicators .dot.active {
    background-color: #38bdf8;
    transform: scale(1.25);
}

/* ==========================================================================
   TABLET / MOBILE
   ========================================================================== */

@media (max-width: 1024px) {

    .hero-carousel {
        height: auto;
        min-height: 500px;
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .carousel-slide {
        position: relative;
        display: none;
    }

    .carousel-slide.active {
        display: flex;
    }

    .hero-carousel .container {
        width: 100%;
        max-width: 100%;
        padding: 0 28px;
    }

    /* Âåñü êîíòåíò ïî öåíòðó */

    .hero-content {
        width: 100%;
        max-width: 700px;
        margin-left: 0;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
        text-align: center;
    }

    .hero-text {
        font-size: 15px;
        text-align: center;
    }

    /* Êíîïêè ïî öåíòðó */

    .hero-actions {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }

    /* Ñòðåëêè ñêðûâàåì */

    .carousel-control {
        display: none;
    }

    /* Òî÷êè ñòðîãî ïî öåíòðó */

    .carousel-indicators {
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
    }
}

/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 576px) {
     
    .hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}


    .hero-carousel {
        min-height: 500px;
    }

    .hero-carousel .container {
        padding: 0 28px;
    }

    .hero-content {
        width: 100%;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 12px;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.2;
        text-align: center;
    }

    .hero-text {
        font-size: 15px;
        line-height: 1.55;
        text-align: center;
        margin-bottom: 28px;
    }

    .hero-actions {
        justify-content: center;
        align-items: center;
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }

    .hero-carousel .btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .carousel-indicators {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 1024px) {
    .carousel-indicators {
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .carousel-indicators {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
    }
}