/* fetur.kz — тема «Отдых и Туризм». Прототип для kz-engine. Mobile-first, без сборки. */

/* ---------- Шрифты (самохостинг, OFL; подмножества fontsource: латиница, кириллица, казахские буквы, ₸) ---------- */
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/bitter-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/bitter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/bitter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/bitter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/onest-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
  color-scheme: light;

  /* песок и вечернее небо над озером */
  --sand: oklch(0.972 0.013 84);
  --sand-2: oklch(0.947 0.02 82);
  --sand-3: oklch(0.912 0.028 80);
  --line: oklch(0.87 0.02 78);
  --line-strong: oklch(0.76 0.025 75);
  --ink: oklch(0.255 0.028 242);
  --ink-2: oklch(0.42 0.024 242);
  --ink-3: oklch(0.49 0.02 242);

  /* Алаколь: бренд и ссылки */
  --lake: oklch(0.47 0.092 222);
  --lake-deep: oklch(0.37 0.078 228);
  --lake-tint: oklch(0.938 0.028 212);
  --sun: oklch(0.80 0.135 76);

  /* рубрики — только цвет подписи */
  --c-turism: var(--lake);
  --c-sport: oklch(0.45 0.085 158);
  --c-health: oklch(0.51 0.13 27);
  --c-articles: oklch(0.49 0.085 62);
  --c-archive: oklch(0.46 0.03 105);

  /* подвал: вечер */
  --night: oklch(0.255 0.035 240);
  --night-2: oklch(0.31 0.035 240);
  --on-night: oklch(0.955 0.012 84);
  --on-night-2: oklch(0.80 0.02 240);
  --on-night-line: oklch(1 0 0 / 0.14);

  --focus: oklch(0.47 0.12 222);

  --font-head: "Bitter", "Georgia", "Times New Roman", serif;
  --font-ui: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 16px;
  --max: 1200px;
  --measure: 40rem;
  --radius: 10px;
  --radius-sm: 6px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --text: clamp(1.125rem, 1.08rem + 0.2vw, 1.1875rem);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--lake-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.012em; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 10; background: var(--ink); color: var(--sand); padding: 10px 14px; border-radius: var(--radius-sm); }
.skip:focus { top: 8px; }

/* ---------- Шапка ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--sand); }
.head-row { display: flex; align-items: center; gap: 16px; padding-block: 14px 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; width: 34px; height: 34px; }
.brand-name { font-family: var(--font-head); font-weight: 750; font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1; white-space: nowrap; }
.brand-tag { display: none; font-size: 0.8125rem; color: var(--ink-3); margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.2; }
.head-search { margin-left: auto; position: relative; }
.head-search input {
  width: 44px; height: 44px; padding: 0 0 0 44px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; font: inherit; font-size: 0.9375rem; color: var(--ink); cursor: pointer;
  transition: width 220ms var(--ease-out), background-color 160ms, border-color 160ms;
}
.head-search input:focus { width: min(64vw, 280px); cursor: text; background: var(--sand-2); border-color: var(--line-strong); outline: none; padding-right: 14px; }
.head-search svg { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; pointer-events: none; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .head-search input { transition: none; } }

.nav { position: relative; }
.nav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 2px 8px; margin-inline: -10px; }
.nav ul::-webkit-scrollbar { display: none; }
@media (max-width: 699px) { .nav ul { mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); padding-inline-end: 28px; } }
.nav a {
  display: block; padding: 8px 10px; border-radius: var(--radius-sm); white-space: nowrap;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.975rem;
}
.nav a:hover { color: var(--ink); background: var(--sand-2); }
.nav a[aria-current] { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--sun); border-radius: 0; }
@media (min-width: 760px) {
  .brand-tag { display: block; }
  .head-row { padding-block: 18px 6px; }
  .brand-name { font-size: 1.5rem; }
  .brand-mark { width: 38px; height: 38px; }
}

/* ---------- Подписи ---------- */
.kicker { display: inline-block; font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.02em; text-decoration: none; color: var(--c, var(--lake)); }
a.kicker:hover { text-decoration: underline; color: var(--c, var(--lake)); }
.meta { font-size: 0.875rem; color: var(--ink-3); }
.meta > * + *::before { content: "·"; margin-inline: 0.45em; }
[data-cat="turism"] { --c: var(--c-turism); }
[data-cat="sport"] { --c: var(--c-sport); }
[data-cat="zdorovie"] { --c: var(--c-health); }
[data-cat="stati"], [data-cat="sovety"] { --c: var(--c-articles); }
[data-cat="federacia"] { --c: var(--c-archive); }

