/* =========================================================================
   DayZWEB — V1a REDESIGN (v1.3.0)
   Загружается после app.css и переопределяет публичные стили
   ========================================================================= */

/* ─── NAV — brand mark + user badge ─── */
.nav { position: fixed !important; top: 0; left: 0; right: 0; z-index: 1000; padding: 14px 0; background: rgba(10,10,10,0.88); border-bottom: 1px solid rgba(255,255,255,0.06); backdrop-filter: blur(16px); transition: padding .2s ease, background .2s ease, border-color .2s ease; }
.nav.nav-scrolled { padding: 6px 0; background: rgba(10,10,10,0.96); border-bottom-color: rgba(59,130,246,0.3); }
body:not(.admin-body-v1a) { padding-top: 86px; }
.nav.nav-scrolled .nav-brand-text { font-size: 0.92rem; }
.nav.nav-scrolled .nav-brand-mark { width: 22px; height: 22px; font-size: 0.66rem; border-radius: 5px; }
.nav.nav-scrolled .nav-user-avatar { width: 22px; height: 22px; }
.nav.nav-scrolled .nav-user-name { font-size: 0.78rem; }
.nav.nav-scrolled .nav-user-admin-badge { padding: 3px 9px; font-size: 0.66rem; }
.nav.nav-scrolled .nav-logo { height: 24px; }
.nav.nav-scrolled .nav-links a { font-size: 0.76rem !important; padding: 3px 4px !important; }
.nav.nav-scrolled .nav-login-btn-v1a { padding: 5px 12px; font-size: 0.74rem; }
.nav-inner { height: auto; min-height: 52px; display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; transition: min-height .2s ease; }
.nav.nav-scrolled .nav-inner { min-height: 36px; }
.nav-inner > .nav-brand { justify-self: start; }
.nav-inner > .nav-links { justify-self: center; }
.nav-inner > .nav-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
@media (max-width: 768px) {
    .nav-inner { display: flex !important; justify-content: space-between; grid-template-columns: none; }
}

