/*
 * Новости Беларуси — site.css, design B «Лента» (written from scratch).
 * Fonts: IBM Plex Sans (text, variable 400–700) and IBM Plex Serif 600 (headlines), self-hosted, OFL.
 * Grid: content 1120 (wrapper 1200, side padding 40; ≤1135 — 24; phone — 16); right column 300; gap 56 (≤1135 — 48).
 * The right edge of the content and the left edge of the right column are one line on every page.
 */
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400 700;font-display:swap;src:url("../fonts/ibm-plex-sans-cyrillic-wght.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400 700;font-display:swap;src:url("../fonts/ibm-plex-sans-latin-wght.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Serif";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/ibm-plex-serif-cyrillic-600.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"IBM Plex Serif";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/ibm-plex-serif-latin-600.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --bg:#f4f5f3; --surface:#fff; --ink:#16201b; --ink-2:#3d4842; --muted:#5d6a63; --line:#e6e9e6; --line-2:#cfd8d2;
  --brand:#12402b; --brand-deep:#0d3221; --accent:#1e6b47; --mint:#9fe0bd; --mint-bg:#eaf4ee; --on-brand:#d9eee2;
  --sans:"IBM Plex Sans",-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --serif:"IBM Plex Serif",Georgia,"Times New Roman",serif;
  --wrap:1200px; --pad:40px; --rail:300px; --gap:56px; --radius:12px;
}
@media (max-width:1135px){:root{--pad:24px;--gap:48px}}
@media (max-width:767px){:root{--pad:16px;--radius:10px}}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.5 var(--sans);overflow-x:hidden}
img,svg,video,iframe{max-width:100%}
img{height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--accent)}
button,input{font:inherit;color:inherit}
h1,h2,h3,h4,p,ul,ol,figure,blockquote{margin:0}
ul,ol{padding:0;list-style:none}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:8px;top:-60px;z-index:50;background:var(--surface);padding:10px 16px;border-radius:8px}
.skip:focus{top:8px}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--pad)}
.columns{display:grid;grid-template-columns:minmax(0,1fr) var(--rail);gap:var(--gap);align-items:start}
.columns>*{min-width:0}
.page{padding:28px 0 64px}
.panel{background:var(--surface);border-radius:var(--radius);padding:18px 20px}
.panel+.panel,.stack>*+*{margin-top:20px}
.block-title{font-size:18px;line-height:1.3;font-weight:700;margin-bottom:6px}
.block-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.block-head .block-title{margin:0}
.kicker{font-size:13px;line-height:1.3;font-weight:700;color:var(--accent)}
.kicker a{color:var(--accent)}
.kicker a:hover{text-decoration:underline}
.kicker__sep{margin:0 6px;color:var(--muted)}
.meta{font-size:13px;color:var(--muted)}
.btn-wide{display:block;margin-top:12px;padding:11px;text-align:center;border-radius:8px;background:var(--mint-bg);color:var(--brand);font-weight:700;font-size:14px}
.btn-wide:hover{background:#dcefe3;color:var(--brand)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-block;padding:7px 12px;border:1px solid var(--line-2);border-radius:999px;font-size:14px;line-height:1.3}
.chip:hover{border-color:var(--accent)}
.chip--fill{border:0;border-radius:8px;padding:9px 14px;background:var(--mint-bg);color:var(--brand);font-weight:600}
.age{display:inline-block;border:1px solid var(--mint);border-radius:4px;padding:0 6px;font-size:12px;line-height:18px;font-weight:700}

/* ── header ── */
.site-head{background:var(--brand);color:#fff}
.site-head__in{display:flex;align-items:center;justify-content:space-between;gap:24px;height:76px}
.logo{display:block;flex:none;color:#fff}
.logo img{width:230px;height:auto}
.search-form{flex:1;max-width:420px;display:flex}
.search-form__input{flex:1;min-width:0;height:44px;border:0;border-radius:8px 0 0 8px;padding:0 14px;background:#fff;color:var(--ink);font-size:15px}
.search-form__btn{height:44px;padding:0 18px;border:0;border-radius:0 8px 8px 0;background:var(--mint);color:var(--brand);font-weight:700;cursor:pointer}
.search-form__btn:hover{background:#b6ead0}
.site-head__side{display:flex;align-items:center;gap:16px;font-size:14px;white-space:nowrap}
.search-icon{display:none;width:44px;height:44px;align-items:center;justify-content:center;color:#fff}
.search-icon svg{width:22px;height:22px}
.menu{background:var(--brand-deep)}
.menu__list{display:flex;gap:4px;overflow-x:auto;white-space:nowrap;padding:8px 0;scrollbar-width:none}
.menu__list::-webkit-scrollbar{display:none}
.menu__link{display:block;padding:8px 12px;border-radius:6px;color:#fff;font-size:15px;font-weight:600;line-height:1.3}
.menu__link:hover{color:#fff;background:rgba(255,255,255,.1)}
.menu__link.is-active{background:var(--mint);color:var(--brand)}

/* ── home ── */
.home-grid{display:grid;grid-template-columns:var(--rail) minmax(0,1fr);gap:32px;align-items:start}
.home-grid>*{min-width:0}
.home-feed{position:sticky;top:12px}
.live{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--accent)}
.live::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent)}
.feed-row{display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px;padding:11px 0;border-top:1px solid var(--line)}
.feed-row__time{font-size:13px;line-height:1.55;font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums}
.feed-row__title{font-size:15px;line-height:1.38;font-weight:500}
.lead-card{background:var(--surface);border-radius:var(--radius);overflow:hidden}
.lead-card__img{width:100%;aspect-ratio:16/9;object-fit:cover}
.lead-card__body{padding:20px 24px 24px;display:flex;flex-direction:column;gap:10px}
.lead-card__title{font-family:var(--serif);font-weight:600;font-size:28px;line-height:1.2}
.lead-card__text{font-size:16px;line-height:1.55;color:var(--ink-2)}
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}
.card{background:var(--surface);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.card__img{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--mint-bg)}
.card__body{padding:14px 16px 18px;display:flex;flex-direction:column;gap:8px}
.card__title{font-size:18px;line-height:1.3;font-weight:600}

/* ── right column ── */
.rail{display:flex;flex-direction:column;gap:20px}
.rail-row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:10px 0;border-top:1px solid var(--line);align-items:start}
.rail-row__img{width:72px;height:54px;object-fit:cover;border-radius:6px;background:var(--mint-bg)}
.rail-row__title{font-size:14px;line-height:1.38;font-weight:500}
.promo{background:var(--brand);color:#fff;border-radius:var(--radius);padding:20px;display:flex;flex-direction:column;gap:10px}
.promo p{font-size:14px;line-height:1.5;color:var(--on-brand)}
.promo__btn{align-self:flex-start;padding:10px 16px;background:var(--mint);color:var(--brand);border-radius:8px;font-weight:700;font-size:14px}
.promo__btn:hover{color:var(--brand);background:#b6ead0}
.rail__sticky{position:sticky;top:12px}

/* ── lists (sections, topics, regions, author, search) ── */
.page-head{margin-bottom:20px}
.page-head h1{font-family:var(--serif);font-weight:600;font-size:34px;line-height:1.2;margin-top:4px}
.page-head p{margin-top:8px;color:var(--ink-2);max-width:720px}
.row-card{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;padding:18px 0;border-top:1px solid var(--line)}
.row-card:first-child{border-top:0;padding-top:4px}
.row-card__img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:var(--mint-bg)}
.row-card__body{display:flex;flex-direction:column;gap:6px}
.row-card__title{font-size:19px;line-height:1.32;font-weight:600}
.row-card__lead{font-size:15px;line-height:1.5;color:var(--ink-2)}
.empty{padding:24px 0;color:var(--muted)}
.search{display:flex;max-width:560px;margin-top:14px}
.search__input{flex:1;min-width:0;height:48px;border:1px solid var(--line-2);border-right:0;border-radius:8px 0 0 8px;padding:0 14px;background:#fff;font-size:16px}
.search__btn{height:48px;padding:0 20px;border:0;border-radius:0 8px 8px 0;background:var(--brand);color:#fff;font-weight:700;cursor:pointer}
.pager{display:flex;flex-wrap:wrap;gap:6px;margin-top:20px}
.pager a,.pager span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 12px;border-radius:8px;background:var(--surface);font-weight:600}
.pager .is-current{background:var(--brand);color:#fff}
.author-head{display:flex;align-items:center;gap:16px}
.author-head__photo{width:80px;height:80px;border-radius:50%;object-fit:cover;background:#fff}
.author-head__role{color:var(--muted);margin-top:4px}

/* ── story ── */
.story{background:var(--surface);border-radius:var(--radius);padding:28px 32px 28px;overflow:hidden}
.story+.story{margin-top:20px}
.story__title{font-family:var(--serif);font-weight:600;font-size:36px;line-height:1.18;margin:10px 0 14px}
.story__lead{font-size:19px;line-height:1.5;color:var(--ink-2);margin-bottom:16px}
.byline{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:14px;color:var(--muted)}
.avatar{width:40px;height:40px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;background:var(--mint-bg);color:var(--brand);font-weight:700;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.byline__who{display:flex;flex-direction:column;line-height:1.35}
.byline__name{font-weight:700;color:var(--ink)}
.story__ad{margin:20px 0}
.story__figure{margin:20px calc(-1 * 32px) 22px}
.story__figure img{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--mint-bg)}
.credit{padding:8px 32px 0;font-size:12px;line-height:1.4;color:var(--muted)}
.rich{font-size:18px;line-height:1.65;overflow-wrap:anywhere}
.rich>*+*{margin-top:16px}
.rich h2,.rich h3,.rich h4{font-family:var(--serif);font-weight:600;line-height:1.25;margin-top:28px}
.rich h2{font-size:25px}.rich h3{font-size:21px}.rich h4{font-size:19px}
.rich a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.rich ul,.rich ol{padding-left:24px}
.rich ul{list-style:disc}.rich ol{list-style:decimal}
.rich li+li{margin-top:6px}
.rich blockquote{padding:16px 18px;border-radius:8px;background:var(--mint-bg)}
.rich blockquote footer{margin-top:8px;font-size:15px;color:var(--ink-2)}
.rich table{width:100%;border-collapse:collapse;font-size:15px;display:block;overflow-x:auto}
.rich th,.rich td{border:1px solid var(--line-2);padding:8px 10px;text-align:left;vertical-align:top}
.rich th{background:var(--mint-bg)}
.rich figure img{border-radius:8px}
.rich figcaption{font-size:13px;color:var(--muted);margin-top:6px}
.video{margin-top:24px;aspect-ratio:16/9;background:#000;border-radius:8px;overflow:hidden}
.video iframe{width:100%;height:100%;border:0}
.video__btn{position:relative;display:block;width:100%;height:100%;padding:0;border:0;background:#000;cursor:pointer}
.video__btn img{width:100%;height:100%;object-fit:cover;opacity:.85}
.video__play{position:absolute;left:50%;top:50%;width:72px;height:50px;margin:-25px 0 0 -36px;border-radius:12px;background:#c4302b}
.video__play::after{content:"";position:absolute;left:29px;top:15px;border-style:solid;border-width:10px 0 10px 17px;border-color:transparent transparent transparent #fff}
.story__foot{margin-top:24px;display:flex;flex-direction:column;gap:18px}
.share{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.share__label{font-size:13px;font-weight:700;color:var(--muted);margin-right:4px}
.share__btn{width:44px;height:44px;border-radius:50%;border:0;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:700;cursor:pointer}
.share__btn:hover{color:#fff;filter:brightness(1.1)}
.share__btn svg{width:20px;height:20px}
.share__btn--vk{background:#2a6fd6}.share__btn--ok{background:#ad5309}.share__btn--wa{background:#167a3e}.share__btn--tg{background:#1d6fa5}
.share__btn--copy,.share__btn--more{background:var(--ink-2)}
.share__btn--copy.is-done{background:var(--accent)}
.story__note{font-size:13px;color:var(--muted)}
.story__note a{color:var(--accent)}
.preview-note{margin-bottom:16px;padding:12px 16px;border-radius:8px;background:#fff4d6;font-size:14px}
.story-col>*+*{margin-top:20px}
.story-col>.next-loader{margin-top:0}
.more .block-title a{color:var(--accent)}
.preferred{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid var(--line-2);border-radius:8px;font-size:14px;font-weight:600}
.preferred__g{flex:none;width:28px;height:28px;border-radius:50%;background:var(--mint-bg);color:var(--brand);display:flex;align-items:center;justify-content:center;font-weight:700}
.cards .card__title{font-size:16px}
.author-head__bio{margin-top:14px;font-size:16px}
.regions{margin-top:20px}
.regions .block-title{margin-bottom:12px}
.rail .block-title a:hover{color:var(--accent)}
.rail .chips{margin-top:6px}
.promo .block-title{margin:0;color:#fff}
.next-loader{height:1px}

/* ── ads ── */
.ad{display:flex;justify-content:center;min-height:0}
.ad--story{min-height:250px}
.ad--rail{min-height:600px}
.ad--feed{margin:16px 0;min-height:120px}

/* ── static pages and errors ── */
.static h2{font-family:var(--serif);font-weight:600;font-size:23px;line-height:1.3;margin-top:24px}
.error-page{padding:32px}
.error-page__code{font-family:var(--serif);font-weight:600;font-size:96px;line-height:1;color:var(--accent)}
.error-page h1{font-family:var(--serif);font-weight:600;font-size:34px;line-height:1.2;margin:12px 0}
.error-page p{color:var(--ink-2);font-size:18px}
.error-page__links{margin-top:20px}

/* ── footer, cookie, to top ── */
.footer{background:var(--brand-deep);color:var(--on-brand);font-size:14px;margin-top:0}
.footer__in{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.2fr) minmax(0,1fr);gap:32px;padding-top:40px;padding-bottom:28px}
.footer__list--2{columns:2;column-gap:24px}
.footer__list--2 li{break-inside:avoid}
.footer__list--2 li+li{margin-top:0}
.footer__list--2 li{padding-bottom:6px}
.footer__logo{width:200px;height:auto;margin-bottom:12px}
.footer__about p{max-width:380px;line-height:1.5}
.footer__title{color:#fff;font-weight:700;margin-bottom:10px}
.footer__list li+li{margin-top:6px}
.footer a{color:var(--on-brand)}
.footer a:hover{color:#fff;text-decoration:underline}
.footer__bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:18px 0 28px;border-top:1px solid #24503a;font-size:13px}
.cookie{position:fixed;left:0;right:0;bottom:0;z-index:40;background:var(--ink);color:#fff;font-size:14px;display:none}
.cookie.is-shown{display:block}
.cookie__in{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:14px;padding-bottom:14px}
.cookie a{color:var(--mint);text-decoration:underline}
.cookie__btn{flex:none;height:44px;padding:0 20px;border:0;border-radius:8px;background:var(--mint);color:var(--brand);font-weight:700;cursor:pointer}
.to-top{position:fixed;right:16px;bottom:16px;z-index:30;width:48px;height:48px;border-radius:50%;border:0;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .2s}
.to-top.is-shown{opacity:1;pointer-events:auto}
.to-top svg{width:22px;height:22px}
.cookie.is-shown~.to-top{bottom:88px}

/* ── responsive ── */
@media (max-width:1135px){
  .home-grid{grid-template-columns:260px minmax(0,1fr);gap:24px}
  .lead-card__title{font-size:26px}
}
@media (max-width:1023px){
  .columns{grid-template-columns:minmax(0,1fr)}
  .home-grid{grid-template-columns:minmax(0,1fr)}
  .home-feed{position:static;order:2}
  .rail__sticky{position:static}
  .ad--rail{min-height:0}
}
@media (max-width:767px){
  .site-head__in{height:60px;gap:12px}
  .logo img{width:170px}
  .search-form,.site-head__date{display:none}
  .search-icon{display:inline-flex}
  .menu__list{padding:6px 0 8px}
  .menu__link{font-size:14px;padding:8px 10px}
  .page{padding:12px 0 40px}
  .lead-card__body{padding:16px}
  .lead-card__title{font-size:24px}
  .cards{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:12px}
  .panel{padding:16px}
  .panel+.panel,.stack>*+*{margin-top:12px}
  .row-card{grid-template-columns:112px minmax(0,1fr);gap:12px;padding:14px 0}
  .row-card__title{font-size:16px}
  .row-card__lead{display:none}
  .page-head h1{font-size:27px}
  .story{padding:18px 16px 22px;border-radius:var(--radius)}
  .story__title{font-size:27px;line-height:1.2}
  .story__lead{font-size:17px}
  .story__figure{margin:16px -16px 18px}
  .credit{padding:8px 16px 0}
  .rich{font-size:17px}
  .rich h2{font-size:22px}
  .footer__in{grid-template-columns:minmax(0,1fr);gap:20px;padding-top:28px;padding-bottom:20px}
  .cookie__in{flex-direction:column;align-items:stretch}
  .error-page__code{font-size:64px}
  .error-page h1{font-size:27px}
}
@media (max-width:767px){
  .card{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:12px;align-items:start}
  .card__img{border-radius:6px}
  .card__body{padding:0;gap:4px}
  .cards .card__title{font-size:16px}
}
.rail>*+*{margin-top:0!important}
@media (max-width:1023px){.columns,.home-grid{gap:20px}}
@media (max-width:767px){.columns,.home-grid{gap:12px}}
