.hero-banner__mask {
    inset: 10px;
    border-radius: 40px;
    overflow: hidden;
}

.hero-banner__mask-svg {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.hero-banner__mask-body {
    left: 17px;
    bottom: 12px;
}

@media (max-width: 1200px) {
    .hero-banner__mask {
        inset: 0;
        border-radius: 34px;
    }

    .hero-banner__mask-body {
        left: 14px;
        bottom: 14px;
    }
}

.hero-banner {
    padding: 0;
    border-radius: 40px;
}

.hero-banner__inner {
    border-radius: 40px;
    background: #fff;
    display: block;
}

.hero-banner__main {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    background: #fff;
    display: flex;
    min-height: 70vh;
}

.hero-banner__media {
    position: absolute;
    inset: 10px;
    border-radius: 40px;
    overflow: hidden;
    z-index: 0;
}

.hero-banner__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.55) 25%, rgba(255, 255, 255, 0.33) 50%, rgba(255, 255, 255, 0.00) 75%);
    z-index: 1;
}

.hero-banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05);
    opacity: 0;
    transition: opacity 1800ms ease;
    will-change: opacity;
    border-radius: 40px;
}

.hero-banner__img.is-active {
    opacity: 1;
}

.hero-banner__content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-left: 24px;
}

.hero-banner__title {
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    color: var(--main-blue)
}

.hero-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 35%, rgba(255, 255, 255, 0) 60%);
}

.hero-banner__text {
    color: var(--text-dark);
    opacity: .7;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 14px;
}


/* thumbs */

.hero-banner__thumbs {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 3;
    overflow: visible;
}

.hero-thumbs__viewport {
    --thumb: 112px;
    --gap: 12px;
    --active-scale: 1.14;

    width: calc(var(--thumb) * var(--active-scale));
    height: calc(var(--thumb) * 3 + var(--gap) * 2 + 20px);

    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    border-radius: 18px;

    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);

    scroll-behavior: auto;
    /* плавность будем контролировать руками */
}

.hero-thumbs__viewport::-webkit-scrollbar {
    display: none;
}

.hero-thumbs__track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap);
    padding: calc(var(--thumb) * 1.2) 0;
}

.hero-thumb {
    position: relative;
    width: var(--thumb);
    height: var(--thumb);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .30);
    background: transparent;
    transition:
        transform 900ms cubic-bezier(.22, .61, .36, 1),
        border-color 900ms ease,
        opacity 900ms ease,
        filter 900ms ease;
    will-change: transform, opacity;
}

.hero-thumb.is-active {
    transform: translateZ(0) scale(var(--active-scale));
    border-color: rgba(255, 255, 255, .7);
}

.hero-thumb.is-dim {
    opacity: .72;
    transform: scale(.92);
}

.hero-thumb.is-far {
    opacity: .46;
    transform: scale(.84);
}

.hero-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    background: rgba(255, 255, 255, .01);
    backdrop-filter: blur(3px) saturate(115%);
    -webkit-backdrop-filter: blur(3px) saturate(115%);
}

.hero-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 35%, rgba(255, 255, 255, 0) 60%);
}

.hero-thumb:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, .55);
}

.hero-thumb__img {
    position: relative;
    z-index: 100;
    display: block;
    margin: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 16px;
    object-fit: cover;
}

.hero-thumb.is-active {
    transform: translateZ(0) scale(var(--active-scale));
    border-color: rgba(255, 255, 255, .7);
}

.hero-banner__mask {
    position: absolute;
    inset: 0px;
    z-index: 4;
    pointer-events: none;
    display: block;
    overflow: hidden;
}

.hero-banner__mask-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 18px 44px rgba(0, 0, 0, .18));
    border-radius: inherit;
}

.hero-banner__mask-body {
    position: absolute;
    left: 24px;
    bottom: 18px;
    width: min(860px, 41vw);
    pointer-events: auto;
}

.hero-banner__mask-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.6rem;
    line-height: 1.05;
    text-transform: uppercase;
    color: #2f5fa8;
    margin: 0 0 14px;
}

.hero-banner__mask-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.hero-banner__mask-btn {
    flex: 1 1 0;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.hero-banner__mask-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.hero-banner__mask-btn--blue {
    background: #365ea7;
    color: #fff;
}

.hero-banner__mask-btn--orange {
    background: #f37b2b;
    color: #fff;
}

.hero-mtabs {
    display: none;
    padding: 10px 0 12px;
}

.hero-mtabs__viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 10px;
}

.hero-mtabs__viewport::-webkit-scrollbar {
    height: 0;
}

.hero-mtabs__track {
    display: inline-flex;
    gap: 10px;
    scroll-snap-type: x mandatory;
}

.hero-mtabs__btn {
    scroll-snap-align: start;
    border: 1px solid rgba(22, 71, 133, 0.18);
    background: #fff;
    color: #2f5fa8;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    padding: 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
}

.hero-mtabs__btn.is-active {
    background: #2f5fa8;
    color: #fff;
    border-color: #2f5fa8;
}

.hero-mbottom {
    display: none;
    margin-top: 14px;
}

.hero-mbottom__title {
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #2f5fa8;
    font-size: 28px;
    margin-bottom: 12px;
    text-align: center;
}

.hero-mbottom__actions {
    display: flex;
    gap: 12px;
}

.hero-mbottom__btn {
    flex: 1 1 0;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
}

.hero-mbottom__btn--blue {
    background: #365ea7;
}

.hero-mbottom__btn--orange {
    background: #f37b2b;
}

@media (min-width: 1900px) {
    .hero-banner__mask-title {
        font-size: 2.7rem;

        margin: 0 0 20px;
    }
}

@media (max-width: 1400px) {
    .hero-banner__mask-title {
        font-size: 1.5rem;

        margin: 0 0 20px;
    }
}

@media (max-width: 1200px) {
    .hero-banner__media::after {
        display: none;
    }

    .hero-banner__mask-btn {
        height: 36px;
    }

    .hero-banner__mask-title {
        font-size: 1.25rem;
    }

    .hero-mtabs {
        display: block;
    }

    .hero-banner__thumbs {
        display: none !important;
    }

    .hero-banner__main {
        min-height: 360px;
        border-radius: 34px;
        overflow: hidden;
    }

    .hero-banner__media {
        inset: 0;
        border-radius: 34px;
    }

    .hero-banner__content {
        position: absolute;
        left: 18px;
        right: 18px;
        top: 56px;
        bottom: auto;
        z-index: 2;
        max-width: 520px;
        padding: 0;
        color: #fff;
    }

    .hero-banner__mask {
        inset: 0;
        border-radius: 34px;
    }

    .hero-banner__mask-body {
        left: 14px;
        bottom: 14px;
    }

    .hero-banner__mask {
        display: none !important;
    }

    .hero-mbottom {
        display: block;
    }

    .hero-banner__main::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 40%;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.60) 15%, rgba(255, 255, 255, 0.82) 35%, rgba(255, 255, 255, 0.92) 60%, rgba(255, 255, 255, 0.97) 80%, rgba(255, 255, 255, 1.00) 100%);
    }

    .hero-banner__content {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 2;
        max-width: 100%;
        padding: 16px 18px 18px;
        color: #2f5fa8;
    }

    .hero-banner__title {
        color: #2f5fa8;
        font-size: 18px;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 8px;
    }

    .hero-banner__text {
        font-size: 14px;
        line-height: 1.25;
        margin-bottom: 10px;
        max-width: 340px;
    }

    .hero-banner__btn {
        border-radius: 999px;
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 800;
    }

    .hero-mbottom__actions {
        flex-direction: row;
    }
}