/*
Theme Name: Site Builder Generated Theme
Description: Сгенерирована плагином Site Builder. Шапка: edge-frame, футер: wave-gradient, стиль: bright.
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 ===== */

/* Style variant: Bright (default light scheme).
 * White background, deep-blue accents, sans-serif typography.
 */
:root {
    --sb-color-bg: #ffffff;
    --sb-color-bg-alt: #f8f9fa;
    --sb-color-text: #1f2937;
    --sb-color-muted: #6b7280;
    --sb-color-link: #2563eb;
    --sb-color-accent: #2563eb;
    --sb-color-border: #e5e7eb;
    --sb-font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --sb-font-heading: var(--sb-font-body);
    --sb-font-size: 16px;
    --sb-line-height: 1.65;
    --sb-content-max-width: 920px;
}


/* ===== Header variant: edge-frame ===== */
/* edge-frame — editorial framed header with strong dividers */
.sb-header-edge-frame {
    background: var(--sb-color-bg, #fff);
    padding: 18px 20px 0;
    color: var(--sb-color-text, #111);
}
.sb-header-edge-frame .sb-header-ef-inner {
    max-width: var(--sb-content-max-width, 920px);
    min-height: 66px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: stretch;
    position: relative;
    border-top: 1px solid var(--sb-color-border, #111);
    border-bottom: 1px solid var(--sb-color-border, #111);
}
.sb-header-edge-frame .sb-header-ef-brand-wrap {
    min-width: 185px;
    display: flex;
    align-items: center;
    padding: 10px 24px 10px 4px;
    border-right: 1px solid var(--sb-color-border, #e5e7eb);
}
.sb-header-edge-frame .sb-header-ef-brand {
    margin: 0;
    font-family: var(--sb-font-heading, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 1.12em;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}
.sb-header-edge-frame .sb-header-ef-brand a {
    color: var(--sb-color-text, #111);
    text-decoration: none;
}
.sb-header-edge-frame .sb-header-ef-brand img {
    display: block;
    width: auto;
    max-height: 38px;
}
.sb-header-edge-frame .sb-header-ef-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 18px;
}
.sb-header-edge-frame .sb-header-ef-nav > ul {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sb-header-edge-frame .sb-header-ef-nav li { position: relative; }
.sb-header-edge-frame .sb-header-ef-nav > ul > li + li {
    border-left: 1px solid var(--sb-color-border, #e5e7eb);
    height: stretch;
}
.sb-header-edge-frame .sb-header-ef-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--sb-color-text, #111);
    text-decoration: none;
    font-size: .88em;
    font-weight: 550;
    transition: color .18s, background .18s;
}
.sb-header-edge-frame .sb-header-ef-nav > ul > li > a:hover,
.sb-header-edge-frame .sb-header-ef-nav .current-menu-item > a,
.sb-header-edge-frame .sb-header-ef-nav .current-menu-ancestor > a {
    color: var(--sb-color-link, #2563eb);
}
.sb-header-edge-frame .menu-item-has-children > a::after {
    content: "\25BE";
    display: inline-block;
    margin-left: 6px;
    font-size: .7em;
    opacity: .55;
}
.sb-header-edge-frame .sb-header-ef-nav .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 200;
    display: none;
    flex-direction: column;
    min-width: 215px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--sb-color-bg, #fff);
    border: 1px solid var(--sb-color-text, #111);
    box-shadow: 7px 7px 0 var(--sb-color-bg-alt, #f7f7f8);
}
.sb-header-edge-frame .sb-header-ef-nav li:hover > .sub-menu,
.sb-header-edge-frame .sb-header-ef-nav li:focus-within > .sub-menu { display: flex; }
.sb-header-edge-frame .sb-header-ef-nav .sub-menu .sub-menu {
    top: -7px;
    right: calc(100% + 10px);
}
.sb-header-edge-frame .sb-header-ef-nav .sub-menu a {
    padding: 9px 11px;
    white-space: nowrap;
    font-size: .87em;
    font-weight: 450;
}
.sb-header-edge-frame .sb-header-ef-nav .sub-menu a:hover {
    color: var(--sb-color-link, #2563eb);
    background: var(--sb-color-bg-alt, #f7f7f8);
}
.sb-header-edge-frame .sb-header-ef-nav .sub-menu .menu-item-has-children > a::after {
    content: "\25C2";
    float: left;
    margin: 0 8px 0 0;
}
.sb-header-edge-frame .sb-header-ef-burger {
    display: none;
    width: 40px;
    height: 40px;
    margin: auto 0 auto auto;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--sb-color-border, #e5e7eb);
    cursor: pointer;
}
.sb-header-edge-frame .sb-header-ef-burger span {
    width: 18px;
    height: 2px;
    background: var(--sb-color-text, #111);
    transition: transform .2s, opacity .2s;
}
.sb-header-edge-frame .sb-header-ef-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sb-header-edge-frame .sb-header-ef-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sb-header-edge-frame .sb-header-ef-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
    .sb-header-edge-frame { padding: 12px 14px 0; }
    .sb-header-edge-frame .sb-header-ef-inner {
        min-height: 62px;
        grid-template-columns: 1fr auto;
    }
    .sb-header-edge-frame .sb-header-ef-brand-wrap {
        min-width: 0;
        padding-right: 14px;
        border-right: 0;
    }
    .sb-header-edge-frame .sb-header-ef-burger { display: flex; }
    .sb-header-edge-frame .sb-header-ef-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 200;
        max-height: calc(100vh - 95px);
        overflow-y: auto;
        padding: 10px;
        background: var(--sb-color-bg, #fff);
        border: 1px solid var(--sb-color-text, #111);
        box-shadow: 7px 7px 0 var(--sb-color-bg-alt, #f7f7f8);
    }
    .sb-header-edge-frame .sb-header-ef-nav.sb-ef-open { display: block; }
    .sb-header-edge-frame .sb-header-ef-nav > ul {
        flex-direction: column;
        align-items: stretch;
    }
    .sb-header-edge-frame .sb-header-ef-nav > ul > li + li {
        border-left: 0;
        border-top: 1px solid var(--sb-color-border, #e5e7eb);
    }
    .sb-header-edge-frame .sb-header-ef-nav .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        margin: 0 0 4px 12px;
        padding: 0 0 0 10px;
        background: transparent;
        border: 0;
        border-left: 1px solid var(--sb-color-border, #e5e7eb);
        box-shadow: none;
    }
    .sb-header-edge-frame .sb-header-ef-nav .sub-menu .sub-menu { margin-left: 10px; }
    .sb-header-edge-frame .sb-header-ef-nav .menu-item-has-children > a::after {
        content: "\25BE";
        float: right;
        margin-left: 6px;
    }
}


/* ===== Footer variant: wave-gradient ===== */
/* templates/theme/footers/wave-gradient.css */

.sb-footer-wave-gradient {
    position: relative;
    background: linear-gradient(135deg, var(--sb-color-link, #2563eb) 0%, var(--sb-color-accent, #1e40af) 50%, var(--sb-color-text, #0f172a) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
    margin-top: 120px;
    padding: 0;
    overflow: hidden;
}

.sb-footer-wave-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sb-footer-wave-gradient-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--sb-color-bg, #fff);
    transform: translateY(-99%);
}

.sb-footer-wave-gradient-wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="currentColor"></path></svg>') repeat-x;
    background-size: 50% 100%;
    animation: wave-move 20s linear infinite;
    color: var(--sb-color-bg, #fff);
}

.sb-footer-wave-gradient-wave::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="currentColor"></path></svg>') repeat-x;
    background-size: 50% 100%;
    animation: wave-move 25s linear infinite reverse;
    opacity: 0.5;
    color: var(--sb-color-bg, #fff);
}

@keyframes wave-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sb-footer-wave-gradient-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 32px;
    color: #fff;
    z-index: 1;
}

.sb-footer-wave-gradient-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    align-items: start;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sb-footer-wave-gradient-brand {
    position: relative;
}

.sb-footer-wave-gradient-brand img {
    max-height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.sb-footer-wave-gradient-logo-text {
    font-size: 32px;
    font-weight: 900;
    font-family: var(--sb-font-heading, sans-serif);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.sb-footer-wave-gradient-tagline {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    max-width: 350px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sb-footer-wave-gradient-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.sb-footer-wave-gradient-col {
    min-width: 0;
}

.sb-footer-wave-gradient-heading {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff !important;
    margin: 0 0 24px;
    font-family: var(--sb-font-heading, sans-serif);
    position: relative;
    padding-bottom: 12px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    border-bottom: none !important;
}

.sb-footer-wave-gradient-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.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.95);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sb-footer-menu a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.sb-footer-menu a:hover {
    color: #fff;
    padding-left: 20px;
}

.sb-footer-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
    left: 0;
}

.sb-footer-wave-gradient-bottom {
    padding-top: 32px;
    text-align: center;
}

.sb-footer-wave-gradient-copyright {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 968px) {
    .sb-footer-wave-gradient {
        margin-top: 80px;
    }

    .sb-footer-wave-gradient-inner {
        padding: 60px 20px 24px;
    }

    .sb-footer-wave-gradient-top {
        grid-template-columns: 1fr;
        gap: 50px;
        padding-bottom: 48px;
    }

    .sb-footer-wave-gradient-brand {
        text-align: center;
    }

    .sb-footer-wave-gradient-brand img {
        margin-left: auto;
        margin-right: auto;
    }

    .sb-footer-wave-gradient-tagline {
        max-width: 100%;
    }

    .sb-footer-wave-gradient-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .sb-footer-wave-gradient-heading {
        font-size: 14px;
        margin-bottom: 16px;
    }
}

@media (max-width: 640px) {
    .sb-footer-wave-gradient-columns {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .sb-footer-wave-gradient-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .sb-footer-wave-gradient-col {
        text-align: center;
    }

    .sb-footer-menu {
        align-items: center;
    }

    .sb-footer-menu a:hover {
        padding-left: 0;
        padding-right: 20px;
    }

    .sb-footer-menu a:hover::before {
        transform: translateX(0) scaleX(-1);
    }
}

