/* 4G4 Events v2 — ночь, неоновый глобус из логотипа, живые фото с танцпола.
   Принцип: контент виден без JS; движение — только с классом .js и без prefers-reduced-motion. */
@font-face { font-family: 'Geologica'; src: url('/fonts/Geologica.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('/fonts/Onest.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0A0610; --ink: #130A19; --plum: #1C0F25; --plum-2: #28153A; --line: #3B2347;
  --neon: #FF2E9A; --blush: #FF8CCB; --ice: #F7EFF5; --haze: #B9A8C2;
  --display: 'Geologica', 'Onest', sans-serif; --text: 'Onest', system-ui, sans-serif;
  --r: 22px; --r-sm: 14px; --wrap: 1240px; --pad: clamp(18px, 4vw, 44px);
  --ease: cubic-bezier(.2, .7, .1, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --neon-glow: 0 8px 26px -14px rgb(255 46 154 / .8);
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--night); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--night); color: var(--ice); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--neon); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.muted { color: var(--haze); }
/* лёгкое зерно плёнки поверх всего — живость ночной съёмки */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- кнопки ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--text); text-decoration: none; overflow: hidden; isolation: isolate; transition: box-shadow .3s var(--ease), color .3s; }
.btn span { position: relative; z-index: 1; display: inline-block; }
.btn::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0; transform: translateY(101%); transition: transform .45s var(--ease-out); }
.btn:hover::before { transform: translateY(0); }
.btn-neon { background: var(--neon); color: #fff; box-shadow: var(--neon-glow); }
.btn-neon::before { background: #fff; }
.btn-neon:hover { color: var(--neon); box-shadow: 0 14px 44px -12px rgb(255 46 154 / .9); }
.btn-ghost { background: rgb(10 6 16 / .5); color: var(--ice); box-shadow: inset 0 0 0 1px rgb(247 239 245 / .3); }
.btn-ghost::before { background: var(--ice); }
.btn-ghost:hover { color: var(--night); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn[disabled], fieldset[disabled] .btn { opacity: .5; cursor: not-allowed; }
.link { color: var(--blush); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .35s var(--ease-out); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- курсор (только мышь) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 95; opacity: 0; transition: opacity .3s; }
  .js .cursor.on { opacity: 1; }
  .js body, .js a, .js button, .js label, .js summary { cursor: none; }
  .js input, .js textarea, .js select { cursor: text; }
  .js select { cursor: pointer; }
  .cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--neon); }
  .cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; box-shadow: inset 0 0 0 1px rgb(255 140 203 / .6); display: grid; place-items: center;
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, box-shadow .35s; }
  .cursor.is-link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgb(255 46 154 / .12); box-shadow: inset 0 0 0 1px var(--neon); }
  .cursor.is-label .cursor-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--neon); box-shadow: none; }
  .cursor-label { font: 700 13px/1 var(--text); color: #fff; opacity: 0; transition: opacity .2s; }
  .cursor.is-label .cursor-label { opacity: 1; }
  .cursor.is-label .cursor-dot { opacity: 0; }
}

/* ---------- шапка ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .35s, box-shadow .35s, transform .45s var(--ease-out); }
.top.scrolled { background: rgb(10 6 16 / .78); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top.hide { transform: translateY(-100%); }
.top-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 17px/1 var(--display); letter-spacing: .03em; }
.brand img { border-radius: 50%; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--haze); font-weight: 500; font-size: 15px; transition: color .25s; }
.nav a:hover { color: var(--ice); }
.top-end { display: flex; align-items: center; gap: 14px; }
/* ссылка-«рулон»: слово уезжает вверх, снизу выезжает розовое */
.roll { display: inline-flex; overflow: hidden; line-height: 1.5; vertical-align: top; }
.roll span { position: relative; display: block; transition: transform .5s var(--ease-out); }
.roll span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; color: var(--blush); white-space: nowrap; }
.roll:hover span, .roll:focus-visible span { transform: translateY(-100%); }
.lang { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--haze); padding: 9px 11px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); transition: color .25s, box-shadow .25s; }
.lang:hover { color: var(--ice); box-shadow: inset 0 0 0 1px var(--blush); }

