/* Краснослободск Онлайн — районная интернет-газета.
   Зелёный — цвет герба района; PT Sans / PT Serif — шрифты ParaType, привычные по региональным изданиям. */

@font-face { font-family: 'PT Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/pt-sans-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/pt-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PT Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/pt-sans-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/pt-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/pt-serif-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/pt-serif-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ Токены ============ */
:root {
  --green-950: oklch(0.29 0.06 152);
  --green-900: oklch(0.37 0.075 152);   /* навигация, подвал */
  --green-700: oklch(0.45 0.095 152);   /* заголовки-ссылки, кнопки */
  --green-600: oklch(0.52 0.1 150);
  --sage: oklch(0.72 0.045 150);        /* полоса под навигацией */
  --sage-soft: oklch(0.93 0.018 150);
  --surface: oklch(0.962 0.006 150);    /* плашки рубрик и заголовков разделов */
  --line: oklch(0.885 0.01 150);
  --ink: oklch(0.23 0.012 150);
  --ink-2: oklch(0.42 0.012 150);       /* даты, подписи — 7:1 на белом */
  --red: oklch(0.5 0.17 27);            /* «Важно», 18+ */
  --gold: oklch(0.8 0.14 85);
  --bg: #fff;

  --font: 'PT Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-brand: 'PT Serif', Georgia, 'Times New Roman', serif;

  --container: 1260px;
  --gap: 28px;
  --radius: 3px;
}

/* ============ Основа ============ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-600); }

h1, h2, h3 { line-height: 1.2; text-wrap: balance; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

.hp { position: absolute; left: -9999px; }

/* ============ Верхняя строка ============ */
.topbar { border-bottom: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-2); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar__social { color: var(--ink-2); display: inline-flex; }
.topbar__social:hover { color: var(--green-700); }

.a11y-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 0.8125rem; font-weight: 700; color: #fff;
  background: var(--green-700); border: 0; border-radius: var(--radius);
  padding: 5px 10px; cursor: pointer;
}
.a11y-toggle:hover { background: var(--green-900); }

/* ============ Шапка ============ */
.masthead { position: relative; overflow: hidden; }
.masthead__inner { position: relative; display: flex; align-items: center; min-height: 168px; padding-top: 18px; padding-bottom: 18px; }

.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; color: var(--green-700); }
.brand:hover { color: var(--green-700); }
.brand__text { display: flex; flex-direction: column; }
.brand__kicker { font-size: 0.9375rem; color: var(--ink); margin-bottom: 2px; }
.brand__name {
  font-family: var(--font-brand); font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.01em;
  padding-bottom: 8px; border-bottom: 4px solid var(--green-700);
}
.brand__online { color: var(--green-600); font-size: 0.62em; letter-spacing: 0; }
.brand__emblem { width: 104px; height: auto; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.15)); }
.brand__emblem--mobile { display: none; width: 54px; }

/* Фото города уходит в белый слева — как на бумажной газете с фотошапкой */
.masthead__photo {
  position: absolute; z-index: 1; top: 0; bottom: 0; left: 50%; right: 150px;
  background-size: cover; background-position: center 40%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%);
  mask-image: linear-gradient(to right, transparent 0, #000 38%);
}
.masthead__badges { position: relative; z-index: 2; margin-left: auto; display: flex; align-items: center; gap: 22px; }

.age-badge {
  display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none;
  border: 2px solid var(--green-900); border-radius: 50%; background: #fff;
  font-weight: 700; font-size: 1.1rem; color: var(--ink);
}
.age-badge--small { width: 30px; height: 30px; font-size: 0.75rem; border-width: 1.5px; border-color: currentColor; background: none; color: inherit; vertical-align: middle; margin-right: 6px; }

