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

/* templates/theme/styles/sunset-gradient.css */

:root {
    /* Основные цвета */
    --sb-color-bg:              #fff5f7;
    --sb-color-bg-alt:          #ffd6e0;
    --sb-color-text:            #2d1b2e;
    --sb-color-muted:           #6b4e71;
    --sb-color-link:            #c44569;
    --sb-color-border:          #ffc2d4;
    --sb-color-accent:          #6c5ce7;

    /* Типографика */
    --sb-font-body:             'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sb-font-heading:          'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sb-font-size:             16px;
    --sb-line-height:           1.75;
    
    /* Лейаут */
    --sb-content-max-width:     920px;
    
    /* Эффекты */
    --sb-shadow-sm:             0 2px 8px rgba(196, 69, 105, 0.1);
    --sb-shadow-md:             0 4px 16px rgba(196, 69, 105, 0.15);
    --sb-shadow-lg:             0 8px 32px rgba(196, 69, 105, 0.2);
}

body.sb-site {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 100%);
    color: var(--sb-color-text);
    font-family: var(--sb-font-body);
    font-size: var(--sb-font-size);
    line-height: var(--sb-line-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.sb-site h1,
body.sb-site h2,
body.sb-site h3,
body.sb-site h4,
body.sb-site h5,
body.sb-site h6 {
    font-family: var(--sb-font-heading);
    background: linear-gradient(135deg, #c44569 0%, #6c5ce7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

body.sb-site h1 {
    font-size: 48px;
    margin-top: 0;
}

body.sb-site h2 {
    font-size: 36px;
    margin-bottom: 24px;
}

body.sb-site h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

body.sb-site h4 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 16px;
}

body.sb-site p {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--sb-color-text);
}

body.sb-site a {
    width: 100%;
    color: var(--sb-color-link);
    text-decoration: none;
    position: relative;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sb-site a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c44569 0%, #6c5ce7 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

body.sb-site a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

body.sb-site strong,
body.sb-site b {
    font-weight: 700;
    color: var(--sb-color-link);
}

body.sb-site em,
body.sb-site i {
    font-style: italic;
    color: var(--sb-color-accent);
}

body.sb-site code {
    background: linear-gradient(135deg, rgba(196, 69, 105, 0.1) 0%, rgba(108, 92, 231, 0.1) 100%);
    color: var(--sb-color-accent);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.9em;
    font-family: 'Fira Code', 'SF Mono', Monaco, monospace;
    font-weight: 500;
    border: 1px solid var(--sb-color-border);
}

body.sb-site pre {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 214, 224, 0.4) 100%);
    border: 2px solid var(--sb-color-border);
    border-radius: 16px;
    padding: 24px;
    overflow-x: auto;
    margin: 32px 0;
    box-shadow: var(--sb-shadow-sm);
}

body.sb-site pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    border: none;
    color: var(--sb-color-text);
}

body.sb-site blockquote {
    border-left: 5px solid var(--sb-color-link);
    padding-left: 28px;
    margin: 36px 0;
    color: var(--sb-color-muted);
    font-style: italic;
    font-size: 18px;
    position: relative;
}

body.sb-site blockquote::before {
    content: '"';
    position: absolute;
    left: -8px;
    top: -12px;
    font-size: 64px;
    color: var(--sb-color-border);
    font-family: Georgia, serif;
    line-height: 1;
}

body.sb-site ul,
body.sb-site ol {
    margin: 24px 0;
}

body.sb-site li {
    margin-bottom: 12px;
    color: var(--sb-color-text);
}

body.sb-site li::marker {
    color: var(--sb-color-link);
    font-weight: 700;
}

body.sb-site img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--sb-shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.sb-site img:hover {
    transform: translateY(-4px);
    box-shadow: var(--sb-shadow-lg);
}

body.sb-site hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--sb-color-link) 50%, transparent 100%);
    margin: 64px 0;
}

body.sb-site table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sb-shadow-sm);
}

body.sb-site th,
body.sb-site td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--sb-color-border);
}

body.sb-site th {
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #c44569 0%, #6c5ce7 100%);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.05em;
}

body.sb-site tr:last-child td {
    border-bottom: none;
}

body.sb-site tr:nth-child(even) {
    background: rgba(255, 214, 224, 0.2);
}

body.sb-site svg {
    fill: currentColor !important;
    color: inherit !important;
}

body.sb-site svg path {
    fill: currentColor !important;
}

body.sb-site button svg,
body.sb-site a svg {
    vertical-align: middle;
    flex-shrink: 0;
}

