.hero {
    position: relative;

    min-height: 720px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--text-1);

    isolation: isolate;
}


/* =========================
   Основной фон
========================= */

.hero-background {
    position: absolute;
    inset: 0;

    z-index: -3;

    background:
        linear-gradient(
            120deg,
            var(--text-1) 0%,
            color-mix(
                in srgb,
                var(--text-1) 88%,
                var(--text-2)
            ) 52%,
            color-mix(
                in srgb,
                var(--text-1) 72%,
                var(--text-3)
            ) 100%
        );
}


/* =========================
   Сетка
========================= */

.hero-grid {
    position: absolute;
    inset: 0;

    z-index: -2;

    opacity: .13;

    background-image:
        linear-gradient(
            color-mix(
                in srgb,
                var(--bg-2) 22%,
                transparent
            ) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            color-mix(
                in srgb,
                var(--bg-2) 22%,
                transparent
            ) 1px,
            transparent 1px
        );

    background-size: 64px 64px;

    mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 0, 0, .35) 18%,
            black 48%,
            black 100%
        );

    -webkit-mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 0, 0, .35) 18%,
            black 48%,
            black 100%
        );
}


/* =========================
   Контент
========================= */

.hero-content {
    position: relative;

    z-index: 2;

    padding-top: 130px;
    padding-bottom: 110px;
}


.hero-inner {
    max-width: 940px;
}


/* =========================
   Лейбл
========================= */

.hero-label {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 30px;

    padding: 8px 13px;

    color:
        color-mix(
            in srgb,
            var(--bg-2) 84%,
            transparent
        );

    background:
        color-mix(
            in srgb,
            var(--bg-2) 7%,
            transparent
        );

    border:
        1px solid
        color-mix(
            in srgb,
            var(--bg-2) 14%,
            transparent
        );

    border-radius: 999px;

    font-size: 12px;
    font-weight: 650;

    letter-spacing: .08em;
    text-transform: uppercase;
}


.hero-label-dot {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--bg-3);
}


/* =========================
   Заголовок
========================= */

.hero-title {
    max-width: 1100px;

    margin: 0;

    color: var(--bg-2);

    font-size: clamp(72px, 10vw, 154px);
    font-weight: 800;

    line-height: .86;

    letter-spacing: -.075em;

    text-wrap: balance;
}


/* =========================
   Описание
========================= */

.hero-description {
    max-width: 690px;

    margin: 42px 0 0;

    color:
        color-mix(
            in srgb,
            var(--bg-2) 76%,
            transparent
        );

    font-size: clamp(19px, 2vw, 25px);
    font-weight: 400;

    line-height: 1.55;

    letter-spacing: -.015em;
}


/* =========================
   Кнопки
========================= */

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 34px;
}


.hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 54px;

    padding: 10px 18px;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none;

    transition:
        transform .2s ease,
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


/* Основная кнопка */

.hero-action-primary {
    color: var(--text-1);

    background: var(--bg-2);

    border: 1px solid var(--bg-2);

    box-shadow:
        0 10px 30px
        color-mix(
            in srgb,
            var(--text-1) 28%,
            transparent
        );
}


.hero-action-primary:hover {
    color: var(--text-1);

    background:
        color-mix(
            in srgb,
            var(--bg-2) 76%,
            var(--bg-3)
        );

    border-color:
        color-mix(
            in srgb,
            var(--bg-2) 76%,
            var(--bg-3)
        );

    transform: translateY(-2px);

    box-shadow:
        0 14px 36px
        color-mix(
            in srgb,
            var(--text-1) 34%,
            transparent
        );
}


/* Вторая кнопка */

.hero-action-secondary {
    color: var(--bg-2);

    background:
        color-mix(
            in srgb,
            var(--bg-2) 7%,
            transparent
        );

    border:
        1px solid
        color-mix(
            in srgb,
            var(--bg-2) 22%,
            transparent
        );
}


.hero-action-secondary:hover {
    color: var(--bg-2);

    background:
        color-mix(
            in srgb,
            var(--bg-2) 13%,
            transparent
        );

    border-color:
        color-mix(
            in srgb,
            var(--bg-2) 38%,
            transparent
        );

    transform: translateY(-2px);
}


/* =========================
   Иконка внутри кнопки
========================= */

.hero-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;

    line-height: 1;
}


.hero-action-arrow {
    margin-left: 3px;

    font-size: 15px;

    transition:
        transform .2s ease;
}


.hero-action:hover
.hero-action-arrow {
    transform: translateX(3px);
}


/* =========================
   Акцентная линия
========================= */

.hero-line {
    position: relative;

    width: 170px;
    height: 3px;

    margin-top: 42px;

    overflow: hidden;

    border-radius: 999px;

    background:
        color-mix(
            in srgb,
            var(--bg-2) 12%,
            transparent
        );
}


.hero-line::before {
    content: "";

    position: absolute;
    inset: 0;

    width: 68%;

    border-radius: inherit;

    background:
        color-mix(
            in srgb,
            var(--bg-3) 82%,
            var(--bg-2)
        );
}


/* =========================
   Нижняя линия
========================= */

.hero-bottom {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;
}


.hero-bottom-line {
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            color-mix(
                in srgb,
                var(--bg-2) 18%,
                transparent
            ),
            transparent
        );
}


/* =========================
   Tablet
========================= */

@media (max-width: 991.98px) {

    .hero {
        min-height: 660px;
    }


    .hero-content {
        padding-top: 120px;
        padding-bottom: 90px;
    }


    .hero-title {
        font-size: clamp(68px, 12vw, 120px);
    }


    .hero-description {
        max-width: 620px;

        margin-top: 34px;
    }


    .hero-grid {
        background-size: 56px 56px;
    }

}


/* =========================
   Mobile
========================= */

@media (max-width: 767.98px) {

    .hero {
        min-height: 620px;

        align-items: flex-start;
    }


    .hero-content {
        padding-top: 145px;
        padding-bottom: 80px;
    }


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


    .hero-label {
        margin-bottom: 24px;

        padding: 7px 11px;

        font-size: 11px;
    }


    .hero-title {
        max-width: 100%;

        font-size: clamp(54px, 16vw, 82px);

        line-height: .92;

        letter-spacing: -.065em;

        overflow-wrap: anywhere;
    }


    .hero-description {
        max-width: 100%;

        margin-top: 28px;

        font-size: 18px;

        line-height: 1.55;
    }


    .hero-actions {
        display: grid;

        grid-template-columns: 1fr 1fr;

        width: 100%;

        gap: 9px;

        margin-top: 28px;
    }


    .hero-action {
        width: 100%;

        min-height: 52px;

        padding: 10px 13px;

        border-radius: 13px;

        font-size: 13px;
    }


    /*
     * Авторизованный пользователь:
     * единственная кнопка занимает всю ширину.
     */

    .hero-actions .hero-action:only-child {
        grid-column: 1 / -1;
    }


    .hero-action:hover {
        transform: none;
    }


    .hero-line {
        width: 125px;

        margin-top: 32px;
    }


    .hero-grid {
        opacity: .09;

        background-size: 46px 46px;

        mask-image:
            linear-gradient(
                90deg,
                transparent 0%,
                black 35%,
                black 100%
            );

        -webkit-mask-image:
            linear-gradient(
                90deg,
                transparent 0%,
                black 35%,
                black 100%
            );
    }

}


/* =========================
   Очень маленький экран
========================= */

@media (max-width: 420px) {

    .hero-actions {
        grid-template-columns: 1fr;
    }


    .hero-actions .hero-action:only-child {
        grid-column: auto;
    }

}