:root {
  --bg: #060a08;
  --bg2: #0c1210;
  --surface: #111916;
  --surface2: #18201c;
  --surface3: #1f2a24;
  --text: #f2efe8;
  --muted: #8a948c;
  --gold: #c9a84c;
  --gold2: #e8c96a;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --green: #2d5a3d;
  --green-glow: rgba(45, 120, 75, 0.25);
  --border: rgba(201, 168, 76, 0.14);
  --border2: rgba(255, 255, 255, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

/* ── Background layers ── */
.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 0%, var(--green-glow), transparent 60%),
    radial-gradient(ellipse 40% 35% at 85% 10%, rgba(201, 168, 76, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(20, 50, 35, 0.4), transparent 60%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--border2) 1px, transparent 1px),
    linear-gradient(90deg, var(--border2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(6, 10, 8, 0.8);
  border-bottom: 1px solid var(--border2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), #1a3d28);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold2);
  letter-spacing: 0.05em;
}

.logo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.logo-avatar--sm {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-promo {
  color: var(--gold2) !important;
  border: 1px solid var(--border) !important;
  background: var(--gold-dim) !important;
}

.nav-promo:hover {
  background: rgba(201, 168, 76, 0.22) !important;
}

.nav-tour {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffb8e8 !important;
  font-weight: 600;
  border: 1px solid rgba(255, 123, 203, 0.4);
  background: linear-gradient(135deg, rgba(233, 30, 140, 0.18), rgba(123, 77, 255, 0.12));
  box-shadow: 0 0 20px rgba(233, 30, 140, 0.12);
}

.nav-tour:hover {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(233, 30, 140, 0.32), rgba(123, 77, 255, 0.2));
  box-shadow: 0 0 28px rgba(233, 30, 140, 0.22);
}

.nav-tour-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4da6, #ff7bcb);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s;
}

main { position: relative; z-index: 1; }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 5rem 2rem 3rem;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--gold-dim);
  color: var(--gold2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold2);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.hero-line {
  display: block;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-accent {
  background: linear-gradient(135deg, var(--gold2) 0%, #fff5d0 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.3rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-text {
  color: var(--muted);
  max-width: 44ch;
  font-size: 1.02rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-frame img,
.hero-frame video {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.hero-video-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(6, 10, 8, 0.72);
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold2);
}

.hero-frame-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 10, 8, 0.7) 0%, transparent 50%);
  pointer-events: none;
}

.hero-thumbs {
  --hero-thumb-h: 72px;
  margin-top: 0.75rem;
}

.hero-thumbs-row {
  display: flex;
  gap: 0.5rem;
}

.hero-thumbs-row img {
  flex: 1;
  min-width: 0;
  height: var(--hero-thumb-h);
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  opacity: 0.92;
}

.hero-thumbs-more {
  margin-top: 0.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 28%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 28%, transparent 100%);
}

.hero-thumbs-more .hero-thumbs-row img {
  opacity: 0.96;
}

/* ── Marquee: влево, бесшовно ── */
.marquee-strip {
  overflow: hidden;
  border-block: 1px solid var(--border2);
  background: var(--surface);
  padding: 0.85rem 0;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee-left var(--marquee-duration, 24s) linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

.marquee-dot {
  color: var(--muted);
  opacity: 0.5;
}

@keyframes marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--marquee-shift, -50%), 0, 0); }
}

/* ── Sections ── */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-head { margin-bottom: 2.5rem; }

.section-head h2,
.gallery-header h1,
.dashboard-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p,
.dashboard-header p {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* ── Vibes ── */
.vibes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.vibe-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}

.vibe-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}

.vibe-icon {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.vibe-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.vibe-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Events ── */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.event-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.event-card:hover {
  border-color: var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.event-cover {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
}

.event-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.event-media-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(6, 10, 8, 0.78);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold2);
}

