/* =============================================
   EKF Photo Awards — «Поток»
   Дизайн-система EKF / брендбук
   Радиусы 0, теней нет, шрифт Golos Text.
   ============================================= */

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

:root {
    /* === Brand === */
    --brand: #DB0812;
    --brand-hover: #FF141A;
    --brand-active: #C10006;

    /* === Neutrals === */
    --black-900: #0A0A0A;
    --black-700: #495057;
    --black-600: #6C757D;
    --black-500: #ADB5BD;
    --black-200: #E9ECEF;
    --black-100: #F8F9FA;
    --white: #FFFFFF;

    /* === Semantic === */
    --success: #2CCC44;
    --error: #FF2530;
    --error-bg: #FBE6E7;

    /* === Mapped === */
    --bg-primary: var(--white);
    --bg-secondary: var(--black-100);
    --accent: var(--brand);
    --text-primary: var(--black-900);
    --text-secondary: var(--black-600);
    --text-muted: var(--black-500);
    --border: var(--black-200);

    /* === Shape — плоский стиль, скруглений нет === */
    --radius: 0;
    --radius-md: 0;
    --radius-lg: 0;

    /* === На белом поверх бренда === */
    --on-brand-strong: rgba(255, 255, 255, 0.88);
    --on-brand: rgba(255, 255, 255, 0.75);
    --on-brand-soft: rgba(255, 255, 255, 0.45);
    --on-brand-line: rgba(255, 255, 255, 0.28);

    /* === Typography === */
    --font-display: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--brand-active); }

img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--black-100); }
::-webkit-scrollbar-thumb { background: var(--brand); }

/* =============================================
   Анимации
   ============================================= */
@keyframes ekfPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes ekfIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }
@keyframes ekfUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* =============================================
   Универсальные элементы
   ============================================= */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.eyebrow__rule {
    height: 2px;
    width: 32px;
    background: currentColor;
    flex-shrink: 0;
}

.logo-plate {
    display: inline-flex;
    padding: 11px 14px;
    background: var(--white);
    align-self: flex-start;
}
.logo-plate img { height: 26px; width: auto; }

/* =============================================
   Шапка
   ============================================= */
.site-header {
    height: 60px;
    padding: 0 32px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-shrink: 0;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}
.site-header__brand:hover { color: inherit; }
.brand-mark { height: 26px; width: auto; }
.brand-wordmark {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--black-900);
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-link {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
}
.nav-link:hover { color: var(--brand); }
.nav-link--active {
    color: var(--black-900);
    box-shadow: inset 0 -3px 0 var(--brand);
}
.nav-link--active:hover { color: var(--black-900); }

.header-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-live {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}
.status-dot {
    width: 7px;
    height: 7px;
    background: var(--brand);
    animation: ekfPulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
.status-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--black-900);
    white-space: nowrap;
}

.header-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    flex-shrink: 0;
}

.countdown {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--black-700);
    white-space: nowrap;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 30px;
    height: 30px;
    background: var(--brand);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}
.user-avatar-img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    flex-shrink: 0;
}
.btn-logout {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--black-500);
    cursor: pointer;
}
.btn-logout:hover { color: var(--brand); }

.header-guest {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* =============================================
   Подвал
   ============================================= */
.site-footer {
    background: var(--brand);
    color: var(--white);
    padding: 30px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-shrink: 0;
    margin-top: auto;
}
.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 20px;
}
.site-footer__plate {
    display: inline-flex;
    padding: 8px 11px;
    background: var(--white);
    flex-shrink: 0;
}
.site-footer__plate img { height: 19px; width: auto; }
.site-footer__tagline {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.site-footer__copy {
    font-size: 13px;
    color: var(--on-brand-strong);
    text-align: right;
}

/* =============================================
   Вход
   ============================================= */
.auth {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 640px;
}

.auth__panel {
    background: var(--brand);
    color: var(--white);
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}
.auth__panel-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    max-width: 460px;
    /* Логотипа над блоком больше нет — растягиваем его, чтобы заголовок
       остался по центру панели, а подпись прижалась к низу */
    flex: 1;
}
.auth__title {
    font-size: 84px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.9;
    text-transform: uppercase;
}
.auth__lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--on-brand-strong);
    max-width: 400px;
    text-wrap: pretty;
}
.auth__tagline {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--on-brand);
}

