@font-face {
    font-family: 'Arimo';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/arimo.woff2') format('woff2-variations');
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #000;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
}

#background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

#background-image img {
    display: contents;
}
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    object-fit: cover;
    filter: brightness(0.6);
    z-index: -1;
    transform: scale(1.1);
}
.main-video {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

/* ═══ МЕДИА-СЦЕНА: видео-афиша на весь экран ═══ */
.video-wrap {
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.media-stage {
    width: 100vw;
    height: 100vh;
    z-index: 1;
    position: relative;
}

.media-stage .video-wrap {
    width: 100%;
    height: 100%;
}

/* Без видео — .media-stage на всю ширину */
#background-image.no-video .media-stage {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

/* Кнопка TICKET — стили для кнопки в шапке (класс .ticket-btn из config.js) */
.ticket-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.5px;
    /*text-transform: uppercase;*/
    text-align: center;
    transition:
        background 0.3s ease,
        color 0.3s ease;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.ticket-btn:hover {
    /*background: #000;*/
    color: red;
}

/* Кнопки «билеты» и «поддержать» — pill-стиль как TG-FAB, красное обрамление */
.nav-btn.ticket-btn,
.nav-btn.donate-btn {
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 0 10px 0 5px;
    height: 32px;
    box-shadow: inset 0 0 0 2px rgba(255, 0, 0, 0.8);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.05em;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.nav-btn.ticket-btn:hover,
.nav-btn.donate-btn:hover {
    background: transparent;
    color: #ff0000;
    box-shadow: inset 0 0 0 2px rgba(255, 0, 0, 1);
}
.nav-btn.ticket-btn:active,
.nav-btn.donate-btn:active {
    transform: scale(0.97);
}

/* ═══ ТЁМНАЯ ТЕМА ТЕКСТА КНОПОК ШАПКИ (ПК) — переключатель headerTextTheme из config.js ═══ */
html.vrk-header-dark .nav-btn { color: #000; }
html.vrk-header-dark .nav-btn:hover { color: #ff0000; }

/* Pill-кнопки (Билеты, Поддержать) — чёрный текст, hover красный */
html.vrk-header-dark .nav-btn.ticket-btn,
html.vrk-header-dark .nav-btn.donate-btn { color: #000; }
html.vrk-header-dark .nav-btn.ticket-btn:hover,
html.vrk-header-dark .nav-btn.donate-btn:hover { color: #ff0000; }

/* TG-FAB — чёрный текст, hover красный */
html.vrk-header-dark .telegram-fab { color: #000; }
html.vrk-header-dark .telegram-fab:hover .telegram-fab__label { color: #ff0000; }

/* ═══ TIMEPAD ПОПАП — внешние элементы (на основной странице) ═══ */
/* Затемнённый оверлей */
.twf-popup-tint {
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 100000 !important;
}
/* Контейнер попапа */
.twf-popup-container,
.twf-popup-drawtarget {
    background: #000 !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif !important;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.15) !important;
    z-index: 100001 !important;
}
/* Крестик закрытия */
.twf-popup-close {
    color: #fff !important;
    opacity: 0.6 !important;
    transition:
        opacity 0.2s ease,
        color 0.2s ease !important;
    right: 12px !important;
    top: 8px !important;
    left: auto !important;
    z-index: 100002 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 6px !important;
    text-decoration: none !important;
}
.twf-popup-close:hover {
    color: #ff0000 !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    #background-image {
        height: 100vh;
        height: 100dvh;
        align-items: stretch;
    }
    .media-stage {
        display: flex;
        width: 100%;
        height: 100%;
        position: relative;
        z-index: 2;
    }
    .media-stage .video-wrap {
        display: flex !important;
        flex: 1 1 auto !important;
        width: 100%;
        min-height: 0;
    }
    .main-video {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        object-fit: cover;
        z-index: 0;
    }
}

/* ═══ ЛОГО-ФОН VRKCORE ═══ */
#vrkcore-bg {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    z-index: 1;
    overflow: hidden;
}

/* Облако-свечение за текстом */
#vrkcore-glow-cloud {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vw;
    height: 80vw;
    max-width: 1100px;
    max-height: 1100px;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(
        circle,
        rgba(255, 0, 0, 0.6) 0%,
        rgba(255, 0, 0, 0.3) 25%,
        rgba(255, 0, 0, 0.1) 55%,
        transparent 75%
    );
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
    will-change: transform, opacity;
    opacity: 0;
    }

#vrkcore-text {
    position: relative;
    width: calc(100vw - 100px);
    max-width: none;
    /* aspect-ratio = суммарная ширина SVG / высота = 2809/415 ≈ 6.77 */
    aspect-ratio: 2809 / 415;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 0 0 transparent);
    will-change: filter;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
    }

/* Половинки лого VRK / CORE */
#vrkcore-text .logo-half {
    width: auto;
    /* Высота = 100% от #vrkcore-text, высота которого задаётся через aspect-ratio */
    height: 100%;
    display: block;
    flex: 0 1 auto;
    min-width: 0;
}

/* Слот для вращающегося диска (favicon) — по высоте текста */
#logo-disc-slot {
    flex: 0 0 auto;
    height: 100%;
    width: auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 clamp(2px, 0.5vw, 10px) 0 clamp(1px, 0.3vw, 6px);
    transition: width 0.4s ease, height 0.4s ease, margin 0.4s ease;
}

#logo-disc-slot img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}


@keyframes disc-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Пустой слот — не занимает место (музыка не играет) */
#logo-disc-slot:empty {
    width: 0;
    min-width: 0;
    height: 0;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
}

/* Мобайл: всё в строку */
@media (max-width: 768px) {
    #vrkcore-text {
        flex-direction: row;
        gap: 0;
        width: calc(100vw - 50px);
        aspect-ratio: 2809 / 415;
    }

    #vrkcore-text .logo-half {
        height: 100%;
    }

    #logo-disc-slot {
        height: 100%;
        width: auto;
        aspect-ratio: 1 / 1;
        margin: 0 clamp(1px, 0.3vw, 4px) 0 clamp(1px, 0.3vw, 3px);
    }
}

