/*
Theme Name: Site Builder Generated Theme
Description: Сгенерирована плагином Site Builder. Шапка: sticky-slim, футер: hexagon-grid, стиль: ocean-breeze.
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 ===== */

/* Ocean Breeze — светлая воздушная схема, сине-голубые тона */
:root {
    --sb-color-bg:              #f8fbfd;    /* airy off-white blue */
    --sb-color-bg-alt:          #eaf3f9;    /* pale sky */
    --sb-color-text:            #0f2b3d;    /* deep ocean navy */
    --sb-color-muted:           #5b7688;    /* muted steel blue */
    --sb-color-link:            #0284c7;    /* sky blue */
    --sb-color-link-hover:      #0369a1;    /* deeper blue */
    --sb-color-border:          #d3e3ee;    /* soft blue border */
    --sb-color-accent:          #06b6d4;    /* cyan */

    --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:             16.5px;
    --sb-line-height:           1.7;
    --sb-content-max-width:     900px;
}

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: underline;
    text-decoration-color: rgba(2, 132, 199, 0.35);
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-color 0.15s;
}
body.sb-site a:hover {
    color: var(--sb-color-link-hover);
    text-decoration-color: currentColor;
}
body.sb-site strong { color: var(--sb-color-accent); }
body.sb-site blockquote {
    border-left: 4px solid var(--sb-color-accent);
    padding: 12px 22px;
    background: var(--sb-color-bg-alt);
    border-radius: 0 6px 6px 0;
    color: var(--sb-color-text);
}
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: sticky-slim ===== */
/* sticky-slim — тонкая липкая шапка (48px) с dropdown на 3 уровня */
.sb-header-slim {
    position: sticky; top: 0; z-index: 100;
    background: var(--sb-color-bg, #fff);
    border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
    transition: box-shadow 0.2s;
}
.sb-header-slim.sb-slim-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.sb-header-slim-inner {
    max-width:1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    height: 48px;
}
.sb-header-slim-brand {
    margin: 0;
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
}
.sb-header-slim-brand a, .sb-header-slim-name {
    color: var(--sb-color-text, #111);
    text-decoration: none;
}
.sb-header-slim-brand img {
    max-height: 32px;
    width: auto;
    display: block;
}
/* Nav */
.sb-header-slim-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.sb-header-slim-nav li { position: relative; }
.sb-header-slim-nav a {
    display: block;
    padding: 8px 12px;
    color: var(--sb-color-text, #111);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.sb-header-slim-nav a:hover, .sb-header-slim-nav .current-menu-item > a {
    color: var(--sb-color-link, #2563eb);
    background: var(--sb-color-bg-alt, #f9fafb);
}
/* Dropdowns (2nd and 3rd level) */
.sb-header-slim-nav .sub-menu {
    position: absolute;
    top: 100%; left: 0;
    min-width: 200px;
    background: var(--sb-color-bg, #fff);
    border: 1px solid var(--sb-color-border, #e5e7eb);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.sb-header-slim-nav li:hover > .sub-menu,
.sb-header-slim-nav li:focus-within > .sub-menu {
    display: flex;
}
.sb-header-slim-nav .sub-menu .sub-menu {
    top: 0; left: 100%;
    margin-left: 4px;
}
.sb-header-slim-nav .sub-menu a {
    padding: 6px 10px;
    font-size: 0.88em;
    white-space: nowrap;
}
/* Chevron for items with children */
.sb-header-slim-nav .menu-item-has-children > a::after {
    content: "▾";
    display: inline-block;
    margin-left: 4px;
    font-size: 0.7em;
    opacity: 0.6;
}
.sb-header-slim-nav .sub-menu .menu-item-has-children > a::after {
    content: "▸";
    float: right;
    margin-left: 8px;
}
/* Burger — hidden on desktop */
.sb-header-slim-burger {
    display: none;
    background: transparent; border: none;
    padding: 8px; cursor: pointer;
    flex-direction: column; gap: 4px;
    width: 32px; height: 32px;
    justify-content: center; align-items: center;
}
.sb-header-slim-burger span {
    display: block; width: 18px; height: 2px;
    background: var(--sb-color-text, #111);
    transition: transform 0.2s, opacity 0.2s;
}
.sb-header-slim-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sb-header-slim-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sb-header-slim-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* Mobile */
@media (max-width: 800px) {
    .sb-header-slim-burger { display: flex; }
    .sb-header-slim-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--sb-color-bg, #fff);
        border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
        padding: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        max-height: calc(100vh - 48px);
        overflow-y: auto;
    }
    .sb-header-slim-nav.sb-slim-open { display: block; }
    .sb-header-slim-nav ul { flex-direction: column; gap: 2px; }
    .sb-header-slim-nav .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        min-width: 0;
    }
    .sb-header-slim-nav .sub-menu .sub-menu {
        margin-left: 0;
    }
    .sb-header-slim-nav .menu-item-has-children > a::after { content: "▾"; float: right; }
}


/* ===== Footer variant: hexagon-grid ===== */
/* templates/theme/footers/hexagon-grid.css */

.sb-footer-hexagon-grid {
    position: relative;
    margin-top: 120px;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sb-color-text, #0f172a) 0%, #1a1a2e 50%, var(--sb-color-text, #0f172a) 100%);
}

/* Animated hexagon pattern background */
.sb-footer-hexagon-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.1;
    background-image: 
        linear-gradient(30deg, var(--sb-color-link, #2563eb) 12%, transparent 12.5%, transparent 87%, var(--sb-color-link, #2563eb) 87.5%, var(--sb-color-link, #2563eb)),
        linear-gradient(150deg, var(--sb-color-link, #2563eb) 12%, transparent 12.5%, transparent 87%, var(--sb-color-link, #2563eb) 87.5%, var(--sb-color-link, #2563eb)),
        linear-gradient(30deg, var(--sb-color-link, #2563eb) 12%, transparent 12.5%, transparent 87%, var(--sb-color-link, #2563eb) 87.5%, var(--sb-color-link, #2563eb)),
        linear-gradient(150deg, var(--sb-color-link, #2563eb) 12%, transparent 12.5%, transparent 87%, var(--sb-color-link, #2563eb) 87.5%, var(--sb-color-link, #2563eb));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    animation: hexagon-pattern-move 20s linear infinite;
}

@keyframes hexagon-pattern-move {
    0% { background-position: 0 0, 0 0, 40px 70px, 40px 70px; }
    100% { background-position: 80px 140px, 80px 140px, 120px 210px, 120px 210px; }
}

.sb-footer-hexagon-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    z-index: 1;
}

.sb-footer-hexagon-top {
    display: grid;
    grid-template-columns: 0.5fr 2fr;
    gap: 80px;
    align-items: start;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Brand section */
.sb-footer-hexagon-brand {
    position: relative;
}

.sb-footer-hexagon-brand-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--sb-color-link, #2563eb);
    padding: 40px 32px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

.sb-footer-hexagon-brand-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.6);
    border-color: var(--sb-color-accent, #7c3aed);
}

.sb-footer-hexagon-brand img {
    max-height: 60px;
    width: auto;
    margin: 0 auto 20px;
    display: block;
}

.sb-footer-hexagon-logo-text {
    font-size: 28px;
    font-weight: 900;
    font-family: var(--sb-font-heading, sans-serif);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    text-shadow: 0 2px 16px rgba(37, 99, 235, 0.5);
}

.sb-footer-hexagon-tagline {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 20px 0 0 !important;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Hexagon columns grid */
.sb-footer-hexagon-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sb-footer-hexagon-col {
    position: relative;
    min-width: 0;
}

/* Hexagon shape for menu columns */
.sb-footer-hexagon-shape {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 36px 28px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sb-footer-hexagon-shape::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--sb-color-link, #2563eb), var(--sb-color-accent, #7c3aed));
    opacity: 0;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.sb-footer-hexagon-shape:hover {
    transform: translateY(-10px);
    border-color: var(--sb-color-link, #2563eb);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.sb-footer-hexagon-shape:hover::before {
    opacity: 0.15;
}

.sb-footer-hexagon-heading {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff !important;
    margin: 0 0 24px;
    font-family: var(--sb-font-heading, sans-serif);
    text-align: center;
    text-shadow: 0 2px 12px rgba(37, 99, 235, 0.4);
    border-bottom: none !important;
    position: relative;
    padding-bottom: 12px;
}

.sb-footer-hexagon-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--sb-color-link, #2563eb);
    border-radius: 2px;
    box-shadow: 0 0 12px var(--sb-color-link, #2563eb);
}

.sb-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sb-footer-menu li {
    margin: 0;
}

.sb-footer-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: block;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 0;
    border-radius: 6px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sb-footer-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 2px 12px rgba(37, 99, 235, 0.6);
    transform: scale(1.05);
}

/* Bottom copyright section */
.sb-footer-hexagon-bottom {
    padding-top: 40px;
    text-align: center;
}

.sb-footer-hexagon-copyright {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sb-footer-hexagon-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Responsive */
@media (max-width: 968px) {
    .sb-footer-hexagon-grid {
        margin-top: 80px;
    }

    .sb-footer-hexagon-inner {
        padding: 60px 20px 40px;
    }

    .sb-footer-hexagon-top {
        grid-template-columns: 1fr;
        gap: 50px;
        padding-bottom: 48px;
    }

    .sb-footer-hexagon-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .sb-footer-hexagon-shape {
        padding: 32px 20px;
    }

    .sb-footer-hexagon-heading {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

@media (max-width: 640px) {
    .sb-footer-hexagon-inner {
        padding: 50px 20px 32px;
    }

    .sb-footer-hexagon-brand-wrapper {
        padding: 32px 24px;
    }

    .sb-footer-hexagon-logo-text {
        font-size: 22px;
    }

    .sb-footer-hexagon-columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sb-footer-hexagon-shape {
        padding: 36px 28px;
    }

    .sb-footer-hexagon-heading {
        margin-bottom: 18px;
    }

    .sb-footer-menu a {
        font-size: 13px;
    }

    body.sb-site h2 {
        padding-inline: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sb-footer-hexagon-bg,
    .sb-footer-hexagon-brand-wrapper,
    .sb-footer-hexagon-shape {
        animation: none !important;
        transition: none !important;
    }
}

body.sb-site h3 {
    margin-inline: 20px!important;
    margin-bottom: 0!important;
}

