:root {
    --bg: #050505;
    --bg-alt: #0c0c0c;
    --fg: #ffffff;
    --muted: #888888;
    --dim: #444444;
    --line: #242424;
    --font-head: 'Unbounded', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
}

body {
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.45;
    overflow-x: hidden;
    padding-bottom: 40px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ВЕРХНЯЯ ТЕХНИЧЕСКАЯ ПАНЕЛЬ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 240px 1fr auto 240px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.topbar-cell {
    padding: 18px 24px;
    border-right: 1px solid var(--line);
    display: flex;
    align-items: center;
}

.brand-cell {
    gap: 12px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.14em;
}

.logo-svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.meta-cell {
    color: var(--muted);
    letter-spacing: 0.2em;
    font-size: 0.72rem;
}

.nav-cell {
    gap: 28px;
}

.nav-cell a {
    color: var(--muted);
    transition: color 0.15s;
}

.nav-cell a:hover {
    color: var(--fg);
}

.cta-cell {
    border-right: none;
    justify-content: space-between;
    background: var(--fg);
    color: var(--bg);
    font-weight: 700;
    transition: background 0.15s, color 0.15s;
}

.cta-cell:hover {
    background: #cccccc;
}

/* ОСНОВНОЙ КАРКАС */
.layout-frame {
    max-width: 1440px;
    margin: 0 auto;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

/* HERO СЕКЦИЯ */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 440px;
    border-bottom: 1px solid var(--line);
}

.hero-main {
    padding: 64px 48px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-kicker {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-bottom: 48px;
}

.hero-display {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(3.5rem, 9.5vw, 8.5rem);
    line-height: 0.92;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 20px 0 36px;
}

.hero-subline {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    max-width: 640px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.hero-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-alt);
}

.hero-side-top {
    padding: 48px 36px;
}

.emblem-box {
    width: 84px;
    height: 84px;
    border: 1px solid var(--line);
    padding: 16px;
    margin-bottom: 32px;
    background: var(--bg);
}

.manifesto {
    font-size: 0.98rem;
    color: #cccccc;
    line-height: 1.6;
}

.hero-action-bar {
    border-top: 1px solid var(--line);
    padding: 28px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--fg);
    color: var(--bg);
    transition: padding 0.2s ease, background 0.15s ease;
}

.hero-action-bar:hover {
    padding-left: 44px;
    background: #dcdcdc;
}

.action-icon {
    font-family: var(--font-mono);
    font-size: 1.3rem;
}

/* БЕГУЩАЯ СТРОКА */
.marquee-wrap {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    padding: 14px 0;
    white-space: nowrap;
}
.marquee-track {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--muted);
    animation: marquee 24s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* РАЗДЕЛЫ С ЛЕВОЙ КОЛОНКОЙ */
.split-section {
    display: grid;
    grid-template-columns: 340px 1fr;
    border-bottom: 1px solid var(--line);
}

.section-sidebar {
    border-right: 1px solid var(--line);
    padding: 48px 36px;
    background: var(--bg);
}

.sticky-box {
    position: sticky;
    top: 96px;
}

.sec-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    display: block;
    margin-bottom: 14px;
}

.sec-title {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 20px;
}

.sec-note {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
}

.section-body {
    display: flex;
    flex-direction: column;
}

/* 01. МАТРИЦА САЙТОВ */
.web-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.matrix-cell {
    padding: 40px 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 390px;
    transition: background 0.15s ease, color 0.15s ease;
}

.matrix-cell:last-child {
    border-right: none;
}

.cell-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.cell-idx {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--muted);
}

.cell-price {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
}

.cell-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.cell-lead {
    font-size: 0.94rem;
    margin-bottom: 16px;
}

.cell-spec {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 32px;
}

.cell-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
}

/* Жёсткая инверсия цвета при наведении */
.matrix-cell:hover {
    background: var(--fg);
    color: var(--bg);
}

.matrix-cell:hover .cell-idx,
.matrix-cell:hover .cell-spec {
    color: #333333;
}

.matrix-cell:hover .cell-head,
.matrix-cell:hover .cell-foot {
    border-color: #cccccc;
}

/* Полоса доп. страницы */
.addon-strip {
    padding: 26px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-alt);
    transition: background 0.15s, color 0.15s;
}

.addon-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.addon-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 8px;
    border: 1px solid var(--line);
    color: var(--muted);
}

.addon-name {
    font-weight: 600;
    font-size: 1rem;
}

.addon-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.addon-cost {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
}

.addon-cta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
}

.addon-strip:hover {
    background: var(--fg);
    color: var(--bg);
}

.addon-strip:hover .addon-tag {
    border-color: var(--bg);
    color: var(--bg);
}

/* 02. ТАБЛИЦА БОТОВ (LEDGER) */
.ledger-head {
    display: flex;
    justify-content: space-between;
    padding: 18px 32px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    background: var(--bg-alt);
}
.ledger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 32px;
    border-bottom: 1px solid var(--line);
    transition: background 0.12s ease, color 0.12s ease, padding-left 0.2s ease;
}

.ledger-row:last-child {
    border-bottom: none;
}

.row-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.row-code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}

.row-title {
    font-size: 1.08rem;
    font-weight: 500;
}

.row-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.row-val {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
}

.row-go {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}

.ledger-row:hover {
    background: var(--fg);
    color: var(--bg);
    padding-left: 42px;
}

.ledger-row:hover .row-code,
.ledger-row:hover .row-go {
    color: var(--bg);
}

/* 03. СЕТКА ТЕХПОДДЕРЖКИ */
.support-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.sup-box {
    padding: 36px 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    transition: background 0.15s, color 0.15s;
}

.sup-box:nth-child(2n) {
    border-right: none;
}

.sup-box:nth-last-child(-n+2) {
    border-bottom: none;
}

.sup-top {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}

.sup-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 20px 0;
}

.sup-price {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
}

.sup-box:hover {
    background: var(--fg);
    color: var(--bg);
}

.sup-box:hover .sup-top {
    color: var(--bg);
}

/* ФИНАЛЬНЫЙ БРУТАЛИСТСКИЙ CTA */
.bottom-cta {
    border-bottom: 1px solid var(--line);
}

.mega-contact {
    display: block;
    padding: 56px 48px;
    background: var(--bg);
    transition: background 0.15s, color 0.15s;
}

.mega-top {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 20px;
}

.mega-MainText {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5.5vw, 4.8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
}

.mega-contact:hover {
    background: var(--fg);
    color: var(--bg);
}

.mega-contact:hover .mega-top {
    color: var(--bg);
}

/* ФУТЕР */
.footer-bar {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 32px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--muted);
}

/* АДАПТИВ ПОД ТЕЛЕФОНЫ И ПЛАНШЕТЫ */
@media (max-width: 1080px) {
    .topbar {
        grid-template-columns: 1fr auto;
    }
    .meta-cell,
    .nav-cell {
        display: none;
    }
    .hero-grid,
    .split-section,
    .web-matrix,
    .support-matrix {
        grid-template-columns: 1fr;
    }
    .hero-main,
    .section-sidebar,
    .matrix-cell,
    .sup-box {
        border-right: none;
    }
    .section-sidebar {
        border-bottom: 1px solid var(--line);
        padding: 32px 24px;
    }
    .hero-main {
        padding: 40px 24px;
    }
}

@media (max-width: 640px) {
    .ledger-row,
    .addon-strip,
    .footer-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .row-right {
        width: 100%;
        justify-content: space-between;
    }
}
