/* ==========================================================================
   Два садовода — журнал о саде, огороде и жизни на участке
   Идея: «Альманах грядки». Страница размечена как участок: борозды-линейки,
   ряды семян-точек, цвет направления, пиктограмма рубрики, книжный шрифт.
   Архитектура: 4 направления × 2 рубрики.
   ========================================================================== */

/* ---------- Шрифты (Codex загружает файлы в assets/fonts) ---------- */
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-italic-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Токены ---------- */
:root {
  --paper: #f3eee3;
  --paper-2: #e9e1d0;
  --paper-3: #ded3bd;
  --card: #fbf8f1;
  --ink: #1e1a15;
  --ink-2: #463e34;
  --muted: #6e6557;
  --line: #d3c8b2;
  --soil: #2a2119;
  --soil-2: #3a2e23;

  --leaf: #24402c;
  --leaf-2: #3e6b47;
  --tomato: #b53f25;
  --pollen: #e3b23c;
  --mallow: #a3476e;
  --loam: #7a5233;

  /* цвет текущего направления, переопределяется классами .r-* */
  --rc: var(--leaf-2);

  --serif: "Literata", "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Onest", "Segoe UI", "PT Sans", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 68px;

  --fs-0: 0.8125rem;
  --fs-1: 0.9375rem;
  --fs-2: 1.0625rem;
  --fs-3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-4: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --fs-5: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem);
  --fs-6: clamp(2.125rem, 1.4rem + 3.6vw, 4.5rem);
}

/* Направления */
.r-zemlya   { --rc: var(--loam); }
.r-gryadka  { --rc: var(--tomato); }
.r-sad      { --rc: var(--leaf-2); }
.r-tsvetnik { --rc: var(--mallow); }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-2);
  line-height: 1.55;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--tomato); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--pollen);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- Графический язык ---------- */

/* Метка: цветной квадрат + капитель */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-size: var(--fs-0);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}
.kicker::before {
  content: "";
  width: 0.72em; height: 0.72em;
  flex: none;
  background: var(--rc);
  border-radius: 1px;
}
a.kicker:hover { color: var(--ink); }

/* Пиктограмма рубрики */
.ricon {
  width: 40px; height: 40px;
  flex: none;
  color: var(--rc);
}
.ricon--chip {
  width: 44px; height: 44px;
  padding: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--rc) 14%, var(--card));
}

/* Ряд семян — пунктирный разделитель */
.seeds {
  height: 8px;
  border: 0;
  margin: 0;
  background: radial-gradient(circle, var(--ink-2) 1.6px, transparent 2.1px) 0 50% / 14px 8px repeat-x;
  opacity: 0.55;
}

/* Борозды — фоновая разлиновка */
.furrows {
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0 13px,
    rgb(30 26 21 / 0.07) 13px 14px
  );
}

/* Заголовок секции: номер ряда + название + линия */
.row-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin-bottom: clamp(20px, 3vw, 36px);
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.row-head__num {
  font-family: var(--sans);
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tomato);
}
.row-head__title { font-size: var(--fs-4); }
.row-head__more {
  font-size: var(--fs-1);
  font-weight: 600;
  white-space: nowrap;
}
.row-head__lead {
  grid-column: 2 / -1;
  max-width: 52ch;
  color: var(--muted);
  font-size: var(--fs-1);
  margin: 0;
}
@media (max-width: 640px) {
  .row-head { grid-template-columns: auto 1fr; }
  .row-head__more { grid-column: 2; }
  .row-head__lead { grid-column: 1 / -1; }
}

/* Ссылка со стрелкой */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
}
.arrow-link::after { content: "→"; transition: transform 0.2s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* Иллюстрация с запасным фоном: если фото нет или оно не загрузилось,
   остаётся разлинованное «поле» цвета направления */
.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  background-color: color-mix(in srgb, var(--rc) 22%, var(--paper-2));
  background-image: repeating-linear-gradient(
    -12deg,
    transparent 0 17px,
    color-mix(in srgb, var(--rc) 30%, transparent) 17px 19px
  );
  aspect-ratio: var(--ar, 4 / 3);
}
.ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.ph.is-empty img { display: none; }
a:hover .ph img { transform: scale(1.025); }

/* Метаданные */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.9em;
  font-size: var(--fs-0);
  color: var(--muted);
}
.meta > * + *::before {
  content: "·";
  margin-right: 0.9em;
  color: var(--line);
}

/* Хлебные крошки */
.crumbs { font-size: var(--fs-0); color: var(--muted); }
.crumbs a { color: inherit; }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* Метки-«пилюли» */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--ink-2);
  border-radius: 999px;
  font-size: var(--fs-1);
  font-weight: 500;
  text-decoration: none;
}
.chips a::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--rc);
  border-radius: 1px;
}
.chips a:hover { background: var(--ink); color: var(--paper); }

