/*
Theme Name: Site Builder Generated Theme
Description: Сгенерирована плагином Site Builder. Шапка: floating-circle, футер: vort-folio, стиль: paper-vintage, рейтинг: cards, hero: overlay-center.
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/paper-vintage.css */

:root {
    /* Основные цвета */
    --sb-color-bg:              #f4f1e8;
    --sb-color-bg-alt:          #e8dcc4;
    --sb-color-text:            #2d2520;
    --sb-color-muted:           #6b5d52;
    --sb-color-link:            #8b4513;
    --sb-color-border:          #d4c5a9;
    --sb-color-accent:          #a0522d;

    /* Типографика */
    --sb-font-body:             'Courier Prime', 'Courier New', monospace;
    --sb-font-heading:          'Playfair Display', Georgia, serif;
    --sb-font-size:             16px;
    --sb-line-height:           1.8;
    
    /* Лейаут */
    --sb-content-max-width:     920px;
}

body.sb-site {
    background: #f4f1e8;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 115, 85, 0.03) 2px, rgba(139, 115, 85, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 115, 85, 0.03) 2px, rgba(139, 115, 85, 0.03) 4px);
    color: var(--sb-color-text);
}

body.sb-site h1,
body.sb-site h2,
body.sb-site h3,
body.sb-site h4,
body.sb-site h5,
body.sb-site h6 {
    color: var(--sb-color-text);
    border-bottom: 3px double var(--sb-color-border);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

body.sb-site p {
    color: var(--sb-color-text);
    text-align: justify;
}

body.sb-site a {
    color: var(--sb-color-link);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

body.sb-site a:hover {
    text-decoration-style: solid;
}

body.sb-site strong,
body.sb-site b {
    color: var(--sb-color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.sb-site em,
body.sb-site i {
    color: var(--sb-color-muted);
}

body.sb-site code {
    background: var(--sb-color-bg-alt);
    color: var(--sb-color-accent);
    border: 1px dashed var(--sb-color-border);
}

body.sb-site pre {
    background: var(--sb-color-bg-alt);
    border: 2px solid var(--sb-color-border);
    border-left: 6px solid var(--sb-color-link);
    box-shadow: 3px 3px 0 rgba(139, 115, 85, 0.2);
}

body.sb-site pre code {
    background: none;
    color: var(--sb-color-text);
    border: none;
}

body.sb-site blockquote {
    border-left: 6px solid var(--sb-color-link);
    background: var(--sb-color-bg-alt);
    color: var(--sb-color-muted);
    box-shadow: inset 3px 0 0 rgba(139, 69, 19, 0.2);
}

body.sb-site blockquote::before {
    content: '❝';
    color: var(--sb-color-border);
}

body.sb-site li {
    color: var(--sb-color-text);
}

body.sb-site li::marker {
    color: var(--sb-color-link);
}

body.sb-site img {
    box-shadow: 0 4px 12px rgba(45, 37, 32, 0.3), inset 0 0 0 1px var(--sb-color-border);
    filter: sepia(20%) contrast(1.1);
}

body.sb-site img:hover {
    filter: sepia(0%) contrast(1.2);
    box-shadow: 0 6px 16px rgba(45, 37, 32, 0.4);
}

body.sb-site hr {
    border: none;
    border-top: 3px double var(--sb-color-border);
    background: none;
}

body.sb-site hr::after {
    content: '§';
    display: block;
    text-align: center;
    color: var(--sb-color-border);
}

body.sb-site table {
    border: 3px double var(--sb-color-border);
    background: var(--sb-color-bg);
    box-shadow: 3px 3px 0 rgba(139, 115, 85, 0.2);
}

body.sb-site th,
body.sb-site td {
    border-bottom: 1px solid var(--sb-color-border);
}

body.sb-site th {
    color: var(--sb-color-bg);
    background: var(--sb-color-link);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body.sb-site tr:last-child td {
    border-bottom: none;
}

body.sb-site tr:nth-child(even) {
    background: rgba(232, 220, 196, 0.3);
}

body.sb-site tr:hover {
    background: var(--sb-color-bg-alt);
}

body.sb-site button,
body.sb-site input[type="submit"],
body.sb-site input[type="button"] {
    background: var(--sb-color-link);
    color: var(--sb-color-bg);
    border: 2px solid var(--sb-color-text);
    box-shadow: 3px 3px 0 rgba(45, 37, 32, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body.sb-site .sb-header-split-minimal-toggle,
body.sb-site .sb-header-balanced-center-toggle {
    background: var(--sb-color-link) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

body.sb-site button:hover,
body.sb-site input[type="submit"]:hover,
body.sb-site input[type="button"]:hover {
    background: var(--sb-color-accent);
    box-shadow: 5px 5px 0 rgba(45, 37, 32, 0.4);
}

body.sb-site input[type="text"],
body.sb-site input[type="email"],
body.sb-site input[type="search"],
body.sb-site textarea {
    background: var(--sb-color-bg);
    border: 2px solid var(--sb-color-border);
    color: var(--sb-color-text);
}

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 {
    border-color: var(--sb-color-link);
    background: var(--sb-color-bg-alt);
    box-shadow: inset 2px 2px 4px rgba(139, 115, 85, 0.1);
}

/* SVG */
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 svg {
    fill: currentColor !important;
    color: var(--sb-color-bg) !important;
}

/* Header */
body.sb-site .sb-header-balanced-center {
    background: rgba(244, 241, 232, 0.98) !important;
    border-bottom: 3px double var(--sb-color-border) !important;
    box-shadow: 0 4px 8px rgba(45, 37, 32, 0.15) !important;
}

body.sb-site .sb-header-balanced-center-brand a {
    color: var(--sb-color-text) !important;
    text-shadow: none !important;
    background: none !important;
    -webkit-text-fill-color: var(--sb-color-text) !important;
}

body.sb-site .sb-header-balanced-center-nav .sb-menu > li > a {
    color: var(--sb-color-text) !important;
}

body.sb-site .sb-header-balanced-center-nav .sb-menu > li > a::before {
    background: var(--sb-color-link) !important;
}

body.sb-site .sb-header-balanced-center-nav .sb-menu > li > a:hover {
    color: var(--sb-color-bg) !important;
}

body.sb-site .sb-header-balanced-center-nav .sb-menu > li.current-menu-item > a {
    color: var(--sb-color-bg) !important;
}

body.sb-site .sb-header-balanced-center-nav .sub-menu {
    background: var(--sb-color-bg-alt) !important;
    border: 2px solid var(--sb-color-border) !important;
    box-shadow: 4px 4px 0 rgba(45, 37, 32, 0.2) !important;
}

body.sb-site .sb-header-balanced-center-nav .sub-menu a {
    color: var(--sb-color-text) !important;
}

body.sb-site .sb-header-balanced-center-nav .sub-menu a:hover {
    background: var(--sb-color-link) !important;
    color: var(--sb-color-bg) !important;
}

body.sb-site .sb-header-balanced-center-toggle {
    background: var(--sb-color-bg-alt) !important;
    border: 2px solid var(--sb-color-text) !important;
    box-shadow: 2px 2px 0 rgba(45, 37, 32, 0.2) !important;
}

body.sb-site .sb-header-balanced-center-toggle:hover {
    background: var(--sb-color-link) !important;
}

body.sb-site .sb-header-balanced-center-toggle span {
    background: var(--sb-color-text) !important;
}

body.sb-site .sb-header-balanced-center-toggle:hover span {
    background: var(--sb-color-bg) !important;
}

body.sb-site .sb-header-balanced-center-toggle[aria-expanded="true"] {
    background: var(--sb-color-link) !important;
}

body.sb-site .sb-header-balanced-center-toggle[aria-expanded="true"] span {
    background: var(--sb-color-bg) !important;
}

/* Back to top */
body.sb-site .sb-back-to-top {
    background: var(--sb-color-link);
    color: var(--sb-color-bg);
    border: 2px solid var(--sb-color-text);
    box-shadow: 3px 3px 0 rgba(45, 37, 32, 0.3);
}

body.sb-site .sb-back-to-top:hover {
    background: var(--sb-color-accent);
    box-shadow: 5px 5px 0 rgba(45, 37, 32, 0.4);
}

@media (max-width: 768px) {
    body.sb-site .sb-header-balanced-center-nav .sb-menu .sub-menu {
        background: var(--sb-color-bg-alt) !important;
        border: 2px solid var(--sb-color-border) !important;
    }

    h1{font-size:1.6rem}
    h2{font-size:1.4rem}
    h3{font-size:1.25rem}
}

@media (max-width: 768px) {
    .sb-back-to-top {
        bottom: 20px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    body.sb-site .sb-header-balanced-center-nav .sb-menu > li > a {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
}


/* ===== Header variant: floating-circle ===== */
/* templates/theme/headers/floating-circle.css */

.sb-header-floating-circle {
    position: sticky;
    top: 20px;
    z-index: 1000;
    margin: 20px auto 40px;
    max-width: 100%;
    padding: 0 20px;
    transition: top 0.3s ease;
}

.sb-header-floating-circle a {
    text-decoration: none;
}

.sb-header-floating-circle a::after {
    display: none !important;
    content: none !important;
}

.sb-header-floating-circle-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--sb-color-bg, #fff);
    border: 2px solid var(--sb-color-border, #e5e7eb);
    border-radius: 20px;
    padding: 12px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    max-width: 1400px;
    margin: 0 auto;
    flex-direction: row-reverse;
}

.sb-header-floating-circle.scrolled .sb-header-floating-circle-inner {
    padding: 10px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ===================================================================
   NAV — top level items
   =================================================================== */

.sb-header-floating-circle-nav {
    min-width: 0;
}

.sb-header-floating-circle-nav .sb-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: row-reverse;
}

.sb-header-floating-circle-nav-left .sb-menu {
    justify-content: flex-end;
}

.sb-header-floating-circle-nav-right .sb-menu {
    justify-content: flex-start;
}

.sb-header-floating-circle-nav .sb-menu > li {
    margin: 0;
    position: relative;
}

/* plain items — no children */
.sb-header-floating-circle-nav .sb-menu > li > a {
    font: inherit;
    color: var(--sb-color-text, #111);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 5px;
    display: block;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    transition: background 0.2s ease, color 0.2s ease;
}

.sb-header-floating-circle-nav .sb-menu > li > a:hover {
    color: var(--sb-color-link, #2563eb);
    background: var(--sb-color-bg-alt, #f9fafb);
}

.sb-header-floating-circle-nav .sb-menu > li.current > a {
    color: var(--sb-color-link, #2563eb);
}

/* items WITH children: label + caret are two independent controls that
   share one visual pill. The label keeps its own href — clicking it
   navigates like any normal link. Only the caret opens the mega panel. */
.sb-item-group {
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.sb-item-group:hover,
.sb-item-group:focus-within {
    background: var(--sb-color-bg-alt, #f9fafb);
}

.sb-parent-link {
    font: inherit;
    color: var(--sb-color-text, #111);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 5px 9px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    transition: color 0.2s ease;
}

.sb-item-group:hover > .sb-parent-link,
li.sb-mega-active .sb-parent-link {
    color: var(--sb-color-link, #2563eb);
}

.sb-trigger {
    display: flex;
    align-items: center;
    padding: 9px 12px 9px 3px;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

.sb-header-floating-circle-nav .sb-menu > li > a:focus-visible,
.sb-parent-link:focus-visible,
.sb-trigger:focus-visible,
.sb-header-floating-circle-brand a:focus-visible {
    outline: 2px solid var(--sb-color-link, #2563eb);
    outline-offset: 2px;
    border-radius: 8px;
}

.sb-trigger-caret {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

li.sb-mega-active .sb-trigger-caret {
    transform: rotate(180deg);
}

/* mega-grid-data is the raw source markup, hidden until JS moves its
   contents into the shared mega panel */
.sb-mega-grid-data[hidden] {
    display: none;
}

/* ===================================================================
   BRAND / LOGO
   =================================================================== */

.sb-header-floating-circle-brand {
    margin: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.sb-header-floating-circle-brand a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px !important;
    min-width: 160px !important;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, width 0.3s ease, min-width 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sb-header-floating-circle.scrolled .sb-header-floating-circle-brand a {
    width: 140px !important;
    min-width: 140px !important;
}

.sb-header-floating-circle-brand a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.sb-header-floating-circle-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sb-header-floating-circle-brand span {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    font-family: var(--sb-font-heading, sans-serif);
    text-align: center;
}

/* the signature detail: a hairline that grows from the logo down
   toward the mega panel when it's open */
.sb-mega-connector {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 1px;
    height: 0;
    background: var(--sb-color-border, #e5e7eb);
    transition: height 0.25s ease;
    pointer-events: none;
}

.sb-header-floating-circle.sb-mega-open .sb-mega-connector {
    height: 16px;
    background: var(--sb-color-link, #2563eb);
}

/* ===================================================================
   MEGA PANEL — one shared surface, aligned to the header capsule's own
   centering (same max-width/side padding) so edges always line up.
   Height animates via grid-template-rows: no JS measuring needed.
   =================================================================== */

.sb-mega-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.28);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 998;
}

.sb-mega-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sb-mega-shell {
    position: fixed;
    left: 20px;
    right: 20px;
    max-width: 1400px;
    margin-inline: auto;
    top: calc(var(--sb-header-h, 88px) + 12px);
    z-index: 999;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    pointer-events: none;
}

.sb-mega-shell.is-open {
    grid-template-rows: 1fr;
    pointer-events: auto;
}

.sb-mega-shell-inner {
    overflow: hidden;
}

.sb-mega-panel {
    background: var(--sb-color-bg, #fff);
    border: 2px solid var(--sb-color-border, #e5e7eb);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    padding: 24px 28px;
    margin-top: 4px;
}

.sb-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px 28px;
}

.sb-mega-grid a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--sb-color-text, #111);
    font-size: 14px;
    line-height: 1.4;
    transition: background 0.15s ease, color 0.15s ease;
}

.sb-mega-grid a:hover,
.sb-mega-grid a:focus-visible {
    background: var(--sb-color-bg-alt, #f9fafb);
    color: var(--sb-color-link, #2563eb);
}

.sb-mega-grid a:focus-visible {
    outline: 2px solid var(--sb-color-link, #2563eb);
    outline-offset: -2px;
}

/* View All button */
.sb-floating-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: 8px;
    max-width: 300px;
    margin: 0 auto;
}

.sb-floating-view-all {
    width: 32px;
    height: 22px;
}

.sb-floating-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-floating-view-all svg {
    flex-shrink: 0;
}

.sb-floating-view-all span {
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* ===================================================================
   MOBILE — burger + accordion, same component, same tokens
   =================================================================== */

.sb-header-floating-circle-toggle {
    display: none;
}

.sb-header-floating-circle-mobile-menu {
    display: none;
}

@media (max-width: 968px) {
    .sb-header-floating-circle {
        top: 0;
        margin: 0;
        max-width: 100%;
        padding: 0;
    }

    .sb-header-floating-circle-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 16px 20px;
        gap: 16px;
    }

    .sb-header-floating-circle-nav,
    .sb-mega-backdrop,
    .sb-mega-shell {
        display: none !important;
    }

    .sb-header-floating-circle-brand {
        order: 2 !important;
        margin: 0;
    }

    .sb-header-floating-circle-brand a {
        width: 150px !important;
        min-width: 150px !important;
    }

    .sb-header-floating-circle-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 48px;
        height: 48px;
        background: var(--sb-color-link, #2563eb) !important;
        border: none !important;
        border-radius: 50% !important;
        cursor: pointer;
        padding: 0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        transition: background 0.2s ease !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        position: relative;
        order: 1 !important;
        flex-shrink: 0 !important;
        font-size: 0 !important;
        line-height: 1 !important;
        margin: 0 !important;
    }

    .sb-header-floating-circle-toggle:hover {
        background: var(--sb-color-accent, #1e40af) !important;
    }

    .sb-header-floating-circle-toggle:focus-visible {
        outline: 2px solid var(--sb-color-text, #111);
        outline-offset: 3px;
    }

    .sb-header-floating-circle-toggle span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background: #ffffff !important;
        transition: transform 0.3s ease, opacity 0.3s ease !important;
        border-radius: 2px !important;
        flex-shrink: 0 !important;
    }

    .sb-header-floating-circle-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .sb-header-floating-circle-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .sb-header-floating-circle-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .sb-header-floating-circle-mobile-menu {
        display: block;
        max-height: 0;
        overflow: hidden;
        background: var(--sb-color-bg, #fff);
        transition: max-height 0.3s ease;
        border-bottom: 1px solid transparent;
    }

    .sb-header-floating-circle-mobile-menu.is-open {
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        border-bottom-color: var(--sb-color-border, #e5e7eb);
    }

    .sb-header-floating-circle-mobile-menu .sb-menu {
        list-style: none;
        flex-direction: column;
        align-items: stretch;
        display: flex;
        padding: 12px 20px 20px;
        margin: 0;
        gap: 0;
    }

    .sb-header-floating-circle-mobile-menu .sb-menu > li {
        margin: 0;
        border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
    }

    .sb-header-floating-circle-mobile-menu .sb-menu > li:last-child {
        border-bottom: none;
    }

    .sb-header-floating-circle-mobile-menu .sb-menu > li > a {
        width: 100%;
        color: var(--sb-color-text, #111);
        font-size: 16px;
        font-weight: 600;
        padding: 15px 0;
        display: block;
        max-width: none;
    }

    .sb-header-floating-circle-mobile-menu .sb-item-group {
        width: 100%;
        justify-content: space-between;
        border-radius: 0;
    }

    .sb-header-floating-circle-mobile-menu .sb-item-group:hover,
    .sb-header-floating-circle-mobile-menu .sb-item-group:focus-within {
        background: none;
    }

    .sb-header-floating-circle-mobile-menu .sb-parent-link {
        font-size: 16px;
        padding: 15px 0;
        flex: 1;
    }

    .sb-header-floating-circle-mobile-menu .sb-trigger {
        padding: 15px 4px 15px 12px;
    }

    .sb-mobile-submenu {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.25s ease;
    }

    .sb-mobile-submenu-inner {
        overflow: hidden;
    }

    li.sb-mega-active > .sb-mobile-submenu {
        grid-template-rows: 1fr;
    }

    .sb-mobile-submenu .sb-mega-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        padding: 2px 0 14px;
        gap: 2px 20px;
        max-height: calc(3 * 44px);
        overflow-y: auto;
    }

    .sb-mobile-submenu .sb-mega-grid::-webkit-scrollbar {
        width: 6px;
    }

    .sb-mobile-submenu .sb-mega-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .sb-mobile-submenu .sb-mega-grid::-webkit-scrollbar-thumb {
        background: var(--sb-color-link, #2563eb);
        border-radius: 10px;
    }

    .sb-mobile-submenu .sb-mega-grid a {
        font-size: 14.5px;
        color: var(--sb-color-muted, #6b7280);
        padding: 10px 10px 10px 4px;
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sb-header-floating-circle,
    .sb-header-floating-circle-inner,
    .sb-header-floating-circle-brand a,
    .sb-mega-connector,
    .sb-mega-backdrop,
    .sb-mega-shell,
    .sb-trigger-caret,
    .sb-header-floating-circle-mobile-menu,
    .sb-mobile-submenu {
        transition: none !important;
    }
}

body.sb-site button {
    background: var(--sb-color-button-bg, linear-gradient(135deg, var(--sb-color-link, #2563eb) 0%, var(--sb-color-accent, #1e40af) 100%));
    color: var(--sb-color-button-text, #ffffff);
    border: none;
    padding: 4px 12px!important;
    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;
}

h1 {
    margin: 0 !important;
}

ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 0em;
    margin-block-end: 0em;
    padding-inline-start: 0px;
    unicode-bidi: isolate;
}

.sb-site-content {
        padding: 0px 20px;
}


/* ===== Footer variant: vort-folio ===== */
/* ==========================================================================
   Footer: Minimal Editorial — скруглённые верхние углы, токены темы
   ========================================================================== */
.sb-footer-min {
  position: relative;
  margin-top: 96px;
  background: var(--sb-color-bg-alt);
  border-top: 1px solid var(--sb-color-border);
  border-radius: 28px 28px 0 0; /* закруглённые верхние углы */
  box-shadow: 0 -12px 40px -18px
    color-mix(in srgb, var(--sb-color-text) 14%, transparent);
  width: calc(100% - 20px);
  margin: 0 auto;
}

.sb-footer-min-inner {
  max-width: var(--sb-content-max-width);
  margin: 0 auto;
  padding: 64px 24px 28px;
}

/* ==========================================================================
   Сетка колонок
   ========================================================================== */
.sb-footer-min-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px 40px;
}

/* ==========================================================================
   Колонка бренда
   ========================================================================== */
.sb-footer-min-name {
  font-family: var(--sb-font-heading);
  font-size: calc(var(--sb-font-size) * 1.35);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sb-color-text);
}

.sb-footer-min-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.sb-footer-min-name a:hover {
  color: var(--sb-color-link-hover);
}

/* Акцентное слово — маркер, как в хедере */
.sb-footer-min-name-accent {
  background: var(--sb-color-accent);
  padding: 0.02em 0.22em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sb-footer-min-tagline {
  margin: 12px 0 0;
  max-width: 30ch;
  color: var(--sb-color-muted);
  font-size: calc(var(--sb-font-size) * 0.95);
}

/* ==========================================================================
   Заголовки колонок (капс + вольт-подчёркивание)
   ========================================================================== */
.sb-footer-min-heading {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-family: var(--sb-font-heading);
  font-size: calc(var(--sb-font-size) * 0.78);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sb-color-text);
  position: relative;
}

.sb-footer-min-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--sb-color-accent);
}

/* ==========================================================================
   Списки ссылок (sb-menu / min-list / bs-list — единый стиль)
   ========================================================================== */
.sb-footer-min .sb-menu,
.sb-footer-min-list,
.sb-footer-bs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  justify-items: start;
}

.sb-footer-min .sb-menu a,
.sb-footer-min-list a,
.sb-footer-bs-list a {
  display: inline-block;
  padding: 2px 6px;
  margin-left: -6px; /* компенсация, чтобы текст не «прыгал» по горизонтали */
  border-radius: 5px;
  color: var(--sb-color-muted);
  text-decoration: none;
  font-size: calc(var(--sb-font-size) * 0.95);
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

/* Hover — подсветка маркером, как в хедере */
.sb-footer-min .sb-menu a:hover,
.sb-footer-min-list a:hover,
.sb-footer-bs-list a:hover {
  color: var(--sb-color-link-hover);
  background: color-mix(in srgb, var(--sb-color-accent) 30%, transparent);
}

.sb-footer-min .sb-menu a:focus-visible,
.sb-footer-min-list a:focus-visible,
.sb-footer-bs-list a:focus-visible {
  outline: 2px solid var(--sb-color-link);
  outline-offset: 2px;
}

/* ==========================================================================
   Copyright
   ========================================================================== */
.sb-footer-min-copyright {
  margin-top: 56px;
  padding: 20px 0 8px;
  border-top: 1px solid
    color-mix(in srgb, var(--sb-color-border) 70%, transparent);
  text-align: center;
  color: var(--sb-color-muted);
  font-size: calc(var(--sb-font-size) * 0.85);
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 992px) {
  .sb-footer-min-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
}

@media (max-width: 576px) {
  .sb-footer-min-inner {
    padding-top: 48px;
  }

  .sb-footer-min-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sb-footer-min-tagline {
    max-width: none;
  }
}


/* ===== 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: overlay-center ===== */
/* Hero variant: overlay-center — full-width image, dark overlay, centred text. */
html body.sb-site { overflow-x: clip; }
.sb-site .sb-hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100vw;
    min-height: 460px;
    margin: 0 calc(50% - 50vw) 40px;
    overflow: hidden;
    color: #fff;
    background: var(--sb-color-accent, #1e3a8a);
}
.sb-site .sb-hero .sb-hero-media { position: absolute; inset: 0; }
.sb-site .sb-hero .sb-hero-media img {
    width: 100%; height: 100%; max-height: none;
    object-fit: cover; margin: 0; border-radius: 0;
}
.sb-site .sb-hero .sb-hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.62) 100%);
}
.sb-site .sb-hero .sb-hero-inner {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 24px;
    text-align: center;
}
.sb-site .sb-hero .sb-hero-label {
    display: inline-block;
    margin: 0 0 16px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--sb-color-accent, #2563eb);
    color: var(--sb-color-bg, #fff);
    font-size: .76em;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.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-subtitle {
    margin: 0 auto 22px;
    max-width: 680px;
    font-size: 1.15em;
    line-height: 1.55;
    color: rgba(255, 255, 255, .9);
}
.sb-site .sb-hero .sb-hero-fact {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    max-width: 620px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    background: rgba(0, 0, 0, .28);
    text-align: left;
}
.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: 380px; }
    .sb-site .sb-hero .sb-hero-inner { padding: 40px 18px; }
}

.tc-s1-col-logo img, .tc-fb-logo img{box-shadow: none !important; filter: none !important}