/* Restored from snt-v4-ui-audit-20260926_023608. News-only styles. */

.news-feed{
display:grid;
gap:14px;
}

.news-card,
.news-empty{

padding:18px 20px;

border-radius:20px;

background:
linear-gradient(
145deg,
rgba(8,68,62,.86),
rgba(4,40,43,.91)
);

border:
1px solid rgba(69,226,179,.22);

box-shadow:
0 12px 30px rgba(0,0,0,.22);

}

.news-date{

color:#4ae5ac;

font-size:13px;
font-weight:700;

margin-bottom:9px;

}

.news-text{
font-size:17px;
line-height:1.5;
}

.status{

margin-top:25px;

text-align:center;

font-size:12px;

color:rgba(230,240,237,.36);

}

.dot{
display:inline-block;
width:7px;
height:7px;
border-radius:50%;
background:#43e6a4;
margin-right:5px;
}





/* SNT54_NEWS_SOURCE_START */

.news-card-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
}

.news-card-meta .news-date{
    margin-bottom:0;
}

.news-tz{
    opacity:.48;
    font-weight:500;
    margin-left:2px;
}

.news-source{
    display:inline-flex;
    align-items:center;
    gap:5px;

    flex:0 0 auto;

    padding:4px 8px;

    border-radius:999px;

    background:rgba(255,255,255,.045);

    border:
        1px solid
        rgba(255,255,255,.07);

    color:
        rgba(225,239,237,.66);

    font-size:11px;
    line-height:1;
    font-weight:600;
}

.source-tg-icon{
    width:14px;
    height:14px;

    display:block;

    color:#38aee8;
}

.source-max-icon{
    width:14px;
    height:14px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:4px;

    color:#fff;

    font-size:9px;
    font-weight:800;

    background:
        linear-gradient(
            135deg,
            #655cff,
            #a855f7
        );
}

@media(max-width:480px){

    .news-card-meta{
        gap:8px;
    }

    .news-source{
        padding:4px 7px;
        font-size:10px;
    }

}

/* SNT54_NEWS_SOURCE_END */

/* SNT54_NEWS_IMAGES_START */

.news-gallery{
    display:grid;
    gap:7px;

    margin-top:14px;

    overflow:hidden;

    border-radius:15px;
}

.news-gallery-count-1{
    grid-template-columns:1fr;
}

.news-gallery-count-2{
    grid-template-columns:
        repeat(2,1fr);
}

.news-gallery-count-3,
.news-gallery-count-4{
    grid-template-columns:
        repeat(2,1fr);
}

.news-gallery-item{
    display:block;

    position:relative;

    overflow:hidden;

    min-height:150px;

    border-radius:12px;

    background:
        rgba(0,0,0,.18);
}

.news-gallery-count-1
.news-gallery-item{
    min-height:260px;
}

.news-gallery-item img{
    display:block;

    width:100%;
    height:100%;

    max-height:520px;

    object-fit:cover;

    transition:
        transform .22s ease;
}

.news-gallery-item:hover img{
    transform:scale(1.012);
}

@media(max-width:600px){

    .news-gallery{
        gap:5px;
        margin-top:12px;
    }

    .news-gallery-item{
        min-height:115px;
        border-radius:10px;
    }

    .news-gallery-count-1
    .news-gallery-item{
        min-height:210px;
    }

}

/* SNT54_NEWS_IMAGES_END */

/* SNT54_NEWS_LIGHTBOX_START */

/* =========================================================
   ПРЕВЬЮ ИЗОБРАЖЕНИЙ В НОВОСТЯХ
   ========================================================= */

.news-gallery{
    display:grid;
    gap:7px;

    margin-top:14px;

    border-radius:15px;
    overflow:hidden;
}

/* Одна фотография — компактное превью */
.news-gallery-count-1{
    grid-template-columns:1fr;
}

.news-gallery-count-1 .news-gallery-item{
    height:clamp(190px, 30vw, 330px);
}

/* Две фотографии */
.news-gallery-count-2{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.news-gallery-count-2 .news-gallery-item{
    height:clamp(150px, 22vw, 260px);
}

/* 3–4 фотографии */
.news-gallery-count-3,
.news-gallery-count-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.news-gallery-count-3 .news-gallery-item,
.news-gallery-count-4 .news-gallery-item{
    height:clamp(130px, 20vw, 230px);
}

.news-gallery-item{
    position:relative;

    display:block;

    min-width:0;

    overflow:hidden;

    border-radius:13px;

    background:
        rgba(0,0,0,.22);

    cursor:zoom-in;

    -webkit-tap-highlight-color:transparent;

    box-shadow:
        inset 0 0 0 1px
        rgba(255,255,255,.045);
}

.news-gallery-item::after{
    content:"";

    position:absolute;
    inset:0;

    pointer-events:none;

    background:
        linear-gradient(
            180deg,
            transparent 68%,
            rgba(0,0,0,.12)
        );
}

.news-gallery-item img{
    display:block;

    width:100%;
    height:100%;

    object-fit:cover;

    transition:
        transform .24s ease,
        filter .24s ease;
}

@media (hover:hover){

    .news-gallery-item:hover img{
        transform:scale(1.018);
        filter:brightness(1.03);
    }

}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.snt-lightbox{
    position:fixed;
    z-index:50000;

    inset:0;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:
        max(16px, env(safe-area-inset-top))
        max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));

    background:
        rgba(0,10,15,.88);

    backdrop-filter:
        blur(18px) saturate(120%);

    -webkit-backdrop-filter:
        blur(18px) saturate(120%);

    opacity:0;
    visibility:hidden;

    transition:
        opacity .20s ease,
        visibility .20s ease;
}