/* ---------- Сезонная строка ---------- */
.season {
  background: var(--soil);
  color: #efe6d4;
  font-size: var(--fs-0);
}
.season .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding-block: 6px;
}
.season__label {
  flex: none;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pollen);
}
.season a {
  color: inherit;
  text-decoration-color: rgb(239 230 212 / 0.4);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.season a:hover { text-decoration-color: var(--pollen); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
  margin-right: auto;
}
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.brand__sub {
  margin-top: 5px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Навигация: Журнал · 4 направления с выпадающими рубриками · О сайте */
.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav__list > li { position: relative; }
.nav__link,
.nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  background: none;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: var(--fs-1);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.nav__link:hover,
.nav__btn:hover,
.nav__btn[aria-expanded="true"] { background: var(--paper-2); }
.nav__link[aria-current="page"],
.nav__dir.is-current > .nav__btn {
  box-shadow: inset 0 -2px 0 var(--rc, var(--tomato));
  border-radius: 0;
}
.nav__link[aria-current="page"] { --rc: var(--tomato); }
.nav .dot {
  width: 8px; height: 8px;
  flex: none;
  background: var(--rc);
  border-radius: 1px;
}
.nav__chev {
  width: 10px; height: 10px;
  flex: none;
  transition: transform 0.2s ease;
}
.nav__btn[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  width: 360px;
  padding: 8px;
  background: var(--card);
  border-top: 4px solid var(--rc);
  box-shadow: 0 18px 40px rgb(30 26 21 / 0.16), 0 0 0 1px rgb(30 26 21 / 0.06);
}
.nav__btn[aria-expanded="true"] + .nav__sub { display: grid; gap: 2px; }
.nav__dir:nth-last-child(2) .nav__sub { left: auto; right: 0; }
.nav__sub-label {
  margin: 0;
  padding: 8px 12px 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__rub {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 2px 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none;
}
.nav__rub .ricon { grid-row: span 2; }
.nav__rub strong {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}
.nav__rub small { font-size: var(--fs-0); color: var(--muted); line-height: 1.35; }
.nav__rub:hover { background: color-mix(in srgb, var(--rc) 9%, var(--card)); }
.nav__rub:hover strong { color: var(--rc); }
.nav__rub[aria-current="page"] strong { color: var(--rc); text-decoration: underline; text-underline-offset: 0.18em; }

.tools { display: flex; gap: 6px; flex: none; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { background: var(--paper-2); border-color: var(--ink-2); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }

@media (max-width: 1120px) {
  .nav__link, .nav__btn { padding-inline: 9px; }
  .header-inner { gap: 12px; }
}
@media (max-width: 1000px) {
  :root { --header-h: 60px; }
  .menu-btn { display: inline-grid; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__title { font-size: 1.1875rem; }

  .nav {
    position: fixed;
    inset: calc(var(--header-h) + 1px) 0 0 0;
    z-index: 49;
    background: var(--paper);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px var(--gut) 40px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link,
  .nav__btn {
    width: 100%;
    min-height: 60px;
    padding: 12px 0;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 0;
    text-align: left;
  }
  .nav__link:hover, .nav__btn:hover, .nav__btn[aria-expanded="true"] { background: none; }
  .nav__link[aria-current="page"],
  .nav__dir.is-current > .nav__btn { box-shadow: none; color: var(--rc); }
  .nav .dot { width: 12px; height: 12px; }
  .nav__chev { width: 14px; height: 14px; margin-left: auto; }
  .nav__sub {
    position: static;
    width: auto;
    padding: 0 0 14px;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__sub-label { display: none; }
  .nav__rub { padding: 10px 0; grid-template-columns: 40px 1fr; }
  .nav__rub .ricon { width: 36px; height: 36px; }
}
@media (max-width: 380px) {
  .brand { gap: 9px; }
  .brand__sub { display: none; }
  .icon-btn { width: 40px; height: 40px; }
}

/* ---------- Поиск ---------- */
.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgb(30 26 21 / 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(12px, 8vh, 96px) 12px 12px;
}
.search__panel {
  width: min(760px, 100%);
  max-height: 100%;
  overflow-y: auto;
  background: var(--paper);
  border-top: 6px solid var(--tomato);
  padding: clamp(18px, 4vw, 36px);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.25);
}
.search__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.search__title { font-size: var(--fs-3); }
.search__form {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--ink);
}
.search__input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
  background: transparent;
  border: 0;
  color: var(--ink);
}
.search__input:focus { outline: none; }
.search__form:focus-within { border-bottom-color: var(--tomato); }
.search__submit {
  flex: none;
  align-self: center;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}
.search__submit:hover { background: var(--leaf); }
.search__hint { margin: 14px 0 0; font-size: var(--fs-0); color: var(--muted); }
.search__hint kbd {
  font-family: var(--sans);
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
}
.search__results { list-style: none; margin-top: 10px; }
.search__results li { border-bottom: 1px solid var(--line); }
.search__results a {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  text-decoration: none;
}
.search__results a:hover .search__res-title,
.search__results a:focus-visible .search__res-title { color: var(--tomato); }
.search__res-title { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.search__res-rub { font-size: var(--fs-0); color: var(--muted); }
.search__empty { padding: 14px 0; color: var(--muted); }
.search-dialog mark { background: color-mix(in srgb, var(--pollen) 45%, transparent); color: inherit; }

/* ---------- Подвал ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 112px);
  background: var(--soil);
  color: #e9dfcb;
}
.site-footer a { color: inherit; text-decoration-color: rgb(233 223 203 / 0.35); }
.site-footer a:hover { text-decoration-color: var(--pollen); }
.footer-furrow {
  height: 22px;
  background: repeating-linear-gradient(90deg, var(--soil-2) 0 2px, transparent 2px 9px);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.4fr) minmax(0, 0.8fr);
  gap: 40px;
  padding-block: clamp(40px, 6vw, 72px);
}
.footer-brand .brand__title { color: #f3eee3; font-size: 1.75rem; }
.footer-brand .brand__sub { color: #b7a98f; }
.footer-brand p {
  margin-top: 18px;
  max-width: 34ch;
  font-family: var(--serif);
  font-size: 1.0625rem;
  color: #cfc2a8;
}
.footer-col h2 {
  font-family: var(--sans);
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pollen);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col li a { display: inline-block; padding: 5px 0; }
.footer-dirs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.footer-dir h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 600;
  color: #f3eee3;
}
.footer-dir h3::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--rc);
  border-radius: 1px;
}
.footer-dir.r-zemlya { --rc: #b98a5e; } /* суглинок светлее — на тёмном фоне */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid rgb(233 223 203 / 0.16);
  font-size: var(--fs-0);
  color: #b7a98f;
}
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-rubrics { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .footer-dirs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ГЛАВНАЯ
   ========================================================================== */

.section { margin-top: clamp(56px, 8vw, 104px); }

/* ---------- 1. Обложка ---------- */
.cover { padding-block: clamp(24px, 4vw, 56px) 0; }
.cover__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}
.cover__lead { padding-top: clamp(8px, 2vw, 32px); }
.cover__title {
  margin: 18px 0 20px;
  font-size: var(--fs-6);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.026em;
}
.cover__title a { text-decoration: none; }
.cover__title a:hover { color: var(--leaf); }
.cover__title em { font-style: italic; font-weight: 500; color: var(--rc); }
.cover__dek {
  font-family: var(--serif);
  font-size: var(--fs-3);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 36ch;
}
.cover__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 26px;
}
.cover__visual {
  position: relative;
  display: block;
  padding: 0 0 22px 22px;
}
.cover__visual::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 78%; height: 72%;
  background: var(--rc);
  background-image: repeating-linear-gradient(180deg, transparent 0 11px, rgb(255 255 255 / 0.13) 11px 13px);
}
.cover__visual .ph { --ar: 4 / 5; position: relative; }
.cover__caption {
  position: absolute;
  right: 12px; bottom: 36px;
  max-width: 70%;
  padding: 8px 12px;
  background: var(--paper);
  font-size: var(--fs-0);
  line-height: 1.35;
  color: var(--ink-2);
}
.cover__side { border-top: 2px solid var(--ink); padding-top: 12px; }
.cover__side-title {
  font-family: var(--sans);
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.side-list { list-style: none; counter-reset: side 1; }
.side-list li {
  counter-increment: side;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.side-list li:last-child { border-bottom: 0; }
.side-list a {
  display: grid;
  grid-template-columns: 2.1em 1fr;
  gap: 6px 8px;
  text-decoration: none;
}
.side-list a::before {
  content: counter(side, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--rc);
}
.side-list h3 { font-size: 1.1875rem; line-height: 1.25; }
.side-list a:hover h3 { text-decoration: underline; text-decoration-color: var(--rc); text-underline-offset: 0.18em; }
.side-list .kicker { grid-column: 2; font-size: 0.6875rem; }

@media (max-width: 1100px) {
  .cover__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .cover__side { grid-column: 1 / -1; }
  .side-list { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 28px; }
  .side-list li { border-bottom: 0; }
}
@media (max-width: 760px) {
  .cover__grid { grid-template-columns: 1fr; }
  .cover__lead { order: 2; padding-top: 0; }
  .cover__visual { order: 1; padding: 0 0 14px 14px; }
  .cover__visual .ph { --ar: 4 / 3; }
  .cover__caption { display: none; }
  .cover__side { order: 3; }
  .cover__title { margin: 12px 0 14px; }
  .side-list { grid-template-columns: 1fr; }
  .side-list li { border-bottom: 1px solid var(--line); }
}

/* ---------- 2. Карта участка: 4 направления × 2 рубрики ---------- */
.map { display: grid; gap: 0; }
.dir {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 8.8fr);
  gap: 20px clamp(24px, 4vw, 56px);
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.dir:last-child { border-bottom: 1px solid var(--line); }
.dir::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--gut));
  top: -1px; bottom: -1px;
  width: 6px;
  background: var(--rc);
}
.dir__head { display: grid; align-content: start; gap: 10px; }
.dir__num {
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dir__name {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
  font-style: italic;
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--rc);
}
.dir__about { margin: 0; font-family: var(--serif); color: var(--ink-2); max-width: 30ch; }
.dir__photo { --ar: 3 / 2; margin-top: 8px; }

.dir__rubs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
}
.rub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 3px solid var(--rc);
}
.rub__head {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.rub__name {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 700;
  line-height: 1.12;
}
.rub__head:hover .rub__name { color: var(--rc); }
.rub__about { margin: 0; color: var(--ink-2); font-size: var(--fs-1); }
.rub__links { list-style: none; }
.rub__links li + li { border-top: 1px dashed var(--line); }
.rub__links a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.rub__links a::after { content: "→"; flex: none; color: var(--rc); transition: transform 0.2s ease; }
.rub__links a:hover { color: var(--rc); }
.rub__links a:hover::after { transform: translateX(3px); }
.rub__all { margin-top: auto; align-self: flex-start; font-size: var(--fs-1); }

@media (max-width: 1000px) {
  .dir { grid-template-columns: 1fr; }
  .dir__head { grid-template-columns: auto 1fr; align-items: end; column-gap: 20px; }
  .dir__num { grid-column: 1 / -1; }
  .dir__photo { display: none; }
}
@media (max-width: 640px) {
  .dir::before { width: 4px; }
  .dir__head { grid-template-columns: 1fr; }
  .dir__rubs { grid-template-columns: 1fr; gap: 26px; }
  .rub__links li:nth-child(n + 2) { display: none; }  /* на телефоне — одна статья на рубрику */
}

/* Компактная карта (о сайте, журнал) */
.map--compact .dir { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); padding-block: 22px; }
.map--compact .dir__name { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.map--compact .rub { border-top-width: 2px; }
@media (max-width: 1000px) {
  .map--compact .dir { grid-template-columns: 1fr; }
}

/* ---------- 3. Маршрут: от семени до урожая ---------- */
.route {
  background: var(--paper-2);
  padding-block: clamp(36px, 5vw, 72px);
}
.route .row-head { border-top-color: var(--ink); }
.route__stops {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  position: relative;
  counter-reset: stop;
}
/* «борозда», соединяющая этапы */
.route__stops::before {
  content: "";
  position: absolute;
  left: 36px; right: 36px;
  top: 36px;
  height: 8px;
  margin-top: -4px;
  background: radial-gradient(circle, var(--rc) 1.8px, transparent 2.3px) 0 50% / 14px 8px repeat-x;
}
.stop {
  position: relative;
  counter-increment: stop;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stop__mark {
  width: 72px; height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--rc);
  color: var(--rc);
  position: relative;
}
.stop__mark svg { width: 44px; height: 44px; }
.stop__mark::after {
  content: counter(stop);
  position: absolute;
  right: -6px; top: -6px;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rc);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}
