/* ══════════════════════════════════════
   EVHub — style.css v8 «тёплое комьюнити»
   Тёмная тёплая база, янтарь + угли, билет на ивент как главный элемент.
   ══════════════════════════════════════ */
/* Шрифты лежат у нас (OFL), без Google Fonts — быстрее и не зависит от внешних CDN */
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/fonts/onest-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/fonts/onest-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900; src: url('/fonts/unbounded-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900; src: url('/fonts/unbounded-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


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

:root {
    --bg:          #121211;
    --bg-2:        #181816;
    --surface:     #1F1F1C;
    --surface-2:   #2A2A26;
    --surface-3:   #373731;
    --ink:         #F4F2EA;
    --ink-dim:     rgba(244,242,234,0.72);
    --ink-faint:   rgba(244,242,234,0.07);
    --line:        rgba(244,242,234,0.10);
    --line-strong: rgba(244,242,234,0.22);
    --muted:       #9C998D;

    --amber:       #F2E002;
    --amber-hi:    #FFF266;
    --amber-dim:   rgba(242,224,2,0.14);
    --ember:       #E0532F;
    --ember-dim:   rgba(224,83,47,0.14);
    --green:       #8DBF6A;
    --green-dim:   rgba(141,191,106,0.14);
    --red:         #E5484D;
    --sky:         #7EB6C9;

    --font-display: 'Unbounded', 'Onest', system-ui, sans-serif;
    --font-body:    'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --wrap: 1160px;

    /* Совместимость со старыми страницами сервисов (медиатека, музыка) */
    --cream: var(--ink); --cream-dim: var(--ink-dim); --cream-faint: var(--ink-faint);
    --dim: var(--muted); --text-muted: var(--muted); --text-dim: var(--ink-dim);
    --border: var(--line); --border-h: var(--line-strong);
    --bg2: var(--bg-2); --bg3: var(--surface); --bg4: var(--surface-2);
    --orange: var(--amber); --gold: var(--amber); --blue: var(--amber); --blue-dim: var(--amber-dim);
    --purple: var(--ember); --pink: var(--ember); --cyan: var(--sky);
    --silver: var(--ink-dim); --bronze: #B87A4A;
}

html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
    background: var(--bg);
    background-image: radial-gradient(1200px 600px at 80% -200px, rgba(242,224,2,0.08), transparent 70%);
    background-repeat: no-repeat;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px; line-height: 1.6;
    min-height: 100vh;
    display: flex; flex-direction: column;
    overflow-x: hidden;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h4 { font-weight: 600; }
::selection { background: var(--amber); color: #1a1109; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ── NAV ── */
nav#evh-nav {
    position: sticky; top: 0; z-index: 1000;
    height: 68px;
    background: rgba(18,18,17,0.86);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--line);
}
nav#evh-nav .nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { width: 32px; height: 32px; object-fit: contain; }
.logo span { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.menu { display: flex; gap: 2px; align-items: center; }
.menu a {
    display: flex; align-items: center; gap: 8px;
    color: var(--ink-dim); font-size: 14.5px; font-weight: 500;
    padding: 8px 13px; border-radius: var(--r-sm);
    transition: color .15s, background .15s;
}
.menu a svg { width: 17px; height: 17px; flex-shrink: 0; }
.menu a:hover { color: var(--ink); background: var(--ink-faint); }
.menu a.active { color: var(--amber); }
.nav-cta {
    margin-left: 8px;
    background: var(--amber) !important; color: #141300 !important;
    font-weight: 600 !important; padding: 8px 16px !important;
}
.nav-cta:hover { background: var(--amber-hi) !important; }
.nav-burger { display: none; background: none; border: 0; width: 40px; height: 40px; border-radius: var(--r-sm); cursor: pointer; color: var(--ink); }
.nav-burger svg { width: 22px; height: 22px; }

.nav-user-wrap { position: relative; margin-left: 8px; }
.nav-user {
    display: flex; align-items: center; gap: 9px; cursor: pointer;
    padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 14px; font-weight: 600; background: none;
}
.nav-user img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.nav-user:hover { border-color: var(--line-strong); }
.nav-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
    display: none; flex-direction: column; padding: 6px;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.nav-dropdown.open { display: flex; }
.nav-dropdown a, .nav-dropdown button {
    display: block; text-align: left; padding: 9px 12px; border-radius: var(--r-sm);
    font-size: 14px; color: var(--ink-dim); background: none; border: 0; cursor: pointer;
}
.nav-dropdown a:hover, .nav-dropdown button:hover { background: var(--ink-faint); color: var(--ink); }
.nav-dropdown button.danger { color: var(--red); }

@media (max-width: 860px) {
    .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
    .menu {
        position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        padding: 10px 16px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line);
        display: none;
    }
    .menu.open { display: flex; }
    .menu a { padding: 12px; }
    .nav-cta, .nav-user-wrap { margin: 6px 0 0; }
    .nav-user { width: 100%; }
    .nav-dropdown { position: static; display: flex; box-shadow: none; margin-top: 6px; }
}

/* ── КНОПКИ ── */
.btn-primary, .btn-outline, .btn-secondary, .btn-ghost, .btn-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: var(--r-sm);
    font-size: 15px; font-weight: 600; line-height: 1.2;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--amber); color: #141300; }
