/* ============================================================
   LOUTAB CS — общие стили
   ============================================================ */

:root {
    --bg: #07090d;
    --bg-2: #0b0f16;
    --panel: #11161f;
    --panel-2: #161c28;
    --panel-3: #1b2230;
    --border: #1e2633;
    --border-2: #2a3444;
    --text: #e7ecf3;
    --muted: #8b98ab;
    --muted-2: #64718a;

    --accent: #ff6b1a;
    --accent-2: #ff8a3d;
    --accent-glow: rgba(255, 107, 26, .35);

    --blue: #4b9fea;
    --purple: #a259ff;
    --pink: #ff4f9a;
    --red: #eb4b4b;
    --gold: #f0b429;
    --green: #35d07f;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
    --container: 1180px;

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Rajdhani", "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(900px 500px at 12% -8%, rgba(255, 107, 26, .12), transparent 60%),
        radial-gradient(800px 500px at 100% 0%, rgba(75, 159, 234, .10), transparent 55%),
        linear-gradient(180deg, #07090d 0%, #080b11 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
ul { list-style: none; }

::selection { background: var(--accent); color: #fff; }

/* Скроллбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #2a3444; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a4658; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}

/* ============================================================
   Шапка
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 11, 16, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #ff4400);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -.5px;
    box-shadow: 0 6px 18px var(--accent-glow);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.logo-text b { color: var(--accent); }

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav a {
    padding: 9px 14px;
    border-radius: 8px;
    font-size: .94rem;
    font-weight: 500;
    color: var(--muted);
    transition: color .18s, background .18s;
}

.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }

.nav a.active {
    color: #fff;
    background: rgba(255, 107, 26, .12);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .3);
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--border-2);
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    transition: border-color .18s, transform .18s;
}

.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 3px var(--bg);
}

.burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-2);
    border-radius: 10px;
    background: var(--panel);
    cursor: pointer;
    padding: 11px;
}

.burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: .25s;
}

.burger span + span { margin-top: 5px; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Кнопки
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .94rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
    white-space: nowrap;
}

.btn svg { width: 17px; height: 17px; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ff4400);
    color: #fff;
    box-shadow: 0 10px 26px rgba(255, 90, 10, .32);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 90, 10, .45); }

.btn-ghost {
    background: var(--panel);
    border-color: var(--border-2);
    color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); color: #fff; }

.btn-soft {
    background: rgba(255, 107, 26, .1);
    border-color: rgba(255, 107, 26, .32);
    color: var(--accent-2);
}

.btn-soft:hover { background: rgba(255, 107, 26, .18); }

.btn-sm { padding: 9px 15px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
    position: relative;
    padding: 78px 0 64px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 107, 26, .3);
    border-radius: 999px;
    background: rgba(255, 107, 26, .08);
    color: var(--accent-2);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.8); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.gradient-text {
    background: linear-gradient(120deg, var(--accent-2), #ff4d00 45%, #ff9a5c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 540px;
    color: var(--muted);
    font-size: 1.06rem;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.hero-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.mini-stat b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
    line-height: 1.1;
}

.mini-stat span { font-size: .8rem; color: var(--muted-2); }

/* Визуал героя */
.hero-visual {
    position: relative;
    perspective: 1200px;
}

.server-card {
    position: relative;
    padding: 24px;
    border: 1px solid var(--border-2);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 40%),
        var(--panel);
    box-shadow: var(--shadow);
    transform: rotateY(-4deg) rotateX(2deg);
    transition: transform .3s;
}

.server-card:hover { transform: rotateY(0) rotateX(0) translateY(-4px); }

.server-card-top {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--green);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(53, 208, 127, .15);
    animation: pulse 1.6s infinite;
}

.server-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.server-card .sub { color: var(--muted-2); font-size: .84rem; margin-bottom: 18px; }

.progress {
    height: 8px;
    border-radius: 999px;
    background: #0a0e14;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 10px;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    box-shadow: 0 0 16px var(--accent-glow);
}

.server-meta {
    display: flex;
    justify-content: space-between;
    font-size: .82rem;
    color: var(--muted);
}

.floating-card {
    position: absolute;
    right: -14px;
    bottom: -30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border-2);
    border-radius: 14px;
    background: var(--panel-2);
    box-shadow: var(--shadow);
    animation: float 5s ease-in-out infinite;
}