.stop__title { margin-top: 8px; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); line-height: 1.1; }
.stop__text { margin: 0; font-family: var(--serif); color: var(--ink-2); font-size: var(--fs-1); }
.stop__links { list-style: none; margin-top: 4px; border-top: 1px solid var(--line); }
.stop__links li { border-bottom: 1px solid var(--line); }
.stop__links a {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  text-decoration: none;
}
.stop__links strong { font-family: var(--serif); font-weight: 600; line-height: 1.3; }
.stop__links span { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
.stop__links a:hover strong { color: var(--rc); text-decoration: underline; text-underline-offset: 0.18em; }
.route__note { margin: 24px 0 0; max-width: 64ch; font-size: var(--fs-1); color: var(--muted); }

@media (max-width: 1000px) {
  .route__stops { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .route__stops::before { display: none; }
}
@media (max-width: 600px) {
  .route__stops { grid-template-columns: 1fr; row-gap: 0; }
  .route__stops::before {
    display: block;
    left: 27px; right: auto; top: 28px; bottom: 28px;
    width: 8px; height: auto;
    margin: 0 0 0 -4px;
    background: radial-gradient(circle, var(--rc) 1.8px, transparent 2.3px) 50% 0 / 8px 14px repeat-y;
  }
  .stop {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 6px 16px;
    padding-bottom: 28px;
  }
  .stop > :not(.stop__mark) { grid-column: 2; }
  .stop__mark { width: 56px; height: 56px; grid-row: span 4; }
  .stop__mark svg { width: 34px; height: 34px; }
  .stop__title { margin-top: 10px; }
  .stop__links li:nth-child(n + 2) { display: none; }
}

/* ---------- 4. Тема сезона ---------- */
.now {
  background: var(--leaf);
  color: #eef0e6;
  position: relative;
  overflow: hidden;
}
.now::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: radial-gradient(circle, var(--pollen) 1.8px, transparent 2.3px) 0 50% / 16px 10px repeat-x;
  opacity: 0.6;
}
.now__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(36px, 5vw, 64px);
}
.now__eyebrow {
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pollen);
}
.now__title {
  margin: 8px 0 12px;
  font-size: clamp(2.75rem, 1.8rem + 4.4vw, 5.75rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.now__intro { font-family: var(--serif); color: #cdd6c6; max-width: 34ch; }
.tasks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
}
.tasks li { border-top: 1px solid rgb(238 240 230 / 0.22); }
.tasks a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 6px 14px;
  padding: 18px 0 22px;
  text-decoration: none;
}
.tasks a::before {
  content: "";
  width: 20px; height: 20px;
  margin-top: 4px;
  border: 2px solid var(--pollen);
  border-radius: 3px;
  grid-row: span 3;
}
.tasks h3 { font-size: 1.25rem; line-height: 1.25; color: #fff; }
.tasks p { margin: 0; font-size: var(--fs-1); color: #cdd6c6; }
.tasks .tasks__rub {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pollen);
}
.tasks a:hover h3 { text-decoration: underline; text-decoration-color: var(--pollen); text-underline-offset: 0.18em; }
@media (max-width: 860px) { .now__inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tasks { grid-template-columns: 1fr; } }

/* ---------- 5. Большой разбор (тёмная полоса) ---------- */
.feature { background: var(--soil); color: #efe6d4; }
.feature__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(36px, 5vw, 72px);
}
.feature__inner > a { display: block; }
.feature .ph { --ar: 3 / 2; }
.feature .kicker { color: #d9ccb1; }
.feature__title { margin: 14px 0 16px; font-size: var(--fs-5); line-height: 1.05; }
.feature__title a { text-decoration: none; }
.feature__title a:hover { color: var(--pollen); }
.feature__dek { font-family: var(--serif); color: #cfc2a8; font-size: 1.125rem; }
.steps {
  list-style: none;
  counter-reset: step;
  margin: 22px 0 26px;
  border-top: 1px solid rgb(239 230 212 / 0.18);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4em 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgb(239 230 212 / 0.18);
  font-size: var(--fs-1);
}
.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--pollen);
}
.feature .arrow-link { color: var(--pollen); }
@media (max-width: 860px) { .feature__inner { grid-template-columns: 1fr; } }

/* ---------- 6. Короткие ответы ---------- */
.answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
  list-style: none;
}
.answer { padding: 22px 0 24px; border-top: 1px solid var(--ink); }
.answer .kicker { margin: 0 0 10px calc(1.4em + 8px); font-size: 0.6875rem; }
.answer__q {
  display: grid;
  grid-template-columns: 1.4em 1fr;
  gap: 8px;
  font-size: var(--fs-3);
  line-height: 1.22;
  margin-bottom: 10px;
}
.answer__q::before { content: "?"; font-style: italic; font-weight: 500; color: var(--rc); }
.answer p { margin: 0 0 10px calc(1.4em + 8px); font-family: var(--serif); color: var(--ink-2); }
.answer .arrow-link { margin-left: calc(1.4em + 8px); font-size: var(--fs-1); }
@media (max-width: 760px) {
  .answers { grid-template-columns: 1fr; }
  .answer__q { font-size: 1.25rem; }
}

/* ---------- 7. Принцип журнала ---------- */
.creed {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding: clamp(28px, 5vw, 56px);
  background: var(--paper-2);
}
.creed__quote {
  font-family: var(--serif);
  font-size: var(--fs-4);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}
.creed__quote em { color: var(--tomato); }
.creed__text { color: var(--ink-2); }
@media (max-width: 760px) { .creed { grid-template-columns: 1fr; } }

/* ==========================================================================
   ЖУРНАЛ И РУБРИКА
   ========================================================================== */

.page-head { padding-block: clamp(28px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.page-head__eyebrow {
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tomato);
}
.page-head__title {
  margin: 10px 0 14px;
  font-size: var(--fs-6);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.page-head__lead {
  max-width: 54ch;
  font-family: var(--serif);
  font-size: var(--fs-3);
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0;
}

/* Указатель рубрик журнала: 4 колонки-направления по 2 рубрики */
.rubric-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(24px, 3vw, 36px);
  border-top: 2px solid var(--ink);
  list-style: none;
}
.rubric-index > li {
  padding: 14px 18px 18px;
  border-right: 1px solid var(--line);
}
.rubric-index > li:first-child { padding-left: 0; }
.rubric-index > li:last-child { border-right: 0; padding-right: 0; }
.rubric-index__dir {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  color: var(--rc);
}
.rubric-index ul { list-style: none; }
.rubric-index a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  font-weight: 600;
  font-size: var(--fs-1);
  line-height: 1.25;
  text-decoration: none;
}
.rubric-index .ricon { width: 32px; height: 32px; }
.rubric-index a:hover { color: var(--rc); }
@media (max-width: 1000px) {
  .rubric-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rubric-index > li { padding: 14px 16px 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .rubric-index > li:nth-child(odd) { border-right: 1px solid var(--line); }
  .rubric-index > li:nth-child(even) { padding-left: 16px; }
}
@media (max-width: 420px) {
  .rubric-index a { grid-template-columns: 1fr; gap: 0; padding: 7px 0; }
  .rubric-index .ricon { display: none; }
}

/* Шапка рубрики — цветное поле направления */
.rubric-head {
  background: var(--rc);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.rubric-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 15px, rgb(255 255 255 / 0.09) 15px 17px);
  pointer-events: none;
}
.rubric-head .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px clamp(24px, 4vw, 64px);
  align-items: end;
  padding-block: clamp(28px, 5vw, 64px) clamp(24px, 4vw, 44px);
}
.rubric-head .crumbs { grid-column: 1 / -1; color: rgb(255 255 255 / 0.82); }
.rubric-head__titlebox { display: grid; gap: 16px; justify-items: start; }
.rubric-head__icon {
  width: 72px; height: 72px;
  padding: 12px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  color: #fff;
}
.rubric-head__dir {
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.85);
}
.rubric-head__title {
  font-size: clamp(2.5rem, 1.5rem + 5vw, 6.25rem);
  font-style: italic;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.rubric-head__lead {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.5;
  margin: 0 0 10px;
  color: rgb(255 255 255 / 0.94);
}
.rubric-head__topics {
  margin: 0 0 18px;
  font-size: var(--fs-0);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.78);
}
/* Переключатель двух рубрик направления */
.pair {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  list-style: none;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.16);
}
.pair a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: var(--fs-1);
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}
.pair a:hover { background: rgb(255 255 255 / 0.14); }
.pair a[aria-current="page"] { background: #fff; color: var(--ink); }
@media (max-width: 760px) {
  .rubric-head .wrap { grid-template-columns: 1fr; }
  .rubric-head__icon { width: 56px; height: 56px; padding: 9px; }
  .pair { border-radius: 22px; }
}

/* Раскладка ленты */
.ds-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3.4fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(28px, 4vw, 48px);
}
.archive__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 28px; }
@media (max-width: 1000px) {
  .ds-archive-layout { grid-template-columns: 1fr; }
  .archive__sticky { position: static; }
}

