/* 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: #2b2b2b; --fz-muted: #7a7a7a; --fz-accent: #b6975a; --fz-drop-bg: #fff; --fz-drop-fg: #2b2b2b; --fz-line: #e6e2d6; }
.fz-panel { max-width: 1140px; margin: 40px auto 70px; padding: 0 20px; }
/* the theme pins the footer under the page (JS computes the margin) -> plain flow */
.site-footer { position: relative !important; bottom: auto !important; }
.container { margin-bottom: 0 !important; }
/* mobile overlay menu: opened by hub.js toggle instead of the theme JS */
.mobile-menu.menu-overlay.hidden.fz-open { display: block; position: absolute; }
html, body { max-width: 100%; overflow-x: hidden; }
/* --- wave17 tweaks --- */
/* header: the top row lost the currency/cart widgets -> no negative offset, logo fully visible */
.site-header.starter { margin-top: 0 !important; min-height: 0; }
.site-header.starter .header-row.top { height: auto; padding-top: 44px; padding-bottom: 14px; }
.fz-site .fz-main, .fz-site .fz-main p, .fz-site .fz-main li, .fz-site .fz-main td { color: #444; font-weight: 400; }
.fz-site .fz-main h1, .fz-site .fz-main h2, .fz-site .fz-main h3, .fz-site .fz-card-title a { color: #1f1f1f; }
.mobile-menu .fz-sub a { color: #cfcfcf !important; }
.mobile-menu .fz-has-sub > .fz-sub { display: block !important; position: static; box-shadow: none; background: none; padding: 0 0 6px 1.2em; max-height: none !important; overflow: visible !important; height: auto !important; opacity: 1; visibility: visible; }
#main-content.fz-main, #main-content.fz-main p, #main-content.fz-main li, #main-content.fz-main td { color: #444; font-weight: 400; }
.site-header.starter .header-row.bottom { height: auto; }
.site-header.starter .header-row.bottom img { top: 0; }
/* content: the theme reserves 250px for its fixed header and floats #main-content at 68% (sidebar layout) */
div.container { padding-top: 10px !important; position: relative; z-index: 1; background: #fff; }
div.container:after { content: ''; display: table; clear: both; }
#main-content.fz-main { float: none !important; width: auto !important; padding: 0 !important; }
.fz-site .fz-title, .fz-site h1 { color: #1f1f1f; }
.fz-site .fz-body, .fz-site .fz-body p, .fz-site .fz-card p { color: #4a4a4a; }
/* <=1200: the theme hides the desktop header and shows the mobile logo + burger by JS */
@media screen and (max-width: 1200px) { div.container { padding-left: 20px !important; padding-right: 20px !important; width: auto !important; box-sizing: border-box; } .site-logo-mob { display: block !important; position: static !important; background: #fff !important; height: auto !important; padding: 14px 80px 10px 20px; text-align: left; } .site-logo-mob img { max-height: 52px; width: auto; } .site-logo-mob .img-center { display: none; } .menu-box-mob { display: block !important; position: absolute !important; top: 8px !important; right: 0; } .fz-panel { margin-top: 16px; padding: 0; } }
