/* Стили для галереи с компактным расположением */
.uc-gallery-compact .t754__parent {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 300px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px 15px !important;
    justify-items: center !important;
    box-sizing: border-box !important;
}

.uc-gallery-compact .t-container,
.uc-gallery-compact .t-container_100,
.uc-gallery-compact .t754 {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.uc-gallery-compact .t754__col {
    width: 100% !important;
    max-width: 320px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
}

.uc-gallery-compact .t754__content {
    width: 100% !important;
}

.uc-gallery-compact .t754__imgwrapper {
    width: 100% !important;
}

/* Мобильная версия */
@media screen and (max-width: 640px) {
    .uc-gallery-compact .t754__parent {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px 10px !important;
        padding: 0 10px !important;
    }
}

@media screen and (max-width: 480px) {
    .uc-gallery-compact .t754__parent {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .uc-gallery-compact .t754__col {
        max-width: 100% !important;
    }
}
.uc-pand-gray {
    padding: 80px 80px 0 80px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    display: block !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.uc-pand-gray .t492__blocktable {
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
}
.uc-pand-gray .t492__blocktext {
    background: #7a7a7a !important;
    padding: 40px 45px !important;
    vertical-align: middle !important;
    text-align: center !important;
}
.uc-pand-gray td {
    padding: 0 !important;
    vertical-align: middle !important;
    text-align: center !important;
}
.uc-pand-gray .t492__textwrapper {
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
}
.uc-pand-gray .t-title,
.uc-pand-gray .t-descr {
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
}
.uc-pand-gray .t-descr {
    margin-bottom: 40px !important;
}
.uc-pand-gray .t-btnflex {
    margin: 5px auto 0 auto !important;
    display: inline-flex !important;
}

.uc-pand-orange {
    padding: 80px 80px 0 80px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    display: block !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.uc-pand-orange .t492__blocktable {
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
}
.uc-pand-orange .t492__blocktext {
    background: #e5781a !important;
    padding: 40px 45px !important;
    vertical-align: middle !important;
    text-align: center !important;
}
.uc-pand-orange td {
    padding: 0 !important;
    vertical-align: middle !important;
    text-align: center !important;
}
.uc-pand-orange .t492__textwrapper {
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
}
.uc-pand-orange .t-title,
.uc-pand-orange .t-descr {
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
}
.uc-pand-orange .t-descr {
    margin-bottom: 40px !important;
}
.uc-pand-orange .t-btnflex {
    margin: 5px auto 0 auto !important;
    display: inline-flex !important;
}

.uc-pand-cream {
    padding: 80px 80px 0 80px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    display: block !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.uc-pand-cream .t492__blocktable {
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
}
.uc-pand-cream .t492__blocktext {
    background: #f7e8d3 !important;
    padding: 40px 45px !important;
    vertical-align: middle !important;
    text-align: center !important;
}
.uc-pand-cream td {
    padding: 0 !important;
    vertical-align: middle !important;
    text-align: center !important;
}
.uc-pand-cream .t492__textwrapper {
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
}
.uc-pand-cream .t-title,
.uc-pand-cream .t-descr {
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
}
.uc-pand-cream .t-descr {
    margin-bottom: 40px !important;
}
.uc-pand-cream .t-btnflex {
    margin: 5px auto 0 auto !important;
    display: inline-flex !important;
}
/* ============================================================
   КЛАСС: uc-text-padding
   НАЗНАЧЕНИЕ: Управление внутренними отступами текстовой части (заголовок + описание) в карточках T754
   ЧТО МЕНЯЕТ: Только padding внутри .t754__textwrapper
   ЧТО НЕ ТРОГАЕТ: Картинки, расстояния между карточками, ширину, выравнивание
   ============================================================ */

/* Управление внутренними отступами текстовой обертки */
.uc-text-padding .t754__textwrapper {
    padding: 10px 80px !important;         /* ← ИЗМЕНЯЙ ЗДЕСЬ: верх/низ, право/лево */
}

/* Дополнительно можно управлять отступами между элементами текста */
.uc-text-padding .t754__title {
    margin-bottom: 10px !important;        /* отступ после заголовка */
}

.uc-text-padding .t754__descr {
    margin-bottom: 0 !important;           /* отступ после описания */
}

/* ============================================================
   АДАПТИВНОСТЬ ДЛЯ РАЗНЫХ ЭКРАНОВ
   ============================================================ */

@media screen and (max-width: 640px) {
    .uc-text-padding .t754__textwrapper {
        padding: 15px 15px !important;      /* меньшие отступы на планшетах */
    }
}

@media screen and (max-width: 480px) {
    .uc-text-padding .t754__textwrapper {
        padding: 10px 12px !important;      /* минимальные отступы на телефонах */
    }
}
/* ============================================================
   КЛАСС: uc-st310n-6col
   ST310N (T778) - ТОЛЬКО ДЛЯ ГАЛЕРЕИ, БЕЗ ВЛИЯНИЯ НА ПОПАП
   ============================================================ */

/* Основной контейнер - на всю ширину (только для галереи) */
.uc-st310n-6col .t778__container:not(.t-container_fluid) {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 20px !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 20px 15px !important;
    box-sizing: border-box !important;
}

/* Скрываем ::before псевдоэлемент, который создает пустое место */
.uc-st310n-6col .t778__container:not(.t-container_fluid)::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Скрываем разделители (пустые места) */
.uc-st310n-6col .t778__separator {
    display: none !important;
}

/* Скрываем пустые колонки */
.uc-st310n-6col .t778__col:empty,
.uc-st310n-6col .t778__col[style*="display: none"],
.uc-st310n-6col .t778__col[style*="display:none"] {
    display: none !important;
}

/* Карточки (только в галерее) */
.uc-st310n-6col .t778__col:not(.t778__col_right) {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
}

.uc-st310n-6col .t778__wrapper:not(.t778__col_right .t778__wrapper) {
    width: 100% !important;
}

.uc-st310n-6col .t778__content:not(.t778__col_right .t778__content) {
    width: 100% !important;
}

.uc-st310n-6col .t778__imgwrapper:not(.t778__col_right .t778__imgwrapper) {
    width: 100% !important;
    padding-bottom: 133.333% !important;
}

/* Текст - компактно (только в галерее) */
.uc-st310n-6col .t778__textwrapper:not(.t778__col_right .t778__textwrapper) {
    padding: 8px 5px !important;
}

.uc-st310n-6col .t778__title:not(.t778__col_right .t778__title) {
    font-size: 12px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
}

/* Кнопки (только в галерее) */
.uc-st310n-6col .t778__btn-wrapper:not(.t778__col_right .t778__btn-wrapper) {
    padding: 5px 5px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.uc-st310n-6col .t778__btn:not(.t778__col_right .t778__btn) {
    font-size: 10px !important;
    padding: 5px 8px !important;
    width: 100% !important;
    text-align: center !important;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media screen and (max-width: 1024px) {
    .uc-st310n-6col .t778__container:not(.t-container_fluid) {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px 15px !important;
        padding: 0 15px !important;
    }
    .uc-st310n-6col .t778__title:not(.t778__col_right .t778__title) {
        font-size: 13px !important;
    }
    .uc-st310n-6col .t778__btn:not(.t778__col_right .t778__btn) {
        font-size: 11px !important;
    }
}

@media screen and (max-width: 640px) {
    .uc-st310n-6col .t778__container:not(.t-container_fluid) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px 10px !important;
        padding: 0 10px !important;
    }
    .uc-st310n-6col .t778__title:not(.t778__col_right .t778__title) {
        font-size: 12px !important;
    }
    .uc-st310n-6col .t778__btn:not(.t778__col_right .t778__btn) {
        font-size: 10px !important;
    }
}

@media screen and (max-width: 480px) {
    .uc-st310n-6col .t778__container:not(.t-container_fluid) {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px !important;
    }
    .uc-st310n-6col .t778__title:not(.t778__col_right .t778__title) {
        font-size: 16px !important;
    }
    .uc-st310n-6col .t778__btn:not(.t778__col_right .t778__btn) {
        font-size: 14px !important;
    }
    .uc-st310n-6col .t778__textwrapper:not(.t778__col_right .t778__textwrapper) {
        padding: 12px 15px !important;
    }
    .uc-st310n-6col .t778__imgwrapper:not(.t778__col_right .t778__imgwrapper) {
        padding-bottom: 100% !important;
    }
}
/* ============================================================
   КЛАСС: uc-ft401-spacing
   FT401 - Управление отступами от краев блока и между текстами
   ============================================================ */

/* Основной контейнер - управление внешними отступами */
.uc-ft401-spacing .t455__wrapper {
    padding-left: 60px !important;        /* ← отступ слева */
    padding-right: 60px !important;       /* ← отступ справа */
    padding-top: 10px !important;         /* ← отступ сверху */
    padding-bottom: 10px !important;      /* ← отступ снизу */
}

/* Управление отступами между заголовком и описанием */
.uc-ft401-spacing .t455__title {
    margin-bottom: 10px !important;       /* ← расстояние между заголовком и описанием */
}

/* Управление отступами между описанием и соцсетями */
.uc-ft401-spacing .t455__descr {
    margin-bottom: 10px !important;       /* ← расстояние между описанием и соцсетями */
}

/* Управление отступами между соцсетями и нижним текстом */
.uc-ft401-spacing .t-sociallinks {
    margin-bottom: 10px !important;       /* ← расстояние между соцсетями и нижним текстом */
}

/* Управление отступами для нижнего текста */
.uc-ft401-spacing .t455__bottomtext {
    margin-top: 0 !important;             /* ← отступ сверху у нижнего текста */
    margin-bottom: 0 !important;          /* ← отступ снизу у нижнего текста */
}

/* ============================================================
   ДОПОЛНИТЕЛЬНЫЕ НАСТРОЙКИ
   ============================================================ */

/* Управление расстоянием между иконками соцсетей */
.uc-ft401-spacing .t-sociallinks__wrapper {
    gap: 15px !important;                 /* ← расстояние между иконками соцсетей */
}

/* Управление размером иконок соцсетей */
.uc-ft401-spacing .t-sociallinks__item {
    width: 60px !important;               /* ← ширина иконки */
    height: 60px !important;              /* ← высота иконки */
}

.uc-ft401-spacing .t-sociallinks__svg {
    width: 60px !important;               /* ← размер SVG иконки */
    height: 60px !important;
}

/* ============================================================
   АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ
   ============================================================ */
@media screen and (max-width: 768px) {
    .uc-ft401-spacing .t455__wrapper {
        padding-left: 30px !important;
        padding-right: 30px !important;
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    .uc-ft401-spacing .t455__title {
        margin-bottom: 20px !important;
    }
    
    .uc-ft401-spacing .t455__descr {
        margin-bottom: 30px !important;
    }
    
    .uc-ft401-spacing .t-sociallinks {
        margin-bottom: 30px !important;
    }
    
    .uc-ft401-spacing .t-sociallinks__item {
        width: 50px !important;
        height: 50px !important;
    }
    
    .uc-ft401-spacing .t-sociallinks__svg {
        width: 50px !important;
        height: 50px !important;
    }
}

/* ============================================================
   АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ
   ============================================================ */
@media screen and (max-width: 480px) {
    .uc-ft401-spacing .t455__wrapper {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    .uc-ft401-spacing .t455__title {
        margin-bottom: 15px !important;
        font-size: 24px !important;        /* опционально: уменьшить шрифт на телефонах */
    }
    
    .uc-ft401-spacing .t455__descr {
        margin-bottom: 20px !important;
        font-size: 14px !important;        /* опционально: уменьшить шрифт на телефонах */
    }
    
    .uc-ft401-spacing .t-sociallinks {
        margin-bottom: 20px !important;
    }
    
    .uc-ft401-spacing .t-sociallinks__item {
        width: 40px !important;
        height: 40px !important;
    }
    
    .uc-ft401-spacing .t-sociallinks__svg {
        width: 40px !important;
        height: 40px !important;
    }
    
    .uc-ft401-spacing .t-sociallinks__wrapper {
        gap: 10px !important;
    }
    
    .uc-ft401-spacing .t455__bottomtext {
        font-size: 11px !important;        /* опционально: уменьшить шрифт на телефонах */
    }
}