.btn-primary:hover { background: var(--amber-hi); }
.btn-outline, .btn-secondary { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover, .btn-secondary:hover { border-color: var(--amber); color: var(--amber); }
.btn-ghost { color: var(--ink-dim); background: transparent; }
.btn-ghost:hover { color: var(--ink); background: var(--ink-faint); }
.btn-danger { color: var(--red); border-color: rgba(229,72,77,0.4); background: transparent; }
.btn-danger:hover { background: rgba(229,72,77,0.12); }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }
button:disabled, .btn-primary[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* ── ТИПОГРАФИКА И СЕКЦИИ ── */
.section { padding: 64px 0; }
.section + .section { padding-top: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(22px, 3vw, 28px); }
.section-head a { color: var(--amber); font-weight: 600; font-size: 15px; }
.section-head a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lead { color: var(--ink-dim); font-size: 18px; max-width: 60ch; }
.muted { color: var(--muted); }

.page-hero { padding: 56px 0 28px; }
.page-hero .wrap > * + * { margin-top: 12px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); }
.page-hero p { color: var(--ink-dim); font-size: 18px; max-width: 60ch; }
.page-eyebrow { color: var(--amber); font-weight: 600; font-size: 15px; }

/* ── ГЛАВНАЯ: HERO + БИЛЕТ ── */
.home-hero { padding: 64px 0 40px; }
.home-hero .wrap { display: grid; grid-template-columns: 1fr minmax(320px, 470px); gap: 56px; align-items: center; }
.home-hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.02em; max-width: 16ch; }
.home-hero h1 .hl { color: var(--amber); display: block; }
.home-hero .lead { margin-top: 20px; }
.home-hero .actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.home-facts { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; color: var(--ink-dim); font-size: 15px; }
.home-facts b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--ink); line-height: 1.1; }

.ticket {
    position: relative; display: grid; grid-template-rows: auto auto;
    background: linear-gradient(160deg, #2B2A12 0%, #1E1E14 55%, #1A1A16 100%);
    border: 1px solid rgba(242,224,2,0.35);
    border-radius: var(--r-lg);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,245,150,0.12);
    transform: rotate(-1.2deg);
    animation: ticketIn .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes ticketIn { from { opacity: 0; transform: translateY(18px) rotate(-3deg); } to { opacity: 1; transform: rotate(-1.2deg); } }
.ticket-main { padding: 26px 28px 22px; }
.ticket-kicker { color: var(--amber); font-weight: 600; font-size: 14px; }
.ticket-title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; margin-top: 8px; line-height: 1.2; }
.ticket-game { color: var(--ink-dim); font-size: 15px; margin-top: 6px; }
.ticket-when { display: flex; gap: 24px; margin-top: 20px; }
.ticket-when div { font-size: 13.5px; color: var(--muted); }
.ticket-when b { display: block; color: var(--ink); font-size: 17px; font-weight: 600; }
.ticket-cut {
    position: relative; height: 0; border-top: 2px dashed rgba(242,224,2,0.35); margin: 0 22px;
}
.ticket-cut::before, .ticket-cut::after {
    content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--bg); border: 1px solid rgba(242,224,2,0.35);
}
.ticket-cut::before { left: -36px; clip-path: inset(0 0 0 50%); }
.ticket-cut::after  { right: -36px; clip-path: inset(0 50% 0 0); }
.ticket-stub { padding: 18px 28px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.countdown { display: flex; gap: 14px; font-variant-numeric: tabular-nums; }
.countdown div { text-align: center; font-size: 12px; color: var(--muted); }
.countdown b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--amber-hi); line-height: 1.1; }
.ticket-empty .ticket-main { padding: 34px 28px; }
.ticket-empty p { color: var(--ink-dim); margin-top: 10px; }
@media (max-width: 900px) {
    .home-hero .wrap { grid-template-columns: 1fr; gap: 40px; }
    .ticket { transform: none; animation: none; }
}

/* ── СЕТКА ИВЕНТОВ ── */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ev-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    transition: border-color .15s, transform .15s;
}
.ev-card:hover { border-color: rgba(242,224,2,0.45); transform: translateY(-2px); }
.ev-card-media { aspect-ratio: 16 / 9; background: var(--surface-2) center / cover no-repeat; position: relative; }
.ev-card-date {
    position: absolute; left: 12px; top: 12px;
    background: rgba(18,18,17,0.82); border-radius: var(--r-sm); padding: 6px 10px; text-align: center; line-height: 1.1;
    backdrop-filter: blur(6px);
}
.ev-card-date b { display: block; font-family: var(--font-display); font-size: 20px; }
.ev-card-date span { font-size: 12px; color: var(--ink-dim); }
.ev-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ev-card-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.ev-card-meta { color: var(--muted); font-size: 14px; }
.ev-card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.seats { font-size: 14px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.seats-bar { width: 84px; height: 5px; border-radius: 4px; background: var(--surface-3); overflow: hidden; display: inline-block; vertical-align: middle; margin-left: 8px; }
.seats-bar i { display: block; height: 100%; background: var(--amber); border-radius: 4px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-open     { color: var(--green); background: var(--green-dim); }
.status-soon     { color: var(--amber); background: var(--amber-dim); }
.status-closed   { color: var(--ink-dim); background: var(--ink-faint); }
.status-draft    { color: var(--sky); background: rgba(126,182,201,0.12); }
.status-past     { color: var(--muted); background: var(--ink-faint); }
.status-pending  { color: var(--amber); background: var(--amber-dim); }
.status-approved { color: var(--green); background: var(--green-dim); }
.status-rejected { color: var(--red); background: rgba(229,72,77,0.12); }

/* ── СЕРВИСЫ ── */
.services-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.hub-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2);
    transition: border-color .15s;
}
a.hub-card:hover { border-color: rgba(242,224,2,0.45); }
.hub-card h3 { font-size: 18px; }
.hub-card p { color: var(--ink-dim); font-size: 15px; }
.hub-card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--amber-dim); color: var(--amber); display: grid; place-items: center; }
.hub-card .ic svg { width: 22px; height: 22px; }
.services-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