/* Override old .nav-links styles from app.full.css (V1a — no uppercase, no button-style active) */
.nav-links { gap: 28px !important; }
.nav-links a { font-family: var(--font-body) !important; color: #a0a0a0 !important; font-size: 0.82rem !important; font-weight: 500 !important; letter-spacing: 0.04em !important; text-transform: none !important; padding: 4px 0 !important; border-radius: 0 !important; background: none !important; border: none !important; position: relative; }
.nav-links a:hover { color: #e8e8e8 !important; background: none !important; }
.nav-links a.active { color: #ffffff !important; background: none !important; border: none !important; }
.nav-links a { padding: 6px 4px !important; }
.nav-links a.active::after { content: '' !important; position: absolute !important; bottom: -4px !important; left: 50% !important; transform: translateX(-50%) !important; width: 24px !important; height: 2px !important; background: #3b82f6 !important; border-radius: 1px; top: auto !important; box-shadow: 0 0 8px rgba(59,130,246,0.6); }

.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: var(--text-hi); text-transform: uppercase; letter-spacing: 0.12em; text-decoration: none; }
.nav-brand-mark { width: 30px; height: 30px; background: linear-gradient(135deg, var(--accent), #2563eb); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; }
.nav-brand-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-hi); text-transform: uppercase; letter-spacing: 0.12em; }
.nav-brand .nav-logo { height: 32px; width: auto; }
.nav-user-info { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); }
.nav-user-avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); object-fit: cover; }
.nav-user-name { font-size: 0.84rem; color: var(--text-hi); font-weight: 500; }
.nav-balance-group { display: flex; align-items: stretch; gap: 0; margin-right: 10px; }
.nav-user-balance { padding: 4px 10px; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #22c55e; font-size: 0.72rem; font-weight: 600; border-radius: 5px 0 0 5px; font-family: var(--font-mono); letter-spacing: 0.02em; display: flex; align-items: center; }
.nav-balance-add { padding: 4px 8px; background: rgba(34,197,94,0.2); border: 1px solid rgba(34,197,94,0.25); border-left: none; color: #22c55e; font-size: 0.72rem; font-weight: 700; border-radius: 0 5px 5px 0; text-decoration: none; transition: background 0.15s; display: flex; align-items: center; }
.nav-balance-add:hover { background: rgba(34,197,94,0.35); color: #fff; }
.nav-user-admin-badge { padding: 5px 12px; background: linear-gradient(135deg, var(--accent), #2563eb); color: #fff; font-size: 0.72rem; font-weight: 600; border-radius: 5px; text-transform: uppercase; letter-spacing: 0.06em; box-shadow: 0 3px 10px rgba(59,130,246,0.3); text-decoration: none; }
.nav-user-logout { background: none; border: none; color: #777; cursor: pointer; padding: 4px 6px; display: flex; align-items: center; }
.nav-user-logout:hover { color: var(--text-hi); }
.nav-login-btn-v1a { padding: 8px 18px; background: linear-gradient(135deg, var(--accent), #2563eb); color: #fff; font-size: 0.8rem; font-weight: 500; border-radius: 6px; box-shadow: 0 4px 14px rgba(59,130,246,0.3); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

/* ─── User dropdown (profile menu) ─── */
.nav-user-menu { position: relative; font-family: var(--font-body); }
.nav-user-trigger { display: flex; align-items: center; gap: 10px; padding: 4px 10px; background: none; border: 1px solid transparent; border-radius: 8px; color: inherit; cursor: pointer; font: inherit; }
.nav-user-trigger:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); }
.nav-user-caret { font-size: 0.68rem; opacity: 0.6; margin-left: 2px; }
.nav-user-menu.open .nav-user-caret { transform: rotate(180deg); }
.nav-user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; background: #121212; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,0.55); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 1001; }
.nav-user-menu.open .nav-user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-user-dropdown a, .nav-user-dropdown button { display: block; padding: 9px 12px; border-radius: 6px; font-size: 0.86rem; color: var(--text, #a0a0a0); text-decoration: none; width: 100%; background: none; border: none; cursor: pointer; font: inherit; text-align: left; }
.nav-user-dropdown a:hover, .nav-user-dropdown button:hover { background: #1a1a1a; color: var(--text-hi, #e8e8e8); }
.nav-user-dropdown hr { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 4px 0; }
.nav-user-dropdown .danger { color: #f87171; }
.nav-user-dropdown .danger:hover { background: rgba(239,68,68,0.08); color: #fca5a5; }

/* ─── LIVE TICKER (под навбаром) ─── */
.v1a-ticker { background: rgba(10,10,10,0.92); border-bottom: 1px solid rgba(59,130,246,0.2); padding: 8px 32px; display: flex; align-items: center; gap: 32px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text); letter-spacing: 0.08em; position: relative; z-index: 11; }
.v1a-ticker .live { display: flex; align-items: center; gap: 6px; color: #22c55e; font-weight: 500; letter-spacing: 0.14em; }
.v1a-ticker .live::before { content: ''; width: 7px; height: 7px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 8px #22c55e; animation: v1a-pulse 2s infinite; }
.v1a-ticker .item { display: flex; align-items: center; gap: 8px; }
.v1a-ticker .item .k { color: #666; }
.v1a-ticker .item .v { color: var(--text-hi); }
.v1a-ticker .item .v.accent { color: var(--accent); }
.v1a-ticker .spacer { flex: 1; }
.v1a-ticker .news { display: flex; align-items: center; gap: 10px; color: #bbb; min-width: 0; max-width: 50%; }
.v1a-ticker .news .tag { padding: 2px 8px; background: rgba(59,130,246,0.15); color: var(--accent-bright); border-radius: 3px; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; flex-shrink: 0; }
.v1a-ticker .news .news-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v1a-ticker .news a { color: inherit; text-decoration: none; }
.v1a-ticker .news a:hover { color: var(--accent-bright); }
@keyframes v1a-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (max-width: 900px) {
    .v1a-ticker { padding: 6px 16px; gap: 14px; font-size: 0.66rem; flex-wrap: wrap; }
    .v1a-ticker .news { display: none; }
}
/* ≤480px — оставляем только LIVE / онлайн / вайп в одну строку */
@media (max-width: 480px) {
    .v1a-ticker { padding: 6px 14px; gap: 12px; font-size: 0.64rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .v1a-ticker::-webkit-scrollbar { display: none; }
    .v1a-ticker .item { flex-shrink: 0; }
    .v1a-ticker .item-servers,
    .v1a-ticker .item-ping { display: none; }
}

/* ─── HERO V1a ─── */
.hero-v1a { position: relative; min-height: 680px; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: var(--void); }
.hero-v1a .hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0; }
.hero-v1a .hero-slide.active { opacity: 1; }
.hero-v1a .hero-slide video { width: 100%; height: 100%; object-fit: cover; }
@media(min-width:769px) { .hero-v1a .hero-slide { background-attachment: fixed; } }
.hero-v1a .hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.7) 100%); }
.hero-v1a .hero-glow { position: absolute; width: 700px; height: 300px; background: radial-gradient(ellipse at center, rgba(59,130,246,0.18), transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); filter: blur(40px); pointer-events: none; z-index: 2; }
.hero-v1a-content { position: absolute; top: 0; left: 0; right: 0; bottom: 100px; z-index: 4; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 80px; }
.hero-v1a-kicker { font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent-bright); letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 38px; display: flex; align-items: center; gap: 14px; }
.hero-v1a-kicker::before, .hero-v1a-kicker::after { content: ''; width: 40px; height: 1px; background: rgba(96,165,250,0.4); }
.hero-v1a-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.5rem, 9vw, 7.6rem); line-height: 0.92; text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }
.hero-v1a-title .glitch-word { color: var(--text-hi); text-shadow: 0 0 30px rgba(0,0,0,0.5), 2px 0 0 rgba(59,130,246,0.15), -2px 0 0 rgba(255,50,100,0.1); display: inline-block; }
.hero-v1a-title .accent-word { color: var(--accent); text-shadow: 0 0 50px var(--accent-glow), 0 4px 40px rgba(0,0,0,0.5); display: block; }
.hero-v1a-divider { margin: 32px auto; width: 120px; height: 1px; background: linear-gradient(90deg, transparent, rgba(59,130,246,0.6), transparent); }
.hero-v1a-sub { color: #ccc; font-size: 1.05rem; max-width: 520px; line-height: 1.55; margin: 0; }
.hero-v1a-btns { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.hero-v1a-btn-primary { padding: 13px 24px; background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: #fff; font-size: 0.84rem; font-weight: 500; border-radius: 6px; box-shadow: 0 4px 20px rgba(59,130,246,0.3), 0 0 40px rgba(59,130,246,0.1); display: inline-flex; align-items: center; gap: 9px; letter-spacing: 0.02em; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.hero-v1a-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow), 0 0 60px rgba(59,130,246,0.2); color: #fff; }
.hero-v1a-btn-secondary { padding: 13px 22px; background: rgba(255,255,255,0.06); color: var(--text-hi); font-size: 0.84rem; font-weight: 500; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); display: inline-flex; align-items: center; gap: 9px; backdrop-filter: blur(8px); text-decoration: none; transition: background .2s; }
.hero-v1a-btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--text-hi); }

/* WIPE-BAR — компактный таймер вайпа в hero */
.wipe-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 100px; background: rgba(10,10,10,0.85); backdrop-filter: blur(14px); border-top: 1px solid rgba(59,130,246,0.18); display: flex; align-items: center; justify-content: center; gap: 32px; padding: 0 40px; z-index: 5; }
.wipe-bar-label { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--accent-bright); letter-spacing: 0.18em; text-transform: uppercase; }
.wipe-bar-label::before { content: ''; width: 8px; height: 8px; background: var(--accent-bright); border-radius: 50%; box-shadow: 0 0 10px var(--accent-bright); animation: v1a-pulse 2s infinite; }
.wipe-bar-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text-hi); text-transform: uppercase; letter-spacing: 0.04em; padding: 0 22px; border-left: 1px solid rgba(255,255,255,0.08); border-right: 1px solid rgba(255,255,255,0.08); }
.wipe-bar-time { display: flex; align-items: center; gap: 4px; }
.wipe-bar-time .cell { position: relative; text-align: center; padding: 6px 12px 5px; background: linear-gradient(180deg, rgba(59,130,246,0.12), rgba(59,130,246,0.04)); border: 1px solid rgba(59,130,246,0.28); border-radius: 6px; min-width: 54px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); overflow: hidden; }
.wipe-bar-time .cell::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(96,165,250,0.6), transparent); }
.wipe-bar-time .big { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-hi); line-height: 1; letter-spacing: 0.02em; text-shadow: 0 0 10px rgba(96,165,250,0.35); font-variant-numeric: tabular-nums; }
.wipe-bar-time .sm { font-size: 0.54rem; color: #6d89a8; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 3px; font-weight: 500; }
.wipe-bar-time .sep { padding: 0 2px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: rgba(96,165,250,0.4); align-self: flex-start; padding-top: 6px; animation: v1a-blink 1.6s infinite; }
@keyframes v1a-blink { 0%,60%,100% { opacity: 1; } 30% { opacity: 0.25; } }

@media (max-width: 900px) {
    .hero-v1a-content { padding: 60px 24px; bottom: 0; position: relative; }
    .hero-v1a-kicker { font-size: 0.66rem; letter-spacing: 0.2em; margin-bottom: 24px; gap: 8px; }
    .hero-v1a-kicker::before, .hero-v1a-kicker::after { width: 24px; }
    .hero-v1a-divider { margin: 22px auto; width: 80px; }
    .hero-v1a-sub { font-size: 0.92rem; }
    .hero-v1a-btns { margin-top: 24px; gap: 8px; }
    .hero-v1a-btn-primary, .hero-v1a-btn-secondary { padding: 10px 16px; font-size: 0.78rem; }
    .wipe-bar { position: relative; height: auto; flex-wrap: wrap; padding: 16px 16px; gap: 12px; width: 100%; max-width: 100%; box-sizing: border-box; justify-content: center; align-self: stretch; }
    .wipe-bar-title { padding: 0 12px; font-size: 0.92rem; border: none; }
    .wipe-bar-time .cell { min-width: 44px; padding: 4px 8px 3px; }
}
@media (max-width: 480px) {
    .wipe-bar { padding: 14px 12px; gap: 8px; }
    .wipe-bar-title { width: 100%; text-align: center; }
    .wipe-bar-time { flex-wrap: nowrap; }
    .wipe-bar-time .cell { min-width: 40px; }
    .hero-v1a { min-height: 540px; }
    .hero-v1a-content { padding: 40px 16px; }
}

/* ─── FOOTER (4 cols + social icons) ─── */
.footer-v1a { background: #070707; border-top: 1px solid var(--line); padding: 60px 0 30px; position: relative; }
.footer-v1a::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, var(--accent-glow) 30%, var(--accent) 50%, var(--accent-glow) 70%, transparent 100%); opacity: 0.6; }
.footer-v1a .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-v1a .footer-brand-line { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-hi); text-transform: uppercase; letter-spacing: 0.12em; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-v1a .footer-brand-line .nav-brand-mark { width: 34px; height: 34px; font-size: 0.86rem; }
.footer-v1a .footer-desc { color: #888; font-size: 0.88rem; line-height: 1.6; margin-bottom: 22px; max-width: 340px; }
.footer-v1a .footer-social-v1a { display: flex; gap: 8px; }
.footer-v1a .footer-social-v1a a { width: 38px; height: 38px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 9px; color: var(--text); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all .2s; }
.footer-v1a .footer-social-v1a a:hover { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: var(--accent-bright); transform: translateY(-2px); }
.footer-v1a .footer-social-v1a svg { width: 18px; height: 18px; }
.footer-v1a .footer-heading { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; color: var(--text-hi); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-v1a .footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 24px; height: 2px; background: var(--accent); }
.footer-v1a .footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-v1a .footer-links a { color: #888; font-size: 0.88rem; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.footer-v1a .footer-links a::before { content: '→'; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: all .2s; }
.footer-v1a .footer-links a:hover { color: var(--text-hi); }
.footer-v1a .footer-links a:hover::before { opacity: 1; transform: translateX(0); }
.footer-v1a .footer-bottom { padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #666; gap: 10px; flex-wrap: wrap; }
.footer-v1a .footer-powered { font-family: var(--font-mono); color: #666; }
.footer-v1a .footer-powered a { color: var(--accent-bright); text-decoration: none; }
.footer-v1a .footer-powered a:hover { text-decoration: underline; }
.footer-v1a .footer-powered .heart { color: #ef4444; }
@media (max-width: 768px) {
    .footer-v1a { padding: 36px 0 20px; }
    .footer-v1a .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 22px 16px; margin-bottom: 24px; }
    .footer-v1a .footer-col-brand { grid-column: 1 / -1; }
    .footer-v1a .footer-brand-line { font-size: 1rem; gap: 10px; margin-bottom: 10px; }
    .footer-v1a .footer-brand-line .nav-brand-mark { width: 26px; height: 26px; font-size: 0.72rem; }
    .footer-v1a .footer-desc { font-size: 0.82rem; line-height: 1.55; max-width: 100%; margin-bottom: 14px; }
    .footer-v1a .footer-social-v1a { gap: 8px; }
    .footer-v1a .footer-social-v1a a { width: 40px; height: 40px; }
    .footer-v1a .footer-heading { font-size: 0.7rem; margin-bottom: 10px; padding-bottom: 6px; letter-spacing: 0.1em; }
    .footer-v1a .footer-heading::after { width: 18px; height: 2px; }
    .footer-v1a .footer-links { gap: 6px; }
    .footer-v1a .footer-links a { font-size: 0.8rem; min-height: 32px; }
    .footer-v1a .footer-bottom { flex-direction: column; text-align: center; padding-top: 16px; font-size: 0.72rem; gap: 4px; }
}
@media (max-width: 400px) {
    .footer-v1a .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
    .footer-v1a .footer-heading { font-size: 0.66rem; }
    .footer-v1a .footer-links a { font-size: 0.76rem; }
}

/* ─── CONNECT PAGE (hero + content) ─── */
.connect-v1a-hero { background: linear-gradient(135deg, #0f1a2a 0%, #0a0a0a 100%); padding: 70px 24px; border-bottom: 1px solid rgba(59,130,246,0.2); position: relative; overflow: hidden; }
.connect-v1a-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 700px 300px at 50% 0%, rgba(59,130,246,0.1), transparent 70%); }
.connect-v1a-hero-inner { max-width: 1000px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.connect-v1a-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-bright); letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 18px; padding: 5px 12px; border: 1px solid rgba(59,130,246,0.25); background: rgba(59,130,246,0.08); border-radius: 4px; }
.connect-v1a-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; color: var(--text-hi); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; margin: 0 0 18px; }
.connect-v1a-sub { color: #999; font-size: 1.02rem; max-width: 560px; margin: 0 auto 32px; line-height: 1.55; }
.connect-v1a-ip-box { display: inline-flex; align-items: stretch; background: rgba(0,0,0,0.5); border: 1px solid rgba(59,130,246,0.35); border-radius: 10px; overflow: hidden; box-shadow: 0 8px 30px rgba(59,130,246,0.15); flex-wrap: wrap; }
.connect-v1a-ip { padding: 18px 26px; font-family: var(--font-mono); font-size: 1.15rem; color: var(--text-hi); letter-spacing: 0.04em; border-right: 1px solid rgba(59,130,246,0.25); display: flex; align-items: center; }
.connect-v1a-ip span { color: var(--accent-bright); margin-right: 12px; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.connect-v1a-copy { padding: 18px 28px; color: var(--accent-bright); font-size: 0.88rem; font-weight: 500; font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; gap: 10px; background: none; border: none; transition: background .2s; }
.connect-v1a-copy:hover { background: rgba(59,130,246,0.1); }
.connect-v1a-copy.copied { color: #22c55e; }
.connect-v1a-steps { display: flex; justify-content: center; gap: 30px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.connect-v1a-step { font-size: 0.84rem; color: #888; display: flex; align-items: center; gap: 8px; }
.connect-v1a-step-num { width: 22px; height: 22px; background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); color: var(--accent-bright); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.76rem; font-weight: 600; }
.connect-v1a-page { padding: 60px 24px 80px; max-width: 900px; margin: 0 auto; }
.connect-v1a-content { font-size: 1rem; line-height: 1.8; color: #b5b5b5; }
.connect-v1a-content h1, .connect-v1a-content h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--text-hi); text-transform: uppercase; letter-spacing: 0.04em; margin: 40px 0 14px; padding-left: 14px; border-left: 3px solid var(--accent); }
.connect-v1a-content h1:first-child, .connect-v1a-content h2:first-child { margin-top: 0; }
.connect-v1a-content h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--text-hi); margin: 30px 0 12px; }
.connect-v1a-content p { margin-bottom: 14px; }
.connect-v1a-content ul { padding-left: 22px; margin: 12px 0; }
.connect-v1a-content ul li { margin-bottom: 6px; }
.connect-v1a-content ul li::marker { color: var(--accent); }

/* Ordered lists — step-chips: круглый номер-бейдж */
.connect-v1a-content ol { list-style: none !important; counter-reset: step; padding: 0 !important; margin: 14px 0; }
.connect-v1a-content ol > li {
    counter-increment: step;
    position: relative !important;
    padding-left: 48px !important;
    padding-top: 4px;
    min-height: 32px;
    margin-bottom: 14px !important;
    line-height: 1.55;
    list-style: none;
}
.connect-v1a-content ol > li::marker { content: none; }
.connect-v1a-content ol > li::before {
    content: counter(step) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.32);
    color: var(--accent-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
}
.connect-v1a-content a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.connect-v1a-content code { font-family: var(--font-mono); font-size: 0.86em; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); color: var(--accent-bright); padding: 2px 8px; border-radius: 4px; }
.connect-v1a-content blockquote { border-left: 3px solid var(--accent); padding: 14px 20px; background: rgba(59,130,246,0.04); margin: 16px 0; border-radius: 0 8px 8px 0; }
.connect-v1a-content img { max-width: 100%; border-radius: 10px; margin: 16px 0; border: 1px solid var(--line); cursor: pointer; transition: opacity 0.2s; }
.connect-v1a-content img:hover { opacity: 0.85; }
.connect-v1a-content hr { border: none; height: 1px; background: var(--line-2); margin: 24px 0; }

/* Lightbox (для картинок в connect) */
.img-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); cursor: zoom-out; animation: lbIn 0.2s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.img-lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); cursor: default; }