.auth__form {
    background: var(--white);
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
}
.auth__form-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
}
.auth__kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand);
}
.auth__heading {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
.auth__hint {
    margin-top: 6px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn-sso {
    max-width: 420px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: var(--brand);
    color: var(--white);
    border: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease;
}
.btn-sso:hover { background: var(--black-900); color: var(--white); }

.auth__facts {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.fact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--black-700);
}
.fact__marker {
    width: 5px;
    height: 5px;
    background: var(--black-500);
    flex-shrink: 0;
}
.fact__marker--on { background: var(--success); }

/* =============================================
   Голосование — общий каркас
   ============================================= */
.flow {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stage-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    background: var(--black-900);
    flex: 1;
    min-height: 520px;
}

/* --- Сцена --- */
.stage {
    position: relative;
    overflow: hidden;
    background: var(--black-900);
    cursor: grab;
    min-height: 520px;
    touch-action: pan-y;
}
.stage:active { cursor: grabbing; }

.stage__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Работы приходят портретные, квадратные и панорамные — cover их обрезал бы,
       а на фотоконкурсе голосуют за кадр целиком */
    object-fit: contain;
    cursor: zoom-in;
    animation: ekfIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Та же картинка размытым фоном: поля по краям перестают быть пустыми */
.stage__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(32px) brightness(0.4) saturate(1.2);
    transform: scale(1.15);
    pointer-events: none;
}

.stage__scrim {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 110px;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.6), transparent);
    pointer-events: none;
}
/* Верх/низ — только на мобильной раскладке */
.stage__scrim--mobile {
    display: none;
    position: absolute;
    inset: 0;
    width: auto;
    pointer-events: none;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.5) 0%, transparent 30%,
        transparent 50%, rgba(0, 0, 0, 0.85) 100%);
}

.stage__rail {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.stage__rail-text {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

.stage__index {
    position: absolute;
    left: 80px;
    top: 44px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--white);
    pointer-events: none;
}
.stage__index-num {
    font-size: 112px;
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
}
.stage__index-total {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 8px;
}

.stage__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    color: var(--white);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: background 0.15s ease;
}
.stage__nav--prev {
    left: 32px;
    background: rgba(255, 255, 255, 0.14);
}
.stage__nav--prev:hover { background: var(--brand); }
.stage__nav--next {
    right: 32px;
    background: var(--brand);
}
.stage__nav--next:hover { background: var(--brand-hover); }

