/* ----------------------------------- HeroSlider (виджет) ---------------------------------- */
/* Стили hero-слайдера главной. Использует CSS-переменные базы (--mt-*) из assets/css/style.css. */

#home-carousel {
    height: min(92vh, 820px);
    min-height: 560px;
}

#home-carousel .carousel-inner {
    height: 100%;
    /* Dark fallback so the hero is never white while images load or fail */
    background: linear-gradient(115deg, var(--mt-ink-2) 0%, var(--mt-ink-3) 55%, var(--mt-ink) 100%);
}

#home-carousel .carousel-item {
    height: 100%;
}

#home-carousel .carousel-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#home-carousel .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 15, 19, .85) 0%, rgba(13, 15, 19, .5) 55%, rgba(13, 15, 19, .18) 100%);
}

#home-carousel .carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22%;
    text-align: left;
    padding: 0;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--mt-red-light);
    font-weight: 700;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .26em;
    background-color: #fff;
    padding: 3px 10px;
    border-left: 5px solid var(--mt-red-light);
}

/*.hero-eyebrow::before {
    content: '';
    width: 34px;
    height: 2px;
    background: var(--mt-red-light);
}*/

.hero-title {
    font-family: var(--mt-font-display);
    color: #fff;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.08;
    text-transform: uppercase;
    margin: .9rem 0 1.1rem;
}

.hero-title strong {
    color: var(--mt-red-light);
    font-weight: 700;
}

.hero-sub {
    color: rgba(255, 255, 255, .88);
    font-size: 1.05rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 1.8rem;
}

@media (max-width: 991.98px) {
    #home-carousel {
        height: 72vh;
        min-height: 480px;
    }

    #home-carousel .carousel-caption {
        bottom: 14%;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 46px;
        height: 46px;
        margin: 0 .5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-actions .btn-brand,
    .hero-actions .btn-ghost-light {
        width: 100%;
    }
}
