:root {
    --header-h: 64px;
    --c-bg: #020C22;
    --c-header: #1c2539;
    --c-sub: #79849B;
    --c-track: #79849b;
    --c-fill: #fe791b;
    --c-ctrl: #333B4C;
    --c-ctrl-shadow: #020C22;
    --c-minute: #020C22;
    --c-btn-grad-start: #FF7C1E;
    --c-btn-grad-end: #F85A00;
    --c-btn-shadow: #A53C00;
}

* {
    box-sizing: border-box;
}
body,
html {
    height: 100%;
}
body {
    margin: 0;
    color: #fff;
    background: #020C22;
    font-family: Roboto,system-ui,Arial,sans-serif;
}

/* HEADER */
.site-header {
    height: var(--header-h);
    background: var(--c-header);
    display: flex;
    align-items: center;
}

.container {
    width: min(1200px,100%);
    margin: 0 auto;
    padding: 0 24px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* всё слева */
    gap: 32px;
    /* отступ между логотипом и меню */
}

.logo img {
    display: block;
    width: 88px;
    height: auto;
}

/* NAV */
.main-nav__list {
    display: flex;
    align-items: center;
    gap: 24px;
    /* расстояние между пунктами */
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ссылка = «пилюля» высотой 40, радиус 8 */
.main-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    color: #E8ECF4;
    font: 500 16px/1 Roboto, sans-serif;
    text-decoration: none;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

/* без подчёркиваний */
.main-nav__link::after {
    content: none !important;
}

/* hover */
.main-nav__link:hover {
    background: #444E65;
    /* из ТЗ */
}

/* active / выбранный */
.main-nav__link.is-active,
.main-nav__link:active {
    background: #333B4C;
    /* из ТЗ */
    color: #FFF;
}

.container {
    width: min(1200px,100%);
    margin: 0 auto;
    padding: 0 24px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.logo img {
    display: block;
    width: 88px;
    height: auto;
}

/* Кнопка-бургер (по умолчанию скрыта) */
.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.nav-toggle__bar {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #E8ECF4;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle__bar:nth-child(1) {
    top: 13px;
}
.nav-toggle__bar:nth-child(2) {
    top: 21px;
}
.nav-toggle__bar:nth-child(3) {
    top: 29px;
}

/* Состояние «открыто» – крестик */
.main-nav--open + .nav-toggle .nav-toggle__bar,
.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
    /* поддержка, если порядок другой */
    /* не используем */
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* Затемнение */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 999;
    /* ниже off-canvas */
}

/* HERO: фон ровно 100vh, ниже — цвет */
.hero {
    position: relative;
    background: #020C22;
}
.hero__bg {
    position: absolute;
    inset: 0;
    height: 100vh;
    /* фикс высота экрана */
    background: url("../img/bg.webp") center/cover no-repeat;
    filter:saturate(1.05);
}
.hero__inner {
    position: relative;
    gap: 24px;
    padding: 48px 24px 80px;
    text-align: center;
}
.hero__title {
    margin: 8px auto 10px;
    font-family: Montserrat,sans-serif;
    font-weight: 900;
    max-width: 494px;
    font-size: 52px;
    line-height: 48px;
}
.hero__subtitle {
    margin: 0 auto 28px;
    max-width: 494px;
    color: var(--c-sub);
    font: 400 16px/24px Roboto,sans-serif;
}

/* TEAMS */
.teams {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 48px;
    margin-bottom: 24px;
}
.team {
    position: relative;
    width: 236px;
    padding: 16px 12px 10px;
}
.team__bg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    /* выравнивание по нижнему краю */
    width: 100%;
    height: auto;
    /* без растяжений по высоте */
    border-radius: 24px;
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
}
.team__logo {
    position: relative;
    z-index: 1;
    width: 160px;
    height: 160px;
    object-fit: contain;
}
/* Название команды */
.team__name {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    font-weight: 900;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
}

/* VS + дата */
.vs-wrap {
    position: relative;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}
