/* =========================================
   ОБЩИЕ НАСТРОЙКИ
========================================= */

/*
Не задаём width, max-width и box-sizing
всем блокам Тильды — это ломает десктопную сетку.
*/

html,
body {
    overflow-x: hidden;
}

#allrecords strong,
#allrecords b {
    font-weight: 600;
}

#allrecords a {
    color: #FF529E;
}


/* =========================================
   ТУЛТИПЫ
========================================= */

#allrecords a[href*="#tooltip"] {
    display: inline-block;

    width: 16px;
    height: 16px;

    border-radius: 50%;
    background-color: #504957;

    font-family: "Circe", sans-serif;
    color: #ffffff;

    text-align: center;
    line-height: 16px;
    text-decoration: none;
}


/* =========================================
   ТАБЫ И МОБИЛЬНАЯ НАВИГАЦИЯ
========================================= */

.t395__separator_mobile {
    display: none !important;
}

@media screen and (max-width: 980px) {
    .t395__col {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media screen and (max-width: 640px) {
    #allrecords .t395__wrapper_mobile-flex {
        padding-left: 0;
    }

    .t450__menu__content {
        right: 10px !important;
    }
}


/* =========================================
   ЗАГОЛОВОК СТРАНИЦЫ
========================================= */

@media screen and (max-width: 1200px) {
    #rec673370164 h1.t050__title {
        font-size: 56px;
    }
}

@media screen and (max-width: 980px) {
    #rec673370164 h1.t050__title {
        font-size: 36px;
    }
}

@media screen and (max-width: 640px) {
    #rec673370164 h1.t050__title {
        font-size: 27px;
    }
}

@media screen and (max-width: 480px) {
    #rec673370164 h1.t050__title {
        font-size: 22px;
    }
}


/* =========================================
   POP-UP
========================================= */

@media screen and (min-width: 560px) {
    .t-popup__container {
        border-radius: 24px;
    }
}

.uc-pop-up-image .t702__img {
    border-radius: 20px 20px 0 0;
}


/* =========================================
   ТЕКСТОВЫЕ БЛОКИ
========================================= */

.t300__content-text {
    font-weight: 300;
}

.t668__text {
    flex-grow: 1;
}

.t668__text br {
    display: block;
    content: "";
    margin-top: 12px;
}

.t668__text li {
    margin-bottom: 12px;
}

.t668__img {
    border-radius: 8px;
}

@media screen and (min-width: 640px) {
    .t668__textwrapper {
        display: flex;
        flex-direction: row-reverse;
        gap: 40px;
    }
}


/* =========================================
   КАРТОЧКИ НА МОБИЛЬНЫХ И ПЛАНШЕТАХ
========================================= */

@media screen and (max-width: 640px) {
    .card_mobile__s {
        width: calc(100% - 20px) !important;
    }
}

@media screen and (max-width: 1200px) {
    .card_mobile__m {
        width: calc(100% - 20px) !important;
    }
}


/* =========================================
   СЛАЙДЕРЫ
========================================= */

.t-slds__bgimg {
    border-radius: 20px;
}


/* =========================================
   БЛОК С ЦЕНАМИ
========================================= */

.uc-pricing .t1071 .t-card__descr li:last-child {
    border: none !important;
}

.uc-pricing .t-card__title {
    font-size: 32px;
}

.uc-pricing .t1071__imgwrapper {
    height: 100px;
    overflow: hidden;
}

.uc-pricing .t1071__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    padding: 0 20px;
}

.uc-pricing .t1071__col {
    display: flex;
    flex-direction: column;

    max-width: 280px;

    padding: 0;
    margin: 0;
}

.uc-pricing .t1071__wrapper {
    display: flex;
    flex-direction: column;

    min-height: 100%;

    border-radius: 16px;
}

.uc-pricing .t1071__textwrapper {
    z-index: 1;
    text-align: left;
}

.uc-pricing .t1071__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;

    padding: 20px;

    text-align: left;
    border: none !important;
}

.uc-pricing .t-card__descr {
    flex-grow: 1;
    margin: 0;
}

.uc-pricing .t-card__btn {
    width: 100%;
    height: 54px;
    margin-top: 20px;
}

