/* =====================================================
   PRIDE EVENTS 2024 - Event Page
   Individual event detail page styles
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Allow selection only in form inputs */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent pull-to-refresh on the whole page */
html, body {
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

/* Form isolation - prevent any scroll-triggered navigation */
.event-form {
    overscroll-behavior: contain;
    touch-action: pan-y pinch-zoom;
}

.event-form input {
    touch-action: manipulation;
}

:root {
    --black: #1a1a1a;
    --white: #fff;
    --gray: #f5f5f5;
    --accent: #B91C1C;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--black);
    background: var(--white);
    min-height: 100vh;
    cursor: none;
    overflow-x: hidden;
    overflow-y: auto;
}

/* === Custom Cursor (Navigation style with arrows) === */
.cursor {
    position: fixed;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    /* Only transition size/opacity, NOT position */
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: transparent;
    will-change: left, top;
}

.cursor::before,
.cursor::after {
    content: '';
    width: 8px;
    height: 8px;
    border-left: 1.5px solid rgba(255,255,255,0.8);
    border-top: 1.5px solid rgba(255,255,255,0.8);
}

.cursor::before {
    transform: rotate(45deg) translateY(2px);
}

.cursor::after {
    transform: rotate(-135deg) translateY(2px);
}

.cursor-follower {
    display: none;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
}

.cursor.click {
    transform: translate(-50%, -50%) scale(0.9);
}

@media (hover: none) and (pointer: coarse), (max-width: 768px) {
    .cursor, .cursor-follower { display: none !important; }
    body { cursor: auto; }
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 45%; /* Start from right column */
    right: 0;
    z-index: 9000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.header-left, .header-center, .header-right {
    flex: 1;
}

.header-center {
    display: flex;
    justify-content: center;
}

.header-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.header-left .logo {
    padding-left: 0;
}

.logo:hover {
    opacity: 0.7;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    transition: color 0.3s;
}

.logo-img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1); /* Make logo white */
}

/* About Toggle Button */
.about-toggle {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.about-toggle:hover {
    opacity: 0.6;
}

/* Back link style */
.back-link {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.6;
}

/* Header category in center */
.header-category {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

/* Back button style (legacy) */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    padding: 0;
    border: none;
    background: none;
    transition: opacity 0.3s, transform 0.3s;
}

.back-arrow {
    font-size: 18px;
    transition: transform 0.3s;
}

.back-text {
    text-transform: uppercase;
}

.back-btn:hover {
    opacity: 0.7;
}

.back-btn:hover .back-arrow {
    transform: translateX(-3px);
}

/* === INDEX Toggle Button (Cannes Lions style) === */
.index-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer !important;
    transition: opacity 0.3s;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.index-toggle span::after {
    content: ' ▼';
    font-size: 8px;
    margin-left: 4px;
    opacity: 0.7;
    transition: transform 0.3s;
}

.index-toggle.active span::after {
    transform: rotate(180deg);
}

.index-toggle:hover {
    opacity: 0.6;
}

/* === Index Dropdown (Cannes Lions style) === */
.index-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(17, 17, 17, 0.98);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.index-dropdown.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Menu open state - white header text */
body.menu-open .header .logo-text,
body.menu-open .header .index-toggle,
body.menu-open .header .about-toggle,
body.menu-open .header .nav-link {
    color: #fff !important;
}

body.menu-open .header .logo-img {
    filter: brightness(0) invert(1);
}

.index-dropdown-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
}

