﻿.hero-promo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: 960px;
    min-height: 150px;
    margin: 28px auto;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: linear-gradient(115deg, #172331 0%, #101620 55%, #1e1821 100%);
}

.hero-promo__media,
.hero-promo__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-promo__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-promo__overlay {
    display: none;
    background: linear-gradient(90deg, rgba(5, 10, 18, .82) 0%, rgba(5, 10, 18, .58) 38%, rgba(5, 10, 18, .18) 70%, rgba(5, 10, 18, .05) 100%);
}

.hero-promo__media ~ .hero-promo__overlay {
    display: block;
}

.hero-promo__content {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 536px;
    padding: 22px 28px;
    overflow-wrap: anywhere;
}

.hero-promo__title {
    max-width: 480px;
    font-size: clamp(24px, 1.95vw, 28px);
    font-weight: 800;
    line-height: 1.1;
}

.hero-promo__description {
    max-width: 440px;
    color: #d1d7e0;
    font-size: 13px;
    line-height: 1.5;
}

.hero-promo__title + .hero-promo__description {
    margin-top: 8px;
}

.hero-promo__description p {
    margin: 0;
}

.hero-promo__description p + p {
    margin-top: 6px;
}

.hero-promo__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    max-width: 100%;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    transition: transform .18s ease, box-shadow .18s ease;
}

.hero-promo__button > span {
    min-width: 0;
}

.hero-promo__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (hover: hover) {
    .hero-promo__button:hover {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
    }
}

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

    .hero-promo__content {
        max-width: 480px;
        padding: 20px;
    }

    .hero-promo__overlay {
        background: linear-gradient(90deg, rgba(5, 10, 18, .86) 0%, rgba(5, 10, 18, .72) 50%, rgba(5, 10, 18, .4) 100%);
    }

    .hero-promo__title {
        font-size: clamp(21px, 5.9vw, 23px);
    }
}

@media (max-width: 390px) {
    .hero-promo__content {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-promo__button {
        transition: none;
    }
}