/* ── Trap Summer Tour entry ── */
.tour-entry {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 1.75rem 1.5rem 0.5rem;
  scroll-margin-top: 5rem;
  border-top: 1px solid var(--border2);
  background: linear-gradient(180deg, rgba(6, 10, 8, 0) 0%, rgba(6, 10, 8, 0.35) 100%);
}

.tour-entry-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, opacity 0.5s ease;
}

.tour-entry-link:hover { transform: translateY(3px); }

.tour-entry.is-seen .tour-entry-link {
  padding: 0.25rem 1rem 0.75rem;
}

.tour-entry-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.tour-entry.is-seen .tour-entry-hint {
  opacity: 0;
  transform: translateY(-16px) scale(0.96);
  pointer-events: none;
}

.tour-entry-peek {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #ffc4ea;
  text-shadow: 0 0 24px rgba(255, 123, 203, 0.35);
  animation: tour-peek-wiggle 2.8s ease-in-out infinite;
}

.tour-entry-sparkles {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #ff7bcb;
}

.tour-entry-sparkles span:nth-child(1) { animation: tour-sparkle-pop 2.2s ease-in-out infinite; }
.tour-entry-sparkles span:nth-child(2) { animation: tour-sparkle-pop 2.2s ease-in-out 0.35s infinite; }
.tour-entry-sparkles span:nth-child(3) { animation: tour-sparkle-pop 2.2s ease-in-out 0.7s infinite; }

.tour-entry-arrow {
  font-size: 1.35rem;
  color: #ff7bcb;
  transition: opacity 0.5s ease;
  animation: tour-entry-bounce 2s ease-in-out infinite;
}

.tour-entry.is-seen .tour-entry-arrow {
  opacity: 0.35;
  animation: none;
}

.tour-entry.is-seen {
  padding-top: 0.75rem;
  padding-bottom: 0;
}

@keyframes tour-entry-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

@keyframes tour-peek-wiggle {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  33% { transform: rotate(1.5deg) translateY(-4px); }
  66% { transform: rotate(-0.5deg) translateY(-1px); }
}

@keyframes tour-sparkle-pop {
  0%, 100% { opacity: 0.35; transform: scale(0.85) translateY(0); }
  50% { opacity: 1; transform: scale(1.15) translateY(-3px); }
}

/* ── Trap Summer Tour ── */
.tour-section {
  --tour-edge: #0c0812;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 3.5rem 2rem 5rem;
  overflow: hidden;
  border-block: 1px solid var(--border2);
  scroll-margin-top: 5rem;
}

.tour-section-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 10, 8, 0.55) 0%, rgba(6, 10, 8, 0.82) 50%, rgba(6, 10, 8, 0.92) 100%),
    url("/static/img/trap-tour-section-bg.jpg") center / cover no-repeat;
}

.tour-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.tour-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tour-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tour-year { color: var(--gold2); }
.tour-city { color: var(--text); }

