/*
Theme Name: Site Builder Generated Theme
Description: Сгенерирована плагином Site Builder. Шапка: balanced-center, футер: bubble-modern, стиль: sunset-gradient, рейтинг: cards, hero: glass.
Version: 1.6.1
Author: Site Builder Plugin
*/

/* 1.6.1 — not every style defines --sb-color-link-hover; style variants below override this. */
:root { --sb-color-link-hover: var(--sb-color-link, #2271b1); }

/* ===== 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: balanced-center ===== */
/* templates/theme/headers/balanced-center.css */

.sb-header-balanced-center {
    padding: 20px 20px 0px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1000;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sb-header-balanced-center a {
    text-decoration: none;
}

.sb-header-balanced-center a::after {
    display: none !important;
    content: none !important;
}

.sb-header-balanced-center.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sb-header-balanced-center-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* ===================================================================
   BRAND
   =================================================================== */

.sb-header-balanced-center-brand {
    margin: 0 0 16px 0;
    font-size: 0;
    line-height: 1;
}

.sb-header-balanced-center-brand a {
    display: inline-flex;
    align-items: center;
    color: var(--sb-color-text, #111);
    font-size: 26px;
    font-weight: 800;
    font-family: var(--sb-font-heading, sans-serif);
    letter-spacing: -0.03em;
    transition: transform 0.3s ease, filter 0.3s ease;
    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-header-balanced-center-brand a:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.sb-header-balanced-center-brand img {
    max-height: 32px;
    width: auto;
    display: block;
}

/* ===================================================================
   MOBILE TOGGLE
   =================================================================== */

.sb-header-balanced-center-toggle {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--sb-color-link, #2563eb);
    cursor: pointer;
    padding: 8px;
    z-index: 100;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.sb-header-balanced-center-toggle:hover {
    background: var(--sb-color-link, #2563eb);
}

.sb-header-balanced-center-toggle span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: #cbcbb9 !important;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
}

.sb-header-balanced-center-toggle:hover span,
.sb-header-balanced-center-toggle[aria-expanded="true"] span {
    background: #fff !important;
}

.sb-header-balanced-center-toggle[aria-expanded="true"] {
    background: var(--sb-color-link, #2563eb);
}

.sb-header-balanced-center-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sb-header-balanced-center-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.sb-header-balanced-center-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================================================================
   NAV — a centered row of pill buttons, fixed height, never reflows
   =================================================================== */

.sb-header-balanced-center-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.sb-header-balanced-center-nav .sb-menu {
    list-style: none;
    padding-bottom: 1rem;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    flex-direction: row-reverse;
}

.sb-balanced-item {
    margin: 0;
    position: relative;
}

/* the pill itself — link and, when present, trigger button share one
   visual capsule so plain and dropdown items line up identically */
.sb-balanced-link,
.sb-balanced-pill {
    height: 40px;
    border-radius: 999px;
    border: 1.5px solid var(--sb-color-link, #2563eb);
    background: #fff;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.sb-balanced-link-plain {
    display: block;
    line-height: 40px;
    color: var(--sb-color-text, #111);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.sb-balanced-link-plain:hover {
    color: #fff;
    background: var(--sb-color-link, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.45);
}

.sb-balanced-item.current-menu-item > .sb-balanced-link-plain {
    color: #fff;
    background: var(--sb-color-link, #2563eb);
}

/* dropdown pill: link + separate caret button, both inside one capsule */
.sb-balanced-pill {
    display: flex;
    align-items: stretch;
    padding: 0;
}

.sb-balanced-pill:hover,
.sb-balanced-pill:focus-within,
.sb-balanced-item.sb-dropdown-open .sb-balanced-pill {
    background: var(--sb-color-link, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.45);
}

.sb-balanced-link {
    display: flex;
    align-items: center;
    color: var(--sb-color-text, #111);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0px 10px 4px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

.sb-balanced-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    padding: 0 6px 0 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sb-color-text, #111);
}

.sb-balanced-link:focus-visible,
.sb-balanced-link-plain:focus-visible,
.sb-balanced-trigger:focus-visible,
.sb-header-balanced-center-brand a:focus-visible {
    outline: 2px solid var(--sb-color-link, #2563eb);
    outline-offset: 3px;
    border-radius: 999px;
}

.sb-balanced-caret {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.sb-balanced-item.sb-dropdown-open .sb-balanced-caret {
    transform: rotate(180deg);
}

/* ===================================================================
   DROPDOWN — floats below its own pill, never disturbs sibling layout.
   Height animates via grid-template-rows: no JS measuring needed.
   =================================================================== */

.sb-balanced-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 280px;
    max-width: min(640px, 90vw);
    z-index: 999;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
}

.sb-balanced-item.sb-dropdown-open .sb-balanced-dropdown {
    grid-template-rows: 1fr;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    overflow: visible;
}

.sb-balanced-dropdown-grid {
    overflow: hidden;
}

.sb-balanced-dropdown-grid > div,
.sb-balanced-dropdown-grid {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
}

.sb-balanced-dropdown-grid {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    border-radius: 18px;
    padding: 14px;
    margin-top: 2px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 4px;
    max-height: 420px;
    overflow-y: auto;
}

.sb-balanced-dropdown-grid::-webkit-scrollbar {
    width: 8px;
}

.sb-balanced-dropdown-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.sb-balanced-dropdown-grid::-webkit-scrollbar-thumb {
    background: var(--sb-color-link, #2563eb);
    border-radius: 10px;
}

.sb-balanced-dropdown-grid a {
    color: var(--sb-color-text, #111);
    padding: 10px 14px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
}

.sb-balanced-dropdown-grid a:hover,
.sb-balanced-dropdown-grid a:focus-visible {
    background: var(--sb-color-bg-alt, #f2f6ff);
    color: var(--sb-color-link, #2563eb);
}

.sb-balanced-dropdown-grid a:focus-visible {
    outline: 2px solid var(--sb-color-link, #2563eb);
    outline-offset: -2px;
}

/* View All button */
.sb-balanced-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-balanced-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-balanced-view-all svg {
    flex-shrink: 0;
}

.sb-balanced-view-all span {
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* ===================================================================
   MOBILE — burger + accordion
   =================================================================== */

@media (max-width: 768px) {
    .sb-header-balanced-center {
        padding: 20px 20px 20px;
    }

    .sb-header-balanced-center-inner {
        align-items: flex-start;
    }

    .sb-header-balanced-center-brand {
        max-width: calc(100% - 60px);
        margin-bottom: 0;
    }

    .sb-header-balanced-center-toggle {
        display: flex;
    }

    .sb-header-balanced-center-nav {
        display: none;
        width: 100%;
        margin-top: 16px;
    }

    .sb-header-balanced-center-nav.is-open {
        display: block;
    }

    .sb-header-balanced-center-nav .sb-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .sb-balanced-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .sb-balanced-item:last-child {
        border-bottom: none;
    }

    .sb-balanced-link,
    .sb-balanced-link-plain,
    .sb-balanced-pill {
        height: auto;
        border: none;
        border-radius: 0;
        background: none !important;
        box-shadow: none !important;
        transform: none !important;
        width: 100%;
        max-width: none;
    }

    .sb-balanced-link-plain {
        color: var(--sb-color-text, #111);
        font-size: 16px;
        padding: 4px 4px;
    }

    .sb-balanced-pill {
        width: 100%;
        justify-content: space-between;
    }

    .sb-balanced-link {
        color: var(--sb-color-text, #111) !important;
        font-size: 16px;
        padding: 4px 4px;
        max-width: none;
        flex: 1;
    }

    .sb-balanced-trigger {
        color: var(--sb-color-text, #111) !important;
        width: 40px;
        padding: 0;
    }

    .sb-balanced-item.current-menu-item > .sb-balanced-link-plain {
        color: var(--sb-color-link, #2563eb);
    }

    /* dropdown becomes an inline accordion panel instead of a floating card */
    .sb-balanced-dropdown {
        position: static;
        transform: none;
        width: 100%;
        min-width: 0;
        max-width: none;
        top: auto;
        display: none;
        opacity: 1;
        visibility: visible;
    }
    
    .sb-balanced-item.sb-dropdown-open .sb-balanced-dropdown {
        display: block;
    }

    .sb-balanced-dropdown-grid {
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
        padding: 4px 0 12px 4px;
        max-height: calc(3 * 44px);
        overflow-y: auto;
        grid-template-columns: repeat(3, 1fr);
    }

    .sb-balanced-dropdown-grid::-webkit-scrollbar {
        width: 6px;
    }

    .sb-balanced-dropdown-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .sb-balanced-dropdown-grid::-webkit-scrollbar-thumb {
        background: var(--sb-color-link, #2563eb);
        border-radius: 10px;
    }

    .sb-balanced-dropdown-grid a {
        color: var(--sb-color-muted, #6b7280);
        font-size: 13.5px;
        padding: 9px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sb-header-balanced-center,
    .sb-header-balanced-center-brand a,
    .sb-balanced-link,
    .sb-balanced-pill,
    .sb-balanced-caret,
    .sb-balanced-dropdown {
        transition: none !important;
    }
}

.sb-site-content {
    padding: 0 20px;
}

body.sb-site li {
    margin-bottom: 0;
}

.sb-balanced-link .sb-balanced-link-plain {
    padding: 0;
}

body.sb-site button {
    height: 37px;
}

body.sb-site button, body.sb-site input[type="submit"], body.sb-site input[type="button"] {
    box-shadow: unset;
    border: unset;
    border-radius: 2rem;
}

body.sb-site button:hover, body.sb-site input[type="submit"]:hover, body.sb-site input[type="button"]:hover {
    box-shadow: unset;
    border: unset;
    border-radius: 2rem;
}

ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 0em;
    margin-block-end: 0em;
    padding-inline-start: 0px;
    unicode-bidi: isolate;
}

@media (max-width: 450px) {
    .sb-balanced-dropdown-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 769px) {
        body.sb-site li {
            margin-bottom: 0;
            width: 100%;
            max-width: 100%;
    }
}

/* ===== Footer variant: bubble-modern ===== */
/* templates/theme/footers/bubble-modern.css */

.sb-footer-bubble-modern {
    position: relative;
    z-index: 1;
    min-height: 12rem;
    margin-top: 4rem;
    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: sb-bubble-gradient-shift 15s ease infinite;
    overflow: hidden;
}

@keyframes sb-bubble-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sb-footer-bubble-modern::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: none;
}

/* Bubbles animation layer */
.sb-footer-bubble-bubbles {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.sb-footer-bubble-bubble {
    position: absolute;
    left: var(--position, 50%);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 100%;
    filter: blur(8px);
    animation: sb-bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s),
               sb-bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
    transform: translate(-50%, 0);
}

@keyframes sb-bubble-size {
    0% {
        width: var(--size, 4rem);
        height: var(--size, 4rem);
        opacity: 0.8;
    }
    75% {
        width: var(--size, 4rem);
        height: var(--size, 4rem);
        opacity: 0.5;
    }
    100% {
        width: 0rem;
        height: 0rem;
        opacity: 0;
    }
}

@keyframes sb-bubble-move {
    0% {
        bottom: 0;
    }
    100% {
        bottom: var(--distance, 10rem);
    }
}

/* Content layer */
.sb-footer-bubble-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem 2rem;
    color: #ffffff;
    overflow-x: hidden;
}

.sb-footer-bubble-inner {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
}

.sb-footer-bubble-top {
        display: grid;
        grid-template-columns: .9fr 2fr;
        gap: 0px;
        align-items: start;
        padding-bottom: 48px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

.sb-footer-bubble-left {
    display: flex;
    flex-direction: column;
}

.sb-footer-bubble-right {
    display: flex;
    flex-direction: column;
}

.sb-footer-bubble-content a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease, padding 0.3s ease;
    display: inline-block;
    position: relative;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sb-footer-bubble-content a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #ffffff;
}

.sb-footer-bubble-content a:hover {
    color: #ffffff !important;
    padding-left: 20px;
    opacity: 0.8;
}

.sb-footer-bubble-content a:hover::before {
    opacity: 1;
    left: 0;
}

.sb-footer-bubble-content p {
    color: #ffffff !important;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Columns layout */
.sb-footer-bubble-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px;
}

.sb-footer-bubble-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sb-footer-bubble-col > * {
    margin: 0.25rem 0;
}

.sb-footer-bubble-heading {
    font-weight: 800;
    font-size: 1rem!important;
    color: #ffffff !important;
    margin: 0 0 1.5rem !important;
    font-family: var(--sb-font-heading, sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 12px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.sb-footer-bubble-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);
}

/* Override regulator title to match footer heading style */
.sb-footer-bubble-content .sb-regulators-title.sb-footer-bubble-heading {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.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 {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Brand section */
.sb-footer-bubble-brand {
    margin-bottom: 1.5rem;
}

.sb-footer-bubble-brand img {
    max-height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.sb-footer-bubble-logo-text {
    font-size: 2rem;
    font-weight: 900;
    font-family: var(--sb-font-heading, sans-serif);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.sb-footer-bubble-tagline {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff !important;
    max-width: 350px;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sb-footer-bubble-copyright {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #ffffff !important;
    text-align: center;
    padding-top: 32px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sb-footer-bubble-copyright p {
    color: #ffffff !important;
    margin: 0;
}

.sb-footer-bubble-bottom {
    padding-top: 32px;
    text-align: center;
}

/* SVG filter */
.sb-footer-bubble-svg {
    position: fixed;
    top: 100vh;
    width: 0;
    height: 0;
}


/* Responsive */
@media (max-width: 968px) {
    .sb-footer-bubble-content {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .sb-footer-bubble-top {
        grid-template-columns: 1fr;
        gap: 50px;
        padding-bottom: 40px;
    }

    .sb-footer-bubble-brand {
        text-align: center;
    }

    .sb-footer-bubble-brand img {
        margin-left: auto;
        margin-right: auto;
    }

    .sb-footer-bubble-tagline {
        max-width: 100%;
    }

    .sb-footer-bubble-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 0px;
    }

    .sb-footer-bubble-heading {
        font-size: 0.875rem;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 640px) {
    .sb-footer-bubble-content {
        padding: 2rem 1.25rem 1.25rem;
    }

    .sb-footer-bubble-columns {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .sb-footer-bubble-col {
        text-align: center;
    }

    .sb-footer-bubble-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .sb-footer-menu {
        align-items: center;
    }

    .sb-footer-bubble-content a:hover {
        padding-left: 0;
        padding-right: 20px;
    }

    .sb-footer-bubble-content a:hover::before {
        transform: scaleX(-1);
        left: auto;
        right: 0;
    }

    .sb-footer-bubble-brand img {
        max-height: 50px;
    }

    .sb-footer-bubble-logo-text {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sb-footer-bubble-bubble {
        animation: none !important;
    }
}



/* ===== Operators variant: cards ===== */
/* Operators variant: cards — one card per operator, facts as pills. */
.sb-site .sb-operators .sb-operators-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.sb-site .sb-operators .sb-operator {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--sb-color-border, #e5e7eb);
    border-radius: 12px;
    background: var(--sb-color-bg-alt, #f8fafc);
}
.sb-site .sb-operators .sb-operator:first-child {
    border-color: var(--sb-color-accent, #2563eb);
    box-shadow: 0 0 0 1px var(--sb-color-accent, #2563eb) inset;
}
.sb-site .sb-operators .sb-operator-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sb-color-accent, #2563eb);
    color: var(--sb-color-bg, #fff);
    font-family: var(--sb-font-heading, inherit);
    font-size: 1.15em;
    font-weight: 800;
    line-height: 1;
}
.sb-site .sb-operators .sb-operator-name {
    margin: 2px 0 10px;
    font-family: var(--sb-font-heading, inherit);
    font-size: 1.15em;
    line-height: 1.3;
}
.sb-site .sb-operators .sb-operator-name strong { color: var(--sb-color-text, inherit); }
.sb-site .sb-operators .sb-operator-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
}
.sb-site .sb-operators .sb-operator-fact {
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: 5px 12px;
    border: 1px solid var(--sb-color-border, #e5e7eb);
    border-radius: 14px;
    background: var(--sb-color-bg, #fff);
    font-size: .86em;
    line-height: 1.4;
}
.sb-site .sb-operators .sb-operator-fact dt {
    display: inline;
    margin: 0;
    color: var(--sb-color-muted, #6b7280);
    font-weight: 600;
}
.sb-site .sb-operators .sb-operator-fact dt::after { content: ": "; }
.sb-site .sb-operators .sb-operator-fact dd { display: inline; margin: 0; color: var(--sb-color-text, inherit); }
.sb-site .sb-operators .sb-operator-desc {
    margin: 0;
    color: var(--sb-color-muted, #6b7280);
    font-size: .95em;
    line-height: 1.55;
}
@media (max-width: 560px) {
    .sb-site .sb-operators .sb-operator { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
    .sb-site .sb-operators .sb-operator-rank { width: 36px; height: 36px; font-size: 1em; }
}


/* ===== Heroes variant: glass ===== */
/* Hero variant: glass — blurred full-width image, frosted card in the centre. */
html body.sb-site { overflow-x: clip; }
.sb-site .sb-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    min-height: 480px;
    margin: 0 calc(50% - 50vw) 40px;
    padding: 48px 20px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--sb-color-accent, #2563eb), var(--sb-color-link, #7c3aed));
}
.sb-site .sb-hero .sb-hero-media { position: absolute; inset: -24px; }
.sb-site .sb-hero .sb-hero-media img {
    width: 100%; height: 100%; max-height: none;
    object-fit: cover; margin: 0; border-radius: 0;
    filter: blur(6px) saturate(1.1);
    transform: scale(1.06);
}
.sb-site .sb-hero .sb-hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: rgba(10, 14, 30, .38);
}
.sb-site .sb-hero .sb-hero-inner {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0;
    padding: 0;
}
.sb-site .sb-hero .sb-hero-card {
    padding: 36px 34px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 20px;
    background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55);
}
.sb-site .sb-hero .sb-hero-label {
    margin: 0 0 12px;
    font-size: .76em;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
}
.sb-site .sb-hero .sb-hero-title {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    color: #fff;
    font-size: clamp(1.9em, 4.2vw, 3.1em);
    line-height: 1.15;
    text-transform: none;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.sb-site .sb-hero .sb-hero-title::before,
.sb-site .sb-hero .sb-hero-title::after { content: none; display: none; }
.sb-site .sb-hero .sb-hero-title { font-size: clamp(1.8em, 3.8vw, 2.8em); }
.sb-site .sb-hero .sb-hero-subtitle {
    margin: 0 0 20px;
    font-size: 1.1em;
    line-height: 1.55;
    color: rgba(255, 255, 255, .92);
}
.sb-site .sb-hero .sb-hero-fact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, .22);
}
.sb-site .sb-hero .sb-hero-fact-label {
    font-size: .74em; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: rgba(255, 255, 255, .75);
}
.sb-site .sb-hero .sb-hero-fact-text { color: #fff; line-height: 1.45; }
@media (max-width: 640px) {
    .sb-site .sb-hero { min-height: 420px; padding: 32px 14px; }
    .sb-site .sb-hero .sb-hero-card { padding: 24px 20px; border-radius: 16px; }
}