.vs {
    display: block;
    width: 169px;
    height: auto;
}
.vs-date {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    margin-top: 28px;
    justify-content: center;
    font: 600 18px/1 Roboto,sans-serif;
    color: #E8ECF4;
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* MATCH PANEL */
.match-panel {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 0;
}
.match-panel__bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1006px;
    max-width: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Bars row */
.bars {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
    padding: 28px 0 10px;
    z-index: 1;
}
.bar {
    position: relative;
    width: 455px;
    max-width: 42vw;
    height: 4px;
    border-radius: 999px;
    background: var(--c-track);
    overflow: hidden;
    cursor: pointer;
}
.bar__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--c-fill);
    border-radius: inherit;
}
.bars__ht {
    position: relative;
    z-index: 3;
    font-family: Montserrat,sans-serif;
    font-weight: 900;
    font-size: 16px;
    line-height: 1;
    text-align: center;
}

/* Ball */
.ball {
    position: absolute;
    z-index: 2;
    top: 0;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    pointer-events: auto;
    user-select: none;
    cursor: grab;
   -webkit-user-drag: none; 
}

.ball.is-dragging{
  cursor: grabbing;
}

/* Controls */
.controls {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-bottom: 24px;
}

/* Кнопки +/- */
.btn-ctrl {
    width: 56px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333B4C;
    border: none;
    color: #fff;
    border-bottom: 4px solid var(--c-ctrl-shadow);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}
.btn-ctrl img {
    width: 32px;
    height: 32px;
    pointer-events: none;
}

/* hover/active для +/- */
.btn-ctrl:hover {
    background: #444E65;
    border-bottom: 4px solid var(--c-ctrl-shadow);
}
.btn-ctrl:active {
    background: #1C2539;
    border-bottom: 4px solid var(--c-ctrl-shadow);
    border-radius: 12px;
    transform: translateY(1px);
}

.minute {
    width: 112px;
    height: 84px;
    background: #020C22;
    border-radius: 12px;
    display: grid;
    place-items: center;
    padding-top: 26px;
}
.minute__value {
    font: 800 28px/1 Montserrat,sans-serif;
}
.minute__label {
    margin-top: 8px;
    padding: 6px;
    /* небольшой внутренний отступ */
    background: #1c2539;
    /* подложка */
    border-radius: 4px;
    /* скругление */
    font-family: Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0.02em;
    /* 2% = примерно 0.02em */
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    color: #fff;
    /* оставим белый цвет текста */
}

.btn-action {
    width: 266px;
    height: 84px;
    background: linear-gradient(97.01deg,var(--c-btn-grad-start) 0%,var(--c-btn-grad-end) 100%);
    border: none;
    color: #fff;
    border-bottom: 4px solid var(--c-btn-shadow);
    border-radius: 12px;
    font: 800 20px/1.1 Montserrat,sans-serif;
    cursor: pointer;
    padding: 0 16px;
    margin-left: 4px;
    text-transform: uppercase;
    transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}
.btn-action:hover {
    background: #F85A00;
    border-bottom: 4px solid #A53C00;
    border-radius: 12px;
}
.btn-action:active {
    background: #A53C00;
    border-bottom: 4px solid #A53C00;
    border-radius: 12px;
    transform: translateY(1px);
}

.btn-action:disabled {
    background: #333b4c;
    border-bottom: 4px solid #020c22;
    cursor: not-allowed;
    color: #79849b;
    transform: none;
}

/* STEPS */
.steps {
    position: relative;
    padding: 32px 0 36px;
}
.steps__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px,1fr));
    gap: 32px;
    align-items: start;
}
.step-item {
    text-align: center;
    position: relative;
}
.step-num {
    display: block;
    margin: 0 auto 8px;
    opacity: 1;
}
.step-text {
    margin: 0 auto;
    max-width: 275px;
    font: 400 14px/20px Roboto, sans-serif;
    margin-top: -65px;
    color: #E5EBF5;
}
.step-link {
    color: #E5EBF5;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 14px;
    cursor: pointer;
}
.step-link--center {
    display: inline-block;
    margin-top: 18px;
}
.steps__rules {
    text-align: center;
}
/* Модалки — всегда крупные, как на скрине */
.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1001;
}
.modal-overlay[hidden],
.modal[hidden] {
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1000;
}

