    /* 1. СТИЛИ КНОПКИ "ЛИНЕЙКА РАЗМЕРОВ" И ВЫРАВНИВАНИЯ НА TILDA */
    .size-guide-btn {
        background-color: #ffffff !important;
        color: #000000 !important;
        border: 1px solid rgba(0, 0, 0, 0.125) !important;
        padding: 4px 10px !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        cursor: pointer !important;
        transition: all 0.2s ease-in-out !important;
        border-radius: 3px !important;
        width: auto !important;
        height: auto !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        vertical-align: middle !important;
        box-shadow: none !important;
        font-family: inherit !important;
    }

    .size-guide-btn:hover {
        border-color: #000000 !important;
    }

    /* Оформление строки опции "Размер" на Tilda (на десктопах) */
    .js-product-edition-option[data-edition-option-id="Размер"] .js-product-edition-option-name,
    .js-product-edition-option[data-edition-option-id="размер"] .js-product-edition-option-name {
        display: flex !important;
        align-items: center !important;
        border-bottom: none !important;
        justify-content: space-between !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 8px !important;
    }

    /* Поведение строки опции на мобильных устройствах */
    @media (max-width: 768px) {
        .js-product-edition-option[data-edition-option-id="Размер"] .js-product-edition-option-name,
        .js-product-edition-option[data-edition-option-id="размер"] .js-product-edition-option-name {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            width: 100% !important;
            box-sizing: border-box !important;
        }
    }


    /* 2. СТИЛИ МОДАЛЬНОГО ОКНА С ПОДДЕРЖКОЙ ПЛАВНОЙ АНИМАЦИИ */
    .sg-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sg-modal.is-open {
        opacity: 1;
        visibility: visible;
    }

    .sg-modal-overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        cursor: pointer;
    }

    .sg-modal-content {
        position: relative;
        background: #ffffff;
        padding: 0; /* Отступы регулирует внутренний контейнер .size-guide */
        max-width: 1050px;
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        box-sizing: border-box;
        transform: scale(0.9);
        transition: transform 0.3s ease;
        z-index: 2;
    }

    .sg-modal.is-open .sg-modal-content {
        transform: scale(1);
    }

    .sg-modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        line-height: 1;
        color: #8c8c8c;
        padding: 5px;
        transition: color 0.2s;
        z-index: 10;
        box-shadow: none;
    }

    .sg-modal-close:hover {
        color: #000000;
        background-color: unset;
    }

    /* Шторка выезжает снизу на 70% экрана на мобильных (как в WB) */
    @media (max-width: 768px) {
        .sg-modal {
            align-items: flex-end;
        }

        .sg-modal-content {
            width: 100% !important;
            max-width: 100% !important;
            height: 70vh !important;
            max-height: 70vh !important;
            border-radius: 12px 12px 0 0 !important;
            transform: translateY(100%) !important;
            padding: 0 !important;
            box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease-out !important;
        }

        .sg-modal.is-open .sg-modal-content {
            transform: translateY(0) !important;
        }

        .sg-modal-close {
            top: 12px;
            right: 12px;
            font-size: 24px;
        }
    }


    /* 3. ОФОРМЛЕНИЕ КОНТЕНТА ВНУТРИ ПОПАПА */
    .size-guide {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        color: #222222;
        padding: 30px; /* Отступы внутреннего контейнера */
        box-sizing: border-box;
    }

    .sg-header {
        text-align: center;
        margin-bottom: 20px;
        padding-right: 40px; /* Отступ справа, чтобы текст не пересекался с крестиком */
    }

    .sg-header h2 {
        font-size: 1.3rem;
        margin: 0;
        font-weight: 600;
        color: #222222;
        text-transform: none;
    }

    /* Двухколоночный грид */
    .sg-layout {
        display: flex;
        gap: 40px; /* Свободный зазор */
    }

    .sg-col-calculator {
        flex: 1;
        max-width: 300px;
    }

    .sg-col-tables {
        flex: 1.5;
        min-width: 0;
    }

    /* Комфортный калькулятор */
    .calculator-box {
        border: 1px solid #e0e0e0;
        padding: 25px; /* Просторные отступы */
        background-color: #fafafa;
        box-sizing: border-box;
    }

    .calculator-box h3 {
        font-size: 16px;
        letter-spacing: 1px;
        margin-bottom: 20px;
        font-weight: 600;
        color: #222222;
        margin-top: 0;
    }

    .calc-field {
        margin-bottom: 15px;
    }

    .calc-field label {
        display: block;
        font-size: 11px;
        color: #666;
        margin-bottom: 5px;
        font-weight: 500;
    }

    .calc-field input {
        width: 100% !important;
        padding: 10px !important; /* Удобные поля ввода */
        border: 1px solid #ccc !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
        color: #222222 !important;
        background-color: #ffffff !important;
    }

    /* Результат подбора в фирменном шалфейном стиле */
    .calc-result {
        margin-top: 20px !important;
        font-weight: bold !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        padding: 12px !important;
        border-radius: 4px !important;
        background-color: #E3EAE2 !important; 
        border: 1px solid #C9D4C7 !important;
        color: #2F3D2E !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    /* Навигация вкладок */
    .sg-tabs-nav {
        display: flex;
        gap: 20px;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 20px;
    }

    .tab-btn {
        background: none !important;
        border: none !important;
        padding: 10px 0 !important; /* Просторные вкладки */
        font-size: 13px !important;   /* Крупный шрифт */
        letter-spacing: 1px !important;
        cursor: pointer !important;
        color: #888 !important;
        position: relative !important;
        text-transform: none !important;
        box-shadow: none !important;
        font-family: inherit !important;
    }

    .tab-btn.active {
        color: #000000 !important;
        font-weight: bold !important;
    }

    .tab-btn.active::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #000000;
    }

    .tab-btn:hover,
    .tab-btn:focus {
        color: #000000 !important;
        background-color: unset !important;
    }

    .tab-content {
        display: none;
    }

    .tab-content.active {
        display: block;
    }

    /* Горизонтальная прокрутка таблиц */
    .sg-table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 15px;
    }

    /* Стили таблиц (убираем вертикальные рамки) */
    .size-table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 13px !important; /* Крупный шрифт для таблицы */
        border: none !important;
        margin: 0 !important;
    }

    .size-table th,
    .size-table td {
        padding: 12px !important; /* Просторные ячейки */
        text-align: left !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid #eee !important;
        white-space: nowrap !important;
        color: #333333 !important;
        box-sizing: border-box !important;
    }

    .size-table th {
        color: #888 !important;
        font-weight: normal !important;
    }

    /* Липкая фиксация первой колонки при скролле (Размеры) */
    .sg-modal .size-table tr th:first-child,
    .sg-modal .size-table tr td:first-child {
        position: -webkit-sticky !important;
        position: sticky !important;
        left: 0 !important;
        background-color: #ffffff !important;
        z-index: 3 !important;
        text-align: left !important;
        font-size: 14px !important; /* Крупный шрифт названий строк */
        font-weight: 500 !important;
        color: #222222 !important;
        white-space: normal !important;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.03) !important;
        box-sizing: border-box !important;
        padding-left: 4px !important;
        padding-right: 8px !important;
    }

    .table-note {
        font-size: 11px;
        color: #888;
        margin-top: 15px;
        font-style: italic;
        line-height: 1.3;
    }

    /* Адаптивность для мобильных */
    @media (max-width: 768px) {
        .sg-layout {
            flex-direction: column-reverse;
            gap: 30px;
        }

        .sg-header {
            text-align: left;
            margin-bottom: 20px;
            padding-right: 40px;
        }

        .sg-col-calculator {
            max-width: 100%;
        }

        .size-guide {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
            color: #333;
        }

        /* Настройка липкого столбца на мобильных */
        .sg-modal .size-table tr th:first-child,
        .sg-modal .size-table tr td:first-child {
            position: -webkit-sticky !important;
            position: sticky !important;
            left: 0 !important;
            background-color: #ffffff !important;
            z-index: 3 !important;
            text-align: left !important;
            font-size: 10px !important;
            font-weight: 500 !important;
            color: #222222 !important;
            min-width: 85px !important;
            max-width: 85px !important;
            width: 85px !important;
            white-space: normal !important;
            box-shadow: 2px 0 4px rgba(0, 0, 0, 0.03) !important;
            box-sizing: border-box !important;
            padding-left: 4px !important;
            padding-right: 8px !important;
        }
    }








    .t-descr_xxs {
        font-size: 16px;
    }
    
    .t744__descr {
        font-size: 17px !important;
    }
    @media (max-width: 980px) {
        .t744__descr {
            font-size: 16px !important;
        }
    }
    
    .t-btnflex_md, .t-btn.t-btnflex_md {
        --height: 45px;
        font-size: 15px;
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .t450__rightside {
        margin-top: 0 !important;
    }
    
    .t-menusub__content{
        padding-left: 15px !important;    
    }
    
    .t450__menu__content {
        top: 25px !important;
    }
    
    #rec1191127656 {
        padding-bottom: 80px;
    }
    
    .t280__menu__content .t-menuburger {
        display: none !important;
    }

    .t770 .t-sociallinks__item {
        padding-right: 0 !important;
        padding-left: 10px !important;
    }
    
    .t-sociallinks__item_telegram svg path {
        fill: #0088cc !important;
    }

    .t-sociallinks__item_viber svg path {
        fill: #665CAC !important;
    }

    .t-sociallinks__item_instagram svg path {
        fill: #E1306C !important;
    }

    .t770__topwrapper,
    .t770__bottomwrapper {
        transition: all 0.3s ease-in-out;
    }

    .t770__logowrapper2 {
        position: relative;
        transition: position 0.3s ease-in-out;
    }

    .t770__bottomwrapper .t770__logowrapper2 {
        position: unset;
    }

    .t770__additionalitem-text {
        white-space: nowrap;
    }

    .t770__bottomwrapper {
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        background-color: #fff;
    }

    .t770__list.t-menu__list {
        line-height: 1.4em;
    }

    .t-sociallinks__wrapper {
        flex-wrap: nowrap !important;
    }
    
    div[data-record-type="758"] {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    @media screen and (max-width: 980px) {
        #rec1191136986 .t-menusub__menu .t-menusub__link-item[href="/new"] {
            font-weight: 500 !important;
            color:#e30c0c !important;
        }
    }
    .t794__list a[href="/new"] {
        font-weight: 500 !important;
        color: #e30c0c !important;
    }
    
    @media (max-width: 980px) {
        .t-sociallinks__item a {
            width: 40px !important;
            height: 40px !important;
            margin: 0 !important;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .t-sociallinks__item svg {
            width: 40px !important;
            height: 40px !important;
        }
    }
    
    @media (min-width: 981px) {
        .t770__rightwrapper .t770__additionalwrapper .t770__descr.t770__additionalitem {
            white-space: nowrap;
            visibility: hidden;
        }
        
        .t-sociallinks {
            visibility: hidden;
        }
        .t770__topwrapper.hidden-on-scroll {
            transform: translateY(-100%);
            opacity: 0;
            pointer-events: none;
            transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        }

        .t770__bottomwrapper.sticky-on-scroll {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 9999;
            transition: top 0.3s ease-in-out;
        }

        .t770__bottomwrapper.t-align_center {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: 10px;
            min-height: 60px;
            height: auto !important;
            transition: justify-content 0.3s ease-in-out;
        }

        .t770__bottomwrapper.t-align_center.justify-between-on-scroll {
            justify-content: space-between;
        }

        .t770__bottomwrapper .t770__descr.t770__additionalitem {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 10px;
            white-space: normal;
        }

        .t770__leftwrapper {
            padding-right: 75px !important;
        }
        
        .t770__rightwrapper {
            padding-left: 75px !important;
        }
    }