/* ============ Навигация ============ */
.mainnav { background: var(--sage); }
.mainnav__inner { display: flex; align-items: stretch; background: var(--green-900); padding: 0; }
.mainnav__links { display: flex; overflow-x: auto; scrollbar-width: none; flex: 1; }
.mainnav__links::-webkit-scrollbar { display: none; }
.mainnav__links a {
  flex: none; display: flex; align-items: center; padding: 0 18px; min-height: 58px;
  color: #fff; font-size: 1.0625rem; font-weight: 700;
}
.mainnav__links a:hover { background: var(--green-950); color: #fff; }
.mainnav__links a[aria-current='page'] { background: var(--green-700); }

.mainnav__search { display: flex; align-items: center; gap: 0; padding: 0 16px; background: var(--sage); }
.mainnav__search input {
  width: 260px; height: 34px; padding: 0 10px; border: 1px solid #fff; border-right: 0;
  font: inherit; font-size: 0.9375rem; color: var(--ink); background: #fff; border-radius: 0;
}
.mainnav__search input::placeholder { color: var(--ink-2); }
.mainnav__search button {
  display: grid; place-items: center; width: 36px; height: 34px; border: 0;
  background: var(--green-900); color: #fff; cursor: pointer;
}
.mainnav__search button:hover { background: var(--green-950); }

.rubric-strip { display: none; border-bottom: 1px solid var(--line); background: var(--surface); }
.rubric-strip__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.rubric-strip__inner::-webkit-scrollbar { display: none; }
.rubric-strip a { flex: none; padding: 5px 12px; border: 1px solid var(--line); background: #fff; border-radius: 20px; font-size: 0.9375rem; }
.rubric-strip a[aria-current='page'] { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ============ Колонки ============ */
.page {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 290px;
  grid-template-areas: 'left main right';
  gap: var(--gap);
  padding-top: 32px; padding-bottom: 56px;
}
.page--single { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'main'; }
.col-main { grid-area: main; min-width: 0; }
.col-left { grid-area: left; min-width: 0; }
.col-right { grid-area: right; min-width: 0; }
.col-main > section + section { margin-top: 40px; }

/* Заголовок раздела: серая плашка с зелёной чертой снизу */
.section-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 20px; padding: 10px 16px 9px;
  background: var(--surface); border-bottom: 2px solid var(--green-700);
  font-size: 1.625rem; font-weight: 700; color: var(--ink);
}
.section-h a:first-child:hover { color: var(--green-700); }
.section-h__more { font-size: 0.9375rem; font-weight: 400; color: var(--green-700); white-space: nowrap; }
.section-h__more::after { content: ' →'; }
.section-h .count { font-size: 1rem; color: var(--ink-2); font-weight: 400; }

/* ============ Метаданные ============ */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; font-size: 0.9375rem; color: var(--ink-2); }
.meta > * { display: inline-flex; align-items: center; gap: 5px; }
.meta__age { font-weight: 700; }
.meta a:hover { color: var(--green-700); }

.flag { display: inline-block; margin-left: 8px; padding: 0 6px; background: var(--red); color: #fff; font-size: 0.75rem; font-weight: 700; border-radius: 2px; line-height: 1.6; }

.noimg { display: block; width: 100%; height: 100%; background: var(--sage-soft) url(/static/img/emblem.png) center / auto 46% no-repeat; }

/* ============ Материалы ============ */
.story-lead { background: var(--surface); }
.story-lead__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sage-soft); }
.story-lead__media img { width: 100%; height: 100%; object-fit: cover; }
.story-lead__body { padding: 16px 20px 22px; }
.story-lead__title { margin: 8px 0 10px; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--green-700); }
.story-lead__title a:hover { color: var(--green-600); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.story-lead__lead { margin: 0; font-size: 1.125rem; color: var(--ink); max-width: 64ch; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story-tile__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 10px; background: var(--sage-soft); }
.story-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s ease-out; }
.story-tile__media:hover img { opacity: 0.88; }
.story-tile__title { margin: 6px 0 0; font-size: 1.1875rem; color: var(--green-700); }
.story-tile__title a:hover { color: var(--green-600); text-decoration: underline; text-underline-offset: 3px; }