/* ═══ ПЕРЕКЛЮЧЕНИЕ ФОНА: Лого ↔ Видео-афиша ═══ */
/* Лого-фон виден по умолчанию. Если есть .video-wrap — скрываем лого,
   показываем видео. */
#vrkcore-bg {
    opacity: 1;
    transition: opacity 0.6s ease;
}

.video-wrap .main-video,
.video-wrap .bg-video {
    transition: opacity 0.6s ease;
}

/* Если .video-wrap есть в DOM — лого скрыт, видео видимо */
#background-image:has(.video-wrap) #vrkcore-bg {
    opacity: 0;
    pointer-events: none;
}
/* Фолбэк для браузеров без :has() — через JS-класс .has-video */
#background-image.has-video #vrkcore-bg {
    opacity: 0;
    pointer-events: none;
}

/* ═══ ЕДИНАЯ ШАПКА ═══ */
:root {
    --header-h: 73px;
    --header-h-mobile: 57px;
    --text-edge: 38px; /* отступ текста от края = padding шапки (десктоп) */
}

.vrk-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
    box-sizing: border-box;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
}

.vrk-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    min-height: 32px;
}

.vrk-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.vrk-header-left img {
    height: 61px;
    width: auto;
    padding: 0;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.3s ease, filter 0.15s ease;
    display: block;
}

.vrk-header-left a {
    text-decoration: none;
}

.vrk-header-left:hover img {
    opacity: 1;
}

/* Базовый padding-top для team-section — до media-queries, чтобы desktop-правило (min-width:769px) могло переопределить */
.team-section { padding-top: var(--header-h); }

@media (min-width: 769px) {
    .vrk-header-center {
        position: relative;
        z-index: 1002;
        height: 32px; /* фиксированная высота = свёрнутый плеер, чтобы не смещаться при раскрытии */
        overflow: visible;
    }
    .vrk-header {
        top: 40px;
    }
    .team-section {
        padding-top: calc(var(--header-h) + 40px);
    }
    .nav-btn .nav-icon.arrow-up {
        display: none;
    }
}

.vrk-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    position: relative;
    height: 100%;
    order: 3;
    gap: 12px;
}

.vrk-header-left {
    order: 1;
    justify-content: flex-start;
}

.vrk-header-center {
    order: 2;
}

.nav-btn {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: -0.05em;
    /*text-transform: uppercase;*/
    padding: 6px 2px;
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition:
        color 0.3s ease,
        background 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.nav-btn:hover {
    color: #ff0000;
}

.nav-icon {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    flex-shrink: 0;
}

/* Стрелка локации — выше текста */
.nav-icon.arrow-up {
    position: relative;
    top: -0.5em;
    width: 7px;
    height: 7px;
}

/* Сердце — отступ справа после иконки (иконка перед текстом) */
.nav-icon.heart-icon {
    margin-right: 5px;
    margin-left: 0;
}

/* Мини-лого билета — favicon 18px слева от текста */
.nav-icon.ticket-logo-icon {
    margin-right: 5px;
    margin-left: 0;
}

/* Бургер — скрыт на десктопе */
.vrk-header .burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.vrk-header .burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: background 0.3s ease;
}