/* ── ТОПЫ ── */
.top-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.top-tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-dim); cursor: pointer; }
.top-tabs button[aria-pressed="true"] { background: var(--amber); color: #141300; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; margin: 28px 0 32px; }
.podium-place {
    text-align: center; padding: 24px 16px 20px; border-radius: var(--r-md);
    background: var(--surface); border: 1px solid var(--line);
}
.podium-place img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 3px solid var(--line-strong); }
.podium-place.p1 { padding-top: 34px; border-color: rgba(242,224,2,0.5); background: linear-gradient(180deg, rgba(242,224,2,0.12), var(--surface) 70%); }
.podium-place.p1 img { width: 92px; height: 92px; border-color: var(--amber); }
.podium-place.p2 img { border-color: #CFC4B6; }
.podium-place.p3 img { border-color: var(--bronze); }
.podium-place .place { font-family: var(--font-display); font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.podium-place.p1 .place { color: var(--amber); }
.podium-place .name { font-weight: 600; margin-top: 10px; overflow-wrap: anywhere; }
.podium-place .score { font-family: var(--font-display); font-size: 28px; margin-top: 4px; }
.podium-place .score small { font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 500; display: block; }
@media (max-width: 640px) { .podium { grid-template-columns: 1fr; } .podium-place.p1 { order: -1; } }

.rank-list { list-style: none; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.rank-list li { display: grid; grid-template-columns: 44px 40px 1fr auto; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.rank-list li:first-child { border-top: 0; }
.rank-list li:nth-child(odd) { background: var(--bg-2); }
.rank-list .pos { font-family: var(--font-display); color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.rank-list img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.rank-list .who b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.rank-list .who span { font-size: 13.5px; color: var(--muted); }
.rank-list .val { font-family: var(--font-display); font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.rank-list .val small { display: block; font-family: var(--font-body); font-size: 12.5px; color: var(--muted); font-weight: 500; }
.rank-list li.me { box-shadow: inset 3px 0 0 var(--amber); }

/* ── ФОРМЫ ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-dim); }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .field input, .field select, .field textarea {
    width: 100%; padding: 11px 13px; border-radius: var(--r-sm);
    background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink); font-size: 15px;
}
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-msg { font-size: 14.5px; min-height: 1.4em; }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: var(--green); }

/* ── ПАНЕЛИ, ТАБЛИЦЫ, МОДАЛКИ ── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.panel-pad { padding: 22px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13.5px; padding: 12px 14px; background: var(--bg-2); white-space: nowrap; }
table.data td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: var(--ink-faint); }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.cell-user img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px; background: rgba(8,8,7,0.72); backdrop-filter: blur(4px); overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 580px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.modal-box h3 { font-size: 21px; margin-bottom: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 3000;
    background: var(--surface-2); border: 1px solid var(--line-strong); padding: 11px 18px; border-radius: 999px;
    font-size: 14.5px; transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(229,72,77,0.5); }
.copy-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px); opacity: 0; background: var(--surface-2); border: 1px solid var(--line-strong); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 3000; transition: .2s; }
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.lightbox { display: none; position: fixed; inset: 0; background: rgba(8,8,7,0.94); z-index: 2000; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img, .lightbox video { max-width: 88vw; max-height: 88vh; border-radius: 10px; }
.lightbox-close { position: absolute; top: 20px; right: 28px; font-size: 32px; color: var(--ink); cursor: pointer; background: none; border: 0; }

/* ── РОЛИ (цвет ника) ── */
.role-player    { color: var(--ink); }
.role-helper    { color: var(--sky); }
.role-organizer { color: var(--amber); }
.role-admin     { color: var(--ember); }
.role-badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--ink-faint); }
.role-badge.role-helper { background: rgba(126,182,201,0.12); }
.role-badge.role-organizer { background: var(--amber-dim); }
.role-badge.role-admin { background: var(--ember-dim); }
.rainbow-text {
    background: linear-gradient(90deg, #FF8A5B, #FFF266, #9BE58A, #7EC8E3, #C59BFF, #FF8A5B);
    background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: rainbow 6s linear infinite;
}
@keyframes rainbow { to { background-position: 200% center; } }

/* ── О ПРОЕКТЕ / КОМАНДА ── */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.about-grid h3 { font-size: 18px; margin-bottom: 8px; }
.about-grid p { color: var(--ink-dim); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.team-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 10px; }
.team-card .top { display: flex; align-items: center; gap: 14px; }
.team-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.team-card h3 { font-size: 19px; }
.team-card .role { color: var(--amber); font-size: 14.5px; font-weight: 600; }
.team-card p { color: var(--ink-dim); font-size: 15px; }
.team-card blockquote { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; font-style: italic; }

/* ── ЛИЧНЫЙ КАБИНЕТ ── */
.lk-login { min-height: calc(100vh - 68px - 120px); display: grid; place-items: center; padding: 40px 20px; }
.lk-login-box { max-width: 440px; text-align: center; }
.lk-login-box h1 { font-size: 30px; margin: 18px 0 10px; }
.lk-login-box p { color: var(--ink-dim); margin-bottom: 26px; }
.steam-btn { background: #1B2838; color: #fff; border: 1px solid #2A475E; padding: 13px 22px; font-size: 16px; }
.steam-btn:hover { background: #2A475E; color: #fff; }
.lk { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 32px 0 64px; align-items: start; }
.lk-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; }
.lk-me { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.lk-me img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.lk-me b { display: block; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.lk-side button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-dim); font-size: 15px; font-weight: 500; cursor: pointer; }
.lk-side button svg { width: 18px; height: 18px; flex-shrink: 0; }
.lk-side button:hover { background: var(--ink-faint); color: var(--ink); }
.lk-side button[aria-current="page"] { background: var(--amber-dim); color: var(--amber); }
.lk-side .sep { font-size: 13px; color: var(--muted); padding: 16px 12px 6px; }
.lk-page { display: none; }
.lk-page.active { display: block; }
.lk-page > h2 { font-size: 24px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.stat b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.stat span { color: var(--muted); font-size: 14px; }
.list-rows { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list-row:first-child { border-top: 0; }
.list-row .date { min-width: 74px; font-family: var(--font-display); font-size: 15px; color: var(--amber); }
.list-row .grow { flex: 1; min-width: 180px; }
.list-row .grow b { display: block; font-weight: 600; }
.list-row .grow span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
    .lk { grid-template-columns: 1fr; }
    .lk-side { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
    .lk-me, .lk-side .sep { display: none; }
    .lk-side button { white-space: nowrap; width: auto; }
}

/* ── СТРАНИЦА ИВЕНТА ── */
.event-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; padding-bottom: 64px; }
.event-cover { aspect-ratio: 21 / 9; border-radius: var(--r-lg); background: var(--surface-2) center / cover; margin-bottom: 26px; }
.event-desc { color: var(--ink-dim); white-space: pre-line; font-size: 16.5px; max-width: 68ch; }
.event-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.event-facts { display: grid; gap: 12px; }
.event-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.event-facts dt { color: var(--muted); }
.event-facts dd { font-weight: 600; text-align: right; }
.connect-box { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--bg); border: 1px dashed var(--line-strong); padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; overflow-wrap: anywhere; }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.people > a, .people > span { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; }
.people > * > img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
@media (max-width: 900px) { .event-layout { grid-template-columns: 1fr; } .event-side { position: static; } }

/* ── КАЛЕНДАРЬ ── */
.cal { padding: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { font-weight: 600; }
.cal-head button { width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line); background: none; cursor: pointer; color: var(--ink); }
.cal-head button:hover { border-color: var(--amber); color: var(--amber); }
.cal table { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.cal th { color: var(--muted); font-weight: 500; padding: 6px 0; font-size: 12.5px; }
.cal td { padding: 2px; }
.cal td span { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; color: var(--ink-dim); }
.cal td.today span { border: 1px solid var(--line-strong); color: var(--ink); }
.cal td.has span { background: var(--amber); color: #141300; font-weight: 700; }
.cal td.has.past span { background: var(--surface-3); color: var(--ink-dim); }
.events-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; padding-bottom: 64px; }
.events-layout aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) { .events-layout { grid-template-columns: 1fr; } .events-layout aside { position: static; order: -1; } }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 40px; color: var(--muted); font-size: 14.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.footer-brand img { width: 24px; height: 24px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

/* ── СТРАНИЦЫ ОШИБОК ── */
.error-screen { flex: 1; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.error-code { font-family: var(--font-display); font-size: clamp(88px, 18vw, 160px); line-height: 1; color: var(--amber); font-weight: 700; }
.error-title { font-size: 26px; margin-top: 14px; }
.error-sub { color: var(--ink-dim); margin-top: 10px; max-width: 46ch; margin-inline: auto; }
.error-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ── Cookie-плашка ── */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2500; max-width: 560px; margin: 0 auto; display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-md); font-size: 14px; color: var(--ink-dim); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.cookie-bar p { flex: 1; }

/* ══════════════════════════════════════
   ДВИЖЕНИЕ
   Одно мягкое появление страницы, переходы между страницами (View Transitions),
   реакции на действия: модалки, меню, вкладки, смена разделов.
   ══════════════════════════════════════ */
:root { --ease: cubic-bezier(.2,.8,.2,1); }

/* Переход между страницами сайта (Chrome/Edge/Safari 18+; в остальных — обычная загрузка) */
@view-transition { navigation: auto; }
nav#evh-nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vtOut .18s ease both; }
::view-transition-new(root) { animation: vtIn .32s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }

/* Появление основного содержимого при загрузке */
main { animation: pageIn .45s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }

/* Данные пришли с сервера — элементы проявляются по очереди (максимум ~0.3 с) */
.reveal > * { animation: itemIn .4s var(--ease) both; }
.reveal > *:nth-child(2) { animation-delay: .04s; }
.reveal > *:nth-child(3) { animation-delay: .08s; }
.reveal > *:nth-child(4) { animation-delay: .12s; }
.reveal > *:nth-child(5) { animation-delay: .16s; }
.reveal > *:nth-child(6) { animation-delay: .2s; }
.reveal > *:nth-child(n+7) { animation-delay: .24s; }
@keyframes itemIn { from { opacity: 0; transform: translateY(10px); } }

/* Скелетоны вместо «Загрузка…» */
.skel { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); }
.skel::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(244,242,234,0.05) 50%, transparent 80%);
    transform: translateX(-100%); animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-card { height: 290px; }
.skel-row { height: 64px; border-radius: 0; border: 0; border-top: 1px solid var(--line); }
.skel-line { height: 14px; border-radius: 6px; border: 0; background: var(--surface-2); margin: 8px 0; }

/* Меню пользователя и мобильное меню */
.nav-dropdown { display: flex; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .16s, transform .16s var(--ease), visibility 0s .16s; }
.nav-dropdown.open { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .2s var(--ease); }
@media (max-width: 860px) {
    .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
    .menu { display: flex; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s, transform .22s var(--ease), visibility 0s .2s; }
    .menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .22s var(--ease); }
}

/* Модалки: фон проявляется, окно поднимается */
.modal { display: flex; opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.modal.open { opacity: 1; visibility: visible; transition: opacity .2s; }
.modal-box { transform: translateY(16px) scale(.98); transition: transform .28s var(--ease); }
.modal.open .modal-box { transform: none; }

/* Вкладки: подсветка переезжает плавно */
.top-tabs button { transition: background .2s var(--ease), color .2s; }

/* Разделы ЛК: смена с проявлением */
.lk-page.active { animation: itemIn .3s var(--ease) both; }
.lk-side button { transition: background .15s, color .15s; }

/* Кнопки и карточки реагируют на нажатие */
.btn-primary:active, .btn-outline:active, .btn-secondary:active, .btn-ghost:active, .btn-danger:active { transform: translateY(1px); }
.ev-card { transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.ev-card:hover { box-shadow: 0 14px 30px -14px rgba(0,0,0,0.6); }
.ev-card-media { transition: transform .5s var(--ease); }
.ev-card { isolation: isolate; }
.ev-card:hover .ev-card-media { transform: scale(1.03); }

/* Изменилось число (обратный отсчёт, счётчики) */
.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: translateY(-2px); color: var(--amber-hi); } }

@media (prefers-reduced-motion: reduce) {
    main, .reveal > *, .lk-page.active, .ticket { animation: none !important; }
    .skel::after { animation: none; }
}

/* ── Шаги «как попасть на ивент» (настоящая последовательность — поэтому нумерация) ── */
.steps { list-style: none; counter-reset: step; display: grid; gap: 2px; max-width: 760px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-dim); color: var(--amber); font-family: var(--font-display); font-weight: 600; }
.steps b { font-weight: 600; font-size: 17px; }
.steps span { color: var(--ink-dim); }
.ava-fb { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); color: var(--amber); font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.cell-user .ava-fb, .people .ava-fb { width: 30px; height: 30px; font-size: 12px; }
.people .ava-fb { width: 26px; height: 26px; }
.podium-place .ava-fb { width: 72px; height: 72px; font-size: 26px; border: 3px solid var(--line-strong); }
.podium-place.p1 .ava-fb { width: 92px; height: 92px; border-color: var(--amber); }
.lk-me .ava-fb { width: 46px; height: 46px; }
.nav-user .ava-fb { width: 28px; height: 28px; font-size: 12px; }
.pf-ava { width: 84px !important; height: 84px !important; border-radius: 50%; object-fit: cover; font-size: 30px !important; }

/* Колонки сеток не растягиваются шире экрана из-за таблиц и вкладок */
.lk > *, .events-layout > *, .event-layout > *, .home-hero .wrap > * { min-width: 0; }
@media (max-width: 560px) { .top-tabs { max-width: 100%; overflow-x: auto; } .top-tabs button { white-space: nowrap; } }

/* ── Партнёр ExLand ── */
.partner-mark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.partner-mark img { height: 22px; width: auto; display: block; }
.partner-mark b { font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; }
a.partner-mark:hover { color: var(--amber); }
.nav-partner { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.nav-partner .partner-mark { font-size: 14px; }
@media (max-width: 1120px) { .nav-partner { display: none; } }
.footer-grid { align-items: flex-start !important; }
.footer-about { max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.footer-about p a { color: var(--amber); }
.footer-partner img { height: 34px; }
.footer-links { max-width: 520px; justify-content: flex-end; row-gap: 10px; }

/* ── Кейс (прошедший ивент в портфолио) ── */
.case-cover { position: relative; aspect-ratio: 21 / 8; display: flex; align-items: flex-end; overflow: hidden; }
.case-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(18,18,17,0.92)); }
.case-cover-text { position: relative; z-index: 1; padding: 28px 32px; }
.case-cover h1 { font-size: clamp(28px, 4.6vw, 52px); }
.case-kicker { color: var(--amber-hi); font-weight: 600; margin-bottom: 8px; }
.case-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: -4px 0 32px; padding: 0 4px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.case-stats b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.case-stats b.case-org { font-size: 20px; padding-top: 6px; }
.case-recap { font-size: 19px; line-height: 1.6; color: var(--ink); max-width: 64ch; white-space: pre-line; }
.case-h { font-size: 20px; margin: 40px 0 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery-item { aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-sm); background: var(--surface-2) center / cover; cursor: zoom-in; transition: transform .25s var(--ease), opacity .2s; }
.gallery-item:hover { transform: scale(1.02); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(18,18,17,0.6); color: var(--ink); font-size: 26px; cursor: pointer; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lightbox img { animation: itemIn .25s var(--ease); }
@media (max-width: 640px) { .case-cover { aspect-ratio: 4 / 3; } .case-cover-text { padding: 20px; } }

/* ── Портфолио: карточки кейсов ── */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); isolation: isolate; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.case-card:hover { border-color: rgba(242,224,2,0.45); transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0,0,0,0.7); }
.case-card-media { aspect-ratio: 16 / 9; background: var(--surface-2) center / cover; transition: transform .6s var(--ease); }
.case-card:hover .case-card-media { transform: scale(1.03); }
.case-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-card-meta { color: var(--amber); font-size: 14px; font-weight: 600; }
.case-card h3 { font-size: 21px; }
.case-card p { color: var(--ink-dim); font-size: 15px; }
.case-card-foot { margin-top: auto; padding-top: 10px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.case-card-big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; }
.case-card-big .case-card-media { aspect-ratio: auto; min-height: 340px; }
.case-card-big .case-card-body { padding: 32px; justify-content: center; }
.case-card-big h3 { font-size: clamp(24px, 3vw, 34px); }
.case-card-big p { font-size: 16.5px; }
@media (max-width: 860px) {
    .case-grid { grid-template-columns: 1fr; }
    .case-card-big { display: flex; }
    .case-card-big .case-card-media { aspect-ratio: 16 / 9; min-height: 0; }
    .case-card-big .case-card-body { padding: 22px; }
}
.hero-partner { display: flex; align-items: center; gap: 10px; color: var(--ink-dim); font-size: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.hero-partner-mark img { height: 28px; }
.hero-partner-mark b { font-size: 18px; color: var(--amber-hi); }
.home-hero h1 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.03em; max-width: none; }

/* ── Отчёт в модалке ивента ── */
.report-box { border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 16px; display: grid; gap: 14px; margin-top: 6px; }
.report-box legend { padding: 0 8px; font-weight: 600; color: var(--amber); }
.report-box > .hint { margin-top: -6px; font-size: 13.5px; color: var(--muted); }
.gallery-edit { display: flex; flex-wrap: wrap; gap: 8px; }
.g-thumb { position: relative; width: 96px; height: 72px; border-radius: var(--r-sm); background: var(--surface-2) center / cover; border: 1px solid var(--line); }
.g-thumb button { position: absolute; top: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(18,18,17,0.85); color: var(--ink); cursor: pointer; font-size: 13px; line-height: 1; }
.g-thumb [data-del] { right: 4px; }
.g-thumb [data-first] { left: 4px; }
.g-first { position: absolute; left: 4px; bottom: 4px; font-size: 11px; background: var(--amber); color: #141300; padding: 1px 6px; border-radius: 999px; font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--amber); }
.modal-box { max-width: 680px; }

/* Верхнее меню: без иконок на десктопе, в одну строку */
.menu a { white-space: nowrap; }
@media (min-width: 861px) { .menu a svg { display: none; } .menu a { padding: 8px 11px; } }
@media (max-width: 1280px) { .nav-partner { display: none; } }

/* ══════════════════════════════════════
   ExLand RP+ — бренд
   Чёрно-жёлтая гамма логотипа, наклонные срезы как у букв в знаке.
   ══════════════════════════════════════ */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .01em; color: var(--ink); }
.rpp-tag {
    display: inline-block; transform: skewX(-14deg);
    background: var(--amber); color: #141300;
    padding: 3px 9px 2px; border-radius: 4px;
    box-shadow: 3px 3px 0 rgba(242,224,2,0.25);
}
.rpp-tag i { display: inline-block; transform: skewX(14deg); font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .02em; line-height: 1.2; }
.brand-sm .brand-logo { width: 28px; height: 28px; border-radius: 7px; }
.brand-sm .brand-name { font-size: 16px; }
.brand-sm .rpp-tag i { font-size: 12px; }
.brand-xl { gap: 18px; }
.brand-xl .brand-logo { width: clamp(64px, 9vw, 104px); height: clamp(64px, 9vw, 104px); border-radius: 22px; box-shadow: 0 20px 50px -18px rgba(242,224,2,0.45); }
.brand-xl .brand-name { font-size: clamp(44px, 7.4vw, 92px); letter-spacing: -0.03em; line-height: 1; }
.brand-xl .rpp-tag { padding: 6px 16px 4px; border-radius: 8px; box-shadow: 6px 6px 0 rgba(242,224,2,0.25); align-self: flex-start; margin-top: 6px; }
.brand-xl .rpp-tag i { font-size: clamp(22px, 3.2vw, 40px); }
.logo .brand { gap: 9px; }
.footer-brand-link { display: inline-block; }

/* Полоса «осторожно» — фирменный мотив на разделителях */
.hazard { height: 8px; border-radius: 4px; background: repeating-linear-gradient(-45deg, var(--amber) 0 12px, #141300 12px 24px); opacity: .9; }
.ticket-cut { border-top: 0; height: 6px; margin: 0 22px; background: repeating-linear-gradient(-45deg, rgba(242,224,2,0.55) 0 8px, transparent 8px 16px); }
.ticket-cut::before, .ticket-cut::after { top: -9px; }

/* Плашка команды-организатора */
.team-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 3px 10px 3px 4px; border-radius: 999px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent);
}
.team-badge img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #000; }
.team-badge:not(:has(img)) { padding-left: 10px; }
.ev-card-team { position: absolute; right: 12px; top: 12px; backdrop-filter: blur(6px); background: rgba(18,18,17,0.78); }

/* Фильтр по команде */
.team-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.team-filter button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-dim); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.team-filter button img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.team-filter button.all { padding-left: 14px; }
.team-filter button[aria-pressed="true"] { border-color: var(--tc, var(--amber)); color: var(--ink); background: color-mix(in srgb, var(--tc, var(--amber)) 14%, transparent); }

/* Карточки команд */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.team-tile { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, transform .25s var(--ease); }
.team-tile::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--tc); }
a.team-tile:hover { border-color: color-mix(in srgb, var(--tc) 50%, transparent); transform: translateY(-3px); }
.team-tile .head { display: flex; align-items: center; gap: 14px; }
.team-tile .head img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #000; }
.team-tile h3 { font-size: 22px; }
.team-tile .short { color: var(--tc); font-size: 14.5px; font-weight: 600; }
.team-tile p { color: var(--ink-dim); font-size: 15px; }
.team-tile .nums { display: flex; gap: 28px; margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 13.5px; }
.team-tile .nums b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--ink); font-weight: 600; }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.team-hero-head { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.team-hero-head img { width: 84px; height: 84px; border-radius: 20px; object-fit: cover; background: #000; box-shadow: 0 16px 40px -16px var(--tc); }
.team-hero-short { color: var(--tc); font-weight: 600; margin-top: 6px; }
.team-hero h1 { font-size: clamp(30px, 5vw, 52px); }
.brand-xl { flex-wrap: wrap; row-gap: 10px; }
.brand-xl .brand-name { font-size: clamp(40px, 5.4vw, 74px); }
.brand-xl .rpp-tag i { font-size: clamp(20px, 2.6vw, 32px); }
.home-hero #heroBrand { margin-bottom: 4px; }
@media (max-width: 480px) {
    .brand-xl { flex-wrap: nowrap; gap: 10px; }
    .brand-xl .brand-logo { width: 52px; height: 52px; border-radius: 14px; }
    .brand-xl .brand-name { font-size: 34px; }
    .brand-xl .rpp-tag { padding: 4px 10px 3px; }
    .brand-xl .rpp-tag i { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   v11 — меньше «шаблона», больше игрового проекта.
   Узкий заголовочный шрифт, острые углы, реальные кадры вместо
   карточек, расписание списком, без анимаций на каждом блоке.
   ══════════════════════════════════════════════════════════ */
@font-face { font-family: 'Oswald'; font-style: normal; font-display: swap; font-weight: 200 700; src: url('/fonts/oswald-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-display: swap; font-weight: 200 700; src: url('/fonts/oswald-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --font-display: 'Oswald', 'Onest', system-ui, sans-serif;
    --r-sm: 3px;
    --r-md: 4px;
    --r-lg: 6px;
    --bg: #111110;
}
body { background: var(--bg); background-image: none; font-size: 16px; }
h1, h2, h3 { font-weight: 600; letter-spacing: 0; line-height: 1.12; }

/* Без «проявления» каждого блока — только нативный переход между страницами */
main { animation: none; }
.reveal > * { animation: none; }
.lk-page.active { animation: none; }
.skel::after { display: none; }
.ev-card:hover, .case-card:hover, a.team-tile:hover { transform: none; box-shadow: none; }
.ev-card:hover .ev-card-media, .case-card:hover .case-card-media { transform: none; }
.btn-primary:active, .btn-outline:active, .btn-secondary:active, .btn-ghost:active, .btn-danger:active { transform: none; }

nav#evh-nav { background: #0C0C0B; backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
.menu a { font-size: 15px; font-weight: 500; border-radius: 0; padding: 22px 12px; position: relative; }
.menu a:hover { background: transparent; }
.menu a.active { color: var(--ink); }
.menu a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--amber); }
.nav-cta { border-radius: var(--r-sm) !important; padding: 9px 16px !important; }
.nav-cta::after { display: none; }
@media (max-width: 860px) { .menu a { padding: 12px; } .menu a.active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; } }

.btn-primary, .btn-outline, .btn-secondary, .btn-ghost, .btn-danger { border-radius: var(--r-sm); font-weight: 600; }
.btn-primary { color: #111; }
.btn-ghost-light { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,0.45); color: #fff; font-weight: 600; font-size: 15px; transition: background .15s, border-color .15s; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.text-link { color: var(--amber); font-weight: 600; display: inline-block; margin-top: 14px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Шапка главной: кадр на всю ширину ── */
.hero-x { position: relative; padding: 96px 0 0; isolation: isolate; }
.hero-x-bg { position: absolute; inset: 0 0 64px; z-index: -1; background: #1b1b19 center 35% / cover no-repeat; }
.hero-x-bg::after { content: ''; position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(10,10,9,0.92) 0%, rgba(10,10,9,0.72) 45%, rgba(10,10,9,0.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(17,17,16,0) 35%); }
.hero-x-inner { padding-bottom: 72px; max-width: var(--wrap); }
.hero-x-lead { color: rgba(255,255,255,0.82); font-size: 18px; max-width: 54ch; margin: 22px 0 28px; }
.hero-x .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.brand-xl .brand-logo { box-shadow: none; border-radius: 10px; }
.brand-xl .brand-name { color: #fff; font-size: clamp(48px, 7vw, 96px); font-weight: 700; letter-spacing: -0.01em; text-transform: none; }
.brand-xl .rpp-tag { box-shadow: none; }

.next-strip {
    display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "label label label" "title facts btn";
    column-gap: 28px; row-gap: 4px; align-items: center;
    background: #1A1A18; border-left: 4px solid var(--amber); padding: 18px 24px;
}
.next-label { grid-area: label; color: var(--amber); font-size: 13.5px; font-weight: 600; }
.next-title { grid-area: title; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); }
.next-title:hover { color: var(--amber); }
.next-facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink-dim); font-size: 15px; }
.next-facts span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; background: var(--muted); margin: 0 14px 3px -10px; vertical-align: middle; }
.next-strip .btn-primary { grid-area: btn; }
@media (max-width: 760px) {
    .next-strip { grid-template-columns: 1fr; grid-template-areas: "label" "title" "facts" "btn"; row-gap: 8px; }
    .next-strip .btn-primary { justify-self: start; margin-top: 6px; }
}

/* ── Блоки главной ── */
.block-x { padding: 56px 0 8px; }
.block-x-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 0; border-bottom: 2px solid var(--ink); }
.block-x-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.block-x-head a { color: var(--ink-dim); font-size: 15px; }
.block-x-head a:hover { color: var(--amber); }