.newslist { display: flex; flex-direction: column; }
.story-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.newslist .story-row:first-child { padding-top: 0; }
.story-row__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sage-soft); align-self: start; }
.story-row__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s ease-out; }
.story-row__media:hover img { opacity: 0.88; }
.story-row__kicker { margin: 0 0 4px; font-size: 0.875rem; font-weight: 700; color: var(--ink-2); }
.story-row__kicker a:hover { color: var(--green-700); }
.story-row__title { margin: 0 0 6px; font-size: 1.25rem; color: var(--green-700); }
.story-row__title a:hover { color: var(--green-600); text-decoration: underline; text-underline-offset: 3px; }
.story-row__lead { margin: 0 0 8px; color: var(--ink); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-row.is-important .story-row__title { color: var(--red); }

.more { margin: 22px 0 0; text-align: center; }

/* Блок рубрики на главной: материал с фото + список заголовков */
.rubric-block__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.rubric-block__list { list-style: none; margin: 0; padding: 0; }
.rubric-block__list li { padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.rubric-block__list li:last-child { border-bottom: 0; }
.rubric-block__list a { display: block; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--green-700); }
.rubric-block__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rubric-block__list time { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--ink-2); }

/* ============ Левая колонка ============ */
.rubrics ul { list-style: none; margin: 0; padding: 0; background: var(--surface); }
.rubrics li + li { border-top: 1px solid var(--line); }
.rubrics a { display: block; padding: 12px 16px; color: var(--ink-2); font-size: 1.0625rem; }
.rubrics a:hover { background: var(--sage-soft); color: var(--green-900); }
.rubrics a[aria-current='page'] { background: var(--green-700); color: #fff; font-weight: 700; }

.widget { margin-top: 32px; }
.col-right .widget:first-child { margin-top: 0; }
.widget__title { margin: 0 0 12px; padding-left: 18px; font-size: 1.625rem; }

.calendar { border: 1px solid var(--line); padding: 12px; }
.calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; }
.calendar__step { display: grid; place-items: center; width: 30px; height: 30px; font-size: 1.5rem; line-height: 1; color: var(--ink-2); border-radius: var(--radius); }
a.calendar__step:hover { background: var(--surface); color: var(--green-700); }
.calendar table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.9375rem; }
.calendar th { padding: 6px 0; background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: 0.8125rem; border: 1px solid var(--line); }
.calendar td { padding: 0; text-align: center; border: 1px solid var(--line); height: 32px; }
.calendar td span { color: oklch(0.62 0.01 150); }
.calendar td a { display: grid; place-items: center; height: 32px; color: var(--green-700); font-weight: 700; }
.calendar td a:hover { background: var(--sage-soft); }
.calendar td.is-today { box-shadow: inset 0 0 0 2px var(--gold); }
.calendar td a[aria-current='date'] { background: var(--green-700); color: #fff; }

.share-cta { margin-top: 32px; padding: 20px 18px; background: var(--green-900); color: #fff; }
.share-cta h2 { margin: 0 0 8px; font-size: 1.375rem; }
.share-cta p { margin: 0 0 16px; font-size: 0.9375rem; color: oklch(0.92 0.02 150); }
.share-cta .btn { background: var(--gold); color: var(--green-950); }
.share-cta .btn:hover { background: #fff; color: var(--green-950); }

/* ============ Правая колонка ============ */
.popular { list-style: none; margin: 0; padding: 0 2px; }
.popular li { padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.popular li:last-child { border-bottom: 0; margin-bottom: 0; }
.popular__title { display: block; margin-bottom: 6px; font-size: 1.125rem; font-weight: 700; line-height: 1.28; color: var(--green-700); }
.popular__title:hover { text-decoration: underline; text-underline-offset: 3px; }

.ext-feed { list-style: none; margin: 0; padding: 0 2px; }
.ext-feed li { padding: 0 0 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.35; }
.ext-feed li:last-child { border-bottom: 0; }
.ext-feed a:hover { color: var(--green-700); text-decoration: underline; }

.sticky { position: sticky; top: 16px; margin-top: 28px; }

/* ============ Реклама ============ */
.ad { margin: 0 0 24px; }
.ad img { margin: 0 auto; }
.ad__label { margin: 4px 0 0; font-size: 0.75rem; color: var(--ink-2); }
.ad--header { max-width: var(--container); margin: 20px auto 0; padding: 0 20px; }
.col-left .ad { margin-top: 28px; }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px; border: 2px solid transparent; border-radius: var(--radius);
  background: var(--green-700); color: #fff; font: inherit; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: background-color 0.15s ease-out;
}
.btn:hover { background: var(--green-900); color: #fff; }
.btn--outline { background: #fff; color: var(--green-700); border-color: var(--green-700); }
.btn--outline:hover { background: var(--green-700); color: #fff; }

/* ============ Страницы списков ============ */
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 14px; padding: 0; font-size: 0.875rem; color: var(--ink-2); }
.breadcrumbs li + li::before { content: '/'; margin: 0 8px; color: var(--line); }
.breadcrumbs a:hover { color: var(--green-700); text-decoration: underline; }
.breadcrumbs [aria-current] { display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.page-head { margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--green-700); }
.page-head h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.page-head__page { color: var(--ink-2); font-weight: 400; font-size: 0.7em; }
.page-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 70ch; }

.empty { color: var(--ink-2); }

.searchbox { display: flex; gap: 8px; margin: 0 0 24px; }
.searchbox input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--ink-2); border-radius: var(--radius); font: inherit; }

.archive-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.archive-nav__form { display: flex; gap: 8px; }
.archive-nav__form input { height: 42px; padding: 0 10px; border: 1px solid var(--ink-2); border-radius: var(--radius); font: inherit; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination__page, .pagination__step {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; color: var(--green-700);
}
.pagination a:hover { border-color: var(--green-700); background: var(--sage-soft); color: var(--green-900); }
.pagination__page.is-current { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pagination__gap { color: var(--ink-2); padding: 0 4px; }

/* ============ Статья ============ */
.draft-banner { margin: 0 0 16px; padding: 10px 14px; background: oklch(0.95 0.06 90); border: 1px solid var(--gold); font-weight: 700; }

.article__rubric { display: inline-block; margin-bottom: 10px; padding: 2px 10px; background: var(--green-700); color: #fff; font-size: 0.875rem; font-weight: 700; border-radius: 2px; }
.article__rubric:hover { background: var(--green-900); color: #fff; }
.article__title { margin: 0 0 12px; font-size: clamp(1.75rem, 3.2vw, 2.375rem); line-height: 1.15; }
.meta--article { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.article__lead { margin: 0 0 22px; font-size: 1.25rem; font-weight: 700; line-height: 1.45; max-width: 66ch; }

.article__cover { margin: 0 0 24px; }
.article__cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

figcaption { margin-top: 6px; font-size: 0.875rem; color: var(--ink-2); }
.figure__credit { font-style: italic; }

.prose { font-size: 1.125rem; line-height: 1.65; max-width: 68ch; text-wrap: pretty; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: 1.5rem; margin: 1.5em 0 0.5em; }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 0.5em; }
.prose h4 { font-size: 1.125rem; margin: 1.3em 0 0.4em; }
.prose a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--green-600); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--green-700); }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; background: var(--surface); border-top: 3px solid var(--green-700); font-size: 1.1875rem; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { width: 100%; margin: 1.4em 0; }
.prose figure { margin: 1.4em 0; }
.prose figure img { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--surface); }

.video { margin: 1.4em 0; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 24px 0; max-width: 68ch; }
.gallery .figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.article__foot { max-width: 68ch; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.article__authors, .article__source { margin: 0 0 8px; }
.article__source a { color: var(--green-700); text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0; padding: 0; }
.tags a { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); background: var(--surface); font-size: 0.9375rem; color: var(--ink-2); border-radius: 2px; }
.tags a:hover { border-color: var(--green-700); color: var(--green-700); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.share__label { color: var(--ink-2); margin-right: 4px; }
.share__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); color: #fff; font-weight: 700; font-size: 0.875rem; }
.share__btn:hover { color: #fff; filter: brightness(0.9); }
.share__btn--vk { background: #0077ff; }
.share__btn--telegram { background: #229ed9; }
.share__btn--ok { background: #ee8208; }
.share__btn--wa { background: #1fa855; }

.related, .comments { margin-top: 40px; }

.comments__list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment__head { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.comment__head time { color: var(--ink-2); font-size: 0.875rem; }
.comment__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sage-soft); color: var(--green-900); font-weight: 700; }
.comment__text { margin: 0; padding-left: 44px; white-space: pre-line; }

/* ============ Формы ============ */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field label { font-weight: 700; font-size: 0.9375rem; }
.form__field input, .form__field select, .form__field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--ink-2); border-radius: var(--radius);
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.form__field textarea { resize: vertical; min-height: 110px; }
.form__field input:focus, .form__field select:focus, .form__field textarea:focus { outline: 2px solid var(--green-700); outline-offset: 0; border-color: var(--green-700); }
.form .btn { align-self: flex-start; }
.form__hint { margin: -6px 0 0; font-size: 0.875rem; color: var(--ink-2); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink-2); }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-700); flex: none; }
.checkbox a { color: var(--green-700); text-decoration: underline; }
.form__status { margin: 0; padding: 12px 14px; border-radius: var(--radius); font-weight: 700; }
.form__status.is-ok { background: var(--sage-soft); color: var(--green-900); border: 1px solid var(--sage); }
.form__status.is-error { background: oklch(0.96 0.03 27); color: var(--red); border: 1px solid oklch(0.85 0.07 27); }

.feedback { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: start; }
.contacts-box { padding: 18px; background: var(--surface); }
.contacts-box h2 { margin: 0 0 10px; font-size: 1.25rem; }
.contacts-box p { margin: 0 0 8px; font-size: 0.9375rem; }
.contacts-box a { color: var(--green-700); }

/* ============ Партнёры ============ */
.partners-strip__list { display: flex; flex-wrap: wrap; gap: 12px; }
.partner-logo { display: grid; place-items: center; width: 150px; height: 80px; padding: 10px; border: 1px solid var(--line); font-weight: 700; text-align: center; font-size: 0.875rem; }
.partner-logo:hover { border-color: var(--green-700); }
.partner-logo img { max-height: 58px; width: auto; }

.partners { list-style: none; margin: 0; padding: 0; }
.partner { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.partner__logo { display: grid; place-items: center; width: 110px; height: 80px; background: var(--surface); font-size: 2rem; font-weight: 700; color: var(--green-700); }
.partner__logo img { max-height: 64px; width: auto; }
.partner h2 { margin: 0 0 6px; font-size: 1.25rem; }
.partner p { margin: 0 0 6px; color: var(--ink-2); }
.partner a { color: var(--green-700); text-decoration: underline; }
.cta-box { margin-top: 32px; padding: 22px; background: var(--surface); border-top: 3px solid var(--green-700); }
.cta-box h2 { margin: 0 0 8px; }
.cta-box p { margin: 0 0 14px; }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }

/* ============ 404 ============ */
.not-found { max-width: 620px; margin: 24px auto; text-align: center; }
.not-found__code { margin: 0; font-family: var(--font-brand); font-size: 6rem; line-height: 1; color: var(--green-700); }
.not-found h1 { margin: 10px 0; }
.not-found .searchbox { margin: 24px 0; }
.not-found__links { display: flex; justify-content: center; gap: 10px; }

/* ============ Подвал ============ */
.footer { background: var(--green-900); color: oklch(0.93 0.015 150); font-size: 0.9375rem; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-family: var(--font-brand); font-weight: 700; font-size: 1.5rem; color: #fff; }
.footer__brand img { width: 40px; }
.footer__about p { margin: 0 0 14px; }
.footer__socials { display: flex; gap: 14px; }
.footer__title { margin: 0 0 12px; font-size: 1.125rem; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer__contacts { font-style: normal; }
.footer__contacts p { margin: 0 0 6px; }
.footer__small { margin: 8px 0 0; font-size: 0.875rem; }
.footer__legal { padding-top: 18px; padding-bottom: 24px; border-top: 1px solid oklch(0.47 0.06 152); font-size: 0.8125rem; color: oklch(0.86 0.02 150); }
.footer__legal p { margin: 0 0 8px; }
.footer__registry, .footer__credit { opacity: 0.85; }
.footer__credit a { text-decoration: underline; }

/* ============ Версия для слабовидящих ============ */
html.a11y { font-size: 125%; }
html.a11y body { --ink-2: #000; --ink: #000; --surface: #fff; --sage-soft: #fff; --line: #000; line-height: 1.6; }
html.a11y .masthead__photo { display: none; }
html.a11y a { text-decoration: underline; }
html.a11y .story-row__lead, html.a11y .prose { max-width: none; }
html.a11y img:not(.brand__emblem) { filter: grayscale(1) contrast(1.1); }
html.a11y .section-h { background: #fff; border-bottom-width: 3px; }

/* ============ Адаптив ============ */
@media (max-width: 1180px) {
  .page { grid-template-columns: minmax(0, 1fr) 280px; grid-template-areas: 'main right' 'left right'; }
  .col-left { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 var(--gap); align-items: start; }
  .col-left .rubrics { display: none; }
  .col-left > * { margin-top: 0 !important; }
  .rubric-strip { display: block; }
  .masthead__photo { right: 120px; }
  .brand__emblem { width: 84px; }
  .mainnav__search input { width: 200px; }
}

@media (max-width: 860px) {
  .page { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'main' 'right' 'left'; padding-top: 20px; }
  .col-right { border-top: 2px solid var(--green-700); padding-top: 24px; }
  .topbar__date { display: none; }
  .masthead__photo { left: 45%; right: 0; opacity: 0.5; }
  .masthead__badges .brand__emblem { display: none; }
  .brand__emblem--mobile { display: block; }
  .masthead__inner { min-height: 0; }
  .mainnav__inner { flex-direction: column; }
  .mainnav__search { padding: 10px 12px; }
  .mainnav__search input { width: 100%; flex: 1; }
  .mainnav__links a { min-height: 48px; padding: 0 14px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .feedback { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .mainnav__inner { padding: 0; }
  .topbar__inner { align-items: flex-start; gap: 10px; padding-top: 7px; padding-bottom: 7px; }
  .topbar__social { display: none; }
  .a11y-toggle { padding: 7px; }
  .a11y-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar__info { gap: 2px 14px; }
  .brand__kicker { font-size: 0.8125rem; }
  .brand { gap: 10px; }
  .brand__name { font-size: clamp(1.4rem, 6.6vw, 2.2rem); border-bottom-width: 3px; padding-bottom: 5px; }
  .brand__emblem--mobile { width: 46px; }
  .masthead__badges { display: none; }
  .masthead__photo { display: none; }
  .story-lead__body { padding: 14px; }
  .tiles, .tiles--4, .rubric-block__grid { grid-template-columns: 1fr; }
  .story-row { grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .story-row__title { font-size: 1.0625rem; }
  .story-row__lead { display: none; }
  .story-row .meta { font-size: 0.8125rem; }
  .section-h { font-size: 1.375rem; padding: 8px 12px 7px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .comment__text { padding-left: 0; }
  .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
