.brand-tagline-mobile {
    font-size: 13px;
}

/* ==========================================================================
   FOOTER SOCIAL ICONS — BRAND COLORS
   Подключать ПОСЛЕ основного style.css
   ========================================================================== */


/* =========================================================
   BASE
   По умолчанию все иконки белые
   ========================================================= */

.footer-top-section .footer-social-icon,
.footer-top-section .footer-social-fa {
    color: #fff !important;

    transition:
        color .22s ease,
        background-color .22s ease,
        transform .22s ease;
}


/*
 * SVG-иконки Telegram / YouTube / RuTube / VK
 * используются как mask.
 * Цвет маски берётся из currentColor.
 */
.footer-top-section .footer-social-icon {
    background-color: currentColor !important;
}


/* =========================================================
   DESKTOP HOVER
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

    /* -----------------------------------------
       Telegram
       ----------------------------------------- */

    .footer-top-section .footer-social-item:hover .footer-social-icon--telegram {
        color: #229ED9 !important;
        background-color: #229ED9 !important;
        transform: scale(1.08);
    }


    /* -----------------------------------------
       WhatsApp
       ----------------------------------------- */

    .footer-top-section .footer-social-item:hover .footer-social-fa--whatsapp {
        color: #25D366 !important;
        transform: scale(1.08);
    }


    /* -----------------------------------------
       Phone
       ----------------------------------------- */

    .footer-top-section .footer-social-item:hover .footer-social-fa--phone {
        color: #2ECC63 !important;
        transform: scale(1.08);
    }


    /* -----------------------------------------
       YouTube
       ----------------------------------------- */

    .footer-top-section .footer-social-item:hover .footer-social-icon--youtube {
        color: #FF0000 !important;
        background-color: #FF0000 !important;
        transform: scale(1.08);
    }


    /* -----------------------------------------
       RuTube
       ----------------------------------------- */

    .footer-top-section .footer-social-item:hover .footer-social-icon--rutube {
        color: #FF0045 !important;
        background-color: #FF0045 !important;
        transform: scale(1.08);
    }


    /* -----------------------------------------
       VK / VK Video
       ----------------------------------------- */

    .footer-top-section .footer-social-item:hover .footer-social-icon--vk {
        color: #0077FF !important;
        background-color: #0077FF !important;
        transform: scale(1.08);
    }

}


/* =========================================================
   KEYBOARD / ACCESSIBILITY
   Те же цвета при навигации клавиатурой
   ========================================================= */


/* Telegram */

.footer-top-section .footer-social-item:focus-visible .footer-social-icon--telegram {
    color: #229ED9 !important;
    background-color: #229ED9 !important;
}


/* WhatsApp */

.footer-top-section .footer-social-item:focus-visible .footer-social-fa--whatsapp {
    color: #25D366 !important;
}


/* Phone */

.footer-top-section .footer-social-item:focus-visible .footer-social-fa--phone {
    color: #2ECC63 !important;
}


/* YouTube */

.footer-top-section .footer-social-item:focus-visible .footer-social-icon--youtube {
    color: #FF0000 !important;
    background-color: #FF0000 !important;
}


/* RuTube */

.footer-top-section .footer-social-item:focus-visible .footer-social-icon--rutube {
    color: #FF0045 !important;
    background-color: #FF0045 !important;
}


/* VK */

.footer-top-section .footer-social-item:focus-visible .footer-social-icon--vk {
    color: #0077FF !important;
    background-color: #0077FF !important;
}


/* =========================================================
   TOUCH DEVICES
   Не даём hover "залипать" после тапа на телефоне
   ========================================================= */

