/* Контрастность мелких текстов формы (WCAG AA) - добавлено 27.07.2026 */
.t702__form-bottom-text,
.t702 .t-checkbox__control,
.t702 .t-input-subtitle {
    color: #2C5C57 !important;
}
.t702 .t-checkbox__control a {
    color: #2C5C57 !important;
    text-decoration: underline;
}

/* Оригинальные (брендовые) цвета иконок мессенджеров - добавлено 30.07.2026 */
.t-sociallinks__item_telegram > a,
.t-sociallinks__item_maxmessenger > a {
    background-color: #ffffff;
    border-radius: 50%;
    overflow: hidden;
}
.t-sociallinks__item_telegram svg path {
    fill: #1d98dc;
}
.t-sociallinks__item_maxmessenger svg path {
    fill: #4db7ff;
}

/* ============================================================
   МОБИЛЬНАЯ ОПТИМИЗАЦИЯ И ДОСТУПНОСТЬ — добавлено 30.07.2026
   ============================================================ */

/* 1. Минимальный читаемый кегль на мобильных (было 12-13px) */
@media screen and (max-width: 640px) {
    .t017__descr,
    .t702__descr,
    .t702__form-bottom-text,
    .t825__messenger-descr,
    .t972__title,
    .t972__descr,
    .t972__category-title,
    .t972__category-body,
    .t-descr_xs,
    .t-descr_xxs,
    .t-text_xs,
    .t-text_xxs,
    .t-name_xs {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }
    .t-checkbox__control,
    .t-checkbox__control a {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }
    .t-btnflex__text,
    .t-btn__text {
        font-size: 15px !important;
    }
}

/* 2. Тап-таргеты не меньше 44px (рекомендация Google и Apple) */
@media screen and (max-width: 640px) {
    .t-sociallinks__item > a {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .t-text a[href^="tel:"],
    .t-text a[href^="mailto:"],
    .t-descr a[href^="tel:"],
    .t-descr a[href^="mailto:"] {
        display: inline-block;
        padding: 10px 2px;
    }
    .t580__descr a,
    .t-card__title a {
        display: inline-block;
        padding: 12px 0;
    }
}

/* 3. Плавающий виджет мессенджеров не перекрывает кнопки на мобильном */
@media screen and (max-width: 640px) {
    .t825__btn {
        width: 56px !important;
    }
    .t825__btn-text {
        display: none !important;
    }
    .t825 {
        z-index: 9990;
    }
}

/* 4. Мобильное бургер-меню разворачивается на всю высоту экрана */
@media screen and (max-width: 980px) {
    .t-menu-base__burgermenu {
        min-height: calc(100vh - 130px);
        padding-bottom: 32px;
    }
}