.snt-lightbox.is-open{
    opacity:1;
    visibility:visible;
}

body.snt-lightbox-open{
    overflow:hidden !important;
}


/* Само изображение */

.snt-lightbox-stage{
    position:relative;

    width:100%;
    height:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    min-width:0;
    min-height:0;
}

.snt-lightbox-image{
    display:block;

    width:auto;
    height:auto;

    max-width:
        min(
            96vw,
            1600px
        );

    max-height:
        calc(
            100dvh
            - 48px
            - env(safe-area-inset-top)
            - env(safe-area-inset-bottom)
        );

    object-fit:contain;

    border-radius:14px;

    box-shadow:
        0 24px 80px rgba(0,0,0,.55);

    user-select:none;

    -webkit-user-drag:none;
}


/* Закрытие */

.snt-lightbox-close{
    position:absolute;

    z-index:5;

    top:
        max(
            12px,
            env(safe-area-inset-top)
        );

    right:
        max(
            12px,
            env(safe-area-inset-right)
        );

    width:46px;
    height:46px;

    border:1px solid
        rgba(255,255,255,.13);

    border-radius:50%;

    background:
        rgba(4,34,34,.76);

    color:#eef8f5;

    font-size:31px;
    font-weight:300;
    line-height:1;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    backdrop-filter:blur(12px);

    -webkit-backdrop-filter:blur(12px);

    box-shadow:
        0 6px 24px rgba(0,0,0,.25);

    -webkit-tap-highlight-color:transparent;
}


/* Стрелки альбома */

.snt-lightbox-nav{
    position:absolute;

    z-index:4;

    top:50%;

    width:46px;
    height:58px;

    transform:translateY(-50%);

    border:1px solid
        rgba(255,255,255,.10);

    border-radius:16px;

    background:
        rgba(3,30,31,.64);

    color:#e7f4f0;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:38px;
    font-weight:200;

    cursor:pointer;

    backdrop-filter:blur(10px);

    -webkit-backdrop-filter:blur(10px);

    -webkit-tap-highlight-color:transparent;
}

.snt-lightbox-prev{
    left:
        max(
            12px,
            env(safe-area-inset-left)
        );
}

.snt-lightbox-next{
    right:
        max(
            12px,
            env(safe-area-inset-right)
        );
}

.snt-lightbox-nav[hidden]{
    display:none;
}


/* Счётчик для альбома */

.snt-lightbox-counter{
    position:absolute;

    z-index:4;

    left:50%;

    bottom:
        max(
            12px,
            env(safe-area-inset-bottom)
        );

    transform:translateX(-50%);

    padding:6px 11px;

    border-radius:999px;

    background:
        rgba(3,30,31,.68);

    border:1px solid
        rgba(255,255,255,.09);

    color:
        rgba(237,248,245,.76);

    font-size:12px;

    backdrop-filter:blur(10px);

    -webkit-backdrop-filter:blur(10px);
}

.snt-lightbox-counter[hidden]{
    display:none;
}


/* =========================================================
   ТЕЛЕФОН
   ========================================================= */

@media (max-width:600px){

    .news-gallery{
        gap:5px;
        margin-top:11px;
        border-radius:12px;
    }

    .news-gallery-count-1 .news-gallery-item{
        height:
            clamp(
                175px,
                58vw,
                285px
            );
    }

    .news-gallery-count-2 .news-gallery-item,
    .news-gallery-count-3 .news-gallery-item,
    .news-gallery-count-4 .news-gallery-item{
        height:
            clamp(
                105px,
                35vw,
                180px
            );
    }

    .news-gallery-item{
        border-radius:10px;
    }

    .snt-lightbox{
        padding:
            max(10px, env(safe-area-inset-top))
            max(8px, env(safe-area-inset-right))
            max(10px, env(safe-area-inset-bottom))
            max(8px, env(safe-area-inset-left));
    }

    .snt-lightbox-image{
        max-width:96vw;

        max-height:
            calc(
                100dvh
                - 24px
                - env(safe-area-inset-top)
                - env(safe-area-inset-bottom)
            );

        border-radius:9px;
    }

    .snt-lightbox-close{
        width:42px;
        height:42px;

        font-size:27px;
    }

    .snt-lightbox-nav{
        width:40px;
        height:52px;

        font-size:32px;

        border-radius:13px;
    }

}


/* =========================================================
   РАЗВЁРНУТЫЙ ТЕЛЕФОН / РАСКЛАДУШКА
   ========================================================= */