/* ---------- первый экран ---------- */
.hero { position: relative; min-height: max(680px, min(100svh, 980px)); padding: 120px 0 36px; display: grid; align-content: end; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 70% at 72% 42%, rgb(255 46 154 / .17), transparent 70%), radial-gradient(50% 60% at 8% 92%, rgb(160 20 90 / .16), transparent 70%), var(--night); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
.hero-grid > *, .ev > *, .book-grid > *, .faq-grid > * { min-width: 0; }
.kicker { margin: 0 0 18px; color: var(--blush); font-weight: 600; font-size: 18px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ''; width: 34px; height: 2px; background: var(--neon); box-shadow: 0 0 12px var(--neon); }
.h1 { font: 850 clamp(52px, 7.4vw, 112px)/.92 var(--display); letter-spacing: -.035em; margin: 0 0 26px; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: #E9DCE9; max-width: 34ch; margin: 0 0 34px; }
.hero .kicker, .hero .lead { text-shadow: 0 1px 2px rgb(10 6 16 / .9), 0 2px 22px rgb(10 6 16 / .85); } /* читается поверх фото под «прожектором» */
.lead-sm { font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.globe { position: relative; aspect-ratio: 1; width: min(100%, 600px); justify-self: end; mix-blend-mode: screen; }
.globe-video { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
/* «луч прожектора»: фото танцпола видно только в мягком круге вокруг курсора */
.spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease-out);
  --mx: 35%; --my: 50%; --r: 0px;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, rgb(0 0 0 / .55) 45%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, rgb(0 0 0 / .55) 45%, transparent 100%); }
.spot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(1.15) contrast(1.05); }
.hero.lit .spot { opacity: .72; }
@media (hover: none) {
  .hero .spot { display: none; }
  .btn, .chips label span, .seg label span, .album, .venue, .lb-btn { -webkit-tap-highlight-color: transparent; }
  .btn:active, .chips label:active span, .seg label:active span { transform: scale(.96); transition: transform .12s; }
  .album:active, .venue:active { opacity: .75; }
}
.wordmark span { white-space: nowrap; }
.wm-ch { display: inline-block; }
/* плашка ближайшей вечеринки */
.next { margin-top: 44px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px 28px; align-items: center; padding: 18px 18px 18px 26px; border-radius: var(--r);
  background: rgb(28 15 37 / .7); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgb(255 46 154 / .25); }
.next-label { grid-row: 1 / 3; color: var(--blush); font-weight: 600; font-size: 14px; writing-mode: horizontal-tb; }
.next-title { font: 700 20px/1.2 var(--display); }
.next-meta { grid-column: 2; color: var(--haze); font-size: 15px; }
.countdown { grid-row: 1 / 3; grid-column: 3; display: flex; gap: 8px; }
.countdown span { min-width: 62px; text-align: center; background: var(--plum-2); border-radius: 12px; padding: 8px 6px; font-size: 12px; color: var(--haze); }
.countdown b { display: block; font: 800 24px/1 var(--display); color: var(--ice); font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.next .btn { grid-row: 1 / 3; grid-column: 4; }

/* ---------- бегущая строка ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: var(--ink); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 34s linear infinite; }
.marquee span { font: 850 clamp(40px, 6vw, 84px)/1 var(--display); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px var(--blush); white-space: nowrap; transition: color .3s; }
.marquee span:nth-of-type(4n+1) { color: var(--ice); -webkit-text-stroke: 0; }
.marquee svg { width: clamp(26px, 3vw, 40px); fill: var(--neon); flex: none; filter: drop-shadow(0 0 10px rgb(255 46 154 / .8)); }
@keyframes marquee { to { transform: translateX(-50%); } }
.js .marquee-track { animation: none; }

/* ---------- секции ---------- */
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.h2 { font: 850 clamp(36px, 5.2vw, 72px)/1 var(--display); letter-spacing: -.03em; margin: 0 0 20px; text-wrap: balance; }
.split .line { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* афиша */
.events { display: grid; gap: 32px; margin-top: 44px; }
.ev { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.ev-poster { position: relative; border-radius: var(--r); overflow: hidden; transform-style: preserve-3d; will-change: transform; box-shadow: 0 40px 90px -40px rgb(255 46 154 / .55); }
.ev-poster img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / .28), transparent 45%); opacity: 0; transition: opacity .3s; }
.ev-poster:hover .glare { opacity: 1; }
.ev-date { display: flex; align-items: center; gap: 16px; margin: 6px 0 18px; }
.ev-date b { font: 850 clamp(64px, 7vw, 96px)/.85 var(--display); letter-spacing: -.04em; color: var(--neon); text-shadow: 0 0 30px rgb(255 46 154 / .45); }
.ev-date span { color: var(--haze); font-weight: 600; line-height: 1.35; }
.ev-age { font-style: normal; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(255 140 203 / .55); color: var(--blush); }
.ev-title { font: 800 clamp(30px, 3.4vw, 48px)/1.04 var(--display); letter-spacing: -.02em; margin: 0 0 10px; }
.ev-venue { color: var(--haze); margin: 0 0 24px; }
.ev-info, .ev-prices { list-style: none; margin: 0 0 16px; padding: 18px 20px; border-radius: var(--r-sm); background: var(--plum); }
.ev-info li, .ev-prices li { padding: 3px 0; }
.ev-prices { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.ev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.ev-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; }
.empty { font-size: 20px; color: var(--haze); max-width: 44ch; }

