/* ===== WEBEGE MOBILE PUBLIC HERO START ===== */

/* На компьютере новые мобильные элементы скрыты. */

.home-mobile-copy,
.free-mobile-hero-badge,
.free-mobile-copy,
.reviews-title-mobile,
.reviews-kicker-mobile,
.reviews-mobile-copy,
.reviews-mobile-channel {
    display: none;
}


@media (max-width: 768px) {

    /* ======================================================
       ГЛАВНАЯ
       ====================================================== */

    #hero-section.hero-section {
        min-height: 0 !important;
        padding-top: 32px !important;
        padding-bottom: 54px !important;
    }

    #hero-section .hero-grid {
        min-height: 0 !important;
        padding-top: 0 !important;
        align-items: flex-start !important;
    }

    #hero-section .hero-text {
        margin-top: 0 !important;
        padding-top: 0 !important;
        transform: none !important;
    }

    #hero-section .hero-text .badge {
        margin-top: 0 !important;
        margin-bottom: 16px !important;
    }

    #hero-section .hero-text h1 {
        margin: 0 0 18px !important;
        font-size: clamp(43px, 12vw, 50px) !important;
        line-height: 0.94 !important;
        letter-spacing: -0.047em !important;
    }

    #hero-section .hero-text > p:not(.home-mobile-copy) {
        display: none !important;
    }

    #hero-section .home-mobile-copy {
        display: block !important;
        max-width: 365px;
        margin: 0 0 24px !important;

        color: var(--text-muted);
        font-size: 16.5px !important;
        line-height: 1.48 !important;
        font-weight: 500;

        text-wrap: balance;
    }

    #hero-section .hero-btns {
        margin-top: 0 !important;
        gap: 10px !important;
    }


    /* ======================================================
       ОТЗЫВЫ
       ====================================================== */

    body.reviews-body .reviews-clean-page {
        padding-top: 0 !important;
    }

    body.reviews-body .reviews-clean-hero {
        padding: 32px 0 8px !important;
    }

    body.reviews-body .reviews-page-hero-title {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    body.reviews-body .reviews-title-desktop,
    body.reviews-body .reviews-kicker-desktop,
    body.reviews-body
    .reviews-page-hero-title > p:not(.reviews-mobile-copy) {
        display: none !important;
    }

    body.reviews-body .seo-section-title {
        order: 1;

        display: inline-flex !important;
        width: auto !important;
        margin: 0 0 16px !important;
        padding: 8px 14px;

        border: 1px solid rgba(27, 207, 86, 0.22);
        border-radius: 999px;
        background: rgba(27, 207, 86, 0.09);

        color: #19b84e;
        font-size: 13.5px !important;
        line-height: 1 !important;
        font-weight: 850 !important;
    }

    body.reviews-body .reviews-kicker-mobile {
        display: block !important;
    }

    body.reviews-body .reviews-page-hero-title h1 {
        order: 2;
        margin: 0 !important;

        font-size: clamp(42px, 11.5vw, 50px) !important;
        line-height: 0.96 !important;
        letter-spacing: -0.047em !important;
    }

    body.reviews-body .reviews-title-mobile {
        display: block !important;
    }

    body.reviews-body .reviews-mobile-copy {
        order: 3;

        display: block !important;
        max-width: 365px;
        margin: 20px 0 0 !important;

        color: var(--text-muted);
        font-size: 16.5px !important;
        line-height: 1.5 !important;

        text-wrap: balance;
    }

    body.reviews-body .reviews-mobile-channel {
        order: 4;

        display: inline-flex !important;
        margin-top: 14px;

        color: #18bd50;
        font-size: 14px;
        line-height: 1.35;
        font-weight: 850;
        text-decoration: none;
    }

    body.reviews-body .reviews-clean-section {
        padding-top: 16px !important;
    }


    /* ======================================================
       БЕСПЛАТНЫЕ МАТЕРИАЛЫ
       ====================================================== */

    body.free-body .free-page {
        padding-top: 0 !important;
    }

    body.free-body .free-hero {
        min-height: 0 !important;
        padding: 32px 0 54px !important;
        align-items: flex-start !important;
    }

    body.free-body .free-hero > .free-container {
        top: auto !important;
        transform: none !important;
    }

    body.free-body .free-hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    body.free-body .free-mobile-hero-badge {
        order: 1;

        display: inline-flex !important;
        margin: 0 0 16px;
        padding: 8px 14px;

        border: 1px solid rgba(27, 207, 86, 0.22);
        border-radius: 999px;
        background: rgba(27, 207, 86, 0.09);

        color: #19b84e;
        font-size: 13.5px;
        line-height: 1;
        font-weight: 850;
    }

    body.free-body .free-main-title {
        order: 2;
        margin: 0 !important;

        font-size: clamp(40px, 11.5vw, 48px) !important;
        line-height: 0.96 !important;
        letter-spacing: -0.047em !important;

        text-wrap: balance;
    }

    body.free-body .free-lead {
        display: none !important;
    }

    body.free-body .free-mobile-copy {
        order: 3;

        display: block !important;
        max-width: 365px;
        margin: 20px 0 0 !important;

        color: var(--text-muted);
        font-size: 16.5px !important;
        line-height: 1.5 !important;
        font-weight: 550;

        text-wrap: balance;
    }

    body.free-body .free-actions {
        order: 4;
        width: 100%;
        margin-top: 24px !important;
    }

    body.free-body .seo-section-title {
        order: 5;

        max-width: 360px;
        margin: 34px 0 0 !important;

        font-size: clamp(26px, 7.5vw, 31px) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.035em !important;

        text-wrap: balance;
    }
}


