/* oqu-bilim.kz — тема по макету ChatGPT (одобрен владельцем 30.10.2026), kz-engine 0.1.1. Токены — site/DESIGN.md.
   Шрифты свои (Noto Sans / Noto Serif, OFL, assets/fonts), внешних ресурсов нет. */

@font-face { font-family: "Noto Sans"; src: url("fonts/noto-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("fonts/noto-sans-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("fonts/noto-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("fonts/noto-serif-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("fonts/noto-serif-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --ink: #223548;        /* основной текст, подвал, активная страница */
  --accent: #2E7D6F;     /* ссылки, кнопки, активные элементы */
  --accent-dark: #256A5E;
  --warm: #D29A43;       /* тёплый акцент — только декор */
  --coral: #E58A6B;      /* доп. акцент — только декор */
  --bg: #FFF9F2;         /* фон страницы */
  --surface: #FFFFFF;    /* карточки */
  --alt: #F4EEE5;        /* альтернативная поверхность, бейджи, шапка таблиц */
  --line: #E2D8CA;       /* границы */
  --muted: #5F6B76;      /* вторичный текст (#6F7C87 макета затемнён до 5:1 на фоне) */
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(34, 53, 72, .05), 0 6px 20px rgba(34, 53, 72, .06);
  --shadow-up: 0 2px 4px rgba(34, 53, 72, .06), 0 14px 32px rgba(34, 53, 72, .12);
  --gutter: 24px;
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.22; margin: 0 0 .6em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.125rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { max-width: calc(1280px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
main { display: block; padding-bottom: 72px; }

/* ---------- кнопки, бейджи, таблетки, поиск ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; background: var(--accent); color: #fff; font-weight: 600; font-size: .9375rem; text-decoration: none; padding: .75rem 1.4rem; border-radius: 999px; transition: background-color .15s ease; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn svg { transition: transform .15s ease; }
.btn:hover svg { transform: translateX(3px); }
.badge { display: inline-block; font: 600 .75rem/1.2 var(--sans); color: var(--ink); background: var(--alt); border: 1px solid #E9DFD1; padding: .32rem .75rem; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
a.badge:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pills ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-block; font-size: .875rem; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); padding: .4rem 1rem; border-radius: 999px; white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.pills a:hover { border-color: var(--accent); color: var(--accent); }
.pills a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.find { display: flex; max-width: 36rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.find:focus-within { border-color: var(--accent); }
.find input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); border: 0; background: transparent; padding: .75rem 1rem; }
.find input:focus { outline: none; }
.find button { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 52px; font: 600 .9375rem var(--sans); color: #fff; background: var(--accent); border: 0; padding: 0 1.1rem; cursor: pointer; }
.find button:hover { background: var(--accent-dark); }
.find button svg { width: 20px; height: 20px; }
.photo-empty { display: block; width: 100%; height: 100%; min-height: 120px; background: linear-gradient(135deg, var(--alt), #EFE6D8); }

/* ---------- шапка ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 32px; min-height: var(--head-h); }
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.1; flex: none; }
.logo:hover { color: var(--ink); }
.logo-name { font: 700 1.625rem/1.1 var(--serif); letter-spacing: -.01em; }
.logo-tag { font-size: .75rem; color: var(--muted); margin-top: 3px; }
.nav { flex: 1; min-width: 0; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 26px; }
.nav a { display: block; padding: 24px 0 22px; font-size: .9375rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.head-search { position: relative; flex: none; width: 250px; }
.head-search input { width: 100%; font: inherit; font-size: .875rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .6rem 2.6rem .6rem .9rem; }
.head-search input:focus { outline: none; border-color: var(--accent); background: #fff; }
.head-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 8px; }
.head-search button:hover { color: var(--accent); }
.head-search svg, .icon-btn svg { width: 20px; height: 20px; }
.head-btns { display: none; gap: 4px; margin-left: auto; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--alt); }
@media (max-width: 1099.98px) {
  .head-row { flex-wrap: wrap; gap: 0 12px; }
  .head-btns { display: flex; }
  .nav, .head-search { order: 3; flex: 1 0 100%; width: 100%; }
  .js .nav[data-open="false"], .js .head-search[data-open="false"] { display: none; }
  .nav ul { flex-direction: column; gap: 0; padding: 4px 0 12px; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border-bottom: 0; }
  .nav a[aria-current] { border-bottom-color: var(--line); }
  .head-search { padding: 4px 0 14px; }
  .head-search button { top: calc(50% - 5px); }
}
@media (max-width: 479.98px) {
  :root { --head-h: 64px; --gutter: 16px; }
  .logo-name { font-size: 1.375rem; }
  .logo-tag { font-size: .6875rem; }
}

/* ---------- общие блоки ---------- */
.band { margin-top: 56px; }
.band-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: 22px; }
.band-head h2 { margin: 0; font-size: clamp(1.6rem, 1.35rem + .8vw, 2rem); }
.more-link { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; font-weight: 600; font-size: .9375rem; text-decoration: none; }
.term-head { margin: 28px 0 24px; }
.term-head h1 { margin-bottom: .3em; }
.term-head p { color: var(--muted); margin: 0 0 .4em; max-width: 46rem; }
.term-head + .pills, .term-head + .find { margin-bottom: 28px; }
.term-page { font-size: .9375rem; }
.term-empty { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: .8125rem; color: var(--muted); }
.ex { color: var(--muted); }

/* ---------- первый экран главной ---------- */
.leads { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: var(--gutter); margin-top: 28px; }
.lead { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .2s ease; }
.lead:hover { box-shadow: var(--shadow-up); }
.lead-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 8px 20px 24px; }
.lead-title { margin: 0; font-size: 1.1875rem; line-height: 1.32; }
.lead .meta { margin-top: auto; }
.story-title { color: var(--ink); text-decoration: none; }
.story-title:hover { color: var(--accent); }
.lead-img { display: block; min-height: 100%; }
.lead-img img, .lead-img .photo-empty { width: 100%; height: 100%; object-fit: cover; }
.lead-big { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); min-height: 440px; }
.lead-big .lead-text { padding: 44px 28px 40px 44px; gap: 18px; }
.lead-big .lead-title { font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.2; }
.lead-big .ex { font-size: 1.0625rem; line-height: 1.6; margin: 0; }
.lead-big .meta { margin-top: 0; }
.lead-big .btn { margin-top: auto; }
.lead-big .lead-img { position: relative; }
.lead-big .lead-img::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 22%; background: linear-gradient(90deg, var(--surface), rgba(255, 255, 255, 0)); }
.leads-side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gutter); }

