/* ═══════════════════════════════════════════
   ПЕРЕМЕННЫЕ
═══════════════════════════════════════════ */
:root {
    --bg-dark:       #0b1220;
    --bg-mid:        #111827;
    --bg-card:       #1a2640;
    --bg-card-hover: #1e2d4a;
    --primary:       #38bdf8;
    --primary-hover: #0ea5e9;
    --primary-dim:   rgba(56, 189, 248, 0.12);
    --accent:        #818cf8;
    --text-main:     #e8f0fe;
    --text-body:     #c8d5e8;
    --text-dim:      #7a93b4;
    --border:        rgba(56, 189, 248, 0.12);
    --border-strong: rgba(56, 189, 248, 0.25);
    --radius-sm:     6px;
    --radius-md:     10px;
    --radius-lg:     16px;
}

/* ═══════════════════════════════════════════
   СБРОС И БАЗА
═══════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-body);
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   КОНТЕЙНЕР
═══════════════════════════════════════════ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
}

/* ═══════════════════════════════════════════
   ТИПОГРАФИКА
═══════════════════════════════════════════ */
h1, h2, h3, h4, h5 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(28px, 5vw, 48px); margin-bottom: 20px; }
h2 { font-size: clamp(22px, 3.5vw, 34px); margin-bottom: 16px; }
h3 { font-size: clamp(18px, 2.5vw, 24px); margin-bottom: 12px; }
h4 { font-size: 18px; margin-bottom: 10px; }

p {
    color: var(--text-body);
    margin-bottom: 1.1em;
    line-height: 1.8;
}

p:last-child { margin-bottom: 0; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--primary-hover); }

strong { color: var(--text-main); font-weight: 600; }

/* ═══════════════════════════════════════════
   СЕКЦИИ КОНТЕНТА
═══════════════════════════════════════════ */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--primary);
    border-radius: 4px;
}

.section-lead {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 40px;
    padding-left: 16px;
}

/* Разделитель между секциями */
.section + .section {
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   PROSE (статейный текст)
═══════════════════════════════════════════ */
.prose {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-body);
}

.prose p {
    margin-bottom: 1.3em;
    color: var(--text-body);
}

.prose h2 {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-main);
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.prose h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: 2em;
    margin-bottom: 0.5em;
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.header {
    background: rgba(11, 18, 32, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo a {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.logo span { color: var(--primary); }

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ═══════════════════════════════════════════
   КНОПКИ
═══════════════════════════════════════════ */
.btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: #05101f;
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #05101f;
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--text-main);
    border: 1px solid var(--border-strong);
    background: transparent;
}
.btn-secondary:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
}

.btn-large {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    padding: 16px 44px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.3);
    transition: all 0.25s ease;
}
.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(56, 189, 248, 0.4);
    color: #fff;
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
    text-align: center;
    padding: 90px 0 80px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56,189,248,0.07) 0%, transparent 70%),
        var(--bg-mid);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(99,102,241,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero h1 {
    margin-bottom: 18px;
}

.hero .hero-sub {
    color: var(--text-dim);
    font-size: clamp(16px, 2vw, 19px);
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* ═══════════════════════════════════════════
   SLOTS GRID
═══════════════════════════════════════════ */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    margin: 36px 0;
}

.slot-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
}

.slot-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.slot-card img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.slot-card:hover img { transform: scale(1.04); }

/* ═══════════════════════════════════════════
   КАРТОЧКИ (общий стиль)
═══════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    transition: border-color 0.2s, background 0.2s;
}

.card:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

/* ═══════════════════════════════════════════
   СПИСКИ
═══════════════════════════════════════════ */
ul, ol {
    list-style: none;
    margin: 1.2em 0;
    padding: 0;
}

ul li, ol li {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 11px 18px;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
    transition: background 0.2s, border-color 0.2s;
}

ul li:hover, ol li:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
    border-left-color: var(--primary-hover);
}

/* ═══════════════════════════════════════════
   ТАБЛИЦЫ
═══════════════════════════════════════════ */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin: 28px 0;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    font-size: 0.93rem;
    min-width: 480px;
}

table thead tr {
    background: rgba(56, 189, 248, 0.08);
}

table th {
    padding: 14px 18px;
    text-align: left;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-bottom: 1px solid var(--border-strong);
    white-space: nowrap;
}

table td {
    padding: 13px 18px;
    color: var(--text-body);
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
    vertical-align: middle;
}

table tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr:hover td {
    background: rgba(56, 189, 248, 0.04);
}

/* ═══════════════════════════════════════════
   INFO БЛОКИ (highlight / notice)
═══════════════════════════════════════════ */
.notice {
    background: var(--primary-dim);
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
    margin: 24px 0;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
    background: #060d1a;
    padding: 56px 0 40px;
    margin-top: 80px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 13px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
    background: var(--primary-dim);
}

.footer .disclaimer {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 680px;
}

.footer .license {
    font-size: 11px;
    color: #3a5070;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   АДАПТИВ
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    body { font-size: 15px; }

    .section { padding: 48px 0; }

    .hero { padding: 60px 0 52px; }

    .header-flex {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .btn-large {
        padding: 14px 32px;
        font-size: 16px;
    }

    .card { padding: 18px 20px; }

    .prose h2 { margin-top: 1.8em; }
}

@media (max-width: 480px) {
    .slots-grid { grid-template-columns: repeat(2, 1fr); }

    table th, table td { padding: 10px 12px; }

    .btn { padding: 9px 16px; font-size: 13px; }
}