/* ============================================
   SteelGiants — единый файл стилей для всех страниц
   Редактируйте здесь — изменения применятся везде
   ============================================ */

:root {
    --bg: #0b0d10;
    --panel: #12161c;
    --panel-light: #161c24;
    --text: #e8eef7;
    --muted: #b7c7d8;
    --accent: #3ba09e;
    --accent-strong: #4bc9c4;
    --border: #324252;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
    margin: 0;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    background-color: var(--bg);
    background-image:
        linear-gradient(180deg, rgba(6, 10, 15, 0.85), rgba(3, 6, 10, 0.92)),
        url('https://steelgiants.online/wp-content/uploads/2022/11/back-sli.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
    position: relative;
    margin-top: 16px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(140deg, rgba(17, 27, 38, 0.98), rgba(8, 14, 20, 0.92));
    border: 2px solid rgba(91, 229, 255, 0.25);
    overflow: visible;
    box-shadow: 0 30px 60px rgba(3, 8, 14, 0.6), 0 0 30px rgba(75, 201, 196, 0.08);
    z-index: 10;
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(260px 180px at 12% -10%, rgba(91, 229, 255, 0.35), transparent 60%),
        radial-gradient(240px 160px at 88% 0%, rgba(59, 160, 158, 0.3), transparent 55%),
        linear-gradient(120deg, transparent 0%, rgba(60, 170, 200, 0.18) 35%, transparent 70%),
        repeating-linear-gradient(90deg, rgba(75, 201, 196, 0.05) 0 1px, transparent 1px 120px),
        repeating-linear-gradient(0deg, rgba(75, 201, 196, 0.04) 0 1px, transparent 1px 120px);
    pointer-events: none;
}
.site-header::after {
    content: "";
    position: absolute;
    inset: -40% 0 auto -20%;
    height: 180px;
    background: linear-gradient(120deg, transparent, rgba(75, 201, 196, 0.12), transparent);
    transform: skewY(-6deg);
    animation: header-scan 12s linear infinite;
    pointer-events: none;
}
@keyframes header-scan {
    0% { transform: translateX(-30%) skewY(-6deg); opacity: 0; }
    25% { opacity: 0.6; }
    50% { transform: translateX(30%) skewY(-6deg); opacity: 0.4; }
    100% { transform: translateX(80%) skewY(-6deg); opacity: 0; }
}
.header-shell {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.header-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-transform: uppercase;
}
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    color: #0b1116;
    background: linear-gradient(140deg, #6ee7ff, #4bc9c4 65%, #2b7f7b);
    box-shadow: 0 10px 24px rgba(75, 201, 196, 0.35);
}
.brand-title { font-weight: 800; letter-spacing: 1.8px; }
.brand-subtitle { font-size: 11px; color: #b8c8d8; letter-spacing: 2px; }
.menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}
.menu-item { position: relative; }
.menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #d4e2ef;
    font-weight: 600;
}
.menu-link:hover,
.menu-item:hover > .menu-link {
    color: var(--text);
    border-color: rgba(91, 229, 255, 0.35);
    background: rgba(15, 22, 30, 0.6);
}
.menu-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 200px;
    padding: 8px;
    border-radius: 14px;
    border: 2px solid rgba(91, 229, 255, 0.35);
    background: rgba(5, 9, 14, 0.98);
    box-shadow: 0 18px 40px rgba(3, 8, 14, 0.7), 0 0 28px rgba(75, 201, 196, 0.18);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 5;
}
/* Невидимый «мост» между кнопкой и меню — курсор не проваливается */
.menu-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 12px;
}
.menu-item:hover .menu-dropdown,
.menu-dropdown:hover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.menu-dropdown a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: #eaf3fb;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(10, 16, 22, 0.7);
    border: 1px solid rgba(91, 229, 255, 0.12);
}
.menu-dropdown a:hover {
    color: var(--text);
    background: rgba(15, 22, 30, 0.9);
    border: 1px solid rgba(91, 229, 255, 0.35);
}
.burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(78, 98, 115, 0.4);
    background: rgba(10, 16, 22, 0.8);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}
.burger span {
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 2px;
    margin: 0;
    background: currentColor;
    border-radius: 999px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
/* Обёртка для горизонтального скролла кнопок на мобильных; на десктопе «прозрачна» */
.header-actions-scroll-wrap {
    display: contents;
}
.header-actions-scroll-btn {
    display: none;
}
.status-pill {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(75, 201, 196, 0.4);
    color: var(--accent-strong);
    font-size: 12px;
    background: rgba(59, 160, 158, 0.1);
}
/* Разделитель «Истоки | Наследие» в плашке джетов — тёмный, чтобы не сливался с цифрами */
#headerLiveJets .header-live-jets-sep {
    color: rgba(15, 23, 42, 0.92);
    font-weight: 800;
    margin: 0 0.2em;
    opacity: 0.95;
}

/* ---- Buttons, alerts ---- */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
    position: relative;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
    overflow: hidden;
}
.btn::before,
.btn::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(75, 201, 196, 0.45);
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn::before {
    top: 6px;
    left: 6px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 6px;
}
.btn::after {
    bottom: 6px;
    right: 6px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 6px;
}
.btn:hover::before,
.btn:hover::after {
    opacity: 0.9;
    transform: scale(1.04);
}
.btn-primary {
    background: var(--accent);
    color: #051012;
    box-shadow: 0 12px 24px rgba(59, 160, 158, 0.25);
}
.btn-primary:hover {
    background: var(--accent-strong);
    box-shadow: 0 14px 28px rgba(75, 201, 196, 0.28), 0 0 18px rgba(75, 201, 196, 0.18);
}
.btn-ghost {
    border-color: var(--border);
    color: var(--text);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 12px 20px rgba(75, 201, 196, 0.12), 0 0 14px rgba(75, 201, 196, 0.12);
}
.btn-secondary {
    background: #0e1319;
    border-color: var(--border);
    color: var(--text);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 12px 20px rgba(75, 201, 196, 0.12), 0 0 14px rgba(75, 201, 196, 0.12);
}
.alert {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13px;
    margin-bottom: 12px;
}
.alert-success {
    border-color: rgba(59, 160, 158, 0.4);
    color: var(--accent-strong);
    background: rgba(59, 160, 158, 0.08);
}
.alert-error {
    border-color: rgba(255, 105, 97, 0.4);
    color: #ff8c82;
    background: rgba(255, 105, 97, 0.08);
}

/* ---- Page panel (все внутренние страницы) ---- */
.page-panel {
    margin-top: 24px;
    padding: 24px;
    border-radius: 18px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(160deg, rgba(12, 18, 26, 0.96), rgba(18, 28, 38, 0.92));
    box-shadow: 0 26px 50px rgba(3, 8, 14, 0.6);
}
.page-panel h2 { margin-top: 0; }
.page-panel p { color: var(--muted); line-height: 1.7; }

/* ---- Page grid & cards (кабинет и др.) ---- */
.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.page-card {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(100, 140, 165, 0.35);
    background: rgba(10, 16, 22, 0.7);
}
.page-card h4 { margin: 0 0 8px; }
.page-card p { margin: 0; color: var(--muted); }

/* ---- Cabinet: статистика по серверам ---- */
.cabinet-intro {
    margin-top: 24px;
    margin-bottom: 8px;
}
.cabinet-title {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.cabinet-lead {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}
.cabinet-servers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 20px;
}
.cabinet-server-card {
    position: relative;
    padding: 22px;
    border-radius: 18px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(160deg, rgba(9, 14, 20, 0.98), rgba(16, 24, 34, 0.95));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.cabinet-server-card .panel-frame,
.cabinet-server-card .panel-corners,
.cabinet-server-card .panel-marks { pointer-events: none; }
.cabinet-server-card .panel-frame {
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    border: 1px solid rgba(75, 201, 196, 0.18);
}
.cabinet-server-card .panel-corners { position: absolute; inset: 0; }
.cabinet-server-card .panel-corners::before,
.cabinet-server-card .panel-corners::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(75, 201, 196, 0.5);
    opacity: 0.8;
}
.cabinet-server-card .panel-corners::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 10px;
}
.cabinet-server-card .panel-corners::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 10px;
}
.cabinet-server-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(75, 201, 196, 0.2);
}
.cabinet-server-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 20px;
    color: #061015;
    background: linear-gradient(140deg, #6ee7ff, #4bc9c4 60%, #2b7f7b);
    box-shadow: 0 8px 24px rgba(75, 201, 196, 0.35);
}
.cabinet-server-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.cabinet-server-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-strong);
}
.cabinet-server-body {
    display: grid;
    gap: 12px;
}
.cabinet-stat {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: baseline;
}
.cabinet-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}
.cabinet-stat-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}
.cabinet-stat-hero {
    color: var(--accent-strong);
    font-weight: 700;
}
.cabinet-stat-level {
    color: var(--accent-strong);
    font-variant-numeric: tabular-nums;
}
.cabinet-stat-jets .cabinet-stat-value {
    color: var(--accent-strong);
    font-weight: 700;
}
.cabinet-stat-muted {
    color: var(--muted) !important;
    font-weight: 500;
}
.cabinet-server-empty {
    padding: 8px 0;
    text-align: center;
}
.cabinet-server-empty-text {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
.cabinet-server-client-link {
    display: inline-block;
}

/* Склад героя (инвентарь) */
.cabinet-inventory {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(100, 140, 165, 0.25);
}
.cabinet-inventory-title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
}
.cabinet-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 48px));
    gap: 6px;
}
.cabinet-inventory-grid-fixed {
    grid-template-columns: repeat(5, 48px);
}
.cabinet-inventory-cell {
    position: relative;
    width: 48px;
    height: 48px;
    background: rgba(10, 16, 22, 0.8);
    border: 1px solid rgba(100, 140, 165, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cabinet-inventory-icon {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}
.cabinet-inventory-placeholder {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(55, 62, 72, 0.55), rgba(18, 22, 28, 0.92));
    border: 1px solid rgba(100, 110, 125, 0.45);
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.cabinet-inventory-placeholder-sg {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: rgba(140, 152, 168, 0.92);
    line-height: 1;
    text-shadow: none;
    font-family: inherit;
}
.cabinet-inventory-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
    min-width: 180px;
    max-width: 280px;
    padding: 10px 12px;
    background: rgba(12, 18, 26, 0.98);
    border: 1px solid rgba(75, 201, 196, 0.4);
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 20;
    pointer-events: none;
}
.cabinet-inventory-cell:hover .cabinet-inventory-tooltip {
    opacity: 1;
    visibility: visible;
}
.cabinet-inventory-cell-empty {
    opacity: 0.5;
}
.cabinet-inventory-code {
    font-size: 0.65rem;
    line-height: 1.2;
    color: var(--text);
    word-break: break-all;
    text-align: center;
    padding: 2px;
}
.cabinet-inventory-tooltip strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-strong);
}
.cabinet-inventory-tooltip-row {
    margin-top: 2px;
}
.cabinet-inventory-tooltip-row span {
    color: var(--muted);
}