.vrk-header .burger-btn:hover span {
    background: #fff;
}

/* ═══ SPA-СЕКЦИЯ КОМАНДЫ ═══ */
.team-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 998;
    background: #080808;
    overflow: hidden;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;

    box-sizing: border-box;
}

.team-section.active {
    transform: translateY(0);
}
/* ═══ КНОПКА-СТРЕЛКА "СВЕРНУТЬ" (под карточками) ═══ */
.team-collapse-btn {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    cursor: pointer;
    z-index: 50;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.team-collapse-btn:hover {
    background: transparent;
    border-color: #ff0000;
}

.team-collapse-btn:hover svg line,
.team-collapse-btn:hover svg polyline {
    stroke: #ff0000;
}

.team-collapse-btn:active {
    transform: translateX(-50%) scale(0.96);
}

.team-collapse-btn svg {
    display: block;
}


/* ═══ TG-ИКОНКА В ШАПКЕ (только мобайл) ═══ */
.header-tg-icon {
    display: none; /* скрыта на ПК */
}

/* ═══ ЛОГОТИП СТРАНИЦЫ (десктоп, фиксированный слева по центру) ═══ */
.vrk-page-logo {
    position: fixed;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    text-decoration: none;
    display: none;
}

.vrk-page-logo img {
    height: 61px;
    width: auto;
    display: block;
}

@media (min-width: 769px) {
    .vrk-page-logo {
        display: block;
    }

    /* Скрыть лого в .vrk-header-left (только десктоп) */
    .vrk-header-left #logo-home,
    .vrk-header-left #header-logo {
        display: none;
    }
}