/* Запись в ленте */
.stream { list-style: none; }
.entry {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px clamp(18px, 3vw, 32px);
  padding: clamp(20px, 3vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}
.stream > .entry:first-child { padding-top: 0; }
.entry__media { display: block; }
.entry__media .ph { --ar: 3 / 2; }
.entry__body { min-width: 0; }
.entry__kickers { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.entry__title {
  margin: 10px 0 10px;
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  line-height: 1.16;
}
.entry__title a { text-decoration: none; }
.entry__title a:hover { text-decoration: underline; text-decoration-color: var(--rc); text-decoration-thickness: 2px; }
.entry__excerpt {
  font-family: var(--serif);
  color: var(--ink-2);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Запись без фото — текстовая, с полосой направления слева */
.entry--text {
  grid-template-columns: 1fr;
  padding-left: clamp(16px, 2.5vw, 28px);
  border-left: 4px solid var(--rc);
  margin-block: 2px;
}
.stream > .entry--text:first-child { padding-top: 4px; }
.entry--text .entry__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.entry--text .entry__excerpt { -webkit-line-clamp: 3; font-size: 1.125rem; }
/* Первая запись — крупно */
.entry--lead { grid-template-columns: 1fr; }
.entry--lead .entry__media .ph { --ar: 16 / 9; }
.entry--lead .entry__title { font-size: var(--fs-5); line-height: 1.04; }
.entry--lead .entry__excerpt { font-size: 1.1875rem; -webkit-line-clamp: 5; }
@media (max-width: 600px) {
  .entry { grid-template-columns: 1fr; }
  .entry__excerpt { -webkit-line-clamp: 3; }
}

/* Сайдбар */
.aside-block h2 {
  font-family: var(--sans);
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 12px;
}
.aside-rubrics { list-style: none; }
.aside-rubrics li { border-bottom: 1px solid var(--line); }
.aside-rubrics li:first-child { margin-top: -12px; }
.aside-rubrics a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 12px;
  align-items: center;
  padding: 12px 0;
  text-decoration: none;
}
.aside-rubrics .ricon { width: 36px; height: 36px; grid-row: span 2; }
.aside-rubrics strong { font-family: var(--serif); font-size: 1.125rem; font-weight: 600; line-height: 1.2; }
.aside-rubrics span { font-size: var(--fs-0); color: var(--muted); }
.aside-rubrics a:hover strong { color: var(--rc); }
.aside-note {
  padding: 20px;
  background: var(--paper-2);
  font-family: var(--serif);
  font-size: var(--fs-1);
  color: var(--ink-2);
}
.aside-note p:last-child { margin: 0; }

.search-status {
  margin: 0 0 24px;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--pollen) 22%, var(--paper));
  border-left: 4px solid var(--pollen);
}