.cabinet-actions {
    margin-top: 28px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.cabinet-actions-center {
    justify-content: center;
}

@media (max-width: 700px) {
    .cabinet-servers { grid-template-columns: 1fr; }
}

/* ---- Constitution page ---- */
.const-hero {
    position: relative;
    margin-bottom: 24px;
    padding: 24px;
    border-radius: 18px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(140deg, rgba(9, 13, 18, 0.94), rgba(20, 28, 36, 0.9));
    box-shadow: 0 24px 50px rgba(3, 8, 14, 0.55);
    overflow: hidden;
}
.const-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(240px 120px at 50% 0%, rgba(75, 201, 196, 0.12), transparent 70%),
                repeating-linear-gradient(90deg, rgba(75, 201, 196, 0.03) 0 1px, transparent 1px 100px);
    pointer-events: none;
}
.const-header {
    position: relative;
    z-index: 1;
    text-align: center;
}
.const-title {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.const-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-strong);
    background: linear-gradient(140deg, rgba(75, 201, 196, 0.2), rgba(59, 160, 158, 0.1));
    border: 1px solid rgba(75, 201, 196, 0.45);
    box-shadow: 0 0 20px rgba(75, 201, 196, 0.15);
    flex-shrink: 0;
}
.const-subtitle {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}
.const-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(100, 140, 165, 0.35);
    background: rgba(10, 16, 22, 0.6);
}
.const-nav a {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--muted);
    border: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.const-nav a:hover {
    color: var(--accent-strong);
    border-color: rgba(75, 201, 196, 0.4);
    background: rgba(59, 160, 158, 0.08);
}
.const-chapter-block {
    position: relative;
    margin-bottom: 20px;
    padding: 22px;
    border-radius: 16px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(160deg, rgba(12, 18, 26, 0.96), rgba(18, 28, 38, 0.92));
    box-shadow: 0 20px 40px rgba(3, 8, 14, 0.5);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.const-chapter-block:hover {
    box-shadow: 0 24px 48px rgba(3, 8, 14, 0.55), 0 0 24px rgba(75, 201, 196, 0.1);
    border-color: rgba(75, 201, 196, 0.55);
}
.const-chapter-block .panel-frame,
.const-chapter-block .panel-corners {
    position: absolute;
    pointer-events: none;
}
.const-chapter-block .panel-frame {
    inset: 12px;
    border-radius: 12px;
    border: 1px solid rgba(75, 201, 196, 0.18);
}
.const-chapter-block .panel-corners { inset: 0; }
.const-chapter-block .panel-corners::before,
.const-chapter-block .panel-corners::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(75, 201, 196, 0.45);
    opacity: 0.7;
}
.const-chapter-block .panel-corners::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 10px;
}
.const-chapter-block .panel-corners::after {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 10px;
}
.const-chapter-block .const-chapter {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 700;
    color: var(--accent-strong);
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(75, 201, 196, 0.3);
}
.const-chapter-block .const-section {
    margin: 18px 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.3px;
}
.const-chapter-block .const-art {
    margin: 0 0 12px;
    color: #c2d0de;
    line-height: 1.75;
    font-size: 14px;
}
.const-chapter-block .const-art strong { color: var(--text); }
.const-chapter-block .const-list {
    margin: 10px 0 16px;
    padding-left: 22px;
    color: #c2d0de;
    line-height: 1.8;
    font-size: 14px;
}
.const-chapter-block .const-list li { margin-bottom: 6px; }
.const-chapter-block .const-list li::marker { color: var(--accent-strong); }
.const-chapter-block .const-art a {
    color: var(--accent-strong);
    border-bottom: 1px dashed rgba(75, 201, 196, 0.5);
}
.const-chapter-block .const-art a:hover { color: #9ff0ff; }
.const-footer {
    margin-top: 28px;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(100, 140, 165, 0.35);
    background: rgba(10, 16, 22, 0.5);
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* ---- Start page: servers & steps ---- */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.server-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(100, 140, 165, 0.4);
    background: rgba(10, 16, 22, 0.7);
    overflow: hidden;
}
.server-card > p { flex: 0 0 auto; }
.server-card .server-list { flex: 1 1 auto; min-height: 0; }
.server-card-actions {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(75, 201, 196, 0.2);
    text-align: center;
}
.server-download-link {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
}
.server-download-link.btn-primary {
    box-shadow: 0 0 20px rgba(75, 201, 196, 0.4);
}
.server-download-link.btn-primary:hover {
    box-shadow: 0 0 24px rgba(75, 201, 196, 0.5), 0 0 40px rgba(75, 201, 196, 0.2);
}
.server-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(75, 201, 196, 0.12), transparent);
    transform: translateX(-120%);
    animation: card-glow 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes card-glow {
    0% { transform: translateX(-120%); opacity: 0; }
    45% { opacity: 0.35; }
    100% { transform: translateX(120%); opacity: 0; }
}
.server-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.server-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #061015;
    background: linear-gradient(140deg, #6ee7ff, #4bc9c4 65%, #2b7f7b);
    box-shadow: 0 10px 20px rgba(75, 201, 196, 0.35);
}
.server-title { margin: 0; font-size: 17px; font-weight: 700; }
.server-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.server-list {
    margin: 12px 0 0;
    padding-left: 18px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
}
.start-page-panel .server-card p {
    font-size: 15px;
    line-height: 1.65;
    color: #c2d0de;
}
.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}
.steps {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}
.step {
    position: relative;
    overflow: hidden;
    padding: 14px 18px 14px 44px;
    font-size: 15px;
    line-height: 1.55;
    border-radius: 12px;
    border: 1px solid rgba(100, 140, 165, 0.4);
    background: linear-gradient(160deg, rgba(10, 18, 26, 0.9), rgba(14, 22, 32, 0.8));
    box-shadow: 0 4px 16px rgba(3, 8, 14, 0.35), inset 0 1px 0 rgba(75, 201, 196, 0.05);
}
.step::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(75, 201, 196, 0.45);
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 6px;
    pointer-events: none;
}
.step::after {
    content: "";
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(75, 201, 196, 0.45);
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 6px;
    pointer-events: none;
}
.step:hover {
    border-color: rgba(75, 201, 196, 0.35);
    box-shadow: 0 6px 20px rgba(3, 8, 14, 0.4), 0 0 14px rgba(75, 201, 196, 0.08);
}
.step strong { color: var(--accent-strong); }

/* ---- Home: intro panel ---- */
.intro-panel {
    position: relative;
    margin-top: 18px;
    padding: 22px;
    border-radius: 18px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(140deg, rgba(9, 13, 18, 0.94), rgba(20, 28, 36, 0.9));
    box-shadow: 0 30px 60px rgba(3, 8, 14, 0.6);
    overflow: hidden;
    z-index: 1;
}
.intro-panel .panel-frame,
.hero-panel .panel-frame,
.news-main .panel-frame,
.news-list .panel-frame,
.card .panel-frame,
.start-page-panel .panel-frame {
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    border: 1px solid rgba(75, 201, 196, 0.18);
    pointer-events: none;
}
.intro-panel .panel-corners,
.hero-panel .panel-corners,
.news-main .panel-corners,
.news-list .panel-corners,
.card .panel-corners,
.start-page-panel .panel-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.intro-panel .panel-corners::before,
.intro-panel .panel-corners::after,
.hero-panel .panel-corners::before,
.hero-panel .panel-corners::after,
.news-main .panel-corners::before,
.news-main .panel-corners::after,
.news-list .panel-corners::before,
.news-list .panel-corners::after,
.card .panel-corners::before,
.card .panel-corners::after,
.start-page-panel .panel-corners::before,
.start-page-panel .panel-corners::after {
    content: "";
    position: absolute;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(75, 201, 196, 0.45);
    opacity: 0.7;
}
.intro-panel .panel-corners::before,
.hero-panel .panel-corners::before,
.news-main .panel-corners::before,
.news-list .panel-corners::before,
.card .panel-corners::before,
.start-page-panel .panel-corners::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 12px;
}
.intro-panel .panel-corners::after,
.hero-panel .panel-corners::after,
.news-main .panel-corners::after,
.news-list .panel-corners::after,
.card .panel-corners::after,
.start-page-panel .panel-corners::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 12px;
}
.faq-panel {
    position: relative;
    overflow: hidden;
}
.faq-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}
.faq-header { position: relative; z-index: 1; margin-bottom: 24px; }
.faq-title { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.faq-lead { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.faq-search-wrap {
    margin-top: 12px;
    position: relative;
    max-width: 420px;
}
.faq-search-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid rgba(75, 201, 196, 0.25);
    pointer-events: none;
}
.faq-search {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(100, 140, 165, 0.45);
    background: rgba(10, 18, 26, 0.9);
    color: var(--text);
    font-size: 15px;
}
.faq-search::placeholder { color: var(--muted); }
.faq-search:focus {
    outline: none;
    border-color: rgba(75, 201, 196, 0.55);
    box-shadow: 0 0 0 2px rgba(75, 201, 196, 0.2), 0 0 16px rgba(75, 201, 196, 0.1);
}
.faq-list {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.faq-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media (max-width: 700px) {
    .faq-list { flex-direction: column; }
}
.faq-item {
    margin: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(160deg, rgba(10, 18, 26, 0.85), rgba(14, 22, 32, 0.75));
    box-shadow: 0 4px 20px rgba(3, 8, 14, 0.35);
}
.faq-item:hover { border-color: rgba(75, 201, 196, 0.35); box-shadow: 0 6px 24px rgba(3, 8, 14, 0.4), 0 0 20px rgba(75, 201, 196, 0.08); }
.faq-item.is-open {
    border-color: rgba(75, 201, 196, 0.5);
    box-shadow: 0 8px 28px rgba(3, 8, 14, 0.4), 0 0 24px rgba(75, 201, 196, 0.12);
}
.faq-item-inner { position: relative; z-index: 1; padding: 0; min-width: 0; overflow: hidden; }
.faq-question-btn {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 16px 18px;
    border: none;
    border-radius: 0;
    background: rgba(14, 22, 32, 0.6);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    border-left: 3px solid rgba(75, 201, 196, 0.5);
    transition: color 0.2s ease, background 0.2s ease, border-left-color 0.2s ease;
}
.faq-question-btn:hover {
    color: var(--accent-strong);
    background: rgba(75, 201, 196, 0.08);
    border-left-color: var(--accent-strong);
}
.faq-item.is-open .faq-question-btn { border-left-color: var(--accent-strong); background: rgba(75, 201, 196, 0.06); }
.faq-question-text { flex: 1; min-width: 0; word-wrap: break-word; }
.faq-toggle {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    margin-top: 2px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.faq-item.is-open .faq-toggle { transform: rotate(-135deg); border-color: var(--accent-strong); }
.faq-answer {
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(75, 201, 196, 0.9), rgba(110, 231, 255, 0.6), rgba(75, 201, 196, 0.9), transparent);
    top: 0;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(75, 201, 196, 0.6);
}
.faq-item.is-open .faq-answer { max-height: 800px; }
.faq-item.is-open .faq-answer::before {
    opacity: 1;
    animation: faq-scan-line 0.6s ease-out forwards;
}
@keyframes faq-scan-line {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0.3; }
}
.faq-answer-inner {
    padding: 14px 18px 18px;
    font-size: 14px;
    line-height: 1.65;
    color: #b7c7d8;
    border-top: 1px solid rgba(75, 201, 196, 0.2);
    background: rgba(8, 14, 20, 0.4);
    position: relative;
    animation: faq-reveal 0.4s ease-out;
}
@keyframes faq-reveal {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.faq-item.is-open .faq-answer-inner {
    box-shadow: inset 0 0 30px rgba(75, 201, 196, 0.04);
}
.faq-answer a { color: var(--accent-strong); text-decoration: underline; }
.faq-answer a:hover { color: #6ee7ff; }
.faq-no-results { position: relative; z-index: 1; margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.faq-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(75, 201, 196, 0.2);
    position: relative;
    z-index: 1;
}
.faq-footer p { margin: 0; font-size: 14px; color: var(--muted); }
.faq-footer a { color: var(--accent-strong); }
.start-page-panel {
    position: relative;
    overflow: hidden;
}
.start-block {
    position: relative;
    z-index: 1;
    margin-top: 28px;
}
.start-block:first-child { margin-top: 0; }
.start-page-header { margin-bottom: 0; }
.start-page-title { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: 0.02em; }
.start-page-lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.start-description.tech-inner-panel {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(100, 140, 165, 0.4);
    background: linear-gradient(160deg, rgba(10, 18, 26, 0.85), rgba(14, 22, 32, 0.75));
    box-shadow: 0 8px 24px rgba(3, 8, 14, 0.4), inset 0 1px 0 rgba(75, 201, 196, 0.06);
}
.tech-inner-panel .panel-frame {
    position: absolute;
    inset: 10px;
    border-radius: 10px;
    border: 1px solid rgba(75, 201, 196, 0.2);
    pointer-events: none;
}
.tech-inner-panel .panel-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.tech-inner-panel .panel-corners::before,
.tech-inner-panel .panel-corners::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(75, 201, 196, 0.5);
    opacity: 0.85;
}
.tech-inner-panel .panel-corners::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 8px;
}
.tech-inner-panel .panel-corners::after {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 8px;
}
.tech-inner-panel .panel-marks {
    right: 12px;
    top: 12px;
}
.tech-inner-panel .panel-marks span {
    width: 20px;
    background: linear-gradient(90deg, rgba(75, 201, 196, 0.7), rgba(75, 201, 196, 0.15));
}
.start-description-inner {
    position: relative;
    z-index: 1;
    padding: 18px 20px;
}
.start-description-text {
    margin: 0 0 14px;
    color: #c2d0de;
    font-size: 15px;
    line-height: 1.7;
}
.start-description-sub {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-strong);
}
.start-description-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}
.start-description-list li { margin-bottom: 4px; }
.start-page-panel .server-grid,
.start-page-panel .steps { position: relative; z-index: 1; }
.start-page-panel .server-list { color: #c2d0de; }
.intro-panel::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto -20%;
    height: 200px;
    background: linear-gradient(120deg, transparent, rgba(75, 201, 196, 0.18), transparent);
    transform: skewY(-6deg);
    animation: intro-scan 10s linear infinite;
    pointer-events: none;
}
.intro-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(240px 160px at 8% -10%, rgba(91, 229, 255, 0.2), transparent 60%),
        radial-gradient(240px 160px at 90% 0%, rgba(59, 160, 158, 0.18), transparent 55%),
        repeating-linear-gradient(90deg, rgba(75, 201, 196, 0.04) 0 1px, transparent 1px 120px),
        repeating-linear-gradient(0deg, rgba(75, 201, 196, 0.03) 0 1px, transparent 1px 120px);
    pointer-events: none;
}
@keyframes intro-scan {
    0% { transform: translateX(-40%) skewY(-6deg); opacity: 0; }
    30% { opacity: 0.6; }
    55% { transform: translateX(30%) skewY(-6deg); opacity: 0.35; }
    100% { transform: translateX(90%) skewY(-6deg); opacity: 0; }
}
.intro-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.intro-content h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: 0.6px; }
.intro-content p { margin: 0; color: var(--muted); }
.intro-lead { font-size: 16px; line-height: 1.7; color: #c2d0de; }
.intro-text {
    display: grid;
    gap: 12px;
    font-size: 15px;
    line-height: 1.8;
    color: #c2d0de;
}
.intro-timeline {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(100, 140, 165, 0.35);
    background: rgba(10, 16, 22, 0.7);
    overflow: hidden;
}
.intro-timeline::before {
    content: "";
    position: absolute;
    inset: 50% 10px auto 10px;
    height: 2px;
    background: linear-gradient(90deg, rgba(75, 201, 196, 0.05), rgba(75, 201, 196, 0.6), rgba(75, 201, 196, 0.05));
    transform: translateY(-50%);
}
.intro-timeline::after {
    content: "";
    position: absolute;
    inset: -60% 0 auto -20%;
    height: 140px;
    background: linear-gradient(120deg, transparent, rgba(75, 201, 196, 0.18), transparent);
    transform: skewY(-6deg);
    animation: timeline-scan 9s linear infinite;
    pointer-events: none;
}
@keyframes timeline-scan {
    0% { transform: translateX(-40%) skewY(-6deg); opacity: 0; }
    30% { opacity: 0.6; }
    60% { transform: translateX(30%) skewY(-6deg); opacity: 0.35; }
    100% { transform: translateX(90%) skewY(-6deg); opacity: 0; }
}
.timeline-chip {
    position: relative;
    z-index: 1;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(100, 140, 165, 0.5);
    background: rgba(12, 18, 26, 0.9);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-strong);
}
.timeline-chip::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(75, 201, 196, 0.9);
    box-shadow: 0 0 10px rgba(75, 201, 196, 0.6);
    transform: translate(-16px, -50%);
}
.intro-actions {
    margin-top: 18px;
    margin-bottom: 16px;
    text-align: center;
}