/* манифест */
.statement-sec { padding-block: clamp(60px, 8vw, 120px); }
.statement { font: 700 clamp(28px, 3.9vw, 56px)/1.14 var(--display); letter-spacing: -.02em; margin: 0; max-width: 24ch; }
.js .statement .word { opacity: .16; }

/* фото: горизонтальная лента без обрезки */
.photos { padding-bottom: clamp(60px, 8vw, 110px); }
.photos-head { margin-bottom: 44px; }
.gallery { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gallery-track { display: flex; gap: 18px; width: max-content; animation: gallery 110s linear infinite; }
.gallery:hover .gallery-track { animation-play-state: paused; }
@keyframes gallery { to { transform: translateX(calc(-50% - 9px)); } }
.g-item { margin: 0; height: clamp(280px, 54vh, 560px); flex: none; border-radius: var(--r-sm); overflow: hidden; background: var(--plum); }
.g-item img { height: 100%; width: auto; max-width: none; transition: transform .8s var(--ease-out), filter .5s; }
.g-item:hover img { transform: scale(1.04); }
.albums { list-style: none; padding: 0; margin: 64px 0 0; border-top: 1px solid var(--line); }
.album { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .4s var(--ease-out), color .3s; }
.album-date { color: var(--haze); font-variant-numeric: tabular-nums; }
.album-name { font: 750 clamp(20px, 2.4vw, 32px)/1.15 var(--display); letter-spacing: -.01em; }
.album-go { color: var(--blush); font-weight: 600; font-size: 15px; white-space: nowrap; }
.album:hover { padding-left: 18px; color: var(--blush); }
.album-float { position: fixed; left: 0; top: 0; width: auto; height: 190px; max-width: 290px; object-fit: contain; border-radius: 12px; pointer-events: none; z-index: 40; /* фото целиком, без обрезки */
  opacity: 0; transform: scale(.8); box-shadow: 0 30px 80px -20px #000; display: none; }
@media (hover: hover) and (pointer: fine) { .js .album-float { display: block; } }

/* бронь */
.book { background: radial-gradient(50% 60% at 85% 30%, rgb(255 46 154 / .13), transparent 70%), var(--ink); }
.book-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; font-size: 18px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--neon), 0 0 12px rgb(255 46 154 / .5); }
.ticks li::after { content: ''; position: absolute; left: 7px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--neon); }
.form { background: var(--plum); border-radius: 28px; padding: clamp(22px, 3.2vw, 40px); box-shadow: inset 0 0 0 1px var(--line), 0 50px 120px -60px rgb(255 46 154 / .5); position: relative; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 22px; min-width: 0; }
.field { display: grid; gap: 10px; }
.field > span { font-weight: 600; font-size: 15px; color: var(--haze); }
.form input:not([type]), .form input[type=text], .form select, .form textarea, .form input[name=contact], .form input[name=name] {
  width: 100%; background: var(--night); color: var(--ice); border: 0; border-radius: 14px; padding: 15px 16px; font: 400 17px/1.3 var(--text);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s; appearance: none; }
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--blush) 50%), linear-gradient(135deg, var(--blush) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--neon); }
.form textarea { resize: vertical; min-height: 56px; }
.form ::placeholder { color: #7E6E88; }
.chips, .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.chips label span, .seg label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; color: var(--haze); cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.chips label:hover span, .seg label:hover span { box-shadow: inset 0 0 0 1px var(--blush); color: var(--ice); }
.chips input:checked + span, .seg input:checked + span { background: var(--neon); color: #fff; box-shadow: var(--neon-glow); }
.chips input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--blush); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--haze); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; display: grid; place-items: center; width: 22px; height: 22px; margin: 0; flex: none; border-radius: 7px;
  background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: background-color .25s, box-shadow .25s; }