@media
(min-width:601px)
and (max-width:1000px)
and (orientation:landscape){

    .news-gallery-count-1 .news-gallery-item{
        height:
            clamp(
                210px,
                38vh,
                330px
            );
    }

    .snt-lightbox-image{
        max-width:
            calc(
                100vw
                - 110px
            );

        max-height:
            calc(
                100dvh
                - 28px
            );
    }

}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media
(min-width:601px)
and (max-width:1100px)
and (orientation:portrait){

    .news-gallery-count-1 .news-gallery-item{
        height:
            clamp(
                240px,
                43vw,
                360px
            );
    }

}


/* SNT54_NEWS_LIGHTBOX_END */

/* SNT54_NEWS_PEEK_START */

/* =====================================================
   ЕДИНЫЙ ФОРМАТ ПРЕВЬЮ
   Все исходники: portrait / landscape / square
   ===================================================== */

.news-gallery{
    display:grid;
    gap:7px;
    margin-top:13px;

    overflow:hidden;

    border-radius:14px;
}

.news-gallery-count-1{
    grid-template-columns:1fr;
}

.news-gallery-count-2,
.news-gallery-count-3,
.news-gallery-count-4{
    grid-template-columns:
        repeat(2,minmax(0,1fr));
}

.news-gallery-item{
    position:relative;

    display:block;

    width:100%;

    /* Все превью одинаковой геометрии */
    aspect-ratio:16 / 10;

    height:auto !important;
    min-height:0 !important;

    overflow:hidden;

    border-radius:12px;

    background:
        rgba(0,0,0,.22);

    cursor:zoom-in;

    box-shadow:
        inset 0 0 0 1px
        rgba(255,255,255,.055);

    -webkit-tap-highlight-color:
        transparent;
}

.news-gallery-item img{
    display:block;

    width:100%;
    height:100%;

    /* Превью одинаковые, оригинал не меняется */
    object-fit:cover;
    object-position:center;

    image-orientation:from-image;

    transition:
        transform .20s ease,
        filter .20s ease;
}

.news-gallery-item::after{
    content:"";

    position:absolute;
    inset:0;

    pointer-events:none;

    background:
        linear-gradient(
            180deg,
            transparent 72%,
            rgba(0,0,0,.10)
        );
}

@media(hover:hover) and (pointer:fine){

    .news-gallery-item:hover img{
        transform:scale(1.018);
        filter:brightness(1.025);
    }

}


/* =====================================================
   БЫСТРЫЙ ПРЕДПРОСМОТР
   ===================================================== */

.snt-image-peek{
    position:fixed;

    z-index:49000;

    left:50%;
    top:50%;

    transform:
        translate(-50%,-50%)
        scale(.97);

    width:
        min(
            680px,
            calc(100vw - 56px)
        );

    height:
        min(
            68dvh,
            620px
        );

    padding:10px;

    display:flex;
    flex-direction:column;

    border-radius:20px;

    background:
        rgba(4,35,36,.93);

    border:
        1px solid
        rgba(72,229,183,.18);

    box-shadow:
        0 24px 90px
        rgba(0,0,0,.55),
        inset 0 1px 0
        rgba(255,255,255,.04);

    backdrop-filter:
        blur(22px)
        saturate(125%);

    -webkit-backdrop-filter:
        blur(22px)
        saturate(125%);

    opacity:0;
    visibility:hidden;

    pointer-events:none;

    transition:
        opacity .16s ease,
        transform .16s ease,
        visibility .16s ease;
}

.snt-image-peek.is-open{
    opacity:1;
    visibility:visible;

    transform:
        translate(-50%,-50%)
        scale(1);
}


/* На desktop окно не перехватывает мышь */
@media(hover:hover) and (pointer:fine){

    .snt-image-peek{
        pointer-events:none;
    }

}


/* На touch можно нажать Развернуть */
@media(hover:none), (pointer:coarse){

    .snt-image-peek.is-open{
        pointer-events:auto;
    }

}


.snt-image-peek-picture{
    flex:1 1 auto;

    min-width:0;
    min-height:0;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;

    border-radius:14px;

    background:
        rgba(0,0,0,.30);
}

.snt-image-peek-picture img{
    display:block;

    width:100%;
    height:100%;

    /*
     * В быстром просмотре изображение уже
     * показывается ЦЕЛИКОМ.
     */
    object-fit:contain;

    image-orientation:from-image;

    user-select:none;
    -webkit-user-drag:none;
}


.snt-image-peek-actions{
    flex:0 0 auto;

    display:none;

    align-items:center;
    justify-content:center;

    gap:9px;

    padding-top:9px;
}


.snt-image-peek-expand,
.snt-image-peek-close{

    min-height:40px;

    border-radius:12px;

    border:
        1px solid
        rgba(255,255,255,.09);

    color:
        rgba(238,248,245,.92);

    background:
        rgba(255,255,255,.055);

    font-family:inherit;

    font-size:13px;

    cursor:pointer;

    -webkit-tap-highlight-color:
        transparent;
}

.snt-image-peek-expand{
    flex:1 1 auto;

    padding:0 18px;

    color:#66e8bb;

    border-color:
        rgba(79,230,181,.18);

    background:
        rgba(19,145,109,.13);
}

.snt-image-peek-close{
    width:44px;
    flex:0 0 44px;

    font-size:22px;
}