.tour-interactive {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(300px, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.tour-stops-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.tour-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, var(--gold2) 55%, #ff7bcb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.65rem;
}

.tour-lead {
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 1rem;
}

.tour-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tour-brand { color: #e8e8e8; }
.tour-brand--glade {
  font-style: italic;
  color: #ff7bcb;
  text-transform: none;
  letter-spacing: 0.04em;
}

.tour-brand-dot { color: #ff4da6; font-size: 0.62rem; }

.tour-stop-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.tour-stop-list > li { list-style: none; }

.tour-stop-item--ticket {
  transition: transform 0.25s ease;
}

.tour-stop-item--ticket:hover,
.tour-stop-item--ticket:has(.tour-stop.is-active),
.tour-stop-item--ticket:has(.tour-stop-ticket:hover) {
  transform: translateX(4px);
}

.tour-stop-item--ticket .tour-stop {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: none;
}

.tour-stop-item--ticket .tour-stop:hover,
.tour-stop-item--ticket .tour-stop.is-active {
  border-bottom: none;
  transform: none;
}

.tour-stop-ticket {
  display: block;
  padding: 0.6rem 1.1rem 0.65rem;
  border: 1px solid rgba(255, 77, 166, 0.35);
  border-top: 1px solid rgba(255, 77, 166, 0.2);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: rgba(48, 12, 36, 0.5);
  font-size: 0.78rem;
  line-height: 1.4;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.tour-stop-ticket strong {
  color: #ff9ed6;
  font-weight: 700;
}

.tour-stop-ticket:hover {
  background: rgba(48, 12, 36, 0.72);
  color: #fff;
}

.tour-stop-item--ticket:hover .tour-stop-ticket,
.tour-stop-item--ticket:has(.tour-stop.is-active) .tour-stop-ticket {
  border-color: rgba(255, 77, 166, 0.5);
  background: rgba(48, 12, 36, 0.62);
}

.tour-stop {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: rgba(8, 12, 10, 0.72);
  backdrop-filter: blur(10px);
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.tour-stop:hover,
.tour-stop.is-active {
  border-color: rgba(255, 77, 166, 0.45);
  background: rgba(48, 12, 36, 0.55);
  transform: translateX(4px);
  box-shadow: 0 0 28px rgba(233, 30, 140, 0.12);
}

.tour-stop--done {
  border-color: rgba(201, 162, 39, 0.3);
  background: rgba(26, 61, 40, 0.4);
}

.tour-stop--done:hover,
.tour-stop--done.is-active {
  border-color: rgba(201, 162, 39, 0.55);
  background: rgba(26, 61, 40, 0.55);
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.1);
}

.tour-stop--next {
  border-color: rgba(255, 77, 166, 0.35);
}

.tour-stop--next.is-active {
  border-color: rgba(255, 77, 166, 0.65);
  box-shadow: 0 0 32px rgba(233, 30, 140, 0.18);
}

.tour-stop-date {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.tour-stop--next .tour-stop-date { color: #ff9ed6; }

.tour-stop-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.tour-stop-body strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.tour-stop-body span {
  font-size: 0.8rem;
  color: var(--muted);
}

.tour-stop-tag {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border2);
  color: var(--muted);
  white-space: nowrap;
}

.tour-stop--done .tour-stop-tag {
  color: var(--gold2);
  border-color: var(--border);
  background: var(--gold-dim);
}

.tour-stop--next .tour-stop-tag,
.tour-stop--next.is-active .tour-stop-tag {
  color: #ff9ed6;
  border-color: rgba(255, 77, 166, 0.4);
  background: rgba(48, 12, 36, 0.45);
}

.tour-stop--secret .tour-stop-tag {
  color: #ff7bcb;
  border-color: rgba(255, 77, 166, 0.35);
}

.tour-calendar {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  background: rgba(6, 10, 8, 0.55);
  backdrop-filter: blur(12px);
}

.tour-cta {
  margin-top: 1.25rem;
  width: 100%;
}

.tour-poster-view {
  position: sticky;
  top: 5.5rem;
  text-align: center;
  max-width: 420px;
}

.tour-poster-stage {
  width: 100%;
  border-radius: calc(var(--radius-sm) + 2px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.5);
  box-shadow:
    0 0 0 1px rgba(233, 30, 140, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.45);
  transition:
    aspect-ratio 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.tour-poster-stage.is-tour-main {
  aspect-ratio: 3 / 4;
  max-height: min(62vh, 520px);
}

.tour-poster-stage.is-event-poster {
  aspect-ratio: 1 / 1;
  max-height: min(52vh, 420px);
}

.tour-poster-view-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-poster-view-btn:hover:not([disabled]) {
  transform: scale(1.015);
}

.tour-poster-view-btn[disabled] {
  cursor: default;
}

.tour-poster-view-btn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.tour-poster-view-btn img.is-visible { opacity: 1; }

.tour-poster-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(233, 30, 140, 0.12), transparent 60%),
    rgba(8, 6, 14, 0.85);
}

.tour-poster-placeholder-icon {
  font-size: 1.5rem;
  color: #ff7bcb;
  opacity: 0.8;
}

.tour-poster-placeholder strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.tour-poster-placeholder span {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tour-poster-view-hint {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}

.tour-poster-view-btn:hover:not([disabled]) .tour-poster-view-hint { opacity: 1; }

.tour-poster-caption {
  margin: 0.65rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tour-poster-caption strong { font-size: 0.82rem; }
.tour-poster-caption span { font-size: 0.72rem; color: var(--muted); }

#tour { scroll-margin-top: 5rem; }

.poster-lightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(4, 6, 5, 0.94);
  backdrop-filter: blur(14px);
}

.poster-lightbox.hidden { display: none; }

.poster-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.poster-lightbox-inner {
  margin: 0;
  max-width: min(520px, 92vw);
  text-align: center;
}

.poster-lightbox-inner img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.poster-lightbox-inner figcaption {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.event-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 8, 0.45);
  opacity: 0;
  transition: opacity 0.3s;
}

.event-card:hover .event-overlay { opacity: 1; }

.event-cta {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--gold2);
  color: #1a1208;
  font-weight: 700;
  font-size: 0.85rem;
}

.photo-count {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: rgba(6, 10, 8, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border2);
}

.event-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.event-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.event-date { color: var(--muted); font-size: 0.85rem; }

.event-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.event-body > p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.event-preview-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.event-preview-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border2);
  opacity: 0.8;
}

/* ── CTA band ── */
.cta-band {
  margin: 0 2rem 5rem;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 2rem;
}

.cta-inner {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(135deg, rgba(45, 90, 61, 0.3), rgba(201, 168, 76, 0.08)),
    var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(201, 168, 76, 0.12), transparent);
  pointer-events: none;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 0.5rem;
  position: relative;
}