.stage__footer {
    position: absolute;
    left: 80px;
    right: 32px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.tag {
    padding: 7px 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
}
.tag--leader { background: var(--brand); }
.tag--category { background: rgba(255, 255, 255, 0.14); }
.stage__hint {
    margin-left: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

/* Мобильные полоски прогресса и подпись поверх фото */
.stage__progress {
    display: none;
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    gap: 4px;
    pointer-events: none;
}
.stage__progress span {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
}
.stage__progress span.is-active { background: var(--brand); }

.stage__mobile {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 18px;
    color: var(--white);
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.stage__mobile-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 0.98;
    text-transform: uppercase;
}
.stage__mobile-author {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.stage__mobile-initials {
    width: 26px;
    height: 26px;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
}
.stage__mobile-name { font-size: 12px; font-weight: 600; }
.stage__mobile-dept {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stage__mobile-sep { font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.stage__swipe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

/* --- Информационная панель --- */
.panel {
    background: var(--brand);
    color: var(--white);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    min-width: 0;
}
.panel__head {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}
.panel__title {
    font-size: 58px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.98;
    text-transform: uppercase;
    text-wrap: balance;
    animation: ekfUp 0.4s ease;
    /* Слова не рвём: кегль под самое длинное слово подгоняет fit-title.js.
       break-word — последний рубеж для слова длиннее строки на минимальном кегле */
    overflow-wrap: break-word;
}
/* Ставится подгонщиком, когда слово не помещается даже на минимальном кегле:
   переносим по слогам словарём (html lang="ru"), а не в случайном месте */
[data-fit-title].is-overlong {
    hyphens: auto;
    -webkit-hyphens: auto;
}
.panel__desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 360px;
    text-wrap: pretty;
}

.author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--on-brand-line);
    min-width: 0;
}
.author__initials {
    width: 38px;
    height: 38px;
    background: var(--white);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}
.author__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}
.author__name { font-size: 15px; font-weight: 700; }
.author__dept { font-size: 13px; color: var(--on-brand); }

.panel__foot {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel__tally {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.tally__group { display: flex; flex-direction: column; }
.tally__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--on-brand);
}
.tally__value {
    font-size: 76px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}
.tally__value.is-bumped { animation: ekfUp 0.35s ease; }
.tally__delta {
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    white-space: nowrap;
}

.panel__action {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-vote {
    width: 100%;
    padding: 22px;
    background: var(--black-900);
    color: var(--white);
    border: 0;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.btn-vote:hover { background: var(--white); color: var(--brand); }
.btn-vote:disabled { opacity: 0.7; cursor: default; }
.btn-vote:disabled:hover { background: var(--black-900); color: var(--white); }

.vote-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.5;
}
.vote-note--strong { color: var(--on-brand-strong); }

.voted-mark {
    width: 100%;
    padding: 22px;
    background: var(--white);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
}

.voted-other {
    width: 100%;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    gap: 14px;
}
.voted-other__thumb {
    width: 52px;
    height: 38px;
    object-fit: cover;
    flex-shrink: 0;
}
.voted-other__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}
.voted-other__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-brand);
}
.voted-other__title {
    font-size: 15px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Полноэкранный просмотр работы --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px;
}
.lightbox[hidden] { display: none; }

.lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    min-width: 0;
    margin: 0;
}
/* Занимаем всю доступную площадь: contain вписывает кадр целиком и при этом
   увеличивает мелкие файлы — иначе просмотр оказывался бы меньше сцены */