/* Пагинация */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: clamp(28px, 4vw, 44px);
}
.pagination a,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.pagination a:hover { border-color: var(--ink); background: var(--card); }
.pagination [aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .pagination__step { padding-inline: 16px; }
.pagination .is-disabled { color: var(--line); pointer-events: none; }
.pagination .pagination__dots { border: 0; min-width: 24px; padding: 0; }
.pagination + .meta { margin-top: 12px; }
@media (max-width: 420px) {
  .pagination__label { display: none; }
  .pagination a, .pagination span { min-width: 40px; padding: 0 8px; }
}

/* ==========================================================================
   СТАТЬЯ
   ========================================================================== */

.article-head { padding-block: clamp(24px, 4vw, 56px) clamp(20px, 3vw, 36px); }
.article-head .crumbs { margin-bottom: 18px; }
.article-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 20px clamp(24px, 4vw, 64px);
  align-items: end;
}
.article-kickers { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.article-kickers .ricon { width: 32px; height: 32px; }
.article-title {
  margin: 14px 0 0;
  font-size: var(--fs-6);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.026em;
}
.article-dek {
  font-family: var(--serif);
  font-size: var(--fs-3);
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 14px;
}
@media (max-width: 860px) { .article-head__grid { grid-template-columns: 1fr; } }

.article-cover { margin: 0; }
.article-cover .ph { --ar: 21 / 9; }
.article-cover figcaption,
.prose figcaption {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: var(--fs-0);
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 760px) {
  .article-cover .ph { --ar: 4 / 3; }
  .article-cover { margin-inline: calc(-1 * var(--gut)); }
  .article-cover figcaption { padding-inline: var(--gut); }
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(28px, 4vw, 56px);
}
.article-layout > .prose { grid-column: 2; }
@media (max-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); } }
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-layout > .prose { grid-column: 1; }
}

