/* ============================================================
   ШЕСТАКОВ — личный журнал. Светлая современная редакционная страница.
   Белый фон #fcfcfa · чернила #171916 · линии #d8d8d2
   Имя: Unbounded (локально). Публикации: Georgia. Навигация: рубленый.
   ============================================================ */

@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded-var.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fcfcfa;
  --ink: #171916;
  --ink-soft: #55564f;
  --line: #d8d8d2;
  --line-soft: #e8e8e2;
  --green: #1a5c43;
  --red: #e65048;
  --brand-green: oklch(43% .12 131);
  --brand-red: oklch(51% .2 24);
  --maxw: 1320px;
  --gutter: 32px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "PT Serif", serif;
  --name: 'Unbounded', 'Futura', 'Century Gothic', var(--sans);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- КАРКАС ---------- */

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

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 8px 14px; font-family: var(--sans); font-size: 13px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* метка внешней ссылки, покидающей макет */
.ext-mark { color: var(--ink-soft); font-size: 0.85em; }

/* ---------- ШАПКА ИЗДАТЕЛЯ (спокойная) ---------- */

.masthead { border-bottom: 1px solid var(--line); }
.masthead .container, .footer .container { max-width: 1184px; }
.masthead a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.masthead-top { flex-wrap: wrap; }
.masthead-top .mast-date { min-width: 0; }
.masthead-top a { border-bottom: 1px solid transparent; }
.masthead-top a:hover { border-bottom-color: var(--green); color: var(--green); }

.masthead-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 26px 0 22px;
}

.mast-motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.masthead-main > * { min-width: 0; }
.mast-name { text-align: center; container-type: inline-size; }

.mast-name .name-row {
  font-family: var(--name);
  font-weight: 600;
  font-size: clamp(23px, 5.8cqi, 44px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--brand-green);
  white-space: normal;
}

.mast-name .name-row .name-red { color: var(--brand-red); }
.mast-name a:hover { color: inherit; }

.mast-utility {
  text-align: right;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.mast-utility a { color: var(--ink-soft); }
.mast-utility a:hover { color: var(--green); }

/* ---------- РУБРИКИ: открытая строка, человеческий регистр ---------- */

.sections {
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
}

.sections-inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
  list-style: none;
  flex-wrap: wrap;
}

.sections-inner li { display: flex; min-width: 0; }

.sections-inner a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  min-height: 44px;
}

.sections-inner a:hover { color: var(--green); }
.sections-inner a.active {
  color: var(--green);
  font-weight: 600;
  border-bottom-color: var(--red);
}
.sections-inner a.q-link { color: var(--green); font-weight: 500; }
.sections-inner a.q-link:hover { color: var(--ink); }

/* ---------- КИКЕРЫ И ЗАГОЛОВКИ ---------- */

.kicker {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green);
  margin-bottom: 10px;
}
.kicker .k-red { color: var(--red); }

.figure { margin: 0 0 16px; }
.figure img { width: 100%; object-fit: cover; }
.figure figcaption {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 6px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 8px;
  line-height: 1.5;
}

.col-head {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 4px;
}

/* ---------- ГЛАВНАЯ: ТРИ КОЛОНКИ ---------- */

.front-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  padding: 30px 0 8px;
}

.front-col { min-width: 0; }
.front-col + .front-col { border-left: 1px solid var(--line); padding-left: 28px; }

.lead-story { display: flex; flex-direction: column; }
.lead-story .story-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 10px;
}
.lead-story .story-title:hover { color: var(--green); }

.story-dek {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.story-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* средняя колонка: фото сверху → рубрика → заголовок */
.mid-stack { display: flex; flex-direction: column; gap: 22px; }
.mid-story .figure { margin-bottom: 8px; }
.mid-story .figure img { aspect-ratio: 16 / 10; }
.mid-story .m-cat {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  display: block;
  margin-bottom: 4px;
}
.mid-story .story-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  display: block;
}
.mid-story .story-title:hover { color: var(--green); }