/* ---- History modal ---- */
.history-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 6, 10, 0.82);
    backdrop-filter: blur(8px);
    z-index: 200;
}
.history-modal.is-open { display: flex; }
.history-modal-panel {
    position: relative;
    width: min(720px, 100%);
    max-height: 88vh;
    overflow: auto;
    border-radius: 18px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(160deg, rgba(9, 13, 18, 0.98), rgba(18, 28, 38, 0.96));
    box-shadow: 0 30px 70px rgba(3, 8, 14, 0.7), 0 0 40px rgba(75, 201, 196, 0.12);
    padding: 28px 24px 32px;
}
.history-modal-panel::-webkit-scrollbar { width: 10px; }
.history-modal-panel::-webkit-scrollbar-track {
    background: rgba(10, 16, 22, 0.6);
    border-radius: 999px;
}
.history-modal-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(75, 201, 196, 0.65), rgba(59, 160, 158, 0.35));
    border-radius: 999px;
    border: 2px solid rgba(10, 16, 22, 0.8);
}
.history-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(78, 98, 115, 0.4);
    background: rgba(12, 18, 26, 0.9);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}
.history-modal-close:hover {
    border-color: rgba(75, 201, 196, 0.5);
    color: var(--accent-strong);
}
.history-modal-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--accent-strong);
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(75, 201, 196, 0.3);
}
.history-body {
    color: #c2d0de;
    line-height: 1.75;
    font-size: 14px;
}
.history-section {
    margin-bottom: 24px;
}
.history-section:last-child { margin-bottom: 0; }
.history-section h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-strong);
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(75, 201, 196, 0.2);
}
.history-section p {
    margin: 0 0 12px;
}
.history-section p:last-child { margin-bottom: 0; }
.history-section ul {
    margin: 10px 0 14px;
    padding-left: 22px;
}
.history-section ul li { margin-bottom: 6px; }
.history-section ul li::marker { color: var(--accent-strong); }
.history-blockquote {
    margin: 18px 0;
    padding: 18px 20px;
    border-radius: 14px;
    border-left: 4px solid rgba(75, 201, 196, 0.6);
    background: rgba(10, 16, 22, 0.7);
    font-style: italic;
}
.history-blockquote p {
    margin: 0 0 10px;
}
.history-blockquote p:last-child { margin-bottom: 0; }
.history-body strong { color: var(--text); }

/* ---- Home: hero ---- */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding: 40px 0 24px;
}
.hero::before {
    content: "";
    position: absolute;
    inset: -40px -20px auto -20px;
    height: 260px;
    background:
        radial-gradient(240px 140px at 10% 0%, rgba(91, 229, 255, 0.18), transparent 70%),
        radial-gradient(260px 160px at 85% 0%, rgba(75, 201, 196, 0.16), transparent 70%),
        repeating-linear-gradient(90deg, rgba(75, 201, 196, 0.05) 0 1px, transparent 1px 90px);
    pointer-events: none;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-left { display: grid; gap: 18px; }
.hero h1 { font-size: 44px; line-height: 1.1; margin: 0 0 16px; }
.hero-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-strong);
    border: 1px solid rgba(75, 201, 196, 0.4);
    padding: 6px 10px;
    border-radius: 999px;
    width: fit-content;
    background: rgba(10, 16, 22, 0.7);
}
.hero-title { display: block; font-size: 46px; letter-spacing: 0.6px; }
.hero-title span { color: var(--accent-strong); }
.hero p { color: #c2d0de; margin: 0 0 24px; font-size: 15px; line-height: 1.7; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(100, 140, 165, 0.45);
    background: rgba(10, 16, 22, 0.7);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-strong);
}
.hero-schematic {
    position: relative;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(100, 140, 165, 0.4);
    background: rgba(8, 12, 18, 0.7);
    overflow: hidden;
}
.hero-schematic::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(75, 201, 196, 0.06) 0 1px, transparent 1px 80px),
                repeating-linear-gradient(0deg, rgba(75, 201, 196, 0.04) 0 1px, transparent 1px 80px);
    pointer-events: none;
}
.hero-schematic ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hero-schematic li {
    position: relative;
    padding-left: 18px;
    color: #c2d0de;
    font-size: 14px;
}
.hero-schematic li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(75, 201, 196, 0.85);
    box-shadow: 0 0 10px rgba(75, 201, 196, 0.5);
}
.hero-panel {
    position: relative;
    background: linear-gradient(160deg, rgba(12, 18, 26, 0.96) 0%, rgba(18, 28, 38, 0.92) 100%);
    border: 2px solid rgba(100, 140, 165, 0.45);
    border-radius: 16px;
    padding: 24px;
    overflow: hidden;
}
.hero-panel h3 { margin: 0 0 12px; font-size: 16px; }
.hero-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.status-card {
    position: relative;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(100, 140, 165, 0.35);
    background: rgba(9, 14, 20, 0.75);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.status-card::before {
    content: "";
    position: absolute;
    inset: 8px 8px auto 8px;
    height: 2px;
    background: linear-gradient(90deg, rgba(75, 201, 196, 0.05), rgba(75, 201, 196, 0.7), rgba(75, 201, 196, 0.05));
}
.status-label { color: var(--muted); font-size: 10px; }
.status-value { margin-top: 10px; font-size: 12px; color: var(--accent-strong); font-weight: 700; }

/* Hero: flip-карточки контактов (лицо / ссылка с «блеском») */
.status-card.status-card--flip {
    padding: 0;
    border: none;
    background: transparent;
    overflow: visible;
    cursor: default;
    outline: none;
}
.status-card.status-card--flip::before {
    display: none;
}
.status-card.status-card--flip:focus-visible {
    outline: 2px solid rgba(75, 201, 196, 0.55);
    outline-offset: 3px;
    border-radius: 14px;
}
.status-card-inner {
    position: relative;
    min-height: 96px;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.status-card--flip:hover .status-card-inner,
.status-card--flip:focus-within .status-card-inner {
    transform: rotateY(180deg);
}
.status-card-face {
    position: absolute;
    inset: 0;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(100, 140, 165, 0.35);
    background: rgba(9, 14, 20, 0.75);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.status-card-face--front {
    display: flex;
    flex-direction: column;
}
.status-card-face--front::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 8px;
    height: 2px;
    background: linear-gradient(90deg, rgba(75, 201, 196, 0.05), rgba(75, 201, 196, 0.7), rgba(75, 201, 196, 0.05));
}
.status-card-face--back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
}
.status-card-hint {
    margin-top: auto;
    padding-top: 8px;
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(156, 176, 196, 0.55);
}
.status-card-link {
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.35;
    text-decoration: none;
    text-transform: none;
    background: linear-gradient(
        105deg,
        #6ee7ff 0%,
        #f0fdff 28%,
        #4bc9c4 48%,
        #dff9ff 68%,
        #6ee7ff 100%
    );
    background-size: 240% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: status-card-shimmer 3.5s linear infinite;
}
.status-card-link:hover,
.status-card-link:focus-visible {
    filter: brightness(1.12);
    outline: none;
}
@keyframes status-card-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}
@media (prefers-reduced-motion: reduce) {
    .status-card-inner {
        transition-duration: 0.01ms;
    }
    .status-card-link {
        animation: none;
        color: var(--accent-strong);
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
    }
}
@media (hover: none) {
    .status-card--flip .status-card-inner {
        transform: none !important;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .status-card--flip .status-card-face {
        position: relative;
        inset: auto;
        transform: none !important;
        backface-visibility: visible;
        -webkit-backface-visibility: visible;
    }
    .status-card--flip .status-card-face--back {
        padding-top: 0;
    }
    .status-card--flip .status-card-hint {
        display: none;
    }
}

.client-links { display: grid; gap: 10px; margin: 14px 0 18px; }
.client-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(100, 140, 165, 0.45);
    background: rgba(10, 16, 22, 0.8);
    color: var(--text);
    font-weight: 600;
    transition: 0.2s ease;
}
.client-link span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-strong);
}
.client-link:hover {
    border-color: rgba(75, 201, 196, 0.6);
    box-shadow: 0 10px 20px rgba(75, 201, 196, 0.12);
    transform: translateY(-1px);
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.stat {
    background: var(--panel-light);
    border: 1px solid rgba(100, 140, 165, 0.35);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
.stat .value { font-size: 20px; font-weight: 700; }
.stat .label { color: var(--muted); font-size: 12px; }
.login-card {
    margin-top: 20px;
    background: var(--panel-light);
    border: 2px solid rgba(100, 140, 165, 0.45);
    border-radius: 12px;
    padding: 16px;
}
.login-card h4 { margin: 0 0 10px; font-size: 14px; }
.form-row { display: grid; gap: 10px; margin-bottom: 12px; }
.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(100, 140, 165, 0.35);
    background: rgba(10, 16, 22, 0.9);
    color: var(--text);
}
.login-links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
}
.login-links a {
    color: var(--accent-strong);
    border-bottom: 1px dashed rgba(75, 201, 196, 0.4);
    padding-bottom: 2px;
}
.login-links a:hover { color: #9ff0ff; }
.hero-help {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(100, 140, 165, 0.4);
    background: rgba(10, 16, 22, 0.8);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.hero-help strong { color: var(--text); font-weight: 600; }

/* ---- Home: grid, section, cards ---- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 48px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 14px;
}
.section-title {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
}
.section-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--accent-strong);
}
.tech-divider {
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(75, 201, 196, 0.1), rgba(75, 201, 196, 0.6), rgba(75, 201, 196, 0.1));
    margin: 10px 0 18px;
    opacity: 0.8;
}
.card {
    position: relative;
    background: linear-gradient(160deg, rgba(12, 18, 26, 0.96), rgba(18, 28, 38, 0.9));
    border: 2px solid rgba(100, 140, 165, 0.45);
    border-radius: 16px;
    padding: 20px;
    min-height: 150px;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120px 80px at 10% 0%, rgba(91, 229, 255, 0.18), transparent 70%),
        repeating-linear-gradient(90deg, rgba(75, 201, 196, 0.05) 0 1px, transparent 1px 100px);
    opacity: 0.6;
    pointer-events: none;
}
.card::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 18px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(75, 201, 196, 0.45);
    box-shadow: 0 0 20px rgba(75, 201, 196, 0.25);
    opacity: 0.6;
    pointer-events: none;
}
.card h4 { margin: 0 0 8px; }
.card p { margin: 0; color: #c2d0de; font-size: 14px; line-height: 1.6; }
.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(75, 201, 196, 0.45);
    color: var(--accent-strong);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 10px;
    background: rgba(10, 16, 22, 0.8);
}

/* ---- Home: экран меха (интро-видео) ---- */
.intro-video-section {
    margin: 28px 0 32px;
}
.mech-video-screen {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(165deg, #0c1116 0%, #0f161d 40%, #0a0e14 100%);
    border: 2px solid rgba(50, 66, 82, 0.9);
    box-shadow:
        0 0 0 1px rgba(75, 201, 196, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 28px 56px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}
.mech-video-screen-inner {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #06090c;
    padding-top: 6px;
}
.mech-video-glow-frame {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 1px solid rgba(75, 201, 196, 0.35);
    box-shadow: 0 0 20px rgba(75, 201, 196, 0.12), inset 0 0 30px rgba(75, 201, 196, 0.04);
    pointer-events: none;
    z-index: 2;
}
.mech-video-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}
.mech-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(75, 201, 196, 0.55);
    border-style: solid;
    border-width: 0;
    box-shadow: 0 0 12px rgba(75, 201, 196, 0.25);
}
.mech-corner-tl {
    top: 6px;
    left: 18px;
    border-top-width: 2px;
    border-left-width: 2px;
    border-top-left-radius: 8px;
}
.mech-corner-tr {
    top: 6px;
    right: 18px;
    border-top-width: 2px;
    border-right-width: 2px;
    border-top-right-radius: 8px;
}
.mech-corner-bl {
    bottom: 12px;
    left: 18px;
    border-bottom-width: 2px;
    border-left-width: 2px;
    border-bottom-left-radius: 8px;
}
.mech-corner-br {
    bottom: 12px;
    right: 18px;
    border-bottom-width: 2px;
    border-right-width: 2px;
    border-bottom-right-radius: 8px;
}

/* ---- Бегущая строка рейтинга над слайдером (главная) ---- */
.ratings-ticker {
    position: relative;
    z-index: 4;
    border-bottom: 1px solid rgba(255, 80, 60, 0.35);
    background: linear-gradient(
        90deg,
        rgba(40, 12, 10, 0.97) 0%,
        rgba(8, 10, 14, 0.98) 18%,
        rgba(8, 10, 14, 0.98) 100%
    );
    box-shadow: inset 0 1px 0 rgba(255, 120, 90, 0.12);
}
.ratings-ticker-bar {
    display: flex;
    align-items: stretch;
    min-height: 36px;
    gap: 0;
}
.ratings-ticker-alert {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 14px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 200, 160, 0.95);
    background: linear-gradient(90deg, rgba(120, 28, 18, 0.95) 0%, rgba(50, 14, 12, 0.4) 100%);
    border-right: 1px solid rgba(255, 90, 70, 0.35);
    white-space: nowrap;
}
.ratings-ticker-alert-label--compact {
    display: none;
    letter-spacing: 0.1em;
    font-size: 11px;
}
.ratings-ticker-alert-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3d2e;
    box-shadow: 0 0 10px #ff3d2e, 0 0 20px rgba(255, 60, 40, 0.5);
    animation: ratings-ticker-pulse 1.4s ease-in-out infinite;
}
@keyframes ratings-ticker-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.65;
        transform: scale(0.85);
    }
}
.ratings-ticker-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.ratings-ticker-rail {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    min-height: 36px;
    align-items: center;
    animation: ratings-ticker-marquee 80s linear infinite;
}
@keyframes ratings-ticker-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.ratings-ticker-group {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    padding: 6px 24px 6px 12px;
    white-space: nowrap;
}
.ratings-ticker-item {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}
.ratings-ticker-arrow {
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1;
    vertical-align: middle;
}
/* Биржевые стрелки: рост — зелёный, падение — красный */
.ratings-ticker-arrow--up {
    color: #22c55e;
    filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.65));
}
.ratings-ticker-arrow--down {
    color: #ef4444;
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.55));
}
.ratings-ticker-chip {
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(218, 226, 236, 0.94);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}
.ratings-ticker-item--neutral .ratings-ticker-chip {
    color: rgba(165, 180, 195, 0.9);
    font-weight: 500;
}
.ratings-ticker-sep {
    margin: 0 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(75, 201, 196, 0.35);
    user-select: none;
}
.ratings-ticker-link {
    flex: 0 0 auto;
    align-self: center;
    margin: 0 12px 0 8px;
    padding: 6px 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(75, 201, 196, 0.95) !important;
    border: 1px solid rgba(75, 201, 196, 0.35);
    border-radius: 4px;
    background: rgba(75, 201, 196, 0.08);
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.ratings-ticker-link:hover {
    background: rgba(75, 201, 196, 0.18);
    border-color: rgba(75, 201, 196, 0.55);
}
@media (prefers-reduced-motion: reduce) {
    .ratings-ticker-rail {
        animation: none;
    }
    .ratings-ticker-alert-dot {
        animation: none;
    }
}
@media (max-width: 640px) {
    .ratings-ticker-alert {
        padding: 0 8px 0 10px;
        font-size: 8px;
        letter-spacing: 0.12em;
    }
    .ratings-ticker-link {
        margin: 0 6px 0 4px;
        padding: 5px 7px;
        font-size: 8px;
        letter-spacing: 0.08em;
    }
    .ratings-ticker-chip {
        font-size: 10px;
    }
    .ratings-ticker-arrow {
        font-size: 13px;
    }
}

.mech-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px 10px 30px;
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.98) 0%, rgba(6, 9, 14, 0.95) 100%);
    border-bottom: 1px solid rgba(75, 201, 196, 0.2);
    position: relative;
    z-index: 1;
}
.mech-video-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: rgba(75, 201, 196, 0.9);
    text-transform: uppercase;
}
.mech-video-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: var(--accent-strong);
}
.mech-video-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-strong);
    box-shadow: 0 0 10px var(--accent-strong), 0 0 4px var(--accent-strong);
    animation: mech-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes mech-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}
