/* FunFernus news: shared typography and geometry for editor, preview and feed. */
.news-page{max-width:1040px;margin:0 auto;padding:44px 24px 70px;min-height:60vh}.news-page-heading{padding:28px 32px;background:#191f17;border-radius:28px;margin-bottom:24px;display:flex;align-items:center;gap:20px}.news-page-heading h1{font-size:clamp(30px,4vw,46px);color:#ffc247;margin:0}.news-page-heading p{font-size:17px;color:#b7beb0;margin:0}.news-feed{display:grid;gap:20px}.news-preview-card{background:#191f17;border-radius:28px;padding:30px;min-width:0}.news-post-head{display:grid;gap:12px}.news-date{font-size:13px;color:#9da894}.news-title-line{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}.news-title-line h2{font-size:clamp(25px,3vw,36px);line-height:1.2;letter-spacing:-.025em;color:#f0f2e6;margin:0;overflow-wrap:anywhere}.news-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;font-size:12px;font-weight:650;color:#ffc247;background:rgba(255,194,71,.1);border-radius:20px;max-width:100%;overflow-wrap:anywhere}.news-badge svg{width:17px;height:17px;flex:none}.news-excerpt{margin:16px 0 22px;color:#b7beb0;font-size:17px;line-height:1.5}.news-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:12px 20px;border:0;border-radius:28px;background:#ffc247;color:#191b12!important;text-decoration:none;cursor:pointer;font:inherit;font-size:15px;font-weight:600;box-sizing:border-box;overflow-wrap:anywhere;text-align:center}.news-action svg{width:20px;height:20px;flex:none}.news-action:hover{background:#ffd16d}.news-expand{margin-top:18px}.news-excerpt+.news-expand{margin-top:0}.news-empty{padding:28px;background:#191f17;border-radius:24px;color:#b7beb0;line-height:1.6}.news-more{margin:24px auto 0;display:flex}.news-post-content{display:grid;gap:22px;margin-top:26px;min-width:0}.news-rich{color:#d4dacd;line-height:1.65;font-size:17px;overflow-wrap:anywhere;min-width:0}.news-rich :is(p,div){margin:0 0 .8em}.news-rich :is(h2,h3){color:#f0f2e6;line-height:1.3;margin:1em 0 .5em}.news-rich h2{font-size:27px}.news-rich h3{font-size:22px}.news-rich a{color:#ffc247;text-decoration:underline;text-underline-offset:3px}.news-rich blockquote{margin:16px 0;padding:12px 18px;border-left:3px solid #ffc247;background:rgba(255,194,71,.06);border-radius:0 16px 16px 0}.news-rich :is(pre,code){font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#10160f;border-radius:8px}.news-rich code{padding:2px 5px}.news-rich pre{padding:16px;white-space:pre-wrap;overflow-wrap:anywhere}.news-rich ul,.news-rich ol{padding-left:26px}.news-rich strong{font-weight:750}.news-media{margin:0;min-width:0}.news-media :is(img,video){display:block;width:100%;height:auto;max-height:70vh;object-fit:contain;border-radius:18px;background:#11160f}.news-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.news-gallery .news-caption{grid-column:1/-1}.news-caption{font-size:13px;color:#a3ae9b;margin:8px 0 0}.news-button-group{display:flex;flex-wrap:wrap;gap:12px}.news-button-group>.news-action{flex:1 1 180px;max-width:100%}
html body .news-reader-overlay{display:none!important;position:fixed!important;inset:0!important;align-items:center;justify-content:center;padding:24px!important;background:rgba(6,10,5,.65)!important;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);z-index:100100!important}.news-reader-overlay.open{display:flex!important}html body .news-reader-dialog{width:min(880px,100%)!important;max-width:880px!important;max-height:92dvh!important;margin:0!important;padding:0!important;background:#191f17!important;border-radius:30px!important;overflow:hidden!important;display:flex;flex-direction:column;box-shadow:0 28px 100px #0007;position:relative}.news-reader-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 26px;border-bottom:1px solid #ffffff0a;flex:none;color:#a6b09c;font-size:13px}.news-reader-close{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;border:0;background:#293126;color:#dce1d4;font:inherit;font-size:28px;cursor:pointer}.news-reader-scroll{padding:28px 32px 36px;overflow-y:auto;overscroll-behavior:contain;min-height:0;-webkit-overflow-scrolling:touch}.news-sheet-grip{display:none}body.news-reading{position:fixed!important;left:0;right:0;overflow:hidden!important;width:100%}body.news-reading>:not(.news-reader-overlay):not(script):not(style):not(link){filter:blur(5px);pointer-events:none}.news-reader-dialog:focus{outline:none}
.news-editor-layout{display:grid;grid-template-columns:minmax(230px,.65fr) minmax(0,2fr);gap:22px;align-items:start}.news-manager,.news-composer{padding:24px!important;min-width:0}.news-manager-heading,.news-composer-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}.news-manager h2,.news-composer h2{font-size:23px;margin:0;display:flex;align-items:center;gap:9px}.news-composer-heading p{font-size:13px;margin:7px 0 0;color:#a7b19d}.news-composer-heading>span{font-size:12px;color:#c9b36d;text-align:right}.news-manager-heading .p-btn{font-size:12px!important;padding:9px 12px!important;min-height:40px}.news-admin-entry{width:100%;display:grid!important;justify-content:start!important;text-align:left!important;gap:6px!important;margin-bottom:10px;border-radius:16px!important;padding:15px!important;white-space:normal!important}.news-admin-entry small{font-size:11px;color:#a3af99}.news-admin-entry strong{font-size:15px;line-height:1.4;overflow-wrap:anywhere}.news-admin-entry.is-active{background:#3d3922!important;color:#ffc247!important}.news-fields{display:grid;gap:16px}.news-field-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.news-icon-field{display:flex;align-items:center;gap:12px;min-width:0}.news-icon-field>span:empty{display:none}.news-icon-field svg{width:24px;height:24px;color:#ffc247;flex:none}.news-icon-field select{flex:1;min-width:0}.news-compose-help{display:flex;gap:9px;color:#a7b19d;font-size:13px;line-height:1.5;margin:22px 0}.news-compose-help svg{width:20px;height:20px;flex:none;color:#ffc247}.news-editor-blocks{display:grid;gap:18px}.news-editor-block{min-width:0;padding:18px;background:#12190f;border:1px solid #ffffff0b;border-radius:22px}.news-block-controls{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.news-block-controls .p-btn{font-size:11px!important;min-height:34px!important;padding:7px 10px!important;gap:5px!important}.news-block-controls svg{width:15px!important;height:15px!important}.news-format-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding-bottom:12px}.news-format-toolbar .p-btn{padding:7px 10px!important;font-size:11px!important;min-height:32px!important;border-radius:10px!important}.news-editable{min-height:150px;padding:16px;border:1px solid #ffffff12;border-radius:14px;background:#191f17;outline:none;white-space:pre-wrap}.news-editable:focus{border-color:#b49c59}.news-editable:empty::before{content:'Напишите текст новости…';color:#6e7d65}.news-add-tools,.news-save-tools{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.news-save-tools{border-top:1px solid #ffffff12;padding-top:20px}.news-save-tools .p-btn,.news-add-tools .p-btn{font-size:12px!important;padding:10px 14px!important;min-height:42px!important}.news-feedback{font-size:14px;line-height:1.5;color:#b8cb9c;margin:18px 0 0}.news-feedback.is-error{color:#ffb4a5}.news-custom-button{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;background:#191f17;padding:18px;border-radius:18px;margin-bottom:14px}.news-custom-button .news-block-controls{grid-column:1/-1;margin:0}.news-media-editor{display:grid;gap:14px;margin-bottom:16px}.news-media-edit-row{min-width:0}.news-media-edit-row>img,.news-media-edit-row>video{width:100%;max-height:240px;object-fit:contain;border-radius:14px;background:#0d130a}.news-media-edit-row .news-block-controls{margin-top:10px}.news-upload-status{font-size:12px;overflow-wrap:anywhere;display:block;margin:12px 0}.news-editor-block progress{width:100%;accent-color:#ffc247}.news-editor-layout.is-saving{pointer-events:none;opacity:.7}.news-editor-layout [hidden],.news-page [hidden]{display:none!important}
@media(max-width:1100px){.news-editor-layout{grid-template-columns:minmax(0,1fr)}#newsAdminList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.news-admin-entry{margin:0}}
@media(max-width:760px){.news-page{padding:24px 16px 50px}.news-page-heading{padding:24px;display:grid;gap:10px}.news-preview-card{padding:24px}.news-title-line{gap:12px}.news-title-line h2{font-size:27px}.news-reader-overlay.open{padding:0!important;align-items:flex-end!important}html body .news-reader-dialog{width:100%!important;max-width:none!important;height:95dvh;max-height:95dvh!important;border-radius:28px 28px 0 0!important;animation:news-sheet-in .24s ease-out;touch-action:pan-y}.news-reader-scroll{padding:22px 22px calc(28px + env(safe-area-inset-bottom));}.news-reader-bar{padding:8px 22px 14px;touch-action:none}.news-sheet-grip{display:block;height:5px;width:42px;background:#68705f;border-radius:8px;margin:12px auto 6px;flex:none;touch-action:none}.news-rich{font-size:16px}.news-gallery{gap:8px}.news-media :is(img,video){max-height:65dvh;border-radius:14px}.news-composer,.news-manager{padding:18px!important}.news-composer-heading{align-items:start}.news-editor-block{padding:12px}.news-field-pair,.news-custom-button{grid-template-columns:minmax(0,1fr)}.news-custom-button .news-block-controls{grid-column:1}.news-block-controls{gap:6px}.news-block-controls>.p-btn:first-child[draggable]{display:none}.news-title-line h2{overflow-wrap:anywhere}.news-editor-layout .p-field input[type=datetime-local]{width:100%;min-width:0;box-sizing:border-box}.news-button-group>.news-action{flex-basis:140px}#newsAdminList{grid-template-columns:minmax(0,1fr)}}
@keyframes news-sheet-in{from{transform:translateY(32px);opacity:.5}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){.news-reader-dialog{animation:none!important}}
/* v61: structured editor, visible icon portal and compact contextual formatting. */
.news-format-menu,.news-icon-popover,.news-link-popover{position:fixed;z-index:150000;background:#20281c;border:1px solid #ffffff16;border-radius:20px;box-shadow:0 18px 70px #0008;color:#edf0e4;box-sizing:border-box;font:inherit;animation:news-menu-in .13s ease-out}
.news-icon-popover{width:min(540px,calc(100vw - 16px));height:min(500px,calc(100dvh - 32px));padding:16px;display:flex;flex-direction:column;gap:14px}.news-icon-picker-head{display:flex;gap:10px;align-items:center;flex:none}.news-icon-picker-head input{min-width:0;flex:1;border-radius:18px;padding:12px;font:inherit;font-size:16px;background:#11180e;border:1px solid #ffffff16;color:#e5e9dc}.news-icon-picker-head .p-btn{font-size:11px!important;padding:9px!important;min-height:42px!important}.news-icon-grid{overflow-y:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-content:start;min-height:0}.news-icon-grid .p-btn{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px!important;min-width:0;min-height:78px!important;padding:9px 4px!important;font-size:10px!important;line-height:1.25;border-radius:14px!important;overflow-wrap:anywhere;white-space:normal;text-align:center}.news-icon-grid svg{width:25px!important;height:25px!important;flex:none}.news-icon-grid [aria-pressed=true]{background:#504424!important;color:#ffc247!important}.news-icon-field>[data-news-icon-trigger]{display:flex;gap:10px;align-items:center;justify-content:space-between;width:100%;min-height:46px;font-size:14px!important}.news-icon-field>[data-news-icon-trigger]>span{flex:1;text-align:left}.news-format-menu{width:310px;max-width:calc(100vw - 16px);max-height:min(650px,calc(100dvh - 16px));overflow-y:auto;overscroll-behavior:contain;padding:8px}.news-format-menu .p-btn{display:flex;align-items:center;justify-content:flex-start;width:100%;gap:10px;min-height:39px!important;padding:9px 12px!important;background:transparent!important;border:0;border-radius:10px!important;font-size:13px!important;color:#e0e6d6;text-align:left}.news-format-menu .p-btn:hover,.news-format-menu .p-btn:focus-visible{background:#ffffff0b!important;color:#ffc247}.news-format-menu .p-btn:nth-child(6),.news-format-menu .p-btn:nth-child(10),.news-format-menu .p-btn:nth-child(17){border-top:1px solid #ffffff16}.news-format-menu .p-btn svg{width:17px!important;height:17px!important;flex:none;color:#b8c4aa}.news-format-menu .p-btn small{margin-left:auto;font-size:9px;color:#8c9a80;white-space:nowrap}.news-text-hint{font-size:11px;color:#859278;margin-bottom:10px}.news-text-block>.p-btn{font-size:12px!important;min-height:36px!important;padding:8px 12px!important;margin-bottom:12px}.news-link-popover{left:50%;top:50%;transform:translate(-50%,-50%);width:min(430px,calc(100vw - 24px));padding:24px;display:grid;gap:14px}.news-link-popover input{background:#11180e;border:1px solid #ffffff20;border-radius:14px;padding:14px;color:#e1e7d7;font:inherit;min-width:0;font-size:16px}.news-link-popover .p-btn{font-size:14px!important;min-height:44px!important}.news-rich.ProseMirror{white-space:pre-wrap;position:relative}.ProseMirror:focus{outline:1px solid #c4ab57}.ProseMirror-selectednode{outline:2px solid #ffc247}.ProseMirror-gapcursor{display:none}.ProseMirror-separator{border:none!important;margin:0!important}.news-rich .news-spoiler{background:#66705b;color:transparent;border-radius:4px;box-decoration-break:clone;cursor:pointer}.news-rich .news-spoiler *{color:transparent!important}.news-rich .news-spoiler.is-revealed,.news-editable .news-spoiler{background:#ffc24722;color:inherit}.news-rich .news-spoiler.is-revealed *,.news-editable .news-spoiler *{color:inherit!important}.news-foldquote{border-left:3px solid #b49f5e;background:#ffc24706;border-radius:0 14px 14px 0;padding:12px 16px}.news-foldquote summary{color:#cab774;font-size:14px;cursor:pointer}.news-foldquote blockquote{border:0;background:none;margin:12px 0 0;padding:0}.news-editable blockquote[data-collapsible]::before{content:'Сворачиваемая цитата';display:block;font-size:11px;color:#b8a565;margin-bottom:8px}.news-cover{margin:18px 0 20px!important}.news-cover img{width:100%;max-height:550px;border-radius:18px;display:block}.news-cover-field{border-top:1px solid #ffffff12;padding-top:20px;margin-top:22px}.news-cover-field h3{font-size:16px;margin:0 0 8px}.news-cover-field p{font-size:12px;color:#a7b19d;line-height:1.5}.news-cover-field .news-field-pair{margin-top:12px}.news-cover-field .p-check{font-size:12px}.news-cover-field img{display:block;width:100%;max-height:280px;object-fit:cover;border-radius:18px;margin:12px 0}.news-cover-field progress{width:100%}.news-divider{border:0;border-top:1px solid #ffffff20;margin:14px 0}.news-badge-blue{color:#aacaff;background:#5c88ca26}.news-badge-green{color:#badba6;background:#709b5b26}.news-badge-red{color:#ffb6ad;background:#b36c6426}.news-badge-purple{color:#d0baff;background:#9775ba26}.news-pinned{font-size:11px;color:#bca965}.news-preview-modes{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:20px}.news-preview-modes .p-field{flex:1;min-width:130px}.news-preview-modes .p-btn{font-size:12px!important}.news-insert-slot{display:flex;justify-content:center;opacity:.4;transition:opacity .15s}.news-insert-slot:hover,.news-insert-slot:focus-within{opacity:1}.news-insert-slot .p-btn{padding:5px 12px!important;min-height:28px!important;font-size:10px!important}.news-admin-row>.news-block-controls{margin-top:6px}.news-image-viewer{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;background:#090e07f5;padding:32px;box-sizing:border-box;overflow:auto}.news-image-viewer::backdrop{background:#000b;backdrop-filter:blur(8px)}.news-image-viewer img{display:block;max-width:100%;max-height:calc(100dvh - 64px);width:auto;height:auto;object-fit:contain;margin:auto}.news-image-viewer .news-reader-close{position:fixed;right:20px;top:20px;z-index:1}.news-reading>.news-image-viewer{filter:none!important;pointer-events:auto!important}.news-preview-mobile .news-reader-dialog{max-width:390px!important;height:90dvh!important}.news-preview-mobile .news-reader-dialog .news-button-group{flex-direction:column}.news-preview-mobile .news-reader-dialog .news-title-line h2{font-size:27px}.home-news-heading{margin-bottom:24px}.home-news-heading h2{display:flex;align-items:center;gap:16px;font-size:clamp(25px,3vw,36px);margin:0 0 12px;color:#edf0e3}.home-news-heading svg{width:32px;height:32px;flex:none;color:#ffc247}.home-news-heading p{color:#b4bfaa;font-size:17px;margin:0}.home-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px}.home-news-grid .news-preview-card{padding:24px;display:flex;flex-direction:column;align-items:flex-start}.home-news-grid .news-title-line h2{font-size:24px}.home-news-grid .news-expand{margin-top:auto}.home-news-grid .news-cover{width:100%}.home-news-grid .news-cover img{aspect-ratio:16/9!important;object-fit:cover!important}.home-news-grid .news-post-head{width:100%}
html body#fernus-ui[data-page=news]{display:flex;flex-direction:column;min-height:100dvh;margin:0!important;padding-bottom:0!important}body[data-page=news]>main{flex:1 0 auto;width:100%}body[data-page=news]>.site-footer{margin-top:auto;margin-bottom:0!important;flex:none}html:has(body[data-page=news]){padding-bottom:0!important}body.news-reading>:not(.news-reader-overlay):not(.news-image-viewer):not(script):not(style):not(link){filter:blur(5px);pointer-events:none}
@media(max-width:760px){.news-icon-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.news-icon-popover{height:min(540px,calc(100dvh - 32px))}.news-block-controls{gap:6px}.news-block-controls .p-btn{font-size:10px!important;padding:7px 9px!important}.home-news-grid{grid-template-columns:minmax(0,1fr);gap:16px}.home-news-heading h2{font-size:26px;align-items:flex-start;gap:12px}.home-news-heading p{font-size:16px}.news-preview-modes{align-items:stretch}.news-image-viewer{padding:60px 12px 20px}.news-image-viewer img{max-height:calc(100dvh - 100px)}.news-text-hint{display:none}.news-format-menu .p-btn{min-height:42px!important}.news-reader-dialog{padding-bottom:env(safe-area-inset-bottom)}}
@keyframes news-menu-in{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}@media(prefers-reduced-motion:reduce){.news-format-menu,.news-icon-popover,.news-link-popover{animation:none}}

@media(min-width:761px){.news-reader-overlay.open .news-reader-dialog{animation:news-dialog-in .18s ease-out}}@keyframes news-dialog-in{from{opacity:.5;transform:scale(.97) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}@media(prefers-reduced-motion:reduce){.news-reader-overlay.open .news-reader-dialog{animation:none!important}}

body[data-page=news] :is(.nav-links,.mobile-inline-nav,.mobile-menu) a[aria-current=page]{color:#ffc247!important;background:rgba(255,194,71,.08);border-radius:24px}
.news-media img,.news-media-edit-row>img{pointer-events:auto!important;cursor:zoom-in}.news-media-edit-row>img{cursor:grab}.news-image-viewer img{pointer-events:auto!important}
.news-rich h1{font-size:30px;line-height:1.25;margin:1em 0 .5em;color:#f0f2e6}@media(max-width:760px){.news-rich h1{font-size:28px}.news-rich h2{font-size:24px}.news-rich h3{font-size:20px}}

/* The entire compact story opens the reader. */
.news-preview-card[role=button]{cursor:pointer;transition:background .2s ease,box-shadow .2s ease}
.news-preview-card[role=button] .news-media img{cursor:inherit}
.news-preview-card[role=button]>.news-excerpt:last-child{margin-bottom:0}
.news-preview-card[role=button]:focus-visible{outline:2px solid #ffc247;outline-offset:4px}
@media(hover:hover){.news-preview-card[role=button]:hover{background:#222a1d;box-shadow:0 8px 30px #0002}}
@media(hover:none){.news-preview-card[role=button]:active{background:#222a1d}}
@media(prefers-reduced-motion:reduce){.news-preview-card[role=button]{transition:none}}
.news-working-heading{display:block;margin:14px 0 10px;color:#c9b778;font-size:12px}.news-working-entry{border:1px dashed #bca76b40!important}.news-editor-layout [hidden]{display:none!important}

/* Home news: full-row action and an icon aligned with the first title line. */
.home-news-section .container>.news-action{display:flex;width:100%;box-sizing:border-box;justify-content:center;text-align:center}
.home-news-heading h2{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;line-height:1.3}
.home-news-heading h2>svg{display:block;position:static;transform:none;margin-top:.15em}
.home-news-heading h2>span{min-width:0}
@media(max-width:760px){.home-news-heading h2{grid-template-columns:26px minmax(0,1fr);gap:12px}.home-news-heading h2>svg{width:26px;height:26px}}

/* Center the home heading and keep short news rows at the normal card width. */
.home-news-heading{text-align:center}
.home-news-heading h2{display:flex;justify-content:center;align-items:flex-start;margin-bottom:0}
.home-news-heading h2>span{flex:0 1 auto}
.home-news-heading h2>svg{flex-shrink:0}
.home-news-grid{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch}
.home-news-grid>.news-preview-card{flex:0 0 calc((100% - 40px)/3);min-width:0;box-sizing:border-box}
@media(max-width:760px){.home-news-grid>.news-preview-card{flex-basis:100%}}
