/* =====================================================================
   EMPIRE RUSSIA — основной стиль
   Компоновка — прежняя структура сайта (стеклянная шапка, герой из двух карточек,
   особенности, карусели шагов и новостей, подвал, нижняя панель на телефоне).
   Палитра — цвета тёмной темы форума XenForo, чтобы сайт и форум смотрелись как одно целое.
   Разделы: 1 токены · 2 база · 3 фон · 4 шапка · 5 кнопки · 6 герой · 7 секции
            8 новости · 9 общие компоненты · 10 формы и окна · 11 мобильная навигация · 12 подвал · 13 адаптив
   ===================================================================== */

/* ---------- 1. ТОКЕНЫ (цвета форума) ---------- */
:root {
    --bg-body: #081328;          /* фон страницы форума */
    --bg-header: #00102e;        /* шапка форума */
    --bg-card: #1a2238;          /* карточки форума */
    --bg-card-hi: #1c2748;       /* карточка-герой форума */
    --bg-elevated: #27315a;
    --bg-input: #0f1830;
    --line: #242a49;

    --primary: #0068f8;          /* основная кнопка форума */
    --primary-hi: #1a7dff;
    --primary-glow: rgba(0, 104, 248, .5);
    --accent: #0190fb;           /* акцентный голубой форума (заголовки разделов) */
    --accent-soft: rgba(1, 144, 251, .14);
    --violet: #418bec;           /* светлая версия фиолетовой плашки форума #1b5096 */
    --violet-deep: #1b5096;
    --magenta: #3c6396;          /* кружки-иконки форума */
    --violet-soft: rgba(65, 139, 236, .16);

    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #f43f5e;

    --text-main: #ffffff;
    --text-sub: #9aa3bd;
    --text-muted: #6b7493;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 9999px;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all .3s cubic-bezier(.16, 1, .3, 1);
    --ease: cubic-bezier(.16, 1, .3, 1);
    --header-h: 74px;
    --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- 2. БАЗА ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: calc(var(--header-h) + 12px); }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-hi); }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(72px + var(--safe-b));
}
@media (min-width: 769px) { body { padding-bottom: 0; } }
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #5ab4ff; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary); color: #fff; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 3000; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.honeypot-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- 3. ФОН ---------- */
.bg-decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-blob { position: absolute; border-radius: 50%; filter: blur(140px); opacity: .38; animation: blobFloat 25s ease-in-out infinite; will-change: transform; }
.bg-blob-1 { width: 700px; height: 700px; background: radial-gradient(circle, var(--primary), transparent 60%); top: -250px; left: -150px; }
.bg-blob-2 { width: 700px; height: 700px; background: radial-gradient(circle, #2f73cc, transparent 60%); bottom: -250px; right: -150px; animation-delay: -8s; }
.bg-blob-3 { width: 600px; height: 600px; background: radial-gradient(circle, #264671, transparent 60%); top: 30%; left: 40%; animation-delay: -15s; opacity: .3; }
.hero-viewport { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; opacity: .28; }
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 80% 15%, rgba(0, 104, 248, .28) 0%, transparent 50%),
        radial-gradient(circle at 15% 85%, rgba(38, 70, 113, .30) 0%, transparent 50%),
        linear-gradient(180deg, rgba(8, 19, 40, .62) 0%, rgba(8, 19, 40, .96) 100%);
}
.app-container { min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---------- 4. ШАПКА ---------- */
.staffbar { display: none; }
.site-header {
    position: sticky; top: 0; z-index: 100; padding: 14px 0;
    background: rgba(0, 16, 46, .55);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(1, 144, 251, .16);
    transition: var(--transition);
}
.site-header.is-scrolled { background: rgba(0, 16, 46, .92); box-shadow: 0 4px 22px rgba(0, 8, 24, .65); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-logo { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo img { height: 46px; width: auto; filter: drop-shadow(0 0 14px rgba(1, 144, 251, .6)); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-item {
    display: inline-flex; align-items: center; gap: 8px; color: var(--text-sub); font-size: .85rem; font-weight: 800;
    padding: 8px 18px; border-radius: var(--radius-full); transition: var(--transition); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
    background: transparent; border: 1px solid transparent;
}
.nav-item:hover, .nav-item.active { color: #fff; background: var(--accent-soft); border-color: rgba(1, 144, 251, .32); box-shadow: 0 0 15px rgba(1, 144, 251, .2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; gap: 2px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 9999px; padding: 3px; }
.lang-btn { padding: 6px 12px; font-size: .75rem; font-weight: 800; border-radius: 9999px; letter-spacing: .5px; transition: var(--transition); color: var(--text-muted); }
.lang-btn:hover { color: #fff; }
.lang-btn.is-current { color: #fff; background: var(--primary); }
.badge-age { display: inline-flex; align-items: center; justify-content: center; padding: 4px 9px; font-size: .7rem; font-weight: 900; color: var(--text-sub); border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px; }
.avatar-btn { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px 0 5px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 9999px; color: #fff; font-size: .85rem; font-weight: 800; max-width: 200px; transition: var(--transition); }
.avatar-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(1, 144, 251, .4); }
.avatar-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-card); border: 2px solid rgba(255, 255, 255, .14); }
.avatar--fallback { display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; color: #fff; text-transform: uppercase; }
.avatar--sm { width: 22px; height: 22px; border-width: 1px; font-size: 10px; }
.avatar--lg { width: 64px; height: 64px; font-size: 24px; }
.burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; color: #fff; transition: var(--transition); }
.burger:hover { background: rgba(255, 255, 255, .12); }
.burger svg { width: 20px; height: 20px; }

/* ---------- 5. КНОПКИ ---------- */
.btn {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; user-select: none;
    border: 0; border-radius: 14px; padding: 12px 22px; font-size: .85rem; color: #fff; background: rgba(255, 255, 255, .06);
    transition: all .3s var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-3px); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--sm { padding: 9px 16px; font-size: .78rem; border-radius: 10px; min-height: 38px; }
.btn--lg { padding: 16px 32px; font-size: .95rem; border-radius: 16px; }
.btn--block { width: 100%; }
.btn--download { background: linear-gradient(135deg, #0190fb 0%, #0068f8 100%); box-shadow: 0 6px 20px rgba(0, 104, 248, .4), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--download:hover { box-shadow: 0 10px 30px rgba(1, 144, 251, .6), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn--primary { background: linear-gradient(135deg, #0068f8 0%, #2f76d2 100%); box-shadow: 0 6px 20px rgba(47, 118, 210, .35), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn--primary:hover { box-shadow: 0 10px 30px rgba(47, 118, 210, .55); }
.btn--ghost, .btn--secondary { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(10px); }
.btn--ghost:hover, .btn--secondary:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.btn--cyan { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(1, 144, 251, .32); }
.btn--cyan:hover { background: rgba(1, 144, 251, .25); color: #5ab4ff; box-shadow: 0 6px 15px rgba(1, 144, 251, .3); }
.btn--warn { background: var(--violet-soft); color: #aacefd; border: 1px solid rgba(65, 139, 236, .35); }
.btn--warn:hover { background: rgba(65, 139, 236, .28); color: #fff; }
.btn--danger { background: rgba(244, 63, 94, .1); color: #fda4af; border: 1px solid rgba(244, 63, 94, .3); }
.btn--danger:hover { background: rgba(244, 63, 94, .22); color: #fff; }
.btn--ok { background: rgba(16, 185, 129, .12); color: #34d399; border: 1px solid rgba(16, 185, 129, .32); }
.btn--ok:hover { background: rgba(16, 185, 129, .25); color: #fff; }
.btn--shimmer::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent); transition: left .5s; pointer-events: none; }
.btn--shimmer:hover::before { left: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- 6. ГЕРОЙ ---------- */
.hero-section { padding: 50px 0 70px; position: relative; }
.hero-wrapper { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; max-width: 1150px; margin: 0 auto; align-items: stretch; }
.hero-card, .online-box {
    background: linear-gradient(145deg, rgba(28, 39, 72, .78) 0%, rgba(8, 19, 40, .92) 100%);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(1, 144, 251, .22);
    box-shadow: 0 20px 40px -10px rgba(0, 8, 24, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
    border-radius: 24px; position: relative;
}
.hero-card { padding: 40px 44px; overflow: hidden; }
.hero-card::before { content: ''; position: absolute; inset: 0; border-radius: 24px; padding: 1px; background: linear-gradient(135deg, rgba(1, 144, 251, .45), transparent 40%, transparent 60%, rgba(60, 99, 150, .5)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); padding: 8px 14px; border-radius: 9999px; background: rgba(1, 144, 251, .1); border: 1px solid rgba(1, 144, 251, .25); margin-bottom: 22px; position: relative; z-index: 1; }
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: livePulse 1.5s infinite; }
.hero-title { font-size: clamp(2.6rem, 4.5vw, 4.2rem); font-weight: 900; line-height: 1.05; text-transform: uppercase; margin-bottom: 20px; letter-spacing: -.02em; position: relative; z-index: 1; }
.title-gradient { background: linear-gradient(180deg, #fff 20%, #bcd6ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.title-glow { background: linear-gradient(90deg, #0190fb, #60a3fb); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; filter: drop-shadow(0 0 25px rgba(65, 139, 236, .45)); }
.hero-description { font-size: 1rem; line-height: 1.65; color: var(--text-sub); margin-bottom: 28px; max-width: 480px; position: relative; z-index: 1; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; position: relative; z-index: 1; }
.hero-features { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-feature-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; padding: 8px 14px; border-radius: 9999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: var(--text-sub); transition: var(--transition); }
.hero-feature-pill:hover { background: rgba(1, 144, 251, .1); border-color: rgba(1, 144, 251, .32); color: #fff; }

.online-box { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow: hidden; }
.online-stack { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.status-header { display: flex; align-items: center; justify-content: space-between; }
.status-label { font-weight: 800; text-transform: uppercase; font-size: .75rem; color: var(--text-muted); letter-spacing: 1px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 5px 10px; border-radius: 9999px; }
.live-badge.on { color: #34d399; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .3); box-shadow: 0 0 10px rgba(16, 185, 129, .2); }
.live-badge.off { color: #fb7185; background: rgba(244, 63, 94, .1); border: 1px solid rgba(244, 63, 94, .3); }
.live-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: livePulse 2s infinite; }
.online-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 1px; }
.online-value { font-size: clamp(2.6rem, 4.5vw, 3.8rem); font-weight: 900; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; text-shadow: 0 0 20px rgba(1, 144, 251, .35); }
.online-max { font-size: 1.2rem; color: var(--text-muted); font-weight: 700; letter-spacing: 0; text-shadow: none; }
.progress-bar { height: 8px; background: rgba(0, 8, 24, .6); border-radius: var(--radius-full); overflow: hidden; border: 1px solid rgba(1, 144, 251, .2); margin-bottom: 6px; }
.progress-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0068f8, #0190fb); border-radius: var(--radius-full); box-shadow: 0 0 15px rgba(1, 144, 251, .6); transition: width 1s var(--ease); }
.progress-labels { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 700; color: var(--text-sub); }
.progress-labels b { color: var(--accent); font-weight: 800; }
.server-addr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: rgba(0, 8, 24, .45); border: 1px dashed rgba(1, 144, 251, .3); border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; color: #fff; }
.server-addr button { flex-shrink: 0; }

/* ---------- 7. СЕКЦИИ ---------- */
.features-section, .start-section, .news-section, .gallery-section { padding: 50px 0; position: relative; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.section-eyebrow { color: var(--accent); font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 900; text-transform: uppercase; background: linear-gradient(180deg, #fff 30%, #bcd6ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.15; }
.section-link { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); }

.glass-panel, .feature-card, .step-card, .news-card, .stat-card, .ctrl-btn, .card {
    background: rgba(28, 39, 72, .55);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 4px 20px rgba(0, 8, 24, .5);
    border-radius: var(--radius-md);
    transition: var(--transition);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.feature-card:hover, .news-card:hover, .step-card:hover { background: rgba(39, 49, 90, .75); border-color: rgba(1, 144, 251, .32); transform: translateY(-4px); box-shadow: 0 10px 30px -5px rgba(1, 144, 251, .22); }
.glass-panel { padding: 32px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.feature-card { padding: 28px; display: flex; flex-direction: column; gap: 0; overflow: hidden; }
.feature-icon { width: 54px; height: 54px; border-radius: 14px; background: radial-gradient(circle at 30% 25%, #3c6396, #264671 55%, #1f3c61); border: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; box-shadow: 0 0 20px rgba(60, 99, 150, .35); }
.feature-icon img { width: 32px; height: 32px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; color: #fff; }
.feature-card p { font-size: .9rem; color: var(--text-sub); line-height: 1.6; }
.feature-card__car { margin: 18px -10px -12px; }
.feature-card__car img { width: 100%; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .5)); transition: transform .6s var(--ease); }
.feature-card:hover .feature-card__car img { transform: scale(1.05) translateX(4px); }

.carousel-controls { display: flex; gap: 8px; }
.ctrl-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 50%; }
.ctrl-btn:hover { background: rgba(1, 144, 251, .25); color: var(--accent); border-color: var(--accent); }
.news-carousel, .steps-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 20px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.news-card, .step-card { flex: 0 0 340px; display: flex; flex-direction: column; scroll-snap-align: start; overflow: hidden; color: var(--text-main); }
.step-card { padding: 28px 24px; }
.steps-carousel .step-card { flex: 1 0 300px; }
.step-num { font-size: 2.2rem; font-weight: 900; background: linear-gradient(180deg, #0190fb, #60a3fb); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 12px; line-height: 1.2; }
.step-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; color: #fff; }
.step-card p { font-size: .9rem; color: var(--text-sub); margin-bottom: 20px; flex: 1; line-height: 1.5; }

/* ---------- 8. НОВОСТИ ---------- */
.news-card:hover { color: var(--text-main); }
.news-card-thumb { height: 180px; position: relative; overflow: hidden; background: linear-gradient(135deg, #1d2b66, #1f3c61); }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card-thumb img.is-fallback { object-fit: cover; opacity: .55; }
.news-card:hover .news-card-thumb img { transform: scale(1.05); }
.news-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-card-date { font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.news-card-title { font-size: 1.1rem; font-weight: 800; margin: 8px 0 10px; line-height: 1.3; color: #fff; overflow-wrap: anywhere; }
.news-card-snippet { font-size: .85rem; color: var(--text-sub); margin-bottom: 16px; flex: 1; }
.news-card-link { color: var(--accent); font-weight: 800; font-size: .85rem; }
.news-tag { position: absolute; top: 14px; left: 14px; font-size: .75rem; font-weight: 800; text-transform: uppercase; padding: 5px 10px; border-radius: 8px; z-index: 2; }
.news-tag--inline { position: static; display: inline-block; }
.news-tag[data-cat="update"] { background: var(--amber); color: #0b132b; }
.news-tag[data-cat="fix"] { background: var(--primary); color: #fff; }
.news-tag[data-cat="event"] { background: var(--emerald); color: #fff; }
.news-tag[data-cat="other"] { background: #6fa6ed; color: #fff; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.news-grid .news-card { flex: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters a { padding: 8px 16px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--text-sub); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 9999px; }
.filters a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.filters a.is-active { color: #fff; background: var(--primary); border-color: var(--primary); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; font-size: .9rem; font-weight: 800; color: var(--text-sub); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; }
.pager a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.pager .is-current { color: #fff; background: var(--primary); border-color: var(--primary); }
.pager .is-gap { background: transparent; border-color: transparent; }

.page-section { padding: 36px 0 60px; position: relative; z-index: 10; }
.article-cover { width: 100%; max-height: 480px; border-radius: 16px; overflow: hidden; margin: 0 0 24px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .85rem; font-weight: 700; color: var(--text-muted); }
.article-title { margin: 16px 0 22px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.prose { font-size: 1.02rem; line-height: 1.8; color: #cdd5ec; overflow-wrap: anywhere; }
.prose p + p { margin-top: 1.1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.article-nav a { display: grid; gap: 4px; padding: 14px 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; color: #fff; font-weight: 800; transition: var(--transition); }
.article-nav a:hover { background: rgba(1, 144, 251, .12); border-color: rgba(1, 144, 251, .35); }
.article-nav small { color: var(--text-muted); font-size: .7rem; letter-spacing: .8px; text-transform: uppercase; }
.article-nav a:last-child { text-align: right; }

/* галерея */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery__item { position: relative; display: block; padding: 0; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-md); background: var(--bg-card); }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item::after { content: attr(data-title); position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; font-size: .85rem; font-weight: 800; color: #fff; text-align: left; background: linear-gradient(0deg, rgba(0, 8, 24, .88), transparent); opacity: 0; transform: translateY(6px); transition: .3s var(--ease); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 1400; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 8, 24, .94); backdrop-filter: blur(8px); }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; max-width: min(1200px, 94vw); border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .7); }
.lightbox__btn { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; color: #fff; font-size: 22px; }
.lightbox__btn:hover { background: var(--primary); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; margin-top: -23px; }
.lightbox__next { right: 18px; top: 50%; margin-top: -23px; }

/* ---------- 9. ОБЩИЕ КОМПОНЕНТЫ (используются и панелью управления) ---------- */
.section { position: relative; }
.section__body { display: grid; gap: 14px; margin-top: 14px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 12px; border-bottom: 1px solid rgba(1, 144, 251, .22); }
.bar h1, .bar h2 { font-size: 1.15rem; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.bar__tools { display: flex; align-items: center; gap: 10px; }
.section__bar-count { color: var(--text-sub); font-size: .8rem; font-weight: 800; letter-spacing: .4px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.tile { display: grid; gap: 4px; padding: 16px 18px; background: rgba(28, 39, 72, .55); border: 1px solid rgba(255, 255, 255, .06); border-radius: 16px; }
.tile__label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); }
.tile__value { font-size: 1.7rem; font-weight: 900; color: #fff; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 2px 8px; margin-right: 8px; font-size: .7rem; font-weight: 800; text-transform: uppercase; border-radius: 6px; vertical-align: 2px; background: #6fa6ed; color: #fff; }
.pill[data-cat="update"] { background: var(--amber); color: #0b132b; }
.pill[data-cat="fix"] { background: var(--primary); }
.pill[data-cat="event"] { background: var(--emerald); }
.role { font-weight: 800; }
.role--admin { color: #ff6b9a; }
.role--moderator { color: #5ab4ff; }
.role--user { color: var(--text-sub); }
.progress { height: 8px; background: rgba(0, 8, 24, .6); border-radius: 999px; overflow: hidden; border: 1px solid rgba(1, 144, 251, .2); }
.progress__fill { display: block; height: 100%; background: linear-gradient(90deg, #0068f8, #0190fb); border-radius: 999px; }
.empty { padding: 36px 20px; text-align: center; color: var(--text-muted); background: rgba(255, 255, 255, .03); border: 1px dashed rgba(255, 255, 255, .12); border-radius: 18px; }
.empty img { width: 56px; height: 56px; margin: 0 auto 10px; opacity: .85; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; font-size: .9rem; border-radius: 12px; border: 1px solid; }
.alert--danger { color: #fda4af; background: rgba(244, 63, 94, .1); border-color: rgba(244, 63, 94, .32); }
.alert--ok { color: #6ee7b7; background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .32); }
.alert--warn { color: #fcd34d; background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .32); }
.error-page { display: grid; justify-items: center; gap: 12px; padding: 40px 20px; text-align: center; }
.error-page__code { font-size: clamp(80px, 18vw, 170px); line-height: 1; font-weight: 900; letter-spacing: -4px; background: linear-gradient(180deg, #fff, #0190fb 60%, #2f76d2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.toasts { position: fixed; z-index: 1600; right: 18px; top: 86px; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.toast { padding: 13px 16px; font-size: .9rem; font-weight: 700; color: #fff; background: var(--bg-card-hi); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); animation: toastIn .4s var(--ease); }
.toast--ok { border-left-color: var(--emerald); }
.toast--danger { border-left-color: var(--rose); }
.toast--warn { border-left-color: var(--amber); }

/* ---------- 10. ФОРМЫ И ОКНА ---------- */
.form-control { width: 100%; min-height: 48px; padding: 13px 16px; color: #fff; font: inherit; font-size: 1rem; background: var(--bg-input); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; outline: none; transition: var(--transition); }
.form-control::placeholder { color: var(--text-muted); }
.form-control:hover { border-color: rgba(255, 255, 255, .2); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 104, 248, .25); }
select.form-control { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3bd' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
textarea.form-control { min-height: 130px; resize: vertical; line-height: 1.5; }
.form-label { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--text-sub); }
.form-hint { margin-top: 6px; font-size: .78rem; color: var(--text-muted); }
.form-grid { display: grid; gap: 14px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.captcha-wrap { display: flex; justify-content: center; }
.captcha-wrap:empty { display: none; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 48px; }
.password-toggle { position: absolute; right: 6px; top: 50%; width: 38px; height: 38px; margin-top: -19px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 10px; color: var(--text-muted); }
.password-toggle:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.password-toggle svg { width: 20px; height: 20px; }

.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 8, 24, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transition: var(--transition); overflow-y: auto; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__card { position: relative; width: 100%; max-width: 440px; margin: auto; padding: 32px 28px; background: linear-gradient(180deg, #1c2748, #151d3a); border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 8, 24, .9); transform: translateY(20px) scale(.96); transition: var(--transition); }
.modal.is-open .modal__card { transform: none; }
.modal__card--wide { max-width: 920px; padding: 20px; }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 36px; height: 36px; display: grid; place-items: center; font-size: 22px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; transition: var(--transition); }
.modal__close:hover { background: rgba(255, 255, 255, .16); color: var(--accent); transform: rotate(90deg); }
.modal__title { margin-bottom: 18px; padding-right: 40px; font-size: 1.2rem; font-weight: 900; color: #fff; text-transform: uppercase; }
.modal__logo { width: 120px; margin: -6px auto 14px; filter: drop-shadow(0 8px 20px rgba(0, 104, 248, .5)); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 22px; background: rgba(0, 8, 24, .6); border: 1px solid rgba(255, 255, 255, .05); border-radius: 12px; }
.tabs button { padding: 12px; font-size: .88rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); background: transparent; border: 0; border-radius: 8px; transition: var(--transition); }
.tabs button.is-active { color: #fff; background: var(--primary); box-shadow: 0 4px 15px rgba(0, 104, 248, .45); }
.pane { display: none; gap: 16px; }
.pane.is-active { display: grid; }
.video-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.video-wrap video { width: 100%; height: 100%; display: block; background: #000; }
.video-wrap__note { margin-top: 10px; font-size: .75rem; color: var(--text-muted); text-align: center; }
.upload { display: flex; align-items: center; gap: 14px; padding: 16px; background: rgba(255, 255, 255, .03); border: 2px dashed rgba(1, 144, 251, .35); border-radius: 16px; cursor: pointer; transition: var(--transition); }
.upload:hover, .upload.has-file { border-color: var(--primary); background: rgba(0, 104, 248, .08); }
.upload__icon { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--bg-elevated); }
.upload__icon img { width: 28px; height: 28px; }
.upload__title { display: block; font-weight: 800; color: #fff; }
.upload__hint { display: block; font-size: .75rem; color: var(--text-muted); }
.upload__name { display: block; margin-top: 2px; font-size: .75rem; color: #34d399; word-break: break-all; }
.avatar-preview { display: none; justify-content: center; }
.avatar-preview.is-active { display: flex; }
.avatar-preview img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 3px solid var(--primary); }
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.profile-head strong { display: block; font-size: 1.1rem; color: #fff; }
.profile-head span { font-size: .85rem; color: var(--text-sub); }

/* ---------- 11. МОБИЛЬНАЯ НАВИГАЦИЯ ---------- */
.drawer-root { position: fixed; inset: 0; z-index: 1500; overflow: hidden; pointer-events: none; visibility: hidden; transition: visibility .35s; }
.drawer-root.is-open { pointer-events: auto; visibility: visible; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(0, 8, 24, .85); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.drawer-overlay.is-open { opacity: 1; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 330px); display: flex; flex-direction: column; padding: calc(22px + env(safe-area-inset-top, 0px)) 20px calc(22px + var(--safe-b)); background: var(--bg-card); border-left: 1px solid rgba(255, 255, 255, .1); box-shadow: -10px 0 30px rgba(0, 8, 24, .8); transform: translateX(105%); transition: transform .35s var(--ease); overflow-y: auto; }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer__head img { height: 44px; width: auto; }
.drawer__nav { display: grid; gap: 4px; margin: 6px 0 14px; }
.drawer__nav a { display: flex; align-items: center; gap: 14px; padding: 15px 14px; font-size: 1rem; font-weight: 700; color: #fff; border-radius: 12px; transition: var(--transition); }
.drawer__nav a img { width: 26px; height: 26px; }
.drawer__nav a:hover, .drawer__nav a.is-active { background: rgba(255, 255, 255, .06); color: var(--accent); }
.drawer__foot { margin-top: auto; display: grid; gap: 10px; }
.drawer__langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.drawer__langs a { padding: 10px; text-align: center; font-size: .75rem; font-weight: 800; letter-spacing: .6px; color: var(--text-muted); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; }
.drawer__langs a.is-current { color: #fff; background: var(--primary); border-color: var(--primary); }

.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900; height: calc(68px + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(0, 16, 46, .95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(255, 255, 255, .06); justify-content: space-around; align-items: center; }
.mobile-nav-link { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 68px; position: relative; color: var(--text-muted); font-size: .68rem; font-weight: 700; background: transparent; border: 0; }
.mobile-nav-link svg { width: 24px; height: 24px; stroke-width: 2; }
.mobile-nav-link.active { color: var(--accent); }
.mobile-nav-link.active svg { stroke-width: 2.5; filter: drop-shadow(0 0 8px rgba(1, 144, 251, .55)); }
.mobile-nav-link--cta { color: var(--emerald); }

/* ---------- 12. ПОДВАЛ ---------- */
.site-footer { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .05); background: rgba(0, 16, 46, .82); backdrop-filter: blur(20px); padding: 50px 0 30px; position: relative; z-index: 10; }
.footer-columns { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--text-sub); font-size: .85rem; line-height: 1.55; max-width: 38ch; }
.footer-title { font-size: .9rem; font-weight: 800; text-transform: uppercase; color: #fff; letter-spacing: .5px; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-sub); font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .05); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--text-muted); }

/* ---------- анимации ---------- */
@keyframes blobFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(50px, -40px) scale(1.05); } 66% { transform: translate(-40px, 50px) scale(.95); } }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.75); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------- 13. АДАПТИВ ---------- */
@media (max-width: 1380px) {
    .nav-item { padding: 8px 12px; font-size: .8rem; }
    .header-actions .badge-age { display: none; }
}
@media (max-width: 1240px) {
    .main-nav { display: none; }
    .burger { display: inline-flex; }
    .header-actions .lang-switch { margin-right: 4px; }
}
@media (max-width: 960px) {
    .hero-wrapper { grid-template-columns: 1fr; max-width: 650px; }
    .footer-columns { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .header-actions .lang-switch, .header-actions .avatar-btn, .header-actions .btn--login, .header-actions .btn--download, .header-actions .badge-age, .header-actions .btn--admin, .header-actions .logout-form { display: none; }
    .burger { display: inline-flex; }
    .header-actions { margin-left: auto; }
}
@media (max-width: 768px) {
    :root { --header-h: 66px; }
    .container { padding: 0 16px; }
    .mobile-bottom-nav { display: flex; }
    body { font-size: 15px; }
    .brand-logo img { height: 40px; }
    .hero-section { padding: 24px 0 40px; }
    .hero-wrapper { gap: 16px; }
    .hero-card { padding: 28px 20px; border-radius: 20px; }
    .hero-title { font-size: 2.2rem; margin-bottom: 16px; }
    .hero-description { font-size: .95rem; margin-bottom: 24px; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .hero-actions .btn--lg { width: 100%; padding: 16px 20px; min-height: 54px; }
    .hero-features { gap: 8px; }
    .hero-feature-pill { font-size: .75rem; padding: 8px 12px; }
    .online-box { padding: 24px 20px; border-radius: 20px; gap: 20px; }
    .online-value { font-size: 3rem; }
    .features-section, .start-section, .news-section, .gallery-section { padding: 34px 0; }
    .section-title { font-size: 1.6rem; }
    .section-header { margin-bottom: 20px; }
    .feature-card { padding: 20px; border-radius: 16px; }
    .feature-icon { width: 48px; height: 48px; margin-bottom: 16px; }
    .news-carousel, .steps-carousel { gap: 16px; padding-bottom: 16px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
    .news-card, .steps-carousel .step-card { flex: 0 0 85vw; max-width: 320px; }
    .news-grid .news-card { max-width: none; }
    .news-card-thumb { height: 160px; }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gallery__item:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
    .glass-panel { padding: 22px 18px; }
    .article-nav { grid-template-columns: 1fr; }
    .article-nav a:last-child { text-align: left; }
    .footer-columns { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
    .footer-title { margin-bottom: 12px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .form-grid--2 { grid-template-columns: 1fr; }
    .form-control { min-height: 50px; font-size: 16px; }
    .modal { align-items: flex-end; padding: 0; }
    .modal__card { max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; padding: 30px 18px calc(22px + var(--safe-b)); transform: translateY(40px); max-height: 92vh; overflow-y: auto; }
    .modal__card--wide { padding: 14px 10px calc(14px + var(--safe-b)); }
    .toasts { top: auto; bottom: calc(80px + var(--safe-b)); left: 12px; right: 12px; width: auto; }
    .btn--sm { min-height: 42px; }
}
@media (max-width: 380px) {
    .hero-title { font-size: 1.9rem; }
    .online-value { font-size: 2.5rem; }
}
@media (hover: none) { .btn:hover, .feature-card:hover, .news-card:hover, .step-card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .mobile-bottom-nav, .site-footer, .bg-decor, .hero-viewport { display: none !important; }
    body { background: #fff; color: #000; }
}

/* мелкие дополнения */
.logout-form { display: inline-flex; }
.glass-panel--article { max-width: 920px; margin: 0 auto; }
.acp-page { padding: 36px 20px 60px; position: relative; z-index: 10; display: grid; gap: 22px; }
.sections-spaced > * + * { margin-top: 0; }