.mech-video-display {
    position: relative;
    padding: 12px 14px 14px;
}
.mech-video-display .intro-video {
    display: block;
    width: 100%;
    max-height: min(340px, 52vw);
    height: auto;
    border-radius: 10px;
    background: #0a0e12;
    border: 1px solid rgba(50, 66, 82, 0.6);
    object-fit: contain;
}
.mech-video-scanlines {
    position: absolute;
    inset: 12px 14px 14px 14px;
    pointer-events: none;
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, 0.06) 2px,
        rgba(0, 0, 0, 0.06) 4px
    );
    opacity: 0.45;
}
.mech-video-screen.glow-hover:hover {
    border-color: rgba(75, 201, 196, 0.4);
    box-shadow:
        0 0 0 1px rgba(75, 201, 196, 0.15),
        0 0 24px rgba(75, 201, 196, 0.12),
        0 28px 56px rgba(0, 0, 0, 0.6);
}
.mech-video-screen.glow-hover:hover .mech-video-glow-frame {
    border-color: rgba(75, 201, 196, 0.5);
    box-shadow: 0 0 28px rgba(75, 201, 196, 0.18), inset 0 0 40px rgba(75, 201, 196, 0.06);
}

/* ---- Home: слайдер (компактно как видео, техно-переход) ---- */
.home-slider-section {
    margin: 28px 0 32px;
}
.home-slider-section--after-hero {
    margin-top: 8px;
    margin-bottom: 28px;
}
.mech-slider-display {
    position: relative;
    padding: 12px 14px 14px;
}
.mech-slider-media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #0a0e12;
    border: 1px solid rgba(50, 66, 82, 0.6);
    max-height: min(340px, 52vw);
    width: 100%;
    margin: 0 auto;
}
.mech-slider-viewport {
    position: relative;
    width: 100%;
    height: min(340px, 52vw);
    max-height: min(340px, 52vw);
    background: #06090c;
}
.mech-slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(1.06);
    filter: brightness(1.2) contrast(1.08) saturate(1.15);
}
.mech-slider-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transform: scale(1);
    filter: brightness(1) contrast(1) saturate(1);
}
.mech-slider-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Слайд LOTTO: вертикальный якорь (подбор под кадр ангара/робота) */
.mech-slider-slide--img-top img {
    object-position: 50% -50px;
}
.mech-slider-hud-overlay {
    position: absolute;
    left: 10px;
    bottom: 10px;
    right: auto;
    max-width: min(94%, 380px);
    z-index: 6;
    pointer-events: none;
}
.mech-slider-hud-window {
    padding: 10px 12px 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(75, 201, 196, 0.45);
    background: linear-gradient(145deg, rgba(6, 10, 15, 0.92) 0%, rgba(12, 20, 28, 0.88) 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    pointer-events: auto;
}
.mech-slider-hud-window::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(75, 201, 196, 0.65);
    border-left: 2px solid rgba(75, 201, 196, 0.65);
    border-radius: 2px 0 0 0;
    pointer-events: none;
}
.mech-slider-hud-window::after {
    content: "";
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid rgba(75, 201, 196, 0.45);
    border-right: 2px solid rgba(75, 201, 196, 0.45);
    border-radius: 0 0 2px 0;
    pointer-events: none;
}
.mech-slider-hud-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(75, 201, 196, 0.95);
    margin-bottom: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(75, 201, 196, 0.12);
    border: 1px solid rgba(75, 201, 196, 0.25);
}
.mech-slider-hud-caption {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text, #e8eef7);
    margin-bottom: 4px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.mech-slider-hud-sub {
    display: block;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--muted, #9ca8b8);
    letter-spacing: 0.02em;
}
.mech-slider-hud-sub:empty {
    display: none;
}
.mech-slider-hud-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(75, 201, 196, 0.2);
}
.mech-slider-hud-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: #0a1016 !important;
    background: linear-gradient(165deg, rgba(75, 201, 196, 0.95) 0%, rgba(52, 168, 164, 0.98) 100%);
    border: 1px solid rgba(120, 230, 220, 0.5);
    border-radius: 6px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 4px 14px rgba(75, 201, 196, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.mech-slider-hud-link i {
    font-size: 0.65rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
}
.mech-slider-hud-link:hover {
    filter: brightness(1.08);
    box-shadow:
        0 0 0 1px rgba(75, 201, 196, 0.4),
        0 6px 22px rgba(75, 201, 196, 0.45);
    transform: translateY(-1px);
}
.mech-slider-hud-link:hover i {
    transform: translateX(3px);
}
.mech-slider-hud-link:focus-visible {
    outline: 2px solid rgba(180, 255, 248, 0.95);
    outline-offset: 2px;
}
.mech-slider-hud-link--secondary {
    background: linear-gradient(165deg, rgba(28, 40, 52, 0.95) 0%, rgba(18, 26, 34, 0.98) 100%);
    color: rgba(75, 201, 196, 0.98) !important;
    border-color: rgba(75, 201, 196, 0.45);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.mech-slider-hud-link--secondary:hover {
    border-color: rgba(120, 230, 220, 0.55);
    box-shadow:
        0 0 0 1px rgba(75, 201, 196, 0.25),
        0 4px 18px rgba(0, 0, 0, 0.35);
}
.mech-slider-hud-link.is-hidden {
    display: none !important;
}
.mech-slider-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    border-radius: 10px;
    overflow: hidden;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, 0.06) 2px,
        rgba(0, 0, 0, 0.06) 4px
    );
    opacity: 0.45;
    transition: opacity 0.2s ease, transform 0.08s linear;
}
.mech-slider-media.mech-slider-glitching .mech-slider-scanlines {
    animation: mech-slider-scanline-jitter 0.45s steps(3) forwards;
    opacity: 0.65;
}
.mech-slider-media.mech-slider-glitching .mech-slider-viewport::after {
    animation: mech-slider-signal-burst 0.5s ease-out forwards;
}
.mech-slider-viewport::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    border-radius: 10px;
    opacity: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(75, 201, 196, 0.12) 48%,
        rgba(120, 220, 255, 0.18) 50%,
        rgba(75, 201, 196, 0.12) 52%,
        transparent 60%
    );
    mix-blend-mode: screen;
}
@keyframes mech-slider-scanline-jitter {
    0% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    50% { transform: translateY(2px); }
    75% { transform: translateY(-1px); }
    100% { transform: translateY(0); }
}
@keyframes mech-slider-signal-burst {
    0% { opacity: 0; transform: scaleX(1.2); }
    35% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(1); }
}
.mech-slider-controls-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 36px 8px 10px;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 8, 12, 0.45) 50%, rgba(4, 8, 12, 0.82) 100%);
    pointer-events: none;
}
.mech-slider-controls-overlay .mech-slider-btn {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.mech-slider-media:hover .mech-slider-controls-overlay .mech-slider-btn,
.mech-slider-media:focus-within .mech-slider-controls-overlay .mech-slider-btn {
    opacity: 1;
    pointer-events: auto;
}
@media (hover: none) {
    .mech-slider-controls-overlay .mech-slider-btn {
        opacity: 0.55;
        pointer-events: auto;
    }
}
.mech-slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(75, 201, 196, 0.4);
    background: rgba(6, 10, 15, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--accent-strong, #4bc9c4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    -webkit-tap-highlight-color: transparent;
}
.mech-slider-btn:hover {
    background: rgba(75, 201, 196, 0.18);
    border-color: rgba(75, 201, 196, 0.65);
    box-shadow: 0 0 18px rgba(75, 201, 196, 0.2);
}
.mech-slider-btn:focus-visible {
    outline: 2px solid var(--accent-strong, #4bc9c4);
    outline-offset: 2px;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.mech-slider-counter {
    font-variant-numeric: tabular-nums;
}

/* ---- Главная: слайдер + тикер — планшет и мобила ---- */
@media (max-width: 768px) {
    .home-slider-section,
    .home-slider-section--after-hero {
        margin-top: 4px;
        margin-bottom: 22px;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }
    .home-slider-section .mech-video-screen.mech-slider-screen {
        padding: 8px;
        border-radius: 14px;
    }
    .home-slider-section .mech-video-screen-inner {
        border-radius: 10px;
        padding-top: 2px;
    }
    .home-slider-section .mech-video-glow-frame {
        border-radius: 10px;
    }
    .home-slider-section .mech-video-header {
        padding: 8px 10px;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 10px;
    }
    .home-slider-section .mech-video-label {
        font-size: 8px;
        letter-spacing: 1.5px;
        line-height: 1.35;
        flex: 1 1 auto;
        min-width: 0;
    }
    .home-slider-section .mech-video-status {
        font-size: 9px;
        flex-shrink: 0;
        margin-left: auto;
    }
    .home-slider-section .mech-slider-display {
        padding: 6px 6px 8px;
    }
    .home-slider-section .mech-slider-media {
        max-height: none;
        border-radius: 8px;
    }
    .home-slider-section .mech-slider-viewport {
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: none;
        min-height: 0;
    }
    .home-slider-section .mech-slider-scanlines {
        border-radius: 8px;
    }
    .home-slider-section .mech-slider-viewport::after {
        border-radius: 8px;
    }
    .home-slider-section .mech-corner {
        width: 20px;
        height: 20px;
    }
    .home-slider-section .mech-corner-tl {
        top: 4px;
        left: 10px;
    }
    .home-slider-section .mech-corner-tr {
        top: 4px;
        right: 10px;
    }
    .home-slider-section .mech-corner-bl {
        bottom: 8px;
        left: 10px;
    }
    .home-slider-section .mech-corner-br {
        bottom: 8px;
        right: 10px;
    }
    .home-slider-section .mech-slider-controls-overlay {
        padding: 20px 4px 6px;
        align-items: center;
    }
    .home-slider-section .ratings-ticker-alert-label--full {
        display: none;
    }
    .home-slider-section .ratings-ticker-alert-label--compact {
        display: inline;
    }
    .home-slider-section .ratings-ticker-alert {
        padding: 0 8px 0 10px;
        gap: 6px;
    }
    .home-slider-section .ratings-ticker-bar {
        min-height: 34px;
    }
    .home-slider-section .mech-slider-hud-overlay {
        left: 6px;
        right: 6px;
        bottom: auto;
        top: 6px;
        max-width: none;
        width: auto;
    }
    .home-slider-section .mech-slider-hud-window {
        padding: 8px 10px 8px 11px;
        border-radius: 7px;
    }
    .home-slider-section .mech-slider-hud-caption {
        font-size: 0.82rem;
        line-height: 1.2;
        margin-bottom: 3px;
    }
    .home-slider-section .mech-slider-hud-sub {
        font-size: 0.65rem;
        line-height: 1.3;
    }
    .home-slider-section .mech-slider-hud-tag {
        font-size: 8px;
        margin-bottom: 4px;
        padding: 2px 5px;
    }
    .home-slider-section .mech-slider-hud-actions {
        margin-top: 8px;
        padding-top: 8px;
        gap: 6px;
    }
    .home-slider-section .mech-slider-hud-link {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        justify-content: center;
        padding: 7px 8px;
        font-size: 0.65rem;
        letter-spacing: 0.03em;
    }
    .home-slider-section .mech-slider-hud-link.is-hidden {
        display: none !important;
    }
    .home-slider-section .mech-slider-hud-link--secondary {
        flex: 1 1 calc(50% - 4px);
    }
}

@media (max-width: 768px) and (hover: none) {
    .home-slider-section .mech-slider-controls-overlay .mech-slider-btn {
        opacity: 0.65;
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .home-slider-section .mech-slider-hud-link {
        flex: 1 1 100%;
    }
    .home-slider-section .mech-slider-hud-link--secondary {
        flex: 1 1 100%;
    }
    .home-slider-section .ratings-ticker-sep {
        margin: 0 8px;
    }
    .home-slider-section .ratings-ticker-group {
        padding: 5px 12px 5px 8px;
    }
}

@media (max-width: 640px) {
    .mech-slider-btn {
        width: 44px;
        height: 44px;
    }
}

/* ---- Страница Видео: техно-экран "нет сигнала" ---- */
.videos-page { margin-bottom: 48px; }
.videos-screen {
    max-width: 720px;
    margin: 24px auto 0;
}
.videos-screen-frame {
    position: relative;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(165deg, #0a0e12 0%, #0d1218 40%, #06090c 100%);
    border: 2px solid rgba(50, 66, 82, 0.9);
    box-shadow:
        0 0 0 1px rgba(75, 201, 196, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 28px 56px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}
.videos-screen-glow {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 1px solid rgba(75, 201, 196, 0.3);
    box-shadow: 0 0 24px rgba(75, 201, 196, 0.1), inset 0 0 40px rgba(75, 201, 196, 0.03);
    pointer-events: none;
    z-index: 2;
}
.videos-screen-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}
.videos-corner {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(75, 201, 196, 0.5);
    box-shadow: 0 0 12px rgba(75, 201, 196, 0.2);
}
.videos-corner-tl { top: 8px; left: 20px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.videos-corner-tr { top: 8px; right: 20px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.videos-corner-bl { bottom: 14px; left: 20px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.videos-corner-br { bottom: 14px; right: 20px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.videos-screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.98) 0%, rgba(6, 9, 14, 0.95) 100%);
    border-bottom: 1px solid rgba(75, 201, 196, 0.25);
    position: relative;
    z-index: 1;
}
.videos-screen-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: rgba(75, 201, 196, 0.85);
    text-transform: uppercase;
}
.videos-screen-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: var(--accent-strong);
}
.videos-screen-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-strong);
    box-shadow: 0 0 10px var(--accent-strong);
    animation: videos-dot-blink 1.2s ease-in-out infinite;
}
@keyframes videos-dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}
.videos-screen-display {
    position: relative;
    min-height: 320px;
    padding: 24px;
    background: #040608;
    display: flex;
    align-items: center;
    justify-content: center;
}
.videos-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, 0.12) 2px,
        rgba(0, 0, 0, 0.12) 4px
    );
    opacity: 0.6;
}
.videos-scan-beam {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(75, 201, 196, 0.03) 15%,
        rgba(75, 201, 196, 0.12) 50%,
        rgba(75, 201, 196, 0.03) 85%,
        transparent 100%
    );
    animation: videos-scan-run 3s linear infinite;
}
@keyframes videos-scan-run {
    0% { top: -80px; }
    100% { top: 100%; }
}
.videos-no-signal {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}
.videos-connecting {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-strong);
    margin: 0 0 24px;
    text-transform: uppercase;
}
.videos-cursor {
    animation: videos-cursor-blink 0.8s step-end infinite;
    margin-left: 2px;
}
@keyframes videos-cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
.videos-signal-lost {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 8px;
    color: rgba(75, 201, 196, 0.4);
    margin: 0 0 28px;
    text-transform: uppercase;
    animation: videos-flicker 4s ease-in-out infinite;
}
@keyframes videos-flicker {
    0%, 90%, 100% { opacity: 1; }
    92%, 96% { opacity: 0.6; }
    94% { opacity: 1; }
}
.videos-message {
    max-width: 420px;
    margin: 0 auto 24px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}