.cta-inner p {
  color: var(--muted);
  margin-bottom: 1.75rem;
  position: relative;
}

.cta-inner .btn { position: relative; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-lg { padding: 1rem 1.85rem; font-size: 0.95rem; }
.btn-full { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  color: #141008;
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
}

.hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.75rem;
}

/* ── Gallery page ── */
.gallery-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--gold2); }

.gallery-header { margin-bottom: 2.5rem; }

.gallery-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.gallery-meta .dot { opacity: 0.4; }

.gallery-desc {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 55ch;
}

.gallery-masonry {
  columns: 4;
  column-gap: 0.75rem;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
  break-inside: avoid;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery-item {
  background: var(--surface2);
  min-height: 120px;
}

.gallery-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, var(--surface2) 8%, #1a2420 18%, var(--surface2) 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s linear infinite;
  z-index: 0;
}

.gallery-item.is-loaded .gallery-shimmer { display: none; }

@keyframes gallery-shimmer {
  to { background-position-x: -200%; }
}

.gallery-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.35s, filter 0.45s ease;
}

.gallery-photo.is-thumb {
  opacity: 1;
  filter: blur(10px) saturate(0.85);
  transform: scale(1.04);
}

.gallery-photo.is-full {
  opacity: 1;
  filter: none;
  transform: none;
}

.gallery-item--tall img { min-height: 280px; object-fit: cover; }

.gallery-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 8, 0.5);
  font-size: 1.5rem;
  color: var(--gold2);
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-item:hover .gallery-photo.is-full { transform: scale(1.03); filter: brightness(0.85); }
.gallery-item:hover .gallery-zoom { opacity: 1; }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 5, 0.96);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox.hidden { display: none; }

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: var(--surface3); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-nav:hover {
  background: var(--surface3);
  border-color: var(--border);
}

.lightbox-nav.prev { left: 1.25rem; }
.lightbox-nav.next { right: 1.25rem; }

.lightbox-bar {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  background: var(--surface2);
  border-radius: 999px;
  border: 1px solid var(--border2);
}

.lightbox-counter {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.lightbox-download {
  padding: 0.45rem 1rem !important;
  font-size: 0.82rem !important;
}

.footer-copy a {
  color: var(--gold);
  text-decoration: none;
}

.footer-copy a:hover { text-decoration: underline; }

/* ── Dashboard ── */
.dashboard {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.dashboard-header { margin-bottom: 2rem; }

.auth-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-top: 1rem;
}

.auth-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin: 0 auto 1.25rem;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.auth-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: white;
}

