/*
Theme Name: Тропа туриста
Theme URI: https://touristrail.ru/
Description: Тема каталога пеших маршрутов и экотроп: маршрут как главный объект (карточки с км/временем/перепадом, фильтр по сложности, длине и региону), паспорт маршрута из мета-полей, цветные метки сложности, горизонтали топокарты, профиль высоты. PT Sans Narrow + PT Sans. Фото мест — Wikimedia Commons с атрибуцией. Mobile-first.
Version: 2.0.0
Author: Редакция «Тропы туриста»
Text Domain: touristrail
Requires PHP: 7.4
*/

:root {
	--bg: #f3f0e6;
	--paper: #fffdf8;
	--forest: #1f3a2c;
	--forest-2: #2b4d39;
	--moss: #5f8a4e;
	--moss-l: #e4ead7;
	--ink: #18241c;
	--text: #2d3a31;
	--muted: #67705f;
	--line: #dcd7c6;
	--amber: #f2b544;
	--amber-d: #9a6410;
	--easy: #3d8b3d;
	--medium: #2f6db5;
	--hard: #c43c2c;
	--head: "PT Sans Narrow", "Arial Narrow", "Roboto Condensed", sans-serif;
	--sans: "PT Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--w: 1200px;
	--r: 8px;
	--topo-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='220' viewBox='0 0 320 220'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1.3'%3E%3Cpath d='M-10 40c40-22 80-26 120-8s84 24 120 2 70-20 100-6'/%3E%3Cpath d='M-10 72c42-18 84-20 122-4s86 20 124-2 66-16 94-4'/%3E%3Cpath d='M-10 106c46-14 88-14 124 2s90 16 128-4 60-12 88-2'/%3E%3Cpath d='M-10 142c50-10 92-8 128 8s92 12 130-6 56-8 82 0'/%3E%3Cpath d='M-10 180c52-6 96-2 130 12s92 8 130-8 52-6 80 2'/%3E%3Cellipse cx='232' cy='22' rx='30' ry='10'/%3E%3C/g%3E%3C/svg%3E");
	--topo-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260' viewBox='0 0 420 260'%3E%3Cg fill='none' stroke='%231f3a2c' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M-10 50c60-30 120-34 180-10s110 30 160 4 70-20 100-8'/%3E%3Cpath d='M-10 90c62-24 124-26 182-4s112 24 162-2 66-16 96-4'/%3E%3Cpath d='M-10 132c66-18 126-18 184 2s114 18 164-6 62-12 92-2'/%3E%3Cpath d='M-10 176c70-12 128-10 186 8s116 14 166-8 58-8 88 0'/%3E%3Cpath d='M-10 222c72-8 132-2 188 14s116 8 166-10 56-6 86 2'/%3E%3Cellipse cx='300' cy='30' rx='40' ry='13'/%3E%3Cellipse cx='300' cy='30' rx='20' ry='6'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--sans); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-2); text-decoration-color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--hard); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: .005em; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- Шапка ---------- */
