/**
 * Двухколоночный hero: текст слева, картинка справа (цвета проекта).
 */

.hero-split__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px 48px;
    align-items: center;
    width: 100%;
    padding: 36px 0 48px;
}

.hero-split__content {
    min-width: 0;
    position: relative;
    z-index: 2;
}

.hero-split__media {
    min-width: 0;
    position: relative;
    z-index: 2;
    width: 350px;
    max-width: 100%;
    margin-left: auto;
}

.hero-split__frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--color-accent);
    box-shadow:
        0 0 0 1px rgba(200, 230, 0, 0.15),
        0 18px 48px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(92, 0, 140, 0.35);
    background: rgba(0, 0, 0, 0.2);
}

.hero-split__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(92, 0, 140, 0.18) 0%,
        transparent 45%,
        rgba(200, 230, 0, 0.12) 100%
    );
}

.hero-split__img {
    display: block;
    width: 350px;
    height: 350px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    vertical-align: middle;
}

/* Hero-обёртки: фон из --hero-bg-image + фирменный оверлей */
.index__hero.hero-split,
.about__hero.hero-split,
.prices__hero.hero-split,
.hero-section.hero-split,
.landing__hero.hero-split {
    position: relative;
    min-height: 0;
    background-color: var(--color-brand) !important;
    background-image: var(--hero-bg-image, none) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

.index__hero.hero-split::before,
.about__hero.hero-split::before,
.prices__hero.hero-split::before,
.hero-section.hero-split::before,
.landing__hero.hero-split::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(74, 0, 112, 0.1) 0%,
        rgba(92, 0, 140, 0.1) 55%,
        rgba(58, 0, 102, 0.1) 100%
    );
}

/* prices имел свой ::before — при split используем общий оверлей */
.prices__hero.hero-split::before {
    background: linear-gradient(
        135deg,
        rgba(74, 0, 112, 0.1) 0%,
        rgba(92, 0, 140, 0.1) 55%,
        rgba(58, 0, 102, 0.1) 100%
    );
}

.index__hero.hero-split .container,
.about__hero.hero-split .container,
.prices__hero.hero-split .container,
.hero-section.hero-split .container,
.landing__hero.hero-split .container {
    position: relative;
    z-index: 2;
}

.index__hero.hero-split .index__hero-content,
.landing__hero.hero-split .landing__hero-content,
.landing__hero.hero-split .index__hero-content {
    max-width: none;
}

@media (max-width: 991px) {
    .hero-split__grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 0 36px;
    }

    .hero-split__media {
        order: -1;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .hero-split__frame {
        width: 100%;
        max-width: 100%;
    }

    .hero-split__img {
        width: 100%;
        height: auto;
        max-width: 100%;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 575px) {
    .hero-split__grid {
        padding: 20px 0 28px;
        gap: 20px;
    }

    .hero-split__media {
        max-width: min(320px, calc(100vw - 32px));
    }

    .hero-split__frame {
        border-radius: 12px;
    }
}
