/* Hero carousel controls. */

.hero--carousel {
    display: none;
}

.hero--static-banner {
    margin-top: 22px;
    margin-bottom: 62px;
}

.hero-banner {
    position: relative;
    min-height: 0;
    padding: 0;
    border-radius: 34px;
    overflow: visible;
    background:
        radial-gradient(circle at 18% 26%, rgba(245, 122, 31, 0.24), transparent 24%),
        radial-gradient(circle at 82% 68%, rgba(255, 250, 242, 0.18), transparent 28%),
        radial-gradient(circle at 88% 22%, rgba(40, 58, 86, 0.22), transparent 26%),
        linear-gradient(135deg, #2b3442 0%, #6b614f 34%, #8a7a62 58%, #213042 100%);
    box-shadow: 0 22px 44px rgba(30, 34, 43, 0.24);
}

.hero-banner::before,
.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-banner::before {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(22, 27, 35, 0.18) 0%, rgba(39, 35, 30, 0.1) 22%, rgba(39, 35, 30, 0.03) 46%, rgba(22, 27, 35, 0) 66%),
        linear-gradient(180deg, rgba(255, 252, 248, 0.04) 0%, rgba(22, 27, 35, 0.06) 100%);
}

.hero-banner::after {
    z-index: 1;
    background:
        linear-gradient(90deg, transparent 0, transparent calc(100% - 28px), rgba(255, 248, 238, 0.24) calc(100% - 28px), rgba(255, 248, 238, 0.24) calc(100% - 27px), transparent calc(100% - 27px)),
        linear-gradient(180deg, rgba(255, 248, 238, 0.22) 0, rgba(255, 248, 238, 0.22) 1px, transparent 1px, transparent calc(100% - 1px), rgba(255, 248, 238, 0.22) calc(100% - 1px), rgba(255, 248, 238, 0.22) 100%);
}

.hero-banner__visual {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 0;
}

.hero-banner__image {
    display: block;
    width: min(100%, 1120px);
    height: auto;
    margin: 0 auto;
    filter: brightness(1.08) saturate(1.04);
}

.hero-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 34px 40px 28px 28px;
    pointer-events: none;
}

.hero-banner__overlay::before,
.hero-banner__overlay::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.hero-banner__overlay::before {
    right: 46px;
    top: 42px;
    bottom: 112px;
    width: 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 248, 238, 0.28);
    background:
        repeating-linear-gradient(180deg, rgba(255, 248, 238, 0.28) 0, rgba(255, 248, 238, 0.28) 2px, transparent 2px, transparent 16px),
        linear-gradient(180deg, rgba(255, 252, 248, 0.12), rgba(255, 252, 248, 0.04));
    opacity: 0.78;
}

.hero-banner__overlay::after {
    right: 84px;
    top: 60px;
    width: 278px;
    height: 278px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 122, 31, 0.28) 0%, rgba(245, 122, 31, 0.08) 38%, transparent 72%);
    filter: blur(6px);
    opacity: 0.92;
}

.hero-banner__panel {
    position: relative;
    z-index: 1;
    isolation: isolate;
    align-self: flex-start;
    max-width: 486px;
    margin-top: 18px;
    padding: 28px 28px 26px 34px;
    border-radius: 24px;
    border: 1px solid rgba(255, 248, 238, 0.18);
    background: linear-gradient(180deg, rgba(42, 48, 58, 0.52) 0%, rgba(96, 84, 62, 0.24) 100%);
    box-shadow: 0 18px 38px rgba(24, 29, 37, 0.2);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.hero-banner__panel::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 20px;
    bottom: 20px;
    width: 4px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(180deg, rgba(245, 122, 31, 0.98) 0, rgba(245, 122, 31, 0.98) 6px, transparent 6px, transparent 14px),
        linear-gradient(180deg, rgba(245, 122, 31, 0.82), rgba(245, 122, 31, 0.24));
    opacity: 0.92;
}

.hero-banner__panel::after {
    content: "";
    position: absolute;
    inset: -12px -8px -12px -18px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 24% 22%, rgba(18, 24, 33, 0.34) 0%, transparent 54%),
        linear-gradient(180deg, rgba(18, 24, 33, 0.44) 0%, rgba(18, 24, 33, 0.2) 100%);
    filter: blur(18px);
    opacity: 0.72;
    z-index: -1;
}

