/*
Theme Name: Site Builder Generated Theme
Description: Сгенерирована плагином Site Builder. Шапка: bordered-boxed, футер: boxed-directory, стиль: electric-lime.
Version: 1.2.4
Author: Site Builder Plugin
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ===== Reset & base layout ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sb-font-body, "Segoe UI", system-ui, -apple-system, sans-serif);
    font-size: var(--sb-font-size, 16px);
    line-height: var(--sb-line-height, 1.6);
    color: var(--sb-color-text, #222);
    background: var(--sb-color-bg, #fff);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sb-color-link, #2271b1); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Site wrapper ===== */
.sb-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.sb-site-content {
    flex: 1;
    padding: 32px 20px;
    max-width: var(--sb-content-max-width, 920px);
    width: 100%;
    margin: 0 auto;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sb-font-heading, var(--sb-font-body, sans-serif));
    line-height: 1.3;
    margin: 1.4em 0 0.6em;
}
h1 { font-size: 2.2em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.3em; }

/* ===== Content elements ===== */
.sb-content figure { margin: 24px 0; }
.sb-content figure img { border-radius: 4px; }
.sb-content figcaption {
    font-size: 0.9em;
    color: var(--sb-color-muted, #666);
    text-align: center;
    margin-top: 6px;
}
.sb-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.sb-content th, .sb-content td {
    padding: 8px 12px;
    border: 1px solid var(--sb-color-border, #e2e8f0);
    text-align: left;
}
.sb-content th {
    background: var(--sb-color-bg-alt, #f8f9fa);
    font-weight: 600;
}
.sb-content blockquote {
    border-left: 4px solid var(--sb-color-accent, #2271b1);
    margin: 20px 0;
    padding: 12px 20px;
    background: var(--sb-color-bg-alt, #f8f9fa);
    color: var(--sb-color-muted, #555);
}
.sb-content code {
    background: var(--sb-color-bg-alt, #f0f0f1);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}
.sb-content pre {
    background: var(--sb-color-bg-alt, #f0f0f1);
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
}

/* ===== Variant-specific styles (header, footer, color scheme) injected below ===== */

/* Electric lime — светлая энергичная схема, насыщенный красный акцент */
:root {
    --sb-color-bg:              #fafbf8;    /* soft neutral */
    --sb-color-bg-alt:          #f0f3ea;    /* pale green gray */
    --sb-color-text:            #171916;    /* near-black */
    --sb-color-muted:           #6e746a;    /* muted olive gray */
    --sb-color-link:            #3f6500;    /* accessible lime green */
    --sb-color-link-hover:      #294500;    /* deep olive */
    --sb-color-border:          #dde2d6;    /* neutral green border */
    --sb-color-accent:          #b7f34a;    /* electric lime */

    --sb-font-body:             -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    --sb-font-heading:          -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    --sb-font-size:             16px;
    --sb-line-height:           1.6;
    --sb-content-max-width:     920px;
}

body.sb-site {
    background: var(--sb-color-bg);
    color: var(--sb-color-text);
    font-family: var(--sb-font-body);
    font-size: var(--sb-font-size);
    line-height: var(--sb-line-height);
}
body.sb-site h1, body.sb-site h2, body.sb-site h3, body.sb-site h4 {
    font-family: var(--sb-font-heading);
    color: var(--sb-color-text);
    font-weight: 800;
    letter-spacing: -0.02em;
}
body.sb-site h1 { line-height: 1.15; }
body.sb-site a {
    color: var(--sb-color-link);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
body.sb-site a:hover {
    color: var(--sb-color-link-hover);
    border-bottom-color: currentColor;
}
body.sb-site strong { color: var(--sb-color-accent); font-weight: 700; }
body.sb-site blockquote {
    border-left: 4px solid var(--sb-color-link);
    padding: 12px 20px;
    background: var(--sb-color-bg-alt);
    border-radius: 0 6px 6px 0;
    color: var(--sb-color-text);
    font-weight: 500;
}
body.sb-site code {
    background: var(--sb-color-bg-alt);
    color: var(--sb-color-link-hover);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: ui-monospace, 'SF Mono', Monaco, monospace;
}


/* ===== Header variant: bordered-boxed ===== */
/* bordered-boxed — плавающая карточка-шапка со скруглением и рамкой, 3 уровня */
.sb-header-bb {
    background: var(--sb-color-bg, #fff);
    padding: 14px 20px 0;
}
.sb-header-bb-card {
    max-width: 1400px;
	width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 8px 18px;
    height: 56px;
    background: var(--sb-color-bg, #fff);
    border: 1px solid var(--sb-color-border, #e5e7eb);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: relative;
}
.sb-header-bb-brand { margin: 0; font-size: 1.05em; font-weight: 700; line-height: 1; }
.sb-header-bb-brand a, .sb-header-bb-name {
    color: var(--sb-color-text, #111);
    text-decoration: none;
}
.sb-header-bb-brand img { max-height: 34px; width: auto; display: block; }

/* Nav */
.sb-header-bb-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.sb-header-bb-nav > ul > li { position: relative; }
.sb-header-bb-nav a {
    display: block;
    padding: 8px 13px;
    color: var(--sb-color-text, #111);
    text-decoration: none;
    
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.sb-header-bb-nav > ul > li > a:hover,
.sb-header-bb-nav .current-menu-item > a {
    color: var(--sb-color-link, #2563eb);
    background: var(--sb-color-bg-alt, #f9fafb);
}
.sb-header-bb-nav .menu-item-has-children > a::after {
    content: "\25BE";
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7em;
    opacity: 0.6;
}

/* Dropdowns (2nd + 3rd level) */
.sb-header-bb-nav .sub-menu {
    position: absolute;
    top: calc(100% + 8px); left: 0;
    min-width: 200px;
    background: var(--sb-color-bg, #fff);
    border: 1px solid var(--sb-color-border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    margin: 0;
    z-index: 100;
}
.sb-header-bb-nav li:hover > .sub-menu,
.sb-header-bb-nav li:focus-within > .sub-menu { display: flex; }
.sb-header-bb-nav .sub-menu .sub-menu { top: -6px; left: 100%; margin-left: 8px; }
.sb-header-bb-nav .sub-menu a {
    padding: 8px 12px;
    font-size: 0.88em;
    font-weight: 400;
    border-radius: 8px;
    white-space: nowrap;
}
.sb-header-bb-nav .sub-menu a:hover {
    background: var(--sb-color-bg-alt, #f9fafb);
    color: var(--sb-color-link, #2563eb);
}
.sb-header-bb-nav .sub-menu .menu-item-has-children > a::after {
    content: "\25B8"; float: right; margin-left: 8px;
}

/* Burger — hidden on desktop */
.sb-header-bb-burger {
    display: none;
    background: transparent; border: none;
    padding: 8px; cursor: pointer;
    flex-direction: column; gap: 4px;
    width: 34px; height: 34px;
    justify-content: center; align-items: center;
}
.sb-header-bb-burger span {
    display: block; width: 18px; height: 2px;
    background: var(--sb-color-text, #111);
    transition: transform 0.2s, opacity 0.2s;
}
.sb-header-bb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sb-header-bb-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sb-header-bb-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile */
@media (max-width: 800px) {
    .sb-header-bb-burger { display: flex; }
    .sb-header-bb-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px); left: 0; right: 0;
        background: var(--sb-color-bg, #fff);
        border: 1px solid var(--sb-color-border, #e5e7eb);
        border-radius: 14px;
        padding: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    	font-size: 22px;
        overflow-y: auto;
        z-index: 100;
	height: 100vh;
    }
    .sb-header-bb-nav.sb-bb-open { display: block; }
    .sb-header-bb-nav > ul { flex-direction: column; gap: 2px; }
    .sb-header-bb-nav .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 16px;
        min-width: 0;
        margin: 0;
    }
    .sb-header-bb-nav .sub-menu .sub-menu { margin-left: 0; }
    .sb-header-bb-nav .menu-item-has-children > a::after { content: "\25BE"; float: right; }
}


/* ===== Footer variant: boxed-directory ===== */
.sb-footer-boxed-directory {
    margin-top: 48px;
    background: var(--sb-color-bg, #fff);
    color: var(--sb-color-text, #111);
}
.sb-footer-boxed-directory .sb-footer-bd-card {
    margin: 0 auto;
    overflow: hidden;
    background: var(--sb-color-bg-alt, #f8f9fa);
    border: 1px solid var(--sb-color-border, #e5e7eb);
}
.sb-footer-boxed-directory .sb-footer-bd-head {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
    gap: 40px;
    padding: 34px 38px;
    border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
    max-width: 1200px;
    margin: 0 auto;
}
.sb-footer-boxed-directory .sb-footer-bd-brand img {
    display: block;
    width: auto;
    max-height: 42px;
}
.sb-footer-boxed-directory .sb-footer-bd-name {
    font-family: var(--sb-font-heading, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 1.35em;
    font-weight: 800;
}
.sb-footer-boxed-directory .sb-footer-bd-description {
    margin: 0;
    color: var(--sb-color-muted, #6b7280);
    font-size: .94em;
    line-height: 1.65;
}
.sb-footer-boxed-directory .sb-footer-bd-directory {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}
.sb-footer-boxed-directory .sb-footer-bd-col {
    min-width: 0;
    padding: 30px 34px;
}
.sb-footer-boxed-directory .sb-footer-bd-col + .sb-footer-bd-col {
    border-left: 1px solid var(--sb-color-border, #e5e7eb);
}
.sb-footer-boxed-directory .sb-footer-bd-heading {
    margin: 0 0 14px;
    color: var(--sb-color-muted, #6b7280);
    font-family: var(--sb-font-body, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: .72em;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.sb-footer-boxed-directory .sb-menu,
.sb-footer-boxed-directory .sb-footer-bd-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sb-footer-boxed-directory .sb-menu a,
.sb-footer-boxed-directory .sb-footer-bd-list a {
    color: var(--sb-color-text, #111);
    text-decoration: none;
    font-size: .88em;
}
.sb-footer-boxed-directory .sb-menu a:hover,
.sb-footer-boxed-directory .sb-footer-bd-list a:hover {
    color: var(--sb-color-link, #2563eb);
    text-decoration: underline;
}
.sb-footer-boxed-directory .sb-footer-bd-bottom {
    padding: 18px 34px;
    border-top: 1px solid var(--sb-color-border, #e5e7eb);
    color: var(--sb-color-muted, #6b7280);
    font-size: .82em;
    text-align: center;
}
@media (max-width: 760px) {
    .sb-footer-boxed-directory .sb-footer-bd-head { grid-template-columns: 1fr; gap: 18px; }
    .sb-footer-boxed-directory .sb-footer-bd-directory { grid-template-columns: 1fr 1fr; }
    .sb-footer-boxed-directory .sb-footer-bd-col + .sb-footer-bd-col { border-left: 0; }
    .sb-footer-boxed-directory .sb-footer-bd-col:nth-child(2) { border-left: 1px solid var(--sb-color-border, #e5e7eb); }
    .sb-footer-boxed-directory .sb-footer-bd-col:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--sb-color-border, #e5e7eb); }
}
@media (max-width: 480px) {
    .sb-footer-boxed-directory { padding-left: 14px; padding-right: 14px; }
    .sb-footer-boxed-directory .sb-footer-bd-head { padding: 28px 24px; }
    .sb-footer-boxed-directory .sb-footer-bd-directory { grid-template-columns: 1fr; }
    .sb-footer-boxed-directory .sb-footer-bd-col { padding: 24px; }
    .sb-footer-boxed-directory .sb-footer-bd-col:nth-child(2),
    .sb-footer-boxed-directory .sb-footer-bd-col:nth-child(3) {
        grid-column: auto;
        border-left: 0;
        border-top: 1px solid var(--sb-color-border, #e5e7eb);
    }
}