.videos-message p { margin: 0 0 8px; }
.videos-message-fun {
    margin-top: 14px !important;
    font-size: 13px;
    color: rgba(75, 201, 196, 0.7);
    font-style: italic;
}
.videos-channel {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(75, 201, 196, 0.35);
    text-transform: uppercase;
    margin: 0;
}

/* ---- Home: выставка скриншотов ---- */
.screenshots-gallery {
    margin: 24px 0 48px;
}
.screenshots-wrap {
    position: relative;
    padding: 20px;
    border-radius: 18px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(140deg, rgba(9, 13, 18, 0.94), rgba(20, 28, 36, 0.9));
    box-shadow: 0 24px 50px rgba(3, 8, 14, 0.55);
    overflow: hidden;
}
.screenshots-wrap .panel-frame,
.screenshots-wrap .panel-corners,
.screenshots-wrap .panel-marks {
    pointer-events: none;
}
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.screenshot-item {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(100, 140, 165, 0.35);
    background: rgba(10, 16, 22, 0.6);
    aspect-ratio: 16 / 10;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.screenshot-item:hover {
    border-color: rgba(75, 201, 196, 0.6);
    box-shadow: 0 0 24px rgba(75, 201, 196, 0.25);
}
.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.screenshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    aspect-ratio: 16 / 10;
}
.screenshot-item {
    cursor: pointer;
}

/* ---- Screenshot lightbox ---- */
.screenshot-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 210;
}
.screenshot-lightbox.is-open { display: flex; }
.screenshot-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 10, 0.88);
    backdrop-filter: blur(10px);
}
.screenshot-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(78, 98, 115, 0.5);
    background: rgba(12, 18, 26, 0.9);
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}
.screenshot-lightbox-close:hover {
    border-color: rgba(75, 201, 196, 0.6);
    color: var(--accent-strong);
}
.screenshot-lightbox-prev,
.screenshot-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(100, 140, 165, 0.5);
    background: rgba(12, 18, 26, 0.9);
    color: var(--text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.screenshot-lightbox-prev { left: 20px; }
.screenshot-lightbox-next { right: 20px; }
.screenshot-lightbox-prev:hover,
.screenshot-lightbox-next:hover {
    border-color: rgba(75, 201, 196, 0.7);
    color: var(--accent-strong);
    box-shadow: 0 0 24px rgba(75, 201, 196, 0.2);
}
.screenshot-lightbox-panel {
    position: relative;
    z-index: 2;
    max-width: 92vw;
    max-height: 85vh;
    border-radius: 16px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: rgba(9, 13, 18, 0.95);
    box-shadow: 0 30px 70px rgba(3, 8, 14, 0.7), 0 0 50px rgba(75, 201, 196, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.screenshot-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: calc(85vh - 48px);
    width: auto;
    height: auto;
    object-fit: contain;
}
.screenshot-lightbox-counter {
    padding: 10px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
}

/* ---- Home: news ---- */
.news-section {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 20px;
    margin: 32px 0 48px;
}
.news-main {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    border-radius: 18px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(140deg, rgba(9, 13, 18, 0.94), rgba(20, 28, 36, 0.9));
    box-shadow: 0 24px 50px rgba(3, 8, 14, 0.55);
    overflow: hidden;
}
.news-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(75, 201, 196, 0.12), transparent);
    transform: translateX(-120%);
    animation: news-glow 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes news-glow {
    0% { transform: translateX(-120%); opacity: 0; }
    45% { opacity: 0.35; }
    100% { transform: translateX(120%); opacity: 0; }
}
.news-media {
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(78, 98, 115, 0.35);
    min-height: 220px;
    background: linear-gradient(140deg, rgba(22, 30, 38, 0.9), rgba(12, 18, 26, 0.9));
    overflow: hidden;
}
.news-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-media .news-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}
.news-media .news-placeholder-sg {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(75, 201, 196, 0.5);
}
.news-img-fallback-hide {
    display: none !important;
}
.news-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.news-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--accent-strong);
    border: 1px solid rgba(75, 201, 196, 0.4);
    padding: 4px 10px;
    border-radius: 999px;
    width: fit-content;
}
.news-title { margin: 0; font-size: 22px; line-height: 1.3; }
.news-text { margin: 0; color: #c2d0de; font-size: 15px; line-height: 1.6; }
.news-list {
    position: relative;
    padding: 18px;
    border-radius: 18px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: rgba(12, 18, 26, 0.92);
    overflow: visible;
}
.news-list::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 1px solid rgba(75, 201, 196, 0.25);
    pointer-events: none;
}
.news-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.news-list-title {
    margin: 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--muted);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.news-controls { display: flex; gap: 8px; }
.news-control {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(10, 16, 22, 0.8);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}
.news-control:hover { border-color: var(--accent); color: var(--accent); }
.news-list-body {
    display: grid;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px 2px;
    scroll-behavior: smooth;
}
.news-list-body::-webkit-scrollbar { width: 10px; }
.news-list-body::-webkit-scrollbar-track {
    background: rgba(10, 16, 22, 0.6);
    border-radius: 999px;
}
.news-list-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(75, 201, 196, 0.65), rgba(59, 160, 158, 0.35));
    border-radius: 999px;
    border: 2px solid rgba(10, 16, 22, 0.8);
}
.news-list-body {
    scrollbar-color: rgba(75, 201, 196, 0.6) rgba(10, 16, 22, 0.6);
    scrollbar-width: thin;
}
.news-item {
    display: flex;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(100, 140, 165, 0.4);
    background: rgba(12, 18, 26, 0.85);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    transform-origin: center;
}
.news-item:hover {
    border-color: rgba(75, 201, 196, 0.65);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 24px rgba(75, 201, 196, 0.15), 0 0 16px rgba(75, 201, 196, 0.12);
}
.panel-marks {
    position: absolute;
    right: 16px;
    top: 16px;
    display: grid;
    gap: 6px;
    pointer-events: none;
    opacity: 0.7;
}
.panel-marks span {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(75, 201, 196, 0.65), rgba(75, 201, 196, 0.1));
}
.glow-hover:hover {
    box-shadow: 0 16px 30px rgba(75, 201, 196, 0.18), 0 0 20px rgba(75, 201, 196, 0.14);
    border-color: rgba(75, 201, 196, 0.7);
}
.news-thumb {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    border: 1px solid rgba(78, 98, 115, 0.3);
    background: rgba(10, 16, 22, 0.8);
    overflow: hidden;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--accent-strong);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-thumb-sg-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-strong);
    pointer-events: none;
}
.news-thumb-fallback-hide {
    display: none !important;
}
.news-meta { display: grid; gap: 6px; }
.news-item-date {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-strong);
}
.news-item-title { font-size: 15px; line-height: 1.45; color: var(--text); }

/* ---- News page (full) ---- */
.news-page .news-page-header {
    margin-bottom: 20px;
}
.news-page-title { margin: 0 0 8px; font-size: 20px; }
.news-page-lead {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}
.news-page-toolbar {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(100, 140, 165, 0.35);
    background: rgba(10, 16, 22, 0.6);
}
.news-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
}
.news-search-wrap,
.news-filter-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.news-search-label,
.news-filter-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}
.news-search-input {
    width: 260px;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(100, 140, 165, 0.35);
    background: rgba(10, 16, 22, 0.9);
    color: var(--text);
    font-size: 14px;
}
.news-search-input::placeholder { color: var(--muted); }
.news-search-input:focus {
    outline: none;
    border-color: rgba(75, 201, 196, 0.5);
    box-shadow: 0 0 0 2px rgba(75, 201, 196, 0.15);
}
.news-filter-select {
    min-width: 140px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(100, 140, 165, 0.35);
    background: rgba(10, 16, 22, 0.9);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}
.news-page-list-wrap {
    position: relative;
    padding: 20px;
    border-radius: 16px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: rgba(12, 18, 26, 0.92);
    overflow: hidden;
}
.news-page-list-wrap .panel-frame {
    position: absolute;
    inset: 12px;
    border-radius: 12px;
    border: 1px solid rgba(75, 201, 196, 0.18);
    pointer-events: none;
}
.news-page-list-wrap .panel-corners { position: absolute; inset: 0; pointer-events: none; }
.news-page-list-wrap .panel-corners::before,
.news-page-list-wrap .panel-corners::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(75, 201, 196, 0.45);
    opacity: 0.7;
}
.news-page-list-wrap .panel-corners::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 10px;
}
.news-page-list-wrap .panel-corners::after {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 10px;
}
.news-page-list {
    position: relative;
    z-index: 1;
    padding: 4px 2px;
}
.news-group {
    margin-bottom: 24px;
}
.news-group:last-child { margin-bottom: 0; }
.news-group-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-strong);
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(75, 201, 196, 0.25);
}
.news-group-items {
    display: grid;
    gap: 10px;
}
.news-page-empty {
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}
.news-page-empty a {
    color: var(--accent-strong);
    border-bottom: 1px dashed rgba(75, 201, 196, 0.5);
}
.news-page-empty a:hover { color: #9ff0ff; }
.news-load-more-wrap {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(100, 140, 165, 0.25);
    text-align: center;
}
.news-load-more-wrap .news-load-more { min-width: 180px; }
.news-load-more:disabled { opacity: 0.7; cursor: wait; }

/* ---- News modal ---- */
.news-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 6, 10, 0.7);
    backdrop-filter: blur(6px);
    z-index: 200;
}
.news-modal.is-open { display: flex; }
.news-modal-panel {
    position: relative;
    width: min(920px, 100%);
    max-height: 85vh;
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(78, 98, 115, 0.4);
    background: linear-gradient(160deg, rgba(9, 13, 18, 0.96), rgba(20, 28, 36, 0.94));
    box-shadow: 0 30px 70px rgba(3, 8, 14, 0.65);
    padding: 22px;
}
.news-modal-panel::-webkit-scrollbar { width: 10px; }
.news-modal-panel::-webkit-scrollbar-track {
    background: rgba(10, 16, 22, 0.6);
    border-radius: 999px;
}
.news-modal-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(75, 201, 196, 0.65), rgba(59, 160, 158, 0.35));
    border-radius: 999px;
    border: 2px solid rgba(10, 16, 22, 0.8);
}
.news-modal-panel {
    scrollbar-color: rgba(75, 201, 196, 0.6) rgba(10, 16, 22, 0.6);
    scrollbar-width: thin;
}
.news-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(78, 98, 115, 0.4);
    background: rgba(12, 18, 26, 0.8);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}