/* На телефоне показываем кнопки */
@media(hover:none), (pointer:coarse){

    .snt-image-peek{

        width:
            calc(
                100vw
                - 22px
                - env(safe-area-inset-left)
                - env(safe-area-inset-right)
            );

        height:
            min(
                72dvh,
                650px
            );

        padding:8px;

        border-radius:17px;
    }

    .snt-image-peek-actions{
        display:flex;
    }

}


/* Телефон */
@media(max-width:600px){

    .news-gallery{
        gap:5px;
        margin-top:11px;
        border-radius:12px;
    }

    .news-gallery-item{
        border-radius:10px;
    }

}


/* Планшет / раскладушка */
@media
(min-width:601px)
and
(max-width:1100px){

    .snt-image-peek{
        width:min(
            82vw,
            760px
        );
    }

}


/* Горизонтальный телефон */
@media
(max-height:550px)
and
(orientation:landscape){

    .snt-image-peek{
        height:
            calc(
                100dvh
                - 18px
            );

        width:
            min(
                78vw,
                820px
            );
    }

}


/* SNT54_NEWS_PEEK_END */

/* SNT54_COMPACT_NEWS_START */

/* -----------------------------------------------------
   КОМПАКТНЫЕ ПРЕВЬЮ ФОТО
   ----------------------------------------------------- */

.news-gallery{
    margin-top:10px !important;
}

.news-gallery-item{
    aspect-ratio:auto !important;

    height:
        clamp(
            145px,
            15vw,
            170px
        ) !important;

    min-height:0 !important;
}

.news-gallery-count-2 .news-gallery-item,
.news-gallery-count-3 .news-gallery-item,
.news-gallery-count-4 .news-gallery-item{
    height:
        clamp(
            105px,
            11vw,
            130px
        ) !important;
}

.news-gallery-item img{
    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center;

    image-orientation:from-image;
}


/* -----------------------------------------------------
   ДЛИННЫЙ ТЕКСТ
   ----------------------------------------------------- */

.news-text.snt-text-collapsed{
    display:-webkit-box;

    -webkit-box-orient:vertical;
    -webkit-line-clamp:4;

    overflow:hidden;
}

.news-text-toggle{
    display:none;

    margin-top:8px;
    padding:0;

    border:0;
    background:none;

    color:#55e3b0;

    font:inherit;
    font-size:12px;
    font-weight:600;

    cursor:pointer;

    -webkit-tap-highlight-color:
        transparent;
}

.news-text-toggle.is-visible{
    display:inline-flex;
}


/* -----------------------------------------------------
   АДАПТИВНАЯ ВИДИМОСТЬ НОВОСТЕЙ
   Количество карточек определяет news-legacy.js по viewport.
   ----------------------------------------------------- */

.news-card.snt-news-hidden{
    display:none !important;
}


/* -----------------------------------------------------
   БОЛЬШАЯ КНОПКА РАЗВЕРНУТЬ
   ----------------------------------------------------- */

.snt-news-more{
    width:100%;

    min-height:52px;

    margin-top:15px;
    padding:0 20px;

    border-radius:16px;

    border:
        1px solid
        rgba(73,231,181,.23);

    background:
        linear-gradient(
            145deg,
            rgba(20,156,117,.23),
            rgba(6,71,64,.32)
        );

    color:#64eabc;

    font-family:inherit;

    font-size:14px;
    font-weight:650;

    cursor:pointer;

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.04),
        0 8px 24px
        rgba(0,0,0,.12);

    transition:
        transform .14s ease,
        background .18s ease;
}

.snt-news-more:hover{
    background:
        linear-gradient(
            145deg,
            rgba(24,181,133,.28),
            rgba(7,83,72,.36)
        );
}

.snt-news-more:active{
    transform:scale(.985);
}


/* -----------------------------------------------------
   МОБИЛЬНЫЙ
   ----------------------------------------------------- */

@media(max-width:600px){

    .news-gallery-item{
        height:135px !important;
    }

    .news-gallery-count-2 .news-gallery-item,
    .news-gallery-count-3 .news-gallery-item,
    .news-gallery-count-4 .news-gallery-item{
        height:105px !important;
    }

    .news-text.snt-text-collapsed{
        -webkit-line-clamp:3;
    }

    .snt-news-more{
        min-height:50px;

        margin-top:12px;

        border-radius:14px;

        font-size:14px;
    }

}


/* -----------------------------------------------------
   РАСКЛАДУШКА / ГОРИЗОНТАЛЬНЫЙ ТЕЛЕФОН
   ----------------------------------------------------- */

@media
(max-height:650px)
and
(orientation:landscape){

    .news-gallery-item{
        height:120px !important;
    }

    .news-text.snt-text-collapsed{
        -webkit-line-clamp:2;
    }

}


/* SNT54_COMPACT_NEWS_END */

/* SNT54_NEWS_VIDEO_V1 */

.news-gallery-video{
    position:relative;
    display:block;

    width:100%;
    height:100%;

    min-height:0;

    padding:0;
    margin:0;

    overflow:hidden;

    border:0;
    border-radius:12px;

    background:#06191a;

    cursor:pointer;
}

.news-gallery-video video{
    display:block;

    width:100%;
    height:100%;

    object-fit:cover;
}

