/* ==========================================================================
   POLZA PRO × Мульти Бум — Landing Page Styles
   Color palette derived from the MultiBoom logo
   ========================================================================== */

:root {
    --purple:       #5B4B9E;
    --purple-dark:  #3D2E7C;
    --purple-deep:  #2C1E66;
    --purple-light: #7B6BBE;
    --pink:         #FF4B8B;
    --pink-light:   #FF7EB0;
    --orange:       #FF8C2B;
    --orange-light: #FFB347;
    --cyan:         #00C8F0;
    --cyan-light:   #5FE0FF;
    --green:        #A8E000;
    --green-light:  #C5F540;
    --white:        #FFFFFF;
    --white-soft:   rgba(255,255,255,0.92);
    --text:         #FFFFFF;
    --text-muted:   rgba(255,255,255,0.7);
    --shadow:       rgba(44,30,102,0.35);

    --font:         'Nunito', system-ui, -apple-system, sans-serif;
    --radius:       16px;
    --radius-sm:    10px;
    --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h:     88px;
}

/* ===== RESET ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--purple);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    caret-color: transparent;
}
input, textarea, [contenteditable="true"] { caret-color: auto; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul,ol { list-style: none; }

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   HEADER — Sticky
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(61,46,124,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background var(--transition), box-shadow var(--transition);
}
.header--scrolled {
    background: rgba(44,30,102,0.95);
    box-shadow: 0 4px 30px var(--shadow);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.header__brand-slot {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 16px;
}
.header__logo-link {
    display: flex;
    align-items: center;
    max-width: 100%;
}
.header__logo-img {
    height: clamp(58px, 9vw, 84px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    border-radius: 6px;
}
.header__x {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--orange);
}

/* POLZA PRO text logo */
.logo-text {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.logo-text--polza {
    color: var(--white);
}
.logo-text__accent {
    color: var(--green);
    margin-left: 3px;
}
.logo-text--large {
    font-size: 2.8rem;
}

/* NAV */
.header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.header__link {
    padding: 14px 22px;
    font-size: 1.18rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.header__link:hover,
.header__link.active {
    background: rgba(255,255,255,0.12);
    color: var(--cyan-light);
}

/* BURGER — classic 3-line / X toggle */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
    transition: background var(--transition);
}
.burger:hover { background: rgba(255,255,255,0.15); }
.burger span {
    position: absolute;
    left: 50%;
    display: block;
    width: 20px;
    height: 2px;
    margin-left: -10px;
    background: var(--white);
    border-radius: 1px;
    transition: transform 0.35s ease, opacity 0.25s ease;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* NAV OVERLAY */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: linear-gradient(160deg, var(--purple-deep) 0%, var(--purple) 40%, var(--purple-light) 100%);
    padding-top: var(--header-h);
    overflow: hidden;
}

/* Decorative elements */
.hero__decor { position: absolute; inset: 0; pointer-events: none; }
.hero__circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}
.hero__circle--1 {
    width: 400px; height: 400px;
    background: var(--pink);
    top: -80px; right: -100px;
    animation: float 8s ease-in-out infinite;
}
.hero__circle--2 {
    width: 250px; height: 250px;
    background: var(--cyan);
    bottom: 10%; left: -50px;
    animation: float 10s ease-in-out infinite 2s;
}
.hero__circle--3 {
    width: 180px; height: 180px;
    background: var(--green);
    top: 30%; left: 15%;
    animation: float 7s ease-in-out infinite 4s;
}

.hero__star {
    position: absolute;
    font-size: 1.5rem;
    animation: twinkle 3s ease-in-out infinite;
}
.hero__star--1 { top: 20%; right: 15%; color: var(--orange); animation-delay: 0s; }
.hero__star--2 { top: 40%; left: 10%; color: var(--pink); animation-delay: 1s; }
.hero__star--3 { bottom: 30%; right: 25%; color: var(--cyan); animation-delay: 0.5s; font-size: 1rem; }
.hero__star--4 { top: 15%; left: 30%; color: var(--green); animation-delay: 1.5s; font-size: 1.2rem; }

