/* ======================================================= */
/* 1. ПЕРЕМЕННЫЕ И ОБЩИЕ СТИЛИ                             */
/* ======================================================= */
:root {
    /* --- Cyberpunk / Neon Palette --- */
    
    /* Backgrounds */
    --bg-color: #09090b;   /* Rich Black */
    --card-bg: #18181b;    /* Zinc-900 */
    --glass-bg: rgba(24, 24, 27, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Text */
    --text-main: #ffffff;
    --text-body: #e4e4e7;  /* Zinc-200 */
    --text-muted: #a1a1aa; /* Zinc-400 */

    /* Brand Colors (Neon) */
    --primary: #8b5cf6;       /* Violet-500 */
    --primary-hover: #7c3aed; /* Violet-600 */
    --primary-glow: rgba(139, 92, 246, 0.4);

    --secondary: #06b6d4;     /* Cyan-500 */
    --secondary-glow: rgba(6, 182, 212, 0.4);

    --accent: #f59e0b;        /* Amber-500 */
    --accent-glow: rgba(245, 158, 11, 0.4);

    --success: #10b981;       /* Emerald-500 */
    --danger: #ef4444;        /* Red-500 */

    /* Dimensions */
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --header-height: 80px;

    /* Skeleton */
    --skeleton-bg: #27272a;
    --skeleton-shine: #3f3f46;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-body);
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08), transparent 25%);
    background-attachment: fixed;
    /* Sticky footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3 {
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================================================= */
/* 2. ШАПКА САЙТА (HEADER)                                 */
/* ======================================================= */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: var(--header-height);
    margin-bottom: 40px;
    
    /* Glassmorphism */
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(9, 9, 11, 0.9);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--primary-glow);
}

.main-nav a {
    color: var(--text-muted);
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
}

.btn-small {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ======================================================= */
/* 3. СТРАНИЦА АФИШИ (КАРТОЧКИ)                            */
/* ======================================================= */
.main-content {
    padding: 20px 20px 80px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.event-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 400px;
    backdrop-filter: blur(10px);
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 2;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Theme variations */
.card-purple:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px -10px var(--primary-glow);
}

.card-gold:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 40px -10px var(--accent-glow);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--card-bg));
    z-index: 1;
    pointer-events: none;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.event-card:hover .card-img {
    transform: scale(1.05);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #222, #333);
}

.card-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
}

