/* Cofiplace News V27 — воздушная лента и контекстные виджеты */
.news-hub {
    width: 100%; max-width: 1500px; margin: 0 auto; padding: 18px 24px 54px;
    --news-surface-top: rgba(33,32,43,.90);
    --news-surface-bottom: rgba(20,19,28,.86);
    --news-line: rgba(255,255,255,.085);
}
.news-section-heading {
    display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
    margin-bottom: 13px; padding: 0 2px 10px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.news-section-heading h1 { margin: 0; color: var(--text-bright); font-size: clamp(1.7rem,2.4vw,2.3rem); letter-spacing: -.03em; }
.news-section-heading span { color: var(--violet-bright); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.news-modern-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 20px; }
.news-stream, .news-widgets { min-width: 0; }
.news-feed {
    display: grid; gap: 20px; min-height: 280px; padding: 0;
    border: 0; background: transparent;
}

.news-feed .news-item {
    position: relative; isolation: isolate;
    display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 22px; align-items: center;
    min-height: 150px; padding: 8px 0 8px 18px;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.news-feed .news-item::before {
    content: ""; position: absolute; z-index: -1; inset: 0 170px 0 0;
    border-left: 1px solid rgba(205,112,244,.14);
    background: linear-gradient(90deg,
        rgba(31,29,41,clamp(.36,calc(var(--custom-panel-bottom-alpha,.98) - .13),.82)) 0%,
        rgba(25,23,35,clamp(.24,calc(var(--custom-panel-bottom-alpha,.98) - .40),.54)) 58%,
        rgba(20,18,29,clamp(.08,calc(var(--custom-panel-bottom-alpha,.98) - .72),.22)) 80%,
        transparent 100%);
    -webkit-backdrop-filter: blur(clamp(1px,var(--custom-panel-blur,0px),4px));
    backdrop-filter: blur(clamp(1px,var(--custom-panel-blur,0px),4px));
    transition: background .46s ease, border-color .25s ease;
}
.news-item-cover {
    position: relative; z-index: 1; display: block; width: 100%; min-height: 142px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.09); border-radius: 10px;
    background-position: center; background-size: cover; box-shadow: 0 12px 30px rgba(0,0,0,.18);
    transition: transform .22s ease, border-color .22s ease, filter .22s ease;
}
.news-item-cover.is-placeholder { background-image: url('../images/news-placeholder.svg'); }
.news-item:hover .news-item-cover { transform: translateY(-2px); border-color: rgba(199,104,244,.28); filter: saturate(1.06) brightness(1.03); }
.news-item-copy { position: relative; z-index: 1; align-self: center; min-width: 0; padding-right: 12px; }
.news-feed .news-item-meta { margin-bottom: 7px; color: rgba(255,255,255,.43); font-size: .67rem; letter-spacing: .035em; }
.news-feed .news-item h2 { margin: 0 0 8px; font-size: clamp(1.08rem,1.6vw,1.32rem); line-height: 1.25; }
.news-feed .news-item h2 a { color: #f1edf3; text-decoration: none; }
.news-feed .news-item h2 a:hover { color: #e4b1fa; }
.news-feed .news-summary { display: -webkit-box; overflow: hidden; max-width: 760px; margin: 0; color: #aaa4b1; font-size: .79rem; line-height: 1.56; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-feed .news-read-more { display: inline-block; margin-top: 10px; color: #cb83ed; font-size: .72rem; font-weight: 700; text-decoration: none; }
.news-feed .news-read-more:hover { color: #efc4ff; }
.news-search-result-heading { margin: 8px 0 5px; padding: 10px 0 14px; border-bottom: 1px solid var(--news-line); }
.news-search-empty { padding: 38px 4px; }

.news-widget-stack { display: grid; gap: 14px; }
.news-widget {
    padding: 18px; border: 1px solid rgba(255,255,255,.085); border-radius: 13px;
    background: linear-gradient(145deg,
        rgba(37,37,45,clamp(.30,calc(var(--custom-panel-top-alpha,.97) - .04),.93)),
        rgba(24,25,31,clamp(.32,calc(var(--custom-panel-bottom-alpha,.98) - .05),.94)));
    box-shadow: 0 14px 34px rgba(0,0,0,.15);
    -webkit-backdrop-filter: blur(clamp(1px,var(--custom-panel-blur,0px),8px)) saturate(.94);
    backdrop-filter: blur(clamp(1px,var(--custom-panel-blur,0px),8px)) saturate(.94);
    transition: background .46s ease, border-color .46s ease, transform .22s ease, -webkit-backdrop-filter .46s ease, backdrop-filter .46s ease;
}
.news-widget:hover { border-color: rgba(199,104,244,.20); transform: translateY(-1px); }
.news-widget h3 { margin: 0 0 13px; color: #d991f5; font-size: .71rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.news-widget.news-search { order: 1; }
.news-widget--archive { order: 2; }
.news-widget.news-calendar { order: 3; }
.news-widget.news-related { order: 4; }
.news-widget--archive .news-archive-list { max-height: 198px; }
.news-widget .news-archive-item { min-height: 36px; padding-inline: 8px; font-size: .75rem; }
.news-widget .news-archive-year { padding-top: 8px; font-size: .65rem; }
.news-widget.news-search, .news-widget.news-calendar, .news-widget.news-related { margin: 0; }
.news-widget .news-calendar-heading { margin-bottom: 12px; }
.news-widget .news-calendar-grid { gap: 3px; }
.news-widget .calendar-day { min-height: 31px; }
.news-related-list { max-height: 210px; }

.news-hub--article { padding-top: 22px; }
.news-article {
    overflow: hidden; padding: 28px 32px 34px; border: 1px solid var(--news-line); border-radius: 14px;
    background: linear-gradient(145deg,
        rgba(37,37,45,clamp(.42,calc(var(--custom-panel-top-alpha,.97) + .04),.96)),
        rgba(24,25,31,clamp(.44,calc(var(--custom-panel-bottom-alpha,.98) + .02),.96)));
    box-shadow: 0 18px 45px rgba(0,0,0,.18); -webkit-backdrop-filter: blur(var(--custom-panel-blur,0px)); backdrop-filter: blur(var(--custom-panel-blur,0px));
    transition: background .46s ease, border-color .46s ease, -webkit-backdrop-filter .46s ease, backdrop-filter .46s ease;
}
.news-article .article-back { margin-bottom: 20px; }
.news-article .article-cover { display: block; width: calc(100% + 64px); max-width: none; max-height: 520px; margin: 0 -32px 26px; object-fit: cover; border-radius: 0; }
.news-article .article-header h1 { font-size: clamp(1.75rem,3vw,2.55rem); }
.news-article .article-content { max-width: 850px; }

@media (max-width: 1050px) {
    .news-modern-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 16px; }
    .news-feed .news-item { grid-template-columns: minmax(0,1fr) 220px; gap: 17px; }
    .news-feed .news-item::before { right: 145px; }
}
@media (max-width: 820px) {
    .news-hub { padding: 18px 16px 42px; }
    .news-modern-layout { grid-template-columns: 1fr; }
    .news-widgets { order: 2; }
    .news-widget-stack { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
    .news-widget--archive, .news-related { grid-column: 1/-1; }
}
@media (max-width: 590px) {
    .news-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .news-section-heading span { order: -1; }
    .news-feed { padding-inline: 14px; }
    .news-feed .news-item { grid-template-columns: 1fr; gap: 12px; padding-block: 16px; }
    .news-item-cover { min-height: 190px; }
    .news-item-copy { padding-right: 0; }
    .news-widget-stack { grid-template-columns: 1fr; }
    .news-widget--archive, .news-related { grid-column: auto; }
    .news-article { padding: 22px 18px 28px; }
    .news-article .article-cover { width: calc(100% + 36px); margin: 0 -18px 22px; }
}