.news-modal-header { display: grid; gap: 12px; margin-bottom: 16px; }
.news-modal-title { margin: 0; font-size: 24px; }
.news-modal-date {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-strong);
}
.news-modal-image {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(78, 98, 115, 0.3);
    overflow: hidden;
    background: rgba(12, 18, 26, 0.8);
}
.news-modal-image img { width: 100%; display: block; object-fit: cover; }
.news-modal-image .news-modal-img-fallback {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 0.1em;
    color: rgba(75, 201, 196, 0.5);
    background: rgba(10, 16, 22, 0.8);
}
.news-modal-img-fallback-hide {
    display: none !important;
}
.news-modal-body { color: var(--muted); line-height: 1.6; }
.news-modal-body a { color: var(--accent-strong); }
.news-modal-body img { max-width: 100%; height: auto; border-radius: 12px; }

/* ---- Cabinet: оплата джетов (техно-стиль) ---- */
.cabinet-payment-panel .cabinet-intro { margin-bottom: 8px; }
.cabinet-payment-panel .section-header { margin-top: 24px; }
.payment-form-tech { max-width: 720px; margin: 0 auto; }

.payment-servers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.payment-server-card {
    position: relative;
    padding: 20px;
    border-radius: 18px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(160deg, rgba(9, 14, 20, 0.98), rgba(16, 24, 34, 0.95));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.payment-server-card .panel-frame,
.payment-server-card .panel-corners,
.payment-server-card .panel-marks { pointer-events: none; }
.payment-server-card .panel-frame {
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    border: 1px solid rgba(75, 201, 196, 0.18);
}
.payment-server-card .panel-corners { position: absolute; inset: 0; }
.payment-server-card .panel-corners::before,
.payment-server-card .panel-corners::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(75, 201, 196, 0.5);
    opacity: 0.8;
}
.payment-server-card .panel-corners::before {
    top: 8px; left: 8px;
    border-right: none; border-bottom: none;
    border-top-left-radius: 8px;
}
.payment-server-card .panel-corners::after {
    bottom: 8px; right: 8px;
    border-left: none; border-top: none;
    border-bottom-right-radius: 8px;
}
.payment-server-card:hover:not(.payment-server-card--no-char) {
    border-color: rgba(75, 201, 196, 0.5);
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.55), 0 0 24px rgba(75, 201, 196, 0.12);
}
.payment-server-card--selected {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 1px var(--accent-strong), 0 26px 52px rgba(0, 0, 0, 0.55), 0 0 28px rgba(75, 201, 196, 0.2);
}
.payment-server-card--no-char { opacity: 0.85; cursor: default; }
.payment-server-card--no-char:hover { transform: none; }
.payment-server-inner { position: relative; z-index: 1; }
.payment-server-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(75, 201, 196, 0.2);
}
.payment-server-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    position: relative;
}
.payment-sale-ribbon {
    position: absolute;
    top: -8px;
    right: -4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    padding: 6px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.5);
    line-height: 1;
}
.payment-price-old {
    font-size: 14px;
    color: var(--muted);
    text-decoration: line-through;
}
.payment-price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-strong);
}
.payment-discount-badge {
    font-size: 13px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(75, 201, 196, 0.35), rgba(43, 127, 123, 0.4));
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px rgba(75, 201, 196, 0.4);
}
.payment-server-no-char {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}
.payment-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 180, 80, 0.5);
    background: rgba(255, 180, 80, 0.08);
    color: #e8c970;
    font-size: 14px;
}
.payment-warning-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 180, 80, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}
.payment-order-block {
    position: relative;
    margin-top: 28px;
    padding: 24px;
    border-radius: 18px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(160deg, rgba(9, 14, 20, 0.98), rgba(16, 24, 34, 0.95));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.payment-order-block .panel-frame,
.payment-order-block .panel-corners { position: absolute; pointer-events: none; }
.payment-order-block .panel-frame {
    inset: 14px;
    border-radius: 14px;
    border: 1px solid rgba(75, 201, 196, 0.18);
}
.payment-order-block .panel-corners { inset: 0; }
.payment-order-block .panel-corners::before,
.payment-order-block .panel-corners::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(75, 201, 196, 0.5);
    opacity: 0.8;
}
.payment-order-block .panel-corners::before {
    top: 10px; left: 10px;
    border-right: none; border-bottom: none;
    border-top-left-radius: 8px;
}
.payment-order-block .panel-corners::after {
    bottom: 10px; right: 10px;
    border-left: none; border-top: none;
    border-bottom-right-radius: 8px;
}
.payment-order-inner { position: relative; z-index: 1; }
.section-header--small { margin-top: 0; }
.section-header--small .section-title { font-size: 18px; }
.tech-divider--short { margin: 12px 0 20px; }
.payment-order-table-wrap {
    overflow-x: auto;
    margin-bottom: 4px;
}
.payment-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.payment-order-table th,
.payment-order-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(75, 201, 196, 0.18);
}
.payment-order-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    font-weight: 600;
}
.payment-order-table td {
    color: var(--text);
}
.payment-order-table tbody tr:last-child td { border-bottom: none; }
.payment-order-fields {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
}
.payment-field { margin: 0; }
.payment-field--sum { min-width: 180px; }
.payform-tinkoff-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}
.payment-input-tech {
    width: 100%;
    max-width: 160px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(75, 201, 196, 0.45);
    background: rgba(10, 16, 22, 0.9);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    transition: border-color 0.2s;
}
.payment-input-tech:focus {
    outline: none;
    border-color: var(--accent-strong);
}
#jet_count { -moz-appearance: textfield; }
#jet_count::-webkit-outer-spin-button,
#jet_count::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.payment-sum-wrap { margin: 0; }
.payment-sum-display {
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--panel-light);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-strong);
}
.payment-sum-desc {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}
.payment-order-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(75, 201, 196, 0.2);
    display: flex;
    justify-content: center;
}
.payment-submit-btn { min-width: 200px; }
.payment-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 640px) {
    .payment-servers { grid-template-columns: 1fr; }
    .payment-order-fields { grid-template-columns: 1fr; }
    .payment-field--sum { min-width: 0; }
}

/* Оформление билета: без горизонтального скролла таблицы — карточка строки */
@media (max-width: 640px) {
    .cabinet-tickets-checkout-panel .payment-order-block {
        padding: 16px 14px 20px;
    }
    .cabinet-tickets-checkout-panel .payment-order-table-wrap {
        margin: 0;
        padding: 0;
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
    }
    .cabinet-tickets-checkout-panel .payment-order-table {
        font-size: 15px;
        border-collapse: separate;
        border-spacing: 0;
    }
    .cabinet-tickets-checkout-panel .payment-order-table thead {
        display: none;
    }
    .cabinet-tickets-checkout-panel .payment-order-table tbody tr {
        display: block;
        margin-bottom: 14px;
        padding: 4px 0 2px;
        border-radius: 14px;
        border: 1px solid rgba(75, 201, 196, 0.28);
        background: rgba(10, 18, 26, 0.65);
        overflow: hidden;
    }
    .cabinet-tickets-checkout-panel .payment-order-table tbody tr:last-child {
        margin-bottom: 0;
    }
    .cabinet-tickets-checkout-panel .payment-order-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px 16px;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        text-align: right;
        border-bottom: 1px solid rgba(75, 201, 196, 0.12);
        white-space: normal;
        word-break: break-word;
    }
    .cabinet-tickets-checkout-panel .payment-order-table tbody td:last-child {
        border-bottom: none;
        font-weight: 700;
        font-size: 1.05rem;
        color: var(--accent-strong);
    }
    .cabinet-tickets-checkout-panel .payment-order-table tbody td::before {
        content: attr(data-label);
        flex-shrink: 0;
        max-width: 42%;
        text-align: left;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--muted);
        line-height: 1.35;
        padding-top: 2px;
    }
    .cabinet-tickets-checkout-panel .payment-input-tech {
        max-width: none;
        width: 100%;
        min-height: 48px;
        font-size: 18px;
    }
    .cabinet-tickets-checkout-panel .payment-order-fields--ticket {
        gap: 18px;
    }
    .cabinet-tickets-checkout-panel .payment-sum-display {
        font-size: 1.35rem;
    }
    .cabinet-tickets-checkout-panel .payment-order-actions {
        position: sticky;
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
        margin-top: 12px;
        padding: 20px 0 8px;
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
        border-top: none;
        background: linear-gradient(to top, rgba(9, 14, 20, 0.97) 50%, rgba(9, 14, 20, 0));
        z-index: 6;
    }
    .cabinet-tickets-checkout-panel .payment-submit-btn {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        font-size: 1.05rem;
        font-weight: 700;
        border-radius: 12px;
    }
    .cabinet-tickets-checkout-panel .payment-server-card {
        min-height: 56px;
        padding: 18px 16px;
    }
    .cabinet-tickets-checkout-panel .payment-server-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
}

/* ---- Cabinet: билеты (двухколоночный экран) ---- */
.cabinet-tickets-panel .section-header { margin-top: 24px; }
.cabinet-tickets-panel .cabinet-actions { margin-top: 32px; margin-bottom: 24px; }
.tickets-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: stretch;
    margin-top: 24px;
    margin-bottom: 8px;
    height: 810px;
    min-height: 690px;
}
.tickets-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    border-radius: 16px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(160deg, rgba(9, 14, 20, 0.98), rgba(16, 24, 34, 0.95));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.tickets-sidebar .panel-frame,
.tickets-sidebar .panel-corners,
.tickets-sidebar .panel-marks { pointer-events: none; }
.tickets-sidebar .panel-frame {
    position: absolute;
    inset: 12px;
    border-radius: 12px;
    border: 1px solid rgba(75, 201, 196, 0.18);
}
.tickets-sidebar .panel-corners { position: absolute; inset: 0; }
.tickets-sidebar .panel-corners::before,
.tickets-sidebar .panel-corners::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(75, 201, 196, 0.5);
    opacity: 0.8;
}
.tickets-sidebar .panel-corners::before {
    top: 8px; left: 8px;
    border-right: none; border-bottom: none;
    border-top-left-radius: 6px;
}
.tickets-sidebar .panel-corners::after {
    bottom: 8px; right: 8px;
    border-left: none; border-top: none;
    border-bottom-right-radius: 6px;
}
.tickets-sidebar .panel-marks { right: 10px; top: 10px; }
.tickets-sidebar-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tickets-sidebar-inner::-webkit-scrollbar { width: 8px; }
.tickets-sidebar-inner::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 4px; }
.tickets-sidebar-inner::-webkit-scrollbar-thumb { background: rgba(75, 201, 196, 0.35); border-radius: 4px; }

.ticket-item {
    position: relative;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid rgba(100, 140, 165, 0.4);
    background: linear-gradient(160deg, rgba(9, 14, 20, 0.95), rgba(16, 24, 34, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.12s ease;
}
.ticket-item--active {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(75, 201, 196, 0.15);
}
.ticket-item--active:hover,
.ticket-item--active.ticket-item--selected {
    border-color: rgba(75, 201, 196, 0.6);
    box-shadow: 0 0 16px rgba(75, 201, 196, 0.12);
}
.ticket-item--soldout {
    opacity: 0.7;
    border-color: rgba(100, 100, 100, 0.4);
    background: linear-gradient(160deg, rgba(18, 18, 22, 0.95), rgba(24, 24, 30, 0.9));
}
.ticket-item--soldout .ticket-item-thumb img {
    filter: grayscale(100%);
    pointer-events: none;
}
.ticket-item--placeholder {
    border-color: rgba(80, 80, 90, 0.4);
    background: rgba(14, 14, 18, 0.9);
    pointer-events: none;
}
.ticket-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(75, 201, 196, 0.25);
    flex-shrink: 0;
}
.ticket-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ticket-item-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ticket-item-thumb--placeholder img,
.ticket-placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}
.ticket-item-thumb--placeholder.ticket-placeholder-techno {
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}
.ticket-placeholder-line {
    display: block;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(75, 201, 196, 0.25);
    text-shadow: 0 0 12px rgba(75, 201, 196, 0.1);
    line-height: 1.2;
}
.ticket-placeholder-sg {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2em;
}
.ticket-placeholder-word {
    font-size: 9px;
    letter-spacing: 0.2em;
    color: rgba(100, 110, 120, 0.7);
}
.ticket-item-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    flex: 1;
}
.ticket-item-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    line-height: 1.25;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.ticket-item-name--muted { color: var(--muted); }
.ticket-item-price {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-strong);
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.ticket-item-badge {
    display: inline-flex;
    align-items: center;
    align-self: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(220, 200, 175, 0.95);
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(60, 52, 44, 0.85);
    border: 1px solid rgba(140, 120, 100, 0.35);
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}