.news-video-play{
    position:absolute;

    left:50%;
    top:50%;

    transform:
        translate(-50%,-50%);

    width:52px;
    height:52px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding-left:4px;

    border-radius:50%;

    background:
        rgba(2,25,27,.72);

    border:
        1px solid
        rgba(255,255,255,.25);

    color:white;

    font-size:20px;

    backdrop-filter:blur(8px);
}

.snt-video-viewer{
    position:fixed;
    z-index:60000;

    inset:0;

    display:none;

    align-items:center;
    justify-content:center;

    padding:
        max(12px,env(safe-area-inset-top))
        max(12px,env(safe-area-inset-right))
        max(12px,env(safe-area-inset-bottom))
        max(12px,env(safe-area-inset-left));

    background:
        rgba(0,8,12,.91);

    backdrop-filter:blur(16px);
}

.snt-video-viewer.is-open{
    display:flex;
}

.snt-video-stage{
    position:relative;

    display:flex;
    align-items:center;
    justify-content:center;

    width:min(94vw,1400px);
    height:min(90dvh,900px);
}

.snt-video-player{
    display:block;

    max-width:100%;
    max-height:100%;

    width:auto;
    height:auto;

    border-radius:14px;

    background:#000;
}

.snt-video-close{
    position:absolute;

    right:6px;
    top:6px;

    width:44px;
    height:44px;

    border-radius:50%;

    border:
        1px solid
        rgba(255,255,255,.18);

    background:
        rgba(4,30,31,.78);

    color:white;

    font-size:28px;

    cursor:pointer;
}

body.snt-video-open{
    overflow:hidden !important;
}

/* делаем видео-плитки той же высоты, что фото */

.news-gallery-count-1 .news-gallery-video{
    height:170px;
}

.news-gallery-count-2 .news-gallery-video,
.news-gallery-count-3 .news-gallery-video,
.news-gallery-count-4 .news-gallery-video{
    height:130px;
}

@media(max-width:600px){

    .news-gallery-count-1 .news-gallery-video{
        height:135px;
    }

    .news-gallery-count-2 .news-gallery-video,
    .news-gallery-count-3 .news-gallery-video,
    .news-gallery-count-4 .news-gallery-video{
        height:105px;
    }
}



/* SNT54_NEWS_PDF_V1 */

.news-gallery-pdf{
    grid-column:1 / -1;

    width:100%;
    min-height:72px;

    display:flex;
    align-items:center;

    gap:13px;

    padding:11px 13px;

    border-radius:13px;

    border:
        1px solid
        rgba(255,255,255,.075);

    background:
        rgba(0,0,0,.14);

    color:inherit;

    text-align:left;

    cursor:pointer;

    font-family:inherit;

    -webkit-tap-highlight-color:
        transparent;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .12s ease;
}

.news-gallery-pdf:hover{
    background:
        rgba(255,255,255,.045);

    border-color:
        rgba(71,226,180,.18);
}

.news-gallery-pdf:active{
    transform:scale(.992);
}


.news-pdf-icon{
    flex:0 0 46px;

    width:46px;
    height:54px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:8px;

    background:
        linear-gradient(
            145deg,
            #d94141,
            #8f1f2a
        );

    color:white;

    font-size:11px;
    font-weight:800;

    letter-spacing:.04em;

    box-shadow:
        0 5px 14px
        rgba(0,0,0,.20);
}


.news-pdf-info{
    flex:1 1 auto;

    min-width:0;

    display:flex;
    flex-direction:column;

    gap:4px;
}


.news-pdf-name{
    overflow:hidden;

    white-space:nowrap;

    text-overflow:ellipsis;

    color:
        rgba(242,249,247,.94);

    font-size:13px;
    font-weight:600;
}


.news-pdf-meta{
    color:
        rgba(216,235,230,.52);

    font-size:11px;
}


.news-pdf-open{
    flex:0 0 auto;

    color:#58e5b4;

    font-size:12px;
    font-weight:600;
}


/* ===== PDF OVERLAY ===== */

.snt-pdf-viewer{
    position:fixed;

    z-index:61000;

    inset:0;

    display:none;

    align-items:center;
    justify-content:center;

    padding:18px;

    background:
        rgba(0,8,13,.91);

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);
}


.snt-pdf-viewer.is-open{
    display:flex;
}


.snt-pdf-stage{
    width:
        min(
            94vw,
            1200px
        );

    height:
        min(
            92dvh,
            950px
        );

    display:flex;

    flex-direction:column;

    overflow:hidden;

    border-radius:17px;

    border:
        1px solid
        rgba(255,255,255,.10);

    background:#09272a;

    box-shadow:
        0 30px 100px
        rgba(0,0,0,.55);
}


.snt-pdf-head{
    flex:0 0 52px;

    display:flex;
    align-items:center;

    gap:12px;

    padding:
        0 8px
        0 17px;

    border-bottom:
        1px solid
        rgba(255,255,255,.07);
}


.snt-pdf-title{
    flex:1 1 auto;

    min-width:0;

    overflow:hidden;

    white-space:nowrap;

    text-overflow:ellipsis;

    color:
        rgba(240,249,246,.88);

    font-size:13px;
    font-weight:600;
}


