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

:root {
    --sb-color-bg:              #17151c;    /* deep lavender black */
    --sb-color-bg-alt:          #211e29;    /* muted violet surface */
    --sb-color-text:            #f1edf5;    /* soft lavender white */
    --sb-color-muted:           #a39ba9;    /* muted lavender gray */
    --sb-color-link:            #a78bba;    /* soft lavender */
    --sb-color-link-hover:      #c2a9d1;    /* light lavender */
    --sb-color-border:          #383240;    /* subtle violet border */
    --sb-color-accent:          #826d94;    /* dusty violet */

    --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.6;
    --sb-content-max-width:     920px;
}

/* ===== Header variant: newspaper-masthead ===== */
/* templates/theme/headers/newspaper-masthead.css */

.sb-header-newspaper-masthead {
    position: relative;
    z-index: 1000;
    background: var(--sb-color-bg, #fff);
}

.sb-header-newspaper-masthead a {
    text-decoration: none;
}

.sb-header-newspaper-masthead a::after {
    display: none !important;
    content: none !important;
}

.sb-header-newspaper-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px 0;
}

/* Top utility row: date / edition markers flanking the masthead */
.sb-newspaper-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--sb-font-body, sans-serif);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sb-color-muted, #6b7280);
    padding-bottom: 10px;
}

.sb-newspaper-top-row span {
    white-space: nowrap;
}

/* Double rule above masthead */
.sb-header-newspaper-masthead::before,
.sb-newspaper-rule-top {
    content: '';
    display: block;
    height: 4px;
    border-top: 2px solid var(--sb-color-text, #111);
    border-bottom: 1px solid var(--sb-color-text, #111);
}

/* Masthead brand block */
.sb-header-newspaper-brand {
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 20px;
    padding: 18px 0;
    position: relative;
}

.sb-header-newspaper-brand a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sb-color-text, #111);
    font-family: var(--sb-font-heading, Georgia, serif);
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
}

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

/* Double rule below masthead */
.sb-newspaper-rule-bottom {
    height: 4px;
    border-top: 1px solid var(--sb-color-text, #111);
    border-bottom: 2px solid var(--sb-color-text, #111);
    margin-bottom: 0;
}

/* Nav strip with vertical dividers */
.sb-header-newspaper-nav-row {
    align-items: center;
    padding: 4px 0;
    position: relative;
}

.sb-header-newspaper-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.sb-newspaper-item {
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.sb-newspaper-item:not(:first-child)::before {
    content: '|';
    color: var(--sb-color-border, #ccc);
    margin: 0 4px;
    font-weight: 300;
}

.sb-newspaper-link,
.sb-newspaper-pill-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--sb-color-text, #111);
    font-family: var(--sb-font-body, sans-serif);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s ease;
}

.sb-newspaper-link:hover,
.sb-newspaper-pill-link:hover {
    color: var(--sb-color-link, #a41e1e);
}

.sb-newspaper-item.current-menu-item .sb-newspaper-link,
.sb-newspaper-item.current-menu-item .sb-newspaper-pill-link {
    color: var(--sb-color-link, #a41e1e);
}

.sb-newspaper-pill {
    display: flex;
    align-items: center;
    position: relative;
}

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

.sb-newspaper-trigger:hover {
    color: var(--sb-color-link, #a41e1e);
}

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

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

/* Dropdown styled like a boxed classified-ads column */
.sb-newspaper-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    transform: translateY(-6px);
    max-width: 560px;
    background: var(--sb-color-bg, #fff);
    border: 2px solid var(--sb-color-text, #111);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 999;
}

.sb-newspaper-item.sb-dropdown-open .sb-newspaper-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

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

.sb-newspaper-dropdown-grid::-webkit-scrollbar-track {
    background: var(--sb-color-bg-alt, #f2f2f2);
}

.sb-newspaper-dropdown-grid::-webkit-scrollbar-thumb {
    background: var(--sb-color-text, #111);
}

.sb-newspaper-dropdown a {
    color: var(--sb-color-text, #111);
    padding: 9px 12px;
    display: block;
    font-family: var(--sb-font-body, sans-serif);
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px dotted var(--sb-color-border, #ccc);
    transition: color 0.15s ease;
}

.sb-newspaper-dropdown a:hover {
    color: var(--sb-color-link, #a41e1e);
}

/* View All button */
.sb-newspaper-view-all {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px !important;
    background: var(--sb-color-link, #a41e1e) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    grid-column: 1 / -1;
    margin-top: 4px;
    font-family: var(--sb-font-body, sans-serif) !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sb-newspaper-view-all:hover {
    background: var(--sb-color-link-hover, #8a1717) !important;
    transform: scale(1.02) !important;
}

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

/* Mobile toggle */
.sb-header-newspaper-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px solid var(--sb-color-text, #111);
    cursor: pointer;
    color: var(--sb-color-text, #111);
    font-family: var(--sb-font-heading, Georgia, serif);
    font-size: 20px;
    flex-shrink: 0;
}

.sb-header-newspaper-toggle {
    display: none;
}

@media (max-width: 900px) {
    .sb-header-newspaper-inner {
        padding: 18px 20px 0;
    }

    .sb-header-newspaper-toggle {
        display: block;
    }

    .sb-header-newspaper-brand {
        padding: 18px 0;
        justify-content: space-between;
    }

    .sb-header-newspaper-brand a {
        font-size: 36px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    .sb-header-newspaper-brand img {
        max-height: 80px;
    }

    .sb-header-newspaper-nav-row {
        justify-content: flex-start;
        padding: 10px 0;
    }

    .sb-header-newspaper-menu {
        display: none;
    }

    .sb-header-newspaper-menu.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .sb-newspaper-item {
        display: block;
        position: relative;
        border-bottom: 1px dotted var(--sb-color-border, #ccc);
    }

    .sb-newspaper-item:not(:first-child)::before {
        content: none;
    }

    .sb-newspaper-link,
    .sb-newspaper-pill-link {
        padding: 12px 4px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

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

    .sb-newspaper-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: none;
        border: 1px solid var(--sb-color-border, #ccc);
        border-top: none;
        background: var(--sb-color-bg, #fff);
        padding: 0 8px 8px;
        display: none;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
        z-index: 1001;
    }

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

    .sb-newspaper-dropdown-grid {
        grid-template-columns: 1fr;
        max-height: 60vh;
    }

    .sb-newspaper-dropdown a {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
}

@media (max-width: 600px) {
    .sb-header-newspaper-inner {
        padding: 18px 20px 0;
    }

    .sb-header-newspaper-brand a {
        font-size: 28px;
    }

    .sb-header-newspaper-brand img {
        max-height: 60px;
    }

    .sb-newspaper-top-row {
        font-size: 10px;
        padding-bottom: 8px;
    }

    .sb-newspaper-top-row span:nth-child(2) {
        display: none;
    }

    .sb-header-newspaper-toggle {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

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

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

body.sb-site h1 {
    padding-bottom: 0;
}

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

