/*
Theme Name: Site Builder Generated Theme
Description: Сгенерирована плагином Site Builder. Шапка: off-canvas, футер: newsletter-highlight, стиль: graphite-mono.
Version: 1.1.10
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 ===== */

/* Graphite Mono — тёмная монохромная схема, единственный янтарный акцент */
:root {
    --sb-color-bg:              #171717;    /* graphite */
    --sb-color-bg-alt:          #212121;    /* lighter graphite */
    --sb-color-text:            #ededed;    /* near-white */
    --sb-color-muted:           #8a8a8a;    /* neutral gray */
    --sb-color-link:            #f59e0b;    /* amber */
    --sb-color-link-hover:      #fbbf24;    /* brighter amber */
    --sb-color-border:          #2e2e2e;    /* subtle separator */
    --sb-color-accent:          #ededed;    /* white accent */

    --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.65;
    --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: 700;
    letter-spacing: -0.015em;
}
body.sb-site a {
    color: var(--sb-color-link);
    text-decoration: none;
    border-bottom: 1px 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); }
body.sb-site blockquote {
    border-left: 3px solid var(--sb-color-link);
    padding: 12px 20px;
    background: var(--sb-color-bg-alt);
    border-radius: 0 6px 6px 0;
    color: var(--sb-color-muted);
}
body.sb-site code {
    background: var(--sb-color-bg-alt);
    color: var(--sb-color-link);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--sb-color-border);
    font-size: 0.9em;
    font-family: ui-monospace, 'SF Mono', Monaco, monospace;
}


/* ===== Header variant: off-canvas ===== */
/* off-canvas — burger везде, слайд-панель слева */
.sb-header-oc {
    background: var(--sb-color-bg, #fff);
    border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
}
.sb-header-oc-inner {
    max-width: var(--sb-content-max-width, 920px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    height: 60px;
}
.sb-header-oc-burger {
    background: transparent; border: none;
    padding: 8px; cursor: pointer;
    width: 36px; height: 36px;
    display: flex; flex-direction: column; gap: 5px;
    justify-content: center; align-items: center;
    border-radius: 6px;
    transition: background 0.15s;
}
.sb-header-oc-burger:hover { background: var(--sb-color-bg-alt, #f9fafb); }
.sb-header-oc-burger span {
    display: block; width: 20px; height: 2px;
    background: var(--sb-color-text, #111);
    transition: transform 0.2s, opacity 0.2s;
}
.sb-header-oc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sb-header-oc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sb-header-oc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sb-header-oc-brand { margin: 0; font-size: 1.1em; font-weight: 700; }
.sb-header-oc-brand a, .sb-header-oc-name {
    color: var(--sb-color-text, #111);
    text-decoration: none;
}
.sb-header-oc-brand img {
    max-height: 36px;
    width: auto;
    display: block;
}

/* Backdrop */
.sb-header-oc-backdrop {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 200;
    pointer-events: none;
}
.sb-header-oc-backdrop.sb-oc-open {
    opacity: 1;
    pointer-events: auto;
}

/* Off-canvas panel */
.sb-header-oc-panel {
    position: fixed; top: 0; left: 0;
    width: 320px; max-width: 88vw;
    height: 100vh;
    background: var(--sb-color-bg, #fff);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 201;
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.sb-header-oc-panel.sb-oc-open {
    transform: translateX(0);
}
.sb-header-oc-panel[hidden] { display: none; }
.sb-header-oc-panel[hidden].sb-oc-open { display: flex; }

.sb-header-oc-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
}
.sb-header-oc-panel-title {
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sb-color-muted, #6b7280);
}
.sb-header-oc-panel-close {
    background: transparent; border: none;
    font-size: 1.5em;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    color: var(--sb-color-muted, #6b7280);
    transition: background 0.15s, color 0.15s;
}
.sb-header-oc-panel-close:hover {
    background: var(--sb-color-bg-alt, #f9fafb);
    color: var(--sb-color-text, #111);
}

/* Nav — accordion 3 levels */
.sb-header-oc-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 8px;
}
.sb-header-oc-nav ul { list-style: none; margin: 0; padding: 0; }
.sb-header-oc-nav li { position: relative; }
.sb-header-oc-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--sb-color-text, #111);
    text-decoration: none;
    font-size: 0.95em;
    border-radius: 6px;
    transition: background 0.15s;
}
.sb-header-oc-nav a:hover, .sb-header-oc-nav .current-menu-item > a {
    background: var(--sb-color-bg-alt, #f9fafb);
    color: var(--sb-color-link, #2563eb);
}
.sb-header-oc-nav .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    padding-left: 16px;
}
.sb-header-oc-nav li.sb-oc-open > .sub-menu {
    max-height: 1000px;
}
.sb-header-oc-nav .menu-item-has-children > a {
    padding-right: 36px;
    position: relative;
}
.sb-header-oc-nav .menu-item-has-children > a::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75em;
    transition: transform 0.2s;
    opacity: 0.6;
}
.sb-header-oc-nav li.sb-oc-open > a::after {
    transform: translateY(-50%) rotate(180deg);
}


/* ===== Footer variant: newsletter-highlight ===== */
/* newsletter-highlight — большая колонка с формой подписки */
.sb-footer-nl {
    background: var(--sb-color-bg-alt, #f8f9fa);
    border-top: 1px solid var(--sb-color-border, #e5e7eb);
    padding: 56px 20px 24px;
    color: var(--sb-color-text, #111);
    margin-top: 48px;
}
.sb-footer-nl-inner {
    max-width: var(--sb-content-max-width, 920px);
    margin: 0 auto;
}
.sb-footer-nl-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}
.sb-footer-nl-signup-col {
    padding-right: 20px;
}
.sb-footer-nl-signup-col img {
    max-height: 40px;
    width: auto;
    margin-bottom: 12px;
}
.sb-footer-nl-name {
    font-weight: 700;
    font-size: 1.15em;
    margin-bottom: 12px;
    color: var(--sb-color-text);
}
.sb-footer-nl-heading {
    margin: 0 0 12px;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sb-color-muted, #6b7280);
    font-weight: 700;
}
.sb-footer-nl-list, .sb-footer-nl .sb-menu {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
    font-size: 0.9em;
}
.sb-footer-nl-list a, .sb-footer-nl .sb-menu a {
    color: var(--sb-color-text);
    text-decoration: none;
    transition: color 0.15s;
}
.sb-footer-nl-list a:hover, .sb-footer-nl .sb-menu a:hover {
    color: var(--sb-color-link);
    text-decoration: underline;
}
.sb-footer-nl-copyright {
    padding-top: 20px;
    border-top: 1px solid var(--sb-color-border, #e5e7eb);
    color: var(--sb-color-muted, #6b7280);
    font-size: 0.85em;
    text-align: center;
}
@media (max-width: 800px) {
    .sb-footer-nl-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .sb-footer-nl-signup-col {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}
@media (max-width: 480px) {
    .sb-footer-nl-grid { grid-template-columns: 1fr; gap: 28px; }
    .sb-footer-nl-signup-form { flex-direction: column; }
}