/* ---------- карточки ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gutter); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.card-img { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--alt); }
.card-img img, .card-img .photo-empty { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 8px 8px; flex: 1; }
.card .story-title { font: 700 1.0625rem/1.38 var(--serif); }
.card .ex { margin: 0; font-size: .875rem; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 4px; }
.card-more { padding: 0; background: var(--alt); box-shadow: none; }
.card-more a { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 28px; text-decoration: none; color: var(--ink); font: 700 1.5rem/1.25 var(--serif); }
.card-more .card-more-sub { font: 400 .9375rem var(--sans); color: var(--muted); }
.card-more svg { color: var(--accent); margin-top: 8px; transition: transform .15s ease; }
.card-more a:hover svg { transform: translateX(4px); }

/* ---------- рубрики на главной ---------- */
.rubrics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.rubric a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .2s ease; }
.rubric a:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.rubric-img { display: block; aspect-ratio: 4 / 3; background: var(--alt); }
.rubric-img img, .rubric-img .photo-empty { width: 100%; height: 100%; object-fit: cover; }
.rubric-name { display: block; padding: 12px 14px 2px; font-weight: 700; font-size: .9375rem; line-height: 1.3; }
.rubric a:hover .rubric-name { color: var(--accent); }
.rubric-desc { display: block; padding: 2px 14px 14px; font-size: .8125rem; line-height: 1.45; color: var(--muted); }