/* правая колонка «В журнале»: рубрика + заголовок 18/23, без повторов */
.in-journal { list-style: none; }
.in-journal li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.in-journal li:last-child { border-bottom: none; }
.in-journal .ij-cat {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green);
  display: block;
  margin-bottom: 3px;
}
.in-journal a.ij-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 23px;
  display: block;
}
.in-journal a.ij-title:hover { color: var(--green); }

/* ---------- БЛОК «ЕСТЬ ВОПРОС» ---------- */

.ask-strip {
  margin: 36px 0 0;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ask-strip .ask-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}
.ask-strip .ask-title .k-red { color: var(--red); }

.ask-strip .ask-note {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.5;
  margin-top: 4px;
}

.ask-strip .ask-cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  background: var(--green);
  padding: 12px 24px;
  white-space: nowrap;
}
.ask-strip .ask-cta:hover { background: var(--ink); color: var(--paper); }

.ask-topics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
}
.ask-topics span { border-bottom: 1px solid var(--line); padding-bottom: 3px; }

/* ---------- РЕДАКЦИОННАЯ СТРОКА ВНИЗУ ---------- */

.editors-row { padding: 30px 0 8px; }
.editors-row .col-head { margin-bottom: 14px; }
.editors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.er-item .er-cat {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green);
  display: block;
  margin-bottom: 4px;
}
.er-item a.er-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 22px;
  display: block;
}
.er-item a.er-title:hover { color: var(--green); }

.catalog-line {
  margin-top: 26px;
  padding: 16px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
}
.catalog-line a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  font-weight: 500;
}
.catalog-line a:hover { color: var(--green); border-bottom-color: var(--green); }

/* ---------- ПОДВАЛ ---------- */

.footer {
  margin-top: 26px;
  border-top: 2px solid var(--ink);
  padding: 18px 0 34px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: baseline;
}
.footer a:hover { color: var(--green); }
.footer .f-name {
  font-family: var(--name);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--brand-green);
  min-width: 0;
  max-width: 100%;
}
.footer .f-person, .footer .f-label { display: inline-block; }
.footer .name-red { color: var(--brand-red); }

/* ---------- СТРАНИЦА СТАТЬИ (по замерам эталона NS 1200/390) ---------- */

.article-wrap { max-width: 1184px; padding-top: 30px; padding-bottom: 10px; }
.article-page .masthead .container, .article-page .footer .container { max-width: 1184px; }

.article-head { max-width: 780px; }
.article-page .article-head { width: calc(100% - 340px); }
.article-head .kicker { margin-bottom: 12px; }
.article-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.article-dek {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.34;
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 760px;
}
.article-byline {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.article-byline .by-date {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 14px;
  margin-left: 10px;
}

/* единая сетка: фото/share/текст слева; автор и «По теме» справа с уровня фото */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.article-main { min-width: 0; }

.article-hero { margin: 0; }
.article-hero img { width: 100%; max-height: 560px; object-fit: cover; }
.article-hero figcaption {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 19px;
  color: #8a8a84;
  padding-top: 8px;
  margin-bottom: 14px;
}

/* полоса распространения: тонкая, монохромные SVG + текст */
.share-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
  margin-bottom: 30px;
}
.share-strip .share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  flex-wrap: wrap;
}
.share-strip .share-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-right: 2px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.share-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.share-btn:hover { border-color: var(--ink); color: var(--ink); }
.share-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

#copy-status {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--green);
  display: none;
}
#copy-status.visible { display: block; flex-basis: 100%; }
#copy-status.is-error { color: var(--red); }

.share-fallback {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 10px 0 0;
  padding: 8px 10px;
  background: #f3f3ee;
  word-break: break-all;
}
.share-fallback a { color: var(--green); border-bottom: 1px solid var(--green); }

.prose {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 28px;
}
.prose > p { margin-bottom: 28px; }

/* буквица первого повествовательного абзаца */
.prose.has-dropcap > p:first-of-type::first-letter {
  float: left;
  font-size: 56px;
  line-height: 56px;
  margin-right: 8px;
  margin-top: 2px;
  font-weight: 700;
  color: var(--green);
}
.prose h2 {
  font-size: 25px;
  line-height: 31px;
  font-weight: 600;
  margin: 44px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 8px; }