@media (hover: none),
(pointer: coarse) {

    .footer-top-section .footer-social-item .footer-social-icon,
    .footer-top-section .footer-social-item .footer-social-fa,
    .footer-top-section .footer-social-item:hover .footer-social-icon,
    .footer-top-section .footer-social-item:hover .footer-social-fa {
        color: #fff !important;
        transform: none;
    }


    .footer-top-section .footer-social-item .footer-social-icon,
    .footer-top-section .footer-social-item:hover .footer-social-icon {
        background-color: currentColor !important;
    }


    /* Короткий отклик непосредственно при нажатии */

    .footer-top-section .footer-social-item:active .footer-social-icon--telegram {
        color: #229ED9 !important;
    }

    .footer-top-section .footer-social-item:active .footer-social-fa--whatsapp {
        color: #25D366 !important;
    }

    .footer-top-section .footer-social-item:active .footer-social-fa--phone {
        color: #2ECC63 !important;
    }

    .footer-top-section .footer-social-item:active .footer-social-icon--youtube {
        color: #FF0000 !important;
    }

    .footer-top-section .footer-social-item:active .footer-social-icon--rutube {
        color: #FF0045 !important;
    }

    .footer-top-section .footer-social-item:active .footer-social-icon--vk {
        color: #0077FF !important;
    }

}

/* ==========================================================================
   HOME HERO FEATURES — MOBILE 2x2 FINAL
   custom.css
   ========================================================================== */

@media (max-width: 767px) {

    /* =========================================================
       GRID 2 x 2
       Полностью отменяем старый horizontal swipe из style.css
       ========================================================= */

    .hero.hero-home .hero-features {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        width: 100%;
        max-width: 100%;
        min-width: 0;

        gap: 10px;

        margin: 0 0 20px;
        padding: 0;

        overflow: visible;

        scroll-snap-type: none;
        overscroll-behavior: auto;
    }


    /* старый scrollbar больше не нужен */
    .hero.hero-home .hero-features::-webkit-scrollbar {
        display: none;
    }


    /* =========================================================
       CARD
       ========================================================= */

    .hero.hero-home .feature-card {
        display: flex;

        /*
         * ВАЖНО:
         * сбрасываем старые flex: 0 0 72vw
         * width / min-width из мобильного hero.
         */
        flex: initial;

        width: 100%;
        min-width: 0;
        max-width: 100%;

        min-height: 76px;

        align-items: center;
        justify-content: space-between;

        gap: 7px;

        padding: 11px 11px 11px 13px;

        background: rgba(21, 29, 25, .92);

        border:
            1px solid rgba(255, 255, 255, .07);

        border-radius: 13px;

        scroll-snap-align: none;

        backdrop-filter: none;
    }


    /* =========================================================
       HIDE NUMBERS
       ========================================================= */

    .hero.hero-home .feature-num {
        display: none;
    }


    /* =========================================================
       TEXT
       ========================================================= */

    .hero.hero-home .feature-text {
        flex: 1;

        min-width: 0;

        color: #fff;

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

        line-height: 1.22;

        overflow-wrap: normal;
        word-break: normal;
    }


    /* =========================================================
       ICON
       ========================================================= */

    .hero.hero-home .feature-icon {
        display: flex;

        width: 38px;
        height: 38px;

        flex:
            0 0 38px;

        align-items: center;
        justify-content: center;

        margin: 0;
    }


    .hero.hero-home .feature-icon img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: contain;
    }

}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .hero.hero-home .hero-features {
        gap: 8px;

        margin-bottom: 18px;
    }


    .hero.hero-home .feature-card {
        min-height: 70px;

        gap: 5px;

        padding:
            9px 8px 9px 10px;

        border-radius: 11px;
    }


    .hero.hero-home .feature-text {
        font-size: 11px;
        line-height: 1.18;
    }


    .hero.hero-home .feature-icon {
        width: 31px;
        height: 31px;

        flex:
            0 0 31px;
    }

}

/* ==========================================================================
   LEAD FORMS — CONTACT METHOD
   Используется и в основной форме, и во всплывающей
   ========================================================================== */

.lead-contact-method {
    width: 100%;
    min-width: 0;

    margin: 16px 0 20px;
    padding: 0;

    border: 0;
}