/* Оглавление */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  border-top: 2px solid var(--ink);
  font-size: var(--fs-1);
}
.toc summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.toc[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.toc ol { list-style: none; counter-reset: toc; padding-bottom: 8px; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid;
  grid-template-columns: 1.8em 1fr;
  padding: 7px 0;
  line-height: 1.35;
  text-decoration: none;
  color: var(--ink-2);
}
.toc a::before { content: counter(toc); font-family: var(--serif); font-style: italic; color: var(--muted); }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 600; }
.toc a.is-active::before { color: var(--rc); }
@media (min-width: 861px) {
  .toc summary { cursor: default; }
  .toc summary::after { display: none; }
}
@media (max-width: 860px) {
  .toc { position: static; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--rc); padding: 0 16px; }
}

/* Текст */
.prose {
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.68;
  color: var(--ink);
  max-width: 42rem;
  hyphens: auto;
  -webkit-hyphens: auto;
  counter-reset: h2;
}
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose > p:first-of-type::first-letter {
  float: left;
  font-size: 4.1em;
  line-height: 0.82;
  font-weight: 700;
  margin: 0.06em 0.08em 0 -0.03em;
  color: var(--rc);
}
.prose h2 {
  counter-increment: h2;
  margin-top: 2.2em;
  padding-top: 1.1em;
  font-size: var(--fs-4);
  line-height: 1.15;
  background: radial-gradient(circle, var(--ink-2) 1.5px, transparent 2px) 0 0 / 14px 8px repeat-x;
}
.prose h2::before {
  content: counter(h2, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tomato);
}
.prose h3 { margin-top: 1.8em; font-size: 1.3125rem; }
.prose a { color: var(--leaf); text-decoration-color: color-mix(in srgb, var(--leaf) 45%, transparent); }
.prose a:hover { text-decoration-color: var(--tomato); }
.prose strong { font-weight: 700; }

