/* ==========================================================================
   Футер DS2026 (хардкод, без CSS-переменных)
   Figma: 10750-18375 (320), 10750-16319 (768), 10742-1766 (1920)
   Подключается только в layout main_2026.
   ========================================================================== */

.footer2026 {
    padding: 48px 0;
    border-top: 1px solid #cbcbe0;
    background-color: #ffffff;
    background-image: url('../../i/ds_2026/partials/footer_bg.webp');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: auto;
    color: #4c4c59;
    font-family: 'Google Sans', Arial, sans-serif;
}

.footer2026 a {
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Верхняя часть: подписка + меню
   -------------------------------------------------------------------------- */

.footer2026__top {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Подписка */
.footer2026__form {
    display: flex;
    flex-direction: column;
}

.footer2026__form_title {
    margin: 0;
    font-size: 16px;
    line-height: 130%;
    font-weight: 600;
    color: #2e2e3c;
}

.footer2026__field {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer2026__input {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    height: 54px;
    padding: 0 16px;
    border: 2px solid #c8c8da;
    border-radius: 16px;
    background-color: #ffffff;
    transition: border-color 0.2s, background-color 0.2s;
}

.footer2026__input:hover,
.footer2026__input:focus-within {
    border-color: #498ef5;
}

.footer2026__input_control {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: 'Google Sans', Arial, sans-serif;
    font-size: 18px;
    line-height: 100%;
    color: #2e2e3c;
    outline: none;
}

.footer2026__input_control::placeholder {
    color: #4c4c59;
}

.footer2026__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background-color: #f03b5c;
    color: #ffffff;
    box-shadow: inset 4px 4px 16px #f9b1be, inset -4px -4px 16px #912338;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.footer2026__submit:hover {
    background-color: #d1053b;
    box-shadow: inset 4px 4px 12px #f9b1be, inset -4px -4px 12px #912338, 0 24px 48px rgba(240, 59, 92, 0.24), 0 0 0 6px rgba(240, 59, 92, 0.16);
}

.footer2026__submit > svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.footer2026__consent {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    font-family: 'Google Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 140%;
    color: #4c4c59;
    cursor: pointer;
}

.footer2026__consent_input {
    display: none;
}

.footer2026__consent_control {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    border: 1.5px solid #4c4c59;
    border-radius: 4px;
    background-color: #ffffff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
    transition: background-color 0.2s, border-color 0.2s;
}

.footer2026__consent_input:checked + .footer2026__consent_control {
    border-color: #f03b5c;
    background-color: #f03b5c;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.footer2026__consent:hover .footer2026__consent_input:not(:disabled) + .footer2026__consent_control {
    border-color: #2e2e3c;
}

.footer2026__consent:hover .footer2026__consent_input:not(:disabled):checked + .footer2026__consent_control {
    border-color: #d1053b;
    background-color: #d1053b;
}

.footer2026__consent_input:focus-visible + .footer2026__consent_control {
    box-shadow: 0 0 0 3px rgba(73, 142, 245, 0.35);
}

.footer2026__input:has(.footer2026__input_control.form__error),
.footer2026__input:has(.footer2026__input_control.form__error):hover,
.footer2026__input:has(.footer2026__input_control.form__error):focus-within {
    border-color: #f03b5c;
}

.footer2026__consent_input.form__error + .footer2026__consent_control {
    border-color: #f03b5c;
}

.footer2026__consent_txt {
    font-size: 14px;
    line-height: 140%;
    color: #4c4c59;
}

.footer2026__consent_txt a {
    color: inherit;
    text-decoration: underline;
}

/* Соцсети */
.footer2026__socials {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 24px;
}

.footer2026__social {
    display: inline-flex;
    flex: 0 0 auto;
}

.footer2026__social svg {
    width: 34px;
    height: 34px;
}

.footer2026__social_vk_path {
    fill: #8d8da8;
    transition: fill 0.2s;
}

.footer2026__social:hover .footer2026__social_vk_path {
    fill: #0077ff;
}

.footer2026__social_icon_hover {
    display: none;
}

.footer2026__social_icon_nohover {
    display: inline-flex;
}

.footer2026__social:hover .footer2026__social_icon_hover {
    display: inline-flex;
}

.footer2026__social:hover .footer2026__social_icon_nohover {
    display: none;
}

/* Меню */
.footer2026__menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.footer2026__col {
    display: flex;
    flex-direction: column;
}

.footer2026__title {
    display: block;
    font-size: 16px;
    line-height: 130%;
    font-weight: 600;
    color: #2e2e3c;
}

.footer2026__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.footer2026__link {
    display: inline-block;
    font-size: 16px;
    line-height: 140%;
    color: #4c4c59;
    transition: color 0.2s;
}

@media (max-width: 699px) {
    .footer2026__link {
        font-size: 14px;
    }
}

.footer2026__link:hover {
    color: #498ef5;
}

/* --------------------------------------------------------------------------
   Нижняя часть: логотип, реквизиты, партнёры, дисклеймер
   -------------------------------------------------------------------------- */

.footer2026__bottom {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 42px;
    padding: 20px;
    border-top: 1px solid #cbcbe0;
}

.footer2026__company {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer2026__logo img {
    display: block;
    width: 64px;
    height: 28px;
}

.footer2026__line {
    display: none;
}

.footer2026__copy {
    margin: 0;
    font-size: 14px;
    line-height: 140%;
    color: #4c4c59;
}

.footer2026__partners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: center;
}

.footer2026__partner {
    width: 100%;
    max-width: 100px;
    height: 35px;
    object-fit: contain;
    object-position: left center;
}

.footer2026__disclaimer {
    margin: 0;
    font-size: 14px;
    line-height: 140%;
    color: #4c4c59;
}

/* Ответ формы (используется скриптом формы для попапа) */
.footer2026__answer_title {
    margin: 0;
    font-size: 18px;
    line-height: 130%;
    font-weight: 600;
    color: #2e2e3c;
}

.footer2026__answer_text {
    margin: 0;
    font-size: 16px;
    line-height: 140%;
    color: #4c4c59;
}

/* Tablet */
@media (min-width: 700px) and (max-width: 1299px) {
    .footer2026 {
        padding: 48px 0;
    }

    .footer2026__top {
        gap: 64px;
    }

    .footer2026__form_title {
        font-size: 18px;
    }

    .footer2026__input_control {
        font-size: 20px;
    }

    .footer2026__consent {
        font-size: 16px;
    }

    .footer2026__form {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 32px;
        align-items: start;
    }

    .footer2026__form_title {
        grid-column: 1 / -1;
    }

    .footer2026__field {
        grid-column: 1;
        max-width: 326px;
    }

    .footer2026__consent {
        grid-column: 1;
        max-width: 326px;
    }

    .footer2026__socials {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        justify-self: end;
        justify-content: flex-end;
        gap: 16px;
        margin-top: 12px;
    }

    .footer2026__menu {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .footer2026__title {
        font-size: 18px;
    }

    .footer2026__link {
        font-size: 16px;
    }

    .footer2026__bottom {
        margin-top: 48px;
        padding-top: 18px;
        border-top: 1px solid #cbcbe0;
        gap: 18px;
    }

    .footer2026__copy,
    .footer2026__disclaimer {
        font-size: 14px;
    }

    .footer2026__partners {
        grid-template-columns: repeat(4, 1fr);
        justify-items: center;
    }

    .footer2026__partner {
        height: 60px;
    }

    .footer2026__disclaimer {
        text-align: center;
    }
}

/* Desktop */
@media (min-width: 1300px) {
    .footer2026 {
        padding: 64px 0;
    }

    .footer2026__top {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 64px;
    }

    .footer2026__form {
        order: 2;
        display: flex;
        flex-direction: column;
        flex: 0 0 340px;
        width: 340px;
        max-width: 340px;
        min-width: 0;
    }

    .footer2026__input_control {
        font-size: 24px;
    }

    .footer2026__link {
        font-size: 16px;
    }

    .footer2026__socials {
        gap: 16px;
        margin-top: 32px;
    }

    .footer2026__menu {
        order: 1;
        grid-template-columns: repeat(4, 170px);
        gap: 32px;
    }

    .footer2026__list {
        margin-top: 24px;
    }

    .footer2026__bottom {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        margin-top: 48px;
        padding-top: 24px;
        gap: 24px;
    }

    .footer2026__company {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .footer2026__line {
        display: block;
        width: 1px;
        height: 36px;
        background-color: #cbcbe0;
    }

    .footer2026__copy {
        max-width: 316px;
    }

    .footer2026__partners {
        display: flex;
        gap: 32px;
        align-items: center;
    }

    .footer2026__partner {
        max-width: none;
        width: 134px;
        height: 60px;
    }

    .footer2026__disclaimer {
        flex-basis: 100%;
    }

    .footer2026__answer_title {
        font-size: 24px;
    }

    .footer2026__answer_text {
        font-size: 18px;
    }
}