body.sb-site button {
    background: linear-gradient(135deg, #c44569 0%, #6c5ce7 100%);
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--sb-shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.sb-site button svg {
    fill: currentColor !important;
    color: #ffffff !important;
}

body.sb-site button:hover,
body.sb-site input[type="submit"]:hover,
body.sb-site input[type="button"]:hover {
    transform: translateY(-3px);
    box-shadow: var(--sb-shadow-lg);
}

body.sb-site input[type="text"],
body.sb-site input[type="email"],
body.sb-site input[type="search"],
body.sb-site textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--sb-color-border);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    font-family: var(--sb-font-body);
    color: var(--sb-color-text);
    transition: all 0.3s ease;
}

body.sb-site input[type="text"]:focus,
body.sb-site input[type="email"]:focus,
body.sb-site input[type="search"]:focus,
body.sb-site textarea:focus {
    outline: none;
    border-color: var(--sb-color-link);
    box-shadow: 0 0 0 4px rgba(196, 69, 105, 0.1);
    background: #ffffff;
}

@media (max-width: 768px) {
    body.sb-site h1 {
        font-size: 36px;
    }

    body.sb-site h2 {
        font-size: 28px;
    }

    body.sb-site h3 {
        font-size: 24px;
    }
}


/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e; /* фон */
}

::-webkit-scrollbar-thumb {
    background: #888; /* сам ползунок */
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* ===== 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: agency-bold ===== */
/* templates/theme/footers/agency-bold.css */

.sb-footer-agency-bold {
    background: linear-gradient(180deg, var(--sb-color-bg, #fff) 0%, var(--sb-color-bg-alt, #f9fafb) 100%);
    border-top: 2px solid var(--sb-color-link, #2563eb);
    padding: 80px 20px 32px;
    margin-top: 120px;
    position: relative;
}

.sb-footer-agency-bold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--sb-color-link, #2563eb) 0%, 
        var(--sb-color-accent, #dc2626) 50%, 
        var(--sb-color-link, #2563eb) 100%);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sb-footer-agency-bold-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.sb-footer-agency-bold-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 80px;
    align-items: start;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
}

.sb-footer-agency-bold-brand {
    position: relative;
}

.sb-footer-agency-bold-logo {
    margin-bottom: 20px;
}

.sb-footer-agency-bold-logo img {
    max-height: 48px;
    width: auto;
}

.sb-footer-agency-bold-sitename {
    font-size: 28px;
    font-weight: 800;
    color: var(--sb-color-text, #111);
    font-family: var(--sb-font-heading, sans-serif);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--sb-color-text, #111) 0%, var(--sb-color-link, #2563eb) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sb-footer-agency-bold-tagline {
    font-size: 16px;
    line-height: 1.6;
    color: var(--sb-color-muted, #6b7280);
    margin: 0;
    max-width: 300px;
}

.sb-footer-agency-bold-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.sb-footer-agency-bold-col {
    min-width: 0;
}

.sb-footer-agency-bold-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sb-color-text, #111) !important;
    margin: 0 0 20px;
    font-family: var(--sb-font-heading, sans-serif);
    border-bottom: none !important;
}

.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: var(--sb-color-muted, #6b7280);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 0;
}

.sb-footer-menu a::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--sb-color-link, #2563eb);
    border-radius: 50%;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sb-footer-menu a:hover {
    color: var(--sb-color-link, #2563eb);
    padding-left: 12px;
}

.sb-footer-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.sb-footer-agency-bold-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 32px;
    text-align: center;
}

.sb-footer-agency-bold-copyright {
    margin: 0;
    font-size: 14px;
    color: var(--sb-color-muted, #6b7280);
}

@media (max-width: 1200px) {
    .sb-footer-agency-bold-top {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .sb-footer-agency-bold-brand {
        text-align: center;
    }

    .sb-footer-agency-bold-tagline {
        max-width: 100%;
    }

    .sb-footer-agency-bold-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .sb-footer-agency-bold {
        padding: 60px 20px 32px;
        margin-top: 80px;
    }

    .sb-footer-agency-bold-top {
        padding-bottom: 48px;
        gap: 40px;
    }

    .sb-footer-agency-bold-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

    .sb-footer-agency-bold-bottom {
        padding-top: 28px;
    }
}

@media (max-width: 400px) {
    .sb-footer-agency-bold-columns {
        gap: 32px;
    }

    .sb-footer-menu {
        gap: 10px;
    }

    .sb-footer-menu a {
        font-size: 14px;
    }
    .sb-footer-agency-bold-columns {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