.floating-card .fc-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(75, 159, 234, .12);
    border: 1px solid rgba(75, 159, 234, .3);
}

.floating-card b { display: block; font-size: .9rem; }
.floating-card span { font-size: .74rem; color: var(--muted-2); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================================
   Полоса статистики
   ============================================================ */

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 10px 0 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--border);
}

.stat {
    padding: 22px 20px;
    background: var(--bg-2);
}

.stat b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: #fff;
    line-height: 1.15;
}

.stat span { color: var(--muted-2); font-size: .82rem; }

/* ============================================================
   Секции
   ============================================================ */

.section { padding: 68px 0; }
.section-sm { padding: 40px 0; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: .5px;
    line-height: 1.1;
    margin-top: 6px;
}

.section-head .eyebrow { margin-bottom: 0; }
.section-desc { color: var(--muted); max-width: 560px; margin-top: 8px; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent-2);
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    transition: gap .18s;
}

.link-arrow:hover { gap: 12px; }

/* ============================================================
   Карточки
   ============================================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}

/* Редкости */
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--border-2);
    z-index: 2;
}

.card.r-blue::before { background: linear-gradient(90deg, var(--blue), #7cc0ff); }
.card.r-purple::before { background: linear-gradient(90deg, var(--purple), #c89bff); }
.card.r-pink::before { background: linear-gradient(90deg, var(--pink), #ff8cc0); }
.card.r-red::before { background: linear-gradient(90deg, var(--red), #ff8080); }
.card.r-gold::before { background: linear-gradient(90deg, var(--gold), #ffd873); }

.item-card { display: flex; flex-direction: column; }

.item-img {
    position: relative;
    height: 148px;
    display: grid;
    place-items: center;
    font-size: 3.2rem;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .06), transparent 60%),
        linear-gradient(180deg, var(--panel-2), var(--panel));
    border-bottom: 1px solid var(--border);
}

.item-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 100% 12px;
    opacity: .5;
    pointer-events: none;
}

.item-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, .5);
    border: 1px solid var(--border-2);
    color: var(--muted);
    backdrop-filter: blur(4px);
}

.item-tag.hot { color: #fff; background: rgba(255, 77, 0, .85); border-color: transparent; }

.item-info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.item-name { font-weight: 600; font-size: .98rem; margin-bottom: 3px; }
.item-sub { font-size: .78rem; color: var(--muted-2); margin-bottom: 14px; }

.price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.price small { font-size: .7rem; color: var(--muted-2); font-weight: 500; }
.old-price { font-size: .8rem; color: var(--muted-2); text-decoration: line-through; margin-left: 6px; }

/* ============================================================
   Чипы / фильтры
   ============================================================ */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
}

.chip {
    padding: 8px 15px;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    font-size: .84rem;
    font-weight: 500;
    cursor: pointer;
    transition: .18s;
}

.chip:hover { color: #fff; border-color: #3a4658; }

.chip.active {
    background: rgba(255, 107, 26, .13);
    border-color: rgba(255, 107, 26, .45);
    color: var(--accent-2);
}

/* ============================================================
   Заголовок страницы
   ============================================================ */

.page-hero {
    padding: 54px 0 34px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 107, 26, .05), transparent);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: .5px;
    line-height: 1.05;
    margin: 10px 0 10px;
}

.page-hero p { color: var(--muted); max-width: 640px; }

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--muted-2);
}

.breadcrumbs a:hover { color: var(--accent-2); }
.breadcrumbs span { color: var(--border-2); }

/* ============================================================
   Форум
   ============================================================ */

.forum-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.sidebar { position: sticky; top: 92px; display: grid; gap: 16px; }

.side-card {
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.side-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 12px;
}

.cat-list { display: grid; gap: 4px; }

.cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    color: var(--muted);
    font-size: .88rem;
    transition: .16s;
}

.cat-item:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.cat-item.active { background: rgba(255, 107, 26, .12); color: var(--accent-2); }

.cat-count { font-size: .72rem; color: var(--muted-2); }

.thread-list { display: grid; gap: 12px; }

.thread-card {
    display: flex;
    gap: 15px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s, transform .2s;
}

.thread-card:hover { border-color: var(--border-2); transform: translateX(3px); }

.avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #2a3444, #1a2130);
    border: 1px solid var(--border-2);
}

