.hero {
    position: relative;
    width: 100%;
    min-height: 845px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #E0E5ED;
    margin-bottom: var(--section-gap, 110px) !important;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    line-height: 0;
    max-height: 1125px;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            90deg,
            rgba(224, 229, 237, 1) 0%,
            rgba(224, 229, 237, 1) 24.11%,
            rgba(224, 229, 237, 0.55) 55.52%,
            rgba(224, 229, 237, 0) 100%
    );
    pointer-events: none;
}

.hero__container {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 105px;
    padding-bottom: 0;

    width: 100%;
    max-width: 1232px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}

.hero__content {
    max-width: 708px;
    padding-bottom: 36px;
    padding-top: 50px;
}

.hero__overlay,
.hero__container {
    position: absolute;
    inset: 0;
}

/* TITLE */
.hero__title {
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 52px;
    line-height: 56px;
    letter-spacing: 0;
    color: rgba(31, 79, 206, 1);
    margin: 0 0 8px;
}

/* SUBTITLE */
.hero__subtitle {
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 48px;
    letter-spacing: 0;
    color: rgba(31, 79, 206, 1);
    margin: 0 0 20px;
}

/* DESCRIPTION */
.hero__description {
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: 0;
    color: rgba(31, 79, 206, 1);
    margin: 0 0 28px;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 40px;
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, opacity 0.2s, transform 0.2s ease;
    white-space: nowrap;
    /* Сброс браузерных стилей <button> */
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.hero__btn--primary {
    min-width: 196px;
    background: linear-gradient(180deg, #4085D9 0%, #0C3E9A 100%);
    color: rgba(255, 240, 240, 1);
    border: none;
}

.hero__btn--primary:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.hero__btn--outline {
    min-width: 220px;
    background: transparent;
    border: 2px solid #4085D9 !important;
    color: #1F4FCE;
}

.hero__btn--outline:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.hero__cards{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    display:grid;
    grid-template-columns:270px 172px 356px 282px;
    gap:40px;
}

.hero__card {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    background: rgba(249, 251, 255, 0.6);
    padding: 14px 16px;
    height: 76px;
    box-sizing: border-box;
    border-radius: 15px;
}

.hero__card-icon {
    flex-shrink: 0;
    color: rgba(13, 64, 155, 1);
    display: flex;
    align-items: center;
}

.hero__card-text {
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: rgba(13, 64, 155, 1);
}

/* ---- TABLET (≤1024px) ---- */
@media (max-width: 1024px) {
    .hero__overlay {
        background: linear-gradient(
                90deg,
                rgba(224, 229, 237, 0.97) 0%,
                rgba(224, 229, 237, 0.92) 40%,
                rgba(224, 229, 237, 0.5) 70%,
                rgba(224, 229, 237, 0) 100%
        );
    }

    .hero__content {
        padding-bottom: 10px;
    }

    .hero__cards{
        width:100%;
        max-width:923px;
        margin:0 auto;

        display:flex;
        flex-wrap:wrap;
        gap:20px;
    }

    .hero__card{ width:auto; }

    .hero__title {
        font-size: 38px;
        line-height: 41px;
        max-width: 600px;
    }

    .hero__subtitle {
        font-size: 24px;
        line-height: 28px;
    }

    .hero__description {
        font-size: 16px;
        line-height: 1.5;
        max-width: 375px;
    }

    /* Кнопки */
    .hero__btn {
        height: 38px;
        font-size: 16px;
    }

    .hero__btn--primary {
        min-width: 162px;
    }

    .hero__btn--outline {
        min-width: 212px;
    }

    .hero__card-icon img {
        width: 24px;
        height: 24px;
    }

    .hero__card-text {
        font-size: 12px;
        line-height: 17px;
    }
}

/* ---- MOBILE (≤640px) ---- */
@media (max-width: 640px) {
    .hero-wrap,
    .hero-wrap * {
        text-align: left !important;
    }

    .hero-wrap {
        background: rgba(224, 229, 237, 1);
        margin-top: 0;
    }

    .hero__btn {
        text-align: center !important;
    }

    .hero {
        min-height: 465px;
        background: rgba(224, 229, 237, 1);
    }

    .hero__bg-img {
        object-position: center center;
    }

    .hero__overlay {
        background: rgba(224, 229, 237, 0.88);
    }

    .hero__container {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 24px;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__title {
        font-size: 28px;
        line-height: 33px;
    }

    .hero__subtitle {
        font-size: 18px;
        line-height: 23px;
    }

    .hero__description {
        font-size: 16px;
        line-height: 1.5;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 8px;
    }

    .hero__btn {
        width: 100%;
        height: 38px;
        font-size: 12px;
        line-height: 1.5;
    }

    .hero__btn--primary {
        min-width: unset;
    }

    .hero__btn--outline {
        min-width: unset;
    }

    .hero__cards--inside {
        display: none !important;
    }

    .hero__cards-mobile {
        display: block;
        background: rgba(224, 229, 237, 1);
        padding: 0 30px 24px;
        margin-top: 25px;
    }

    .hero__cards--outside {
        flex-direction: column;
        gap: 15px;
        margin: 0;
        padding: 0;
        width: 100%;
        border: none;
        border-radius: 0;
        overflow: visible;
        background: transparent;
    }

    .hero__cards--outside .hero__card {
        width: 100%;
        height: 64px;
        min-height: unset;
        padding: 12px 16px;
        border-radius: 15px;
        background: rgba(249, 251, 255, 0.6);
        border: 1px solid rgba(31, 79, 206, 0.25);
        flex: none;
    }

    .hero__cards--outside .hero__card-icon img {
        width: 24px;
        height: 24px;
    }

    .hero__cards--outside .hero__card-text {
        font-size: 12px;
        line-height: 17px;
    }

    .hero__card-text br,
    .hero__title br,
    .hero__subtitle br,
    .hero__description br {
        display: none;
    }
}

@media (min-width: 641px) {
    .hero__cards-mobile {
        display: none !important;
    }
}

.hero--dealer .hero__bg {
    overflow: hidden;
}

.hero--dealer .hero__fg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero--dealer .hero__fg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

.hero--dealer .hero__overlay {
    background: linear-gradient(
            90deg,
            rgba(224, 229, 237, 1)    0%,
            rgba(224, 229, 237, 1)    20%,
            rgba(224, 229, 237, 0.60) 50%,
            rgba(224, 229, 237, 0)    100%
    );
    z-index: 2;
}

.hero--dealer .hero__container {
    z-index: 3;
}

.hero--dealer .hero__content {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    padding-bottom: 48px;
}

.hero--dealer .hero__title {
    min-width: 615px;
    font-size: 56px;
    line-height: 66px;
    color: rgba(31, 79, 206, 1);
    margin: 0 0 30px;
}

.hero--dealer .hero__description {
    font-size: 20px;
    line-height: 1.5;
    color: rgba(31, 79, 206, 1);
    margin: 0 0 50px;
}

/* ---- TABLET (≤1024px) — dealer ---- */
@media (max-width: 1024px) {
    .hero--dealer .hero__title {
        font-size: 38px;
        line-height: 45px;
        margin-bottom: 25px;
    }

    .hero--dealer .hero__description {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .hero--dealer .hero__fg {
        left: auto;
        right: 0;
    }
}

/* ---- MOBILE (≤640px) — dealer ---- */
@media (max-width: 640px) {
    .hero--dealer.hero-wrap {
        background: transparent;
    }

    /* Мягкий градиент как на дефолтном герое — лёгкая дымка */
    .hero--dealer .hero__overlay {
        background: linear-gradient(
                90deg,
                rgba(224, 229, 237, 1)    0%,
                rgba(224, 229, 237, 1)    24.11%,
                rgba(224, 229, 237, 0.55) 55.52%,
                rgba(224, 229, 237, 0)    100%
        );
    }

    .hero--dealer .hero__fg {
        width: 100%;
        transform: none;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
    }

    .hero--dealer .hero__fg-img {
        object-fit: cover;
        object-position: right center; /* рукопожатие справа, по центру по высоте */
    }

    .hero--dealer .hero__container {
        padding-bottom: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .hero--dealer .hero__content {
        flex: 1;
        max-width: 100%;
        padding-bottom: 32px;
        display: flex;
        flex-direction: column;
        width: 303px
    }

    .hero--dealer .hero__title {
        font-size: 28px;
        line-height: 33px;
        min-width: unset;
        margin-bottom: 20px;
    }

    .hero--dealer .hero__description {
        font-size: 16px;
        line-height: 1.5;
        color: rgba(31, 79, 206, 1);
        margin-bottom: auto;
        padding-bottom: 32px;
        width: 189px !important;
    }

    .hero--dealer .hero__title br,
    .hero--dealer .hero__description br {
        display: none;
    }
}


@media (max-width: 640px) {
    .hero {
        margin-bottom: var(--section-gap, 0) !important;
    }
    .hero__content {
        padding-top: 0;
    }
    .hero__container {
        padding-top: 25px;
    }
    .hero__btn--outline {
        background: rgba(224, 229, 237, 1);
        border: 2px solid transparent;
        background-clip: padding-box;
        position: relative;
    }

    .hero__btn--outline::before {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 40px;
        background: linear-gradient(180deg, #4085D9 0%, #0C3E9A 100%);
        z-index: -1;
    }

    .hero-wrap {
        margin-top: 0 !important;
    }
}

.hero-wrap {
    margin-top: -54px;
}

.hero--dealer {
    min-height: 600px;
    overflow: hidden;
}

@media (max-width: 640px) {
    .hero--dealer {
        min-height: 580px; /* на мобилке разумная высота */
    }
}

.hero--dealer .hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero--dealer .hero__bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-position: bottom !important;
}

.hero--dealer .hero__fg,
.hero--dealer .hero__overlay,
.hero--dealer .hero__container {
    position: absolute;
    inset: 0;
}

/* DEFAULT 2 */
.acf-builder:has(.breadcrumbs-section + .hero-wrap .hero--default_2) .breadcrumbs-section .container {
    max-width: 1632px;
    padding-top: 32px;

    & .breadcrumbs__link--current {
        text-decoration: none;
    }
}
.hero-wrap:has(.hero--default_2) {
    margin-top: -86px;
}
.hero--default_2 {
    @media screen and (max-width: 640px) {
        min-height: 520px;
    }
    & .hero__overlay {
        max-width: 81.67%;
        background: linear-gradient(90deg, #E0E5ED 0%, rgba(224, 229, 237, 0.996502) 24.11%, rgba(224, 229, 237, 0.932712) 55.52%, rgba(224, 229, 237, 0) 100%);

        @media screen and (max-width: 768px) {
            max-width: none;
        }
    }
    & .hero__container {
        max-width: 1632px;
    }
    & .hero__content {
        max-width: 800px;
        padding-bottom: 64px;
    }
    & .hero__title {
        margin-bottom: 16px;

        @media screen and (min-width: 1025px) {
            font-size: 60px;
            line-height: 72px;
        }
    }
    & .hero__subtitle {
        margin-bottom: 36px;

        @media screen and (min-width: 1025px) {
            font-size: 42px;
            line-height: 52px;
        }
    }
    & .hero__description {
        line-height: 28px;
        font-weight: 400;
        margin-bottom: 24px;
        max-width: 660px;

        @media screen and (max-width: 991px) {
            max-width: 375px;
        }
    }
    & .hero__cards {
        max-width: none;
        grid-template-columns: repeat(auto-fit, minmax(1px, max-content));
    }
    & .hero__card {
        gap: 16px;
        padding: 16px 20px;
    }
    & .hero__card-icon {
        width: 28px;
        min-width: 28px;
        height: 28px;
        display: block;

        & img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
    & .hero__card-text {
        font-size: 13px;
    }
}