/* 4G4 Events — ночь, неон из логотипа, ведут фотографии с танцпола. */
@font-face { font-family: 'Geologica'; src: url('/fonts/Geologica.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('/fonts/Onest.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0C0710; --plum: #1B0E22; --plum-2: #26142F; --neon: #FF2E9A; --blush: #FF8CCB; --ice: #F6EEF4; --haze: #B7A6BF; --line: #3A2344;
  --display: 'Geologica', 'Onest', sans-serif; --text: 'Onest', system-ui, sans-serif;
  --r: 18px; --r-sm: 12px; --wrap: 1200px; --pad: clamp(18px, 4vw, 40px);
  --glow: 0 8px 24px -14px rgb(255 46 154 / .7); /* фирменный неон — тонко; ярче при наведении */ /* avoid-ai-design-ignore: C5 */
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--night); color: var(--ice); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; border-radius: 6px; }
.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: 50; }
.skip:focus { left: 12px; }
.muted { color: var(--haze); }

/* --- кнопки --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--text); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
.btn-neon { background: var(--neon); color: #fff; box-shadow: var(--glow); }
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(255 46 154 / .5), 0 16px 50px -12px rgb(255 46 154 / .85); }
.btn-ghost { background: rgb(12 7 16 / .45); color: var(--ice); box-shadow: inset 0 0 0 1px rgb(246 238 244 / .28); }
.btn-ghost:hover { background: rgb(255 255 255 / .12); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-wide { width: 100%; }
.link { color: var(--blush); font-weight: 600; text-decoration: underline; text-decoration-color: rgb(255 140 203 / .4); text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--blush); }

/* --- шапка --- */
.top { position: fixed; inset: 0 0 auto; z-index: 20; transition: background-color .3s, box-shadow .3s; }
.top.scrolled { background: rgb(12 7 16 / .82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 17px/1 var(--display); letter-spacing: .02em; margin: 0; }
.brand img { border-radius: 50%; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--haze); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--ice); }
.top-end { display: flex; align-items: center; gap: 14px; }
.lang { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--haze); padding: 8px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.lang:hover { color: var(--ice); }