/* Прячем лого при скролле карточек команды */
.vrk-page-logo.is-scrolled {
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

/* ═══ МОБАЙЛ ШАПКА ═══ */
@media (max-width: 768px) {
    .vrk-header {
        height: auto;
        min-height: var(--header-h-mobile);
        padding: 6px 12px;
        row-gap: 20px;
        column-gap: 6px;
        align-items: flex-start;
        background: transparent;
        flex-wrap: wrap;
    }

    /* Ряд 2: лого по центру */
    .vrk-header-left {
        display: flex;
        order: 2;
        flex: 1 1 0;
        justify-content: center;
        align-items: center;
    }

    /* Ряд 2: TG-иконка слева */
    .header-tg-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 1;
        width: 64px;
        height: 28px;
        border-radius: 999px;
        box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3);
        background: transparent;
        text-decoration: none;
        flex-shrink: 0;
        transition: box-shadow 0.2s ease, transform 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .header-tg-icon:hover {
        box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
    }

    .header-tg-icon:active {
        transform: scale(0.97);
    }

    .header-tg-icon img {
        width: 18px;
        height: auto;
        display: block;
        pointer-events: none;
    }

    /* Ряд 1: плеер на всю ширину */
    .vrk-header-center {
        flex: 1 1 100%;
        order: 0;
        justify-content: flex-start;
        min-width: 0;
        display: flex;
        align-items: center;
        height: 36px;
    }

    .vrk-header-left img {
        width: 100%;
        height: auto;
        max-height: 60px;
        padding: 2px 0;
        object-fit: contain;
    }

    .vrk-header-right {
        display: none;
    }

    /* Ряд 2: бургер справа с обводкой */
    .vrk-header .burger-btn {
        display: flex;
        flex-shrink: 0;
        order: 3;
        z-index: 1002;
        height: 28px;
        width: 64px;
        flex-direction: column;
        gap: 4px;
        justify-content: center;
        align-items: center;
        box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3);
        border-radius: 999px;
        padding: 4px 10px;
        box-sizing: border-box;
        position: relative;
        right: auto;
        top: auto;
        margin-left: 0;
        transition: box-shadow 0.2s ease, transform 0.15s ease;
    }

    .vrk-header .burger-btn:hover {
        box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
    }

    .vrk-header .burger-btn:active {
        transform: scale(0.97);
    }

    .vrk-header .burger-btn span {
        width: 18px;
    }

    /* ═══ ПОЛНОЭКРАННОЕ БУРГЕР-МЕНЮ ═══ */

    /* Блокировка скролла body при открытом меню */
    body.menu-open {
        overflow: hidden;
    }

    /* Бургер → крестик: белая заливка, чёрный крестик */
    .vrk-header .burger-btn.is-open {
        gap: 0;
        background: #fff !important;
        box-shadow: none !important;
    }

    .vrk-header .burger-btn.is-open span {
        background: #000 !important;
    }

    .vrk-header .burger-btn.is-open:hover {
        background: #fff !important;
        box-shadow: none !important;
    }

    .vrk-header .burger-btn.is-open:hover span {
        background: #000 !important;
    }

    .vrk-header .burger-btn.is-open span:nth-child(1) {
        transform: translateY(1px) rotate(45deg);
    }

    .vrk-header .burger-btn.is-open span:nth-child(2) {
        transform: translateY(-1px) rotate(-45deg);
    }

    /* Полноэкранный оверлей на весь экран */
    .mobile-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        inset: 0 !important;
        background: #000 !important;
        border-left: none !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: flex-end !important;
        gap: 16px !important;
        padding: var(--menu-top, 140px) 24px 48px !important;
        z-index: 1001 !important;
        visibility: hidden !important;
        opacity: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s !important;
    }

    /* При открытом меню: шапка поверх меню — все элементы видны (плеер, TG, лого, бургер-крестик) */
    body.menu-open .vrk-header {
        z-index: 1003 !important;
        background: #000 !important;
    }

    .mobile-menu.open {
        visibility: visible !important;
        opacity: 1 !important;
        right: 0 !important;
        transition: opacity 0.3s ease, visibility 0s linear 0s !important;
    }

    /* Пункты меню — 40px Arial, правый край, без рамок */
    .mobile-menu-link {
        font-size: 40px !important;
        font-family: Arial, sans-serif !important;
        letter-spacing: -0.05em !important;
        color: #fff !important;
        text-decoration: none !important;
        text-align: right !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        text-transform: uppercase !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        transition: color 0.3s ease !important;
    }

    /* Скрыть стрелку у локации */
    .mobile-menu-link .nav-icon.arrow-up {
        display: none !important;
    }

    .mobile-menu-link:hover {
        color: #ff0000 !important;
        background: transparent !important;
    }

    /* Сброс pill-стиля для ticket/donate */
    .mobile-menu-link.ticket-btn,
    .mobile-menu-link.donate-btn {
        font-size: 40px !important;
        font-weight: normal !important;
        letter-spacing: -0.05em !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        height: auto !important;
        width: auto !important;
        color: #fff !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        text-transform: uppercase !important;
        transition: color 0.3s ease !important;
    }

    .mobile-menu-link.ticket-btn:hover,
    .mobile-menu-link.donate-btn:hover {
        color: #ff0000 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .mobile-menu-link.ticket-btn:active,
    .mobile-menu-link.donate-btn:active {
        transform: none !important;
    }

    /* Иконки внутри пунктов */
    .mobile-menu-link .nav-icon {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0 !important;
        vertical-align: middle !important;
    }

    /* Оверлей — на весь экран, под меню */
    .mobile-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.85) !important;
        z-index: 999 !important;
    }

    /* TG-FAB внизу страницы — скрыт на мобайле */
    .telegram-fab {
        display: none;
    }

    .team-section {
        padding-top: 100px;
    }

    .team-collapse-btn {
        display: none;
        bottom: calc(16px + env(safe-area-inset-bottom));
    }
}


/* ═══ TELEGRAM-FAB (pill-кнопка с иконкой и текстом) ═══ */
.telegram-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px 0 5px;
    height: 32px;
    border-radius: 999px;
    border: none;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.telegram-fab:hover {
    box-shadow: inset 0 0 0 2px #ff0000;
}

.telegram-fab:hover .telegram-fab__icon {
    content: url('TG-red.svg');
}

.telegram-fab:hover .telegram-fab__label {
    color: #ff0000;
}

.telegram-fab:active {
    transform: scale(0.97);
}

.telegram-fab__icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    pointer-events: none;
}