.uc-pricing .t1071__price {
    margin: 0;
}

.uc-pricing .t1071 .t-card__descr li {
    padding: 8px 0;
}


/* =========================================
   БЛОК С ЦЕНАМИ — ПЛАНШЕТЫ
========================================= */

@media screen and (max-width: 1200px) {
    .uc-pricing .t1071__row {
        gap: 20px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .uc-pricing .t1071__col {
        max-width: 460px;
    }
}


/* =========================================
   БЛОК С ЦЕНАМИ — МОБИЛЬНАЯ ВЕРСИЯ
========================================= */

@media screen and (max-width: 980px) {
    /*
    Box-sizing применяется только к карточкам,
    а не ко всей сетке Тильды.
    */

    .uc-pricing .t1071__row,
    .uc-pricing .t1071__col,
    .uc-pricing .t1071__wrapper,
    .uc-pricing .t1071__content,
    .uc-pricing .t-card__btn {
        box-sizing: border-box;
    }

    .uc-pricing .t1071__row {
        width: 100%;
        max-width: 100%;

        padding-right: 10px;
        padding-left: 10px;

        margin-right: 0;
        margin-left: 0;
    }

    .uc-pricing .t1071__col {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .uc-pricing .t1071__wrapper,
    .uc-pricing .t1071__content {
        width: 100%;
        max-width: 100%;
    }

    /*
    Сохраняем твои отступы колонок только
    в мобильной версии.
    */

    .t-col {
        box-sizing: border-box;
        padding-right: 10px;
        padding-left: 10px;
    }
}


/* =========================================
   ПРОГРАММА КУРСА
========================================= */

.uc-programm .t668__col:first-child .t668__wrapper {
    border-radius: 20px 20px 0 0;
}

.uc-programm .t668__col:last-child .t668__wrapper {
    border-radius: 0 0 20px 20px;
}


/* =========================================
   JIVO — ПЛАНШЕТЫ 768–1199 PX
========================================= */

@media screen and (min-width: 768px) and (max-width: 1199px) {
    /*
    Не даём Jivo масштабировать или сдвигать
    основной контент страницы.
    */

    html.jivo-site-full-block,
    html.jivo-site-full-block body,
    body.jivo-tablet-overlay,
    body.jivo-tablet-overlay #allrecords,
    body.jivo-tablet-overlay .t-records,
    body.jivo-tablet-overlay .t-rec,
    body.jivo-tablet-overlay .t396,
    body.jivo-tablet-overlay .t396__artboard,
    body.jivo-tablet-overlay .t396__carrier,
    body.jivo-tablet-overlay .t-cover,
    body.jivo-tablet-overlay .t-cover__filter {
        transform: none !important;
        filter: none !important;
        zoom: 1 !important;
        -webkit-text-size-adjust: 100% !important;
    }

    /*
    Полноэкранный Jivo на планшетах.
    Не используем width: 100vw, так как он может
    создавать горизонтальную прокрутку.
    */

    .jivo-overlay,
    .jivo-popup,
    #jivo-global-container {
        position: fixed !important;

        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100% !important;
        max-width: 100% !important;

        height: 100vh !important;
        height: 100dvh !important;

        padding: 0 !important;
        margin: 0 !important;

        overflow: hidden !important;

        z-index: 2147483647 !important;
        transform: none !important;
    }

    .jivo-overlay iframe,
    .jivo-popup iframe,
    #jivo-global-container iframe {
        display: block;

        width: 100% !important;
        max-width: 100% !important;

        height: 100% !important;
        max-height: 100% !important;

        padding: 0 !important;
        margin: 0 !important;

        border: 0 !important;
    }
}


/* =========================================
   JIVO — ОБЩИЕ НАСТРОЙКИ IFRAME
========================================= */

.t-body iframe[src*="jivo"] {
    max-width: none !important;
    height: 100% !important;
}


/* =========================================
   Z-INDEX ЭЛЕМЕНТОВ ТИЛЬДЫ
========================================= */

.t-uptop__btn,
.t-menufixed,
.t-popup,
.t862,
.t702,
.t450__menu__content {
    z-index: 9999;
}