/*
Theme Name: Site Builder Generated Theme
Description: Сгенерирована плагином Site Builder. Шапка: split-flap-board, футер: columns, стиль: graphite-mono, рейтинг: grid, hero: split.
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 ===== */

/* Graphite Mono — тёмная монохромная схема, единственный янтарный акцент */
:root {
    --sb-color-bg:              #171717;    /* graphite */
    --sb-color-bg-alt:          #212121;    /* lighter graphite */
    --sb-color-text:            #ededed;    /* near-white */
    --sb-color-muted:           #8a8a8a;    /* neutral gray */
    --sb-color-link:            #f59e0b;    /* amber */
    --sb-color-link-hover:      #fbbf24;    /* brighter amber */
    --sb-color-border:          #2e2e2e;    /* subtle separator */
    --sb-color-accent:          #ededed;    /* white accent */

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

body.sb-site {
    background: var(--sb-color-bg);
    color: var(--sb-color-text);
    font-family: var(--sb-font-body);
    font-size: var(--sb-font-size);
    line-height: var(--sb-line-height);
}
body.sb-site h1, body.sb-site h2, body.sb-site h3, body.sb-site h4 {
    font-family: var(--sb-font-heading);
    color: var(--sb-color-text);
    font-weight: 700;
    letter-spacing: -0.015em;
}
body.sb-site a {
    color: var(--sb-color-link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
body.sb-site a:hover {
    color: var(--sb-color-link-hover);
    border-bottom-color: currentColor;
}
body.sb-site strong { color: var(--sb-color-accent); }
body.sb-site blockquote {
    border-left: 3px solid var(--sb-color-link);
    padding: 12px 20px;
    background: var(--sb-color-bg-alt);
    border-radius: 0 6px 6px 0;
    color: var(--sb-color-muted);
}
body.sb-site code {
    background: var(--sb-color-bg-alt);
    color: var(--sb-color-link);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--sb-color-border);
    font-size: 0.9em;
    font-family: ui-monospace, 'SF Mono', Monaco, monospace;
}


/* ===== Header variant: split-flap-board ===== */
/* templates/theme/headers/split-flap-board.css */

.sb-header-split-flap-board {
    position: relative;
    z-index: 1000;
    background: #111;
    border-bottom: 3px solid var(--sb-color-link, #f5a623);
}

.sb-header-split-flap-board a {
    text-decoration: none;
}

.sb-header-split-flap-board a::after {
    display: none !important;
    content: none !important;
}

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

/* ===== Flap tile mechanics =====
   Each character becomes a small "tile" that visually consists of a
   top half and a bottom half meeting at a hinge line, mimicking a
   split-flap (Solari) display. On reveal/hover, .is-flipping triggers
   a quick 3D rotation of the top half before settling on the target
   character.
*/
.sb-flap-word {
    display: inline-flex;
    gap: 2px;
    font-family: var(--sb-font-heading, 'Courier New', monospace);
    flex-wrap: wrap;
}

.sb-flap-word-brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.sb-flap-tile {
    position: relative;
    display: inline-block;
    width: 0.62em;
    height: 1.08em;
    background: #1c1c1c;
    border-radius: 2px;
    color: #f4f4f0;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    perspective: 60px;
}

.sb-flap-tile.sb-flap-tile-space {
    background: transparent;
    box-shadow: none;
}

.sb-flap-tile::before {
    /* hinge line */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3;
}

.sb-flap-tile-char {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    line-height: 1;
    backface-visibility: hidden;
}

.sb-flap-tile-char-current {
    z-index: 1;
}

.sb-flap-tile-char-incoming {
    z-index: 2;
    transform: rotateX(-90deg);
    transform-origin: 50% 100%;
    opacity: 0;
}

.sb-flap-tile.is-flipping .sb-flap-tile-char-current {
    animation: sb-flap-out 0.16s ease-in forwards;
}

.sb-flap-tile.is-flipping .sb-flap-tile-char-incoming {
    animation: sb-flap-in 0.16s ease-out 0.14s forwards;
}

@keyframes sb-flap-out {
    to {
        transform: rotateX(90deg);
        transform-origin: 50% 0%;
        opacity: 0;
    }
}

@keyframes sb-flap-in {
    from {
        transform: rotateX(-90deg);
        transform-origin: 50% 100%;
        opacity: 0;
    }
    to {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

/* Brand tiles slightly larger */
.sb-flap-word-brand .sb-flap-tile {
    width: 0.66em;
    height: 1.12em;
}

/* ===== Nav ===== */
.sb-header-flap-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Logo image size */
.sb-header-flap-brand img {
    max-height: 40px;
    width: auto;
    display: block;
}

.sb-header-flap-brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

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

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

.sb-flap-link,
.sb-flap-pill-link {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 8px;
    color: #d8d8d2;
    transition: color 0.2s ease;
    min-height: 36px;
}

.sb-flap-link:hover .sb-flap-word .sb-flap-tile,
.sb-flap-pill-link:hover .sb-flap-word .sb-flap-tile {
    box-shadow: inset 0 0 0 1px var(--sb-color-link, #f5a623);
}

.sb-flap-item.current-menu-item .sb-flap-tile {
    box-shadow: inset 0 0 0 1px var(--sb-color-link, #f5a623);
}

.sb-flap-item .sb-flap-word {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

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

.sb-flap-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 3px;
    background: none;
    border: none;
    cursor: pointer;
    color: #8a8a84;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

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

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

/* Dropdown: reads like an additional row added to the board */
.sb-flap-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    max-width: 560px;
    background: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--sb-color-link, #f5a623);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 999;
}

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

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

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

.sb-flap-dropdown-grid::-webkit-scrollbar-track {
    background: #111;
}

.sb-flap-dropdown-grid::-webkit-scrollbar-thumb {
    background: var(--sb-color-link, #f5a623);
}

.sb-flap-dropdown a {
    color: #d8d8d2;
    padding: 7px 8px;
    display: block;
    font-family: var(--sb-font-heading, 'Courier New', monospace);
    font-size: 11px;
    letter-spacing: 0.02em;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.08);
    transition: color 0.15s ease, background 0.15s ease;
}

.sb-flap-dropdown a:hover {
    color: var(--sb-color-link, #f5a623);
    background: rgba(245, 166, 35, 0.06);
}

/* View All button */
.sb-flap-view-all {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px !important;
    background: var(--sb-color-link, #f5a623) !important;
    color: #1c1c1c !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    grid-column: 1 / -1;
    margin-top: 4px;
    font-family: var(--sb-font-heading, 'Courier New', monospace) !important;
    font-size: 12.5px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

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

/* Mobile toggle */
.sb-header-flap-toggle {
    display: none;
    width: 34px;
    height: 34px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    flex-shrink: 0;
}

.sb-flap-toggle-line {
    display: block;
    width: 16px;
    height: 2px;
    background: #d8d8d2;
    transition: all 0.3s ease;
}

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

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

@media (max-width: 1200px) {
    .sb-flap-item .sb-flap-word {
        max-width: 250px;
    }
}

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

    .sb-flap-word-brand {
        font-size: 16px;
    }

    .sb-header-flap-brand img {
        max-height: 32px;
    }

    .sb-header-flap-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #111;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    }

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

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

    .sb-flap-item {
        border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
    }

    .sb-flap-link,
    .sb-flap-pill-link {
        height: auto;
        padding: 14px 4px;
    }

    .sb-flap-item .sb-flap-word {
        max-width: 100%;
    }

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

    .sb-flap-dropdown {
        position: relative;
        top: 0;
        transform: none;
        border: none;
        border-top: none;
        background: transparent;
        padding: 0 0 8px 8px;
        display: none;
    }

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

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

    /* Mobile: skip mechanical flip animation for perf, tiles render statically */
    .sb-flap-tile-char-incoming,
    .sb-flap-tile::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .sb-header-flap-inner {
        padding: 8px 16px;
    }

    .sb-flap-word-brand {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sb-flap-tile.is-flipping .sb-flap-tile-char-current,
    .sb-flap-tile.is-flipping .sb-flap-tile-char-incoming {
        animation: none !important;
    }
    .sb-flap-tile-char-incoming {
        display: none;
    }
}

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

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

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

/* ===== Footer variant: columns ===== */
/* columns — Колонки */
.sb-footer-columns { background: var(--sb-color-bg-alt, #f8f9fa); border-top: 1px solid var(--sb-color-border, #e5e7eb); padding: 40px 20px 20px; color: var(--sb-color-text); margin-top: 40px; } .sb-footer-columns .sb-footer-inner { max-width: var(--sb-content-max-width, 920px); margin: 0 auto; } .sb-footer-columns .sb-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; } .sb-footer-columns .sb-footer-col { font-size: 0.9em; } .sb-footer-columns .sb-footer-heading { margin: 0 0 12px; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sb-color-muted, #6b7280); font-weight: 600; } .sb-footer-columns .sb-footer-brand img { max-height: 40px; width: auto; margin-bottom: 8px; } .sb-footer-columns .sb-footer-brand-text { font-weight: 700; font-size: 1.1em; color: var(--sb-color-text); } .sb-footer-columns .sb-footer-tagline { margin: 6px 0 0; color: var(--sb-color-muted); font-size: 0.92em; line-height: 1.55; } .sb-footer-columns .sb-menu, .sb-footer-columns .sb-footer-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; } .sb-footer-columns .sb-menu a, .sb-footer-columns .sb-footer-info-list a { color: var(--sb-color-text); text-decoration: none; } .sb-footer-columns .sb-menu a:hover, .sb-footer-columns .sb-footer-info-list a:hover { color: var(--sb-color-link); text-decoration: underline; } .sb-footer-columns .sb-footer-copyright { padding-top: 18px; border-top: 1px solid var(--sb-color-border, #e5e7eb); color: var(--sb-color-muted, #6b7280); font-size: 0.85em; text-align: center; } @media (max-width: 700px) { .sb-footer-columns .sb-footer-grid { grid-template-columns: 1fr; gap: 24px; } }


/* ===== Operators variant: grid ===== */
/* Operators variant: grid — tiles, two per row on desktop. */
.sb-site .sb-operators .sb-operators-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.sb-site .sb-operators .sb-operator {
    position: relative;
    display: block;
    margin: 0;
    padding: 20px 18px 16px;
    border: 1px solid var(--sb-color-border, #e5e7eb);
    border-top: 4px solid var(--sb-color-accent, #2563eb);
    border-radius: 10px;
    background: var(--sb-color-bg-alt, #f8fafc);
    overflow: hidden;
}
.sb-site .sb-operators .sb-operator-rank {
    position: absolute;
    top: 6px;
    right: 12px;
    font-family: var(--sb-font-heading, inherit);
    font-size: 2.6em;
    font-weight: 900;
    line-height: 1;
    color: var(--sb-color-accent, #2563eb);
    opacity: .22;
}
.sb-site .sb-operators .sb-operator-body { position: relative; }
.sb-site .sb-operators .sb-operator-name {
    margin: 0 48px 12px 0;
    font-family: var(--sb-font-heading, inherit);
    font-size: 1.12em;
    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 { margin: 0 0 12px; padding: 0; }
.sb-site .sb-operators .sb-operator-fact {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px dashed var(--sb-color-border, #e5e7eb);
    font-size: .88em;
    line-height: 1.4;
}
.sb-site .sb-operators .sb-operator-fact dt {
    flex: 0 0 auto;
    margin: 0;
    font-weight: 600;
    color: var(--sb-color-muted, #6b7280);
}
.sb-site .sb-operators .sb-operator-fact dt::after { content: none; }
.sb-site .sb-operators .sb-operator-fact dd {
    margin: 0;
    text-align: right;
    color: var(--sb-color-text, inherit);
}
.sb-site .sb-operators .sb-operator-desc {
    margin: 0;
    font-size: .88em;
    line-height: 1.5;
    color: var(--sb-color-muted, #6b7280);
}
@media (max-width: 640px) {
    .sb-site .sb-operators .sb-operators-list { grid-template-columns: 1fr; }
}


/* ===== Heroes variant: split ===== */
/* Hero variant: split — text left, image right; colours follow the style. */
.sb-site .sb-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 36px;
    margin: 0 0 40px;
    padding: 8px 0 28px;
    border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
}
.sb-site .sb-hero .sb-hero-media { order: 2; }
.sb-site .sb-hero .sb-hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: none;
    object-fit: cover;
    margin: 0;
    border-radius: 16px;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}
.sb-site .sb-hero .sb-hero-inner { order: 1; max-width: none; margin: 0; padding: 0; }
.sb-site .sb-hero.sb-hero-noimg { grid-template-columns: minmax(0, 1fr); }
.sb-site .sb-hero .sb-hero-label {
    margin: 0 0 12px;
    font-size: .76em;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sb-color-accent, #2563eb);
}
.sb-site .sb-hero .sb-hero-title { margin: 0 0 14px; line-height: 1.15; }
.sb-site .sb-hero .sb-hero-subtitle {
    margin: 0 0 20px;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--sb-color-muted, inherit);
}
.sb-site .sb-hero .sb-hero-fact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 16px;
    border-left: 4px solid var(--sb-color-accent, #2563eb);
    border-radius: 0 10px 10px 0;
    background: var(--sb-color-bg-alt, #f8fafc);
}
.sb-site .sb-hero .sb-hero-fact-label {
    font-size: .74em; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--sb-color-muted, #6b7280);
}
.sb-site .sb-hero .sb-hero-fact-text { color: var(--sb-color-text, inherit); line-height: 1.45; }
@media (max-width: 760px) {
    .sb-site .sb-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .sb-site .sb-hero .sb-hero-media { order: 0; }
}