/* ---------- о портале ---------- */
.about { position: relative; margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 48px 56px; overflow: hidden; box-shadow: var(--shadow); }
.about-text, .about-icons { position: relative; z-index: 1; }
.about h2 { font-size: clamp(1.6rem, 1.3rem + .9vw, 2rem); }
.about p { color: #3F4F5E; }
.about-text p:last-child { margin-bottom: 0; }
.about-icons { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: center; font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.about-icons li { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.about-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.about-icons li:nth-child(1) .about-ic { background: #FBE3D9; color: #C2603D; }
.about-icons li:nth-child(2) .about-ic { background: #DCEDE7; color: var(--accent); }
.about-icons li:nth-child(3) .about-ic { background: #F8E8CC; color: #A9721F; }
.about-icons li:nth-child(4) .about-ic { background: #DCEDE7; color: var(--accent); }
.about .hills { position: absolute; right: 0; bottom: 0; width: 50%; height: auto; z-index: 0; }

/* ---------- пагинация ---------- */
.pager { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.pager a:hover { border-color: var(--accent); color: var(--accent); background: #FBF6EE; }
.pager [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .gap { border: 0; background: transparent; min-width: 24px; padding: 0; }

/* ---------- крошки ---------- */
.crumbs ol { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .8125rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 .55rem; color: #9AA3AB; }
.crumbs li[aria-current] { min-width: 0; max-width: 36rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(46, 125, 111, .35); }

/* ---------- запись ---------- */
.entry-head { display: grid; gap: 40px; align-items: center; margin: 20px 0 48px; }
.entry-head.has-cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.entry-head-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 46rem; }
.entry-head h1 { margin: 0; font-size: clamp(2rem, 1.3rem + 2vw, 3rem); line-height: 1.17; }
.entry-head .meta { font-size: .875rem; }
.entry-cover { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--alt); box-shadow: var(--shadow); }
.entry-cover img { width: 100%; height: 100%; object-fit: cover; }
.entry-grid { display: grid; grid-template-columns: minmax(0, 800px) minmax(0, 280px); gap: 64px; justify-content: space-between; }
.entry-main { min-width: 0; }
.entry-aside { min-width: 0; }
.toc-side { position: sticky; top: calc(var(--head-h) + 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-size: .9375rem; }
.toc-h { font: 700 1.0625rem var(--serif); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: .4rem 0; line-height: 1.4; }
.toc li::marker { color: var(--accent); font-weight: 600; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.toc-inline { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 28px; }
.toc-inline summary { cursor: pointer; font-weight: 700; }
.toc-inline ol { margin-top: 12px; }
@media (max-width: 1023.98px) {
  .entry-grid { grid-template-columns: minmax(0, 1fr); }
  .entry-aside { display: none; }
  .toc-inline { display: block; }
}

/* текст записи: разметка из WP не меняется, вид — только стилями */
.prose { font-size: 1.125rem; line-height: 1.78; color: #2A3B4C; max-width: 800px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); line-height: 1.28; margin: 1.6em 0 .6em; }
.prose h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.33; margin: 1.5em 0 .5em; }
.prose h4 { font-size: 1.1875rem; margin: 1.4em 0 .5em; }
.prose a { font-weight: 600; text-decoration-color: rgba(46, 125, 111, .4); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 0; list-style: none; }
.prose li { position: relative; margin: .45em 0; padding-left: 1.9rem; }
.prose ul > li::before { content: ""; position: absolute; left: .45rem; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.prose ol { counter-reset: ol; }
.prose ol > li { counter-increment: ol; padding-left: 2.6rem; }
.prose ol > li::before { content: counter(ol); position: absolute; left: 0; top: .15em; width: 1.8rem; height: 1.8rem; border: 1.5px solid var(--accent); border-radius: 50%; display: grid; place-items: center; font: 600 .875rem/1 var(--sans); color: var(--accent); }
.prose blockquote { position: relative; margin: 1.6em 0; padding: 26px 30px 26px 76px; background: #FBF0E4; border-radius: var(--radius); font: italic 400 1.3125rem/1.6 var(--serif); color: var(--ink); }
.prose blockquote::before { content: "“"; position: absolute; left: 24px; top: 6px; font: 700 4rem/1 var(--serif); color: var(--warm); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: .6em; font: normal 600 .9375rem var(--sans); color: var(--muted); }
.prose figure { margin: 1.6em 0; }
.prose img { width: 100% !important; max-width: 100%; height: auto !important; margin: 1.4em 0 !important; border-radius: var(--radius); }
.prose figure img { margin: 0 !important; }
.prose figcaption, .prose .wp-element-caption { color: var(--muted); font-size: .8125rem; line-height: 1.4; margin-top: .6em; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.prose strong, .prose b { font-weight: 700; color: var(--ink); }
.table { overflow-x: auto; margin: 1.6em 0; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: .9375rem; line-height: 1.5; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .8rem 1rem; text-align: left; vertical-align: top; }
.prose tr > :not(:last-child) { border-right: 1px solid var(--line); }
.prose tr:last-child > td { border-bottom: 0; }
.prose th, .prose thead td { background: #F7ECDD; font-weight: 700; color: var(--ink); }
.prose tbody tr:nth-child(even) td { background: #FFFCF8; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .has-text-align-center { text-align: center; }
.entry-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.subpages { padding-left: 1.2rem; }
.more { margin-top: 72px; }

/* комментарии (архив, без формы) */
.comments { margin-top: 56px; max-width: 800px; }
.comments h2 { font-size: 1.625rem; }
.comments-note { color: var(--muted); font-size: .9375rem; }
.comment-list, .comment-list ol { list-style: none; margin: 0; padding: 0; }
.comment-list ol { padding-left: 24px; border-left: 2px solid var(--line); }
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 12px 0; }
.comment-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.comment-author { font-weight: 700; }
.comment-head time { color: var(--muted); font-size: .8125rem; }
.comment-body p:last-child { margin-bottom: 0; }

/* ---------- 404 и пустой поиск ---------- */
.oops { max-width: 48rem; margin: 0 auto; padding: 40px 0 8px; text-align: center; }
.oops-art { max-width: 460px; margin: 0 auto; }
.oops-art .hills { width: 100%; height: auto; }
.oops-num { display: block; margin-top: -8px; font: 700 clamp(4.5rem, 3rem + 6vw, 7rem)/1 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.oops h1 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); margin-top: 12px; }
.oops > p { color: var(--muted); }
.oops .btn { margin: 6px 0 4px; }
.oops .find { margin: 24px auto 0; text-align: left; }
.oops-cats ul, .suggest { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.oops-cats .badge { font-size: .875rem; padding: .45rem 1rem; }
.oops-search { max-width: none; margin: 0; padding: 8px 0 0; text-align: left; }
.oops-search .oops-cats ul { justify-content: flex-start; }
.oops-search h2 { font-size: 1.375rem; margin-top: 24px; }
.suggest { display: block; }
.suggest li { margin: .35rem 0; }

/* ---------- подвал ---------- */
.site-foot { background: var(--ink); color: #C9D2DA; padding: 56px 0 28px; font-size: .9375rem; }
.site-foot a { color: #fff; }
.site-foot h2 { color: #fff; font: 700 1rem var(--sans); margin-bottom: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px 56px; }
.logo-inv, .logo-inv:hover { color: #fff; }
.logo-inv .logo-tag { color: #B9C4CE; }
.foot-about p { margin-top: 16px; max-width: 26rem; color: #B9C4CE; line-height: 1.6; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.foot-nav li { margin: 0 0 .5rem; break-inside: avoid; }
.foot-nav a { color: #DCE3E9; text-decoration: none; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.find-inv { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); }
.find-inv input { color: #fff; }
.find-inv input::placeholder { color: #A9B4BF; }
.find-inv:focus-within { border-color: #7FC3B5; }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); color: #A9B4BF; font-size: .8125rem; }
.foot-base p { margin: 0; }

/* ---------- узкие экраны ---------- */
@media (max-width: 1199.98px) {
  .rubrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr); padding-bottom: 170px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .about .hills { width: 80%; }
}
@media (max-width: 1023.98px) {
  .leads { grid-template-columns: minmax(0, 1fr); }
  .leads-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .entry-head.has-cover { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 767.98px) {
  .cards, .cards-3 { grid-template-columns: minmax(0, 1fr); }
  .leads { margin-top: 16px; gap: 16px; }
  .lead-big { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .lead-big .lead-img { order: -1; aspect-ratio: 4 / 3; }
  .lead-big .lead-img::before { display: none; }
  .lead-big .lead-text { padding: 22px 20px 24px; gap: 14px; }
  .lead-big .btn { margin-top: 4px; }
  .leads-side { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .leads-side .lead { grid-template-columns: minmax(0, 1fr) 128px; }
  .lead-text { padding: 16px 8px 16px 16px; gap: 8px; }
  .lead-title { font-size: 1.0625rem; }
  .band { margin-top: 44px; }
  .band-head .pills { width: 100%; }
  .pills ul { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .pills ul::-webkit-scrollbar { display: none; }
  .rubrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .about { padding: 28px 22px 130px; margin-top: 44px; }
  .about-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .about .hills { width: 120%; right: -10%; }
  .entry-head { margin-bottom: 32px; gap: 24px; }
  .prose { font-size: 1rem; line-height: 1.75; }
  .prose blockquote { padding: 22px 20px 22px 56px; font-size: 1.125rem; }
  .prose blockquote::before { left: 14px; font-size: 3rem; }
  .prose table { min-width: 560px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .more-link { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .rubric a:hover { transform: none; }
}
@media print {
  .site-head, .site-foot, .entry-aside, .toc-inline, .pager, .more { display: none; }
  body { background: #fff; }
}