.snt-pdf-close{
    flex:0 0 40px;

    width:40px;
    height:40px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:0;

    border-radius:50%;

    background:
        rgba(255,255,255,.055);

    color:white;

    font-size:25px;

    cursor:pointer;
}


.snt-pdf-frame{
    flex:1 1 auto;

    width:100%;
    min-height:0;

    border:0;

    background:white;
}


body.snt-pdf-open{
    overflow:hidden !important;
}


@media(max-width:600px){

    .news-gallery-pdf{
        min-height:65px;

        gap:10px;

        padding:9px 10px;
    }

    .news-pdf-icon{
        flex-basis:40px;

        width:40px;
        height:47px;

        font-size:10px;
    }

    .news-pdf-name{
        font-size:12px;
    }

    .news-pdf-open{
        font-size:11px;
    }

}

/* SNT54_NEWS_PDF_END */

/* News page/card styling from tuned UI */
/* =========================================================
   NEWS PAGE
   ========================================================= */

body > main,
#news{
    position:relative;

    z-index:5;

    width:
        min(
            720px,
            calc(100% - 36px)
        ) !important;

    max-width:720px !important;

    margin:
        4px auto 0 !important;

    padding:
        8px 0
        78px !important;

    box-sizing:border-box;
}


#news > h1,
#news > h2,
body > main > h1,
body > main > h2{
    margin:
        0 0 17px !important;

    color:
        rgba(244,249,248,.96);

    font-size:
        clamp(
            20px,
            2vw,
            26px
        );

    font-weight:700;
}


/* existing news cards */

.news-feed{
    display:flex !important;

    flex-direction:column;

    gap:12px !important;
}


.news-card{
    border:
        1px solid
        rgba(63,223,176,.17) !important;

    border-radius:
        18px !important;

    background:
        linear-gradient(
            145deg,
            rgba(3,59,55,.86),
            rgba(2,42,43,.88)
        ) !important;

    box-shadow:
        0 14px 34px
        rgba(0,0,0,.15),
        inset 0 1px 0
        rgba(255,255,255,.025);

    backdrop-filter:
        blur(13px);

    -webkit-backdrop-filter:
        blur(13px);
}


.news-card:hover{
    border-color:
        rgba(76,234,188,.25) !important;
}


.news-time,
.news-date{
    color:#48e0ae !important;

    font-weight:650;
}


.news-source{
    background:
        rgba(2,42,43,.66) !important;

    border:
        1px solid
        rgba(85,225,187,.12) !important;
}


/* Don't touch media functionality */

.news-gallery img,
.news-gallery video{
    display:block;
}




/* Title requested for the restored news module. */
.news-page-title{
    width:100%;
    margin:0 0 10px 0!important;
    padding:0!important;
    color:rgba(244,249,248,.96)!important;
    font-size:15px!important;
    line-height:1.2!important;
    font-weight:700!important;
    letter-spacing:0!important;
    text-align:left!important;
}

/* Keep the restored module self-contained inside current V4 section. */
.v4-news-section .news-feed{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
}

/* Current shell uses news-mode, old tuned mobile CSS used v4-news-page. */
@media(max-width:768px){
    body.news-mode .v4-news-section{
        box-sizing:border-box!important;
    }
    body.news-mode .v4-news-section .news-feed{
        width:auto!important;
        max-width:none!important;
        margin-left:6px!important;
        margin-right:6px!important;
        padding-left:0!important;
        padding-right:0!important;
        box-sizing:border-box!important;
    }
    body.news-mode .v4-news-section .news-card{
        width:100%!important;
        max-width:none!important;
        margin-left:0!important;
        margin-right:0!important;
        box-sizing:border-box!important;
    }
    body.news-mode .news-source,
    body.news-mode .news-card-source,
    body.news-mode .news-source-link,
    body.news-mode .news-origin,
    body.news-mode .source-badge,
    body.news-mode .telegram-source,
    body.news-mode .news-telegram,
    body.news-mode .news-telegram-link,
    body.news-mode .news-card a[href*="t.me"],
    body.news-mode .news-card a[href*="telegram"]{
        display:none!important;
    }
}

/* SNT54 V4 — unified shell compatibility */
.news-page-title{
  margin:0 0 10px;
  padding:0 2px;
  color:#f3f7f5;
  font:700 15px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing:0;
  text-align:left;
}


