/* Frozen theme (generic): только то, чего нет в CSS сайта. Цвета — переменные, задаются в site_css конфига. */
:root { --fz-fg: #222; --fz-muted: #6b7280; --fz-accent: #1d4ed8; --fz-line: #e5e7eb; --fz-drop-bg: #fff; --fz-drop-fg: #222; }

/* Наш пункт меню и выпадашка рубрик (fz_section_submenu печатает .fz-sub только при 2+ рубриках). */
.fz-has-sub { position: relative; }
.fz-has-sub > .fz-sub { display: none; position: absolute; top: 100%; left: 0; z-index: 9999; min-width: 220px; margin: 0; padding: 6px 0; list-style: none; background: var(--fz-drop-bg); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); text-align: left; }
.fz-has-sub:hover > .fz-sub, .fz-has-sub:focus-within > .fz-sub { display: block; }
.fz-sub li { display: block; margin: 0; padding: 0; float: none; width: auto; }
.fz-sub a { display: block; padding: 8px 18px; white-space: nowrap; color: var(--fz-drop-fg); text-decoration: none; text-transform: none; font-size: 15px; line-height: 1.4; }
.fz-sub a:hover, .fz-sub a:focus { text-decoration: underline; }
.fz-sub a.fz-cur { font-weight: 700; }
@media (max-width: 991px) {
	.fz-has-sub > .fz-sub, .fz-has-sub:hover > .fz-sub { display: block; position: static; box-shadow: none; background: none; padding: 0 0 4px 1.2em; min-width: 0; }
}

/* ---- Контент раздела ---- */
.fz-page { padding: 32px 0 56px; color: var(--fz-fg); }
.fz-crumbs { font-size: 14px; color: var(--fz-muted); margin: 0 0 16px; }
.fz-crumbs a { color: inherit; text-decoration: none; }
.fz-crumbs a:hover { text-decoration: underline; }
.fz-crumbs span + span::before { content: "›"; margin: 0 .5em; }
.fz-title { margin: 0 0 12px; line-height: 1.2; }
.fz-meta { font-size: 14px; color: var(--fz-muted); margin: 0 0 24px; }
.fz-body { font-size: 17px; line-height: 1.65; max-width: 780px; }
.fz-body > div > * { margin: 0 0 1.1em; }
.fz-body h2, .fz-body h3, .fz-body h4 { line-height: 1.25; margin: 1.5em 0 .6em; }
.fz-body h2 { font-size: 1.6em; }
.fz-body h3 { font-size: 1.3em; }
.fz-body h4 { font-size: 1.1em; }
.fz-body a { color: var(--fz-accent); text-decoration: underline; }
.fz-body ul, .fz-body ol { padding-left: 1.4em; }
.fz-body ul { list-style: disc; }
.fz-body ol { list-style: decimal; }
.fz-body li { margin: 0 0 .4em; }
.fz-body img { max-width: 100%; height: auto; }
.fz-body figure { margin: 0 0 1.1em; }
.fz-body figcaption { font-size: 14px; color: var(--fz-muted); margin-top: .4em; }
.fz-body blockquote { margin: 0 0 1.1em; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--fz-accent); color: var(--fz-muted); }
.fz-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.1em; font-size: 15px; }
.fz-body th, .fz-body td { padding: .55rem .7rem; border: 1px solid var(--fz-line); vertical-align: top; text-align: left; }
.fz-body th { background: #f3f4f6; }
.fz-body .wp-block-table { overflow-x: auto; }
.fz-thumb { max-width: 100%; height: auto; display: block; margin: 0 0 24px; }
.fz-article [class*="-byline"] { font-size: 14px; color: var(--fz-muted); margin: 0 0 24px; }
.fz-article [class*="-byline"] p { margin: 0; }

/* Список рубрики */
.fz-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin: 0 0 32px; padding: 0; list-style: none; }
.fz-card { margin: 0; }
.fz-card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 12px; }
.fz-card-title { font-size: 1.25em; line-height: 1.3; margin: 0 0 6px; }
.fz-card-title a { color: inherit; text-decoration: none; }
.fz-card-title a:hover { text-decoration: underline; }
.fz-card .fz-meta { margin: 0 0 8px; }
.fz-card-excerpt { font-size: 15px; line-height: 1.55; margin: 0; }
.fz-pagination { font-size: 14px; }
.fz-pagination .page-numbers { display: inline-block; padding: .35rem .75rem; margin-right: .3rem; border: 1px solid var(--fz-line); color: var(--fz-fg); text-decoration: none; }
.fz-pagination .page-numbers.current { background: var(--fz-fg); color: #fff; border-color: var(--fz-fg); }
.fz-empty { color: var(--fz-muted); }
@media (max-width: 767px) {
	.fz-page { padding: 24px 0 40px; }
	.fz-cards { grid-template-columns: minmax(0, 1fr); }
	.fz-body { font-size: 16px; }
}

/* ---- Правки под сайт (site_css конфига) ---- */
:root { --fz-fg: #151414; --fz-muted: #666; --fz-accent: #006aac; --fz-drop-bg: #fff; --fz-drop-fg: #151414; --fz-line: #e2e2e2; }
/* the template fixes the bar and pads #jm-allpage from JS (371px in the dump) — static bar, no padding */
.sticky-bar #jm-bar-wrapp { position: relative !important; }
#jm-allpage { padding-top: 0 !important; }
.fz-main { padding: 30px 0 50px; }
/* DJ-MegaMenu prints these in an inline <style> without id (the generator keeps inline CSS by id only): desktop menu ≥980, offcanvas button below */
.dj-hideitem { display: none !important; }
@media (min-width: 980px) { #dj-megamenu186mobile { display: none; } }
@media (max-width: 979px) { #dj-megamenu186, #dj-megamenu186sticky, #dj-megamenu186placeholder { display: none !important; } }
/* the offcanvas: DJ's JS moves the <aside> out of the header and animates it; here it stays in place, so it is a fixed panel on the left opened by dj-offcanvas-open on the wrapper (hub.js toggle); the ☰ button toggles it back, the page does not move */
.dj-offcanvas-wrapper { overflow-x: hidden; }
.dj-offcanvas-wrapper .dj-offcanvas { display: block !important; position: fixed !important; top: 0 !important; left: 0 !important; bottom: 0; height: 100% !important; width: 300px !important; max-width: 85% !important; z-index: 10000 !important; overflow-y: auto !important; background: #fff; box-shadow: 0 0 18px rgba(0,0,0,.25); visibility: hidden !important; transform: translate3d(-100%, 0, 0) !important; transition: transform .3s, visibility 0s .3s !important; }
.dj-offcanvas-wrapper.dj-offcanvas-open .dj-offcanvas { visibility: visible !important; transform: none !important; transition: transform .3s !important; }
.dj-offcanvas-wrapper.dj-offcanvas-open .dj-offcanvas-pusher { transform: none !important; }
.dj-offcanvas-wrapper .dj-offcanvas .dj-offcanvas-content { padding: 10px 0; }
/* 12 items (35px 25px padding) wrapped into three rows at 1366: tighter items when ours is present; the logo banner is 1470px wide in the archive */
@media (min-width: 980px) { #dj-megamenu186:has(.fz-nav-item, :is(#fz-nav-item,.fz-nav-item)) li.dj-up a.dj-up_a { padding-left: 10px; padding-right: 10px; font-size: 13px; } }
#jm-logo img { max-width: 360px; height: auto; }