.check input::after { content: ''; width: 11px; height: 6px; margin-top: -3px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); transition: transform .3s var(--ease-out); }
.check input:checked { background: var(--neon); box-shadow: 0 0 14px rgb(255 46 154 / .6); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check:hover input:not(:checked) { box-shadow: inset 0 0 0 1.5px var(--blush); }
.check input:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; }
.check a { color: var(--blush); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-err { margin: 0; min-height: 1.2em; color: #FF9FB2; font-size: 15px; }
.form-err:empty { display: none; }
.form-note { margin: 0 0 18px; color: var(--blush); }
.form-ok { text-align: center; padding: 30px 10px; }
.form-ok svg { width: 84px; height: 84px; fill: none; stroke: var(--neon); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgb(255 46 154 / .7)); margin: 0 auto 18px; }
.form-ok circle { stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .9s var(--ease-out) forwards; }
.form-ok path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .5s .6s var(--ease-out) forwards; }
.form-ok h3 { font: 800 30px/1.1 var(--display); margin: 0 0 10px; }
.form-ok p { color: var(--haze); margin: 0 0 18px; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* вопросы */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq-side { position: sticky; top: 120px; align-self: start; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font: 700 clamp(20px, 2vw, 25px)/1.25 var(--display); transition: color .25s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--blush); }
.qa summary i { position: relative; width: 20px; height: 20px; flex: none; }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 0; top: 9px; width: 20px; height: 2px; background: var(--blush); transition: transform .35s var(--ease-out); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa-body { padding: 0 0 24px; color: #E4D6E4; max-width: 62ch; }
.qa-body p { margin: 0 0 12px; }
.qa-body a { color: var(--blush); }
.ask summary em { font-style: normal; color: var(--neon); margin-left: auto; padding-right: 8px; font-size: 17px; }
.form-ask { margin: 0 0 28px; }

/* площадки и бот */
/* правила вечеринки */
.rules-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; }
.rules-head .muted { margin: 0 0 8px; max-width: 40ch; }
.rule-cards { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-top: 44px; }
.rule-card { padding: clamp(26px, 3vw, 40px); border-radius: var(--r); background: var(--plum); box-shadow: inset 0 0 0 1px rgb(255 46 154 / .14); }
.rule-place { display: flex; align-items: baseline; gap: 12px; margin: 0 0 22px; }
.rule-place b { font: 800 clamp(26px, 2.4vw, 34px)/1 var(--display); }
.rule-place span { color: var(--blush); font-weight: 600; }
.rule-list, .rules-all { list-style: none; margin: 0; padding: 0; }
.rule-list { display: grid; gap: 18px; }
.rule-list li, .rules-all li { position: relative; padding-left: 26px; }
.rule-list li::before, .rules-all li::before { content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px rgb(255 46 154 / .7); }
.rule-list h3, .rules-all h3 { margin: 0 0 4px; font: 700 18px/1.3 var(--display); }
.rule-list p, .rules-all p { margin: 0; color: var(--haze); }
.rules-all { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 40px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.rules-bye { margin: 44px 0 0; font: 800 clamp(22px, 2.2vw, 30px)/1.2 var(--display); color: var(--blush); }
/* таймер: цифры «перелистываются» */
.countdown span { overflow: hidden; }
.countdown b.flip { animation: cd-flip .5s var(--ease-out); }
@keyframes cd-flip { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }

/* галерея: фото открывается по клику */
.g-item[role=button] { cursor: zoom-in; }
.g-item:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; }
.lb-open .gallery-track { animation-play-state: paused; }
.gallery.is-js { touch-action: pan-y; }
.gallery.is-js .gallery-track { animation: none; will-change: transform; }
.album-thumb { display: none; }