.hero-banner__kicker {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 248, 238, 0.2);
    background: rgba(223, 232, 246, 0.08);
    color: rgba(255, 250, 244, 0.96);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.hero-banner__title {
    margin: 18px 0 0;
    max-width: 360px;
    color: var(--accent-strong);
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: clamp(36px, 3.35vw, 56px);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.03em;
    text-shadow: 0 3px 14px rgba(18, 24, 33, 0.45);
}

.hero-banner__title span {
    display: block;
    margin-top: 10px;
    color: var(--accent-strong);
}

.hero-banner__lead {
    max-width: 392px;
    margin: 18px 0 0;
    color: rgba(255, 249, 241, 0.96);
    font-size: 18px;
    line-height: 1.46;
    text-shadow: 0 2px 10px rgba(18, 24, 33, 0.38);
}

.hero-banner__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-banner__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 248, 238, 0.22);
    background: rgba(223, 232, 246, 0.1);
    color: #fffdf9;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.hero-banner__link:hover,
.hero-banner__link:focus-visible {
    transform: translateY(-1px);
    background: rgba(245, 122, 31, 0.22);
    border-color: rgba(240, 174, 126, 0.42);
    color: #fffdf9;
}

.hero-banner__aside {
    position: relative;
    flex: 0 0 360px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}

.hero-banner__aside::before,
.hero-banner__aside::after,
.hero-banner__aside-orbit::before,
.hero-banner__aside-orbit::after,
.hero-banner__aside-core::before {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero-banner__aside::before {
    right: 82px;
    top: 72px;
    width: 248px;
    height: 248px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 122, 31, 0.3) 0%, rgba(245, 122, 31, 0.08) 40%, transparent 72%);
    filter: blur(14px);
    opacity: 0.72;
}

.hero-banner__aside::after {
    right: 104px;
    top: 42px;
    width: 156px;
    height: 268px;
    border-radius: 34px;
    border: 1px solid rgba(255, 248, 238, 0.2);
    background:
        linear-gradient(180deg, rgba(232, 240, 250, 0.18), rgba(255, 246, 240, 0.08)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 48%);
    box-shadow: 0 18px 36px rgba(26, 33, 42, 0.18);
    transform: rotate(-16deg);
}

.hero-banner__aside-orbit {
    position: relative;
    z-index: 1;
    width: 320px;
    height: 324px;
}

.hero-banner__aside-orbit::before {
    right: 70px;
    top: 44px;
    width: 170px;
    height: 264px;
    border-radius: 44px 28px 40px 30px;
    border: 1px solid rgba(255, 248, 238, 0.22);
    background:
        linear-gradient(180deg, rgba(232, 240, 250, 0.26), rgba(255, 246, 240, 0.1)),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 8px, transparent 8px, transparent 24px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 38px rgba(24, 31, 40, 0.18);
    clip-path: polygon(0 10%, 18% 0, 100% 0, 100% 84%, 84% 100%, 0 100%);
    transform: rotate(8deg);
}

.hero-banner__aside-orbit::after {
    right: 108px;
    top: 74px;
    width: 148px;
    height: 228px;
    border-radius: 32px;
    border: 1px solid rgba(255, 248, 238, 0.26);
    background:
        linear-gradient(180deg, rgba(241, 246, 252, 0.42), rgba(255, 246, 240, 0.14)),
        linear-gradient(90deg, rgba(214, 228, 246, 0.16), transparent 44%),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 3px, transparent 3px, transparent 18px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 22px 44px rgba(22, 29, 38, 0.18);
    transform: rotate(-4deg);
}

.hero-banner__aside-core {
    position: absolute;
    right: 46px;
    top: 14px;
    z-index: 2;
    width: 74px;
    height: 74px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(245, 122, 31, 0.52), rgba(245, 122, 31, 0.1));
    box-shadow: 0 16px 28px rgba(24, 31, 40, 0.18);
    transform: rotate(9deg);
}

.hero-banner__aside-core::before {
    inset: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 248, 238, 0.22);
    box-shadow:
        78px 132px 0 -10px rgba(245, 122, 31, 0.96),
        40px 268px 0 -11px rgba(245, 122, 31, 0.84);
}

.hero-banner__aside-core-mark,
.hero-banner__aside-core-subtitle,
.hero-banner__aside-node {
    display: none;
}

.hero-banner__ribbon {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: -34px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 14px 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 214, 180, 0.22);
    background: linear-gradient(180deg, rgba(22, 28, 36, 0.9) 0%, rgba(62, 46, 30, 0.8) 100%);
    backdrop-filter: blur(16px);
    box-shadow:
        0 18px 38px rgba(18, 24, 31, 0.24),
        inset 0 1px 0 rgba(255, 248, 238, 0.08);
    color: rgba(255, 250, 244, 0.98);
    pointer-events: none;
}