.lightbox__img {
    width: 100%;
    height: calc(100vh - 190px);
    object-fit: contain;
    animation: ekfIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox__caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    max-width: 640px;
}
.lightbox__num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.5);
}
.lightbox__title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--white);
    text-wrap: balance;
}
.lightbox__author {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    color: var(--white);
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.lightbox__close:hover { background: var(--brand); }

.lightbox__nav {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    color: var(--white);
    font-family: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.lightbox__nav:hover { background: var(--brand); }

/* --- Лента миниатюр --- */
.filmstrip {
    background: var(--black-900);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.filmstrip__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
    margin-right: 8px;
}
.filmstrip__items {
    display: flex;
    gap: 18px;
    flex: 1;
    min-width: 0;
}
.thumb {
    position: relative;
    flex: 1;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    opacity: 0.38;
    cursor: pointer;
    /* Ширину не анимируем: переход по flex пересчитывает раскладку всей ленты
       на каждом кадре, и браузер заново растрирует все миниатюры — а это
       полноразмерные оригиналы, десятки мегапикселей. Ширина меняется скачком,
       плавно только прозрачность. */
    transition: opacity 0.2s ease;
    border: 0;
    padding: 0;
    background: none;
    min-width: 0;
}
.thumb:hover { opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__num {
    position: absolute;
    left: 8px;
    bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--white);
}
.thumb--active {
    flex: 1.35;
    opacity: 1;
    outline: 3px solid var(--brand);
    outline-offset: -3px;
}

/* --- Строка статистики --- */
.statbar {
    background: var(--white);
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
}
.statcell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 24px;
    border-left: 1px solid var(--border);
    min-width: 0;
}
.statcell:first-child {
    padding-left: 0;
    padding-right: 24px;
    border-left: 0;
}
.statcell:last-child { padding-right: 0; }
.statcell__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.statcell__value {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.countdown-big {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.countdown-big__num {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}
.countdown-big__num--accent { color: var(--brand); }
.countdown-big__unit {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}
.countdown-big__none {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--black-500);
}

.turnout {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.turnout-track {
    height: 5px;
    background: var(--border);
    max-width: 180px;
}
.turnout-fill {
    height: 100%;
    background: var(--brand);
    transition: width 0.6s ease;
}

.yourvote {
    display: flex;
    align-items: center;
    gap: 10px;
}
.yourvote__box {
    width: 12px;
    height: 12px;
    border: 2px solid var(--brand);
    flex-shrink: 0;
}
.yourvote__box--filled {
    background: var(--brand);
    border-color: var(--brand);
}
.yourvote__text {
    font-size: 17px;
    font-weight: 700;
    color: var(--black-900);
}
.yourvote__note {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Таблица лидеров (админ) --- */
.board {
    padding: 32px;
    background: var(--black-100);
}
.board__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.board__title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.board__badge {
    padding: 5px 10px;
    background: var(--black-900);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.board__note {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-secondary);
}
.board__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.board-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.board-card--first {
    border: 2px solid var(--brand);
    padding: 13px;
}
.board-card__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.board-card__rank {
    font-size: 11px;
    font-weight: 800;
    color: var(--black-500);
}
.board-card--first .board-card__rank { color: var(--brand); }
.board-card__votes {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.board-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.board-card__title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}
.board-card__author {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* =============================================
   Пустое состояние
   ============================================= */
.empty {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 520px;
}
.empty__panel {
    background: var(--brand);
    color: var(--white);
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}
.empty__title {
    margin: auto 0;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.92;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.empty__body {
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}
.empty__lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 420px;
}

/* =============================================
   Результаты (админ)
   ============================================= */
.result-hero {
    background: var(--brand);
    color: var(--white);
    padding: 56px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 40px;
}
.result-hero__main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.result-hero__eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--on-brand-strong);
}
.result-hero__title {
    font-size: 76px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.92;
    text-transform: uppercase;
    overflow-wrap: break-word;
}
.result-hero__author {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}
.result-hero__count { text-align: right; }
.result-hero__num {
    font-size: 112px;
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
}
.result-hero__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 8px;
}

.results-body {
    padding: 36px 40px 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}
.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    flex: 1;
    min-width: 0;
}
.tile {
    padding: 20px;
    border-right: 1px solid var(--border);
    min-width: 0;
}
.tile:last-child { border-right: 0; }
.tile--accent { background: var(--brand); color: var(--white); }
.tile__num {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.tile__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 6px;
}
.tile--accent .tile__label { color: var(--on-brand); }

.btn-export {
    padding: 16px 26px;
    background: var(--black-900);
    color: var(--white);
    border: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.btn-export:hover { background: var(--brand); color: var(--white); }

.results-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}
.result-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.result-row__rank {
    width: 34px;
    font-size: 22px;
    font-weight: 800;
    color: var(--black-500);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.result-row__thumb {
    width: 72px;
    height: 52px;
    object-fit: cover;
    flex-shrink: 0;
}
.result-row__title {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
}
.result-row__author {
    font-size: 13px;
    color: var(--text-secondary);
    width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
.segments {
    flex: 1;
    max-width: 220px;
    display: flex;
    gap: 3px;
}
.segment {
    flex: 1;
    height: 8px;
    background: var(--border);
}
.segment--on { background: var(--black-900); }
.result-row__votes {
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    width: 44px;
    text-align: right;
    flex-shrink: 0;
}

/* =============================================
   Страница ошибки
   ============================================= */
.error-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    padding: 80px 32px;
}
.error-page__title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--brand);
}
.error-page__message {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.6;
}

