/*
Theme Name: Bizator
Description: Лёгкая тема для B2B-площадки Bizator (работает в паре с плагином Bizator Core).
Version: 1.1.0
Requires PHP: 7.4
Text Domain: bizator-theme
*/

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.55; color: var(--bz-text, #2b3445); background: var(--bz-bg, #f5f7fa); }
a { color: var(--bz-brand, #0b4f9c); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* Шапка */
.site-top { background: var(--bz-ink, #14213d); color: #c7cfdd; font-size: .82rem; }
.site-top .in { max-width: 1200px; margin: 0 auto; padding: 6px 16px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.site-top a { color: #c7cfdd; text-decoration: none; }
.site-top a:hover { color: #fff; }
.site-top .cur { color: #fff; font-weight: 600; }
.site-top .right { margin-left: auto; display: flex; gap: 14px; }

.site-header { background: #fff; border-bottom: 1px solid var(--bz-line, #e3e7ee); position: sticky; top: 0; z-index: 50; }
.site-header .in { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; gap: 20px; align-items: center; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--bz-ink, #14213d); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; flex: none; }
.logo b { color: var(--bz-accent, #f28c18); }
.logo small { font-weight: 500; font-size: .72rem; color: var(--bz-muted, #6b7486); letter-spacing: 0; display: block; line-height: 1.1; max-width: 120px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--bz-text, #2b3445); font-weight: 600; }
.main-nav a:hover, .main-nav a.active { background: rgba(11, 79, 156, .07); color: var(--bz-brand, #0b4f9c); }
.header-search { flex: 1; display: flex; min-width: 0; }
.header-search input { flex: 1; min-width: 0; border: 1px solid #cfd6e2; border-right: 0; border-radius: 8px 0 0 8px; padding: 9px 12px; font: inherit; }
.header-search button { border: 0; background: var(--bz-brand, #0b4f9c); color: #fff; border-radius: 0 8px 8px 0; padding: 0 16px; font: inherit; font-weight: 600; cursor: pointer; }
.header-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--bz-line, #e3e7ee); border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; }

@media (max-width: 1000px) {
	.site-header .in { flex-wrap: wrap; }
	.main-nav { order: 5; width: 100%; display: none; flex-direction: column; }
	.bz-menu-open .main-nav { display: flex; }
	.menu-toggle { display: block; margin-left: auto; }
	.header-search { order: 4; flex-basis: 100%; }
	.header-actions .bz-btn--ghost { display: none; }
}

/* Главная */
.hero { background: linear-gradient(135deg, #0b4f9c 0%, #083c78 60%, #14213d 100%); color: #fff; }
.hero .in { max-width: 1200px; margin: 0 auto; padding: 48px 16px 40px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 10px; letter-spacing: -.02em; }
.hero p { margin: 0 0 22px; color: #d6e2f5; font-size: 1.1rem; max-width: 720px; }
.hero .bz-form { background: rgba(255, 255, 255, .98); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 8px; color: #d6e2f5; }
.hero-stats b { color: #fff; font-size: 1.3rem; display: block; }

.home-section { max-width: 1200px; margin: 0 auto; padding: 36px 16px 8px; }
.home-section h2 { font-size: 1.5rem; margin: 0 0 16px; color: var(--bz-ink, #14213d); }
.home-section h2 a { font-size: .95rem; font-weight: 500; margin-left: 10px; }
.directions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.direction { display: block; background: #fff; border: 1px solid var(--bz-line, #e3e7ee); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--bz-text, #2b3445); box-shadow: var(--bz-shadow); transition: transform .15s, border-color .15s; }
.direction:hover { transform: translateY(-2px); border-color: var(--bz-brand, #0b4f9c); }
.direction strong { display: block; color: var(--bz-ink, #14213d); font-size: 1.05rem; margin-bottom: 6px; }
.direction span { font-size: .88rem; color: var(--bz-muted, #6b7486); }
.direction--accent { background: linear-gradient(135deg, #fff7ed, #fff); border-color: #fed7aa; }
.rubric-cloud { columns: 4 200px; column-gap: 24px; list-style: none; padding: 0; margin: 0; }
.rubric-cloud li { break-inside: avoid; padding: 3px 0; }
.rubric-cloud a { text-decoration: none; color: var(--bz-text, #2b3445); }
.rubric-cloud a:hover { color: var(--bz-brand, #0b4f9c); text-decoration: underline; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .cols-2 { grid-template-columns: 1fr; } }
.cta { background: #fff; border: 1px solid var(--bz-line, #e3e7ee); border-radius: 14px; padding: 26px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; box-shadow: var(--bz-shadow); }
.cta h3 { margin: 0 0 4px; font-size: 1.3rem; color: var(--bz-ink, #14213d); }
.cta p { margin: 0; color: var(--bz-muted, #6b7486); }

/* Страницы */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px 48px; }
.page-wrap .entry { background: #fff; border: 1px solid var(--bz-line, #e3e7ee); border-radius: 12px; padding: clamp(18px, 4vw, 36px); }
.page-wrap h1 { margin-top: 0; color: var(--bz-ink, #14213d); }
.page-wrap--narrow { max-width: 860px; }

/* Подвал */
.site-footer { background: var(--bz-ink, #14213d); color: #aab4c6; margin-top: 40px; font-size: .92rem; }
.site-footer .in { max-width: 1200px; margin: 0 auto; padding: 36px 16px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.site-footer a { color: #aab4c6; text-decoration: none; display: block; padding: 2px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer .copy .in { display: block; padding: 14px 16px; font-size: .82rem; }
@media (max-width: 800px) { .site-footer .in { grid-template-columns: 1fr 1fr; } }