/* Внутри */
.modal__inner {
    position: relative;
    width: min(360px, 94vw);
    max-width: 360px;
    /* побольше ширина */
    max-height: 90vh;
    /* «полный», но с прокруткой */
    overflow: auto;
    background: #1c2539;
    /* цвет попапа */
    border-radius: 12px;
    /* скругление */
    padding: 24px 20px 20px;
    color: #E8EDF7;
}

.modal__inner_top {
    position: relative;
    width: min(760px, 94vw);
    max-height: 90vh;
    overflow: auto;
    background: #1c2539;
    border-radius: 12px;
    padding: 24px 20px 20px;
    color: #E8EDF7;
}

/* Кнопка закрытия в правом верхнем углу */
.modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: 0;
    padding: 4px;
    cursor: pointer;
}

/* Заголовки и текст (как в ТЗ) */
.modal__title {
    margin: 0 40px 14px 0;
    font-family: Montserrat, sans-serif;
    font-weight: 900;
    font-size: 20px;
    line-height: 100%;
}
.modal__subtitle {
    margin: 18px 0 8px;
    font: 700 18px/24px Roboto, sans-serif;
}
.modal__list {
    margin: 0 0 8px 20px;
    padding-left: 8px;
    font: 400 18px/24px Roboto, sans-serif;
}
.modal__bullets {
    margin: 0 0 8px 20px;
    padding-left: 12px;
    list-style: disc;
    font: 400 18px/24px Roboto, sans-serif;
}

/* Стили полосы прокрутки как на скрине: цвет #79849B, толщина 4px */
.modal__inner_top::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.modal__inner_top::-webkit-scrollbar-track {
    background: transparent;
}
.modal__inner_top::-webkit-scrollbar-thumb {
    background: #79849B;
    border-radius: 4px;
}
/* Firefox */
.modal__inner_top {
    scrollbar-width: thin;
    scrollbar-color: #79849B transparent;
}

/* ========= WINNERS SECTION ========= */

.winners {
    padding: 48px 0 40px;
}
.winners__title {
    text-align: center;
    margin: 0 0 24px;
    font: 900 32px/1 Montserrat, sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* --- Carousel layout --- */
.winners__carousel {
    position: relative;
    padding: 0 80px;
    /* место для стрелок */
}
.winners__viewport {
    overflow: hidden;
}
.winners__track {
    display: flex;
    transition: transform 0.35s ease;
}
.winners__slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(300px,1fr));
    gap: 20px;
}

/* --- Week card --- */
.wcard {
    position: relative;
    /* ВАЖНО: якорь для ::before */
    background: #1c2539;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
    padding: 20px;
    overflow: hidden;
}

.wcard::before {
    content: "";
    position: absolute;
    inset: 0;
    /* растянуть по карточке */
    pointer-events: none;
    z-index: 0;
    /* под контентом */
    opacity: 1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.wcard.wcard--left::before {
    background-image: url("../img/light_left.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto 100%;
    z-index: 1;
}

/* правый блик — прижат к правому краю */
.wcard.wcard--right::before {
    background-image: url("../img/light_rigth.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
    z-index: 1;
}

.wcard__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 2px 6px;
    position: relative;
    color: #E8ECF4;
}
.wcard__title {
    font: 600 24px/1 Roboto, sans-serif;
}
.wcard__dates {
    opacity: 0.85;
    font: 500 18px/1 Roboto, sans-serif;
}
/* --- Table --- */
.wcard__tablewrap {
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    /* для скруглений */
}

/* внутренняя обводка у таблицы поверх контента */
.wtable {
    position: relative;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    color: #E8ECF4;
    table-layout: fixed;
    font: 500 16px/1.4 Roboto, sans-serif;
}
.wtable::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px #444e65;
    /* внутренняя рамка */
    pointer-events: none;
}

/* thead — тёмная строка + разделители */
.wtable thead th {
    background: #020C22;
    /* тёмная как в макете */
    color: #E8ECF4;
    padding: 14px 16px;
    text-align: left;
    height: 53px;
    border-bottom: 1px solid #444e65;
    border-right: 1px solid #444e65;
    font-weight: 700;
}
.wtable thead th:last-child {
    border-right: none;
}

/* body — разделители + зебра */
.wtable tbody td {
    padding: 14px 16px;
    height: 56px;
    border-bottom: 1px solid #444e65;
    /* разделители в таблице */
    border-right: 1px solid #444e65;
}
.wtable tbody td:last-child {
    border-right: none;
}
.wtable tbody tr:nth-child(even) td {
    background: #020c22;
}
/* --- Arrows (56x84, без hover, с pressed) --- */
.winners__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 84px;
    padding: 0;
    z-index: 2;

    background: #444E65;
    /* дефолт */
    border-bottom: 4px solid #333B4C;
    border-radius: 12px;
}
.winners__arrow--prev {
    left: 4px;
}
.winners__arrow--next {
    right: 4px;
}

