/* Волна — стили сайта и монитора */
:root {
  --ink: #0E1A2B;
  --ink-2: #2B3A4E;
  --muted: #4A5B70;
  --line: #DCE4EE;
  --line-2: #E8EDF2;
  --bg: #F4F6F8;
  --paper: #FFFFFF;
  --blue: #1F4E8C;
  --blue-soft: #E3ECF7;
  --red: #B3261E;
  --green: #1D5E37;
  --green-soft: #D6F0E0;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--blue); }
.time { flex: 0 0 auto; min-width: 48px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { padding: 40px 0; color: var(--muted); }
.h2, .section-head h2 { font-family: var(--serif); font-size: 28px; font-weight: 700; }
.section-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 16px; }

.chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .4px; padding: 3px 8px;
  border-radius: 999px; background: var(--blue-soft); color: var(--blue); text-transform: uppercase; }
.chip--green { background: var(--green-soft); color: var(--green); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 4px 8px; border-radius: 3px; }
.tag--red { background: var(--red); color: #fff; }

.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 4px;
  border: 1px solid #B9C7D6; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { color: #fff; background: #183f73; }
.btn--tg { background: var(--blue); border-color: var(--blue); color: #fff; min-height: 34px; }
.btn--tg:hover { color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--ghost { color: var(--muted); }

.flag { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px #B9C7D6; flex: 0 0 auto; }
.ico { flex: 0 0 auto; }

.demo-bar { background: #FFF4D6; color: #5C4300; text-align: center; font-size: 13px; font-weight: 600; padding: 6px 16px; }

/* Верхняя строка */
.topbar { background: var(--ink); color: #DCE4EE; font-size: 13px; }
.topbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 8px; padding-bottom: 8px; }
.topbar__weather { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.topbar__weather:hover { color: #fff; text-decoration: underline; }
.langs { display: flex; align-items: center; gap: 2px; }
.langs a { padding: 4px 8px; border-radius: 4px; color: #DCE4EE; font-weight: 600; }
.langs a[aria-current] { background: #fff; color: var(--ink); }
.langs__note { margin-left: 6px; font-size: 11px; color: #9FB2C8; }

/* Шапка */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead__row { display: flex; align-items: center; padding-top: 20px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand:hover { color: inherit; }
.brand__mark { position: relative; width: 60px; height: 60px; flex: 0 0 auto; }
.flag--badge { position: absolute; right: -8px; bottom: -8px; width: 26px; height: 26px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #B9C7D6; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name { font-family: var(--serif); font-size: 42px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.brand__country { font-family: var(--sans); font-size: 22px; font-weight: 700; color: var(--blue); letter-spacing: 0; margin-left: 6px; }
.brand__tag { font-size: 13px; color: var(--muted); }
.countries { display: flex; gap: 4px 22px; overflow-x: auto; font-size: 15px; font-weight: 600; white-space: nowrap; scrollbar-width: none; }
.countries a { display: inline-flex; align-items: center; gap: 7px; padding: 12px 0; border-bottom: 3px solid transparent; }
.countries a[aria-current] { border-bottom-color: var(--blue); }

.breaking { background: var(--paper); border-bottom: 1px solid var(--line); }
.breaking__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 10px; padding-bottom: 10px; font-weight: 600; }

.main { padding-top: 28px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 44px; }

/* Картинки */
.img { width: 100%; object-fit: cover; border-radius: var(--radius); background: #DCE4EE; }
.img--hero { aspect-ratio: 16 / 9; }
.img--card { aspect-ratio: 16 / 9; border-radius: 4px; }
.img--contain { object-fit: contain; background: #E8EDF2; }
.img--empty { display: flex; align-items: center; justify-content: center; overflow: hidden; background: #1F4E8C; }
.img--empty img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }

/* Верх страницы: главная + второстепенные */
.top { display: flex; flex-wrap: wrap; gap: 28px; }
.hero { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hero__title { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.14; font-weight: 700; }
.hero__lead { font-size: 18px; color: var(--ink-2); max-width: 720px; }
.secondary { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card .img { border-radius: 0; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 0 16px 16px; }
.card-title { font-family: var(--serif); font-size: 20px; line-height: 1.3; font-weight: 600; }

.latest { flex: 1 1 320px; min-width: 0; align-self: flex-start; }
.latest__item { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.4; }

/* «Важное» */
.important { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; border-top: 2px solid var(--ink); padding-top: 18px; }
.important__item { display: flex; flex-direction: column; gap: 6px; }
.important__title { font-family: var(--serif); font-size: 19px; line-height: 1.35; font-weight: 600; }

/* Колонки: лента + сайдбар */
.columns { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.columns__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.columns__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.feed { display: flex; flex-direction: column; }
.feed__item { display: flex; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.4; }
.feed__item .kicker { display: inline; margin-right: 6px; }
.source { display: block; margin-top: 2px; }
.more { display: inline-block; padding: 12px 0; font-weight: 600; color: var(--blue); }
.local-media { margin-top: 32px; display: flex; flex-direction: column; gap: 4px; }

/* Боксы сайдбара */
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.box__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.box__head h2, .box > h2 { font-size: 18px; font-weight: 700; }
.box__head h1 { font-size: 20px; }
.box--dark { background: var(--ink); color: #fff; border-color: var(--ink); align-items: flex-start; }
.row-line { display: flex; justify-content: space-between; border-top: 1px solid var(--line-2); padding-top: 8px; font-size: 15px; }
.other { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-2); }
.other .flag { width: 22px; height: 22px; margin-top: 2px; }
.other__title { display: block; font-size: 15px; line-height: 1.35; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #B9C7D6; background: #fff; color: var(--ink); font-size: 13px; }
.pill[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.weather__now { display: flex; gap: 14px; align-items: center; }
.weather__big { color: var(--blue); }
.weather__temp { font-size: 40px; font-weight: 700; line-height: 1; }
.weather__days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 4px; text-align: center; font-size: 13px; }
.weather__day { display: flex; flex-direction: column; align-items: center; gap: 4px; text-transform: capitalize; }

/* Общая главная: карточки стран */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.country-card { display: flex; flex-direction: column; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.country-card--mine { border: 2px solid var(--blue); }
.country-card__head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.country-card__head .flag { width: 24px; height: 24px; }
.country-card__main { display: flex; flex-direction: column; gap: 10px; }
.country-card__sec { font-size: 15px; line-height: 1.4; padding-top: 10px; border-top: 1px solid var(--line-2); }

/* Статья */
.ai-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--blue-soft); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; }
.ai-notice .ico { color: var(--blue); }
.ai-notice a { color: var(--blue); font-weight: 600; }
.article { gap: 16px; max-width: 780px; }
.article__title { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.14; font-weight: 700; }
.article__lead { font-size: 20px; color: var(--ink-2); }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article__meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.article__figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.article__figure img { border-radius: var(--radius); width: 100%; }
.article__body { font-family: var(--serif); font-size: 19px; line-height: 1.7; }
.article__body p { margin: 0 0 18px; }
.article__body a { color: var(--blue); text-decoration: underline; }
.article__body blockquote { margin: 0 0 18px; padding-left: 20px; border-left: 4px solid var(--blue); font-style: italic; }
.report { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.report a { color: var(--blue); font-weight: 600; }
.pager { display: flex; gap: 16px; align-items: center; padding: 16px 0; }
.pager a { color: var(--blue); font-weight: 700; padding: 8px 12px; }

/* Подвал */
.footer { background: var(--ink); color: #C9D5E3; font-size: 14px; }
.footer__row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; padding-top: 36px; padding-bottom: 36px; }
.footer__about, .footer__ai { flex: 1 1 300px; display: flex; flex-direction: column; gap: 8px; }
.footer__brand { font-family: var(--serif); font-size: 26px; font-weight: 700; color: #fff; }
.footer__links { flex: 0 1 220px; display: flex; flex-direction: column; gap: 6px; }
.footer a:hover { color: #fff; }

/* Монитор редакции */
.staff { background: #EEF2F6; }
.staff__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; background: var(--ink); color: #fff; padding: 10px 20px; }
.staff__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.staff__bar nav { display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; font-weight: 600; }
.staff__bar nav a { color: #C9D5E3; padding: 8px 12px; border-radius: 4px; }
.staff__bar nav a[aria-current] { background: #23395A; color: #fff; }
.staff__status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #C9D5E3; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5FCB8A; }
.staff__grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding: 20px; }
.staff__filters { flex: 1 1 220px; max-width: 260px; gap: 4px; }
.staff__feed { flex: 999 1 520px; min-width: 0; padding: 0; gap: 0; }
.staff__feed .box__head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.staff__side { flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.filter { display: flex; justify-content: space-between; align-items: center; min-height: 38px; padding: 0 10px; border-radius: 4px; font-size: 14px; }
.filter span { display: inline-flex; align-items: center; gap: 8px; }
.filter b { color: var(--muted); font-variant-numeric: tabular-nums; }
.filter.is-on { background: var(--blue-soft); font-weight: 700; }
.mitem { padding: 14px 18px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.mitem--taken { background: #F3FAF6; }
.mitem--hidden { opacity: .5; }
.mitem__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.mitem__meta b { color: var(--ink); }
.mitem__title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.mitem__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.mitem__actions .btn { min-height: 34px; font-size: 13px; }
.qitem { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  body { font-size: 15px; }
  .masthead__row { padding-top: 10px; padding-bottom: 8px; }
  .brand { gap: 10px; }
  .brand__name { font-size: 26px; }
  .brand__mark, .brand__mark > img:first-child { width: 32px; height: 32px; }
  .flag--badge { width: 16px; height: 16px; right: -5px; bottom: -5px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #B9C7D6; }
  .brand__country { font-size: 15px; margin-left: 4px; }
  .brand__tag { display: none; }
  .countries { font-size: 14px; gap: 4px 16px; }
  .countries a { padding: 9px 0; }
  .main { gap: 24px; }
  .img--hero { aspect-ratio: 16 / 10; }
  .hero__title { font-size: 24px; line-height: 1.18; }
  .hero__lead { font-size: 16px; }
  .card-title { font-size: 17px; }
  .important__title, .day__title { font-size: 17px; }
  .article__title { font-size: 26px; }
  .article__lead { font-size: 17px; }
  .article__body { font-size: 17px; line-height: 1.65; }
  .section-head h2, .h2 { font-size: 22px; }
  .feed__item { font-size: 15px; gap: 10px; padding: 10px 0; }
  .latest__item { font-size: 14px; padding: 9px 0; }
  .time { min-width: 42px; font-size: 13px; }
  .staff__filters, .staff__side { max-width: none; }
}

/* Рубрики */
.rubrics { border-top: 1px solid var(--line-2); background: var(--paper); }
.rubrics__row { display: flex; gap: 4px 20px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 14px; }
.rubrics__row a { padding: 10px 0; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; }
.rubrics__row a:hover { color: var(--ink); }
.rubrics__row a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.kicker a { color: inherit; }

/* Рекламная публикация */
.ad { border: 1px solid #E2C98A; background: #FFFBF0; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ad__label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; color: #6B5313; }
.ad__tag { font-weight: 700; letter-spacing: .6px; text-transform: uppercase; background: #F3E3B5; padding: 3px 8px; border-radius: 3px; }
.ad__body { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; }
.ad__img { flex: 1 1 260px; max-width: 360px; }
.ad__text { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ad__title { font-family: var(--serif); font-size: 22px; line-height: 1.3; font-weight: 600; }
.ad__lead { color: var(--ink-2); }
.ad__more { font-weight: 600; color: var(--blue); }

/* Галерея альбома */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* Окно пожертвований */
.donate { border: 0; border-radius: 10px; padding: 0; max-width: min(480px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(14, 26, 43, .35); color: var(--ink); background: var(--paper); }
.donate::backdrop { background: rgba(14, 26, 43, .55); }
.donate__inner { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.donate__x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: var(--muted); }
.donate__title { font-family: var(--serif); font-size: 26px; line-height: 1.2; padding-right: 32px; }
.donate__text { color: var(--ink-2); }
.donate__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.donate__actions .btn { min-height: 46px; }
@media (max-width: 640px) {
  .donate { margin: auto auto 0; max-width: 100vw; width: 100vw; border-radius: 14px 14px 0 0; }
  .donate__inner { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
}

/* Тревога */
.alert { background: #A4161A; color: #fff; }
.alert__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 14px; }
.alert__tag { font-weight: 800; font-size: 15px; letter-spacing: .3px; background: #fff; color: #A4161A; padding: 6px 10px; border-radius: 4px; text-transform: uppercase; }
.alert__text { flex: 1 1 300px; font-size: 16px; font-weight: 500; }
.alert__links { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.alert__links a { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: #fff; }
.alert__links a:hover { background: rgba(255, 255, 255, .25); color: #fff; }
.alert--slim .alert__row { padding-block: 8px; font-size: 14px; }
.alert--slim a { color: #fff; display: inline-flex; gap: 8px; align-items: center; }
.alert--slim .alert__tag { font-size: 12px; padding: 3px 7px; }

/* Материал дня */
.feature { background: var(--ink); border-radius: 10px; overflow: hidden; }
.feature__body { display: flex; flex-wrap: wrap; color: #fff; }
.feature__body:hover { color: #fff; }
.feature__img { flex: 1 1 420px; min-width: 0; }
.feature__img .img { height: 100%; border-radius: 0; aspect-ratio: auto; min-height: 280px; }
.feature__text { flex: 1 1 420px; min-width: 0; padding: 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature__kicker { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #A9C6E8; }
.feature__title { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.15; font-weight: 700; text-wrap: balance; }
.feature__lead { font-size: 17px; color: #C9D5E3; }
.feature__more { font-weight: 600; color: #A9C6E8; }

/* Инфографика и фото дня */
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.day { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.day__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: #E8EDF2; }
.day__img--contain { object-fit: contain; }
.day__title { font-family: var(--serif); font-size: 19px; line-height: 1.3; font-weight: 600; }

/* Экран «Главная страница» */
.btn--danger { background: #A4161A; border-color: #A4161A; color: #fff; }
.btn--danger:hover { color: #fff; background: #861215; }
.chip--red { background: #A4161A; color: #fff; }
.ed-alert { display: flex; flex-direction: column; gap: 8px; border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; }
.ed-alert.is-on { border-color: #A4161A; background: #FFF5F5; }
.ed-alert input, .ed-alert textarea, .ed-slot select, .ed-slot input, .ed-row select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #B9C7D6; border-radius: 4px; background: #fff; min-width: 0; }
.ed-list { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding: 8px 0; font-size: 14px; }
.ed-slot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.ed-slot b { flex: 0 0 150px; }
.ed-slot select[name="post"] { flex: 1 1 320px; }
.ed-slot input { flex: 1 1 200px; }
.ed-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.ed-title { flex: 1 1 300px; min-width: 0; }
.article__body h2 { font-family: var(--sans); font-size: 22px; line-height: 1.3; margin: 28px 0 12px; }

/* Экран «Новости» */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.staff__filters select, .staff__filters input[type="text"], .staff__filters input:not([type]) { font: inherit; font-size: 14px; padding: 8px; border: 1px solid #B9C7D6; border-radius: 4px; width: 100%; }
.prow { padding: 12px 18px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.prow--off { background: #F6F7F9; }
.prow--off .prow__title { color: var(--muted); }
.prow__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; }
.prow__title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.prow select { font: inherit; font-size: 13px; padding: 6px; border: 1px solid #B9C7D6; border-radius: 4px; }
.edform { gap: 14px; }
.edform__row { display: flex; flex-direction: column; gap: 6px; }
.edform__row label { font-size: 13px; font-weight: 600; }
.edform__row input:not([type="checkbox"]), .edform__row textarea, .edform__row select { font: inherit; font-size: 15px; padding: 10px; border: 1px solid #B9C7D6; border-radius: 4px; width: 100%; }
.edform__row--check { flex-direction: row-reverse; justify-content: flex-end; align-items: center; }

/* Доска объявлений и «Что пишут местные СМИ» */
.board { background: var(--blue-soft); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.board__text { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.more--muted { color: var(--muted); }
.local-media { display: flex; flex-direction: column; gap: 4px; }
.story { display: flex; flex-direction: column; gap: 4px; padding: 11px 0; border-top: 1px solid var(--line); }
.story__title { font-family: var(--serif); font-size: 18px; line-height: 1.3; font-weight: 600; }
.story__src summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.story__src summary::-webkit-details-marker { display: none; }
.story__src[open] summary { margin-bottom: 6px; }
.story__src a { display: inline-block; margin: 0 12px 4px 0; font-size: 14px; color: var(--blue); }
.chip--story { background: #E6F0FB; color: var(--blue); }
@media (max-width: 640px) { .story__title { font-size: 16px; } }

/* Закрытый показ: пароль и «Кто вы?» */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 24px 16px; }
.gate__box { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.gate__box--wide { max-width: 760px; }
.gate__box form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.gate__box input[type="password"] { font: inherit; padding: 12px; border: 1px solid #B9C7D6; border-radius: 4px; }
.gate__title { font-family: var(--serif); font-size: 34px; line-height: 1; }
.gate__err { color: #A4161A; font-size: 14px; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 8px; }
.role { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid #B9C7D6; border-radius: 8px; background: #fff; }
.role:hover { border-color: var(--blue); }
.role.is-on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.role b { font-family: var(--serif); font-size: 20px; }
.role span { font-size: 14px; color: var(--ink-2); line-height: 1.4; flex: 1; }
.role i { font-style: normal; font-weight: 600; color: var(--blue); font-size: 14px; }
.rolebar { position: fixed; left: 12px; bottom: 12px; z-index: 50; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.rolebar:hover { color: #fff; opacity: .9; }
@media (max-width: 640px) { .roles { grid-template-columns: 1fr; } }

.footer__credit { padding-top: 0; padding-bottom: 24px; font-size: 13px; color: #8FA3BA; }
.footer__credit a { color: #C9D5E3; text-decoration: underline; text-underline-offset: 3px; }
a.pill { display: inline-flex; align-items: center; }
.pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pills { margin: 8px 0 16px; }