/* ═════════════════════════════════════════════════════════════════════
   MOBILE (≤768px) — статичная компактная шапка, 44px tap-targets,
   full-screen drawer меню с body scroll lock
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Шапка — фиксированный компактный размер, БЕЗ expand/shrink при скролле */
    .nav, .nav.nav-scrolled { padding: 8px 0 !important; }
    body:not(.admin-body-v1a) { padding-top: 60px; }

    .nav-inner, .nav.nav-scrolled .nav-inner { min-height: 44px !important; gap: 8px; padding: 0 12px; flex-wrap: nowrap; }
    .nav-inner > * { min-width: 0; }

    /* Прячем объёмные элементы — на 393px места нет */
    .nav-user-name,
    .nav-user-admin-badge,
    .nav-user-caret,
    .nav-brand-text { display: none !important; }

    /* Balance-chip: одна строка, нормальный tap-target */
    .nav-balance-group { margin-right: 0; flex-shrink: 1; min-width: 0; }
    .nav-user-balance { padding: 0 10px; min-height: 36px; font-size: 0.72rem; letter-spacing: 0; white-space: nowrap; border-radius: 6px 0 0 6px; }
    .nav-balance-add { min-width: 36px; min-height: 36px; padding: 0; border-radius: 0 6px 6px 0; font-size: 1.1rem; justify-content: center; }

    /* Гамбургер — 44×44, на ПРАВЫЙ край (стандартный мобильный паттерн) */
    .nav-toggle { min-width: 44px; min-height: 44px; padding: 10px; order: 99; margin-left: 8px; }
    .nav-brand { order: 1; }
    .nav-right { order: 2; margin-left: auto; gap: 6px; }

    /* Аватар-триггер — 44×44, без текста */
    .nav-user-trigger, .nav.nav-scrolled .nav-user-trigger { padding: 4px; min-width: 44px; min-height: 44px; justify-content: center; gap: 0; }
    .nav-user-avatar, .nav.nav-scrolled .nav-user-avatar { width: 34px !important; height: 34px !important; }
    .nav-brand-mark, .nav.nav-scrolled .nav-brand-mark { width: 28px; height: 28px; font-size: 0.72rem; }

    /* Login-кнопка у гостей — без переноса текста, компактнее */
    .nav-login-btn-v1a, .nav.nav-scrolled .nav-login-btn-v1a { white-space: nowrap; font-size: 0.76rem; padding: 8px 12px; min-height: 40px; }

    /* ── FULL-SCREEN DRAWER ── */
    .nav-links {
        display: none;
        position: fixed !important;
        top: 60px !important; /* прямо под шапкой */
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        height: calc(100dvh - 60px) !important;
        margin: 0 !important;
        padding: 16px 20px 32px !important;
        background: rgba(5,5,7,0.98) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 0 !important;
        overflow-y: auto !important;
        z-index: 999 !important;
        animation: nav-drawer-in 0.25s ease-out;
    }
    .nav-links.open { display: flex !important; }
    .nav-links li { width: 100%; list-style: none; }
    .nav-links a {
        display: flex !important;
        width: 100%;
        padding: 20px 16px !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
        font-size: 1.05rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.02em !important;
        text-transform: none !important;
        color: #e8e8e8 !important;
        background: none !important;
        border-radius: 0 !important;
        align-items: center;
        justify-content: center;
        min-height: 56px;
    }
    .nav-links a.active {
        color: #60a5fa !important;
        background: rgba(59,130,246,0.04) !important;
    }
    .nav-links a.active::after { display: none !important; }

    /* Гамбургер — анимация в крестик при open */
    .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Body scroll lock при открытом меню */
    body.nav-open { overflow: hidden !important; }
}
@keyframes nav-drawer-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Уже компакт — 360–400px (узкие Android / iPhone SE) */
@media (max-width: 400px) {
    .nav-inner { gap: 6px; padding: 0 10px; }
    .nav-user-balance { padding: 0 8px; font-size: 0.68rem; }
    .nav-right { gap: 4px; }
    .nav-brand-mark { width: 28px; height: 28px; font-size: 0.72rem; }
    .nav-login-btn-v1a { font-size: 0.72rem; padding: 7px 10px; }
}

