/* 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: #333; --fz-accent: #0073e6; --fz-drop-bg: #fff; --fz-drop-fg: #333; }
.fz-main { padding-top: 24px; }
/* theme picks desktop vs mobile header via JS width detection; we have no JS, always show desktop header */
#header-wrapper { display: block !important; }
#header-wrapper-mobile { display: none !important; }
/* logo <img> is position:absolute with no sized ancestor -> collapses to 0x0; force static + explicit size (logo itself is already full-color, no filter needed) */
#site-header .wtbx_hs_header, #site-header .wtbx_header_logo_wrapper, #site-header a.wtbx_header_logo { position: static !important; display: block !important; height: auto !important; width: auto !important; }
#site-header .wtbx_header_logo img.wtbx_logo_img { position: static !important; display: block !important; width: auto !important; height: 46px !important; max-width: none !important; left: auto !important; right: auto !important; top: auto !important; }
/* logo and menu were stacking on separate lines - put them in one flex row like the original */
#header-wrapper .wtbx_hs_inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; max-width: 1200px; margin: 0 auto; padding: 14px 20px; box-sizing: border-box; }
#header-wrapper .wtbx_ha_header_main, #header-wrapper .wtbx_ha_header_right { float: none; }
#header-wrapper nav.wtbx_menu_nav, #header-wrapper ul#menu-menu-principal { float: none; }
#header-wrapper ul#menu-menu-principal { display: flex; flex-wrap: nowrap; }
/* footer logo: lazyload class removes intrinsic sizing -> renders at native 1000x250px, cap it */
footer img.wtbx-lazyloaded { width: 220px !important; max-width: 220px !important; height: auto !important; }
/* theme's own .container / WPBakery grid base widths live in a plugin CSS bundle we did not include (kept only the main theme bundle); define our own minimal versions */
.fz-main .container, footer .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
footer .wtbx_row_content_inner { display: flex; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
footer .vc_col-sm-3 { float: none; width: 25%; box-sizing: border-box; padding: 0 15px; }
footer .vc_col-sm-12 { float: none; width: 100%; }
/* social icon list uses an icon font we did not include - glyphs are empty, hide the bare bullet markers */
footer ul.wtbx_social_icons_wrapper { list-style: none; padding: 0; margin: 0; }
@media (max-width: 991px) {
  #header-container { flex-direction: column; align-items: flex-start; }
  ul#menu-menu-principal { display: block !important; float: none; width: 100%; }
  ul#menu-menu-principal li { display: block; float: none; padding: 8px 0; }
  .fz-has-sub > .fz-sub { position: static; box-shadow: none; padding: 4px 0 4px 16px; }
  .header_cart_wrapper { display: none; }
  footer .vc_col-sm-3 { width: 50%; }
}
@media (max-width: 600px) {
  footer .vc_col-sm-3 { width: 100%; }
}