/* окно фото на весь экран */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(6 3 10 / .96); color: var(--ice); overflow: hidden; }
.lb::backdrop { background: transparent; }
.lb, .lb * { cursor: auto; }
.lb button { cursor: pointer; }
.lb-fig { position: absolute; inset: 70px 96px; margin: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y pinch-zoom; }
.lb-img { max-width: min(100%, calc(100vw - 192px)); max-height: min(100%, calc(100vh - 140px)); max-height: min(100%, calc(100dvh - 140px)); width: auto; height: auto; object-fit: contain; border-radius: 12px; user-select: none; -webkit-user-drag: none; }
.lb-count { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; color: var(--haze); font: 600 15px/1 var(--display); font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgb(40 21 58 / .92); color: var(--ice); box-shadow: inset 0 0 0 1px rgb(255 140 203 / .4); transition: box-shadow .25s, color .25s, transform .25s var(--ease-out); }
.lb-btn:hover { box-shadow: inset 0 0 0 1px var(--blush); color: var(--blush); }
.lb-btn:active { transform: scale(.94); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 18px; right: 18px; }
.lb-prev, .lb-next { top: 50%; margin-top: -26px; }
.lb-prev { left: 22px; } .lb-next { right: 22px; }

/* телефон: нижняя панель «ближайшая вечеринка» */
.mbar { display: none; }
.mbar[hidden] { display: none !important; }

/* плавная смена языка и страниц */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); transform: scale(.99); } }
@keyframes vt-in { from { opacity: 0; filter: blur(6px); transform: scale(1.01); } }
.top { view-transition-name: top; }