/* --- герой: фото толпы меняются медленно --- */
.hero { position: relative; min-height: max(640px, min(100svh, 940px)); display: flex; align-items: flex-end; padding: 120px 0 64px; isolation: isolate; }
.slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--plum); }
.slide { position: absolute; inset: 0; opacity: 0; animation: slide 28s infinite; animation-delay: calc(var(--i) * 7s); }
.slide:first-child { opacity: 1; }
.slide-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: drift 28s infinite linear; animation-delay: calc(var(--i) * 7s); }
@keyframes slide { 0% { opacity: 0 } 4% { opacity: 1 } 25% { opacity: 1 } 30% { opacity: 0 } 100% { opacity: 0 } }
@keyframes drift { 0% { transform: scale(1.04) } 30% { transform: scale(1.12) } 100% { transform: scale(1.12) } }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(12 7 16 / .94) 0%, rgb(12 7 16 / .72) 40%, rgb(12 7 16 / .2) 75%), linear-gradient(0deg, var(--night) 0%, transparent 35%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: end; }
.hero-grid > *, .ev > *, .bot-grid > *, .how-grid > * { min-width: 0; }
.h1 { font: 800 clamp(40px, 6.4vw, 84px)/1.0 var(--display); letter-spacing: -.02em; margin: 0 0 22px; max-width: 12ch; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #E6D8E6; max-width: 36ch; margin: 0 0 30px; }
.lead-sm { font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* появление героя — один раз */
.h1, .lead, .hero-actions, .next { animation: rise .9s var(--ease) both; }
.lead { animation-delay: .12s } .hero-actions { animation-delay: .22s } .next { animation-delay: .38s }
@keyframes rise { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }

.next { background: rgb(27 14 34 / .78); backdrop-filter: blur(16px); border-radius: var(--r); padding: 22px; box-shadow: inset 0 0 0 1px rgb(255 46 154 / .28), 0 30px 80px -30px #000; }
.next-label { margin: 0 0 14px; color: var(--blush); font-weight: 600; font-size: 14px; }
.next-row { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.next-poster { width: 76px; height: 95px; object-fit: cover; border-radius: 10px; flex: none; }
.next-title { font: 700 19px/1.2 var(--display); margin: 0 0 6px; }
.next-meta { margin: 0; color: var(--haze); font-size: 15px; line-height: 1.45; }
.countdown { display: flex; gap: 10px; margin-bottom: 18px; min-height: 64px; }
.countdown span { flex: 1; min-width: 0; text-align: center; background: var(--plum-2); border-radius: var(--r-sm); padding: 10px 4px; font-size: 13px; color: var(--haze); }
.countdown b { display: block; font: 800 26px/1 var(--display); color: var(--ice); font-variant-numeric: tabular-nums; margin-bottom: 4px; }

/* --- секции --- */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.h2 { font: 800 clamp(32px, 4.2vw, 54px)/1.05 var(--display); letter-spacing: -.015em; margin: 0 0 18px; text-wrap: balance; }

/* афиша */
.events { display: grid; gap: 28px; margin-top: 36px; }
.ev { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: clamp(24px, 4vw, 56px); background: var(--plum); border-radius: var(--r); padding: clamp(18px, 2.4vw, 28px); }
.ev-poster img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); transition: transform .5s var(--ease); }
.ev:hover .ev-poster img { transform: scale(1.02); }
.ev-poster { overflow: hidden; border-radius: var(--r-sm); }
.ev-date { color: var(--blush); font-weight: 600; margin: 4px 0 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ev-age { font-size: 13px; padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(255 140 203 / .5); }
.ev-title { font: 800 clamp(26px, 3vw, 38px)/1.08 var(--display); margin: 0 0 8px; }
.ev-venue { color: var(--haze); margin: 0 0 20px; }
.ev-info, .ev-prices { list-style: none; margin: 0 0 18px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--plum-2); }
.ev-info li, .ev-prices li { padding: 3px 0; }
.ev-prices { background: transparent; box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 8px; }
.empty { font-size: 20px; color: var(--haze); max-width: 40ch; }

/* фото: две ленты навстречу друг другу */
.sec-photos { overflow: hidden; }
.photos-head { margin-bottom: 40px; }
.reel { display: grid; gap: 14px; transform: rotate(-2deg); margin: 0 -2vw 56px; }
.reel-row { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; width: max-content; animation: reel 70s linear infinite; }
.reel-rev { animation-direction: reverse; animation-duration: 80s; }
.reel:hover .reel-row { animation-play-state: paused; }
.reel-row li { width: 280px; height: 210px; flex: none; border-radius: var(--r-sm); overflow: hidden; background: var(--plum); }
.reel-row img { width: 100%; height: 100%; object-fit: cover; }
@keyframes reel { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.albums { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.album { display: grid; grid-template-columns: 64px 1fr auto; grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 16px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.album-thumb { grid-row: 1 / 3; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; }
.album-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.album:hover .album-thumb img { transform: scale(1.06); }
.album-name { font: 700 18px/1.2 var(--display); }
.album-date { color: var(--haze); font-size: 14px; grid-column: 2; }
.album-go { grid-column: 3; grid-row: 1 / 3; color: var(--blush); font-weight: 600; font-size: 15px; }
.album:hover .album-name { color: var(--blush); }

/* как всё устроено: заголовок слева, раскрывающиеся пункты справа */
.how-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.how-side { position: sticky; top: 110px; align-self: start; }
.how-list details { border-bottom: 1px solid var(--line); }
.how-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 700 clamp(20px, 2vw, 24px)/1.2 var(--display); }
.how-list summary::-webkit-details-marker { display: none; }
.how-list summary::after { content: ''; width: 14px; height: 14px; flex: none; border-right: 2px solid var(--blush); border-bottom: 2px solid var(--blush); transform: rotate(45deg) translateY(-4px); transition: transform .25s var(--ease); }
.how-list details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.how-body { padding: 0 0 22px; color: #E2D4E2; max-width: 62ch; }
.how-body p { margin: 0 0 12px; }
.how-body a { color: var(--blush); }

/* бот */
.sec-bot { background: radial-gradient(60% 80% at 80% 50%, rgb(255 46 154 / .16), transparent 70%), var(--plum); }
.bot-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.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%; background: var(--neon); box-shadow: 0 0 14px rgb(255 46 154 / .7);
  -webkit-mask: radial-gradient(circle, #000 0 4px, transparent 5px); mask: radial-gradient(circle, #000 0 4px, transparent 5px); }
.ticks li::after { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--neon); }
.bot-card { margin: 0; justify-self: center; display: grid; justify-items: center; gap: 18px; padding: 32px; border-radius: 28px; background: var(--night); box-shadow: inset 0 0 0 1px rgb(255 46 154 / .3), 0 40px 100px -40px rgb(255 46 154 / .5); }
.bot-ava { width: 112px; height: 112px; border-radius: 50%; }
.bot-qr { width: 200px; height: 200px; border-radius: 14px; background: #fff; padding: 10px; }
.bot-card figcaption { color: var(--haze); font-size: 15px; }

/* площадки */
.venues { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.venue { display: grid; gap: 6px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: var(--plum); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.venue:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgb(255 46 154 / .35); }
.venue-city { color: var(--blush); font-weight: 600; }
.venue-name { font: 800 clamp(26px, 3vw, 36px)/1.1 var(--display); }
.venue-addr { color: var(--ice); }
.venue-meta { color: var(--haze); font-size: 15px; margin-bottom: 10px; }

/* подвал */
.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.brand-foot { margin-bottom: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.foot-links a { text-decoration: none; color: var(--haze); font-weight: 500; }
.foot-links a:hover { color: var(--ice); }
.foot-legal { grid-column: 1 / -1; color: var(--haze); font-size: 14px; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-legal a { color: var(--haze); }

/* правовые страницы */
.legal { max-width: 760px; }
.legal h2 { font: 700 20px/1.3 var(--display); margin: 32px 0 8px; }
.legal p { color: #E2D4E2; }

/* --- адаптив --- */
@media (max-width: 980px) {
  .nav { display: none; }
  .top-end { margin-left: auto; }
  .top-row { gap: 12px; }
  .hero-grid, .how-grid, .bot-grid { grid-template-columns: 1fr; }
  .how-side { position: static; }
  .ev { grid-template-columns: 1fr; }
  .ev-poster img { aspect-ratio: 4 / 5; max-height: 560px; }
  .albums { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 100px; }
  .hero-shade { background: linear-gradient(0deg, var(--night) 8%, rgb(12 7 16 / .72) 55%, rgb(12 7 16 / .35) 100%); }
  .venues { grid-template-columns: 1fr; }
  .reel-row li { width: 200px; height: 150px; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .ev-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slide { opacity: 0; } .slide:first-child { opacity: 1; }
  html { scroll-behavior: auto; }
}