.top { background: var(--forest); color: #fff; }
.top__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding-top: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; padding: 4px 0; }
.logo:hover { color: #fff; }
.logo__mark { flex: none; display: block; }
.logo__txt { font: 700 22px/1 var(--head); }
.logo__txt small { display: block; margin-top: 3px; font: 400 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #b9c8b5; }
.top__find { display: inline-grid; place-items: center; width: 42px; height: 42px; color: #fff; border-radius: 50%; }
.top__find:hover { background: var(--forest-2); color: #fff; }
.top__nav { order: 3; overflow-x: auto; scrollbar-width: none; margin: 8px -16px 0; padding: 0 16px 10px; width: calc(100% + 32px); }
.top__nav::-webkit-scrollbar { display: none; }
.top__nav .menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.top__nav .menu a { display: block; padding: 8px 14px; border-radius: 4px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; font: 700 17px/1 var(--head); letter-spacing: .02em; }
.top__nav .menu a:hover, .top__nav .current-menu-item > a { background: var(--amber); color: var(--forest); }
@media (min-width: 921px) {
	.top__row { flex-wrap: nowrap; padding: 12px 16px; }
	.top__nav { order: 0; width: auto; margin: 0; padding: 0; overflow: visible; }
	.top__nav .menu a { background: transparent; }
}

/* ---------- Поиск ---------- */
.finder { display: flex; max-width: 560px; background: #fff; border-radius: 6px; padding: 4px; box-shadow: 0 6px 24px rgba(0, 0, 0, .2); }
.finder input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px; font: 400 17px var(--sans); color: var(--ink); }
.finder input:focus { outline: none; }
.finder button { border: 0; border-radius: 4px; background: var(--amber); color: var(--forest); font: 700 18px var(--head); padding: 0 20px; cursor: pointer; }
.finder button:hover { background: var(--forest); color: #fff; }

/* ---------- Метки сложности («затёсы» на дереве) ---------- */
.blz { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.blz__m { display: inline-block; flex: none; width: 10px; height: 16px; border-radius: 2px; background: var(--muted); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .12); margin: 0 3px; }
.blz__m--easy { background: var(--easy); }
.blz__m--medium { background: var(--medium); }
.blz__m--hard { background: var(--hard); }
.blz__t { margin-left: 4px; font-weight: 700; }

/* ---------- Профиль высоты (декор) ---------- */
.prof { display: block; width: 100%; height: 56px; }
.prof__fill { fill: var(--bg); }
.prof__line { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 10 7; vector-effect: non-scaling-stroke; }
@media (min-width: 921px) { .prof { height: 90px; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--forest); color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 36, 27, .35) 0%, rgba(20, 36, 27, .7) 60%, rgba(20, 36, 27, .88) 100%); }
.hero__in, .hero .prof, .hero__credit { position: relative; z-index: 1; }
.hero__in { padding-top: 72px; padding-bottom: 10px; }
.hero__k { margin: 0 0 10px; font: 700 15px/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.hero__t { color: #fff; font-size: clamp(34px, 8.4vw, 64px); max-width: 860px; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.hero__lede { font-size: 19px; max-width: 600px; margin: 12px 0 20px; color: #e7eee3; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick__i { display: inline-flex; align-items: center; gap: 2px; cursor: pointer; color: #fff; text-decoration: none; font: 700 17px/1 var(--head); padding: 9px 13px; border-radius: 4px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(4px); }
.quick__i:hover { background: #fff; color: var(--forest); }
.quick__i .blz__m { width: 8px; height: 13px; margin-right: 6px; }
.hero .prof { margin-top: 18px; }
.hero .hero__credit { max-width: none; margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); background: var(--bg); padding: 2px 16px 8px max(16px, calc((100% - var(--w)) / 2 + 16px)); }
.hero__credit a { color: var(--muted); }
@media (min-width: 921px) { .hero__in { padding-top: 150px; } }

/* ---------- Секции ---------- */
.sec { padding: 40px 16px; }
.sec__t { font-size: clamp(30px, 6.6vw, 42px); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.sec__t::before { content: ""; flex: none; width: 34px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--amber) 0 8px, transparent 8px 13px); }

/* ---------- Маршруты + фильтр ---------- */
.routes { background: var(--bg) var(--topo-l); padding: 26px 0 44px; }
.routes__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 20px; }
.routes__note { margin: -8px 0 16px; font-size: 14px; color: var(--muted); }
.rf__g { border: 0; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rf__g legend { float: left; width: 100%; margin-bottom: 4px; padding: 0; font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rf__in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rf__g label { display: inline-flex; align-items: center; cursor: pointer; padding: 8px 12px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); font: 700 16px/1 var(--head); color: var(--ink); }
.rf__g label:hover { border-color: var(--forest); }
.rf__g label .blz__m { width: 8px; height: 13px; margin-right: 7px; }
.rf__in:checked + label { background: var(--forest); border-color: var(--forest); color: #fff; }
.rf__in:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (min-width: 921px) {
	.rf__g legend { float: none; width: auto; margin: 0 8px 0 0; min-width: 96px; }
}

.rlist { display: grid; gap: 14px; margin-top: 18px; }
.rf__empty { display: none; margin: 18px 0 0; padding: 16px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); background: var(--paper); }
.rf--none .rf__empty { display: block; }

/* фильтр: CSS :has, без перезагрузки */
.rf:has(#lv-easy:checked) .rc:not([data-lv~="easy"]),
.rf:has(#lv-medium:checked) .rc:not([data-lv~="medium"]),
.rf:has(#lv-hard:checked) .rc:not([data-lv~="hard"]),
.rf:has(#ln-s:checked) .rc:not([data-ln~="s"]),
.rf:has(#ln-m:checked) .rc:not([data-ln~="m"]),
.rf:has(#ln-l:checked) .rc:not([data-ln~="l"]),
.rf:has(#rg-spb:checked) .rc:not([data-rg="spb"]),
.rf:has(#rg-msk:checked) .rc:not([data-rg="msk"]),
.rf:has(#rg-yug:checked) .rc:not([data-rg="yug"]),
.rf:has(#rg-karelia:checked) .rc:not([data-rg="karelia"]),
.rf:has(#rg-abroad:checked) .rc:not([data-rg="abroad"]) { display: none; }

/* Карточка маршрута */
.rc { position: relative; display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rc__img { position: relative; display: block; background: var(--forest) var(--topo-d); }
.rc__img img, .rc__img .ph { width: 100%; height: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.rc__type { position: absolute; left: 10px; top: 10px; font: 700 14px/1 var(--head); letter-spacing: .03em; padding: 6px 9px; border-radius: 3px; background: var(--amber); color: var(--forest); }
.rc__b { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rc__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font: 700 13px/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--moss); }
.rc__meta span + span::before { content: "·"; margin-right: 12px; color: var(--line); }
.rc__t { font-size: 25px; }
.rc__t a { color: var(--ink); text-decoration: none; }
.rc__t a::after { content: ""; position: absolute; inset: 0; }
.rc__t a:hover { color: var(--hard); }
.rc__p { margin: 2px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.rc__pi { padding: 8px 10px 8px 0; min-width: 0; }
.rc__pi + .rc__pi { padding-left: 10px; border-left: 1px dashed var(--line); }
.rc__pi dt { font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rc__pi dd { margin: 4px 0 0; font: 700 17px/1.2 var(--head); color: var(--ink); }
.rc .blz { position: relative; z-index: 1; }
@media (min-width: 561px) {
	.rlist .rc { grid-template-columns: 38% 1fr; }
	.rlist .rc__img img, .rlist .rc__img .ph { aspect-ratio: auto; min-height: 100%; position: absolute; inset: 0; }
	.rlist .rc__img { min-height: 190px; }
}
@media (min-width: 921px) {
	.rlist { grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* ---------- Карточки в рубриках/поиске ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 561px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 921px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card__img img, .card__img .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.card__img .ph, .rc__img .ph { background: var(--forest) var(--topo-d); }
.card__b { padding: 12px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__cat { font: 700 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--moss); }
.card__t { font-size: 24px; }
.card__t a { color: var(--ink); text-decoration: none; }
.card__t a:hover { color: var(--hard); }
.card__ex { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.45; }

/* ---------- Регионы ---------- */
.regions { display: grid; gap: 14px; }
.region { background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.region__img { margin: 0; }
.region__img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
@media (min-width: 921px) { .region__img img { aspect-ratio: 3 / 2; } }
.region__img figcaption { font-size: 11px; line-height: 1.35; color: var(--muted); padding: 6px 14px 0; }
.region__img figcaption a { color: var(--muted); }
.region__b { padding: 10px 14px 14px; }
.region__t { font-size: 24px; margin-bottom: 6px; }
.region__list { list-style: none; margin: 0; padding: 0; }
.region__list li { padding: 7px 0; border-top: 1px dashed var(--line); font-size: 16px; line-height: 1.35; }
.region__list a { color: var(--ink); text-decoration: none; font-weight: 700; }
.region__list a:hover { color: var(--hard); }
.region__km { white-space: nowrap; font: 700 14px/1 var(--head); color: var(--amber-d); }
.region__soon { color: var(--muted); margin: 0; font-size: 16px; }
@media (min-width: 561px) { .regions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 921px) { .regions { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Снаряжение и подготовка ---------- */
.gear { background: var(--forest) var(--topo-d); color: #dfe7da; padding: 44px 0; }
.gear .sec__t { color: #fff; }
.gear__in { display: grid; gap: 20px; }
.gear__t { color: #fff; font-size: 23px; margin-bottom: 10px; }
.gear__links { list-style: none; margin: 0; padding: 0; }
.gear__links li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.gear__links a { color: #fff; font-weight: 700; text-decoration-color: var(--amber); }
.gear__links a:hover { color: var(--amber); }
.legend { list-style: none; margin: 0; padding: 0; }
.legend li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 16px; line-height: 1.45; }
.legend .blz__m { margin-top: 4px; box-shadow: 0 0 0 2px #fff; }
.legend b { color: #fff; }
.gear__note { font-size: 14px; color: #b3c2ae; margin: 10px 0 0; }
@media (min-width: 561px) { .gear__in { grid-template-columns: 1fr 1fr; } .gear__col:last-child { grid-column: 1 / -1; } }
@media (min-width: 921px) { .gear__in { grid-template-columns: 1.1fr 1fr 1fr; gap: 36px; } .gear__col:last-child { grid-column: auto; } }

/* Чек-лист (главная и рубрика «Сборы в поход») */
.check { list-style: none; padding: 0 !important; margin: 1.1em 0; }
.check li { margin: 0; }
.check label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 2px 0 0; border: 2px solid var(--moss); border-radius: 4px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--moss); }
.check input:checked::after { opacity: 1; }
.check input:checked + span { text-decoration: line-through; color: var(--muted); }
.check--card { background: var(--paper); color: var(--text); border-radius: var(--r); padding: 4px 6px !important; margin: 0; font-size: 17px; }
.check--card li:last-child label { border-bottom: 0; }

.btn { display: inline-block; background: var(--forest); color: #fff; text-decoration: none; font: 700 18px/1 var(--head); padding: 13px 22px; border-radius: 4px; }
.btn:hover { background: var(--amber); color: var(--forest); }

/* ---------- Шапка рубрики / поиска ---------- */
.phead { background: var(--forest) var(--topo-d); color: #dfe7da; padding: 34px 0 30px; }
.phead__k { font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin: 0 0 10px; }
.phead__t { color: #fff; font-size: clamp(34px, 7.6vw, 54px); }
.phead__d { max-width: 680px; margin-top: 10px; }
.phead__d p { margin: 0; }
.phead .finder { margin-top: 18px; }
.empty { color: var(--muted); }

/* ---------- Статья ---------- */
.art__head { position: relative; background: var(--forest) var(--topo-d); color: #fff; padding: 34px 0 26px; }
.art__head--img { padding: 0; min-height: 360px; display: flex; align-items: flex-end; }
.art__head--img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art__head--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 36, 27, 0) 25%, rgba(20, 36, 27, .86) 100%); }
.art__hw { position: relative; z-index: 1; padding-top: 30px; padding-bottom: 24px; }
.art__cat { display: inline-block; font: 700 15px/1 var(--head); color: var(--forest); background: var(--amber); text-decoration: none; padding: 6px 10px; border-radius: 3px; margin-bottom: 12px; }
.art__cat:hover { background: #fff; color: var(--forest); }
.art__t { color: #fff; font-size: clamp(34px, 8vw, 58px); max-width: 920px; }
.art__meta { color: #d5dfd2; font-size: 15px; margin: 10px 0 0; }
.art__credit { font-size: 12px; color: var(--muted); margin-top: 6px; }
.art__body { max-width: 800px; padding-top: 26px; padding-bottom: 10px; }
@media (min-width: 921px) { .art__head--img { min-height: 480px; } }

.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 24px; }
.toc summary { cursor: pointer; padding: 12px 16px; font: 700 18px var(--head); color: var(--forest); }
.toc ol { margin: 0; padding: 0 16px 14px 36px; font-size: 16px; }
.toc li { margin: 4px 0; }

/* Паспорт маршрута (мета-поля) */
.pp { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 1.6em; }
.pp__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; background: var(--forest) var(--topo-d); color: #fff; }
.pp__t { margin: 0 auto 0 0; font: 700 20px/1.1 var(--head); letter-spacing: .03em; text-transform: uppercase; color: var(--amber); }
.pp__tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font: 700 14px/1 var(--head); padding: 5px 8px; border-radius: 3px; background: rgba(255, 255, 255, .14); color: #fff; }
.tag--type { background: var(--amber); color: var(--forest); }
.pp__head .blz { color: #fff; }
.pp__nums { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-bottom: 1px solid var(--line); }
.pp__n { padding: 12px 16px; border-bottom: 1px dashed var(--line); }
.pp__n dt { font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pp__n dd { margin: 6px 0 0; font: 700 22px/1.15 var(--head); color: var(--ink); }
.pp__rows { margin: 0; padding: 4px 16px 10px; }
.pp__r { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 16px; line-height: 1.45; }
.pp__r:last-child { border-bottom: 0; }
.pp__r dt { font: 700 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }
.pp__r dd { margin: 3px 0 0; color: var(--ink); }
@media (min-width: 561px) {
	.pp__n { border-bottom: 0; }
	.pp__n + .pp__n { border-left: 1px dashed var(--line); }
	.pp__r { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
	.pp__r dd { margin: 0; }
}

/* Мини-паспорт тропы в тексте */
.mini { display: flex; flex-wrap: wrap; margin: 0 0 1.3em; padding: 0; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--r); background: var(--paper); }
.mini__i { flex: 1 1 100%; padding: 8px 14px; border-bottom: 1px dashed var(--line); font-size: 16px; line-height: 1.4; }
.mini__i:last-child { border-bottom: 0; }
.mini__i dt { font: 700 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }
.mini__i dd { margin: 2px 0 0; color: var(--ink); }
.mini__i--dlina dd, .mini__i--vremya dd, .mini__i--perepad dd { font: 700 18px/1.25 var(--head); }
@media (min-width: 561px) {
	.mini__i--dlina, .mini__i--vremya, .mini__i--perepad { flex: 1 1 30%; }
}

/* Текст */
.content > * { margin-top: 0; margin-bottom: 1.1em; }
.content h2 { font-size: clamp(28px, 6vw, 36px); margin: 1.6em 0 .55em; }
.content h3 { font-size: 24px; margin: 1.4em 0 .5em; }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin: .35em 0; }
.content ul li::marker { color: var(--moss); }
.content blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 5px solid var(--moss); background: var(--moss-l); border-radius: 0 var(--r) var(--r) 0; }
.content blockquote p { margin: 0; }
.content figure { margin: 1.5em 0; }
.content figure img { border-radius: var(--r); }
.content figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.tbl { overflow-x: auto; margin: 1.4em 0; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 480px; }
.tbl th { background: var(--forest); color: #fff; text-align: left; padding: 10px 12px; font-weight: 700; border: 0; }
.tbl td { padding: 10px 12px; border: 0; border-top: 1px solid var(--line); vertical-align: top; }
.content .wp-block-table { margin: 0; }

/* Оффер/виджеты */
.trl-slot { margin: 28px 0; }
.trl-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--moss-l); }
.trl-offer__body { flex: 1 1 240px; }
.trl-offer__note { font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trl-offer__title { font: 700 21px var(--head); margin: 4px 0; color: var(--ink); }
.trl-offer__text { margin: 0; font-size: 16px; }
.trl-offer__btn { background: var(--amber); color: var(--forest); text-decoration: none; padding: 12px 20px; border-radius: 4px; font-weight: 700; }

/* Страница */
.pg { max-width: 800px; padding-top: 32px; padding-bottom: 40px; }
.pg__t { font-size: clamp(34px, 7vw, 50px); margin-bottom: 20px; }

/* Пагинация */
.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-block; padding: 8px 14px; border-radius: 4px; text-decoration: none; color: var(--forest); background: var(--paper); border: 1px solid var(--line); font-weight: 700; }
.page-numbers.current { background: var(--forest); color: #fff; }

/* 404 */
.nf { padding: 56px 16px 64px; max-width: 720px; }
.nf .logo__mark { margin: 0 0 22px; }
.nf .phead__t { color: var(--ink); }
.nf .phead__d { color: var(--muted); margin-bottom: 18px; }
.nf .btn { margin-top: 18px; }

/* ---------- Подвал ---------- */
.foot { background: var(--forest) var(--topo-d); color: #b9c8b5; margin-top: 44px; }
body.home .foot { margin-top: 0; }
.foot__row { display: grid; gap: 22px; padding-top: 34px; padding-bottom: 20px; }
.foot__t { margin: 10px 0 0; font-size: 16px; max-width: 380px; }
.foot__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot__menu a, .foot__l a { color: #fff; text-decoration: none; font-size: 16px; }
.foot__menu a:hover, .foot__l a:hover { color: var(--amber); }
.foot__l { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.foot__c { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 14px; padding-bottom: 18px; font-size: 13px; }
@media (min-width: 921px) {
	.foot__row { grid-template-columns: 1.3fr 1fr 1fr; padding-top: 46px; }
	.foot__l { flex-direction: column; }
}
