


/* ==================================================
   1. СТИЛИ FAQ-АККОРДЕОНА
   Класс блока в Tilda: uc-faq
================================================== */

/* Карточка вопроса */
.uc-faq .t585__wrapper {
    margin-bottom: 8px;

    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 16px;
    box-sizing: border-box;

    transition: border-color 0.2s ease;
}

/* Убираем стандартную границу Tilda */
.uc-faq .t585__header {
    border: 0 !important;
}

/* Кнопка с вопросом */
.uc-faq .t585__trigger-button {
    padding-left: 32px;

    background-color: #ffffff;
    border-radius: 16px;
}

/* Положение иконки открытия */
.uc-faq .t585__icon {
    right: 16px;
}

/* Текст ответа */
.uc-faq .t585__textwrapper {
    padding: 0 32px;
}


/* ==================================================
   АКТИВНОЕ СОСТОЯНИЕ FAQ
================================================== */

/* Синяя обводка открытой карточки */
.uc-faq
.t585__wrapper:has(.t585__header.t585__opened),
.uc-faq
.t585__wrapper:has(
    .t585__trigger-button[aria-expanded="true"]
) {
    border-color: #2C88F5;
}

/* Синий заголовок открытого вопроса */
.uc-faq
.t585__header.t585__opened
.t585__title,
.uc-faq
.t585__trigger-button[aria-expanded="true"]
.t585__title {
    color: #2C88F5 !important;
}


/* ==================================================
   2. СТИЛИ ЧЕКБОКСОВ В ФОРМАХ TILDA
================================================== */

/* В попапе чекбокс располагается перед кнопкой */
.t702 .t-input-group_cb {
    order: 5;

    min-height: 16px;
    margin-top: 8px !important;
    margin-bottom: 16px !important;
}

/* Кнопка располагается после чекбокса */
.t702 .t-form__submit {
    order: 6;

    margin-top: 0 !important;
}

/* Текст и положение чекбокса */
:is(.t702, .t396) .t-checkbox__control {
    position: relative;
    display: block;

    width: 100%;
    min-height: 16px;
    padding-left: 24px !important;

    font-size: 12px !important;
    line-height: 1.3 !important;
}

/* Квадрат чекбокса */
:is(.t702, .t396) .t-checkbox__indicator {
    position: absolute !important;

    top: 1px !important;
    left: 0 !important;

    width: 16px;
    height: 16px;
    margin: 0 !important;

    border: 1px solid #c9c9c9;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Активный чекбокс */
:is(.t702, .t396)
.t-checkbox__control
.t-checkbox:checked ~ .t-checkbox__indicator {
    background: #2C88F5;
    border-color: #2C88F5 !important;
}

/* Белая галочка */
:is(.t702, .t396) .t-checkbox__indicator::after {
    border-color: #ffffff !important;
}

/* Текст чекбокса на десктопе */
:is(.t702, .t396) .t-input-group_cb,
:is(.t702, .t396) .t-input-group_cb label,
:is(.t702, .t396) .t-input-group_cb span,
:is(.t702, .t396) .t-input-group_cb a,
:is(.t702, .t396)
.t-input-group_cb
div[data-customstyle="yes"] {
    font-size: 12px !important;
    line-height: 1.3 !important;
}


/* ==================================================
   АДАПТАЦИЯ: ЭКРАНЫ ДО 1199 PX
================================================== */

@media screen and (max-width: 1199px) {
    .uc-faq .t585__title {
        font-size: 16px !important;
    }
}


/* ==================================================
   АДАПТАЦИЯ: ЭКРАНЫ ДО 959 PX
================================================== */

@media screen and (max-width: 959px) {
    .uc-faq .t585 .t-col {
        padding: 0 10px;
    }

    .uc-faq .t585__trigger-button {
        padding-left: 24px;
    }

    .uc-faq .t585__textwrapper {
        padding: 0 24px;
    }
}


/* ==================================================
   АДАПТАЦИЯ: МОБИЛЬНЫЕ ДО 639 PX
================================================== */

@media screen and (max-width: 639px) {
    /* FAQ */
    .uc-faq .t585__trigger-button {
        padding-left: 16px;
        padding-right: 64px;
    }

    .uc-faq .t585__title {
        font-size: 14px !important;
    }

    .uc-faq .t585__textwrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Чекбокс в мобильных формах */
    :is(.t702, .t396) .t-checkbox__control,
    :is(.t702, .t396) .t-input-group_cb,
    :is(.t702, .t396) .t-input-group_cb label,
    :is(.t702, .t396) .t-input-group_cb span,
    :is(.t702, .t396) .t-input-group_cb a,
    :is(.t702, .t396)
    .t-input-group_cb
    div[data-customstyle="yes"] {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    /* Отступ перед кнопкой в мобильном попапе */
    .t702 .t-input-group_cb {
        margin-bottom: 14px !important;
    }
}