.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li + li { margin-top: 0.45em; }
.prose ul:not(.chips) li { position: relative; padding-left: 1.5em; }
.prose ul:not(.chips) li::before {
  content: "";
  position: absolute;
  left: 0.2em; top: 0.62em;
  width: 0.42em; height: 0.42em;
  background: var(--rc);
}
.prose .chips li + li { margin-top: 0; }
.prose ol { counter-reset: ol; }
.prose ol li {
  counter-increment: ol;
  display: grid;
  grid-template-columns: 2.2em 1fr;
  gap: 0.2em;
  padding: 0.75em 0;
  border-top: 1px solid var(--line);
}
.prose ol li + li { margin-top: 0; }
.prose ol li:last-child { border-bottom: 1px solid var(--line); }
.prose ol li::before {
  content: counter(ol);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4em;
  line-height: 1.1;
  color: var(--rc);
}

.prose figure { margin: 2em 0; }
.prose figure .ph { --ar: 3 / 2; }
@media (min-width: 1101px) {
  .prose .figure-wide { margin-right: calc(-1 * (100% * 2 / 7) - 56px); }
}

/* Врезка */
.note {
  position: relative;
  margin: 2em 0 !important;
  padding: 22px clamp(18px, 3vw, 28px);
  background: color-mix(in srgb, var(--pollen) 20%, var(--card));
  border-top: 4px solid var(--pollen);
  font-size: 0.95em;
  line-height: 1.6;
}
.note__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.note__title,
.prose .note__title { font-size: 1.375rem; margin: 0 0 8px; }
.note p + p { margin-top: 0.7em; }
.note--warn { background: color-mix(in srgb, var(--tomato) 10%, var(--card)); border-top-color: var(--tomato); }