.winners__arrow:hover {
    background: #333B4C;
    /* в макете без hover */
    border-bottom: 4px solid #333B4C;
}
.winners__arrow:active {
    background: #1C2539;
    /* нажатие */
    border-bottom: 4px solid #333B4C;
    transform: translateY(-50%);
    /* не «прыгает» вниз */
}

/* --- Dots --- */
.winners__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}
.winners__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #808590;
    border: none;
    cursor: pointer;
}
.winners__dot.is-active {
    background: #fafafa;
}

.wtable col.col-acc {
    width: 195px;
}
.wtable col.col-min {
    width: 120px;
}
.wtable col.col-prize {
    width: 136px;
}

/* ===== Prediction mini modals ===== */
.modal__enter,
.modal__toast {
    position: relative;
    width: min(520px, 94vw);
    background: #1c2539;
    border-radius: 12px;
    color: #E8EDF7;
    padding: 22px 20px 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

.enter__title {
    margin: 0 42px 8px 0;
    font: 900 24px/1.1 Montserrat, sans-serif;
}
.enter__link {
    display: inline-block;
    color: #E8ECF4;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-bottom: 12px;
}
.enter__field {
    display: block;
    margin: 8px 0 16px;
}
.enter__field input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    background: #2a3448;
    border: 1px solid #3a455c;
    border-radius: 8px;
    color: #E8ECF4;
    font: 500 16px/1 Roboto, sans-serif;
    outline: none;
}
.enter__field input::placeholder {
    color: #93A0B8;
}
.enter__field input:focus {
    border-color: #5b6a86;
}

.enter__btn,
.toast__btn {
    display: block;
    width: 100%;
    height: 64px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font: 800 20px/1 Montserrat, sans-serif;
    background: linear-gradient(97deg, #FF7C1E 0%, #F85A00 100%);
    border-bottom: 4px solid #A53C00;
    cursor: pointer;
}
.enter__btn:active,
.toast__btn:active {
    transform: translateY(1px);
}

/* Заголовок “toast” */
.toast__title {
    margin: 0 42px 16px 0;
    font: 900 22px/1.15 Montserrat, sans-serif;
}

/* Экспорт */
.export-btn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    padding: 10px 14px;
    border-radius: 8px;
    background: #444E65;
    color: #fff;
    border: none;
    cursor: pointer;
    font: 600 14px/1 Roboto, sans-serif;
}

/* ===== Footer ===== */
.site-footer {
    background: #1c2539;
    color: #cfd6e3;
    padding: 12px 20px 40px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* верхняя зона: меню слева, соцсети справа */
.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 24px;
    padding: 0 0 24px;
}

/* левое меню */
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}
.footer-nav a {
    color: #cfd6e3;
    text-decoration: none;
    font-size: 16px;
}
.footer-nav a:hover {
    color: #fff;
}

/* правый столбец */
.footer-side {
    display: flex;
    gap: 36px;
    justify-self: end;
}
.ft-title {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin: 6px 0 14px;
}
.social-links img {
    width: 40px;
    height: 40px;
    display: block;
}

