/* Homepage hero: equipment selection and cost calculation. */
.home-hero-static,
.home-hero-static * {
    font-family: var(--font-family);
}

.home-hero-static {
    position: relative;
    min-height: clamp(610px, 35.16vw, 675px);
    overflow: hidden;
    background: #021656;
    isolation: isolate;
}

.home-hero-static .container {
    position: relative;
    z-index: 1;
    min-height: inherit;
}

.home-hero-static__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.home-hero-static__bg {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.home-hero-static__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(100%, 720px);
    min-height: inherit;
    padding: 32px 0;
    color: var(--white);
}

.home-hero-static__badge {
    display: inline-flex;
    position: relative;
    top: auto;
    left: auto;
    align-items: center;
    min-height: 36px;
    margin: 12px 0 10px;
    padding: 7px 18px;
    border-radius: 12px;
    background: var(--white);
    color: #483df7;
    font-size: clamp(12px, 0.82vw, 14px);
    font-weight: 700;
    line-height: 1.25;
    /* Overrides the legacy hero rule from base.css regardless of asset load order. */
    text-transform: none !important;
    letter-spacing: 0;
}

.home-hero-static__title {
    position: relative;
    top: auto;
    left: auto;
    max-width: 720px;
    margin: 0 0 18px;
    color: var(--white);
    font-size: clamp(38px, 2.71vw, 52px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-transform: none;
}

.home-hero-static__text {
    position: relative;
    top: auto;
    left: auto;
    max-width: 510px;
    margin: 0 0 22px;
    color: var(--white);
    font-size: clamp(16px, 1.08vw, 20px);
    font-weight: 500;
    line-height: 1.3;
}

.home-hero-static__br-desktop {
    display: inline;
}

.home-hero-static__benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 720px);
    margin: 0 0 32px;
    padding: 0;
    gap: 16px;
    list-style: none;
}

.home-hero-static__benefit {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    color: var(--white);
    font-size: clamp(12px, 0.73vw, 14px);
    font-weight: 500;
    line-height: 1.18;
}

.home-hero-static__benefit-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgb(255 255 255 / 0.72);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 6px 18px rgb(1 16 74 / 0.2);
    color: var(--blue-400);
}

.home-hero-static__benefit-icon svg {
    width: 23px;
    height: 23px;
}

.home-hero-static__benefit-icon--percent {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

@media (min-width: 1281px) {
    .home-hero-static__title {
        white-space: nowrap;
    }
}

.home-hero-static__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.home-hero-static__btn {
    display: inline-flex;
    position: relative;
    top: auto;
    left: auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    margin: 0;
    padding: 18px 28px;
    padding-inline: 28px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--gradient-color);
    box-shadow: var(--shadow-color);
    color: var(--white);
    font-size: clamp(16px, 0.94vw, 18px);
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--trn-200), opacity var(--trn-200);
}

.home-hero-static__btn:active {
    transform: translateY(1px);
}

.home-hero-static__catalog-link {
    display: inline-flex;
    position: relative;
    top: auto;
    left: auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    margin: 0;
    padding: 18px 28px;
    padding-inline: 28px;
    border: 1px solid var(--white);
    border-radius: 14px;
    background: transparent;
    color: var(--white);
    font-size: clamp(16px, 0.94vw, 18px);
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--trn-200), transform var(--trn-200), opacity var(--trn-200);
}

.home-hero-static__catalog-link:active {
    transform: translateY(1px);
}

.home-hero-static__catalog-link svg {
    display: inline-block;
    flex-shrink: 0;
    width: 16px;
    height: 12px;
    transition: transform var(--trn-200);
}

.home-hero-static__btn:focus-visible,
.home-hero-static__catalog-link:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 4px;
}

@media (hover: hover) {
    .home-hero-static__btn:hover {
        opacity: var(--hover-opacity);
    }

    .home-hero-static__catalog-link:hover {
        background: rgba(255, 255, 255, 0.12);
    }
}

@media (min-width: 1000px) and (max-width: 1280px) {
    .home-hero-static__content {
        width: min(100%, 580px);
    }

    .home-hero-static__title {
        font-size: clamp(36px, 3.1vw, 42px);
    }

    .home-hero-static__benefits {
        gap: 10px;
    }

    .home-hero-static__benefit {
        gap: 8px;
        font-size: 12px;
    }

    .home-hero-static__benefit-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .home-hero-static__btn,
    .home-hero-static__catalog-link {
        height: 72px;
        min-height: 72px;
        max-height: 72px;
        padding-inline: 28px;
    }
}