.telegram-fab__label {
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Десктоп: FAB внутри шапки (в .vrk-header-left) */
@media (min-width: 769px) {
    .vrk-header-left .telegram-fab {
        position: static;
        right: auto;
        bottom: auto;
    }

    /* Переопределить .vrk-header-left img (height:61px) — FAB-иконка 22px */
    .vrk-header-left .telegram-fab__icon {
        width: 22px;
        height: 22px;
    }
}

/* Адаптив: на мобайле — safe-area + чуть компактнее */
@media (max-width: 768px) {
    .telegram-fab {
        display: none;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        height: 28px;
        padding: 0 8px 0 4px;
        font-size: 12px;
    }

    .telegram-fab__icon {
        width: 20px;
        height: 20px;
    }
}

/* ═══ FALLBACK-ВИДЕО + ТЕКСТ «VRK / CORE» ═══ */
/* Full-screen ролик + текст справа (на мобайле — по центру).
   Показывается когда config.video.enabled === false. */
.vrk-fallback {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 1;
}

.vrk-fallback__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

@media (max-width: 768px) {
    .vrk-fallback__video {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        object-fit: cover;
    }
}

.vrk-fallback-title {
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    color: #fff;
    font-weight: 900;
    font-size: clamp(64px, 12vw, 200px);
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-family: Arial, sans-serif;
    pointer-events: none;
}

.vrk-fallback-line {
    display: block;
}

/* Мобайл — отступ текста от краёв */
@media (max-width: 768px) {
    :root {
        --text-edge: 12px; /* padding шапки на мобайле */
    }
    /* pozicionirovanie (.vrk-fallback-title) — iz JS-inline (vertical/align) */
}
/* ═══ ТЕКСТОВЫЙ БЛОК ВИДЕО-АФИШИ (.vrk-media-title) ═══ */
/* Настраивается из config.js -> video.text через applyTextConfig().
   Дефолты здесь перебиваются JS-инлайн-стилями. */
.vrk-media-title {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    pointer-events: none;
    color: #fff;
    font-weight: 900;
    font-size: clamp(64px, 12vw, 200px);
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-family: Arial, sans-serif;
}

.vrk-media-line {
    display: block;
}

/* Мобайл — pozicionirovanie .vrk-media-title iz JS-inline (vertical/align) */


/* ═══ КНОПКА «БИЛЕТЫ» ВНИЗУ СТРАНИЦЫ (только мобайл) ═══ */
.mobile-bottom-ticket {
    display: none; /* скрыта на ПК */
}

@media (max-width: 768px) {
    .mobile-bottom-ticket {
        display: flex;
        align-items: center;
        position: fixed;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        left: 12px;
        right: 12px;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        height: 32px;
        border-radius: 24px;
        box-shadow: inset 0 0 0 1.5px rgba(255, 0, 0, 0.8);
        background: rgba(255, 0, 0); /* transparent; */
        color: #fff;
        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: -0.05em;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
        padding: 0 4px;
        z-index: 999;
        transition: box-shadow 0.2s ease, transform 0.15s ease;
    }

    .mobile-bottom-ticket:hover {
        box-shadow: inset 0 0 0 1.5px rgba(255, 0, 0, 1);
    }

    .mobile-bottom-ticket:active {
        transform: scale(0.97);
    }

    .mobile-bottom-ticket__icon {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        margin: 0 auto 0 1px;
    }

    .mobile-bottom-ticket__icon .nav-icon {
        margin: 0;
    }

    .mobile-bottom-ticket__icon .nav-icon.ticket-logo-icon {
        width: 22px;
        height: 22px;
        margin: 0;
    }

    .mobile-bottom-ticket__text {
        flex: 1;
        text-align: center;
        /* компенсируем ширину иконки слева, чтобы текст был по центру кнопки */
        transform: translateX(calc(-22px / 2 - 1px));
        text-transform: uppercase;
    }

    /* Скрыть кнопку «билеты» когда открыта страница команды */
    .team-section.active ~ .mobile-bottom-ticket {
        display: none !important;
    }

    /* Скрыть кнопку «билеты» когда открыто бургер-меню */
    body.menu-open .mobile-bottom-ticket {
        display: none !important;
    }
}
/* ═══ ЗАГЛУШКА LANDSCAPE НА ТЕЛЕФОНЕ ═══ */
#landscape-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1004;          /* выше шапки 1003 и .mobile-menu 1001 */
    background: #000;
    justify-content: center;
    align-items: center;
    touch-action: none;      /* блок скролла/жестов под оверлеем */
}
#landscape-overlay img {
    display: block;
    height: 75vh;
    height: 75dvh;          /* iOS Safari без прыжков адресной панели */
    width: auto;
    max-width: 100vw;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
body.landscape-locked { overflow: hidden; }

@media (max-width: 900px) and (orientation: landscape)
       and (hover: none) and (pointer: coarse) {
    #landscape-overlay { display: flex; }
}
