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

/* Cherry Cola — глубокий cherry-black, cream и electric peach */
:root {
    --sb-color-bg:              #180e12;
    --sb-color-bg-alt:          #25161c;
    --sb-color-text:            #f6ece7;
    --sb-color-muted:           #a58b8e;
    --sb-color-link:            #ff8c72;
    --sb-color-link-hover:      #ffb09d;
    --sb-color-border:          #3b252d;
    --sb-color-accent:          #e83e6f;

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

body.sb-site {
    background:
        linear-gradient(135deg, rgba(232, 62, 111, 0.035), transparent 35%),
        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 {
    color: var(--sb-color-text);
    font-family: var(--sb-font-heading);
    font-weight: 500;
}

body.sb-site h1 {
    color: #ffd0c4;
    font-style: italic;
}

body.sb-site a {
    color: var(--sb-color-link);
    text-decoration: none;
    background-image: linear-gradient(var(--sb-color-accent), var(--sb-color-accent));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: color 0.2s, background-size 0.25s;
}

body.sb-site a:hover {
    color: var(--sb-color-link-hover);
    background-size: 100% 1px;
}

body.sb-site strong {
    color: #ff9db8;
}

body.sb-site blockquote {
    padding: 22px 26px;
    color: #d6bdba;
    background: var(--sb-color-bg-alt);
    border-left: 3px solid var(--sb-color-accent);
    border-radius: 0 14px 14px 0;
}

body.sb-site code {
    color: #ffb09d;
    background: #2b1920;
    border: 1px solid var(--sb-color-border);
    padding: 2px 7px;
    border-radius: 20px;
}

body.sb-site img {
    border-radius: 16px 4px 16px 4px;
}

/* ===== Header variant: liquid-underline ===== */
/* templates/theme/headers/liquid-underline.css */

.sb-header-liquid-underline {
    position: relative;
    z-index: 1000;
    background: var(--sb-color-bg, #fff);
    border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
}

.sb-header-liquid-underline a {
    text-decoration: none;
}

.sb-header-liquid-underline a::after {
    display: none !important;
    content: none !important;
}

.sb-header-liquid-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Brand */
.sb-header-liquid-brand {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.sb-header-liquid-brand a {
    display: flex;
    align-items: center;
    color: var(--sb-color-text, #111);
    font-size: 23px;
    font-weight: 800;
    font-family: var(--sb-font-heading, sans-serif);
    letter-spacing: -0.02em;
}

.sb-header-liquid-brand img {
    max-height: 70px;
    width: auto;
    display: block;
}

/* Navigation — the liquid blob lives inside this relative wrapper */
.sb-header-liquid-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.sb-header-liquid-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    column-gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

/* The liquid indicator itself: a single absolutely-positioned pill that
   the JS moves/resizes under the hovered item, with a squash-stretch feel
   via border-radius + transform easing. */
.sb-liquid-indicator {
    position: absolute;
    height: 3px;
    border-radius: 3px;
    background: var(--sb-color-link, #2563eb);
    opacity: 0;
    pointer-events: none;
    transition:
        left 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        top 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.2s ease,
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.sb-header-liquid-nav.sb-liquid-active .sb-liquid-indicator {
    opacity: 1;
}

.sb-liquid-item {
    margin: 0;
    position: relative;
}

.sb-liquid-link,
.sb-liquid-pill-link {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    color: var(--sb-color-text, #111);
    font-size: 14.5px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.sb-liquid-link:hover,
.sb-liquid-pill-link:hover {
    color: var(--sb-color-link, #2563eb);
}

.sb-liquid-item.current-menu-item .sb-liquid-link,
.sb-liquid-item.current-menu-item .sb-liquid-pill-link {
    color: var(--sb-color-link, #2563eb);
}

.sb-liquid-pill {
    display: flex;
    align-items: center;
}

.sb-liquid-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 4px 0 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sb-color-muted, #6b7280);
    transition: color 0.2s ease;
}

.sb-liquid-trigger:hover {
    color: var(--sb-color-link, #2563eb);
}

.sb-liquid-caret {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sb-liquid-item.sb-dropdown-open .sb-liquid-caret {
    transform: rotate(180deg);
}

/* Dropdown */
.sb-liquid-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(-6px);
    min-width: 280px;
    max-width: 560px;
    background: var(--sb-color-bg, #fff);
    border: 1px solid var(--sb-color-border, #e5e7eb);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 999;
}

.sb-liquid-item.sb-dropdown-open .sb-liquid-dropdown {
    opacity: 1;
    visibility: visible;
}

.sb-liquid-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4px;
    max-height: 400px;
    overflow-y: auto;
}

.sb-liquid-dropdown-grid::-webkit-scrollbar {
    width: 6px;
}

.sb-liquid-dropdown-grid::-webkit-scrollbar-track {
    background: var(--sb-color-bg-alt, #f2f2f2);
    border-radius: 10px;
}

.sb-liquid-dropdown-grid::-webkit-scrollbar-thumb {
    background: var(--sb-color-link, #2563eb);
    border-radius: 10px;
}

.sb-liquid-dropdown a {
    color: var(--sb-color-text, #111);
    padding: 9px 12px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.sb-liquid-dropdown a:hover {
    background: var(--sb-color-bg-alt, #f2f6ff);
    color: var(--sb-color-link, #2563eb);
}

/* View All button */
.sb-liquid-view-all {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px !important;
    background: var(--sb-color-link, #2563eb) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    grid-column: 1 / -1;
    margin-top: 4px;
}

.sb-liquid-view-all:hover {
    background: var(--sb-color-link-hover, #1d4ed8) !important;
    transform: scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sb-liquid-view-all svg {
    flex-shrink: 0;
}

.sb-liquid-view-all span {
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* Mobile toggle */
.sb-header-liquid-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--sb-color-border, #e5e7eb);
    border-radius: 8px;
    cursor: pointer;
}

.sb-header-liquid-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.sb-header-liquid-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sb-header-liquid-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.sb-header-liquid-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .sb-header-liquid-toggle {
        display: flex;
    }

    .sb-liquid-indicator {
        display: none;
    }

    .sb-header-liquid-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--sb-color-bg, #fff);
        border-top: 1px solid var(--sb-color-border, #e5e7eb);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .sb-header-liquid-nav.is-open {
        display: block;
    }

    .sb-header-liquid-menu {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 16px;
        gap: 2px;
    }

    .sb-liquid-link,
    .sb-liquid-pill-link,
    .sb-liquid-trigger {
        height: auto;
        padding: 12px 8px;
    }

    .sb-liquid-pill {
        justify-content: space-between;
    }

    .sb-liquid-dropdown {
        position: relative;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 8px;
        background: var(--sb-color-bg-alt, #f7f7fb);
        margin: 2px 0 6px;
        display: none;
    }

    .sb-liquid-item.sb-dropdown-open .sb-liquid-dropdown {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .sb-liquid-dropdown-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sb-liquid-indicator,
    .sb-liquid-link,
    .sb-liquid-pill-link,
    .sb-liquid-dropdown,
    .sb-liquid-trigger,
    .sb-liquid-caret {
        transition: none !important;
    }
}

.sb-header-liquid-brand h1 {
    margin: 0 !important;
}

h1 {
   margin: 0!important;
}

body.sb-site li {
    margin-bottom: 0!important;
}

/* ===== 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;
    }
}