/* Расписание списком */
.sched-row { display: grid; grid-template-columns: 92px 1fr auto 120px; gap: 20px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); transition: background .15s; }
.sched-row:hover { background: rgba(255,255,255,0.03); }
.sched-row:hover .sched-main b { color: var(--amber); }
.sched-date { display: flex; align-items: baseline; gap: 8px; }
.sched-date b { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1; }
.sched-date span { color: var(--muted); font-size: 13.5px; line-height: 1.2; }
.sched-main b { display: block; font-size: 18px; font-weight: 600; transition: color .15s; }
.sched-main span { color: var(--muted); font-size: 14.5px; }
.sched-seats { text-align: right; color: var(--ink-dim); font-size: 14.5px; white-space: nowrap; }
.sched-empty { padding: 28px 4px; color: var(--muted); border-bottom: 1px solid var(--line); }
.sched-empty a { color: var(--amber); }
@media (max-width: 720px) {
    .sched-row { grid-template-columns: 64px 1fr; row-gap: 8px; }
    .sched-date { flex-direction: column; gap: 2px; }
    .sched-team, .sched-seats { grid-column: 2; text-align: left; }
}

/* Архив мозаикой */
.arch-mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 230px; gap: 6px; margin-top: 20px; }
.arch-mosaic[data-count="1"] { grid-template-columns: 1fr; grid-auto-rows: 420px; }
.arch-mosaic[data-count="2"] { grid-template-columns: 2fr 1fr; grid-auto-rows: 420px; }
.arch-main { grid-row: span 2; }
.arch-mosaic[data-count="2"] .arch-main { grid-row: auto; }
.arch-tile { position: relative; display: flex; align-items: flex-end; background: #1b1b19 center / cover no-repeat; overflow: hidden; }
.arch-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,8,7,0.9) 0%, rgba(8,8,7,0.1) 60%); transition: background .2s; }
.arch-tile:hover::before { background: linear-gradient(0deg, rgba(8,8,7,0.95) 0%, rgba(8,8,7,0.25) 70%); }
.arch-cap { position: relative; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.arch-cap b { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #fff; line-height: 1.15; }
.arch-main .arch-cap { padding: 26px 28px; }
.arch-main .arch-cap b { font-size: clamp(28px, 3.4vw, 40px); }
.arch-meta { color: rgba(255,255,255,0.72); font-size: 14px; }
.arch-tile:hover .arch-cap b { color: var(--amber); }
@media (max-width: 760px) {
    .arch-mosaic, .arch-mosaic[data-count] { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .arch-main { grid-row: auto; }
}

/* Команды — полосы, а не плитки */
.team-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.team-banner { display: flex; gap: 20px; align-items: flex-start; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.team-banners .team-banner + .team-banner { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 720px) { .team-banners .team-banner + .team-banner { padding-left: 0; border-left: 0; } }
.team-banner img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #000; }
.team-banner h3 { font-size: 24px; }
.team-banner:hover h3 { color: var(--tc); }
.team-banner p { color: var(--ink-dim); font-size: 15px; margin: 6px 0 10px; }
.team-banner-meta { color: var(--tc); font-size: 14px; font-weight: 600; }

/* Топ — компактно, в две колонки */
.top-split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; padding-top: 16px; border-top: 2px solid var(--ink); }
.top-split h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.top-split .muted { font-size: 15px; max-width: 40ch; }
.top-mini { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.top-mini li { display: grid; grid-template-columns: 26px 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.top-mini .pos { font-family: var(--font-display); color: var(--muted); font-size: 16px; }
.top-mini li:nth-child(-n+3) .pos { color: var(--amber); }
.top-mini img, .top-mini .ava-fb { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; font-size: 13px; }
.top-mini b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-mini .cnt { font-family: var(--font-display); font-size: 20px; }
@media (max-width: 860px) { .top-split { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 520px) { .top-mini { grid-template-columns: 1fr; } }

/* Общие элементы спокойнее */
.ev-card, .case-card, .panel, .stat, .team-tile, .hub-card, .table-wrap, .list-rows, .rank-list, .modal-box, .podium-place { border-radius: var(--r-md); }
.team-tile::before { display: none; }
.team-tile { border-left: 3px solid var(--tc); }
.status { border-radius: 2px; padding: 2px 8px; }
.status::before { border-radius: 0; }
.team-badge { border-radius: 3px; }
.team-badge img { border-radius: 2px; }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 60px); }
.case-card-big .case-card-body { padding: 28px; }
.footer-grid { border-top: 0; }
.site-footer { background: #0C0C0B; margin-top: 64px; }
.hazard { display: none; }
.next-facts { gap: 4px 22px; }
.next-facts span + span::before { display: none; }
.top-tabs, .top-tabs button, .team-filter button { border-radius: var(--r-sm); }
.top-tabs { padding: 3px; }
.events-layout .sched { border-top: 2px solid var(--ink); }
.sched-row.past .sched-date b { color: var(--muted); }

/* ── Плашка RP+: перелив фирменного цвета в белый ── */
:root { --rpp-a: var(--amber); --rpp-b: #FFFFFF; }
.rpp-tag {
    background: linear-gradient(110deg, var(--rpp-a) 0%, var(--rpp-a) 35%, var(--rpp-b) 50%, var(--rpp-a) 65%, var(--rpp-a) 100%);
    background-size: 250% 100%;
    animation: rppShine 3.6s ease-in-out infinite;
}
@keyframes rppShine {
    0%   { background-position: 100% 0; }
    55%  { background-position: 0% 0; }
    100% { background-position: 0% 0; }
}
.brand-xl .rpp-tag { animation-duration: 4.2s; }
@media (prefers-reduced-motion: reduce) { .rpp-tag { animation: none; background: var(--rpp-a); } }

/* Тестовый вход (только локально, DEV_LOGIN=1) */
.dev-login { margin-top: 28px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); text-align: left; display: grid; gap: 8px; }
.dev-login span { color: var(--muted); font-size: 14px; }
.dev-login-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btn-primary.steam-btn, .btn-primary.steam-btn:hover { color: #fff; }