.prose h3 {
  font-size: 19px;
  margin: 32px 0 12px;
  color: var(--ink);
  font-weight: 600;
}
.prose ul { list-style: none; margin: 8px 0 28px; }
.prose ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}
.prose ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green);
}
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.prose a.inline-link {
  color: var(--green);
  border-bottom: 1px solid var(--green);
}
.prose a.inline-link:hover { color: var(--red); border-bottom-color: var(--red); }

.table-wrap {
  overflow-x: auto;
  margin: 1.1em 0 1.4em;
  -webkit-overflow-scrolling: touch;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.45;
}
.prose table th {
  font-family: var(--serif);
  font-size: 15px;
  text-align: left;
  font-weight: 700;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 10px 12px 8px;
}
.prose table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
  vertical-align: top;
}
.prose table tr:last-child td { border-bottom: 2px solid var(--ink); }

/* колонка справа: автор, затем Related с миниатюрами */
.on-topic {
  position: static;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  font-family: var(--serif);
  min-width: 0;
}
.ot-author {
  font-family: var(--sans);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.ot-author-name {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 6px;
}
.ot-author-note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.ot-ask {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
  border-bottom: 1px solid var(--green);
}
.ot-ask:hover { color: var(--red); border-bottom-color: var(--red); }
.on-topic .col-head { margin-bottom: 6px; }

.r-list { list-style: none; }
.r-list .r-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.r-list .r-item:last-child { border-bottom: none; }
.r-thumb { display: block; }
.r-thumb img {
  width: 84px;
  height: 56px;
  object-fit: cover;
}
.r-body .r-cat {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green);
  display: block;
  margin-bottom: 2px;
}
.r-body a.r-title {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.3;
  display: block;
}
.r-body a.r-title:hover { color: var(--green); }

/* авторский блок в конце статьи */
.author-box {
  margin-top: 40px;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.author-box .ab-text { max-width: 520px; }
.author-box .ab-name {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 8px;
}
.author-box .ab-name .k-red { color: var(--red); }
.author-box p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  font-family: var(--serif);
}
.author-box p + p { margin-top: 6px; }
.author-box .ab-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13.5px;
  min-width: 220px;
}
.author-box .ab-actions a {
  display: block;
  text-align: center;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 500;
}
.author-box .ab-actions a:hover { background: var(--ink); color: var(--paper); }
.author-box .ab-actions a.ab-main {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}
.author-box .ab-actions a.ab-main:hover { background: var(--ink); border-color: var(--ink); }
.author-box .ab-actions .ab-tel {
  border: none;
  text-align: center;
  padding: 2px 0 0;
  color: var(--ink-soft);
}
.author-box .ab-actions .ab-tel:hover { background: none; color: var(--green); }

.article-foot {
  overflow-wrap: anywhere;
  margin-top: 28px;
  padding: 14px 0 30px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- СТРАНИЦА «ОБО МНЕ» ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(280px, 380px);
  grid-template-areas: "body portrait" "body contact" "body .";
  grid-template-rows: auto auto 1fr;
  gap: 20px 48px;
  padding: 30px 0 10px;
  align-items: start;
}

.about-grid > .about-body { grid-area: body; min-width: 0; }
.about-grid > .about-portrait { grid-area: portrait; margin: 0; width: 100%; max-width: 480px; }
.about-portrait img { display: block; width: 100%; height: auto; }
.about-grid > .about-side { grid-area: contact; position: static; }

.about-prose {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
}
.about-prose > p { margin-bottom: 1.1em; }
.about-prose h2 {
  font-size: 22px;
  margin: 1.5em 0 0.5em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}
.about-prose h2:first-child { border-top: none; margin-top: 0.2em; padding-top: 0; }

.map-figure { margin: 0; }
.map-figure .map-frame {
  border: 1px solid var(--line);
  padding: 10px;
  background: #fff;
}
.map-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.map-figure figcaption {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 8px;
  line-height: 1.5;
}
.map-figure figcaption a { color: var(--green); border-bottom: 1px solid var(--green); }