.telegram-widget-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
  min-height: 46px;
}

.bot-login-fallback {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border2);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: left;
}

.bot-login-fallback summary {
  cursor: pointer;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.bot-login-fallback .btn { margin-top: 0.25rem; }

.team-cta {
  text-align: center;
  background: linear-gradient(160deg, var(--surface) 0%, rgba(26, 61, 40, 0.35) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin-top: 1.25rem;
}

.team-cta-icon {
  font-size: 1.5rem;
  color: var(--gold2);
  margin-bottom: 0.75rem;
}

.team-cta h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.team-cta .btn { margin-top: 1.25rem; }

.auth-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
}

.stats-root {
  margin-top: 2rem;
  padding-top: 0.25rem;
}

.user-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #1a3d28);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--gold2);
  text-transform: uppercase;
  flex-shrink: 0;
}

.user-avatar--photo {
  display: block;
  object-fit: cover;
  background: var(--surface2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.user-info strong { display: block; font-size: 0.95rem; }

.user-role {
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: capitalize;
}

.auth-card, .rules-card, .stats-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.25rem;
}

.stats-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.stats-card h4 code {
  color: var(--gold2);
  background: var(--gold-dim);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.85em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.stat-box {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}

.stat-box .value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold2);
  letter-spacing: -0.02em;
}

.stat-box .label {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.tier-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--gold2);
  font-size: 0.82rem;
  font-weight: 500;
}

.rules-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.rules-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.tier-item {
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: var(--surface2);
}

.tier-item span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.tier-item p {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.tier-bronze span { color: #cd7f32; }
.tier-silver span { color: #a8b4c0; }
.tier-gold span { color: var(--gold2); }
.tier-none span { color: var(--muted); }

.rules-note { margin-top: 1rem; }

.hidden { display: none !important; }

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border2);
  padding: 2.5rem 2rem 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold2); }

.footer-copy {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  opacity: 0.6;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 3rem; }
  .hero-visual { order: -1; }
  .hero-frame img { aspect-ratio: 16/9; max-height: 340px; }
  .vibes-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .event-cover { min-height: 240px; }
  .tour-interactive { grid-template-columns: 1fr; }
  .tour-poster-view {
    position: static;
    max-width: 300px;
    margin: 0 auto;
  }
  .tour-poster-stage.is-tour-main { max-height: min(50vh, 400px); }
  .tour-poster-stage.is-event-poster { max-height: min(44vh, 340px); }
  .tour-stop {
    grid-template-columns: 64px 1fr auto;
    padding: 0.85rem 0.9rem;
  }
  .tour-section { padding: 3.5rem 1.25rem 4rem; }
  .gallery-masonry { columns: 3; }
  .rules-tiers { grid-template-columns: repeat(2, 1fr); }
}

/* ── Admin editor ── */
.admin-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.admin-header-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem 1.5rem;
  margin: 0;
}

.admin-card legend {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 0.25rem;
  margin-bottom: 1rem;
  color: var(--gold2);
}

.admin-card label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.admin-card input[type="text"],
.admin-card input[type="url"],
.admin-card input[type="date"],
.admin-card textarea,
.admin-card select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.admin-card textarea { resize: vertical; min-height: 60px; }

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  color: var(--text) !important;
}

.checkbox-label input { width: auto; margin: 0; }

.admin-subcard {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.admin-actions {
  margin-top: 0.5rem;
}

.btn-sm {
  padding: 0.45rem 0.9rem !important;
  font-size: 0.82rem !important;
  margin-top: 0.5rem;
}

.organizer-panel {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  background: var(--surface2);
}

.organizer-panel h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.organizer-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.organizer-panel-summary p {
  font-size: 0.88rem;
  line-height: 1.45;
}

.organizer-head {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border2);
}