/* Desktop hero rhythm is intentionally stepped, rather than driven by one shared gap. */
@media (min-width: 1000px) {
    .home-hero-static__badge {
        margin-top: 18px;
        margin-bottom: 10px;
        padding: 7px 13px;
    }

    .home-hero-static__title {
        margin-bottom: 31px;
    }

    .home-hero-static__text {
        margin-bottom: 47px;
    }

    .home-hero-static__benefits {
        margin-bottom: 50px;
        gap: 32px;
    }

    .home-hero-static__benefit {
        gap: 12px;
    }

    .home-hero-static__actions {
        gap: 24px;
    }

    .home-hero-static__btn,
    .home-hero-static__catalog-link {
        height: 72px;
        min-height: 72px;
        max-height: 72px;
        padding-inline: 28px;
    }
}

@media (max-width: 999px) {
    .home-hero-static {
        min-height: 1160px;
    }

    .home-hero-static__media {
        top: auto;
        right: auto;
        bottom: 0;
        left: 50%;
        width: min(100%, 560px);
        height: auto;
        transform: translateX(-50%);
        pointer-events: none;
    }

    .home-hero-static__bg {
        display: block;
        width: 100%;
        height: auto;
    }

    .home-hero-static__content {
        justify-content: flex-start;
        width: min(100%, 640px);
        min-height: 0;
        padding: 34px 0 0;
    }

    .home-hero-static__title {
        max-width: 590px;
    }

    .home-hero-static__benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 590px;
    }

    .home-hero-static__btn,
    .home-hero-static__catalog-link {
        height: 52px;
        min-height: 52px;
        max-height: 52px;
        padding-inline: 22px;
        touch-action: manipulation;
    }
}

@media (max-width: 600px) {
    .home-hero-static {
        min-height: 940px;
        background-color: #021656;
    }

    .home-hero-static .container {
        padding-inline: 20px;
    }

    .home-hero-static__media {
        top: auto;
        right: auto;
        bottom: 0;
        left: 50%;
        width: min(100%, 460px);
        height: auto;
        transform: translateX(-50%);
        pointer-events: none;
    }

    .home-hero-static__bg {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .home-hero-static__content {
        padding-top: 24px;
    }

    .home-hero-static__badge {
        min-height: 28px;
        margin-top: 8px;
        margin-bottom: 10px;
        padding: 6px 12px;
        border-radius: 10px;
        font-size: 10px;
        letter-spacing: 0.01em;
    }

    .home-hero-static__title {
        max-width: 100%;
        margin-bottom: 16px;
        font-size: clamp(30px, 8.2vw, 34px);
        line-height: 1.1;
        letter-spacing: -0.02em;
        text-wrap: balance;
    }

    .home-hero-static__text {
        max-width: 35ch;
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.4;
    }

    .home-hero-static__br-desktop {
        display: none;
    }

    .home-hero-static__benefits {
        width: 100%;
        margin-bottom: 24px;
        gap: 12px 16px;
    }

    .home-hero-static__benefit {
        align-items: flex-start;
        gap: 8px;
        font-size: 12px;
        line-height: 1.25;
    }

    .home-hero-static__benefit-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .home-hero-static__benefit-icon svg {
        width: 20px;
        height: 20px;
    }

    .home-hero-static__benefit-icon--percent {
        font-size: 24px;
    }

    .home-hero-static__actions {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .home-hero-static__btn,
    .home-hero-static__catalog-link {
        width: 100%;
        height: 52px;
        min-height: 52px;
        max-height: 52px;
        padding: 12px 18px;
        border-radius: 14px;
        font-size: 15px;
    }
}

@media (max-width: 374px) {
    .home-hero-static {
        min-height: 980px;
    }

    .home-hero-static__media {
        top: auto;
        bottom: 0;
    }

    .home-hero-static .container {
        padding-inline: 16px;
    }

    .home-hero-static__benefit {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .home-hero-static__btn,
    .home-hero-static__catalog-link {
        touch-action: manipulation;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-static__btn,
    .home-hero-static__catalog-link {
        transition-duration: 0.01ms;
    }
}