/* SNT54 NEWS V2 — canonical compact feed */
.news-source{display:none!important}
.news-card-meta{justify-content:flex-start!important}
.news-text-toggle{margin-top:9px!important;color:#63e9b8!important;font-size:13px!important;font-weight:700!important}
.snt-news-more{margin-top:14px!important}

/* =====================================================
   SNT54 FOLDABLE / SHORT LANDSCAPE NEWS
   Для раскладушек и телефонов с небольшой высотой экрана.
   ===================================================== */

@media (max-height:650px) and (orientation:landscape){

    .v4-news-section .news-page-title{
        margin-bottom:6px !important;
        font-size:13px !important;
        line-height:1.15 !important;
    }

    .v4-news-section .news-feed{
        gap:8px !important;
    }

    .v4-news-section .news-card,
    .v4-news-section .news-empty{
        padding:11px 13px !important;
        border-radius:14px !important;
    }

    .v4-news-section .news-card-meta{
        margin-bottom:6px !important;
        gap:8px !important;
    }

    .v4-news-section .news-date,
    .v4-news-section .news-time{
        font-size:11px !important;
    }

    .v4-news-section .news-text{
        font-size:13px !important;
        line-height:1.35 !important;
    }

    .v4-news-section .news-text.snt-text-collapsed{
        -webkit-line-clamp:2 !important;
    }

    .v4-news-section .news-text-toggle{
        margin-top:5px !important;
        font-size:11px !important;
    }

    .v4-news-section .news-gallery{
        margin-top:8px !important;
        gap:5px !important;
    }

    .v4-news-section .news-gallery-item{
        height:105px !important;
    }

    .v4-news-section .news-gallery-count-2 .news-gallery-item,
    .v4-news-section .news-gallery-count-3 .news-gallery-item,
    .v4-news-section .news-gallery-count-4 .news-gallery-item{
        height:88px !important;
    }

    .v4-news-section .snt-news-more{
        min-height:38px !important;
        margin-top:8px !important;
        padding:0 14px !important;
        border-radius:12px !important;
        font-size:12px !important;
    }

}


/*
 * Очень низкий landscape:
 * Flip/Fold, split-screen и некоторые браузеры
 * с большой верхней/нижней панелью.
 */
@media (max-height:480px) and (orientation:landscape){

    .v4-news-section .news-feed{
        gap:6px !important;
    }

    .v4-news-section .news-card,
    .v4-news-section .news-empty{
        padding:9px 11px !important;
    }

    .v4-news-section .news-text{
        font-size:12px !important;
        line-height:1.3 !important;
    }

    .v4-news-section .news-gallery-item{
        height:82px !important;
    }

    .v4-news-section .news-gallery-count-2 .news-gallery-item,
    .v4-news-section .news-gallery-count-3 .news-gallery-item,
    .v4-news-section .news-gallery-count-4 .news-gallery-item{
        height:70px !important;
    }

    .v4-news-section .snt-news-more{
        min-height:34px !important;
        margin-top:6px !important;
    }

}

/* SNT54_NEWS_CANONICAL_FINAL_V1 */
.news-gallery-pdf.has-preview{
    min-height:138px;

    display:grid;
    grid-template-columns:
        104px
        minmax(0,1fr)
        auto;

    align-items:center;
    gap:13px;

    padding:
        0
        13px
        0
        0;

    overflow:hidden;
}

.news-gallery-pdf.has-preview
.news-pdf-preview{
    display:block;

    width:104px;
    height:138px;

    align-self:stretch;

    object-fit:cover;
    object-position:
        top center;

    background:#fff;
}

.news-gallery-pdf.has-preview
.news-pdf-icon{
    display:none;
}

.news-gallery-pdf.has-preview
.news-pdf-info{
    padding:
        10px
        0;
}

@media(max-width:600px){

    .news-gallery-pdf.has-preview{
        min-height:116px;

        grid-template-columns:
            86px
            minmax(0,1fr)
            auto;

        gap:9px;

        padding:
            0
            9px
            0
            0;
    }

    .news-gallery-pdf.has-preview
    .news-pdf-preview{
        width:86px;
        height:116px;
    }

}

.snt-news-more{
    background:
        linear-gradient(
            145deg,
            rgba(20,156,117,.40),
            rgba(6,71,64,.50)
        ) !important;

    border-color:
        rgba(73,231,181,.34)
        !important;

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.055),
        0 9px 24px
        rgba(0,0,0,.13)
        !important;

    backdrop-filter:
        blur(10px)
        saturate(125%);

    -webkit-backdrop-filter:
        blur(10px)
        saturate(125%);
}

.snt-news-more:hover{
    background:
        linear-gradient(
            145deg,
            rgba(26,174,129,.48),
            rgba(8,86,76,.58)
        ) !important;

    border-color:
        rgba(92,240,194,.45)
        !important;
}

/*
 * Независимая кнопка.
 * НЕ имеет классов v4-menu-button
 * и НЕ имеет data-v4-menu-open,
 * поэтому pinned-menu CSS её не скрывает.
 */

.snt-scroll-top-v2{
    position:fixed !important;

    right:24px !important;
    bottom:24px !important;

    left:auto !important;
    top:auto !important;

    z-index:5000 !important;

    width:52px !important;
    height:58px !important;

    min-width:52px !important;
    min-height:58px !important;

    margin:0 !important;
    padding:5px 3px 6px !important;

    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;

    gap:1px !important;

    /*
     * Те же параметры стекла,
     * что у hamburger.
     */
    border:
        1px solid
        rgba(126,255,216,.18)
        !important;

    border-radius:
        16px !important;

    background:
        rgba(7,77,69,.42)
        !important;

    backdrop-filter:
        blur(16px)
        saturate(145%);

    -webkit-backdrop-filter:
        blur(16px)
        saturate(145%);

    color:
        #56e6ad !important;

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.08),
        0 10px 24px
        rgba(0,0,0,.18)
        !important;

    cursor:pointer;

    opacity:0;
    visibility:hidden;
    pointer-events:none;

    transform:
        translateY(10px);

    transition:
        opacity .20s ease,
        transform .20s ease,
        visibility .20s ease,
        background .18s ease,
        border-color .18s ease;

    -webkit-tap-highlight-color:
        transparent;
}