.organizer-head h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.admin-details {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: rgba(0, 0, 0, 0.15);
}

.admin-details summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.admin-details[open] summary { margin-bottom: 0.65rem; color: var(--gold2); }

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.promoters-intro { margin-bottom: 1rem; }

.promoter-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.promoter-card-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold2);
  letter-spacing: 0.04em;
}

.promoter-card .btn-sm { margin-top: 0; }

.tg-id-label { display: block; margin-bottom: 1rem; }

.tg-id-field {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(42, 171, 238, 0.35);
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.08), rgba(34, 158, 217, 0.04));
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tg-id-field:focus-within {
  border-color: rgba(42, 171, 238, 0.65);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.12);
}

.tg-id-field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  flex-shrink: 0;
  color: #2aabee;
  background: rgba(42, 171, 238, 0.12);
  border-right: 1px solid rgba(42, 171, 238, 0.2);
}

.tg-id-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0.75rem 0.9rem !important;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", monospace !important;
  font-size: 1rem !important;
  letter-spacing: 0.06em;
  color: var(--text) !important;
}

.tg-id-input::placeholder {
  color: rgba(138, 148, 140, 0.7);
  letter-spacing: 0.02em;
}

.tg-id-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
}

.admin-page--promoters .admin-card label > input,
.admin-page--promoters .admin-card label > select {
  display: block;
  width: 100%;
  margin-top: 0;
  padding: 0.65rem 0.85rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

/* ── Telegram Mini App ── */
body.tg-webapp {
  padding-bottom: env(safe-area-inset-bottom);
}

body.tg-webapp .site-header,
body.tg-webapp .site-footer {
  display: none;
}

body.tg-webapp main {
  padding-top: max(0.75rem, env(safe-area-inset-top));
}

body.tg-webapp .dashboard {
  padding-top: 1.5rem;
}

body.tg-webapp-auth #auth-card > * {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body.tg-webapp-auth #auth-card::after {
  content: "Входим через Telegram…";
  display: block;
  padding: 2rem 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  animation: tg-pulse 1.2s ease-in-out infinite;
}

@keyframes tg-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.promoters-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.45) var(--surface2);
}

.promoters-list::-webkit-scrollbar {
  width: 8px;
}

.promoters-list::-webkit-scrollbar-track {
  background: var(--surface2);
  border-radius: 999px;
  margin: 4px 0;
}

.promoters-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.7), rgba(45, 90, 61, 0.8));
  border-radius: 999px;
  border: 2px solid var(--surface2);
}

.promoters-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold2), var(--green));
}

.promoters-list::-webkit-scrollbar-corner {
  background: transparent;
}

.stats-card--compact { padding: 1.1rem; }
.stats-grid--compact .stat-box { padding: 0.75rem; }
.stats-grid--compact .stat-box .value { font-size: 1.15rem; }

.promoter-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.promoter-card-main {
  flex: 1;
  min-width: 0;
}

.promoter-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #1a3d28);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gold2);
  text-transform: uppercase;
  flex-shrink: 0;
}

.promoter-avatar--photo {
  display: block;
  object-fit: cover;
  background: var(--surface2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.promoter-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.promoter-badges { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.link-badge {
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border2);
}

.link-ok { color: #7dcea0; background: rgba(45, 120, 75, 0.15); }
.link-none { color: var(--muted); }
.link-off { color: #c07070; }

@media (max-width: 640px) {
  .site-header { padding: 0.85rem 1.25rem; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem;
    background: rgba(6, 10, 8, 0.97);
    border-bottom: 1px solid var(--border2);
    backdrop-filter: blur(20px);
  }

  .site-nav.open { display: flex; }
  .site-nav a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .section, .hero, .gallery-page, .dashboard, .tour-section { padding-inline: 1.25rem; }
  .tour-section { padding-block: 3.5rem; }
  .cta-band { padding-inline: 1.25rem; margin-bottom: 3rem; }
  .gallery-masonry { columns: 2; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .marquee-track { font-size: 0.65rem; }
}