/* ---------------------------------------------------------------------------
   torgo.md — нижняя навигация + порядок вкладок в мобильной шторке.
   Файл лежит ВНЕ пакета Modesy (/custom/), обновления скрипта его не трогают.
   Подключается из Админка → Настройки → Общие → Custom Header Codes.
   При правке — поднимать ?v= в подключении (nginx отдаёт статику с expires 24h).
--------------------------------------------------------------------------- */

/* --- 1. Вкладки мобильной шторки: сначала «Категории» ---------------------- */

.nav-mobile .nav-tabs-mobile-menu {
    display: flex;
}

.nav-mobile .nav-tabs-mobile-menu [data-target="#tabMobileCategories"] {
    order: 1;
}

.nav-mobile .nav-tabs-mobile-menu [data-target="#tabMobileMainMenu"] {
    order: 2;
}

/* --- 2. Нижний навбар: на десктопе не нужен -------------------------------- */

.tg-bnav,
.tg-sheet-wrap {
    display: none;
}

@media (max-width: 992px) {
    :root {
        --tg-bnav-h: 58px;
        --tg-bnav-safe: env(safe-area-inset-bottom, 0px);
    }

    body {
        padding-bottom: calc(var(--tg-bnav-h) + var(--tg-bnav-safe));
    }

    /* --- панель --- */

    .tg-bnav {
        display: flex;
        align-items: stretch;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030; /* ниже bootstrap-модалок (1040/1050), выше контента */
        height: calc(var(--tg-bnav-h) + var(--tg-bnav-safe));
        padding-bottom: var(--tg-bnav-safe);
        background-color: rgba(255, 255, 255, .97);
        border-top: 1px solid rgba(0, 0, 0, .07);
        box-shadow: 0 -2px 16px rgba(0, 0, 0, .07);
        transition: transform .22s ease;
    }

    @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        .tg-bnav {
            background-color: rgba(255, 255, 255, .68);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            backdrop-filter: saturate(180%) blur(20px);
        }
    }

    /* прячем, когда открыта шторка меню или вылезла экранная клавиатура.
       +36px — чтобы уехал и выступающий круг корзины */
    body.tg-drawer-open .tg-bnav,
    body.tg-kb-open .tg-bnav {
        transform: translateY(calc(100% + 36px));
    }

    /* --- пункт --- */

    .tg-bnav-i {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        position: relative;
        margin: 0;
        padding: 6px 2px 5px;
        border: 0;
        background: none;
        color: #5b6270 !important;
        font-size: 10.5px;
        font-weight: 500;
        line-height: 1.1;
        text-decoration: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    .tg-bnav-i:focus {
        outline: 0;
    }

    /* иконки: родной шрифт скрипта (mds-icons) и свои svg там,
       где в шрифте подходящего глифа нет */
    .tg-bnav-i > i {
        display: block;
        flex-shrink: 0;
        height: 23px;
        font-size: 21px;
        line-height: 23px;
    }

    .tg-bnav-i > svg {
        width: 23px;
        height: 23px;
        flex-shrink: 0;
        stroke-width: 1.6;
    }

    /* в мобильной версии корзина живёт только в нижней панели */
    .nav-mobile-header-container .a-mobile-cart {
        display: none;
    }

    .tg-bnav-l {
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .tg-bnav-i.is-active {
        color: var(--mds-color-main, #111) !important;
    }

    .tg-bnav-i:active {
        opacity: .55;
    }

    /* --- корзина: приподнятый круг по центру панели --- */

    .tg-bnav-fab {
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background-color: var(--mds-color-main, #111);
        color: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
        transition: transform .18s ease, background-color .18s ease, color .18s ease;
    }

    /* пустая корзина — белая, с товарами — акцентная */
    .tg-bnav-cart.is-empty .tg-bnav-fab {
        background-color: #fff;
        color: #767d8a;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .14), inset 0 0 0 1px rgba(0, 0, 0, .07);
    }

    /* у белого круга просвет не нужен — он сам светлый */
    .tg-bnav-cart.is-empty .tg-bnav-fab::before {
        opacity: 0;
    }

    /* просвет между кругом и панелью, как у выступающей кнопки */
    .tg-bnav-fab::before {
        content: "";
        position: absolute;
        top: -5px;
        right: -5px;
        bottom: -5px;
        left: -5px;
        border-radius: 50%;
        border: 5px solid #fff;
        opacity: .55;
    }

    .tg-bnav-fab > i {
        position: relative;
        font-size: 24px;
        line-height: 1;
    }

    .tg-bnav-fab > svg {
        position: relative;
        width: 26px;
        height: 26px;
        stroke-width: 1.7;
    }

    .tg-bnav-cart:active .tg-bnav-fab {
        transform: translateX(-50%) scale(.93);
    }

    .tg-bnav-cart:active {
        opacity: 1;
    }

    /* распорка на месте обычной иконки — держит подпись на общей линии */
    .tg-bnav-sp {
        width: 23px;
        height: 23px;
    }

    .tg-bnav-cart.is-active .tg-bnav-fab {
        box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    }

    /* --- бейджи количества: цвет — акцент темы тенанта.
           У корзины класс span_cart_product_count, чтобы штатный ajax
           Modesy обновлял её счётчик сам. --- */

    /* размер как у родного бейджа корзины Modesy: 18px внутри, шрифт 12px */
    .tg-bnav-badge {
        position: absolute;
        min-width: 22px;
        height: 22px;
        padding: 0 5px;
        border-radius: 11px;
        border: 2px solid #fff;
        background-color: var(--mds-color-main, #111);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        line-height: 18px;
        text-align: center;
    }

    /* на круге корзины — вынесен на край, чтобы читался поверх акцента */
    .tg-bnav-fab > .tg-bnav-badge {
        top: -4px;
        right: -8px;
    }

    /* у обычных пунктов — у правого края иконки */
    .tg-bnav-i > .tg-bnav-badge {
        top: 0;
        left: calc(50% + 3px);
    }

    .tg-bnav-badge.visibility-hidden {
        display: none;
    }

    /* --- аватар и точка непрочитанных --- */

    .tg-bnav-av {
        width: 23px;
        height: 23px;
        border-radius: 50%;
        object-fit: cover;
    }

    .tg-bnav-i.is-active .tg-bnav-av {
        box-shadow: 0 0 0 2px var(--mds-color-main, #111);
    }

    .tg-bnav-dot {
        position: absolute;
        top: 5px;
        left: calc(50% + 6px);
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #ef4444;
        box-shadow: 0 0 0 2px #fff;
    }

    /* --- чужие фиксированные элементы приподнимаем над панелью --- */

    .scrollup {
        bottom: calc(20px + var(--tg-bnav-h) + var(--tg-bnav-safe));
    }

    .cookies-warning {
        bottom: calc(20px + var(--tg-bnav-h) + var(--tg-bnav-safe));
    }

    /* шторка меню не должна прятать последние пункты под панелью */
    .nav-mobile .nav-mobile-sc {
        padding-bottom: calc(var(--tg-bnav-h) + var(--tg-bnav-safe));
    }

    /* --- 3. Шторка профиля --------------------------------------------------- */

    .tg-sheet-wrap {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1046;
    }

    .tg-sheet-wrap.is-open {
        display: block;
    }

    .tg-sheet-bd {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: rgba(0, 0, 0, .45);
        opacity: 0;
        transition: opacity .24s ease;
    }

    .tg-sheet {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 82vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0 calc(10px + var(--tg-bnav-safe));
        border-radius: 18px 18px 0 0;
        background-color: rgba(255, 255, 255, .97);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, .2);
        transform: translateY(100%);
        transition: transform .28s cubic-bezier(.32, .72, 0, 1);
    }

    @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        .tg-sheet {
            background-color: rgba(255, 255, 255, .84);
            -webkit-backdrop-filter: saturate(180%) blur(24px);
            backdrop-filter: saturate(180%) blur(24px);
        }
    }

    .tg-sheet-wrap.is-in .tg-sheet-bd {
        opacity: 1;
    }

    .tg-sheet-wrap.is-in .tg-sheet {
        transform: none;
    }

    .tg-sheet-grip {
        width: 38px;
        height: 4px;
        margin: 2px auto 10px;
        border-radius: 2px;
        background-color: rgba(0, 0, 0, .18);
    }

    .tg-sheet-head {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 4px 20px 14px;
        border-bottom: 1px solid rgba(0, 0, 0, .07);
    }

    .tg-sheet-av {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }

    .tg-sheet-name {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 16px;
        font-weight: 600;
        color: #111;
    }

    .tg-sheet-list {
        margin: 0;
        padding: 4px 0 0;
        list-style: none;
    }

    .tg-sheet-list li {
        margin: 0;
        padding: 0;
    }

    .tg-sheet-list form {
        margin: 0;
    }

    .tg-sheet-list a,
    .tg-sheet-list .btn-logout {
        display: flex;
        align-items: center;
        gap: 13px;
        width: 100%;
        padding: 13px 20px;
        border: 0;
        background: none;
        color: #222 !important;
        font-size: 15px;
        text-align: left;
        text-decoration: none !important;
    }

    .tg-sheet-list a:active,
    .tg-sheet-list .btn-logout:active {
        background-color: rgba(0, 0, 0, .05);
    }

    .tg-sheet-list .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        flex-shrink: 0;
    }
}

/* ---------------------------------------------------------------------------
   Установка PWA: пункт в боковом меню и окно с предложением.
   Работает на всех ширинах — приложение ставят и с планшета, и с десктопа.
--------------------------------------------------------------------------- */

/* Кнопка «Установить приложение» — заметная, а не рядовой пункт меню.
   Есть и в мобильной шторке, и в верхней панели десктопа. */
.tg-pwa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 6px;
    background-color: var(--mds-color-main, #111);
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.tg-pwa-btn:hover,
.tg-pwa-btn:focus {
    color: #fff;
    opacity: .9;
    outline: 0;
}

.tg-pwa-btn:active {
    opacity: .75;
}

.tg-pwa-menu-icon {
    display: flex;
    flex-shrink: 0;
}

.tg-pwa-menu-icon svg {
    width: 18px;
    height: 18px;
}

/* в шторке — во всю ширину, чтобы читалась как призыв к действию */
.nav-mobile .navbar-nav .tg-pwa-mobile {
    padding: 6px 0 !important;
    border: 0 !important;
}

.nav-mobile .navbar-nav .tg-pwa-mobile .tg-pwa-btn {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
}

/* в верхней панели — компактная */
.top-bar .tg-pwa-desktop {
    display: flex;
    align-items: center;
}

.top-bar .tg-pwa-desktop .tg-pwa-btn {
    padding: 5px 12px;
    margin-right: 14px;
    font-size: 12px;
}

.top-bar .tg-pwa-desktop .tg-pwa-menu-icon svg {
    width: 15px;
    height: 15px;
}

/* Тумблер уведомлений о заказах */
.tg-push-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, .04);
    color: #222;
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.tg-push-row:disabled { opacity: .6; }

.tg-push-ico {
    display: flex;
    flex-shrink: 0;
    color: #868e96;
    transition: color .18s ease;
}

.tg-push-ico svg { width: 20px; height: 20px; }

.tg-push-row.is-on .tg-push-ico { color: var(--mds-color-main, #111); }

.tg-push-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
    font-size: 14.5px;
}

/* сам переключатель */
.tg-push-sw {
    flex-shrink: 0;
    position: relative;
    width: 40px;
    height: 23px;
    border-radius: 12px;
    background-color: #c9ced6;
    transition: background-color .2s ease;
}

.tg-push-sw i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}

.tg-push-row.is-on .tg-push-sw { background-color: var(--mds-color-main, #111); }
.tg-push-row.is-on .tg-push-sw i { transform: translateX(17px); }

.nav-mobile .navbar-nav .tg-push-item {
    padding: 6px 0 !important;
    border: 0 !important;
}

.tg-push-standalone { margin: 14px 0; max-width: 420px; }


/* Предложение следить за заказом — показывается на странице «Заказ оформлен» */
.tg-push-offer {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 520px;
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
    text-align: left;
}

.tg-push-offer-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .05);
    color: var(--mds-color-main, #111);
}

.tg-push-offer-ico svg { width: 22px; height: 22px; }

.tg-push-offer-body { min-width: 0; }

.tg-push-offer-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.tg-push-offer-text {
    margin: 6px 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #5b6270;
}

.tg-push-offer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tg-push-offer-actions .btn-custom {
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
}

.tg-push-no {
    border: 0;
    background: none;
    padding: 9px 6px;
    color: #868e96;
    font-size: 14px;
}

.tg-pwa-wrap {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1060; /* выше нижней панели и её шторки профиля */
}

.tg-pwa-wrap.is-open {
    display: block;
}

.tg-pwa-bd {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .5);
    opacity: 0;
    transition: opacity .24s ease;
}

.tg-pwa-box {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    padding: 26px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
    background-color: #fff;
    box-shadow: 0 -8px 34px rgba(0, 0, 0, .22);
    text-align: center;
    transform: translate(-50%, 100%);
    transition: transform .28s cubic-bezier(.32, .72, 0, 1);
}

.tg-pwa-wrap.is-in .tg-pwa-bd {
    opacity: 1;
}

.tg-pwa-wrap.is-in .tg-pwa-box {
    transform: translate(-50%, 0);
}

@media (min-width: 576px) {
    .tg-pwa-box {
        top: 50%;
        bottom: auto;
        border-radius: 14px;
        transform: translate(-50%, -40%);
        opacity: 0;
        transition: transform .26s ease, opacity .26s ease;
    }

    .tg-pwa-wrap.is-in .tg-pwa-box {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.tg-pwa-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .05);
    color: #5b6270;
    font-size: 13px;
    line-height: 34px;
}

.tg-pwa-logo img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}

.tg-pwa-title {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.tg-pwa-desc {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #5b6270;
}

.tg-pwa-steps {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.tg-pwa-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    border-top: 1px solid rgba(0, 0, 0, .07);
}

.tg-pwa-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, .05);
    color: var(--mds-color-main, #111);
}

.tg-pwa-step-icon svg {
    width: 21px;
    height: 21px;
}

.tg-pwa-actions {
    margin-top: 22px;
}

.tg-pwa-actions .btn-custom {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
}

.tg-pwa-later {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 0;
    background: none;
    color: #5b6270;
    font-size: 14px;
}

/* ---------------------------------------------------------------------------
   Автодополнение населённого пункта в адресных формах
--------------------------------------------------------------------------- */

.tg-ac {
    position: relative;
}

.tg-ac-list {
    display: none;
    position: absolute;
    z-index: 1055; /* выше select2, ниже модалок */
    top: 100%;
    left: 0;
    right: 0;
    max-height: 280px;
    margin: 4px 0 0;
    padding: 4px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.tg-ac.is-open .tg-ac-list {
    display: block;
}

.tg-ac-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    font-size: 14px;
    line-height: 1.3;
    color: #222;
    cursor: pointer;
}

.tg-ac-item:hover,
.tg-ac-item.is-active {
    background-color: rgba(0, 0, 0, .05);
}

.tg-ac-name b {
    font-weight: 700;
    color: var(--mds-color-main, #111);
}

.tg-ac-region {
    flex-shrink: 0;
    font-size: 12px;
    color: #868e96;
}

/* пункт из другого района — выбор переключит регион и пересчитает доставку */
.tg-ac-region.is-other {
    color: var(--mds-color-main, #111);
    font-weight: 600;
}

@media print {
    .tg-bnav,
    .tg-sheet-wrap,
    .tg-pwa-wrap {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}


/* --- блок брендов: карточки вместо сплошной ленты ---------------------------
   Штатная разметка уже не растягивает логотипы (object-fit: contain), но
   выводит их в ряд с разделителем border-right. Приводим к виду карточек:
   белая плитка со скруглением и тенью, логотип по центру.

   «Одного размера, но без растяжения» держится на трёх вещах: одинаковая
   высота плитки, ограничение логотипа по высоте И по ширине, и contain —
   картинка вписывается, пропорции не трогаются. */

.swiper-carousel-brand .brand-item {
    border-right: 0 !important;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    height: 112px;
    margin: 6px 8px;
    padding: 18px 22px;
    transition: box-shadow .18s ease-in-out, transform .18s ease-in-out;
}

.swiper-carousel-brand .brand-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
    transform: translateY(-2px);
}

/* штатный контейнер жёстко задаёт aspect-ratio 112/52 — из-за него высокие
   логотипы обрезались бы по бокам; снимаем и центрируем по обеим осям */
.swiper-carousel-brand .brand-item .item {
    aspect-ratio: auto;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.swiper-carousel-brand .brand-item img {
    width: auto;
    height: auto;
    max-height: 52px;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .swiper-carousel-brand .brand-item {
        height: 92px;
        padding: 14px 16px;
        margin: 4px 5px;
    }

    .swiper-carousel-brand .brand-item img {
        max-height: 42px;
    }
}


/* --- блок преимуществ на главной ------------------------------------------
   Разметка лежит в рекламной области index_2 (ad_code_desktop выводится
   без экранирования — штатная точка для своей вёрстки). Ядро не тронуто. */

/* Блок лежит внутри .bn-container (display:flex; justify-content:center),
   поэтому без flex-basis он сожмётся по содержимому. */
.tg-benefits {
    display: block;
    width: 100%;
    flex: 1 1 100%;
    margin: 10px 0 30px;
}

/* Modesy печатает размеры рекламной области инлайновым <style> в шапке:
   .bn-ds-6{width:728px;height:90px}. Обнулять их в базе нельзя — в админке
   область будет показана как 0x0 и выглядит сломанной. Поэтому размеры в
   базе оставляем настоящими, а здесь перебиваем: наше правило и
   специфичнее, и с !important, поэтому выигрывает независимо от порядка. */
.bn-inner:has(.tg-benefits),
.bn-container:has(.tg-benefits) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

.tg-benefits-head {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 22px;
    color: var(--tg-text, #1f2937);
}

.tg-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tg-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 22px;
    border-radius: 12px;
    background-color: var(--tg-surface, #fff);
    border: 1px solid var(--tg-line, #e9eaee);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    transition: box-shadow .18s ease-in-out, transform .18s ease-in-out;
}

.tg-benefit:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .09);
    transform: translateY(-2px);
}

.tg-benefit-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    border-radius: 50%;
    color: var(--mds-color-main, #0096c7);
    background-color: color-mix(in srgb, var(--mds-color-main, #0096c7) 12%, transparent);
}

.tg-benefit-ico svg {
    width: 28px;
    height: 28px;
}

.tg-benefit-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--tg-text, #1f2937);
}

.tg-benefit-text {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: var(--tg-text-dim, #6b7280);
}

@media (max-width: 991px) {
    .tg-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .tg-benefits-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tg-benefits-head {
        font-size: 19px;
    }

    .tg-benefit {
        padding: 20px 18px;
    }
}