.hero__confetti {
    position: absolute;
    width: 8px;
    height: 20px;
    border-radius: 3px;
}
.hero__confetti--1 {
    background: var(--pink);
    top: 25%; right: 20%;
    animation: confetti-fall 5s linear infinite;
    transform: rotate(15deg);
}
.hero__confetti--2 {
    background: var(--orange);
    top: 15%; left: 25%;
    animation: confetti-fall 6s linear infinite 1s;
    transform: rotate(-20deg);
}
.hero__confetti--3 {
    background: var(--green);
    top: 20%; right: 35%;
    animation: confetti-fall 4.5s linear infinite 2s;
    transform: rotate(30deg);
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Компактно: три блока подряд (заголовок → слоган → программы), одинаковый зазор — без растягивания на весь экран */
    gap: clamp(0.45rem, 1.7vh, 1.05rem);
    position: relative;
    z-index: 2;
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-h));
    padding: 60px 24px 80px;
}
.hero__head {
    width: 100%;
    flex-shrink: 0;
}
.hero__cta {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Доп. воздух только между слоганом и списком программ (поверх gap у .hero__content) */
    margin-top: clamp(0.5rem, 1.9vh, 1.45rem);
}
.hero__title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.hero__title--marathon {
    font-size: clamp(1.85rem, 4.5vw, 3.25rem);
    margin-bottom: 16px;
    letter-spacing: 0.03em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.28em 0.45em;
    width: 100%;
    max-width: 100%;
}
.hero__marathon-word {
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero__title--marathon .hero__title-logo {
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    height: clamp(4.8rem, 14vw, 8.6rem);
    width: auto;
    aspect-ratio: 260 / 80;
    max-width: min(98vw, 56rem);
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.32));
}
.hero__strapline {
    flex-shrink: 0;
    color: var(--white);
    font-weight: 800;
    font-size: clamp(1.4rem, 3.6vw, 2.1rem);
    letter-spacing: 0.06em;
    margin: 0;
    max-width: min(100%, 36rem);
    line-height: 1.25;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}
.hero__taglines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.8vw, 14px);
    margin: 0 auto 32px;
    max-width: 520px;
    font-weight: 800;
    font-size: clamp(0.95rem, 2.4vw, 1.35rem);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hero__tagline {
    display: block;
    color: var(--white-soft);
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.hero__tagline:nth-child(1) {
    color: var(--pink-light);
}
.hero__tagline:nth-child(2) {
    color: var(--orange-light);
}
.hero__tagline:nth-child(3) {
    color: var(--cyan-light);
}
.hero__tagline:nth-child(4) {
    color: var(--green-light);
}
.hero__tagline:nth-child(5) {
    color: #FFD63B;
}
.hero__tagline:nth-child(6) {
    color: #FF8AE0;
}
.hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
    font-weight: 600;
}

.hero__wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 1;
}
.hero__wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ===== BUTTON ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn--primary {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: var(--white);
    box-shadow: 0 6px 30px rgba(255,75,139,0.35);
}
.btn--primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 40px rgba(255,75,139,0.45);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
    padding: 100px 0 140px;
    position: relative;
    background: var(--purple);
}
.section__wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
    pointer-events: none;
}
.section__wave svg {
    display: block;
    width: 100%;
    height: 80px;
}
.section--dark {
    background: var(--purple-dark);
}

/* Wave dividers between sections */
.wave-divider {
    position: relative;
    width: 100%;
    height: 70px;
    overflow: hidden;
    line-height: 0;
}
.wave-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}
.wave-divider--dark-to-light { background: var(--purple); }
.wave-divider--light-to-dark { background: var(--purple-dark); }
.section__title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 56px;
    position: relative;
}
.section__title-icon {
    display: none;
}
.section__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--cyan), var(--green));
    margin: 16px auto 0;
}
.section__empty {
    text-align: center;
    padding: 40px 20px;
}

/* Empty state */
.empty-state {
    background: rgba(255,255,255,0.06);
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 50px 30px;
    max-width: 500px;
    margin: 0 auto;
}
.empty-state__icon {
    display: none;
}
.empty-state p {
    font-size: 1.1rem;
    font-weight: 700;
}
.empty-state__sub {
    color: var(--text-muted);
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-top: 8px;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about__content {
    max-width: 900px;
    margin: 0 auto 48px;
}
.about__text {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--white-soft);
}
.about__lead {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.4;
}
.about__text p { margin-bottom: 16px; }
.about__text strong { color: var(--cyan-light); }
.section__subtitle {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--white);
}
/* Splash badge — blob shape like "БУМ" in MultiBoom logo */
.section__hint-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}
.splash-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    animation: splash-bounce 3s ease-in-out infinite;
    cursor: default;
}
.splash-badge__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 16px rgba(91,75,158,0.4));
}
.splash-badge__text {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.3px;
    text-align: center;
}
@keyframes splash-bounce {
    0%, 100% { transform: scale(1) rotate(-1deg); }
    50%      { transform: scale(1.06) rotate(1deg); }
}
.about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-card {
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                background 0.35s ease,
                border-color 0.35s ease;
}
.feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(255,255,255,0.12);
}
.feature-card--pink:hover  { box-shadow: 0 14px 40px rgba(255,75,139,0.35); border-color: var(--pink); }
.feature-card--orange:hover{ box-shadow: 0 14px 40px rgba(255,140,43,0.35); border-color: var(--orange); }
.feature-card--cyan:hover  { box-shadow: 0 14px 40px rgba(0,200,240,0.35);  border-color: var(--cyan); }
.feature-card--green:hover { box-shadow: 0 14px 40px rgba(168,224,0,0.3);   border-color: var(--green); }
.feature-card--pink  { border-top: 3px solid var(--pink);   }
.feature-card--orange{ border-top: 3px solid var(--orange); }
.feature-card--cyan  { border-top: 3px solid var(--cyan);   }
.feature-card--green { border-top: 3px solid var(--green);  }