.index-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 3rem;
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.index-dropdown.open .index-item {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered animation */
.index-dropdown.open .index-item:nth-child(1) { transition-delay: 0.05s; }
.index-dropdown.open .index-item:nth-child(2) { transition-delay: 0.1s; }
.index-dropdown.open .index-item:nth-child(3) { transition-delay: 0.15s; }
.index-dropdown.open .index-item:nth-child(4) { transition-delay: 0.2s; }
.index-dropdown.open .index-item:nth-child(5) { transition-delay: 0.25s; }
.index-dropdown.open .index-item:nth-child(6) { transition-delay: 0.3s; }
.index-dropdown.open .index-item:nth-child(7) { transition-delay: 0.35s; }
.index-dropdown.open .index-item:nth-child(8) { transition-delay: 0.4s; }
.index-dropdown.open .index-item:nth-child(9) { transition-delay: 0.45s; }

.index-item:hover,
.index-item.active {
    color: rgba(255,255,255,1);
}

.index-num {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.1em;
    min-width: 30px;
}

.index-name {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.index-back {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.index-back .index-name {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Close button for dropdown */
.index-dropdown::before {
    content: '×';
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 32px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: color 0.3s;
}

.index-dropdown:hover::before {
    color: rgba(255,255,255,1);
}

@media (max-width: 768px) {
    .index-name {
        font-size: 20px;
    }

    .index-item {
        padding: 1rem 2rem;
        gap: 1rem;
    }

    .index-dropdown::before {
        top: 15px;
        right: 20px;
    }
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--text-color);
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
}

.lang-switch {
    display: flex;
    gap: 0.75rem;
}

.lang {
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.lang.active {
    border-color: rgba(255,255,255,0.4);
}

.lang:hover {
    background: rgba(255,255,255,0.1);
}

/* === Event Page - Split Layout === */
.event-page {
    position: relative;
    min-height: auto; /* Allow content to determine height for sticky to work */
    display: grid;
    grid-template-columns: 45% 55%;
    background: linear-gradient(
        to bottom,
        var(--event-color, #f5f5f5) 0%,
        var(--event-color, #f5f5f5) 30%,
        color-mix(in srgb, var(--event-color, #f5f5f5) 70%, #000) 70%,
        color-mix(in srgb, var(--event-color, #f5f5f5) 40%, #000) 100%
    );
    background-attachment: fixed;
}

/* === Hero Section (Left Side - Image) === */
.event-hero {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    align-self: start; /* Required for sticky in grid */
}

.event-hero-bg {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
}

.event-hero-image {
    position: relative;
    z-index: 1;
    max-width: 60%;
    max-height: max-content;
    perspective: 1000px;
}

/* 3D Card Container */
.event-hero-image img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.1);
}

/* Video styles */
.event-hero-image video {
    max-width: 100%;
    height: 90vh !important;
    width: auto;
    object-fit: contain;
    border-radius: 15px !important;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.1);
}

/* VK Video iframe styles */
.event-hero-image iframe {
    max-width: 100%;
    height: 85vh;
    width: auto;
    min-width: 325px;
    aspect-ratio: 325 / 646;
    border-radius: 12px;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.1);
}

/* Glare overlay - created dynamically by JS HeroTiltEffect */

/* Градиентный оверлей снизу изображения */
.event-hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(
        to top,
        var(--event-color, #f5f5f5) 0%,
        transparent 100%
    );
    border-radius: 0 0 12px 12px;
    pointer-events: none;
    z-index: 2;
}

.event-hero-overlay {
    display: none;
}

/* === Hero Caption - подпись внизу по центру === */
.event-hero-caption {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.7);
    text-align: center;
    z-index: 20;
}

/* === Event Content (Right Side - Text) === */
.event-content {
    position: relative;
    z-index: 10;
    background: transparent;
    min-height: auto; /* Allow natural height for sticky to work */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 6rem 5rem 4rem 3rem;
    padding-bottom: 120px; /* Extra space for footer */
}

.event-container {
    max-width: 600px;
}

/* === Text Colors - Default white for dark backgrounds === */
.event-page {
    --text-color: #fff;
    --text-muted: rgba(255,255,255,0.75);
    --text-accent: rgba(255,255,255,0.95);
}

/* === Dark text for light backgrounds === */
.event-page.light-bg {
    --text-color: #1a1a1a;
    --text-muted: rgba(26,26,26,0.7);
    --text-accent: rgba(26,26,26,0.9);
}

.event-page.light-bg .event-category {
    border-color: rgba(26,26,26,0.3);
    background: rgba(0,0,0,0.05);
}

.event-page.light-bg .event-meta {
    border-color: rgba(26,26,26,0.15);
}

.event-page.light-bg .meta-icon {
    background: rgba(0,0,0,0.08);
}

.event-page.light-bg .event-features {
    background: rgba(0,0,0,0.05);
    border-color: rgba(26,26,26,0.1);
}

.event-page.light-bg .feature-list li {
    border-color: rgba(26,26,26,0.1);
}

.event-page.light-bg .event-highlight {
    background: rgba(0,0,0,0.08);
    border-color: rgba(26,26,26,0.15);
}

.event-page.light-bg .event-bonus {
    background: rgba(0,0,0,0.06);
    border-color: rgba(26,26,26,0.1);
}

.event-page.light-bg .event-gift {
    background: rgba(0,0,0,0.06);
    border-color: rgba(26,26,26,0.1);
}

.event-page.light-bg .event-form {
    background: rgba(0,0,0,0.05);
    border-color: rgba(26,26,26,0.1);
}

.event-page.light-bg .form-group input {
    background: rgba(255,255,255,0.5);
    border-color: rgba(26,26,26,0.2);
    color: #1a1a1a;
}

.event-page.light-bg .form-group input::placeholder {
    color: rgba(26,26,26,0.4);
}

.event-page.light-bg .form-group input:focus {
    background: rgba(255,255,255,0.7);
    border-color: rgba(26,26,26,0.4);
}

.event-page.light-bg .submit-btn {
    background: rgba(26,26,26,0.9);
    color: #fff;
}

.event-page.light-bg .submit-btn:hover {
    background: #1a1a1a;
}

.event-page.light-bg .form-note a {
    color: #1a1a1a;
}

.event-page.light-bg .event-footer {
    /* Glassmorphism для светлого фона */
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    border-left: 1px solid rgba(26, 26, 26, 0.05);
    box-shadow:
        0 -4px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.event-page.light-bg .event-tagline {
    border-color: rgba(26,26,26,0.15);
}

.event-page.light-bg .cta-notice {
    background: rgba(0,0,0,0.06);
}

/* Header on light backgrounds */
.event-page.light-bg .header {
    background: rgba(0,0,0,0.05);
}

.event-page.light-bg .logo-img {
    filter: none; /* Keep logo dark */
}

.event-page.light-bg .logo-text {
    color: rgba(26,26,26,0.9);
}

.event-page.light-bg .header-tagline {
    color: rgba(26,26,26,0.8);
}

.event-page.light-bg .index-toggle {
    color: rgba(26,26,26,0.9);
}

.event-page.light-bg .about-toggle {
    color: rgba(26,26,26,0.9);
}

/* === Event Header === */
.event-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.event-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border: 1px solid var(--text-muted);
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.1);
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.event-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* === Event Meta === */
.event-meta {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meta-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: var(--text-color);
}

.meta-icon svg {
    stroke: var(--text-color);
}

.meta-text {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.meta-value.price {
    color: var(--text-color);
    font-size: 1.25rem;
}

/* === Event Description === */
.event-description {
    margin-bottom: 3rem;
}

.event-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: left;
    margin-bottom: 2rem;
}

.event-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: left;
    margin-bottom: 1.5rem;
}

.event-features {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.15);
}

.event-features h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.feature-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-list span:last-child {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* === Event Video (Vimeo/YouTube embed) === */
.event-video {
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1rem;
    object-fit: cover;
}

.event-highlight {
    background: rgba(255,255,255,0.15);
    color: var(--text-color);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.event-highlight p {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: left;
}

.event-note {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: left;
    font-style: italic;
}

/* === Bonus Section (for adults) === */
.event-bonus {
    background: rgba(0,0,0,0.2);
    color: var(--text-color);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.event-bonus h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.bonus-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.bonus-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.bonus-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.bonus-note {
    opacity: 0.7;
    font-style: italic;
}

.event-gift {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    background: rgba(255,255,255,0.15);
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.gift-icon {
    font-size: 1.75rem;
}

.event-gift p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.event-tagline {
    text-align: left;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.event-tagline p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    font-style: italic;
}

/* === CTA Section === */
.event-cta {
    margin-top: 2rem;
}

.cta-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.1);
    border-radius: 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.notice-icon {
    font-size: 1.25rem;
}

.cta-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.5rem 3rem;
    background: rgba(255,255,255,0.95);
    color: var(--black);
    text-decoration: none;
    border-radius: 3rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: var(--white);
}

.cta-phone {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.cta-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.7;
}

/* === Registration Form === */
.event-form {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.15);
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.form-group .required {
    color: #ff6b6b;
}

.form-group input {
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.5rem;
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}

.submit-btn {
    margin-top: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.95);
    color: var(--black);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-note {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.form-note a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.form-note a:hover {
    opacity: 0.8;
}

/* Form success state */
.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-success-text {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* === Decorative Elements === */
.event-decor {
    display: none; /* Hide decorative elements for cleaner look */
}

/* === Footer Navigation === */
.event-footer {
    position: fixed;
    bottom: 0;
    left: 45%; /* Start from right column */
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    /* Glassmorphism (матовое стекло) */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 -4px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    z-index: 100;
}

.nav-prev,
.nav-next {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--footer-text, #fff);
    transition: opacity 0.3s;
}

.nav-prev:hover,
.nav-next:hover {
    opacity: 0.7;
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--footer-text, #fff);
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.nav-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--footer-text, #fff);
}

/* === About Modal (Cannes Style - Dark) === */
.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    color: #fff;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.about-modal.active,
.about-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.about-close {
    position: absolute;
    top: 40px;
    right: 50px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer !important;
    opacity: 0.8;
    transition: transform 0.3s, opacity 0.3s;
}

.about-close:hover {
    transform: scale(1.1);
    opacity: 1;
}

.about-content {
    max-width: 800px;
    width: 80%;
    text-align: center;
}

.about-block {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
}

.about-title {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #666;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.about-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 3vw, 32px);
    line-height: 1.4;
    color: #fff;
    margin-bottom: 1rem;
}

.about-credits {
    list-style: none;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 2;
}

.about-credits li span {
    color: #666;
    margin-right: 10px;
}

.about-footer {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #444;
}

.about-footer p {
    font-size: 10px;
    opacity: 0.6;
}

/* Legacy support for .about-inner */
.about-inner {
    background: transparent;
    max-width: 800px;
    width: 80%;
    padding: 0;
    position: relative;
    text-align: center;
}

/* === Page Transition === */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.page-transition.active {
    pointer-events: auto;
}

.page-transition-bg {
    position: absolute;
    inset: 0;
    transform: scaleY(0);
    transform-origin: bottom;
}

.page-transition.entering .page-transition-bg {
    animation: slideUp 0.6s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.page-transition.leaving .page-transition-bg {
    animation: slideDown 0.6s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes slideUp {
    0% { transform: scaleY(0); transform-origin: bottom; }
    100% { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes slideDown {
    0% { transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: top; }
}

/* === Responsive === */
@media (max-width: 1024px) {
    .event-page {
        grid-template-columns: 40% 60%;
    }

    .header {
        left: 40%;
    }

    .event-footer {
        left: 40%;
    }

    .event-content {
        padding: 4rem 3rem 4rem 2rem;
    }
}

@media (max-width: 768px) {
    /* Показываем нативный курсор на мобильных */
    body,
    body * {
        cursor: auto !important;
    }

    /* Скрываем кастомный курсор */
    #custom-cursor {
        display: none !important;
    }

    /* Разрешаем вертикальный скролл */
    html, body {
        overflow-x: hidden;
        overflow-y: auto !important;
        height: auto !important;
        position: relative !important;
        -webkit-overflow-scrolling: touch;
    }

    .event-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        min-height: auto;
        display: block;
        overflow: visible !important;
        overflow-y: auto !important;
        position: relative !important;
        height: auto !important;
    }

    .header {
        left: 0;
        padding: 1rem 1.5rem;
        background: rgba(0,0,0,0.3);
    }

    .header-center {
        display: none;
    }

    .header-right {
        gap: 1rem;
    }

    .event-hero {
        position: relative;
        height: 65vh;
        min-height: 280px;
        padding: 3rem 0 0 0;
        overflow: hidden;
    }

    .event-hero-image {
        width: 100%;
        max-width: none;
        max-height: none;
        height: 100%;
        overflow: hidden;
    }

    .event-hero-image img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: top center;
        transform: none !important; /* Disable tilt on mobile */
        border-radius: 0;
    }

    .event-hero-image video {
        width: 100%;
        height: 100% !important;
        max-height: none;
        object-fit: cover;
        object-position: top center;
        transform: none !important;
        border-radius: 0 !important;
    }

    /* На мобильных убираем градиент с hero (первый экран) */
    .event-hero-image::after {
        display: none;
    }

    .event-content {
        padding: 1rem 1.5rem 8rem;
        position: relative;
        /* Градиентный фон на втором экране (мобильный) */
        background: linear-gradient(
            to bottom,
            var(--event-color, #f5f5f5) 0%,
            var(--event-color, #f5f5f5) 30%,
            color-mix(in srgb, var(--event-color, #f5f5f5) 70%, #000) 70%,
            color-mix(in srgb, var(--event-color, #f5f5f5) 40%, #000) 100%
        );
    }

    /* Плавный переход от hero к контенту */
    .event-content::before {
        content: '';
        position: absolute;
        top: -60px;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            var(--event-color, #f5f5f5) 100%
        );
        pointer-events: none;
        z-index: 10;
    }

    .event-container {
        margin-top: -30px;
        z-index: 99;
        max-width: 100%;
    }

    /* Ensure hero doesn't block scroll */
    .event-hero {
        position: relative !important;
        overflow: visible !important;
    }

    .event-meta {
        flex-direction: column;
        gap: 1.25rem;
        align-items: flex-start;
    }

    .event-features {
        padding: 1.5rem;
    }

    .event-highlight {
        padding: 1.25rem;
    }

    .event-cta {
        padding: 1.5rem;
    }

    .cta-button {
        width: 100%;
    }

    .event-footer {
        left: 0;
        padding: 1rem 1.5rem;
        /* Скрыт изначально на мобильных */
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                    opacity 0.4s ease;
    }

    /* Показываем при скролле */
    .event-footer.visible {
        transform: translateY(0);
        opacity: 1;
    }

    .event-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* === Page Load Animation === */
body {
    opacity: 0;
    animation: pageLoad 0.6s ease forwards 0.1s;
}

@keyframes pageLoad {
    to {
        opacity: 1;
    }
}

/* ==============================================
   SMOOTH ANIMATIONS - Приятные плавные анимации
   ============================================== */

/* Entrance animations with staggered delays */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes softPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Header entrance */
.header {
    animation: fadeSlideIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.2s;
    opacity: 0;
}

/* Hero image entrance */
.event-hero-image {
    animation: fadeScale 1s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.3s;
    opacity: 0;
}

/* Hero image - tilt effect controlled by JS */
.event-hero-image img {
    /* gentleFloat disabled - using 3D tilt effect instead */
}

/* Event header entrance */
.event-category {
    animation: fadeSlideUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.4s;
    opacity: 0;
}

.event-title {
    animation: fadeSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.5s;
    opacity: 0;
}

.event-subtitle {
    animation: fadeSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.6s;
    opacity: 0;
}

/* Meta items staggered entrance */
.event-meta-item:nth-child(1) {
    animation: fadeSlideUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.7s;
    opacity: 0;
}
.event-meta-item:nth-child(2) {
    animation: fadeSlideUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.8s;
    opacity: 0;
}
.event-meta-item:nth-child(3) {
    animation: fadeSlideUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.9s;
    opacity: 0;
}

/* Meta icon hover effect */
.meta-icon {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.event-meta-item:hover .meta-icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(255,255,255,0.25);
}

/* Description sections entrance */
.event-intro {
    animation: fadeSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards 1s;
    opacity: 0;
}

.event-features {
    animation: fadeSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards 1.1s;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}

.event-features:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Feature list items staggered */
.feature-list li {
    opacity: 0;
    animation: fadeSlideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    transition: all 0.3s ease;
}

.feature-list li:nth-child(1) { animation-delay: 1.2s; }
.feature-list li:nth-child(2) { animation-delay: 1.3s; }
.feature-list li:nth-child(3) { animation-delay: 1.4s; }
.feature-list li:nth-child(4) { animation-delay: 1.5s; }
.feature-list li:nth-child(5) { animation-delay: 1.6s; }
.feature-list li:nth-child(6) { animation-delay: 1.7s; }
.feature-list li:nth-child(7) { animation-delay: 1.8s; }
.feature-list li:nth-child(8) { animation-delay: 1.9s; }

.feature-list li:hover {
    background: rgba(255,255,255,0.05);
    padding-left: 0.5rem;
}

/* Feature icon animation */
.feature-icon {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-block;
}

.feature-list li:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Video block */
.event-video {
    animation: fadeSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards 1.25s;
    opacity: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-video:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Highlight block */
.event-highlight {
    animation: fadeSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards 1.35s;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.event-highlight:hover {
    transform: translateX(5px);
    background: rgba(255,255,255,0.2);
}

/* Bonus section */
.event-bonus {
    animation: fadeSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards 1.4s;
    opacity: 0;
    transition: all 0.4s ease;
}

.event-bonus:hover {
    transform: scale(1.02);
    background: rgba(0,0,0,0.25);
}

.bonus-icon {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.event-bonus:hover .bonus-icon {
    transform: scale(1.3) rotate(-15deg);
}

/* Gift section */
.event-gift {
    animation: fadeSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards 1.2s;
    opacity: 0;
    transition: all 0.4s ease;
}

.event-gift:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gift-icon {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.event-gift:hover .gift-icon {
    transform: scale(1.2) rotate(15deg);
}

/* Registration Form animations */
.event-form {
    animation: fadeSlideUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards 1.5s;
    opacity: 0;
    transition: all 0.4s ease;
}

.event-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.form-group {
    opacity: 0;
    animation: fadeSlideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.form-group:nth-child(1) { animation-delay: 1.6s; }
.form-group:nth-child(2) { animation-delay: 1.7s; }
.form-group:nth-child(3) { animation-delay: 1.8s; }

/* Input focus animation */
.form-group input {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-group input:focus {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Submit button */
.submit-btn {
    animation: fadeSlideUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards 1.9s;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::after {
    left: 100%;
}

/* Footer navigation */
.event-footer {
    animation: fadeSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.5s;
    opacity: 0;
}

.nav-prev, .nav-next {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-prev:hover {
    transform: translateX(-5px);
}

.nav-next:hover {
    transform: translateX(5px);
}

/* === Cursor Arrow States for Footer Navigation === */
.cursor.cursor-arrow-left,
.cursor.cursor-arrow-right {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.8);
}

.cursor.cursor-arrow-left::before,
.cursor.cursor-arrow-left::after,
.cursor.cursor-arrow-right::before,
.cursor.cursor-arrow-right::after {
    display: none;
}

.cursor.cursor-arrow-left::before,
.cursor.cursor-arrow-right::before {
    display: block;
    content: '';
    width: 12px;
    height: 12px;
    border: none;
    border-left: 2px solid rgba(255,255,255,0.9);
    border-bottom: 2px solid rgba(255,255,255,0.9);
}

.cursor.cursor-arrow-left::before {
    transform: rotate(45deg);
}

.cursor.cursor-arrow-right::before {
    transform: rotate(-135deg);
}

/* Tagline */
.event-tagline {
    animation: fadeSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards 1.6s;
    opacity: 0;
}

/* Note */
.event-note {
    animation: fadeSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards 1.4s;
    opacity: 0;
}

/* Scroll indicator animation for mobile */
@keyframes scrollHint {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

/* Subtle background animation */
.event-hero-bg {
    position: relative;
    overflow: hidden;
}

.event-hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    animation: bgRotate 30s linear infinite;
}

@keyframes bgRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Selection === */
::selection {
    background: rgba(185, 28, 28, 0.2);
}

/* === Card Transition Animation (3D flip) === */
.card-transition-wrapper {
    pointer-events: none;
}

.card-transition-clone {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-transition-clone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