/* ═════════════════════════════════════════════════════════════════════
   MOBILE TAP-TARGETS (≤768px) — гарантируем 40–44px для известных кнопок
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* CTA-кнопки */
    .hero-v1a-btn-primary,
    .hero-v1a-btn-secondary { min-height: 44px; padding: 12px 18px; }

    /* Social-иконки футера */
    .footer-v1a .footer-social-v1a a { width: 44px; height: 44px; }

    /* Ссылки футера — не inline, growing row */
    .footer-v1a .footer-links a { min-height: 36px; align-items: center; }

    /* Login-кнопка (гости) */
    .nav-login-btn-v1a { min-height: 40px; padding: 8px 14px; }
}

/* ═════════════════════════════════════════════════════════════════════
   HOME — MOBILE REDESIGN
   Единая типо-шкала / плотность / spacing для главной на ≤768px
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* ── HERO — вертикальный столбец, без overlap wipe-bar'а ── */
    .hero-v1a {
        min-height: auto;
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
        padding-top: 0;
    }
    .hero-v1a-content {
        padding: 72px 20px 36px;
        bottom: auto;
        position: relative;
        width: 100%;
        box-sizing: border-box;
        flex: 1;
    }
    .hero-v1a-kicker { margin-bottom: 20px; font-size: 0.64rem; letter-spacing: 0.2em; }
    .hero-v1a-title {
        font-size: clamp(2rem, 8.5vw, 3.2rem) !important;
        line-height: 0.96;
        letter-spacing: 0.005em;
    }
    .hero-v1a-divider { margin: 22px auto; width: 72px; }
    .hero-v1a-sub { font-size: 0.95rem; line-height: 1.55; max-width: 100%; padding: 0 4px; }
    .hero-v1a-btns {
        margin-top: 28px;
        gap: 10px;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .hero-v1a-btn-primary,
    .hero-v1a-btn-secondary {
        justify-content: center;
        width: 100%;
        padding: 14px 18px;
    }

    /* ── WIPE-BAR — компактный card ниже hero-content, без кровавых гриддингов ── */
    .wipe-bar {
        position: relative !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 18px 16px 22px !important;
        gap: 12px !important;
        background: rgba(10,10,10,0.92);
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .wipe-bar-label { font-size: 0.64rem; letter-spacing: 0.16em; }
    .wipe-bar-title {
        width: 100%;
        text-align: center;
        padding: 0 !important;
        font-size: 1rem !important;
        border: none !important;
    }
    .wipe-bar-time { flex-wrap: nowrap; gap: 4px; }
    .wipe-bar-time .cell { min-width: 52px; padding: 6px 10px 4px; }
    .wipe-bar-time .big { font-size: 1.15rem; }
    .wipe-bar-time .sm { font-size: 0.5rem; }

    /* ── SECTIONS rhythm — одинаковая типо-шкала заголовков ── */
    .feat-title,
    .srv-section-title,
    .news-home-title,
    .gal-home-title {
        font-size: clamp(1.4rem, 5.5vw, 1.8rem) !important;
        letter-spacing: 0.03em !important;
    }
    .feat-section,
    .news-home-v1a,
    .gal-home-section {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }
    .feat-head,
    .news-home-head,
    .gal-home-head,
    .srv-section-head {
        margin-bottom: 18px !important;
        padding-bottom: 12px;
    }

    /* ── CONTAINER inset ── */
    .container { padding-left: 16px !important; padding-right: 16px !important; }

    /* ── NEWS cards ── */
    .news-home-sub { font-size: 0.76rem; margin-top: 2px; }
    .news-home-grid { gap: 12px !important; }
    .news-card-body { padding: 14px 16px !important; }
    .news-card-title { font-size: 0.98rem !important; }
    .news-card-meta { margin-bottom: 8px !important; }
    /* Banner-wide img на мобилке — меньше вертикального «пустого» места, если картинка не загрузилась */
    .news-card-img { aspect-ratio: 2.5/1 !important; }

    /* ── GALLERY ── */
    .gal-home-head { padding-bottom: 10px !important; margin-bottom: 14px !important; }

    /* ── FEATURES ── */
    .feat-head .feat-line { display: none; }
    .feat-head .feat-count { font-size: 0.66rem; }

    /* ── CONNECT page ── */
    .connect-v1a-hero { padding: 36px 16px 28px; }
    .connect-v1a-hero::before { background: radial-gradient(ellipse 360px 180px at 50% 0%, rgba(59,130,246,0.08), transparent 70%); }
    .connect-v1a-tag { margin-bottom: 14px; font-size: 0.64rem; letter-spacing: 0.18em; padding: 4px 10px; }
    .connect-v1a-title { margin-bottom: 14px; font-size: clamp(1.6rem, 7vw, 2.2rem) !important; }
    .connect-v1a-sub { font-size: 0.92rem; margin-bottom: 22px; padding: 0 4px; line-height: 1.5; }

    /* IP box: вертикальная стопка для мобилки */
    .connect-v1a-ip-box { display: flex !important; flex-direction: column !important; width: 100%; border-radius: 10px; max-width: 420px; margin: 0 auto; }
    .connect-v1a-ip { padding: 14px 18px !important; font-size: 1rem !important; justify-content: center; gap: 8px; border-right: none !important; border-bottom: 1px solid rgba(59,130,246,0.22); flex-wrap: wrap; }
    .connect-v1a-ip span { margin-right: 0 !important; font-size: 0.66rem !important; }
    .connect-v1a-copy { padding: 14px !important; justify-content: center; font-size: 0.8rem !important; letter-spacing: 0.1em !important; min-height: 48px; }

    /* Steps: вертикальный список (а не flex-wrap «2+1») */
    .connect-v1a-steps { flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; }
    .connect-v1a-step { font-size: 0.82rem; }

    .connect-v1a-page { padding: 32px 16px 48px; }
    .connect-v1a-content { font-size: 0.95rem; line-height: 1.65; }
    .connect-v1a-content h1, .connect-v1a-content h2 { font-size: 1.35rem !important; margin: 28px 0 10px !important; padding-left: 10px !important; border-left-width: 3px !important; letter-spacing: 0.03em !important; }
    .connect-v1a-content h1:first-child, .connect-v1a-content h2:first-child { margin-top: 0 !important; }
    .connect-v1a-content h3 { font-size: 1.08rem !important; margin: 22px 0 8px !important; }
    .connect-v1a-content p { font-size: 0.95rem; margin-bottom: 12px; }
    .connect-v1a-content ul { padding-left: 18px; margin: 10px 0; }
    .connect-v1a-content ul li { margin-bottom: 8px; line-height: 1.55; }
    .connect-v1a-content ol > li { padding-left: 44px !important; margin-bottom: 12px !important; line-height: 1.5; }
    .connect-v1a-content ol > li::before { width: 30px !important; height: 30px !important; font-size: 0.78rem !important; }
    .connect-v1a-content blockquote { padding: 12px 16px; margin: 14px 0; font-size: 0.92rem; }
    .connect-v1a-content code { font-size: 0.82em; padding: 1px 6px; }
    .connect-v1a-content img { margin: 14px 0; border-radius: 8px; }
}

/* ≤480px — ещё плотнее, hero без kicker-разделителей */
@media (max-width: 480px) {
    .hero-v1a-content { padding: 60px 16px 28px; }
    .hero-v1a-kicker { margin-bottom: 14px; font-size: 0.58rem; }
    .hero-v1a-kicker::before, .hero-v1a-kicker::after { width: 18px; }
    .hero-v1a-divider { margin: 14px auto; width: 54px; }
    .hero-v1a-title { font-size: clamp(1.75rem, 8vw, 2.6rem) !important; letter-spacing: 0 !important; }
    .hero-v1a-sub { font-size: 0.9rem; padding: 0; }
    .hero-v1a-btns { margin-top: 22px; gap: 8px; }
    .hero-v1a-btn-primary, .hero-v1a-btn-secondary { padding: 12px 16px; font-size: 0.84rem; }

    .wipe-bar { padding: 14px 12px 18px !important; gap: 10px !important; }
    .wipe-bar-time .cell { min-width: 44px; padding: 5px 8px 3px; }
    .wipe-bar-time .big { font-size: 1rem; }

    .feat-section,
    .news-home-v1a,
    .gal-home-section,
    #servers.page-content { padding-top: 32px !important; padding-bottom: 32px !important; }

    .container { padding-left: 14px !important; padding-right: 14px !important; }

    .news-card-body { padding: 12px 14px !important; }
    .news-card-title { font-size: 0.92rem !important; line-height: 1.3 !important; }
}

/* Broken image — скрываем alt-значок, чтобы виден был декоративный фон родителя */
.news-card-img img,
.gal-home-big img,
.gal-home-sm img,
.gal-home-row-card img {
    color: transparent;
}

/* Битая картинка — схлопываем банер в новостях (card становится компактной text-only) */
.news-card-v1a.img-broken .news-card-img { display: none; }

/* Битая картинка в галерее — декоративный паттерн чтобы плашки не выглядели пустыми */
.gal-home-big.img-broken,
.gal-home-sm.img-broken,
.gal-home-row-card.img-broken {
    background-color: #0f131a;
    background-image:
        radial-gradient(ellipse at 30% 30%, rgba(59,130,246,0.10), transparent 60%),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 14px, transparent 14px 28px);
}
.gal-home-big.img-broken::after,
.gal-home-sm.img-broken::after,
.gal-home-row-card.img-broken::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='1.2' opacity='0.28'><rect x='3' y='5' width='18' height='14' rx='1.5'/><circle cx='8.5' cy='10' r='1.5'/><path d='M21 17l-5-6-4 5-3-2-6 5'/></svg>");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 42px;
    pointer-events: none;
}