.feature-card__icon {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-card__star {
    width: clamp(40px, 5vw, 52px);
    height: clamp(40px, 5vw, 52px);
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .feature-card__star {
    transform: rotate(18deg) scale(1.12);
}
.feature-card__star--pink   { color: var(--pink); }
.feature-card__star--orange { color: var(--orange); }
.feature-card__star--cyan   { color: var(--cyan); }
.feature-card__star--green  { color: var(--green); }
.feature-card__star--purple { color: #C07BFF; }
.feature-card__title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.feature-card__text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   PARTICIPANTS / BRANDS
   ========================================================================== */
.brands__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}
.brand-card {
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 24px 16px 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                background 0.35s ease,
                border-color 0.35s ease;
}
.brand-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 20px 50px rgba(0,200,240,0.3);
    background: rgba(255,255,255,0.12);
    border-color: var(--cyan);
}
.brand-card__logo {
    width: 130px;
    height: 130px;
    margin: 0 auto 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease;
}
.brand-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.brand-card:hover .brand-card__logo {
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(0,200,240,0.3);
}
.brand-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: var(--radius-sm);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white);
}
.brand-card__name {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.3;
}
.brand-card__studio {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}
.brand-card__badge {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: 50px;
    color: var(--white);
    letter-spacing: 0.3px;
}

/* Keep old participant-card styles for backwards compat */
.participants__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}
.participant-card {
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                background 0.35s ease,
                border-color 0.35s ease;
}
.participant-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 20px 50px rgba(0,200,240,0.3);
    background: rgba(255,255,255,0.1);
    border-color: var(--cyan);
}
.participant-card__photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--cyan);
}
.participant-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.participant-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
}
.participant-card__name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.participant-card__role {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   LIGHTBOX — Back button
   ========================================================================== */
.lightbox__back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition), transform var(--transition);
}
.lightbox__back:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(-3px);
}

/* ==========================================================================
   VENUE FOLDERS (inside lightbox)
   ========================================================================== */
.lightbox__body--folders {
    padding: 8px 0 16px;
    overflow: visible;
    display: block;
    width: 100%;
}
.venue-folders-carousel {
    position: relative;
    display: flex;
    align-items: stretch;
    padding: 0 44px;
    width: 100%;
    box-sizing: border-box;
}
.venue-folders__viewport {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    padding: 28px 6px 32px;
}
.venue-folders__viewport::-webkit-scrollbar {
    display: none;
}
.venue-folders__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
    transition: background var(--transition), opacity 0.2s ease, transform var(--transition);
}
.venue-folders__nav:hover:not(:disabled) {
    background: rgba(255,255,255,0.24);
}
.venue-folders__nav:disabled {
    opacity: 0.25;
    cursor: default;
}
.venue-folders__nav--prev { left: 4px; }
.venue-folders__nav--next { right: 4px; }
.venue-folders {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: max-content;
}
.venue-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    flex: 0 0 auto;
    width: 220px;
    min-width: 220px;
    max-width: 260px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                background 0.35s ease,
                border-color 0.35s ease;
}
.venue-folder:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 16px 40px rgba(255,140,43,0.35);
    background: rgba(255,255,255,0.12);
    border-color: var(--orange);
}
.venue-folder__icon {
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 10px rgba(255,140,43,0.3));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.venue-folder:hover .venue-folder__icon {
    transform: scale(1.12) translateY(-4px);
}
.venue-folder__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.venue-folder__brand-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
}
.venue-folder__venue-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan-light);
    line-height: 1.3;
}
.venue-folder__venue-logo {
    width: 60px;
    height: 40px;
    object-fit: contain;
    margin-top: 8px;
    border-radius: 6px;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.venue-folder:hover .venue-folder__venue-logo {
    opacity: 1;
}
.venue-folder__badge {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: 50px;
    color: var(--white);
    letter-spacing: 0.3px;
}
.venue-folder__badge--empty {
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
}

/* ==========================================================================
   ALBUM (slider inside venue folder)
   ========================================================================== */
.lightbox__body--album {
    padding: 16px 12px 20px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
}
.album-slider {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    flex: 1;
    min-height: 0;
    position: relative;
    /* Gutter под стрелки: 56px > ширины кнопки (44px) + смещения (8px),
       чтобы они не накладывались на рамку слайда (особенно у видео). */
    padding: 0 56px;
    width: 100%;
    box-sizing: border-box;
}
.album-slider__viewport {
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.28);
    flex: 1;
    min-height: clamp(300px, 52vh, 560px);
    max-height: min(68vh, 600px);
    display: flex;
    flex-direction: column;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.album-slider__track {
    display: flex;
    flex: 1;
    min-height: 0;
    align-items: stretch;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.35, 1);
    will-change: transform;
}
.album-slider__slide {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 16px 20px;
    min-height: 0;
}
.album-slider__slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}
.album-slider__slide--video {
    background: #000;
    border-radius: 10px;
    padding: 0;
}
.album-slider__slide video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
    border-radius: 10px;
    outline: none;
}
.album-slider__video-fallback {
    color: #fff;
    text-decoration: underline;
    padding: 12px;
}
.album-slider__dot--video {
    width: 14px;
    height: 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.35);
}
.album-slider__dot--video.album-slider__dot--active {
    background: var(--orange);
}
.album-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.album-slider__btn:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-50%) scale(1.05);
}
.album-slider__btn--prev { left: 8px; }
.album-slider__btn--next { right: 8px; }
.album-slider__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 4px 0;
}
.album-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}
.album-slider__dot--active {
    background: var(--orange);
    transform: scale(1.15);
}
@media (max-width: 520px) {
    .album-slider__btn {
        width: 38px;
        height: 38px;
    }
    .album-slider__btn--prev { left: 4px; }
    .album-slider__btn--next { right: 4px; }
}