/* =============================================
   Кнопки и формы (общие / админ)
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--black-900); color: var(--white); }
.btn-outline {
    background: transparent;
    color: var(--black-900);
    border: 1px solid var(--black-500);
}
.btn-outline:hover { background: var(--black-900); color: var(--white); border-color: var(--black-900); }
.btn-full { width: 100%; align-self: stretch; }
/* В flex-колонках (.card, .upload-form) кнопка не должна растягиваться на всю ширину */
.upload-form > .btn,
.card > .btn,
.create-session-form > .btn { align-self: flex-start; }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: var(--black-900); color: var(--white); }
.btn-warning { background: var(--black-700); color: var(--white); }
.btn-warning:hover { background: var(--black-900); color: var(--white); }
.btn-danger { background: var(--error); color: var(--white); }
.btn-danger:hover { background: var(--black-900); color: var(--white); }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.form-group label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.form-control {
    width: 100%;
    padding: 13px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
}
.form-control:focus { outline: 2px solid var(--brand); outline-offset: -2px; border-color: var(--brand); }
.form-control::placeholder { color: var(--black-500); }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > .form-group { flex: 1; min-width: 200px; }
.form-inline-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }

.alert {
    padding: 14px 16px;
    font-size: 14px;
    border-left: 3px solid var(--brand);
    background: var(--black-100);
}
.alert-error { background: var(--error-bg); border-left-color: var(--error); color: var(--brand-active); }

/* =============================================
   Админ-панель
   ============================================= */
.main-content { flex: 1; }
.admin-page { background: var(--black-100); }
.admin-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px 56px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.admin-header h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-transform: uppercase;
}
.back-link {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.back-link:hover { color: var(--brand); }
.results-body > .back-link { align-self: flex-start; margin-bottom: 0; }
.text-muted { color: var(--text-secondary); }

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    border: 1px solid var(--border);
    background: var(--white);
}
.stat-card {
    padding: 20px;
    border-right: 1px solid var(--border);
}
.stat-card:last-child { border-right: 0; }
.stat-card.accent { background: var(--brand); color: var(--white); }
.stat-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 6px;
}
.stat-card.accent .stat-label { color: var(--on-brand); }

.card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.card-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }
.actions-cell { display: flex; gap: 8px; flex-wrap: wrap; }
.user-row td { vertical-align: middle; }

.badge {
    display: inline-block;
    align-self: flex-start;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--black-200);
    color: var(--black-700);
    white-space: nowrap;
}
.badge-draft { background: var(--black-200); color: var(--black-700); }
.badge-active { background: var(--brand); color: var(--white); }
.badge-closed { background: var(--black-900); color: var(--white); }
.badge-admin { background: var(--black-900); color: var(--white); }

.upload-form { display: flex; flex-direction: column; gap: 18px; }
.upload-zone {
    position: relative;
    border: 1px dashed var(--black-500);
    background: var(--black-100);
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
}
.upload-zone.drag-over { border-color: var(--brand); background: var(--white); }
.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.upload-placeholder p { font-size: 14px; font-weight: 700; }
.upload-placeholder small { font-size: 12px; color: var(--text-secondary); }
.upload-preview { max-height: 240px; margin: 0 auto; object-fit: contain; }

.admin-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.admin-photo-card { border: 1px solid var(--border); display: flex; flex-direction: column; }
.admin-photo-frame { aspect-ratio: 4 / 3; overflow: hidden; background: var(--black-100); }
.admin-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.admin-photo-info { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.admin-photo-info strong { font-size: 14px; font-weight: 700; }
.admin-photo-info p { font-size: 12px; line-height: 1.5; }
.admin-photo-author {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.admin-photo-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}
.vote-count-small {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black-900);
}