/* ---------- Карточки-строки ---------- */
.story-title { font-family: var(--font-head); font-weight: 680; color: var(--ink); text-decoration: none; line-height: 1.22; letter-spacing: -0.008em; }
.story-title:hover { color: var(--lake-deep); text-decoration: underline; text-decoration-thickness: 1px; }
.photo { background: var(--sand-3); border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-empty { display: block; width: 100%; height: 100%; }
.entry-cover .photo:has(.photo-empty) { aspect-ratio: 3 / 2; }

/* ведущая статья главной */
.lead { display: grid; gap: 18px; padding-block: 24px 36px; }
.lead .photo { aspect-ratio: 3 / 2; max-width: 880px; }
.lead-body { display: grid; gap: 12px; align-content: center; }
.lead .story-title { font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.45rem); line-height: 1.12; font-weight: 720; }
.lead-ex { font-size: 1.0625rem; color: var(--ink-2); line-height: 1.55; max-width: 34rem; }
@media (min-width: 900px) {
  .lead { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; padding-block: 40px 56px; }
}

/* секции главной */
.band { padding-block: 36px; border-top: 1px solid var(--line); }
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 16px; margin-bottom: 20px; }
.band-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); }
.band-head a { font-size: 0.9375rem; font-weight: 550; white-space: nowrap; }
.band-sub { grid-column: 1 / -1; max-width: 40rem; color: var(--ink-3); font-size: 0.9375rem; margin-top: 4px; }

/* «Куда поехать»: одна большая + столбец строк */
.trips { display: grid; gap: 28px; align-items: start; }
.trip-main { display: grid; gap: 12px; }
.trip-main .photo { aspect-ratio: 3 / 2; }
.trip-main .story-title { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); }
.trip-main p { color: var(--ink-2); line-height: 1.55; }
@media (min-width: 900px) { .trips { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; } }

.rows { list-style: none; display: grid; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; padding-block: 14px; border-bottom: 1px solid var(--line); }
.row:first-child { padding-top: 0; }
.row:last-child { border-bottom: 0; }
.row .photo { aspect-ratio: 1; border-radius: var(--radius-sm); }
.row .story-title { font-size: 1.0625rem; display: block; margin-block: 2px 4px; }
@media (min-width: 640px) { .row { grid-template-columns: 128px minmax(0, 1fr); gap: 18px; } .row .photo { aspect-ratio: 4 / 3; } }

/* рубрики парами */
.pair { display: grid; gap: 36px; }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; gap: 56px; } }
.pair .row { grid-template-columns: 76px minmax(0, 1fr); }
.pair .row .photo { aspect-ratio: 1; }

/* архив федерации: только текст, по годам */
.archive { background: var(--sand-2); border-radius: var(--radius); padding: 24px 20px; box-shadow: inset 0 3px 0 var(--sun); }
.archive .band-head { margin-bottom: 12px; }
.years { list-style: none; display: grid; }
.years li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.years li:first-child { border-top: 0; }
.years time { font-family: var(--font-head); font-weight: 650; color: var(--c-archive); font-variant-numeric: tabular-nums; }
.years a { color: var(--ink); text-decoration: none; }
.years a:hover { color: var(--lake-deep); text-decoration: underline; }
@media (min-width: 900px) { .archive { padding: 32px 36px; } .years { grid-template-columns: 1fr 1fr; column-gap: 48px; } .years li:nth-child(2) { border-top: 0; } }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: 0.875rem; color: var(--ink-3); padding-top: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin-inline: 0.55em; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--lake-deep); text-decoration: underline; }