.hero-banner__ribbon-title {
    color: var(--accent-strong);
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 19px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(12, 16, 22, 0.22);
    white-space: nowrap;
}

.hero-banner__ribbon-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-strong);
    box-shadow: 0 0 0 4px rgba(245, 122, 31, 0.14);
    flex: 0 0 auto;
}

.hero-banner__ribbon-text {
    font-size: 15px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(12, 16, 22, 0.18);
    white-space: nowrap;
}

.hero-carousel__controls {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-carousel__arrow {
    position: absolute;
    bottom: 18px;
    pointer-events: auto;
}

.hero-carousel__arrow[data-slide-prev] {
    left: 18px;
}

.hero-carousel__arrow[data-slide-next] {
    right: 18px;
}

.hero-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    pointer-events: auto;
}

@media (max-width: 1500px) {
    .hero--static-banner {
        margin-bottom: 32px;
    }

    .hero-banner {
        border-radius: 28px;
        overflow: hidden;
    }

    .hero-banner::after,
    .hero-banner__overlay::before,
    .hero-banner__overlay::after,
    .hero-banner__aside {
        display: none;
    }

    .hero-banner__visual {
        width: 100%;
    }

    .hero-banner__image {
        width: 100%;
    }

    .hero-banner__overlay {
        position: relative;
        inset: auto;
        display: grid;
        gap: 18px;
        justify-content: stretch;
        padding: 0 20px 20px;
    }

    .hero-banner__panel {
        max-width: none;
        width: 100%;
        margin-top: 0;
        padding: 24px 24px 22px 34px;
        border-radius: 24px;
        background: linear-gradient(180deg, rgba(26, 33, 42, 0.82) 0%, rgba(63, 50, 36, 0.72) 100%);
        box-shadow: 0 18px 32px rgba(24, 29, 37, 0.18);
        backdrop-filter: blur(8px);
    }

    .hero-banner__panel::before {
        left: 14px;
        top: 18px;
        bottom: 18px;
    }

    .hero-banner__panel::after {
        inset: -12px -14px -10px -18px;
        opacity: 0.58;
    }

    .hero-banner__kicker {
        min-height: 32px;
        padding: 7px 12px;
        font-size: 11px;
        letter-spacing: 0.11em;
    }

    .hero-banner__title {
        max-width: 560px;
        margin-top: 14px;
        font-size: clamp(36px, 4.3vw, 54px);
    }

    .hero-banner__lead {
        max-width: 680px;
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.45;
    }

    .hero-banner__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
    }

    .hero-banner__link {
        justify-content: center;
        min-height: 42px;
        padding: 9px 12px;
        font-size: 14px;
        line-height: 1.28;
        text-align: center;
        white-space: normal;
    }

    .hero-banner__ribbon {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 20px;
        overflow-x: auto;
    }

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

@media (max-width: 640px) {
    .hero--static-banner {
        margin-bottom: 22px;
    }

    .hero-banner {
        border-radius: 24px;
        overflow: hidden;
    }

    .hero-banner::before {
        background: linear-gradient(180deg, rgba(31, 28, 25, 0.08) 0%, rgba(31, 28, 25, 0.24) 60%, rgba(31, 28, 25, 0.46) 100%);
    }

    .hero-banner__overlay {
        position: relative;
        inset: auto;
        display: grid;
        gap: 12px;
        padding: 0 12px 12px;
    }

    .hero-banner__overlay::before,
    .hero-banner__overlay::after {
        display: none;
    }

    .hero-banner__panel {
        max-width: none;
        margin-top: 0;
        padding: 18px 18px 16px 26px;
        border-radius: 22px;
    }

    .hero-banner__panel::before {
        left: 10px;
        top: 18px;
        bottom: 18px;
        width: 3px;
    }

    .hero-banner__kicker {
        min-height: 30px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .hero-banner__title {
        margin-top: 14px;
        font-size: 34px;
    }

    .hero-banner__title span {
        margin-top: 6px;
    }

    .hero-banner__lead {
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.42;
    }

    .hero-banner__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 16px;
    }

    .hero-banner__link {
        justify-content: center;
        min-height: 40px;
        padding: 9px 12px;
        font-size: 13px;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }

    .hero-banner__ribbon {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 0;
        padding: 12px 14px;
        border-radius: 18px;
    }

    .hero-banner__ribbon-title,
    .hero-banner__ribbon-text {
        white-space: normal;
    }
}