/* ==========================================================================
   LIGHTBOX (photo gallery modal)
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.lightbox[hidden] {
    display: none;
}
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 12, 50, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.lightbox__container {
    position: relative;
    z-index: 1;
    width: 94vw;
    max-width: 900px;
    max-height: 90vh;
    background: linear-gradient(170deg, var(--purple-dark), var(--purple-deep));
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 100px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lightbox.active .lightbox__container {
    transform: scale(1) translateY(0);
}
.lightbox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 16px;
    flex-shrink: 0;
}
.lightbox__info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.lightbox__text {
    flex: 1;
    min-width: 0;
}
.lightbox__title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lightbox__studio {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lightbox__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.lightbox__website {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan-light);
    background: rgba(0,200,240,0.1);
    border-radius: 8px;
    border: 1px solid rgba(0,200,240,0.2);
    transition: background var(--transition), color var(--transition);
}
.lightbox__website:hover {
    background: rgba(0,200,240,0.2);
    color: var(--white);
}
.lightbox__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.lightbox__close:hover {
    background: rgba(255,75,139,0.3);
    transform: rotate(90deg);
}
.lightbox__body {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox__gallery {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lightbox__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    padding: 60px 20px;
}
.lightbox__empty p {
    font-size: 1.1rem;
    font-weight: 700;
}
.lightbox__slides {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}
.lightbox__slides.has-photos {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.lightbox__slide.active {
    opacity: 1;
}
.lightbox__slide img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    z-index: 3;
    transition: background var(--transition), transform var(--transition);
}
.lightbox__nav:hover {
    background: rgba(255,255,255,0.2);
}
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(3px); }
.lightbox__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.lightbox__caption {
    font-size: 0.9rem;
    color: var(--white-soft);
    font-weight: 600;
}
.lightbox__counter {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    background: rgba(255,255,255,0.06);
    padding: 4px 12px;
    border-radius: 50px;
}

/* ==========================================================================
   VENUES
   ========================================================================== */
.venues__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 700px) {
    .venues__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
.venue-card {
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                background 0.35s ease,
                border-color 0.35s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}
.venue-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255,75,139,0.3);
    background: rgba(255,255,255,0.1);
    border-color: var(--pink);
}
.venue-card__logo {
    width: 90px;
    height: 90px;
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
}
.venue-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.venue-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.venue-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.venue-card__name {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}
.venue-card__address {
    color: var(--cyan-light);
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.3;
}
.venue-card__desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.venue-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    background: var(--pink);
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
    width: fit-content;
}
.venue-card__link:hover {
    background: var(--orange);
    transform: scale(1.05);
}

/* ==========================================================================
   EVENTS / POSTER
   ========================================================================== */
