/* Hero главной: полноэкран, параллакс, glass-карточка и glass CTA */

.main-banner-top-big.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent !important;
}

.main-banner-top-big.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--banner-bg, url('/images/bg5.jpg')) center center / cover no-repeat fixed;
    z-index: 0;
    transform: translate3d(0, var(--hero-parallax-y, 0), 0) scale(1.05);
    will-change: transform;
    animation: heroBgZoom 24s ease-in-out infinite alternate;
}

.main-banner-top-big.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.55) 0%,
        rgba(15, 23, 42, 0.35) 50%,
        rgba(15, 23, 42, 0.5) 100%
    );
    z-index: 1;
    pointer-events: none;
}

@keyframes heroBgZoom {
    0% { transform: translate3d(0, var(--hero-parallax-y, 0), 0) scale(1.03); }
    100% { transform: translate3d(0, var(--hero-parallax-y, 0), 0) scale(1.08); }
}

.hero-banner__content.rev_slider_wrapper {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 20px 100px;
    margin: 0;
    background: none;
    min-height: 0;
}

.hero-banner__content .container {
    width: 100%;
}

.hero-banner__row {
    width: 100%;
}

.main-text-banner.hero-glass-card {
    position: relative;
    z-index: 3;
    margin: 0;
    max-width: 560px;
    padding: clamp(1.75rem, 3vw, 2.25rem);
    text-align: left;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    animation: heroFadeUp 0.7s ease-out both;
}

.hero-glass-card h3.text-theme-color-2 {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    letter-spacing: 0.14em;
    margin: 0 0 0.5rem;
}

.hero-glass-card h2.text-theme-colored {
    font-size: clamp(2rem, 5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 0.85rem;
    color: #fff !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.hero-glass-card__lead {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.55;
    margin: 0 0 1.35rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-glass-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 1.15rem;
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hero-feature__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 17px;
}

.hero-feature__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hero-feature__text strong {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.hero-feature__text span {
    font-size: 0.875rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
}

/* CTA-панель: glass поверх фона */
.hero-banner__bar.hero-banner__bar--glass {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.12);
}

.hero-banner__bar.hero-banner__bar--glass::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(var(--theme-accent-rgb, 1, 163, 222), 0.22) 0%,
        rgba(var(--theme-accent-rgb, 1, 163, 222), 0.08) 50%,
        rgba(var(--theme-accent-rgb, 1, 163, 222), 0.18) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.hero-banner__bar.hero-banner__bar--glass .container,
.hero-banner__bar.hero-banner__bar--glass .row,
.hero-banner__bar.hero-banner__bar--glass .call-to-action {
    position: relative;
    z-index: 1;
}

.hero-banner__bar .call-to-action h3 {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* Белая кнопка на glass-полосе — перебивает градиент темы и .bg-theme-color-2 .btn-theme-colored */
.hero-banner__bar.hero-banner__bar--glass .btn.btn-flat.btn-theme-colored {
    background-color: #fff !important;
    background-image: linear-gradient(
        165deg,
        #ffffff 0%,
        #f1f5f9 55%,
        #e8eef4 100%
    ) !important;
    color: var(--theme-color-2, #01a3de) !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-shadow: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
}

.hero-banner__bar.hero-banner__bar--glass .btn.btn-flat.btn-theme-colored:hover,
.hero-banner__bar.hero-banner__bar--glass .btn.btn-flat.btn-theme-colored:focus {
    background-color: #f8fafc !important;
    background-image: linear-gradient(
        165deg,
        #ffffff 0%,
        #eef6fc 100%
    ) !important;
    color: var(--theme-color-2, #01a3de) !important;
    filter: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

.hero-banner__bar.hero-banner__bar--glass .btn.btn-flat.btn-theme-colored i {
    color: inherit;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .main-banner-top-big.hero-banner {
        height: auto;
        min-height: 100vh;
    }

    .main-banner-top-big.hero-banner::before {
        background-attachment: scroll;
        animation: none;
        transform: scale(1.04);
    }

    .hero-banner__content.rev_slider_wrapper {
        padding: 88px 15px 88px;
    }

    .hero-banner__bar .call-to-action {
        text-align: center;
    }

    .hero-banner__bar .col-md-3 {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-banner-top-big.hero-banner::before {
        animation: none;
    }

    .main-text-banner.hero-glass-card {
        animation: none;
    }
}
