:root {
  color-scheme: light;
  --background: #fff;
  --surface: #f4f4f4;
  --text: #151515;
  --quiet: #555;
  --line: #d6d6d6;
  --accent: #bd2a22;
  --tag-text: #fff;
  --control: #fff;
  --telegram: #176b9d;
  --telegram-hover: #125880;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --background: #141414;
    --surface: #202020;
    --text: #f7f7f7;
    --quiet: #bfbfbf;
    --line: #414141;
    --accent: #ff766d;
    --tag-text: #141414;
    --control: #282828;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #141414;
  --surface: #202020;
  --text: #f7f7f7;
  --quiet: #bfbfbf;
  --line: #414141;
  --accent: #ff766d;
  --tag-text: #141414;
  --control: #282828;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.5 system-ui, sans-serif;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.page { width: min(1380px, calc(100% - 80px)); margin: auto; }
.skip { position: fixed; inset: 8px auto auto 8px; z-index: 1; background: var(--control); padding: 8px; transform: translateY(-140%); }
.skip:focus { transform: none; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-width: 0; gap: 15px; color: inherit; text-decoration: none; font-size: clamp(20px, 3vw, 42px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.brand-mark { flex: none; display: block; width: 72px; height: 65px; transform: translateY(.07em); }
.brand > span { transform: translateY(-.05em); }
.brand-tail { white-space: nowrap; }
.mast-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.icon { display: block; flex: none; width: 17px; height: 17px; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; }
.theme-toggle[data-theme="dark"] .icon, .telegram .icon { filter: invert(1); }
.theme-toggle:hover { background: var(--surface); }
.telegram { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border-radius: 8px; background: var(--telegram); color: #fff; font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.telegram:hover { background: var(--telegram-hover); }
footer a:hover { text-decoration: underline; }
.rubrics { display: flex; flex-wrap: wrap; gap: 3px clamp(16px, 3.5vw, 48px); border-bottom: 1px solid var(--line); }
.rubrics button { border: 0; color: var(--quiet); background: none; padding: 12px 0; font-weight: 650; }
.rubrics button[aria-pressed="true"] { color: var(--text); box-shadow: inset 0 -3px var(--accent); }
.rubrics button:hover { color: var(--text); }
.rubrics a { flex: none; display: block; color: var(--quiet); padding: 12px 0; font-weight: 650; text-decoration: none; }
.rubrics a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px var(--accent); }
.rubrics a:hover { color: var(--text); }
.edition { color: var(--quiet); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
main > .edition { padding: 17px 0 12px; }
.lead { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.feature { display: flex; flex-direction: column; min-width: 0; }
.lead-main { min-width: 0; align-self: start; }
.lead-main .feature figure { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
.lead-main .promotion[data-placement="home-top"] { width: 100%; margin: 20px 0 0; }
.lead:has(.feature[hidden]) { grid-template-columns: minmax(0, 640px); }
.lead:has(.latest[hidden]) { grid-template-columns: minmax(0, 1fr); }
.feature figure { position: relative; flex: 1; min-height: clamp(220px, 21vw, 300px); }
.news-cover { display: block; min-width: 0; overflow: hidden; border-radius: 7px; }
.feature .news-cover { position: absolute; inset: 0; border-radius: 9px; }
.news-cover:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; border-radius: 9px; }
.feature h1 { max-width: none; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -.035em; }
.feature figcaption { position: absolute; bottom: 10px; right: 11px; padding: 3px 6px; color: white; background: #222e; font-size: 11px; border-radius: 4px; }
.tag { width: max-content; background: var(--accent); color: var(--tag-text); font-weight: 750; font-size: 13px; padding: 2px 10px; border-radius: 4px; margin: 14px 0 8px; }
h1 { max-width: 24ch; font-size: clamp(30px, 4.2vw, 66px); letter-spacing: -.048em; font-weight: 830; line-height: 1.02; }
[data-story] { color: inherit; background: none; border: 0; padding: 0; text-align: left; font: inherit; letter-spacing: inherit; }
[data-story]:hover { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .13em; }
.story-title { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.story-title:hover { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .13em; }
.latest { border-top: 2px solid var(--text); }
.latest article > img, .latest article > .news-cover { display: none; }
.latest[data-fitted] { display: flex; flex-direction: column; height: var(--lead-height); }
.latest[data-fitted] > article { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.latest h2 { font-size: 22px; letter-spacing: -.03em; padding: 7px 0; }
.latest article { padding: 13px 0; border-top: 1px solid var(--line); }
.latest article p, .story p { color: var(--quiet); font-size: 12px; font-weight: 750; margin-bottom: 4px; }
.latest article h3 { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.2; letter-spacing: -.024em; }
.more { margin-top: 25px; padding-top: 11px; border-top: 1px solid var(--line); }
.more h2 { font-size: 20px; margin-bottom: 12px; }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.story:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.story img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }
.story h3 { font-size: clamp(15px, 1.6vw, 21px); line-height: 1.17; letter-spacing: -.015em; }
.snapshot .stories { row-gap: 0; }
.snapshot .feature img { object-position: center top; }
.snapshot .story { border-bottom: 1px solid var(--line); padding: 15px 0; }
.snapshot .story h3, .snapshot .latest h3, .snapshot h1 { overflow-wrap: anywhere; }
.story-date { display: block; margin-top: 6px; font-size: 12px; color: var(--quiet); }
.article-examples { max-width: 640px; margin-top: 16px; }
.site-search { margin: 16px 0 0; }
.site-search form { display: grid; grid-template-columns: minmax(0, 390px) auto; justify-content: start; gap: 6px 8px; }
.site-search label { grid-column: 1 / -1; color: var(--quiet); font-size: 13px; font-weight: 650; }
.site-search input, .site-search button { font: inherit; min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; color: var(--text); background: var(--control); }
.site-search button { font-weight: 700; }
.search-status { margin-top: 5px; color: var(--quiet); font-size: 13px; }
.section-title { margin: 24px 0 16px; }
.topic-list { margin: 18px 0; }
.breadcrumb { padding: 18px 0 10px; color: var(--quiet); font-size: 14px; }
.reading { width: min(100%, 790px); margin: 7px auto 30px; }
.reading h1 { max-width: none; font-size: clamp(29px, 4.1vw, 56px); overflow-wrap: anywhere; margin: 8px 0 18px; }
.reading figure { margin: 0 0 20px; }
.reading figure img { display: block; width: 100%; max-height: 460px; object-fit: contain; background: var(--surface); border-radius: 9px; }
.reading figcaption { margin-top: 5px; color: var(--quiet); font-size: 12px; }
.article-text { font-size: clamp(16px, 2vw, 19px); line-height: 1.62; overflow-wrap: anywhere; }
.article-text p + p { margin-top: 1em; }
.article-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 24px; }
.draft-list { padding-left: 21px; }
.draft-list li { margin: 8px 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-heading a { color: var(--accent); font-size: 14px; font-weight: 750; white-space: nowrap; }
.editorial { margin-top: 34px; border-top: 2px solid var(--text); }
.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.editorial-search-archive { margin-top: 12px; }
.editorial-card { --card-padding: clamp(12px, 2vw, 20px); padding: var(--card-padding); min-width: 0; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.editorial-cover { display: block; margin: calc(-1 * var(--card-padding)) calc(-1 * var(--card-padding)) 14px; overflow: hidden; border-radius: 9px 9px 0 0; }
.editorial-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .news-cover img, .editorial-cover img { transition: transform 240ms ease-out; }
  .news-cover:hover img, .editorial-cover:hover img { transform: scale(1.025); }
}
.reading figure.editorial-hero img { width: 100%; height: auto; max-height: none; aspect-ratio: 16 / 9; object-fit: cover; }
.editorial-card .edition { color: var(--accent); }
.editorial-card h3 { font-size: clamp(17px, 2vw, 23px); line-height: 1.18; margin: 9px 0; }
.editorial-card h3 a { text-decoration: none; }
.editorial-card h3 a:hover { text-decoration: underline; }
.editorial-card > p:last-child { color: var(--quiet); font-size: 14px; }
.daily-poll { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(14px, 4vw, 42px); margin: 22px 0 32px; border-radius: 12px; padding: clamp(16px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.daily-poll h2 { font-size: clamp(24px, 3.4vw, 38px); line-height: 1.1; margin: 6px 0 9px; }
.poll-note, .poll-status { color: var(--quiet); font-size: 14px; }
.poll-status:empty { display: none; }
.poll-status { margin-top: 8px; }
.poll-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 10px; }
.poll-options label { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 5px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--control); font-size: 14px; cursor: pointer; }
.poll-options input, .poll-results progress { accent-color: var(--accent); }
.daily-poll button { min-height: 42px; padding: 5px 14px; border: 0; border-radius: 7px; background: var(--accent); color: var(--tag-text); font: inherit; font-weight: 750; }
.daily-poll button:disabled { opacity: .65; }
.poll-results { padding: 0; list-style: none; display: grid; gap: 6px; }
.poll-results li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; font-size: 14px; }
.poll-results progress { grid-column: 1 / -1; width: 100%; }
.article-lead { font-weight: 650; }
.article-text h2 { margin: 22px 0 6px; font-size: 1.3em; }
.editorial-links { padding-left: 20px; margin-top: 14px; }
.editorial-disclosure { color: var(--quiet); font-size: 14px; }
.promotion { width: min(100%, 520px); margin: 20px auto; grid-column: 1 / -1; }
.stories > .promotion[data-placement="home-feed"] { grid-column: auto; width: 100%; min-width: 0; margin: 0; align-self: start; }
.promotion[data-placement="article"] { width: min(100%, 480px); margin: 20px auto; }
.promotion-card { display: block; position: relative; overflow: hidden; border-radius: 10px; text-decoration: none; border: 1px solid #5b9e9560; }
.promotion-dark { color: #defbf0; background: #092f30; }
.promotion-light { color: #063637; background: #d9f7eb; }
.promotion-copy { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.promotion-art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
.promotion-card:hover { border-color: #5b9e95; }
.promotion-wide { margin: 18px auto; }
.empty { margin: 25px 0; color: var(--quiet); }
footer { margin: 28px 0 15px; padding: 13px 0 20px; border-top: 1px solid var(--line); display: flex; gap: 15px; justify-content: space-between; flex-wrap: wrap; color: var(--quiet); font-size: 13px; }
footer a { text-decoration: none; }
dialog { background: var(--background); color: var(--text); border: 1px solid var(--line); border-radius: 12px; width: min(620px, calc(100vw - 30px)); max-height: calc(100dvh - 32px); padding: clamp(16px, 4vw, 25px); }
dialog::backdrop { background: #151515b5; }
dialog h2 { margin: 8px 0 13px; font-size: clamp(24px, 5vw, 33px); line-height: 1.1; }
dialog form { text-align: right; }
dialog form button { background: var(--control); color: inherit; border: 1px solid var(--line); border-radius: 5px; padding: 5px 9px; }
.story-telegram { margin: 0 0 16px; }
.story-media { display: block; width: 100%; max-height: 255px; object-fit: contain; border-radius: 7px; margin-bottom: 14px; background: var(--surface); }
#story-body { white-space: pre-wrap; overflow-wrap: anywhere; }
#story-link { display: inline-block; margin-top: 15px; color: var(--accent); }

@media (max-width: 900px) {
  .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-grid > .editorial-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .page { width: calc(100% - 44px); }
  .brand-mark { width: 60px; height: 54px; }
  .lead { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 22px; }
  .stories { gap: 15px; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media (max-width: 660px) {
  .page { width: calc(100% - 32px); }
  .masthead { gap: 8px; padding: 12px 0; }
  .brand { font-size: clamp(15px, 4.7vw, 24px); gap: 7px; }
  .brand-mark { width: 38px; height: 35px; }
  .mast-actions { gap: 3px; }
  .telegram { gap: 5px; padding: 0 9px; font-size: 13px; }
  .telegram .icon { width: 14px; height: 14px; }
  .rubrics { gap: 0 12px; }
  .rubrics button { flex: none; font-size: 12px; padding: 10px 0; }
  .rubrics a { font-size: 12px; padding: 10px 0; }
  .lead { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .feature figure { flex: none; min-height: 0; aspect-ratio: 1.65; }
  .feature h1 { font-size: clamp(27px, 6.6vw, 32px); }
  .stories { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .story { grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: 12px; }
  .story h3 { font-size: 17px; }
  .daily-poll { grid-template-columns: minmax(0, 1fr); }
  .editorial-card > p:last-child { display: none; }
}