.events__timeline {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.event-card {
    display: flex;
    gap: 24px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                background 0.35s ease,
                border-color 0.35s ease;
    align-items: flex-start;
}
.event-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
}
.event-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.event-card:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255,140,43,0.3);
    background: rgba(255,255,255,0.1);
    border-color: var(--orange);
}
.event-card__date {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--pink), var(--orange));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255,75,139,0.3);
}
.event-card__day {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
}
.event-card__month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.9;
}
.event-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.event-card__title {
    font-size: 1.25rem;
    font-weight: 800;
}
.event-card__time,
.event-card__venue {
    font-size: 1rem;
    color: var(--white);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    padding: 6px 14px;
    border-radius: 8px;
    width: fit-content;
}
.event-card__time::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid var(--cyan);
    border-radius: 50%;
    flex-shrink: 0;
}
.event-card__venue::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 12px solid var(--pink);
    flex-shrink: 0;
}
.event-card__address {
    font-size: 0.9rem;
    color: var(--cyan-light);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,200,240,0.08);
    padding: 6px 14px;
    border-radius: 8px;
    width: fit-content;
}
.event-card__address::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--cyan-light);
    border-radius: 3px;
    flex-shrink: 0;
}
.event-card__desc {
    font-size: 0.95rem;
    color: var(--white-soft);
    margin-top: 8px;
    line-height: 1.8;
    white-space: pre-line;
    background: rgba(255,255,255,0.04);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--orange);
}
.event-card__photo {
    flex-shrink: 0;
    width: 168px;
    min-height: 126px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.22);
    overflow: hidden;
    align-self: flex-start;
}
.event-card__photo--filled {
    border-style: solid;
    border-color: rgba(255,255,255,0.12);
}
.event-card__photo-img {
    width: 100%;
    height: 100%;
    min-height: 126px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   CONTACTS
   ========================================================================== */
.contacts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}
.contact-card {
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 24px 22px;
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                background 0.35s ease;
}
.contact-card--email { border-left-color: var(--cyan-light); }
.contact-card--max {
    border-left-color: #8b7cf6;
    background: linear-gradient(145deg, rgba(107,92,230,0.12) 0%, rgba(255,255,255,0.05) 100%);
}
.contact-card--vk {
    border-left-color: #0077ff;
    background: linear-gradient(145deg, rgba(0,119,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}
.contact-card--telegram {
    border-left-color: #2aabee;
    background: linear-gradient(145deg, rgba(42,171,238,0.12) 0%, rgba(255,255,255,0.05) 100%);
}
.contact-card--default { border-left-color: var(--cyan); }
.contact-card__brand {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    background: rgba(255,255,255,0.1);
    color: var(--white-soft);
}
.contact-card--email .contact-card__brand {
    background: linear-gradient(135deg, rgba(78,205,196,0.35), rgba(78,205,196,0.1));
    color: var(--cyan-light);
}
.contact-card--max .contact-card__brand {
    background: linear-gradient(135deg, #6b5ce6, #9b7dff);
    color: #fff;
    box-shadow: 0 4px 14px rgba(107,92,230,0.45);
}
.contact-card--vk .contact-card__brand {
    background: linear-gradient(135deg, #0077ff, #4da3ff);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,119,255,0.4);
}
.contact-card--telegram .contact-card__brand {
    background: linear-gradient(135deg, #2aabee, #229ed9);
    color: #fff;
    box-shadow: 0 4px 14px rgba(42,171,238,0.4);
}
.contact-card__glyph { display: block; }
.contact-card__glyph--vk { width: 26px; height: 26px; }
.contact-card__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}
.contact-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 12px 35px var(--shadow);
}
.contact-card__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-card__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cyan-light);
    word-break: break-word;
    line-height: 1.35;
}
.contact-card--max .contact-card__value { color: #c4b5fd; }
.contact-card--vk .contact-card__value { color: #8ec5ff; }
.contact-card--telegram .contact-card__value { color: #7dd3fc; }
.contact-card--email .contact-card__value { color: var(--cyan-light); }
.contact-card__value:hover {
    text-decoration: underline;
}

.contacts__partners {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.contacts__partners-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.contacts__partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.contacts__organizer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition);
}
.contacts__organizer-link:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.02);
}
.contacts__organizer-link--polza:focus-visible {
    outline: 2px solid var(--cyan-light);
    outline-offset: 4px;
}
.contacts__organizer-logo {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    letter-spacing: 0.02em;
}
.contacts__organizer-logo-img {
    display: block;
    height: clamp(160px, 22vw, 260px);
    width: clamp(160px, 22vw, 260px);
    max-width: 96vw;
    object-fit: cover;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.contacts__x {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--orange);
}
.contacts__partner-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--purple-deep);
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__inner {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.footer__credit {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-30px); }
}
@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(1) rotate(0deg); }
    50%      { opacity: 1;   transform: scale(1.3) rotate(15deg); }
}
@keyframes confetti-fall {
    0%   { transform: translateY(-20px) rotate(0deg);   opacity: 0; }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.8; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,75,139,0.3); }
    50%      { box-shadow: 0 0 20px 4px rgba(255,75,139,0.15); }
}
@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes slide-up {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scale-in {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes underline-grow {
    from { width: 0; }
    to   { width: 80px; }
}

/* Hero content entrance (single layer — avoids nested transform conflicts on refresh) */
.hero__content { animation: slide-up 1s ease-out 0.3s both; }
.hero__subtitle { animation: slide-up 0.9s ease-out 0.9s both; }
.hero__content .btn.animated {
    animation: pulse-glow 3s ease-in-out infinite;
}
.hero__content .btn.animated:hover {
    animation: pulse-glow 3s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(255,75,139,0.45);
}

/* Gradient title underline animation */
.section__title::after {
    animation: underline-grow 0.8s ease-out both;
    background-size: 200% 200%;
}
.section__title.visible::after {
    animation: underline-grow 0.8s ease-out both, gradient-shift 4s ease infinite;
}

/* Card transition override after scroll-reveal finishes */
.done .feature-card,
.done .participant-card,
.done .brand-card,
.done .venue-card,
.done .event-card,
.done .contact-card,
.feature-card.done,
.participant-card.done,
.brand-card.done,
.venue-card.done,
.event-card.done,
.contact-card.done {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                background 0.35s ease,
                border-color 0.35s ease;
}

/* Scroll-reveal */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll.done {
    transition-delay: 0s !important;
}
.animate-on-scroll[style*="--delay: 1"] { transition-delay: 0.12s; }
.animate-on-scroll[style*="--delay: 2"] { transition-delay: 0.24s; }
.animate-on-scroll[style*="--delay: 3"] { transition-delay: 0.36s; }
.animate-on-scroll[style*="--delay: 4"] { transition-delay: 0.48s; }
.animate-on-scroll[style*="--delay: 5"] { transition-delay: 0.60s; }

/* Feature card icon lift on hover */
.feature-card__icon {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .feature-card__icon {
    transform: translateY(-8px) scale(1.15);
}

/* Participant photo glow on hover */
.participant-card__photo {
    transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.participant-card:hover .participant-card__photo {
    border-color: var(--pink);
    box-shadow: 0 0 24px rgba(255,75,139,0.45);
    transform: scale(1.06);
}

/* Event date badge pop on hover */
.event-card__date {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s;
}
.event-card:hover .event-card__date {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(255,75,139,0.4);
}

/* Contact value highlight on card hover */
.contact-card:hover .contact-card__value {
    color: var(--white);
    transition: color 0.3s;
}

/* ==========================================================================
   COOKIE CONSENT
   ========================================================================== */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    padding: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    pointer-events: none;
}
.cookie-consent__card {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    background: rgba(44,30,102,0.96);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.36);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.cookie-consent__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 900;
    font-family: Georgia, serif;
    box-shadow: 0 8px 24px rgba(255,75,139,0.35);
}
.cookie-consent__content {
    min-width: 0;
}
.cookie-consent__title {
    margin-bottom: 4px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 900;
}
.cookie-consent__text,
.cookie-consent__note {
    color: var(--white-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}
.cookie-consent__note {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.cookie-consent__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.cookie-consent__btn {
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.cookie-consent__btn:hover {
    transform: translateY(-2px);
}
.cookie-consent__btn--primary {
    background: linear-gradient(135deg, var(--green), var(--cyan));
    color: var(--purple-deep);
    box-shadow: 0 8px 24px rgba(0,200,240,0.28);
}
.cookie-consent__btn--secondary {
    background: rgba(255,255,255,0.16);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.22);
}
.cookie-consent__btn--ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.28);
}
.cookie-consent__btn--ghost:hover {
    background: rgba(255,255,255,0.08);
}
.cookie-consent__link {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-consent__link:hover { color: var(--cyan); }

/* ==========================================================================
   COOKIE SETTINGS MODAL
   ========================================================================== */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 6, 36, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cookie-modal__container {
    position: relative;
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: var(--purple-deep, #1f1450);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    overflow: hidden;
}
.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cookie-modal__title {
    margin: 0;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 900;
}
.cookie-modal__close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    color: var(--white);
    cursor: pointer;
    transition: background var(--transition);
}
.cookie-modal__close:hover { background: rgba(255,255,255,0.14); }
.cookie-modal__body {
    padding: 18px 24px 8px;
    overflow-y: auto;
    flex: 1 1 auto;
}
.cookie-modal__intro {
    color: var(--white-soft);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 18px;
}
.cookie-modal__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.18);
}

.cookie-cat {
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.cookie-cat:first-of-type { border-top: 0; }
.cookie-cat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}
.cookie-cat__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cookie-cat__title {
    margin: 0;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 900;
}
.cookie-cat__badge {
    padding: 4px 10px;
    background: rgba(0,200,180,0.18);
    color: var(--green);
    border: 1px solid rgba(0,200,180,0.32);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cookie-cat__desc {
    color: var(--white-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}
.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.cookie-toggle__slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 999px;
    transition: background var(--transition);
}
.cookie-toggle__slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform var(--transition);
}
.cookie-toggle input:checked + .cookie-toggle__slider {
    background: linear-gradient(135deg, var(--green), var(--cyan));
    border-color: transparent;
}
.cookie-toggle input:checked + .cookie-toggle__slider::after {
    transform: translateX(22px);
}
.cookie-toggle input:focus-visible + .cookie-toggle__slider {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}
.cookie-toggle--locked { cursor: not-allowed; opacity: 0.85; }
.cookie-toggle--locked .cookie-toggle__slider { background: rgba(0,200,180,0.55); }

@media (max-width: 600px) {
    .cookie-modal { padding: 12px; }
    .cookie-modal__header,
    .cookie-modal__body,
    .cookie-modal__footer { padding-left: 18px; padding-right: 18px; }
    .cookie-modal__footer { flex-direction: column-reverse; }
    .cookie-modal__footer .cookie-consent__btn { width: 100%; }
}

/* ==========================================================================
   FOOTER LEGAL LINKS
   ========================================================================== */
.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.footer__copy { text-align: center; }
.footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: center;
    font-size: 0.88rem;
}
.footer__legal-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--white-soft, #e6e0ff);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: inherit;
    font-size: inherit;
}
.footer__legal-link:hover { color: var(--green); }
.footer__legal-link--btn { font: inherit; }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-page { background: var(--purple-deep, #1f1450); }
.legal {
    padding: clamp(80px, 12vw, 140px) 0 80px;
    color: var(--white-soft, #e6e0ff);
    min-height: 70vh;
}
.legal__container { max-width: 880px; }
.legal__breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: var(--white-soft);
}
.legal__breadcrumbs a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.legal__breadcrumbs a:hover { color: var(--cyan); }
.legal__title {
    color: var(--white);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    margin: 0 0 8px;
    line-height: 1.15;
}
.legal__meta {
    color: var(--text-muted, #b8b0d8);
    font-size: 0.88rem;
    margin-bottom: 28px;
}
.legal__intro {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    line-height: 1.55;
}
.legal__content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    line-height: 1.65;
    font-size: 1rem;
}
.legal__section h2 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 900;
    margin: 0 0 12px;
}
.legal__section h3 {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 800;
    margin: 18px 0 8px;
}
.legal__section p { margin: 0 0 12px; }
.legal__section a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.legal__section a:hover { color: var(--cyan); }
.legal__list {
    margin: 0 0 12px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.legal__list li::marker { color: var(--pink, #ff4b8b); }
.legal__table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px;
    font-size: 0.92rem;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    overflow: hidden;
}
.legal__table th,
.legal__table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.legal__table th {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-weight: 800;
}
.legal__table tr:last-child td { border-bottom: 0; }
.legal__table code {
    background: rgba(0,0,0,0.28);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.85em;
}
.legal__actions {
    margin-top: 36px;
    display: flex;
    justify-content: flex-start;
}
@media (max-width: 600px) {
    .legal__table { font-size: 0.84rem; }
    .legal__table th,
    .legal__table td { padding: 8px 10px; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .about__features {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    :root { --header-h: 76px; }

    .header__logo-img {
        height: clamp(50px, 11vw, 62px);
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: linear-gradient(180deg, var(--purple-deep) 0%, var(--purple-dark) 100%);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 20px 40px;
        gap: 6px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -12px 0 60px rgba(0,0,0,0.4);
        border-left: 1px solid rgba(255,255,255,0.06);
    }
    .header__nav.open {
        right: 0;
    }
    .header__nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
        pointer-events: none;
    }
    .header__link {
        padding: 18px 22px;
        font-size: 1.22rem;
        font-weight: 700;
        border-radius: var(--radius-sm);
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.06);
        transition: background var(--transition), border-color var(--transition), transform var(--transition);
    }
    .header__link:hover,
    .header__link:active {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.12);
        transform: translateX(-4px);
    }
    .burger { display: flex; }

    .hero__content {
        padding: 48px 24px 72px;
    }

    /* Мобилка (≤768px): «МАРАФОН» строкой, под ним логотип «Мульти Бум» */
    .hero__title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }
    .hero__title--marathon {
        font-size: clamp(1.45rem, 5.5vw, 2.2rem);
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: clamp(0.15rem, 1.5vw, 0.55rem);
    }
    .hero__marathon-word {
        width: 100%;
        text-align: center;
    }
    .hero__title--marathon .hero__title-logo {
        height: clamp(3rem, 16vw, 4.35rem);
        max-width: min(88vw, 17.5rem);
    }
    .hero__taglines {
        font-size: clamp(0.82rem, 3.2vw, 1.05rem);
        gap: 8px;
        margin-bottom: 28px;
    }
    .section {
        padding: 70px 0 110px;
    }
    .section__title {
        margin-bottom: 40px;
    }
    .about__features {
        grid-template-columns: 1fr 1fr;
    }
    .event-card {
        flex-direction: column;
        gap: 16px;
    }
    .event-card__body {
        flex-direction: column;
        gap: 16px;
    }
    /* Фото афиши сверху, текст описания ниже */
    .event-card__content {
        order: 1;
    }
    .event-card__photo {
        order: -1;
        width: 100%;
        max-width: none;
        min-height: 160px;
        align-self: stretch;
    }
    .event-card__photo-img {
        min-height: 160px;
    }
    .event-card__date {
        width: auto;
        height: auto;
        flex-direction: row;
        gap: 8px;
        padding: 10px 20px;
        align-self: flex-start;
    }
    .cookie-consent__card {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cookie-consent__icon {
        display: none;
    }
    .cookie-consent__actions {
        justify-content: stretch;
    }
    .cookie-consent__btn {
        flex: 1 1 0;
    }
}

@media (max-width: 480px) {
    .header__brand-slot {
        margin-right: 8px;
    }
    .header__logo-img {
        height: 52px;
    }
    .logo-text {
        font-size: 1.05rem;
    }
    .hero__taglines {
        font-size: clamp(0.72rem, 3.8vw, 0.9rem);
        letter-spacing: 0.04em;
    }
    .about__features {
        grid-template-columns: 1fr;
    }
    .brands__grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
    }
    .brand-card {
        padding: 16px 10px 14px;
    }
    .brand-card__logo {
        width: 90px;
        height: 90px;
        margin-bottom: 10px;
    }
    .brand-card__name {
        font-size: 0.85rem;
    }
    .brand-card__studio {
        font-size: 0.72rem;
    }
    .lightbox__container {
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    .lightbox__header {
        padding: 12px 14px;
        gap: 10px;
    }
    .lightbox__info {
        gap: 8px;
    }
    .lightbox__title {
        font-size: 0.95rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.25;
    }
    .lightbox__studio {
        font-size: 0.78rem;
        margin-top: 1px;
    }
    .lightbox__actions {
        gap: 8px;
    }
    .lightbox__website {
        padding: 8px;
        font-size: 0.8rem;
        gap: 0;
    }
    .lightbox__website-label {
        display: none;
    }
    .lightbox__close {
        width: 36px;
        height: 36px;
    }
    .lightbox__back {
        width: 32px;
        height: 32px;
    }
    .lightbox__nav {
        width: 38px;
        height: 38px;
    }
    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
    .venue-folders-carousel {
        padding: 0 38px;
    }
    .venue-folders {
        gap: 12px;
    }
    .venue-folder {
        padding: 16px 10px 14px;
        width: 180px;
        min-width: 180px;
        max-width: 200px;
    }
    .album-slider {
        padding: 0 48px;
    }
    .venue-folder__icon {
        width: 48px;
        height: 40px;
    }
    .venue-folder__brand-name {
        font-size: 0.85rem;
    }
    .venue-folder__venue-name {
        font-size: 0.75rem;
    }
    .lightbox__body--folders {
        padding: 4px 0 12px;
    }
    .participants__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .participant-card {
        padding: 20px 14px;
    }
    .participant-card__photo {
        width: 90px;
        height: 90px;
    }
    .venues__grid {
        grid-template-columns: 1fr;
    }
    .contacts__grid {
        grid-template-columns: 1fr;
    }
    .cookie-consent {
        padding: 12px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    .cookie-consent__card {
        gap: 10px;
        padding: 14px;
        border-radius: 18px;
        max-height: calc(100vh - 24px);
    }
    .cookie-consent__title {
        font-size: 0.95rem;
    }
    .cookie-consent__text,
    .cookie-consent__note {
        font-size: 0.8rem;
    }
    .cookie-consent__actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
    }
    .cookie-consent__btn {
        flex: none;
        width: 100%;
        min-height: 40px;
        padding: 9px 14px;
        font-size: 0.86rem;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