.tickets-detail {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.tickets-detail-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(160deg, rgba(9, 14, 20, 0.98), rgba(16, 24, 34, 0.95));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.tickets-detail-panel .panel-frame,
.tickets-detail-panel .panel-corners,
.tickets-detail-panel .panel-marks { pointer-events: none; }
.tickets-detail-panel .panel-frame {
    position: absolute;
    inset: 14px;
    border-radius: 12px;
    border: 1px solid rgba(75, 201, 196, 0.18);
}
.tickets-detail-panel .panel-corners { position: absolute; inset: 0; }
.tickets-detail-panel .panel-corners::before,
.tickets-detail-panel .panel-corners::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(75, 201, 196, 0.5);
    opacity: 0.8;
}
.tickets-detail-panel .panel-corners::before {
    top: 10px; left: 10px;
    border-right: none; border-bottom: none;
    border-top-left-radius: 8px;
}
.tickets-detail-panel .panel-corners::after {
    bottom: 10px; right: 10px;
    border-left: none; border-top: none;
    border-bottom-right-radius: 8px;
}
.tickets-detail-panel .panel-marks { right: 14px; top: 14px; }
.tickets-detail-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.tickets-detail-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--muted);
    text-align: center;
}
.tickets-detail-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.tickets-detail-content .tickets-detail-desc {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.tickets-detail-empty-icon {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 4px;
    color: rgba(75, 201, 196, 0.2);
    margin-bottom: 16px;
}
.tickets-detail-empty p { margin: 0; font-size: 15px; }

.tickets-detail-aside {
    float: right;
    margin: 0 0 20px 24px;
    max-width: 220px;
}
.tickets-detail-image-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(75, 201, 196, 0.3);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    margin-bottom: 16px;
}
.tickets-detail-price-under-image {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.tickets-detail-image {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}
.tickets-detail-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-strong);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(75, 201, 196, 0.2);
}
.tickets-detail-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
}
.tickets-detail-desc p { margin: 0 0 10px; }
.tickets-detail-desc .ticket-prize { margin: 8px 0; }
.tickets-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px 32px;
    margin-bottom: 20px;
}
.tickets-detail-meta-item { }
.tickets-detail-meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 4px;
}
.tickets-detail-meta-value { font-size: 16px; font-weight: 600; color: var(--text); }
.tickets-detail-price-block {
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(75, 201, 196, 0.08);
    border: 1px solid rgba(75, 201, 196, 0.3);
    min-width: 140px;
}
.tickets-detail-price-block .tickets-detail-meta-label {
    margin-bottom: 6px;
    color: rgba(75, 201, 196, 0.9);
    font-size: 10px;
}
.tickets-detail-price {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-strong);
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.tickets-detail-actions {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(75, 201, 196, 0.2);
}
.tickets-btn-confirm { display: inline-block; }

/* Подписи для адаптивной вёрстки страницы билетов */
.tickets-lead-mobile { display: none; }
.tickets-picker-label {
    display: none;
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(75, 201, 196, 0.9);
}
.tickets-picker-label-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tickets-picker-label-text::before {
    content: "";
    width: 4px;
    height: 1em;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(75, 201, 196, 0.9), rgba(75, 201, 196, 0.35));
}
.tickets-detail-empty-msg-mobile { display: none; }

@media (max-width: 900px) {
    .tickets-page-lead .tickets-lead-desktop { display: none; }
    .tickets-page-lead .tickets-lead-mobile { display: block; }
    .tickets-picker-label { display: block; }

    .tickets-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        gap: 16px;
        margin-top: 16px;
        align-items: stretch;
    }
    .tickets-sidebar {
        order: 1;
    }
    /* Список билетов как в приложении: вертикально, без горизонтального скролла */
    .tickets-sidebar {
        border-radius: 14px;
        border-width: 1px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    }
    .tickets-sidebar-inner {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        overflow-x: visible;
        overflow-y: auto;
        scroll-snap-type: none;
        max-height: min(48vh, 380px);
        padding: 8px 10px 10px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .tickets-sidebar-inner::after {
        display: none;
    }
    .ticket-item {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 14px;
        box-sizing: border-box;
        border-radius: 12px;
        border-width: 1px;
        background: rgba(12, 18, 26, 0.92);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    }
    .ticket-item--active:active {
        transform: scale(0.99);
    }
    .ticket-item--active.ticket-item--selected {
        border-color: rgba(75, 201, 196, 0.85);
        box-shadow: 0 0 0 1px rgba(75, 201, 196, 0.25), 0 6px 20px rgba(0, 0, 0, 0.25);
        background: rgba(14, 28, 32, 0.95);
    }
    .ticket-item-thumb {
        width: 52px;
        height: 52px;
        border-radius: 10px;
    }
    .ticket-item-body {
        align-items: flex-start;
        text-align: left;
        flex: 1;
        min-width: 0;
        gap: 4px;
    }
    .ticket-item-name {
        font-size: 15px;
        font-weight: 700;
        text-align: left;
        line-height: 1.3;
    }
    .ticket-item-price {
        font-size: 16px;
        align-self: flex-start;
    }
    .ticket-item-badge {
        align-self: flex-start;
        margin-top: 2px;
    }
    .ticket-item--placeholder {
        justify-content: center;
        min-height: 72px;
        padding: 12px;
    }
    .ticket-item--placeholder .ticket-item-thumb {
        margin: 0 auto;
    }

    .tickets-detail {
        order: 2;
        min-height: 0;
    }
    .tickets-detail-panel {
        padding: 16px 14px 20px;
        min-height: 0;
    }
    .tickets-detail-inner {
        overflow-x: hidden;
    }
    .tickets-detail-empty-msg-desktop { display: none; }
    .tickets-detail-empty-msg-mobile { display: block; }

    .tickets-detail-content {
        display: block;
    }
    .tickets-detail-content::after {
        content: "";
        display: table;
        clear: both;
    }
    .tickets-detail-aside {
        float: none;
        margin: 0 auto 18px;
        max-width: min(280px, 88vw);
        width: 100%;
    }
    .tickets-detail-name {
        font-size: 1.35rem;
        text-align: center;
        margin: 0 0 14px;
        padding-bottom: 10px;
    }
    .tickets-detail-content .tickets-detail-desc {
        flex: none;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: visible;
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: 16px;
    }
    .tickets-detail-desc .ticket-prize {
        font-size: 14px;
    }
    .tickets-detail-meta {
        justify-content: center;
        gap: 20px;
        margin-bottom: 16px;
    }
    .tickets-detail-actions {
        position: sticky;
        bottom: max(10px, env(safe-area-inset-bottom, 0px));
        margin-top: 8px;
        padding: 18px 0 6px;
        background: linear-gradient(to top, rgba(9, 14, 20, 0.98) 55%, rgba(9, 14, 20, 0));
        border-top: none;
        z-index: 3;
    }
    .tickets-btn-confirm {
        width: 100%;
        min-height: 48px;
        box-sizing: border-box;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    .tickets-sidebar-inner {
        max-height: min(50vh, 360px);
        padding: 6px 8px 8px;
        gap: 6px;
    }
    .ticket-item {
        padding: 11px 12px;
        gap: 10px;
        border-radius: 11px;
    }
    .ticket-item-thumb {
        width: 48px;
        height: 48px;
    }
    .ticket-item-name {
        font-size: 14px;
    }
    .ticket-item-price {
        font-size: 15px;
    }
    .tickets-detail-price {
        font-size: 22px;
    }
    .cabinet-tickets-panel .cabinet-title {
        font-size: 1.5rem;
    }
    .cabinet-tickets-panel .cabinet-lead {
        font-size: 0.9rem;
        line-height: 1.45;
    }
}
.payment-order-fields--ticket .payment-field--sum { min-width: 160px; }

/* ---- Cabinet: кланы (две карточки Истоки / Наследие) ---- */
.cabinet-clans-panel .cabinet-actions { margin-top: 28px; }
.clans-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.clans-card {
    position: relative;
    border-radius: 16px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(160deg, rgba(9, 14, 20, 0.98), rgba(16, 24, 34, 0.95));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.clans-card .panel-frame,
.clans-card .panel-corners,
.clans-card .panel-marks { pointer-events: none; }
.clans-card .panel-frame {
    position: absolute;
    inset: 12px;
    border-radius: 12px;
    border: 1px solid rgba(75, 201, 196, 0.18);
}
.clans-card .panel-corners { position: absolute; inset: 0; }
.clans-card .panel-corners::before,
.clans-card .panel-corners::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(75, 201, 196, 0.5);
    opacity: 0.8;
}
.clans-card .panel-corners::before {
    top: 8px; left: 8px;
    border-right: none; border-bottom: none;
    border-top-left-radius: 6px;
}
.clans-card .panel-corners::after {
    bottom: 8px; right: 8px;
    border-left: none; border-top: none;
    border-bottom-right-radius: 6px;
}
.clans-card .panel-marks { right: 10px; top: 10px; }
.clans-card-inner {
    position: relative;
    z-index: 1;
    padding: 20px;
}
.clans-card-header {
    margin-bottom: 4px;
}
.clans-card-header .payment-server-header { margin-bottom: 6px; }
.clans-card-subtitle {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-strong);
}
.clans-card-content {
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
}
.clans-card-content p { margin: 0 0 8px; }
.clans-clan-name { margin-bottom: 12px; }
.clans-member {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(75, 201, 196, 0.15);
}
.clans-member:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.clans-member-name { margin: 0 0 4px; font-weight: 600; color: var(--text); }
.clans-member-meta { margin: 0; font-size: 13px; color: var(--muted); }
.clans-message { margin: 0; font-style: italic; }
.clans-message--muted { color: var(--muted); }
.clans-message--error { color: #e07a72; }
@media (max-width: 768px) {
    .clans-columns { grid-template-columns: 1fr; }
}

/* ---- Cabinet: рейтинги (Наследие, топ по уровню) ---- */
.cabinet-ratings-panel .cabinet-actions { margin-top: 28px; }
.ratings-card {
    position: relative;
    margin-top: 24px;
    border-radius: 16px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(160deg, rgba(9, 14, 20, 0.98), rgba(16, 24, 34, 0.95));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.ratings-card .panel-frame,
.ratings-card .panel-corners,
.ratings-card .panel-marks { pointer-events: none; }
.ratings-card .panel-frame {
    position: absolute;
    inset: 12px;
    border-radius: 12px;
    border: 1px solid rgba(75, 201, 196, 0.18);
}
.ratings-card .panel-corners { position: absolute; inset: 0; }
.ratings-card .panel-corners::before,
.ratings-card .panel-corners::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(75, 201, 196, 0.5);
    opacity: 0.8;
}
.ratings-card .panel-corners::before {
    top: 8px; left: 8px;
    border-right: none; border-bottom: none;
    border-top-left-radius: 6px;
}
.ratings-card .panel-corners::after {
    bottom: 8px; right: 8px;
    border-left: none; border-top: none;
    border-bottom-right-radius: 6px;
}
.ratings-card .panel-marks { right: 10px; top: 10px; }
.ratings-card-inner { position: relative; z-index: 1; padding: 20px; }
.ratings-card-header .payment-server-header { margin-bottom: 0; }
.ratings-table-wrap { overflow-x: auto; margin-top: 8px; }
.ratings-message {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(75, 201, 196, 0.08);
    border: 1px solid rgba(75, 201, 196, 0.25);
    color: var(--text);
}
.ratings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ratings-table th,
.ratings-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(75, 201, 196, 0.18);
}
.ratings-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    font-weight: 600;
}
.ratings-table td { color: var(--text); }
.ratings-row--highlight {
    background: rgba(35, 110, 135, 0.35);
    font-weight: 600;
}
.ratings-row--highlight td { text-align: center; }
.ratings-row--even td { background: rgba(17, 69, 64, 0.25); text-align: center; }
.ratings-row--odd td { background: rgba(0, 0, 0, 0.2); text-align: center; }
.ratings-row--banned td { color: var(--muted); text-align: center; }
.ratings-change--up { color: #4ade80; margin-left: 2px; }
.ratings-change--down { color: #e07a72; margin-left: 2px; }
.ratings-banned-icon { margin-left: 6px; color: var(--muted); }

/* ---- Cabinet: рейтинги ---- */
.cabinet-ratings-panel .cabinet-actions { margin-top: 28px; }
.ratings-card {
    position: relative;
    margin-top: 24px;
    border-radius: 16px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(160deg, rgba(9, 14, 20, 0.98), rgba(16, 24, 34, 0.95));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.ratings-card .panel-frame, .ratings-card .panel-corners, .ratings-card .panel-marks { pointer-events: none; }
.ratings-card .panel-frame { position: absolute; inset: 12px; border-radius: 12px; border: 1px solid rgba(75, 201, 196, 0.18); }
.ratings-card .panel-corners { position: absolute; inset: 0; }
.ratings-card .panel-corners::before, .ratings-card .panel-corners::after { content: ""; position: absolute; width: 28px; height: 28px; border: 2px solid rgba(75, 201, 196, 0.5); opacity: 0.8; }
.ratings-card .panel-corners::before { top: 8px; left: 8px; border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.ratings-card .panel-corners::after { bottom: 8px; right: 8px; border-left: none; border-top: none; border-bottom-right-radius: 6px; }
.ratings-card .panel-marks { right: 10px; top: 10px; }
.ratings-card-inner { position: relative; z-index: 1; padding: 20px; }
.ratings-card-header .payment-server-header { margin-bottom: 0; }
.ratings-table-wrap {
    overflow-x: auto;
    margin-top: 8px;
    border-radius: 12px;
    border: 1px solid rgba(75, 201, 196, 0.22);
    background: rgba(10, 16, 22, 0.6);
}
.ratings-message { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: rgba(75, 201, 196, 0.08); border: 1px solid rgba(75, 201, 196, 0.25); color: var(--text); }
.ratings-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ratings-table th, .ratings-table td { padding: 12px 14px; border-bottom: 1px solid rgba(75, 201, 196, 0.15); }
.ratings-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-strong);
    font-weight: 700;
    text-align: center;
    background: linear-gradient(180deg, rgba(75, 201, 196, 0.15), rgba(75, 201, 196, 0.06));
    border-bottom: 2px solid rgba(75, 201, 196, 0.4);
}
.ratings-table td { color: var(--text); text-align: center; }
.ratings-row--highlight { background: rgba(44, 72, 84, 0.5); font-weight: 600; }
.ratings-row--highlight td { text-align: center; }
.ratings-row--even td { background: rgba(27, 43, 51, 0.5); text-align: center; }
.ratings-row--odd td { background: rgba(18, 28, 36, 0.5); text-align: center; }
.ratings-row--banned td { color: var(--muted); text-align: center; }
.ratings-change--up { color: #4ade80; margin-left: 2px; }
.ratings-change--down { color: #e07a72; margin-left: 2px; }
.ratings-banned-icon { margin-left: 6px; color: var(--muted); }

/* Счётчики и карточки в стиле старого дашборда (sg-dashboard) */
.sg-dashboard { margin-top: 24px; }
.sg-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.sg-card {
    position: relative;
    padding: 20px;
    border-radius: 18px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(160deg, rgba(9, 14, 20, 0.98), rgba(16, 24, 34, 0.95));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.sg-card-wide { grid-column: 1 / -1; }
.sg-card-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(75, 201, 196, 0.2);
}
.sg-card-title i { margin-right: 8px; color: var(--accent-strong); }
.sg-card-title span { color: var(--accent-strong); }
.sg-card-content { color: var(--text); font-size: 15px; line-height: 1.5; }
.sg-guide .sg-card-content { padding-right: 20px; }
.sg-steps { display: grid; gap: 16px; }
.sg-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    align-items: start;
}
.sg-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(140deg, rgba(75, 201, 196, 0.35), rgba(43, 127, 123, 0.4));
    color: var(--accent-strong);
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sg-step-text { font-size: 14px; color: var(--muted); line-height: 1.55; }
.sg-step-text strong { color: var(--text); }

/* Блок описания выбранного билета */
.tickets-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 20px;
}
.ticket-details {
    min-width: 0;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(75, 201, 196, 0.25);
    background: rgba(10, 16, 22, 0.8);
}
.ticket-details-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-strong);
    margin: 0 0 8px;
}
.ticket-details-cost {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 14px;
}
.ticket-details-html {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}
.ticket-details-html p { margin: 0 0 10px; }
.ticket-details-placeholder { color: var(--muted); font-style: italic; }
.ticket-prize {
    margin: 10px 0;
    padding: 8px 0 8px 12px;
    border-left: 3px solid;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
}
.ticket-prize--high { border-color: #b14941; color: #e07a72; }
.ticket-prize--mid { border-color: #a5955d; color: #d4c078; }
.ticket-prize--low { border-color: var(--accent); color: var(--accent-strong); }
.ticket-prize-item {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid currentColor;
    opacity: 0.95;
}
.ticket-prize--high .ticket-prize-item { border-color: rgba(177, 73, 65, 0.5); background: rgba(177, 73, 65, 0.12); }
.ticket-prize--mid .ticket-prize-item { border-color: rgba(165, 149, 93, 0.5); background: rgba(165, 149, 93, 0.12); }
.ticket-prize--low .ticket-prize-item { border-color: rgba(75, 201, 196, 0.4); background: rgba(75, 201, 196, 0.1); }
.ticket-prize-img {
    float: right;
    margin: 0 0 10px 16px;
}
.ticket-prize-img img { max-width: 160px; height: auto; border-radius: 10px; }
@media (max-width: 768px) {
    .sg-columns { grid-template-columns: 1fr; }
    .tickets-row { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--border);
    padding: 24px 0 40px;
    color: var(--muted);
    font-size: 13px;
}
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0 40px;
    color: var(--muted);
    font-size: 13px;
}
.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}
.site-footer-copy { margin: 0; }
.site-footer-link {
    color: var(--accent-strong);
    text-decoration: none;
}
.site-footer-link:hover { text-decoration: underline; }