/* ---------- Статья ---------- */
.entry-head { max-width: 48rem; padding-block: 20px 22px; display: grid; gap: 14px; }
.entry-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.3vw, 2.9rem); line-height: 1.1; font-weight: 740; }
.entry-cover { margin: 0 0 28px; max-width: 952px; }   /* не шире текста с оглавлением (40rem + 72px + 15rem) */
.entry-cover .photo { aspect-ratio: auto; }
.entry-cover img { width: 100%; height: auto; }
.entry-cover figcaption { font-size: 0.8125rem; color: var(--ink-3); margin-top: 8px; }

.entry-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 1100px) {
  .entry-grid { grid-template-columns: minmax(0, var(--measure)) minmax(0, 15rem); gap: 72px; }
  .entry-aside { order: 2; }
}

/* оглавление: на телефоне — свёрнутое перед текстом, на широком экране — колонка сбоку */
.toc { font-size: 0.9375rem; }
.toc ol { list-style: none; counter-reset: t; display: grid; gap: 2px; }
.toc li { counter-increment: t; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); }
.toc li::before { content: counter(t); color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 5px; }
.toc a { display: block; padding-block: 5px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--lake-deep); text-decoration: underline; }
.toc-inline { background: var(--sand-2); border-radius: var(--radius-sm); padding: 0 14px; margin-bottom: 24px; max-width: var(--measure); }
.toc-inline summary { cursor: pointer; padding-block: 11px; font-weight: 650; color: var(--ink-2); }
.toc-inline ol { padding-bottom: 12px; }
.toc-side { display: none; }
@media (min-width: 1100px) {
  .toc-inline { display: none; }
  .toc-side { display: block; position: sticky; top: 24px; padding-left: 18px; border-left: 1px solid var(--line); }
  .toc-h { color: var(--ink-3); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 6px; }
}