@media (max-width: 360px) {
    #hero-section .hero-text h1 {
        font-size: 42px !important;
    }

    body.reviews-body .reviews-page-hero-title h1 {
        font-size: 40px !important;
    }

    body.free-body .free-main-title {
        font-size: 39px !important;
    }
}

/* ===== WEBEGE MOBILE PUBLIC HERO END ===== */

/* ===== WEBEGE PUBLIC MOBILE HEADER OFFSET START ===== */

/*
   До выполнения JavaScript используется безопасная
   запасная высота мобильного двухрядного хедера.
*/

:root {
    --webege-public-mobile-header-height: 132px;
}

@media (max-width: 768px) {
    /*
       Главная
    */
    body #hero-section.hero-section {
        padding-top:
            calc(
                var(
                    --webege-public-mobile-header-height,
                    132px
                )
                + 28px
            )
            !important;
    }

    /*
       Бесплатные материалы
    */
    body.free-body .free-hero {
        padding-top:
            calc(
                var(
                    --webege-public-mobile-header-height,
                    132px
                )
                + 28px
            )
            !important;
    }

    /*
       Отзывы
    */
    body.reviews-body .reviews-clean-hero {
        padding-top:
            calc(
                var(
                    --webege-public-mobile-header-height,
                    132px
                )
                + 28px
            )
            !important;
    }
}

@media (max-width: 360px) {
    body #hero-section.hero-section,
    body.free-body .free-hero,
    body.reviews-body .reviews-clean-hero {
        padding-top:
            calc(
                var(
                    --webege-public-mobile-header-height,
                    132px
                )
                + 24px
            )
            !important;
    }
}

/* ===== WEBEGE PUBLIC MOBILE HEADER OFFSET END ===== */

/* ===== WEBEGE HOME MOBILE TOP GAP START ===== */

@media (max-width: 768px) {
    body #hero-section.hero-section {
        padding-top:
            calc(
                var(
                    --webege-public-mobile-header-height,
                    132px
                )
                + 52px
            )
            !important;
    }
}

@media (max-width: 360px) {
    body #hero-section.hero-section {
        padding-top:
            calc(
                var(
                    --webege-public-mobile-header-height,
                    132px
                )
                + 44px
            )
            !important;
    }
}

/* ===== WEBEGE HOME MOBILE TOP GAP END ===== */