.card-venue {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.btn-buy {
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-purple .btn-buy {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.card-purple .btn-buy:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 25px var(--primary-glow);
}

.card-gold .btn-buy {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.card-gold .btn-buy:hover {
    background: var(--accent);
    color: black;
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-buy:hover {
    transform: translateY(-2px);
}

/* Reveal */
.card-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 20, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
}

.reveal-text {
    color: #e4e4e7;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

@media (hover: hover) {
    .event-card:hover .card-reveal {
        opacity: 1;
        visibility: visible;
    }
}

.event-card.active .card-reveal {
    opacity: 1;
    visibility: visible;
}

/* ======================================================= */
/* 3.1 SKELETON LOADING CARDS                              */
/* ======================================================= */
.skeleton-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, var(--skeleton-bg) 0%, var(--skeleton-shine) 50%, var(--skeleton-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
}

.skeleton-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.skeleton-title {
    height: 24px;
    width: 80%;
    background: linear-gradient(90deg, var(--skeleton-bg) 0%, var(--skeleton-shine) 50%, var(--skeleton-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 6px;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 16px;
    width: 60%;
    background: linear-gradient(90deg, var(--skeleton-bg) 0%, var(--skeleton-shine) 50%, var(--skeleton-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.long {
    width: 90%;
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-date {
    height: 16px;
    width: 100px;
    background: linear-gradient(90deg, var(--skeleton-bg) 0%, var(--skeleton-shine) 50%, var(--skeleton-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 4px;
}

.skeleton-btn {
    height: 40px;
    width: 120px;
    background: linear-gradient(90deg, var(--skeleton-bg) 0%, var(--skeleton-shine) 50%, var(--skeleton-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 50px;
}


/* ======================================================= */
/* 4. СТРАНИЦА ВЫБОРА МЕСТ (БРОНИРОВАНИЕ)                  */
/* ======================================================= */

/* --- МАКЕТ V3 (GRID) --- */
.booking-layout-v3 {
    display: grid;
    gap: 30px;
    align-items: start;

    /* ПК: 2 колонки + Видео сверху */
    grid-template-columns: 1.5fr 1fr;
    grid-template-areas:
        "video video"
        "left  right";
}

.area-video {
    grid-area: video;
    width: 100%;
}

.left-column {
    grid-area: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.right-column {
    grid-area: right;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Видео */
.video-wrapper {
    position: relative;
    padding-bottom: 42.85%;
    /* 21:9 на ПК */
    padding-bottom: 56.25%;
    /* 16:9 на ПК */
    height: 0;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    z-index: 1;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Инфо панель */
.event-details-panel {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.details-poster {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.details-text h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.details-text p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Карта зала */
.map-wrapper {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    border: 2px solid #333;
    touch-action: pan-y;
}

#map-content {
    cursor: grab;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
    transform-origin: 0 0;
}

.venue-map {
    width: 100%;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s;
    height: auto;
}

.map-wrapper:hover .venue-map {
    opacity: 0.8;
}

/* Точки мест */
.seat-marker {
    position: absolute;
    width: 14px;
    height: 14px;
    background: rgba(0, 184, 148, 0.3);
    border: 2px solid var(--success);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
    box-shadow: 0 0 5px var(--success);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

@media (hover: hover) and (pointer: fine) {
    .seat-marker:hover {
        transform: translate(-50%, -50%) scale(1.4);
        background: var(--success);
        z-index: 10;
        box-shadow: 0 0 15px var(--success);
    }
}

.seat-marker:active {
    transform: translate(-50%, -50%) scale(1.2);
}

.seat-selected {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px var(--accent) !important;
    transform: translate(-50%, -50%) scale(1.2) !important;
    z-index: 5;
}

.seat-taken {
    background: #444 !important;
    border-color: #555 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1) !important;
}

.seat-hold {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
    animation: pulse 1.5s infinite;
}

/* ============================================
   SVG-СХЕМА ЗАЛА — стили мест
   ============================================ */
.svg-map-layer {
    width: 100%;
}

.svg-map-layer svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Текстовые метки (нумерация мест) внутри SVG */
.svg-map-layer text,
.svg-map-layer .t {
    text-anchor: middle;
    dominant-baseline: central;
    font-family: Arial, sans-serif;
    font-size: 11px;
    fill: #111111;
    pointer-events: none;
}

/* Метки рядов */
.svg-map-layer .r {
    text-anchor: middle;
    dominant-baseline: central;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    fill: #cccccc;
    pointer-events: none;
}

/* SVG-элементы мест (circle, rect, path с классом .seat) */
.svg-map-layer .seat {
    cursor: pointer;
    transition: fill 0.2s, stroke 0.2s, opacity 0.2s;
    transform-origin: center center;
    /* Умолчание: свободное место (zone-color переопределяет per-seat) */
    fill: var(--zone-color, rgba(0, 184, 148, 0.4)) !important;
    stroke: var(--zone-color, var(--success, #00b894)) !important;
    stroke-width: 1.5;
    /* Сброс div-маркерных стилей, чтобы они не трогали SVG-элементы */
    transform: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    position: static !important;
}

.svg-map-layer .seat:hover {
    fill: var(--zone-color, var(--success, #00b894)) !important;
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--zone-color, var(--success, #00b894)));
}

.svg-map-layer .seat.seat-free {
    fill: var(--zone-color, rgba(0, 184, 148, 0.4)) !important;
    stroke: var(--zone-color, var(--success, #00b894)) !important;
    stroke-width: 1.5;
}

.svg-map-layer .seat.seat-selected {
    fill: var(--accent, #6c5ce7) !important;
    stroke: var(--accent, #6c5ce7) !important;
    stroke-width: 2;
    filter: drop-shadow(0 0 8px var(--accent, #6c5ce7));
    transform: none !important; /* Не двигать SVG-круги */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.svg-map-layer .seat.seat-taken {
    fill: #444 !important;
    stroke: #555 !important;
    cursor: not-allowed;
    opacity: 0.5;
    filter: none;
    transform: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.svg-map-layer .seat.seat-hold {
    fill: var(--danger, #e74c3c) !important;
    stroke: var(--danger, #e74c3c) !important;
    animation: svgPulse 1.5s infinite;
    cursor: not-allowed;
    transform: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

@keyframes svgPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Тултип для SVG-мест через data-tooltip */
.svg-map-layer .seat[data-tooltip] {
    position: relative;
}
.svg-map-layer .seat[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: fixed;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
}

/* Легенда */
.legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.legend-dot.seat-marker {
    width: 16px !important;
    height: 16px !important;
    position: relative !important;
    transform: none !important;
    margin: 0;
    box-shadow: none;
    left: auto !important;
    top: auto !important;
}

/* Табы */
.section-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 1px;
    overflow-x: auto;
    padding-bottom: 1px;
    -webkit-overflow-scrolling: touch;
    z-index: 10;
}

.tab-btn {
    background: #2d2d3a;
    border: 1px solid #444;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #3d3d4d;
    color: white;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.4);
}

/* Сцена */
.stage-indicator {
    width: 60%;
    margin: 0 auto 30px auto;
    height: 40px;
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
    border-top: 4px solid var(--primary);
    border-radius: 50% 50% 0 0 / 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
    position: relative;
    z-index: 1;
}

/* --- ПАНЕЛЬ СПРАВА (МОРФИНГ) --- */
.side-panel {
    position: sticky;
    top: 20px;
    z-index: 20;
    background: rgba(29, 29, 33, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 25px;
    overflow: hidden;

    /* Скрываем по умолчанию (для анимации появления на ПК) */
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.4s;
}

.side-panel.show-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Кнопка "Оплатить" */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.btn:hover {
    background: var(--primary-hover);
}

/* Форма */
.form-group {
    margin-bottom: 15px;
}

.form-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

.form-input.input-error {
    border-color: #ff4d4d;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.25);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

    /* --- АДАПТИВНОСТЬ (МОБИЛЬНАЯ ВЕРСИЯ) --- */
    @media (max-width: 900px) {
        .booking-layout-v3 {
            grid-template-columns: 1fr;
            grid-template-areas: "left" "video" "right";
            /* Карта - Видео - (Скрытая панель) */
            gap: 15px;
        }

        .video-wrapper {
            padding-bottom: 56.25%; /* 16:9 */
            border-radius: 16px;
        }

        .map-wrapper {
            height: auto;
            min-height: 400px; /* Минимальная высота для удобства */
            width: 100%;
            display: block;
            overflow: hidden;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        }

        .venue-map {
            opacity: 1 !important;
        }

        /* Увеличенные зоны нажатия для мест */
        .seat-marker {
            width: 8px; /* Визуально меньше */
            height: 8px;
            padding: 0 !important; /* Сбрасываем возможные desktop-паддинги */
            z-index: 10; /* Убедимся, что они поверх карты */
        }
        
        /* Убираем расширенную зону клика, делаем её равной маркеру (чуть больше для комфорта - 12px) */
        .seat-marker::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 12px; /* Было 32px. Делаем чуть больше визуального (8px), чтобы можно было попасть */
            height: 12px;
            transform: translate(-50%, -50%);
            
            background: transparent;
            z-index: 20; 
            border-radius: 50%;
        }

        /* Легенда компактнее */
        .legend {
            justify-content: center;
            padding: 8px;
            gap: 12px;
            background: transparent;
            border: none;
        }
        
        .legend-item {
            font-size: 0.8rem;
        }
        
        /* Табы (этажи) стильнее */
        .section-tabs {
            justify-content: flex-start;
            padding-bottom: 10px;
        }
        
        .tab-btn {
            background: rgba(255,255,255,0.05);
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 0.85rem;
        }
    }

    /* --- ЭЛЕМЕНТЫ УПРАВЛЕНИЯ КАРТОЙ --- */
    .map-controls {
        position: absolute;
        top: 15px;
        right: 15px;
        display: none; /* Скрыты на десктопе */
        flex-direction: column;
        gap: 8px;
        z-index: 100;
    }

    .control-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(30, 30, 35, 0.9);
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255,255,255,0.2);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        transition: 0.2s;
    }

    .control-btn:active {
        transform: scale(0.9);
        background: var(--primary);
    }

    /* --- МОРФИНГ ПАНЕЛИ ИЗ КНОПКИ FAB (MOBILE ONLY) --- */
    @media (max-width: 900px) {
        /* Показываем кнопки зума на мобильных */
        .map-controls {
            display: flex;
        }

        .side-panel {
            position: fixed;
            z-index: 2000;

            bottom: 15px;
            right: 15px;

            left: auto;
            top: auto !important;

            width: 220px;
            max-height: 60px;
            height: auto;
            /* Разрешаем контенту определять высоту, но max-height обрежет */

            border-radius: 50px;
            background: var(--success);
            box-shadow: 0 5px 20px rgba(0, 184, 148, 0.6);
            padding: 0;
            margin: 0;
            border: none;
            overflow: hidden;

            opacity: 0;
            pointer-events: none;
            visibility: hidden;
            transform: none;

            /* Анимация всех параметров */
            transition:
                width 1s cubic-bezier(0.23, 1, 0.32, 1),
                max-height 1s cubic-bezier(0.23, 1, 0.32, 1),
                /* Анимируем max-height вместо height */
                bottom 1s cubic-bezier(0.23, 1, 0.32, 1),
                right 1s cubic-bezier(0.23, 1, 0.32, 1),
                border-radius 1s ease,
                background-color 0.3s ease,
                opacity 0.3s ease,
                visibility 2s ease;
        }

        /* 2. ПАНЕЛЬ В "РАСКРЫТОМ" СОСТОЯНИИ */
        .side-panel.show-panel {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;

            bottom: 0; 
            right: 0;
            left: 0;
            margin: 0;
            width: 100%;
            max-height: 70vh;

            border-radius: 24px 24px 0 0;
            background: #1d1d21;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 25px;
            overflow-y: auto;
        }

        /* Внутренний контент панели */
        .panel-inner-content {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s ease;
        }

        .side-panel.show-panel .panel-inner-content {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.2s;
        }

        /* Скрываем кнопку FAB при открытии панели */
        body.panel-open .fab-btn {
            opacity: 0 !important;
            pointer-events: none;
            transition: none;
        }

        /* Крестик закрытия */
        .close-panel-btn {
            display: block;
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 10;
            opacity: 0;
            transition: opacity 0.3s ease 0.3s;
        }

        .side-panel.show-panel .close-panel-btn {
            opacity: 1;
        }

        /* FAB кнопка (поднимаем слой) */
        .fab-btn {
            z-index: 1000;
        }

        /* --- ЭФФЕКТ БЛЮРА ПРИ ОТКРЫТОЙ ПАНЕЛИ (MOBILE) --- */
        body.panel-open .site-header,
        body.panel-open .event-top-header,
        body.panel-open #video-container,
        body.panel-open .left-column,
        body.panel-open .event-details-panel {
            filter: blur(5px) brightness(0.6);
            pointer-events: none;
            transition: filter 0.4s ease;
        }

        /* Убедимся, что сама панель НЕ блюрится */
        .side-panel {
            filter: none !important;
        }
    }

/* Крестик скрыт на ПК */
@media (min-width: 901px) {
    .close-panel-btn {
        display: none;
    }
}


/* --- РЕЖИМ ФОКУСИРОВКИ (FOCUS MODE) --- */
/* Базовое состояние (чтобы работала анимация возврата) */
.site-header,
.event-top-header,
.video-wrapper,
.event-details-panel {
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: blur(0) grayscale(0%);
    opacity: 1;
}

/* Активное состояние */
body.focus-mode {
    overflow-x: hidden;
}

body.focus-mode .site-header,
body.focus-mode .event-top-header,
body.focus-mode .video-wrapper,
body.focus-mode .event-details-panel {
    filter: blur(8px) grayscale(50%);
    opacity: 0.3;
    pointer-events: none;
}

/* --- ПЛАВАЮЩАЯ КНОПКА (FAB) --- */
.fab-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.6);
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    animation: fab-pulse 2s infinite;
}

.fab-btn:active {
    transform: scale(0.95);
}

.fab-btn.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

/* Активное состояние FAB (Зеленый) */
.fab-btn.active-state {
    background: var(--success);
    box-shadow: 0 5px 20px rgba(0, 184, 148, 0.6);
    transform: scale(1.05);
}

.fab-btn.active-state:active {
    transform: scale(0.95);
}

/* Скрываем на ПК */
@media (min-width: 901px) {
    .fab-btn {
        display: none;
    }
}

@media (max-width: 900px) {

    /* Когда на body висит класс .focus-mode (выбрано место),
       мы полностью убираем видео из потока на мобильных.
    */
    body.focus-mode .site-header,
    body.focus-mode .event-top-header,
    body.focus-mode .video-wrapper,
    body.focus-mode .event-details-panel {
        display: none !important;
    }
}

body.focus-mode .details-text {
    display: none !important;
}

/* --- Search Modal --- */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 9, 11, 0.85); /* Zinc-950 / 85% */
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: flex-start; /* Top aligned usually looks better for search */
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
}

.search-panel {
    background: #18181b; /* Zinc-900 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: block; /* Ensure panel is visible */
}

.search-modal.active .search-panel {
    transform: translateY(0) scale(1);
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.search-title {
    color: #e4e4e7;
    font-size: 1.1rem;
    font-weight: 600;
}

.search-close-btn {
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.search-close-btn:hover {
    color: #fff;
}

.search-input-container {
    position: relative;
}

.search-icon-marker {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    font-size: 1.1rem;
}

.search-input-field {
    width: 100%;
    background: #27272a; /* Zinc-800 */
    border: 1px solid #3f3f46;
    border-radius: 12px;
    padding: 16px 16px 16px 48px;
    font-size: 1.1rem;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.search-input-field:focus {
    border-color: var(--accent, #8b5cf6);
    background: #27272a;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.search-hints {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: #71717a;
}

.search-shortcut {
    font-family: monospace;
    font-size: 0.75rem;
    color: #d4d4d8;
}

@media (max-width: 768px) {
    .hint-esc {
        display: none;
    }
}

/* --- SVG Icons --- */
.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    vertical-align: middle;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

/* ======================================================= */
/* 10. ФУТЕР САЙТА (FOOTER)                                */
/* ======================================================= */
.site-footer {
    margin-top: auto;
    padding: 30px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(9, 9, 11, 0.6);
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #71717a; /* Zinc-500 — subtle */
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #a1a1aa; /* Zinc-400 — slightly brighter on hover */
}

.footer-copy {
    color: #52525b; /* Zinc-600 — very muted */
    font-size: 0.75rem;
    margin: 0;
}

.footer-entity {
    color: #3f3f46; /* Zinc-700 — barely visible, maximum discretion */
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    margin: 0;
}

/* ======================================================= */
/* 11. ЮРИДИЧЕСКИЕ СТРАНИЦЫ (LEGAL PAGES)                  */
/* ======================================================= */
.legal-page {
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 800px;
}

.legal-page-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.legal-updated {
    text-align: center;
    color: #52525b;
    font-size: 0.8rem;
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #d4d4d8; /* Zinc-300 */
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-section p {
    color: #a1a1aa; /* Zinc-400 */
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.legal-list li {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
}

.legal-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #52525b;
}

/* Company data — intentionally muted to be discreet */
.legal-entity-muted {
    color: #52525b; /* Zinc-600 — very low contrast, blends in */
    font-size: 0.88rem;
}

.legal-entity-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 12px 0;
}

.legal-entity-block p {
    margin-bottom: 4px;
    color: #71717a;
    font-size: 0.85rem;
}

.legal-label {
    color: #52525b;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .legal-page-title {
        font-size: 1.6rem;
    }
    
    .footer-links {
        gap: 12px;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
}

/* ======================================================= */
/* SINGLE-PAGE MODE                                        */
/* Remove class "single-page-mode" from <body> to restore  */
/* the full multi-page navigation with header.             */
/* ======================================================= */
body.single-page-mode .site-header {
    display: none !important;
}

body.single-page-mode .main-content {
    padding-top: 10px;
}

/* Hero-style event title block (replaces header visually) */
.event-hero-header {
    text-align: center;
    padding: 32px 20px 24px;
    margin-bottom: 28px;
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.event-hero-header .event-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
}

.event-hero-header .event-hero-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.event-hero-header .event-hero-venue {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .event-hero-header .event-hero-title {
        font-size: 1.6rem;
    }
    .event-hero-header .event-hero-date {
        font-size: 0.95rem;
    }
}