/* --- 1. ДЕСКТОП И ПЛАНШЕТ ГОРИЗОНТАЛЬНО (от 960px и шире) --- */
/* Широкое меню, отступы по 20px */
@media screen and (min-width: 960px) {
    .fluid-content {
        /* Оставляем твое текущее значение (300px или сколько настроено) */
        width: calc(100vw - 300px) !important; 
        max-width: calc(100vw - 300px) !important;
    }
    .fluid-content > .tn-atom {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
/* --- 2. ПЛАНШЕТ ВЕРТИКАЛЬНО (от 640px до 959px) --- */
/* Узкое меню (210px) + безопасные поля по 10px слева и справа */
@media screen and (min-width: 640px) and (max-width: 959px) {
    .fluid-content {
        /* 100vw минус 210px (меню) минус 10px (слева) минус 10px (справа) = 230px */
        width: calc(100vw - 230px) !important; 
        max-width: calc(100vw - 230px) !important;
    }
    .fluid-content > .tn-atom {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
/* --- 3. ТЕЛЕФОНЫ (до 639px включительно) --- */
/* Меню спрятано, контент на весь экран с безопасными полями по 10px внутри */
@media screen and (max-width: 639px) {
    .fluid-content {
        width: 100vw !important; 
        max-width: 100vw !important;
        left: 0 !important; /* Принудительно прибиваем к левому краю экрана */
    }
    .fluid-content > .tn-atom {
        width: 100% !important;
        padding-left: 10px !important;  /* Внутренний отступ 10px слева */
        padding-right: 10px !important; /* Внутренний отступ 10px справа */
        box-sizing: border-box !important;
    }
}

/* Show slider source blocks only inside their open screenshot popup. */
.t-popup_show .cust-slider-hidden {
 display: block !important;
 visibility: visible !important;
 height: auto !important;
 overflow: visible !important;
}

/* Legacy train image copies overlap the mobile page; the active slider and popup records are separate. */
#rec4404335403,#rec4404335503,#rec4404335603,#rec4404335703,#rec4404335803,#rec4404335903 { display: none !important; }

/* Hide legacy screenshot copies; active sliders and popup records are retained. */
#rec4404273203,#rec4404273303,#rec4404276703,#rec4404276803,#rec4404330103,#rec4404330203,#rec4404330303,#rec4404358103,#rec4404358203,#rec4404358403,#rec4404358503,#rec4404358603,#rec4404366503,#rec4404366603,#rec4404379603,#rec4404379703 { display: none !important; }

/* Wiki_KZ: prevent fixed-width integration text on mobile before first layout. */


@media(max-width:959px){
#rec4404321803 .fluid-content [data-group-id="1771424635163000001"] .tn-molecule{display:flex!important;flex-direction:column!important;gap:20px!important;height:auto!important;min-width:0!important;}
#rec4404321803 .fluid-content [data-group-id="1771424635163000001"] .tn-group{position:relative!important;left:0!important;top:0!important;width:100%!important;max-width:100%!important;height:auto!important;}
#rec4404321803 .fluid-content [data-group-id="1771424635163000001"] .tn-elem[data-elem-type="text"]{position:relative!important;left:0!important;top:0!important;width:100%!important;max-width:100%!important;height:auto!important;flex-shrink:0!important;}
#rec4404321803 .fluid-content [data-group-id="1771424635163000001"] .tn-elem[data-elem-type="shape"]{max-width:100%!important;}
#rec4404321803 .fluid-content [data-group-id="1770993196674000007"] .tn-molecule{display:flex!important;flex-direction:column!important;gap:20px!important;height:auto!important;min-width:0!important;}
#rec4404321803 .fluid-content [data-group-id="1770993196674000007"] .tn-group{position:relative!important;left:0!important;top:0!important;width:100%!important;max-width:100%!important;height:auto!important;}
#rec4404321803 .fluid-content [data-group-id="1770993196674000007"] .tn-elem[data-elem-type="text"]{position:relative!important;left:0!important;top:0!important;width:100%!important;max-width:100%!important;height:auto!important;flex-shrink:0!important;}
#rec4404321803 .fluid-content [data-group-id="1770993196674000007"] .tn-elem[data-elem-type="shape"]{max-width:100%!important;}
}

/* Integration intro and nested groups must not impose an intrinsic minimum width. */
@media(max-width:959px){
#rec4404321803 .fluid-content .tn-group{position:relative!important;left:0!important;top:0!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;}
#rec4404321803 .fluid-content .tn-molecule{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0!important;height:auto!important;gap:20px!important;}
#rec4404321803 .fluid-content .tn-elem[data-elem-type="text"]{position:relative!important;left:0!important;top:0!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;flex-shrink:0!important;}
#rec4404321803 .fluid-content .tn-atom{overflow-wrap:break-word;}
}