/* портрет + контакт: фото сверху, контакты ниже */
.about-side {
  position: sticky;
  top: 24px;
  min-width: 0;
}
.portrait-figure { margin: 0 0 20px; }
.portrait-figure img { width: 100%; height: auto; }
.portrait-figure figcaption {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 6px;
  line-height: 1.5;
}
.about-side .contact-card {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  font-family: var(--sans);
}
.about-side .contact-card h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}
.about-side .contact-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 12px;
}
.about-side .contact-card a.c-link {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
}
.about-side .contact-card a.c-link:hover { background: var(--ink); color: var(--paper); }
.about-side .contact-card a.c-link.c-main {
  background: var(--green); border-color: var(--green); color: var(--paper);
}
.about-side .contact-card a.c-link.c-main:hover { background: var(--ink); border-color: var(--ink); }
.about-side .contact-card .c-tel { display: block; text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
.about-side .contact-card .c-tel:hover { color: var(--green); }

/* ---------- АДАПТИВ ---------- */

@media (max-width: 1120px) {
  .article-page .article-head { width: 100%; }
  .article-wrap { max-width: 844px; }
  .front-grid { grid-template-columns: 1fr 1fr; }
  .front-col--lead { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .front-col + .front-col { border-left: 1px solid var(--line); padding-left: 24px; }
  .front-col--journal { border-left: none; padding-left: 0; }
  .editors-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .on-topic { position: static; border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "portrait" "body" "contact"; grid-template-rows: auto; }
  .about-side { position: static; max-width: 480px; }
}

@media (max-width: 900px) {
  .article-title { font-size: 28px; line-height: 34px; }
  .article-dek { font-size: 20px; line-height: 27px; }
  .article-byline { font-size: 18px; line-height: 24px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }

  /* компактная читаемая мобильная шапка */
  .masthead-top { font-size: 11px; }
  .masthead-top .mast-place { display: none; }
  .masthead-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 18px 0 14px;
  }
  .mast-motto { order: 2; display: none; }
  .mast-name { order: 1; text-align: left; }
  .mast-name .name-row { font-size: clamp(23px, 6.7vw, 32px); line-height: 1.2; }
  .mast-utility {
    order: 3;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    font-size: 13.5px;
  }
  .sections-inner a { padding: 11px 12px; font-size: 13.5px; }

  .front-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .front-col + .front-col { border-left: none; padding-left: 0; }
  .mid-story .figure img { aspect-ratio: auto; }
  .prose { font-size: 18px; }
  .editors-grid { grid-template-columns: minmax(0, 1fr); }
  .ask-strip { flex-direction: column; align-items: flex-start; }
  .author-box { flex-direction: column; }
  .author-box .ab-actions { width: 100%; }
  .footer-inner { flex-direction: column; gap: 6px; }
  .share-strip { padding-bottom: 20px; margin-bottom: 28px; }
  .share-strip .share-row { gap: 8px; }
  .share-btn { padding: 0 12px; }
}

/* Доводка единственной эталонной статьи. */
.external-note { display: block; margin-top: 6px; font: 11px/16px var(--sans); color: var(--ink-soft); }
.article-page .r-list .r-item { display: block; padding: 18px 0; }
.article-page .r-thumb img { width: 100%; height: auto; aspect-ratio: 16/9; margin-bottom: 10px; }
.article-page .r-title { font-size: 20px; line-height: 25px; }
.article-page .on-topic .col-head { margin-top: 28px; font-size: 18px; }
.article-page .article-foot { max-width: 780px; }
.article-page a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (max-width: 1120px) and (min-width: 761px) {
  .article-page .r-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .article-wrap { padding-top: 24px; }
  .article-page .share-label { flex-basis: 100%; }
  .article-page .share-btn { padding: 0 10px; }
  .article-page .article-byline { font-size: 15px; }
  .article-page .article-byline .by-date { font-size: 13px; }
  .article-page .r-list .r-item { display: grid; grid-template-columns: 96px minmax(0,1fr); }
  .article-page .r-title { font-size: 18px; line-height: 23px; }
  .article-page .r-thumb img { margin-bottom: 0; }
}