.venues { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.venue { display: grid; gap: 6px; padding: clamp(26px, 3vw, 40px); border-radius: var(--r); background: var(--plum); text-decoration: none; position: relative; overflow: hidden; isolation: isolate; }
.venue::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 100% at 100% 0%, rgb(255 46 154 / .25), transparent 55%); opacity: 0; transition: opacity .45s; }
.venue:hover::after { opacity: 1; }
.venue-city { color: var(--blush); font-weight: 600; }
.venue-name { font: 800 clamp(28px, 3.2vw, 42px)/1.05 var(--display); letter-spacing: -.02em; }
.venue-meta { color: var(--haze); font-size: 15px; margin: 6px 0 12px; }
.venue .link { justify-self: start; }
.bot { margin-top: 24px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 24px; align-items: center; padding: 26px 30px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.bot h3 { font: 750 22px/1.2 var(--display); margin: 0 0 4px; }
.bot p { margin: 0; }
.bot-ava { width: 72px; height: 72px; border-radius: 50%; }
.bot figure { margin: 0; display: grid; justify-items: center; gap: 6px; }
.bot-qr { width: 96px; height: 96px; border-radius: 10px; background: #fff; padding: 6px; }
.bot figcaption { font-size: 12px; color: var(--haze); max-width: 14ch; text-align: center; }

/* подвал: огромная надпись, загорается при наведении */
.foot { padding: 40px 0 36px; border-top: 1px solid var(--line); overflow: hidden; }
.wordmark { display: flex; justify-content: space-between; gap: clamp(12px, 2vw, 32px); text-decoration: none; margin-bottom: 30px; }
.wordmark span { font: 850 clamp(40px, 14.6vw, 208px)/.85 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgb(255 140 203 / .55);
  transition: color .6s var(--ease-out), text-shadow .6s, -webkit-text-stroke-color .6s; }
.wordmark:hover span { color: var(--neon); -webkit-text-stroke-color: var(--neon); text-shadow: 0 0 40px rgb(255 46 154 / .6); }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; }
.foot-grid p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.foot-links a { text-decoration: none; color: var(--haze); font-weight: 500; transition: color .25s; }
.foot-links a:hover { color: var(--ice); }
.foot-legal { grid-column: 1 / -1; color: var(--haze); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-legal a { color: var(--haze); }

/* правовые страницы */
.legal { max-width: 760px; padding-top: 40px; }
.legal h2 { font: 700 20px/1.3 var(--display); margin: 32px 0 8px; }
.legal p { color: #E4D6E4; }

/* ---------- адаптив ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .top-end { margin-left: auto; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .next { grid-template-columns: 1fr auto; padding: 20px; }
  .next-label { grid-row: auto; }
  .next-title, .next-meta { grid-column: 1 / -1; }
  .countdown { grid-row: auto; grid-column: 1; }
  .next .btn { grid-row: auto; grid-column: 2; }
  .ev, .book-grid, .faq-grid { grid-template-columns: 1fr; }
  .ev-poster { max-width: 520px; }
  .faq-side { position: static; }
}
@media (max-width: 760px) {
  .js .mbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 8px;
    padding: 8px 8px 8px 18px; border-radius: 20px; background: rgb(28 15 37 / .96); box-shadow: inset 0 0 0 1px rgb(255 46 154 / .28), 0 18px 40px -10px #000;
    transform: translateY(calc(100% + 30px)); transition: transform .5s var(--ease-out); }
  .js .mbar.on { transform: none; }
  .mbar-info { display: grid; margin-right: auto; line-height: 1.15; }
  .mbar-info b { font: 800 17px/1.1 var(--display); color: var(--ice); }
  .mbar-info span { color: var(--blush); font-size: 13px; font-weight: 600; }
  .mbar .btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
  .lb-fig { inset: 60px 8px 86px; }
  .lb-img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 146px); }
  .lb-prev, .lb-next { top: auto; bottom: 14px; margin: 0; }
  .lb-prev { left: 14px; } .lb-next { right: 14px; }
  .lb-count { bottom: 32px; }
  /* первый экран: глобус — чёткий знак над заголовком, без фото и без текста поверх */
  .hero { min-height: 0; padding: 70px 0 26px; align-content: start; }
  .hero .spot { display: none; }
  .hero-grid { gap: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .globe { position: relative; order: -1; justify-self: end; width: min(62vw, 290px); margin: 0 -3vw -1vw 0; }
  .hero .kicker, .hero .lead { text-shadow: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero:has([data-next] .next) .hero-actions { display: none; } /* кнопка билета уже есть в карточке ниже */
  .next { margin-top: 28px; }
  /* разделы ближе друг к другу */
  .sec { padding: 64px 0; }
  .photos-head { margin-bottom: 28px; }
  .albums { margin-top: 40px; }
  /* альбомы: миниатюра обложки вместо превью при наведении */
  .album { grid-template-columns: 64px 1fr; grid-template-areas: 'thumb date' 'thumb name'; gap: 2px 16px; padding: 14px 0; }
  .album:hover { padding-left: 0; }
  .album-thumb { display: block; grid-area: thumb; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--plum) url('/logo.webp') center / 60% no-repeat; }
  .album-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .album-date { grid-area: date; font-size: 13px; align-self: end; }
  .album-name { grid-area: name; font-size: 18px; align-self: start; }
  .album-go { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  /* телефон: шапка сплошная и всегда на месте — Safari красит свою панель в её цвет, сайт сквозь панель не просвечивает */
  .top, .top.scrolled { background: var(--night); backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
  .top.hide { transform: none; }
  .top-row { gap: 10px; height: 58px; }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 15px; }
  .top-end { margin-left: auto; gap: 8px; }
  .top-end .btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
  .lang { padding: 7px 10px; font-size: 13px; }
  .h1 { font-size: clamp(48px, 15vw, 72px); }
  .next { grid-template-columns: 1fr; }
  .countdown, .next .btn { grid-column: 1; }
  .countdown span { flex: 1; min-width: 0; }
  .venues, .rule-cards { grid-template-columns: 1fr; }
  .wordmark { gap: 3vw; }
  .wordmark span { font-size: 12.4vw; -webkit-text-stroke-width: 1.2px; }
  .album { grid-template-columns: 64px 1fr; }
  .album-go { grid-column: 2; }
  .bot { grid-template-columns: auto 1fr; }
  .bot .btn { grid-column: 1 / -1; }
  .bot figure { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .ev-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .statement .word { opacity: 1; }
  .spot, .grain { display: none; }
  .gallery { overflow-x: auto; } .gallery-track { animation: none; }
}