.contacts p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 20px;
}
.contacts p span {
    color: #9fb0c7;
    display: inline-block;
    margin-bottom: 2px;
    font-size: 13px;
}

.footer-apps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.app-buttons {
    display: flex;
    gap: 12px;
}
.footer-apps .app-img {
    width: 141px;
    height: auto;
    display: block;
    transition: filter 0.2s ease;
}
.footer-apps .app-img:hover {
    filter: brightness(1.1);
}

/* центрированный логотип */
.footer-brand-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}
.footer-brand-center .footer-logo {
    width: 92px;
    height: auto;
}
.footer-brand-center .age {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    color: #9aa4b2;
    border: 1px solid rgba(255,255,255,.35);
}

/* разделители */
.footer-sep {
    height: 1px;
    margin: 22px 0;
    background: rgba(255,255,255,.14);
}

/* нижний текст */
.footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #9aa4b2;
    margin-top: 18px;
}
.footer-bottom a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 1200px) {

    .match-panel__bg {
        width: 976px;
        height: 164px;
        max-width: none;
    }
    .btn-action {
        width: 242px;
    }
    .bar {
        width: 440px;
    }

.wtable col.col-acc {
    width: 148px;
}
.wtable col.col-min {
    width: 108px;
}
.wtable col.col-prize {
    width: 120px;
}
}

@media (max-width: 1024px) {
    .match-panel__bg {
        content: url("../img/match_bg_tab.png");
        width: 720px;
        height: 164px;
        max-width: none;
    }
    .btn-action {
        width: 264px;
    }
    .teams {
        gap: 22px;
    }

    .vs-wrap {
        margin-bottom: 36px;
    }
    .steps__grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
        gap: 22px;
    }
    .step-num {
        width: 50px;
        height: 73px;
    }
    .hero {
        margin-bottom: -40px;
    }
    .steps {
        padding: 0 0 36px;
    }
    .step-text {
        margin-top: -25px;
    }
    .step-link--center {
        margin-top: 30px;
    }

    .main-nav__list {
        gap: 10px;
    }

    .winners__slide {
        grid-template-columns: repeat(1, minmax(300px, 1fr));
        justify-items: center;
    }

    .wcard::before {
        background-image: url("../img/light_left.png") !important;
        background-position: left center !important;
        background-size: cover !important;
    }
    .footer-nav ul {
        flex-direction: column;
    }

    .bar {
        width: 320px;
    }
}