.avatar.a1 { background: linear-gradient(135deg, #ff6b1a, #a83a00); border-color: transparent; }
.avatar.a2 { background: linear-gradient(135deg, #4b9fea, #1d5fa0); border-color: transparent; }
.avatar.a3 { background: linear-gradient(135deg, #a259ff, #5b2a9e); border-color: transparent; }
.avatar.a4 { background: linear-gradient(135deg, #35d07f, #16794a); border-color: transparent; }

.thread-main { flex: 1; min-width: 0; }

.thread-title {
    font-weight: 600;
    font-size: .98rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.thread-title a:hover { color: var(--accent-2); }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border-2);
    color: var(--muted);
}

.tag.t-hot { color: #ff9a5c; border-color: rgba(255, 107, 26, .4); background: rgba(255, 107, 26, .1); }
.tag.t-solved { color: var(--green); border-color: rgba(53, 208, 127, .35); background: rgba(53, 208, 127, .08); }
.tag.t-guide { color: var(--blue); border-color: rgba(75, 159, 234, .35); background: rgba(75, 159, 234, .08); }

.thread-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .78rem;
    color: var(--muted-2);
}

.thread-meta span { display: inline-flex; align-items: center; gap: 5px; }
.thread-meta svg { width: 13px; height: 13px; }

.thread-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: .78rem;
    color: var(--muted-2);
    text-align: right;
}

.thread-stats b { color: var(--text); font-size: .92rem; }

/* ============================================================
   Маркет
   ============================================================ */

.market-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.tabs {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
}

.tab {
    padding: 8px 18px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: .18s;
}

.tab:hover { color: #fff; }

.tab.active {
    background: linear-gradient(135deg, var(--accent), #ff4400);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 90, 10, .3);
}

.search {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.search svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: var(--muted-2);
}

.search input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    background: var(--panel);
    border: 1px solid var(--border-2);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: .9rem;
    outline: none;
    transition: border-color .18s;
}

.search input::placeholder { color: var(--muted-2); }
.search input:focus { border-color: var(--accent); }

.script-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.script-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.script-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .38);
}

.script-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 12px;
}

.script-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 1.25rem;
    background: rgba(255, 107, 26, .1);
    border: 1px solid rgba(255, 107, 26, .28);
}

.script-icon.lua { background: rgba(75, 159, 234, .1); border-color: rgba(75, 159, 234, .28); }

.script-title { font-weight: 600; font-size: 1rem; margin-bottom: 3px; }
.script-author { font-size: .78rem; color: var(--muted-2); }

.script-desc {
    font-size: .86rem;
    color: var(--muted);
    margin-bottom: 14px;
    flex: 1;
}

.script-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.script-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.script-meta {
    display: flex;
    gap: 12px;
    font-size: .76rem;
    color: var(--muted-2);
}

.script-meta span { display: inline-flex; align-items: center; gap: 5px; }
.script-meta svg { width: 13px; height: 13px; }

.ver {
    font-size: .72rem;
    color: var(--muted-2);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
    position: relative;
    margin: 30px 0 70px;
    padding: 52px 40px;
    border: 1px solid rgba(255, 107, 26, .25);
    border-radius: 22px;
    background:
        radial-gradient(600px 300px at 15% 0%, rgba(255, 107, 26, .18), transparent 60%),
        linear-gradient(180deg, var(--panel-2), var(--panel));
    overflow: hidden;
    text-align: center;
}

.cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 12px;
}

.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ============================================================
   Футер
   ============================================================ */

.site-footer {
    border-top: 1px solid var(--border);
    background: #06080c;
    padding: 46px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-brand p {
    color: var(--muted);
    font-size: .88rem;
    margin-top: 14px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    padding: 5px 0;
    color: var(--muted);
    font-size: .88rem;
    transition: color .16s;
}

.footer-col a:hover { color: var(--accent-2); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-size: .8rem;
    color: var(--muted-2);
}

.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent-2); }

/* ============================================================
   Модалка
   ============================================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, .7);
    backdrop-filter: blur(6px);
}

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px;
    background: var(--panel);
    border: 1px solid var(--border-2);
    border-radius: 18px;
    box-shadow: var(--shadow);
    animation: modalIn .2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to { opacity: 1; transform: none; }
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-head h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.modal-close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-2);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: .18s;
}

.modal-close:hover { color: #fff; border-color: var(--red); }

.form-group { margin-bottom: 15px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--muted);
}

.input, .textarea, .select {
    width: 100%;
    padding: 11px 13px;
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: 9px;
    color: var(--text);
    font-family: inherit;
    font-size: .9rem;
    outline: none;
    transition: border-color .18s;
}

.textarea { min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); }

/* ============================================================
   Тосты
   ============================================================ */

.toast-wrap {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: calc(100vw - 40px);
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--panel-2);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow);
    font-size: .88rem;
    animation: toastIn .25s ease;
}