/* ---- Страница Правила и оферта (техно, шире, быстрый переход) ---- */
.offer-panel { max-width: 100%; margin-bottom: 48px; }
.offer-header { margin-bottom: 24px; }
.offer-title { margin: 0 0 8px; font-size: 28px; color: var(--text); }
.offer-lead { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.offer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(75, 201, 196, 0.25);
    background: rgba(10, 16, 22, 0.6);
}
.offer-nav-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 4px;
}
.offer-nav-link {
    font-size: 13px;
    color: var(--accent-strong);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.offer-nav-link:hover {
    background: rgba(75, 201, 196, 0.15);
    color: var(--text);
}
.offer-card {
    position: relative;
    border-radius: 16px;
    border: 2px solid rgba(100, 140, 165, 0.45);
    background: linear-gradient(160deg, rgba(9, 14, 20, 0.98), rgba(16, 24, 34, 0.95));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.offer-card .panel-frame, .offer-card .panel-corners, .offer-card .panel-marks { pointer-events: none; }
.offer-card .panel-frame {
    position: absolute;
    inset: 12px;
    border-radius: 12px;
    border: 1px solid rgba(75, 201, 196, 0.18);
}
.offer-card .panel-corners { position: absolute; inset: 0; }
.offer-card .panel-corners::before, .offer-card .panel-corners::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(75, 201, 196, 0.5);
    opacity: 0.8;
}
.offer-card .panel-corners::before { top: 8px; left: 8px; border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.offer-card .panel-corners::after { bottom: 8px; right: 8px; border-left: none; border-top: none; border-bottom-right-radius: 6px; }
.offer-card .panel-marks { right: 10px; top: 10px; }
.offer-card-inner { position: relative; z-index: 1; padding: 28px 32px; }
.offer-content { font-size: 15px; line-height: 1.7; color: var(--text); }
.offer-intro { margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid rgba(75, 201, 196, 0.2); }
.offer-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(75, 201, 196, 0.15);
}
.offer-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.offer-section h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-strong);
    letter-spacing: 0.02em;
}
.offer-section h2::before { content: ""; display: block; height: 2px; width: 24px; background: linear-gradient(90deg, var(--accent-strong), transparent); margin-bottom: 10px; border-radius: 1px; }
.offer-section p { margin: 0 0 12px; }
.offer-section p:last-child { margin-bottom: 0; }
.offer-section a { color: var(--accent-strong); }
.offer-section a:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .site-header {
        margin-top: 8px;
        padding: 10px 12px;
        border-radius: 14px;
    }
    .header-shell {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .header-brand-row {
        order: 1;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .brand { min-width: 0; }
    .brand-mark {
        width: 38px;
        height: 38px;
        font-size: 14px;
        border-radius: 10px;
    }
    .brand-title { font-size: 14px; letter-spacing: 1px; }
    .brand-subtitle { font-size: 9px; letter-spacing: 1px; }
    .header-actions-scroll-wrap {
        order: 2;
        display: flex;
        width: 100%;
        max-width: 100%;
        align-items: stretch;
        gap: 4px;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(75, 201, 196, 0.12);
        padding-bottom: 4px;
    }
    .header-actions-scroll-wrap:not(.is-scrollable) .header-actions-scroll-btn {
        display: none !important;
    }
    .header-actions-scroll-wrap.is-scrollable .header-actions-scroll-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
        width: 34px;
        min-width: 34px;
        margin: 4px 0 8px;
        border: none;
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(18, 28, 34, 0.98), rgba(8, 14, 18, 0.95));
        color: var(--accent-strong, #4bc9c4);
        font-size: 13px;
        cursor: pointer;
        box-shadow:
            inset 0 0 0 1px rgba(75, 201, 196, 0.35),
            0 2px 10px rgba(0, 0, 0, 0.25);
        transition: opacity 0.2s, transform 0.15s, background 0.2s;
    }
    .header-actions-scroll-wrap.is-scrollable .header-actions-scroll-btn:disabled {
        opacity: 0.28;
        cursor: default;
        box-shadow: inset 0 0 0 1px rgba(75, 201, 196, 0.12);
    }
    .header-actions-scroll-wrap.is-scrollable .header-actions-scroll-btn:not(:disabled):active {
        transform: scale(0.94);
        background: rgba(75, 201, 196, 0.12);
    }
    .header-actions {
        flex: 1;
        min-width: 0;
        width: auto;
        max-width: none;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 4px 2px 8px;
        margin: 0;
        box-sizing: border-box;
        border-bottom: none;
    }
    .header-actions::-webkit-scrollbar { height: 4px; }
    .header-actions::-webkit-scrollbar-thumb {
        background: rgba(75, 201, 196, 0.35);
        border-radius: 4px;
    }
    .header-actions .status-pill {
        flex: 0 0 auto;
        max-width: 38vw;
        padding: 5px 8px;
        font-size: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-actions .btn {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    .header-actions form {
        flex: 0 0 auto;
        margin: 0;
    }
    .header-actions form .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    .menu {
        order: 3;
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 6px;
        padding: 8px 0 4px;
        border-top: 1px solid rgba(75, 201, 196, 0.1);
    }
    .site-header.is-open .menu { display: flex; }
    .menu-item { width: 100%; }
    .menu-link { width: 100%; justify-content: space-between; }
    .menu-dropdown {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        display: none;
        margin-top: 6px;
    }
    .menu-item.is-open .menu-dropdown { display: block; }
    .burger {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        gap: 4px;
    }
}
@media (max-width: 900px) {
    .intro-content { grid-template-columns: 1fr; }
    .hero { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .news-section { grid-template-columns: 1fr; }
    .news-main { grid-template-columns: 1fr; }
    .hero-status { grid-template-columns: 1fr; }
}

/* ---- Compact mobile tuning (cabinet + site) ---- */
@media (max-width: 768px) {
    .container { padding: 0 12px; }
    .site-header {
        margin-top: 6px;
        padding: 8px 10px;
        border-radius: 12px;
    }
    .menu-link {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12px;
    }
    .btn {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 12px;
    }
    .hero {
        gap: 14px;
        padding: 14px;
        border-radius: 12px;
    }
    .hero h1,
    .hero-title {
        font-size: 28px;
        line-height: 1.1;
    }
    .hero p {
        margin-bottom: 14px;
        font-size: 13px;
        line-height: 1.55;
    }
    .status-card,
    .card,
    .page-card {
        border-radius: 12px;
    }
    .section-header {
        margin-bottom: 14px;
    }
    .section-title {
        font-size: 20px;
    }
    .section-meta {
        font-size: 12px;
    }
    .cabinet-intro {
        margin-bottom: 12px;
    }
    .cabinet-title {
        font-size: 24px;
        margin-bottom: 6px;
    }
    .cabinet-lead {
        font-size: 13px;
        line-height: 1.5;
    }
    .cabinet-servers,
    .payment-servers,
    .clans-columns,
    .grid {
        gap: 12px;
    }
    .cabinet-server-card,
    .payment-server-card,
    .clans-card,
    .ratings-card {
        border-radius: 12px;
    }
    .cabinet-server-body,
    .clans-card-inner,
    .ratings-card-inner {
        padding: 14px;
    }
    .cabinet-stat {
        padding: 9px 10px;
    }
    .cabinet-stat-label {
        font-size: 11px;
    }
    .cabinet-stat-value {
        font-size: 16px;
    }
    .cabinet-actions {
        gap: 8px;
        margin-top: 16px;
    }
    .payment-order-block,
    .login-card,
    .offer-card-inner {
        padding: 14px;
    }
    .payment-order-fields {
        gap: 12px;
    }
    .payment-input-tech {
        padding: 10px 12px;
        font-size: 16px;
    }
    .payment-sum-display {
        padding: 12px 14px;
        font-size: 18px;
    }
    .site-footer,
    .footer {
        padding: 18px 0 24px;
        font-size: 12px;
    }
    .site-footer-inner {
        gap: 8px 12px;
    }
}

@media (max-width: 560px) {
    .container { padding: 0 10px; }
    .header-actions .status-pill {
        max-width: 46vw;
        font-size: 9px;
        padding: 4px 7px;
    }
    .hero {
        padding: 12px;
        gap: 12px;
    }
    .hero h1,
    .hero-title {
        font-size: 24px;
    }
    .section-title {
        font-size: 18px;
    }
    .card,
    .page-card,
    .status-card,
    .cabinet-server-card,
    .payment-server-card {
        padding: 12px;
    }
    .cabinet-title {
        font-size: 21px;
    }
    .cabinet-lead {
        font-size: 12px;
    }
    .btn {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 11px;
    }
    .payment-submit-btn {
        min-height: 44px;
        font-size: 14px;
    }
}

/* ---- Desktop compact mode (global readability) ---- */
@media (min-width: 1100px) {
    body {
        font-size: 15px;
        line-height: 1.5;
    }
    .container {
        max-width: 1060px;
        padding: 0 20px;
    }
    .site-header {
        margin-top: 12px;
        padding: 14px;
        border-radius: 16px;
    }
    .menu {
        font-size: 12px;
        letter-spacing: 1.1px;
    }
    .menu-link {
        padding: 7px 10px;
    }
    .btn {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 9px;
    }
    .page-panel {
        margin-top: 18px;
        padding: 18px;
        border-radius: 14px;
    }
    .page-card,
    .card,
    .status-card,
    .cabinet-server-card,
    .payment-server-card {
        padding: 14px;
        border-radius: 14px;
    }
    .cabinet-title {
        margin-bottom: 6px;
        font-size: 22px;
    }
    .cabinet-lead {
        font-size: 14px;
    }
    .cabinet-servers {
        gap: 16px;
        margin-top: 14px;
    }
    .offer-title {
        font-size: 24px;
    }
    .offer-card-inner {
        padding: 20px 22px;
    }
    .site-footer,
    .footer {
        padding: 16px 0 20px;
        font-size: 12px;
    }
}