/* текст записи — селекторы и для HTML из WP (p, h2–h4, ul/ol, figure, table, blockquote) */
.prose { font-size: var(--text); line-height: 1.68; max-width: var(--measure); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.05em; }
.prose > :first-child { font-size: 1.1em; line-height: 1.6; color: var(--ink); }
.prose h2 { font-size: 1.35em; line-height: 1.2; margin-top: 1.9em; scroll-margin-top: 20px; }
.prose h3 { font-size: 1.22em; line-height: 1.25; margin-top: 1.6em; }
.prose h4 { font-family: var(--font-ui); font-size: 1em; font-weight: 700; margin-top: 1.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose ul li::marker { color: var(--lake); }
.prose ol li::marker { color: var(--ink-3); font-weight: 650; }
.prose strong { font-weight: 650; }
.prose a { text-decoration-color: color-mix(in oklch, var(--lake) 45%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 0.8125rem; color: var(--ink-3); margin-top: 8px; }
.prose blockquote { margin-inline: 0; padding: 14px 18px; background: var(--sand-2); border-radius: var(--radius-sm); }
.prose .table { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9em; line-height: 1.45; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 650; background: var(--sand-2); }
.prose p:empty { display: none; }

.archive-note { display: flex; gap: 10px; align-items: baseline; font-size: 0.9375rem; color: var(--ink-2); background: var(--sand-2); border-radius: var(--radius-sm); padding: 12px 14px; max-width: var(--measure); }
.archive-note strong { color: var(--c-archive); font-weight: 650; }

.entry-foot { max-width: var(--measure); margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9375rem; color: var(--ink-3); }

.more { padding-block: 40px 8px; }

/* ---------- Рубрика ---------- */
.term-head { padding-block: 22px 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 44rem; }
.term-head h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); color: var(--ink); }
.term-head p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; }
.term-list { list-style: none; display: grid; }
.term-list .row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 22px; }
.term-list .row:first-child { padding-top: 0; }
.term-list .row .photo { aspect-ratio: 3 / 2; }
.term-list .story-title { font-size: 1.25rem; }
.term-list .ex { color: var(--ink-2); line-height: 1.55; margin-top: 6px; }
@media (min-width: 700px) {
  .term-list .row { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
  .term-list .row .photo { aspect-ratio: 4 / 3; }
}
@media (min-width: 1024px) { .term-list { max-width: 54rem; } }

@media (min-width: 900px) {
  .cols2 { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .cols2 .row:nth-child(-n+2) { padding-top: 0; }
  .cols2 .row:nth-last-child(-n+2) { border-bottom: 0; }
}
.band-fresh .pager { padding-top: 20px; }
.pager .gap { background: none; color: var(--ink-3); min-width: 24px; padding: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 28px 8px; list-style: none; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 550; font-variant-numeric: tabular-nums; }
.pager a { color: var(--ink-2); background: var(--sand-2); }
.pager a:hover { color: var(--ink); background: var(--sand-3); }
.pager [aria-current] { background: var(--ink); color: var(--sand); box-shadow: inset 0 -3px 0 var(--sun); }

/* ---------- 404 ---------- */
.oops { padding-block: 48px 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 40rem; }
.oops h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); }
.oops p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; }
.find { display: flex; gap: 8px; margin-top: 8px; }
.find input { flex: 1; min-width: 0; height: 48px; padding-inline: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--sand); font: inherit; color: var(--ink); }
.find button { height: 48px; padding-inline: 18px; border: 0; border-radius: var(--radius-sm); background: var(--ink); color: var(--sand); font: inherit; font-weight: 600; cursor: pointer; }
.find button:hover { background: var(--lake-deep); }
.oops nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.oops nav a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.oops nav a:hover { border-color: var(--ink-2); color: var(--ink); }

/* ---------- Поиск, страницы списков ---------- */
.term-head + .find { max-width: 40rem; margin: 0 0 28px; }
.term-page { color: var(--ink-3); font-size: 0.9375rem; }
.term-empty { color: var(--ink-2); font-size: 1.0625rem; padding-block: 8px 24px; }
.oops-search { padding-top: 8px; }
.oops-search h2 { font-size: 1.125rem; }
.suggest { list-style: none; display: grid; gap: 6px; }
.archive-list { margin-bottom: 8px; }
.page-n { padding-top: 24px; }
.page-n h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
.archive-note + .entry-grid { margin-top: 24px; }
.page-prose { padding-bottom: 8px; }

/* ---------- Подвал ---------- */
.site-foot { margin-top: 56px; background: var(--night); color: var(--on-night-2); font-size: 0.9375rem; }
.foot-grid { display: grid; gap: 28px; padding-block: 40px 28px; }
.site-foot .brand { color: var(--on-night); }
.site-foot .brand-tag { display: block; border: 0; padding: 0; margin: 8px 0 0; color: var(--on-night-2); font-size: 0.875rem; line-height: 1.5; }
.foot-brand { display: block; }
.site-foot h2 { font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.04em; color: var(--on-night-2); margin-bottom: 10px; }
.site-foot ul { list-style: none; display: grid; gap: 6px; }
.site-foot a { color: var(--on-night); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--on-night); }
.foot-base { border-top: 1px solid var(--on-night-line); padding-block: 16px 22px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8125rem; }
@media (max-width: 759px) { .site-foot ul { gap: 0; } .site-foot li a { display: block; padding-block: 10px; } }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }

/* ---------- Печать ---------- */
@media print {
  .site-head .nav, .head-search, .toc, .more, .site-foot { display: none; }
  body { background: none; color: oklch(0.2 0 0); }
}