.toast.ok { border-color: rgba(53, 208, 127, .45); }
.toast.ok::before { content: "✓"; color: var(--green); font-weight: 700; }
.toast.info::before { content: "i"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* ============================================================
   Пустое состояние
   ============================================================ */

.empty {
    padding: 50px 20px;
    text-align: center;
    color: var(--muted-2);
    border: 1px dashed var(--border-2);
    border-radius: var(--radius);
}

.empty b { display: block; color: var(--muted); margin-bottom: 4px; }

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 460px; }
    .forum-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px 18px 22px;
        background: rgba(8, 11, 16, .98);
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform .25s ease;
    }

    .nav.open { transform: translateY(0); }

    .nav a { padding: 12px 14px; }

    .burger { display: block; }

    .header-actions .btn-ghost { display: none; }

    .hero { padding: 50px 0 46px; }
    .stats-strip { grid-template-columns: 1fr 1fr; }
    .section { padding: 50px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .cta { padding: 40px 22px; }
    .thread-stats { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 420px) {
    .stats-strip { grid-template-columns: 1fr; }
    .hero-mini-stats { gap: 20px; }
    .item-img { height: 128px; }
}

/* Утилиты */
.hidden { display: none !important; }
.mt-0 { margin-top: 0 !important; }

/* ============================================================
   Карточки возможностей
   ============================================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 26, .35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .38);
}

.feature-ico {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 12px;
    font-size: 1.35rem;
    background: rgba(255, 107, 26, .1);
    border: 1px solid rgba(255, 107, 26, .28);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: .88rem;
    color: var(--muted);
}

/* ============================================================
   Обновления (changelog)
   ============================================================ */

.changelog {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.changelog-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.changelog-item:last-child { border-bottom: 0; }

.changelog-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.changelog-item p {
    font-size: .9rem;
    color: var(--muted);
}

/* ============================================================
   Личный кабинет
   ============================================================ */

.account-layout {
    display: grid;
    grid-template-columns: minmax(0, 440px) 1fr;
    gap: 24px;
    align-items: start;
    max-width: 940px;
    margin: 0 auto;
}

.auth-card,
.account-panel {
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.auth-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
}

.auth-tabs .tab { flex: 1; }

.auth-error {
    display: none;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(235, 75, 75, .35);
    border-radius: 8px;
    background: rgba(235, 75, 75, .1);
    color: #ff8f8f;
    font-size: .84rem;
}

.auth-error.show { display: block; }

.auth-note {
    margin-top: 16px;
    font-size: .78rem;
    color: var(--muted-2);
    line-height: 1.5;
}

.account-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 1.6rem;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}

.account-field {
    padding: 12px 14px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.account-field span {
    display: block;
    margin-bottom: 4px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.account-field b {
    font-size: .95rem;
    font-weight: 600;
}

@media (max-width: 760px) {
    .account-layout { grid-template-columns: 1fr; }
    .account-grid { grid-template-columns: 1fr; }
}