@media (max-width: 768px) {

    .match-panel__bg {
        content: url("../img/match_bg_mob.png");
        width: 343px;
        height: 236px;
        max-width: none;
    }

    .ball {
        width: 28px;
        height: 28px;
        top: 24px;

    }

    .controls {
        display: grid;
        grid-template-columns: 56px 1fr 56px;
        grid-template-areas: "minus minute plus" "btn btn btn";
        gap: 8px;
        padding-bottom: 16px;
        justify-items: center;
    }
    #btnMinus {
        grid-area: minus;
    }
    .minute {
        grid-area: minute;
        width: 136px;
    }
    #btnPlus {
        grid-area: plus;
    }

    .btn-action {
        grid-area: btn;
        width: 100%;
        height: 72px;
        margin-left: 0;
    }

    .team__logo {
        position: relative;
        z-index: 1;
        width: 80px;
        height: 80px;
        object-fit: contain;
    }

    .team__name {
        font-size: 14px;
        font-weight: 500;
    }

    .vs {
        width: 87px;
    }

    .team__bg {
        content: url("../img/team_bg_mob.png");
        border-radius: 16px;
    }
    .steps__grid {
        grid-template-columns: repeat(1, minmax(200px, 1fr));
        gap: 22px;
    }
    .teams {
        gap: 4px;
    }
    .hero__inner {

        padding: 22px 16px 80px;
    }

    .vs-date {
        font: 500 14px / 1 Roboto, sans-serif;
    }

    .hero__title {
        font-size: 36px;
        line-height: 40px;
    }

    .hero__bg {
        background: url("../img/mob_bg.webp") center / cover no-repeat;
        height: 50vh;
    }

    .team {
        width: 124px;
    }

    .bar {
        width: 136px;
    }

    .bars {

        padding: 16px 0 10px;

    }

    .winners {
        padding: 24px 0 40px;
    }

    .winners__arrow--prev {
        left: 4px;
        display: none;
    }

    .winners__arrow--next {
        right: 4px;
        display: none;
    }

    .winners__carousel {
        position: relative;
        padding: 0 16px;
    }

    .winners__title {
        font: 900 24px / 1 Montserrat, sans-serif;
    }

    .wcard {
        padding: 12px;
        max-width: 343px;
    }

    .modal__inner_top {
        padding: 24px 12px 12px;
    }

    .modal__image {
        width: 100%;
    }

    .modal__list {
        margin: 0 0 8px 10px;
        font: 400 14px / 20px Roboto, sans-serif;
    }

    .modal__bullets {
        margin: 0 0 8px 10px;
        font: 400 14px / 22px Roboto, sans-serif;
    }

    .wtable col.col-acc {
        width: 110px;
    }
    .wtable col.col-min {
        width: 104px;
    }
    .wtable col.col-prize {
        width: 103px;
    }

    .wtable {
        font: 500 14px/1.2 Roboto, sans-serif;
    }

    .winners__slide,
    .winners__track,
    .winners__viewport {
        touch-action: pan-y;
        /* вертикаль — системе, горизонталь — нам */
        user-select: none;
    }

    .hero__subtitle {
        margin: 0 auto 10px;
        max-width: 494px;
        color: var(--c-sub);
        font: 400 14px / 20px Roboto, sans-serif;
    }

    .wtable thead th {
        height: 48px;
        padding: 5px 16px;
    }

    .header-inner {
        gap: 12px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        right: -320px;
        height: calc(100vh - var(--header-h));
        width: 280px;
        background: var(--c-header);
        box-shadow: -20px 0 40px rgba(0,0,0,.35);
        padding: 16px;
        transition: right 0.25s ease;
        z-index: 1000;
    }
    .main-nav.main-nav--open {
        right: 0;
    }

    /* вертикальный список */
    .main-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .main-nav__link {
        height: 44px;
        justify-content: flex-start;
        padding: 0 14px;
        border-radius: 8px;
    }

    /* на мобильном обычную десктопную раскладку скрываем */
    .container.header-inner {
        justify-content: space-between;
    }

    /* перестраиваем порядок блоков без изменения HTML */
    .site-footer .footer-inner {
        display: flex;
        flex-direction: column;
    }

    /* порядок отображения */
    .site-footer .footer-brand-center {
        order: 1;
        justify-content: center;
    }
    .site-footer .footer-top {
        order: 2;
    }
    .site-footer .footer-flags {
        order: 5;
        justify-content: center;
    }
    .site-footer .footer-bottom {
        order: 7;
    }

    /* прячем существующие <div class="footer-sep">, 
     разделители нарисуем бордерами у нужных секций */
    .site-footer .footer-sep {
        display: none;
    }

    /* логотип сверху + разделительная линия снизу */
    .footer-brand-center {
        margin: 12px 0 0;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,.14);
        justify-content: flex-start;
    }

    /* “верхняя зона” больше не сетка — идём колонкой */
    .footer-top {
        display: block;
        /* вместо grid */
        padding: 0;
    }

    /* меню — колонкой + разделитель снизу */
    .footer-nav {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,.14);
    }
    .footer-nav ul {
        flex-direction: column;
        gap: 14px;
    }

    /* правая колонка разбиваем в вертикальную последовательность:
     Social (с контактами) → разделитель → App buttons */
    .footer-side {
        display: flex;
        flex-direction: column;
        gap: 0;
        justify-self: initial;
    }

    .footer-social {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,.14);
    }

    .footer-apps {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,.14);
    }
    .footer-apps .app-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* нижний текст */
    .footer-bottom {
        padding-top: 8px;
        text-align: center;
        line-height: 22px;
    }

}