/* Заголовок "Как с вами связаться?" */
.lead-contact-method legend {
    width: 100%;

    margin: 0 0 10px;
    padding: 0;

    color: #fff;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}


/* ==========================================================================
   OPTIONS GRID
   ========================================================================== */

.lead-contact-method__grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;

    width: 100%;
    min-width: 0;
}


/* ==========================================================================
   OPTION CARD
   ========================================================================== */

.lead-contact-method__item {
    position: relative;

    display: flex;

    width: 100%;
    min-width: 0;
    min-height: 46px;

    align-items: center;

    gap: 9px;

    margin: 0;
    padding: 10px 11px;

    color: #dce2de;

    background: rgba(255, 255, 255, .035);

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 11px;

    cursor: pointer;

    box-sizing: border-box;

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


/* Настоящую radio-кнопку визуально прячем */
.lead-contact-method__item>input[type="radio"] {
    position: absolute;

    width: 1px;
    height: 1px;

    margin: 0;

    opacity: 0;

    pointer-events: none;
}


/* ==========================================================================
   CUSTOM RADIO
   ========================================================================== */

.lead-contact-method__radio {
    position: relative;

    display: block;

    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    border: 1.5px solid rgba(255, 255, 255, .45);
    border-radius: 50%;

    box-sizing: border-box;

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


/* Внутренняя зелёная точка */
.lead-contact-method__radio::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 7px;
    height: 7px;

    background: var(--green-light, #2ecc63);

    border-radius: 50%;

    transform:
        translate(-50%, -50%) scale(0);

    transition: transform .18s ease;
}


/* ==========================================================================
   TEXT
   ========================================================================== */

.lead-contact-method__text {
    min-width: 0;

    color: inherit;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
}


/* ==========================================================================
   CHECKED STATE
   ========================================================================== */

.lead-contact-method__item:has(input[type="radio"]:checked) {
    color: #fff;

    background: rgba(46, 204, 99, .08);

    border-color: rgba(46, 204, 99, .55);
}


.lead-contact-method__item input[type="radio"]:checked+.lead-contact-method__radio {
    border-color: var(--green-light, #2ecc63);
}


.lead-contact-method__item input[type="radio"]:checked+.lead-contact-method__radio::after {
    transform:
        translate(-50%, -50%) scale(1);
}


/* ==========================================================================
   HOVER
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {

    .lead-contact-method__item:hover {
        color: #fff;

        background: rgba(255, 255, 255, .06);

        border-color: rgba(255, 255, 255, .20);
    }

}


/* ==========================================================================
   KEYBOARD FOCUS
   ========================================================================== */

.lead-contact-method__item:has(input[type="radio"]:focus-visible) {
    outline: 2px solid var(--green-light, #2ecc63);
    outline-offset: 2px;
}


/* ==========================================================================
   POPUP FORM
   Чуть компактнее, чтобы блок хорошо помещался по высоте
   ========================================================================== */

.lead-popup .lead-contact-method {
    margin-top: 14px;
    margin-bottom: 18px;
}


.lead-popup .lead-contact-method__item {
    min-height: 44px;
    padding: 9px 10px;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    .lead-contact-method {
        margin: 14px 0 18px;
    }


    .lead-contact-method legend {
        margin-bottom: 9px;

        font-size: 13px;
    }


    .lead-contact-method__grid {
        gap: 7px;
    }


    .lead-contact-method__item {
        min-height: 44px;

        gap: 7px;

        padding: 8px 9px;

        border-radius: 9px;
    }


    .lead-contact-method__text {
        font-size: 11px;
        line-height: 1.2;
    }


    .lead-contact-method__radio {
        width: 15px;
        height: 15px;

        flex-basis: 15px;
    }


    .lead-contact-method__radio::after {
        width: 6px;
        height: 6px;
    }

}


/* ==========================================================================
   VERY SMALL MOBILE
   Если экран совсем узкий — варианты становятся в одну колонку
   ========================================================================== */

@media (max-width: 360px) {

    .lead-contact-method__grid {
        grid-template-columns: 1fr;
    }

}