.session-card { border: 1px solid var(--border); background: var(--white); }
.session-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    flex-wrap: wrap;
}
.session-card-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.session-card-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.session-hero-label { font-size: 12px; color: var(--text-secondary); }
.session-card-stats {
    display: flex;
    gap: 18px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.session-card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.session-edit-details { border-top: 1px solid var(--border); }
.session-edit-toggle {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
}
.session-edit-toggle:hover { color: var(--brand); }
.session-edit-toggle::-webkit-details-marker { display: none; }
.session-edit-toggle::before { content: '+ '; }
details[open] > .session-edit-toggle::before { content: '– '; }
.session-edit-form {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.create-session-form { display: flex; flex-direction: column; gap: 16px; }
.section-hint { font-size: 13px; color: var(--text-secondary); }

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

/* Текст статуса прячется раньше остального — по ТЗ */
@media (max-width: 1179px) {
    .status-label { display: none; }
}

@media (max-width: 1279px) {
    .stage-row { grid-template-columns: minmax(0, 1fr) 380px; }
    .panel { padding: 36px 28px; }
    .panel__title { font-size: 46px; }
    .tally__value { font-size: 62px; }
    .stage__index-num { font-size: 88px; }
    .result-hero__title { font-size: 60px; }
    .result-hero__num { font-size: 88px; }
    .board__grid { grid-template-columns: repeat(3, 1fr); }
    .result-row__author { width: 180px; }
    /* Четыре колонки статистики становятся узкими — таймер должен остаться в одну строку */
    .countdown-big { gap: 4px; flex-wrap: nowrap; }
    .countdown-big__num { font-size: 30px; }
    .countdown-big__unit { font-size: 12px; }
}

@media (max-width: 1023px) {
    .site-header { padding: 0 20px; gap: 12px; }
    .site-header__brand { gap: 14px; }
    .brand-wordmark { display: none; }
    .header-meta { gap: 14px; }

    .auth { grid-template-columns: 1fr; min-height: 0; }
    .auth__panel { padding: 44px 28px; gap: 32px; }
    .auth__title { font-size: 60px; }
    .auth__form { padding: 44px 28px; }
    .auth__heading { font-size: 30px; }

    .empty { grid-template-columns: 1fr; }
    .empty__panel, .empty__body { padding: 44px 28px; }
    .empty__title { font-size: 48px; }

    .stage-row { grid-template-columns: 1fr; min-height: 0; }
    .stage { min-height: 440px; }
    .panel { padding: 32px 24px; }

    .statbar { grid-template-columns: repeat(2, 1fr); gap: 24px 0; padding: 24px 20px; }
    .countdown-big__num { font-size: 44px; }
    .countdown-big__unit { font-size: 14px; }
    .statcell:nth-child(odd) { padding-left: 0; border-left: 0; }
    .statcell:nth-child(even) { padding-right: 0; }
    .statcell:first-child { padding-right: 24px; }

    .board { padding: 24px 20px; }
    .board__grid { grid-template-columns: repeat(2, 1fr); }

    .result-hero { padding: 40px 24px; grid-template-columns: 1fr; align-items: start; gap: 24px; }
    .result-hero__count { text-align: left; }
    .result-hero__title { font-size: 46px; }
    .result-hero__num { font-size: 76px; }
    .results-body { padding: 28px 24px 40px; }
    .results-toolbar { flex-direction: column; align-items: stretch; }
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .tile:nth-child(2n) { border-right: 0; }
    .tile:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .result-row { flex-wrap: wrap; gap: 12px; }
    .result-row__author { width: auto; flex: 1 1 100%; order: 5; }
    .segments { max-width: none; order: 4; }

    .admin-container { padding: 28px 20px 40px; }
    .admin-header h1 { font-size: 28px; }
    .site-footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
    .site-footer__copy { text-align: left; }
}

/* Мобильная раскладка — фрейм «1c · Мобильная» */
@media (max-width: 767px) {
    .site-header { height: 52px; padding: 0 16px; }
    .brand-mark { height: 20px; }
    .site-nav { display: none; }
    .status-live { display: none; }
    .header-divider { display: none; }
    .user-badge { gap: 6px; }
    .user-avatar, .user-avatar-img { width: 26px; height: 26px; font-size: 11px; }
    .btn-logout { width: 26px; height: 26px; }

    .auth__title { font-size: 44px; }
    .auth__panel, .auth__form { padding: 32px 20px; }
    .auth__heading { font-size: 26px; }
    .btn-sso { padding: 17px; min-height: 44px; font-size: 15px; }

    /* Сцена во всю высоту, подписи поверх фото */
    .stage { min-height: 62vh; }
    .stage__scrim { display: none; }
    .stage__scrim--mobile { display: block; }
    .stage__rail { display: none; }
    .stage__nav { display: none; }
    .stage__footer { display: none; }
    .stage__progress { display: flex; }
    .stage__mobile { display: flex; }
    .stage__index { left: 16px; top: 34px; gap: 4px; }
    .stage__index-num { font-size: 64px; }
    .stage__index-total { font-size: 14px; margin-top: 4px; }

    /* Панель распадается: красная полоса со счётчиком + белый блок действия */
    .panel {
        background: transparent;
        color: var(--text-primary);
        padding: 0;
        gap: 0;
    }
    .panel__head { display: none; }
    .panel__foot { gap: 0; }
    .panel__tally {
        background: var(--brand);
        color: var(--white);
        padding: 16px;
        align-items: center;
    }
    .tally__label { font-size: 10px; letter-spacing: 0.18em; color: var(--on-brand-strong); }
    .tally__value { font-size: 38px; letter-spacing: -0.04em; }
    .tally__delta {
        margin-bottom: 0;
        padding: 6px 10px;
        background: rgba(255, 255, 255, 0.2);
        font-size: 11px;
    }
    .panel__action { padding: 14px 16px 18px; gap: 10px; background: var(--white); }
    .btn-vote { padding: 17px; min-height: 44px; font-size: 15px; }
    .voted-mark {
        padding: 17px;
        min-height: 44px;
        background: var(--brand);
        color: var(--white);
        font-size: 15px;
    }
    .voted-other { border-color: var(--border); padding: 14px; }
    .voted-other__label { color: var(--text-secondary); }
    .voted-other__title { color: var(--text-primary); }
    .vote-note, .vote-note--strong { color: var(--text-secondary); font-size: 11px; }

    .lightbox { padding: 16px; gap: 0; }
    .lightbox__nav { display: none; }
    .lightbox__img { height: calc(100vh - 210px); }
    .lightbox__title { font-size: 18px; }
    .lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }

    .filmstrip { padding: 16px; gap: 10px; flex-direction: column; align-items: flex-start; }
    .filmstrip__label { margin-right: 0; }
    .filmstrip__items { width: 100%; overflow-x: auto; padding-bottom: 4px; gap: 12px; }
    .thumb { flex: 0 0 96px; }
    .thumb--active { flex: 0 0 130px; }

    .statbar { grid-template-columns: 1fr; padding: 20px 16px; gap: 20px; }
    .statcell, .statcell:first-child { padding: 0; border-left: 0; }
    .statcell__value, .countdown-big__num { font-size: 34px; }

    .board { padding: 20px 16px; }
    .board__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .board__note { margin-left: 0; flex-basis: 100%; }

    .result-hero { padding: 28px 16px; }
    .result-hero__title { font-size: 34px; }
    .result-hero__num { font-size: 60px; }
    .results-body { padding: 20px 16px 32px; }
    .tiles { grid-template-columns: 1fr 1fr; }
    .result-row__thumb { width: 56px; height: 40px; }
    .result-row__title { font-size: 14px; flex-basis: calc(100% - 130px); }

    .error-page { padding: 56px 20px; }
    .error-page__title { font-size: 36px; }

    .admin-container { padding: 20px 16px 32px; }
    .card { padding: 18px; }
    .form-row > .form-group { min-width: 100%; }
}