/* Таблица */
.table-wrap {
  margin: 1.8em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  background: var(--card);
}
.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.45;
}
.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.0625rem;
}
.data-table th,
.data-table td {
  padding: 11px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.data-table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  white-space: nowrap;
}
.data-table tbody th { font-weight: 600; white-space: nowrap; }
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.tag--green { background: color-mix(in srgb, var(--leaf-2) 18%, transparent); color: var(--leaf); }
.tag--brown { background: color-mix(in srgb, var(--loam) 20%, transparent); color: #5a3a20; }
.table-hint { display: none; font-size: var(--fs-0); color: var(--muted); font-family: var(--sans); margin-top: -1.2em !important; }
@media (max-width: 640px) { .table-hint { display: block; } }

/* Итог статьи */
.takeaway {
  margin-top: 2.4em !important;
  padding: 24px 0 0;
  border-top: 2px solid var(--ink);
}
.takeaway h2 { background: none; padding-top: 0; margin-top: 0; }
.takeaway h2::before { display: none; }
.article-end {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 2.4em;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: var(--fs-1);
}

/* Связанные публикации */
.related {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
}
.related a { text-decoration: none; display: block; }
.related .ph { --ar: 4 / 3; margin-bottom: 14px; }
.related h3 { margin: 8px 0 8px; font-size: 1.375rem; line-height: 1.2; }
.related a:hover h3 { text-decoration: underline; text-decoration-color: var(--rc); text-underline-offset: 0.18em; }
.related p { font-family: var(--serif); color: var(--ink-2); font-size: var(--fs-1); margin: 0; }
.related__text {
  padding: 20px;
  background: var(--card);
  border-top: 4px solid var(--rc);
  height: 100%;
}
.related__text h3 { font-size: 1.5rem; }
@media (max-width: 860px) {
  .related { grid-template-columns: 1fr 1fr; }
  .related > li:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .related { grid-template-columns: 1fr; } }

/* ==========================================================================
   О САЙТЕ
   ========================================================================== */

.about-hero { padding-block: clamp(32px, 6vw, 88px) clamp(28px, 4vw, 56px); }
.about-hero__title {
  max-width: 17ch;
  margin-top: 12px;
  font-size: var(--fs-6);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.about-hero__title em { font-style: italic; font-weight: 500; color: var(--leaf-2); }
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
}
.about-intro .ph { --ar: 4 / 5; }
@media (max-width: 860px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-intro .ph { --ar: 3 / 2; }
}

.principles {
  list-style: none;
  counter-reset: pr;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
}
.principles li {
  counter-increment: pr;
  display: grid;
  grid-template-columns: clamp(3rem, 2rem + 3vw, 5rem) 1fr;
  gap: 0 16px;
  padding: 26px 0;
  border-top: 1px solid var(--ink);
}
.principles li::before {
  content: counter(pr);
  grid-row: span 2;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  line-height: 0.85;
  color: var(--tomato);
}
.principles h3 { font-size: var(--fs-3); margin-bottom: 8px; }
.principles p { margin: 0; font-family: var(--serif); color: var(--ink-2); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

.uses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  list-style: none;
  background: var(--line);
  border: 2px solid var(--line);
}
.uses li { background: var(--paper); padding: clamp(20px, 3vw, 32px); }
.uses h3 { font-size: 1.375rem; margin-bottom: 10px; }
.uses p { margin: 0; color: var(--ink-2); font-size: var(--fs-1); }
.uses__icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--leaf-2); }
@media (max-width: 860px) { .uses { grid-template-columns: 1fr; } }

/* ==========================================================================
   Движение и печать
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  a:hover .ph img { transform: none; }
}
@media print {
  .season, .site-header, .site-footer, .toc, .related, .search-dialog { display: none !important; }
  body { background: #fff; }
  .article-layout { display: block; }
}