.snt-scroll-top-v2.is-visible{
    opacity:1;
    visibility:visible;
    pointer-events:auto;

    transform:
        translateY(0);
}


.snt-scroll-top-v2:hover{
    background:
        rgba(30,124,102,.48)
        !important;

    border-color:
        rgba(126,255,216,.30)
        !important;
}


.snt-scroll-top-v2 svg{
    display:block;

    width:24px;
    height:24px;

    flex:0 0 24px;

    fill:none;
    stroke:currentColor;

    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}


.snt-scroll-top-v2-label{
    display:block;

    margin:0;
    padding:0;

    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;

    font-size:8px;
    font-weight:650;

    line-height:1;

    letter-spacing:0;

    color:
        rgba(228,250,243,.82);

    white-space:nowrap;
}


/*
 * Пока открыто выезжающее меню,
 * кнопку временно скрываем.
 */
body.v4-menu-open
.snt-scroll-top-v2{
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
}


@media(max-width:768px){

    .snt-scroll-top-v2{
        right:16px !important;

        bottom:
            max(
                16px,
                calc(
                    env(safe-area-inset-bottom)
                    + 12px
                )
            ) !important;

        width:50px !important;
        height:56px !important;

        min-width:50px !important;
        min-height:56px !important;
    }

}

/*
 * Фото / видео / PDF-превью занимают
 * половину прежней ширины.
 *
 * Правило одинаковое для:
 * desktop / tablet / mobile.
 */
.news-gallery{
    width:50% !important;
    max-width:50% !important;

    margin-left:0 !important;
    margin-right:auto !important;

    box-sizing:border-box !important;
}

/*
 * На всех размерах экрана сохраняем
 * ту же относительную ширину 50%.
 */
@media(max-width:1099px){

    .news-gallery{
        width:50% !important;
        max-width:50% !important;
    }

}

@media(max-width:768px){

    .news-gallery{
        width:50% !important;
        max-width:50% !important;
    }

}

@media(max-width:600px){

    .news-gallery{
        width:50% !important;
        max-width:50% !important;
    }

}

/*
 * Миниатюра начинается с верхней части исходного изображения.
 * По горизонтали изображение остаётся по центру.
 *
 * Особенно полезно для фотографий документов:
 * в превью виден заголовок/начало листа,
 * а не его середина.
 */
.news-gallery-item img{
    object-fit:cover !important;
    object-position:center top !important;
}

/* normal long news: 5 lines */
.news-text.snt-text-collapsed{ -webkit-line-clamp:5 !important; }
.news-card.snt-latest-news .news-text,
.news-card.snt-latest-news .news-text.snt-text-collapsed{
  display:block !important; -webkit-line-clamp:unset !important; -webkit-box-orient:initial !important;
  max-height:none !important; height:auto !important; overflow:visible !important; white-space:normal !important; text-overflow:clip !important;
}
.news-card.snt-latest-news .news-text-toggle,
.news-card.snt-latest-news .news-text-toggle.is-visible{ display:none !important; }
@media(max-width:600px){ .news-text.snt-text-collapsed{ -webkit-line-clamp:5 !important; } }
@media(max-height:650px) and (orientation:landscape){ .news-text.snt-text-collapsed{ -webkit-line-clamp:5 !important; } }

/* News header + MAX actions */
.news-heading-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 10px 0;}
.news-heading-row .news-page-title{width:auto !important;flex:0 0 auto;margin:0 !important;}
.news-max-actions{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:7px;}
.news-max-link{min-height:31px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:5px 10px;border-radius:11px;border:1px solid rgba(86,231,186,.18);background:linear-gradient(145deg,rgba(8,78,70,.46),rgba(3,50,51,.52));box-shadow:inset 0 1px 0 rgba(255,255,255,.045);backdrop-filter:blur(10px) saturate(125%);-webkit-backdrop-filter:blur(10px) saturate(125%);color:rgba(225,247,240,.91);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:11px;line-height:1.1;font-weight:650;text-decoration:none;white-space:nowrap;box-sizing:border-box;}
.news-max-link img{display:block;width:17px;height:17px;flex:0 0 17px;}
.news-max-link-disabled{opacity:.47;filter:saturate(.62);cursor:default;user-select:none;}
.news-max-link-active{cursor:pointer;transition:transform .14s ease,border-color .16s ease,background .16s ease,opacity .16s ease;}
.news-max-link-active:hover{border-color:rgba(91,238,193,.34);background:linear-gradient(145deg,rgba(13,105,88,.55),rgba(4,63,60,.61));transform:translateY(-1px);}
.news-max-link-active:active{transform:translateY(0) scale(.98);}
@media(max-width:760px){.news-heading-row{align-items:flex-start;flex-wrap:wrap;gap:8px}.news-max-actions{width:100%;justify-content:flex-start;gap:6px}.news-max-link{min-width:0;padding:5px 8px;font-size:10px}}
@media(max-width:430px){.news-max-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.news-max-link{width:100%;white-space:normal;text-align:center}}
/* END SNT54_NEWS_CANONICAL_FINAL_V1 */
