#block-search, #block-search-main, #block-search-sub, #block-search * {
    box-sizing: border-box;
}

#block-search-main {
    margin: 0 auto;
    max-width: 1135px;
    border-radius: 20px;
    background: rgba(252, 251, 247, 0.5);
}

#block-search-sub {
    margin: 0 auto;
    width: 60%;
    background: transparent;
}

#block-search {
    margin: 0 auto;
    max-width: 1135px;
    border-radius: 20px;
    background: #F5F2E9;
}

.tl-mb {
    margin-bottom: 70px !important;
}

.tl-mt {
    margin-top: 70px !important;
}

.tl-pd {
    padding: 0 20px;
}

.tl-book-btn {
    margin-top: 20px;
}

.tl-container {
    max-width: 1145px;
    padding: 0 30px;
}

.tl-container--sub {
    padding: 0;
}

@media screen and (max-width: 1023px) {
    #block-search-sub {
      width: 77%;
    }
}

@media screen and (max-width: 767px) {
    #block-search-sub {
        width: 100%;
    }
}

    @media (max-width: 400px) {
        .container:has(#tl-guest-account) {
            padding-left: 10px;
            padding-right: 10px;
        }
    }
    
    #tl-loyalty-container, #tl-loyalty-container * {
        box-sizing: border-box;
    }
    /*#tl-loyalty-container svg {*/
    /*    display: none;*/
    /*}*/
    /*#tl-loyalty-container img {*/
    /*    display: none;*/
    /*}*/

    /* Основные параметры контейнера */
    #tl-loyalty-container {
        max-width: 900px;
        margin: 35px auto;
        padding: 0 10px;
    }

    /* Шрифт основного текста */
    #tl-loyalty-container * {
        font-family: "Gilroy", sans-serif;
        color: #000000;
        text-align: left;
    }

    /* Шрифт заголовков - Название карточки */
    #tl-loyalty-container .card-title {
        font-weight: 700;
        font-size: 24px;
        line-height: 1;
    }

    /* Текст над карточками */
    #tl-loyalty-container .loyalty-description {
        font-weight: 400;
        font-size: 20px;
        line-height: 32px;
        margin: 0 auto 38px;
    }
    
    #tl-loyalty-container .loyalty-description-title {
        font-weight: 500;
        font-size: 32px;
        line-height: 1;
        text-align: center;
    }

    /* Контейнер карт */
    #tl-loyalty-container .cards-container {
        display: flex;
        flex-direction: row;
        gap: 31px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 793px;
        margin: 60px auto 0;
    }

    #tl-loyalty-container .card {
        display: flex;
        flex-direction: column;
        /*flex: 0 0 326px;*/
        border-radius: 20px;
        text-align: left;
        background-color: transparent;
    }

    /* Изображение, вставка SVG в виде кода */
    #tl-loyalty-container .card-img svg {
        border-radius: 20px;
        width: 326px;
        height: 204px;
    }

    /* Текст карточки */
    #tl-loyalty-container .card-title {
        margin: 0;
    }

    #tl-loyalty-container .card-text-container {
        display: flex;
        border-radius: 0 0 15px 15px;
        border-top: none;
        background: #ffffff;
    }

    #tl-loyalty-container .card-text-inner-container {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
        margin: 15px 0 20px;
        padding: 0;
    }

    #tl-loyalty-container .card-title-container {
        display: flex;
        justify-content: space-between;
        margin: 0;
        padding: 0 8px;
        align-items: center;
    }

    #tl-loyalty-container .card-discount {
        font-weight: 700;
        font-size: 20px;
        line-height: 1;
        text-transform: uppercase;
    }

    #tl-loyalty-container .card-description {
        margin: 0;
        padding: 30px 0 0 12px;
        font-size: 20px;
        line-height: 1;
        position: relative;
    }
    
    #tl-loyalty-container .card-description::before {
        content: '•';
        font-size: 1em;
        position: absolute;
        left: 1px;
    }
    
    #tl-loyalty-container .card-description .card-description-condition {
        color: #8C9977;
        font-weight: 500;
    }

    /* Текст под блоком карт */
    #tl-loyalty-container .text-after-cards {
        margin: 45px 0;
        font-weight: 400;
        font-size: 20px;
        line-height: 32px;
    }

    #tl-loyalty-container .text-after-cards-title {
        font-weight: 500;
        text-align: center;
        margin: 38px 0;
    }

    #tl-loyalty-container .text-after-cards ul {
        padding-left: 0;
    }

    #tl-loyalty-container .text-after-cards ul li {
        list-style: none;
        margin-bottom: 20px;
    }

    /* Кнопка */
    .tl-btn-loyalty {
        display: block;
        margin: 30px auto;
        max-width: 240px;

        padding: 16px 30px;
        border-radius: 20px;
        background: #C8DAA9;

        font-weight: 500;
        font-size: 18px;
        line-height: 1;
        text-align: center !important;

        cursor: pointer;
        text-decoration: none;
        color: #333230 !important;
        border: 1px solid #C8DAA9;
    }

    .tl-btn-loyalty:hover {
        background: #FFFFFF;
    }
    @media (max-width: 1065px) {
        #tl-loyalty-container {
            padding: 0 5px;
        }
        #tl-loyalty-container .cards-container {
            gap: 16px;
        }
        #tl-loyalty-container .card-img svg,
        #tl-loyalty-container .card-img img {
            width: calc(326px * 0.85);
            height: calc(204px * 0.85);
        }
        #tl-loyalty-container .card-text-container {
            width: calc(326px * 0.85);
        }
    }
    @media (max-width: 907px) {
        #tl-loyalty-container .cards-container {
            gap: 30px;
        }
        #tl-loyalty-container .card {
            flex-direction: row;
        }
        #tl-loyalty-container .card-img svg,
        #tl-loyalty-container .card-img img {
            width: 326px;
            height: 204px;
        }
        #tl-loyalty-container .card-text-container {
            width: 326px;
        }
    }
    @media (max-width: 665px) {
        #tl-loyalty-container .card {
            flex-direction: column;
        }
    }
    @media (max-width: 380px) {
        #tl-loyalty-container .card-img svg,
        #tl-loyalty-container .card-img img {
            width: calc(326px * 0.85);
            height: calc(204px * 0.85);
        }
        #tl-loyalty-container .card-text-container {
            width: calc(326px * 0.85);
        }
    }