/* ============================================================
   SPB_VAG — Public Site Stylesheet (isolated)
   Tokens: graphite/charcoal base, signal red accent
   Fonts: Oswald (headings) + PT Sans (body)
   Dials: ENERGY 2 / RHYTHM 2 / MOTION 1
   This file is loaded ONLY by templates/base.html (public).
   Admin uses style.css + admin.css (unchanged).
   ============================================================ */

/* === Tokens === */
:root {
  --pv-bg:            #161618;
  --pv-bg-deep:       #0E0E10;
  --pv-surface:       #1E1E22;
  --pv-surface-hover: #26262B;
  --pv-surface-alt:   #1A1A1E;
  --pv-accent-soft:   #2A1A1A;

  --pv-text:          #F2F0EB;
  --pv-text-muted:    #9B958A;
  --pv-text-dim:      #6B665E;

  --pv-border:             #2E2E34;
  --pv-border-strong:      #3D3D44;
  --pv-border-interactive: #76767C;

  --pv-accent:        #D43131;
  --pv-accent-hover:  #B82828;
  --pv-on-accent:     #FFFFFF;

  --pv-info:          #229ED9;
  --pv-info-hover:    #1B8DC4;
  --pv-on-info:       #FFFFFF;

  --pv-font-heading:  'Oswald', 'PT Sans', sans-serif;
  --pv-font-body:     'PT Sans', 'Noto Sans', 'Verdana', 'DejaVu Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';

  --pv-space-xs:  0.5rem;
  --pv-space-sm:  1rem;
  --pv-space-md:  1.75rem;
  --pv-space-lg:  3rem;
  --pv-space-xl:  4.5rem;
  --pv-space-2xl: 6rem;

  --pv-radius-sm: 6px;
  --pv-radius-md: 10px;
  --pv-radius-lg: 16px;

  --pv-duration-normal:    220ms;
  --pv-transition-fast:    150ms ease-out;
  --pv-transition-normal:  var(--pv-duration-normal) ease-out;

  --pv-container-max:    1200px;
  --pv-container-narrow: 760px;
  --pv-nav-height:       68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--pv-nav-height);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--pv-font-body);
  background-color: var(--pv-bg);
  color: var(--pv-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* === Focus States === */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pv-accent);
  outline-offset: 2px;
  border-radius: var(--pv-radius-sm);
}

/* Elements with accent background need a light focus ring to stay visible */
.btn-primary:focus-visible,
.btn-hero-tg:focus-visible,
.btn-merch:focus-visible,
.filter-btn--active:focus-visible,
.lightbox-close:focus-visible {
  outline: 2px solid var(--pv-text);
  outline-offset: 2px;
}

/* === Layout === */
.container {
  max-width: var(--pv-container-max);
  margin: 0 auto;
  padding: 0 var(--pv-space-md);
}

.container--narrow {
  max-width: var(--pv-container-narrow);
}

.section {
  padding: var(--pv-space-2xl) 0;
  position: relative;
}

.section-alt {
  background-color: var(--pv-bg-deep);
}

/* === Section Header === */
.section-header {
  text-align: center;
  margin-bottom: var(--pv-space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Section tag: plain typographic label, not a capsule/pill (R-09 override, DESIGN.md) */
.section-tag {
  display: block;
  font-family: var(--pv-font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--pv-text-muted);
  margin-bottom: var(--pv-space-sm);
  border: none;
  background: none;
  padding: 0;
  border-radius: 0;
}

.section-title {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  letter-spacing: 0.01em;
  margin-bottom: var(--pv-space-xs);
  text-transform: uppercase;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--pv-text-muted);
  line-height: 1.7;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--pv-nav-height);
  z-index: 1000;
  transition: background-color var(--pv-transition-normal), border-color var(--pv-transition-normal);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(14, 14, 16, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--pv-border);
}

.nav-container {
  max-width: var(--pv-container-max);
  margin: 0 auto;
  padding: 0 var(--pv-space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-text {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-accent {
  color: var(--pv-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--pv-space-md);
}

.nav-link {
  font-size: 0.82rem;
  color: var(--pv-text-muted);
  transition: color var(--pv-transition-fast);
  font-weight: 400;
  padding: 0.4rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--pv-text);
}

.nav-link--active {
  color: var(--pv-text);
  position: relative;
}

.nav-link--active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background-color: var(--pv-accent);
}

.nav-cta {
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--pv-accent);
  border-radius: var(--pv-radius-sm);
  color: var(--pv-text);
  font-weight: 700;
  font-size: 0.82rem;
  transition: background-color var(--pv-transition-fast), color var(--pv-transition-fast);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  background-color: var(--pv-accent);
  color: var(--pv-on-accent);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 1001;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background-color: var(--pv-text);
  border-radius: 2px;
  transition: transform var(--pv-transition-normal), opacity var(--pv-transition-normal);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Hero (home page) === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--pv-nav-height) + var(--pv-space-xl)) var(--pv-space-md) var(--pv-space-2xl);
  overflow: hidden;
}

/* Decorative grid and radial glow removed (DESIGN.md avoids list) */
.hero-bg,
.hero-grid,
.hero-gradient {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  min-width: 0;
}

.hero-title {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 7rem);
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: var(--pv-space-sm);
  text-transform: uppercase;
}

.hero-underscore {
  color: var(--pv-accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--pv-text-muted);
  margin-bottom: var(--pv-space-md);
  font-weight: 400;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--pv-text-muted);
  max-width: 620px;
  margin: 0 auto var(--pv-space-lg);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--pv-space-sm);
  align-items: center;
  margin-bottom: var(--pv-space-xl);
}

.hero-actions-row {
  display: flex;
  gap: var(--pv-space-sm);
  width: 100%;
  max-width: 480px;
}

.hero-actions-row .btn {
  flex: 1;
  justify-content: center;
}

.hero-actions > .btn {
  width: 100%;
  max-width: 480px;
  justify-content: center;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--pv-radius-sm);
  font-family: var(--pv-font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color var(--pv-transition-fast), border-color var(--pv-transition-fast), color var(--pv-transition-fast);
  border: 1px solid transparent;
  min-height: 44px;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--pv-accent);
  color: var(--pv-on-accent);
  border-color: var(--pv-accent);
}

.btn-primary:hover {
  background-color: var(--pv-accent-hover);
  border-color: var(--pv-accent-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--pv-text);
  border-color: var(--pv-border-interactive);
  transition: background-color var(--pv-transition-normal), border-color var(--pv-transition-normal), color var(--pv-transition-normal);
}

.btn-secondary:hover {
  background-color: var(--pv-info);
  color: var(--pv-on-info);
  border-color: var(--pv-info);
}

.btn-outline {
  background-color: transparent;
  color: var(--pv-text);
  border-color: var(--pv-border-interactive);
}

.btn-outline:hover {
  border-color: var(--pv-accent);
  color: var(--pv-text);
  background-color: var(--pv-accent-soft);
}

.btn-merch {
  background-color: var(--pv-accent);
  color: var(--pv-on-accent);
  border-color: var(--pv-accent);
}

.btn-merch:hover {
  background-color: var(--pv-accent-hover);
  border-color: var(--pv-accent-hover);
}

.btn-hero-tg {
  background-color: transparent;
  color: var(--pv-text);
  border-color: var(--pv-border-interactive);
  transition: background-color var(--pv-transition-normal), border-color var(--pv-transition-normal), color var(--pv-transition-normal);
}

.btn-hero-tg:hover {
  background-color: var(--pv-info);
  color: var(--pv-on-info);
  border-color: var(--pv-info);
}

.btn-small {
  padding: 0.55rem 1.2rem;
  font-size: 0.78rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === Hero Stats === */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--pv-space-lg);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  min-width: 0;
}

.stat-value {
  display: block;
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--pv-text);
  letter-spacing: 0.02em;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--pv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.4rem;
}

/* === Hero Scroll Indicator (static, no animation) === */
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.hero-scroll span {
  font-size: 0.68rem;
  color: var(--pv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scroll-arrow {
  width: 2px;
  height: 28px;
  background-color: var(--pv-text-dim);
}

/* === Narrative (about page prose) === */
.narrative {
  font-size: 1rem;
  color: var(--pv-text-muted);
  line-height: 1.85;
}

.narrative p {
  margin-bottom: var(--pv-space-sm);
}

.narrative p:last-child {
  margin-bottom: 0;
}

.narrative--centered {
  text-align: center;
  margin-top: var(--pv-space-lg);
}

.narrative-lead {
  font-family: var(--pv-font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--pv-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--pv-space-sm);
  line-height: 1.4;
}

/* === Quote cards (about page) — restrained, not identical floating cards === */
.quote-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--pv-space-sm);
  margin: var(--pv-space-lg) 0;
}

.quote-card {
  padding: var(--pv-space-md) var(--pv-space-sm);
  background-color: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-md);
  font-size: 0.92rem;
  color: var(--pv-text-muted);
  text-align: center;
  line-height: 1.6;
  transition: border-color var(--pv-transition-normal);
  min-width: 0;
}

.quote-card:hover {
  border-color: var(--pv-border-strong);
}

.quote-card--accent {
  background-color: var(--pv-surface-alt);
  color: var(--pv-text);
  font-weight: 700;
}

/* === Values grid — numbered, not identical icon cards === */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--pv-space-md);
}

.value-card {
  background-color: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-md);
  padding: var(--pv-space-md);
  transition: border-color var(--pv-transition-normal);
  min-width: 0;
}

.value-card:hover {
  border-color: var(--pv-border-strong);
}

.value-number {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--pv-accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--pv-space-xs);
  line-height: 1;
}

.value-title {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--pv-space-xs);
}

.value-text {
  font-size: 0.88rem;
  color: var(--pv-text-muted);
  line-height: 1.7;
}

/* === Events === */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--pv-space-md);
}

.event-card {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pv-space-sm);
  background-color: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-md);
  padding: var(--pv-space-md);
  transition: border-color var(--pv-transition-normal), background-color var(--pv-transition-normal);
  min-width: 0;
}

.event-card:hover {
  border-color: var(--pv-border-interactive);
  background-color: var(--pv-surface-hover);
}

.event-image {
  flex-basis: 100%;
  max-width: 100%;
  margin-bottom: var(--pv-space-sm);
  text-align: center;
}

.event-image img {
  display: inline-block;
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  border-radius: var(--pv-radius-sm);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 64px;
  padding: var(--pv-space-sm);
  background-color: var(--pv-bg-deep);
  border-radius: var(--pv-radius-sm);
  border: 1px solid var(--pv-border);
  flex-shrink: 0;
}

.event-day {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--pv-text);
  line-height: 1;
}

.event-month {
  font-size: 0.72rem;
  color: var(--pv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

.event-date--upcoming {
  background-color: var(--pv-accent);
  border-color: var(--pv-accent-hover);
}

.event-date--upcoming .event-day {
  color: var(--pv-on-accent);
}

.event-date--upcoming .event-month {
  color: rgba(255, 255, 255, 0.82);
}

.event-body {
  flex: 1;
  min-width: 0;
}

.event-title {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--pv-space-xs);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pv-space-xs) var(--pv-space-sm);
  margin-bottom: var(--pv-space-xs);
}

.event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--pv-text-muted);
}

.event-desc {
  font-size: 0.85rem;
  color: var(--pv-text-muted);
  line-height: 1.7;
  margin-bottom: var(--pv-space-xs);
  white-space: pre-wrap;
  word-break: break-word;
}

.event-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--pv-text);
  font-weight: 700;
  transition: color var(--pv-transition-fast);
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--pv-border-interactive);
}

.event-map-link:hover {
  text-decoration-color: var(--pv-accent);
}

.events-empty {
  text-align: center;
  font-size: 0.92rem;
  color: var(--pv-text-muted);
  padding: var(--pv-space-lg) var(--pv-space-md);
  border: 1px dashed var(--pv-border);
  border-radius: var(--pv-radius-md);
  max-width: 600px;
  margin: 0 auto;
}

/* === Past Events === */
.past-events-section {
  padding-top: var(--pv-space-2xl);
  padding-bottom: var(--pv-space-2xl);
}

.event-card--past {
  opacity: 0.8;
}

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

.event-card--past .event-month {
  color: var(--pv-text-muted);
}

/* === Achievements === */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--pv-space-md);
}

.achievement-card {
  background-color: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-md);
  padding: var(--pv-space-md);
  transition: border-color var(--pv-transition-normal);
  min-width: 0;
}

.achievement-card:hover {
  border-color: var(--pv-border-strong);
}

.achievement-card--highlight {
  border-color: var(--pv-accent);
  background-color: var(--pv-accent-soft);
}

.achievement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--pv-radius-sm);
  background-color: rgba(212, 49, 49, 0.12);
  color: var(--pv-accent);
  margin-bottom: var(--pv-space-sm);
}

.achievement-card--highlight .achievement-icon {
  background-color: rgba(212, 49, 49, 0.18);
}

.achievement-title {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--pv-space-xs);
}

.achievement-desc {
  font-size: 0.85rem;
  color: var(--pv-text-muted);
  line-height: 1.7;
}

/* === Featured Achievement (with image) === */
.achievement-feature {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: var(--pv-space-xl);
  align-items: center;
  margin-bottom: var(--pv-space-2xl);
}

.achievement-feature--reverse {
  grid-template-columns: 1fr minmax(0, 380px);
}
.achievement-feature--reverse .achievement-feature__visual {
  order: 2;
}

.achievement-feature__visual {
  position: relative;
}

.achievement-feature__link {
  display: block;
  border-radius: var(--pv-radius-lg);
  overflow: hidden;
  background-color: var(--pv-surface);
  border: 1px solid var(--pv-border);
  transition: border-color var(--pv-transition-normal),
              transform var(--pv-transition-normal);
  line-height: 0;
}
.achievement-feature__link:hover {
  border-color: var(--pv-accent);
  transform: translateY(-4px);
}

.achievement-feature__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 400ms ease-out;
}
.achievement-feature__link:hover .achievement-feature__img {
  transform: scale(1.03);
}

.achievement-feature__zoom {
  position: absolute;
  bottom: var(--pv-space-sm);
  right: var(--pv-space-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--pv-radius-sm);
  background-color: rgba(14, 14, 16, 0.82);
  color: var(--pv-text);
  opacity: 0;
  transition: opacity var(--pv-transition-normal);
  pointer-events: none;
}
.achievement-feature__link:hover .achievement-feature__zoom,
.achievement-feature__link:focus-visible .achievement-feature__zoom {
  opacity: 1;
}

.achievement-feature__body {
  min-width: 0;
}

.achievement-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--pv-radius-sm);
  background-color: rgba(212, 49, 49, 0.18);
  color: var(--pv-accent);
  margin-bottom: var(--pv-space-sm);
}

.achievement-feature__subtitle {
  display: inline-block;
  font-family: var(--pv-font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--pv-accent);
  margin-bottom: var(--pv-space-xs);
}

.achievement-feature__title {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: var(--pv-space-md);
  line-height: 1.15;
}

.achievement-feature__text {
  font-size: 0.92rem;
  color: var(--pv-text-muted);
  line-height: 1.8;
  margin-bottom: var(--pv-space-sm);
}
.achievement-feature__text:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .achievement-feature,
  .achievement-feature--reverse {
    grid-template-columns: 1fr;
    gap: var(--pv-space-lg);
  }
  .achievement-feature--reverse .achievement-feature__visual {
    order: 0;
  }
  .achievement-feature__visual {
    max-width: 340px;
    margin: 0 auto;
  }
}

/* === Contests === */
.contests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--pv-space-md);
}

.contest-card {
  background-color: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-md);
  padding: var(--pv-space-md);
  transition: border-color var(--pv-transition-normal);
  min-width: 0;
}

.contest-card:hover {
  border-color: var(--pv-border-strong);
}

.contest-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--pv-radius-sm);
  background-color: rgba(212, 49, 49, 0.12);
  color: var(--pv-accent);
  margin-bottom: var(--pv-space-sm);
}

.contest-title {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--pv-space-xs);
}

.contest-desc {
  font-size: 0.85rem;
  color: var(--pv-text-muted);
  line-height: 1.7;
}

/* === VAGBURG Stories === */
.vagburg-story {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: var(--pv-space-xl);
  align-items: center;
  margin-bottom: var(--pv-space-2xl);
  padding-bottom: var(--pv-space-2xl);
  border-bottom: 1px solid var(--pv-border);
}
.vagburg-story:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.vagburg-story--reverse {
  grid-template-columns: 1fr minmax(0, 380px);
}
.vagburg-story--reverse .vagburg-story__visual {
  order: 2;
}

.vagburg-story__visual {
  position: relative;
}

.vagburg-story__link {
  display: block;
  border-radius: var(--pv-radius-lg);
  overflow: hidden;
  background-color: var(--pv-surface);
  border: 1px solid var(--pv-border);
  transition: border-color var(--pv-transition-normal),
              transform var(--pv-transition-normal);
  line-height: 0;
}
.vagburg-story__link:hover {
  border-color: var(--pv-accent);
  transform: translateY(-4px);
}

.vagburg-story__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 400ms ease-out;
}
.vagburg-story__link:hover .vagburg-story__img {
  transform: scale(1.03);
}

.vagburg-story__zoom {
  position: absolute;
  bottom: var(--pv-space-sm);
  right: var(--pv-space-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--pv-radius-sm);
  background-color: rgba(14, 14, 16, 0.82);
  color: var(--pv-text);
  opacity: 0;
  transition: opacity var(--pv-transition-normal);
  pointer-events: none;
}
.vagburg-story__link:hover .vagburg-story__zoom,
.vagburg-story__link:focus-visible .vagburg-story__zoom {
  opacity: 1;
}

.vagburg-story__body {
  min-width: 0;
}

.vagburg-story__year {
  display: inline-block;
  font-family: var(--pv-font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--pv-accent);
  margin-bottom: var(--pv-space-xs);
}

.vagburg-story__title {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: var(--pv-space-md);
  line-height: 1.15;
}

.vagburg-story__text {
  font-size: 0.92rem;
  color: var(--pv-text-muted);
  line-height: 1.8;
  margin-bottom: var(--pv-space-sm);
}
.vagburg-story__text:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .vagburg-story,
  .vagburg-story--reverse {
    grid-template-columns: 1fr;
    gap: var(--pv-space-lg);
  }
  .vagburg-story--reverse .vagburg-story__visual {
    order: 0;
  }
  .vagburg-story__visual {
    max-width: 340px;
    margin: 0 auto;
  }
}

/* === Partners === */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--pv-space-md);
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--pv-surface);
  border: 1px solid var(--pv-border-interactive);
  border-radius: var(--pv-radius-md);
  padding: var(--pv-space-md);
  transition: border-color var(--pv-transition-normal);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.partner-card:hover {
  border-color: var(--pv-accent);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: var(--pv-radius-sm);
  background-color: rgba(255, 255, 255, 0.04);
  margin-bottom: var(--pv-space-sm);
  overflow: hidden;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--pv-radius-sm);
}

.partner-name {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--pv-space-xs);
}

.partner-desc {
  font-size: 0.85rem;
  color: var(--pv-text-muted);
  line-height: 1.7;
}

.partners-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--pv-space-lg);
}

/* === Join / CTA Section === */
.join-section {
  padding: var(--pv-space-2xl) 0;
}

.join-card {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-lg);
  padding: var(--pv-space-xl) var(--pv-space-lg);
  text-align: center;
}

.join-title {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--pv-space-sm);
  line-height: 1.1;
}

.join-subtitle {
  font-size: 0.95rem;
  color: var(--pv-text-muted);
  max-width: 550px;
  margin: 0 auto var(--pv-space-lg);
  line-height: 1.8;
}

.join-links {
  display: flex;
  flex-direction: column;
  gap: var(--pv-space-xs);
  margin-bottom: var(--pv-space-md);
}

.join-link {
  display: flex;
  align-items: center;
  gap: var(--pv-space-sm);
  padding: var(--pv-space-sm) var(--pv-space-md);
  background-color: var(--pv-surface-alt);
  border: 1px solid var(--pv-border-interactive);
  border-radius: var(--pv-radius-md);
  transition: border-color var(--pv-transition-normal), background-color var(--pv-transition-normal);
  text-align: left;
  min-height: 44px;
  min-width: 0;
}

.join-link:hover {
  border-color: var(--pv-border-interactive);
  background-color: var(--pv-surface-hover);
}

.join-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--pv-radius-sm);
  background-color: rgba(212, 49, 49, 0.1);
  color: var(--pv-accent);
  flex-shrink: 0;
}

.join-link-text {
  flex: 1;
  min-width: 0;
}

.join-link-title {
  display: block;
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

.join-link-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--pv-text-muted);
}

.join-link-arrow {
  color: var(--pv-text-muted);
  transition: color var(--pv-transition-fast);
  flex-shrink: 0;
}

.join-link:hover .join-link-arrow {
  color: var(--pv-text);
}

/* === CTA inline (merch/members/gallery) === */
.cta-inline {
  display: flex;
  gap: var(--pv-space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* === Footer === */
.footer {
  background-color: var(--pv-bg-deep);
  border-top: 1px solid var(--pv-border);
  padding: var(--pv-space-xl) 0 var(--pv-space-md);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--pv-space-lg);
  margin-bottom: var(--pv-space-lg);
}

.footer-brand {
  max-width: 350px;
  min-width: 0;
}

.footer-brand .nav-logo {
  margin-bottom: var(--pv-space-sm);
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--pv-text-muted);
  line-height: 1.8;
}

.footer-heading {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--pv-space-sm);
  color: var(--pv-text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--pv-text-muted);
  transition: color var(--pv-transition-fast);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--pv-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--pv-space-md);
  border-top: 1px solid var(--pv-border);
  flex-wrap: wrap;
  gap: var(--pv-space-xs);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--pv-text-muted);
}

.footer-credits {
  font-size: 0.8rem;
}

.footer-heart {
  color: var(--pv-accent);
}

/* === Page Hero (inner pages) === */
.page-hero {
  position: relative;
  padding: calc(var(--pv-nav-height) + var(--pv-space-2xl)) 0 var(--pv-space-2xl);
  text-align: center;
  overflow: hidden;
}

.page-hero .hero-bg {
  display: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .section-tag {
  margin-bottom: var(--pv-space-sm);
}

.page-hero-title {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: var(--pv-space-sm);
}

.page-hero-subtitle {
  font-size: 1.05rem;
  color: var(--pv-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === Steps grid (merch page) === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--pv-space-md);
  margin-bottom: var(--pv-space-lg);
}

.step-card {
  background-color: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-md);
  padding: var(--pv-space-md);
  min-width: 0;
}

.step-number {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--pv-accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--pv-space-xs);
  line-height: 1;
}

.step-title {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--pv-space-xs);
}

.step-text {
  font-size: 0.88rem;
  color: var(--pv-text-muted);
  line-height: 1.7;
}

/* === Media grids (gallery, merch, members) === */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--pv-space-md);
}

.media-grid--masonry {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.media-grid--members {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.media-grid--gallery {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* === Media card === */
.media-card {
  background-color: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-md);
  overflow: hidden;
  transition: border-color var(--pv-transition-normal);
  min-width: 0;
}

.media-card:hover {
  border-color: var(--pv-border-strong);
}

.media-card--hidden {
  display: none;
}

.media-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--pv-bg-deep);
  overflow: hidden;
}

.media-card--tall .media-card-image {
  aspect-ratio: 3 / 4;
}

.media-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Media placeholder (empty image slots) === */
.media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--pv-space-xs);
  color: var(--pv-border-strong);
  text-align: center;
  padding: var(--pv-space-md);
}

.media-placeholder svg {
  opacity: 0.5;
}

.media-placeholder span {
  font-size: 0.85rem;
  color: var(--pv-text-muted);
  letter-spacing: 0.02em;
}

/* === Video badge === */
.media-video {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.media-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(212, 49, 49, 0.9);
  color: var(--pv-on-accent);
  transition: background var(--pv-transition-fast);
}

.media-card:hover .media-play-badge {
  background: var(--pv-accent);
}

/* === Media card body === */
.media-card-body {
  padding: var(--pv-space-sm) var(--pv-space-md) var(--pv-space-md);
}

.media-card-title {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.media-card-text {
  font-size: 0.85rem;
  color: var(--pv-text-muted);
  line-height: 1.6;
}

.media-card-tag {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pv-text);
  background-color: var(--pv-accent);
  border-radius: var(--pv-radius-sm);
}

/* === Member card === */
.member-card {
  background-color: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-md);
  overflow: hidden;
  transition: border-color var(--pv-transition-normal);
  min-width: 0;
}

.member-card:hover {
  border-color: var(--pv-border-strong);
}

.member-photo {
  aspect-ratio: 4 / 3;
  background-color: var(--pv-bg-deep);
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-body {
  padding: var(--pv-space-sm) var(--pv-space-md) var(--pv-space-md);
}

.member-name {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.member-car {
  font-size: 0.88rem;
  color: var(--pv-text);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.member-note {
  font-size: 0.82rem;
  color: var(--pv-text-muted);
  line-height: 1.6;
}

/* === Empty state === */
.empty-state {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: var(--pv-space-xl) var(--pv-space-md);
  border: 1px dashed var(--pv-border);
  border-radius: var(--pv-radius-md);
}

.empty-state svg {
  color: var(--pv-border-strong);
  margin-bottom: var(--pv-space-sm);
}

.empty-state-title {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--pv-space-xs);
}

.empty-state-text {
  font-size: 0.9rem;
  color: var(--pv-text-muted);
  line-height: 1.7;
}

/* === Gallery filters === */
.gallery-filters {
  display: flex;
  gap: var(--pv-space-xs);
  justify-content: center;
  flex-wrap: nowrap;
  margin-bottom: var(--pv-space-lg);
  position: relative;
  overflow: hidden;
}

.filter-btn[hidden] {
  display: none;
}

.filter-btn--album-view {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}

/* === Album representative cards (reuse media-card anatomy) === */
.media-card--album {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.filter-btn {
  padding: 0.55rem 1.4rem;
  font-family: var(--pv-font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pv-text-muted);
  background: transparent;
  border: 1px solid var(--pv-border-interactive);
  border-radius: var(--pv-radius-sm);
  cursor: pointer;
  transition: color var(--pv-transition-fast), border-color var(--pv-transition-fast), background-color var(--pv-transition-fast);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.filter-btn:hover {
  border-color: var(--pv-border-interactive);
  color: var(--pv-text);
}

.filter-btn--active {
  color: var(--pv-on-accent);
  background-color: var(--pv-accent);
  border-color: var(--pv-accent);
}

.filter-btn--active:hover {
  color: var(--pv-on-accent);
  background-color: var(--pv-accent-hover);
  border-color: var(--pv-accent-hover);
}

.gallery-empty {
  text-align: center;
  font-size: 0.92rem;
  color: var(--pv-text-muted);
  padding: var(--pv-space-md);
}

.gallery-empty--hidden {
  display: none;
}

/* === Contacts grid === */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--pv-space-md);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--pv-space-md);
  padding: var(--pv-space-md);
  background-color: var(--pv-surface);
  border: 1px solid var(--pv-border-interactive);
  border-radius: var(--pv-radius-md);
  transition: border-color var(--pv-transition-normal), background-color var(--pv-transition-normal);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.contact-card:hover {
  border-color: var(--pv-accent);
  background-color: var(--pv-surface-hover);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: var(--pv-radius-sm);
  background-color: rgba(212, 49, 49, 0.1);
  color: var(--pv-accent);
  flex-shrink: 0;
}

.contact-body {
  flex: 1;
  min-width: 0;
}

.contact-title {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.contact-desc {
  font-size: 0.85rem;
  color: var(--pv-text-muted);
  line-height: 1.6;
}

.contact-arrow {
  color: var(--pv-text-muted);
  transition: color var(--pv-transition-fast);
  flex-shrink: 0;
}

.contact-card:hover .contact-arrow {
  color: var(--pv-text);
}

/* === Info card (contacts page) === */
.info-card {
  background-color: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-md);
  padding: var(--pv-space-lg) var(--pv-space-md);
  min-width: 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--pv-border);
  gap: var(--pv-space-sm);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pv-text-muted);
  flex-shrink: 0;
}

.info-value {
  font-size: 0.9rem;
  color: var(--pv-text);
  text-align: right;
  overflow-wrap: break-word;
  word-break: break-word;
}

.info-value--link {
  color: var(--pv-text);
  font-weight: 700;
  transition: text-decoration-color var(--pv-transition-fast);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--pv-border-interactive);
}

.info-value--link:hover {
  text-decoration-color: var(--pv-accent);
}

/* === Signature (about page) === */
.signature-section {
  padding: var(--pv-space-lg) 0;
  text-align: center;
}

.signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.signature-name {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pv-text);
}

.signature-est {
  font-size: 0.85rem;
  color: var(--pv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 14, 16, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--pv-radius-md);
  background: #000;
}

.lightbox-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 80vh;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--pv-radius-md);
}

.lightbox-player-wrap {
  max-width: 90vw;
  max-height: 80vh;
  width: 800px;
}

.lightbox-player-wrap .plyr {
  border-radius: var(--pv-radius-md);
  overflow: hidden;
}

.lightbox-player-wrap .plyr__video-wrapper {
  background: #000;
}

.lightbox-caption {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  max-width: 80vw;
}

.lightbox-counter {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--pv-accent);
  color: var(--pv-on-accent);
  transition: background var(--pv-transition-fast);
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  transition: background var(--pv-transition-fast), color var(--pv-transition-fast);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-nav--prev {
  left: 1.5rem;
}

.lightbox-nav--next {
  right: 1.5rem;
}

@media (max-width: 600px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .lightbox-nav--prev { left: 0.5rem; }
  .lightbox-nav--next { right: 0.5rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
}

/* === Responsive === */
@media (max-width: 900px) {
  :root {
    --pv-space-2xl: 5rem;
    --pv-space-xl: 4rem;
    --pv-space-lg: 2.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .events-grid,
  .achievements-grid,
  .contests-grid,
  .partners-grid,
  .values-grid,
  .contacts-grid,
  .steps-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --pv-space-2xl: 3.5rem;
    --pv-space-xl: 3rem;
    --pv-space-lg: 2rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--pv-bg-deep);
    border-left: 1px solid var(--pv-border);
    flex-direction: column;
    justify-content: flex-start;
    padding: calc(var(--pv-nav-height) + var(--pv-space-md)) var(--pv-space-md) var(--pv-space-md);
    gap: var(--pv-space-sm);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--pv-transition-normal), visibility 0s linear var(--pv-duration-normal);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.6rem 0;
    width: 100%;
    border-bottom: 1px solid var(--pv-border);
    min-height: 48px;
  }

  .nav-link--active::after {
    bottom: 5px;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    border-bottom: none;
    margin-top: var(--pv-space-xs);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    gap: var(--pv-space-sm);
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .events-grid,
  .achievements-grid,
  .contests-grid,
  .partners-grid,
  .values-grid,
  .contacts-grid,
  .steps-grid,
  .media-grid,
  .media-grid--masonry,
  .media-grid--members,
  .media-grid--gallery {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .info-value {
    text-align: left;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    gap: var(--pv-space-sm);
  }

  .contact-arrow {
    display: none;
  }

  .join-card {
    padding: var(--pv-space-lg) var(--pv-space-md);
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--pv-space-sm);
    display: grid;
  }

  .event-card {
    flex-direction: column;
    gap: var(--pv-space-sm);
  }

  .event-image {
    flex-basis: auto;
  }

  .event-date {
    flex-direction: row;
    gap: var(--pv-space-sm);
    min-width: 100%;
    justify-content: flex-start;
  }

  .cta-inline {
    flex-direction: column;
    width: 100%;
  }

  .cta-inline .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions-row {
    flex-direction: column;
  }

  .join-link {
    flex-wrap: wrap;
  }

  .join-link-text {
    flex-basis: calc(100% - 48px - 1rem);
  }

  .join-link-arrow {
    margin-left: auto;
  }
}

/* === Reduced Motion (MOTION 1) === */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* === Upload Modal (Gallery) === */
.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.upload-modal--open {
  opacity: 1;
  visibility: visible;
}
.upload-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.upload-modal-card {
  position: relative;
  background: var(--color-surface, #1a1a1a);
  border: 1px solid var(--color-border, #333);
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.upload-modal--open .upload-modal-card {
  transform: scale(1);
}
  overflow: hidden;
}
.upload-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border, #333);
}
.upload-modal-title {
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}
.upload-modal-close {
  background: none;
  border: none;
  color: var(--color-text-dim, #888);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.upload-modal-close:hover {
  color: var(--color-text, #fff);
}
.upload-form {
  display: flex;
  flex-direction: column;
  max-height: calc(90vh - 60px);
}
.upload-form-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.upload-form-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border, #333);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.upload-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.upload-field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text, #fff);
}
.upload-field-hint {
  font-weight: 400;
  color: var(--color-text-dim, #888);
  font-size: 0.78rem;
}
.upload-field-input {
  background: var(--color-bg-deep, #0d0d0d);
  border: 1px solid var(--color-border, #333);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  color: var(--color-text, #fff);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.upload-field-input:focus {
  border-color: var(--color-accent, #ffce00);
}
.upload-field-textarea {
  resize: vertical;
  min-height: 80px;
}
.req {
  color: #ef4444;
}
.upload-dropzone {
  position: relative;
  border: 2px dashed var(--color-border, #444);
  border-radius: 10px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--color-bg-deep, #0d0d0d);
}
.upload-dropzone:hover,
.upload-dropzone--active {
  border-color: var(--color-accent, #ffce00);
  background: rgba(255, 206, 0, 0.05);
}
@media (hover: none) {
  .upload-dropzone {
    border-color: var(--color-accent, #ffce00);
    background: rgba(255, 206, 0, 0.05);
  }
}
.upload-dropzone-text svg {
  color: var(--color-text-dim, #888);
  margin-bottom: 0.5rem;
}
.upload-dropzone-text p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: var(--color-text-dim, #888);
}
.upload-dropzone-hint {
  font-size: 0.75rem !important;
  opacity: 0.7;
}
.upload-file-input {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.upload-preview-item {
  position: relative;
  width: 100px;
  border: 1px solid var(--color-border, #333);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-deep, #0d0d0d);
}
.upload-preview-thumb {
  width: 100%;
  height: 75px;
  object-fit: cover;
  display: block;
}
.upload-preview-info {
  padding: 0.3rem 0.4rem;
  display: flex;
  flex-direction: column;
}
.upload-preview-name {
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text, #fff);
}
.upload-preview-size {
  font-size: 0.65rem;
  color: var(--color-text-dim, #888);
}
.upload-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-preview-remove:hover {
  background: #ef4444;
}
.upload-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.upload-progress-track {
  flex: 1;
  height: 8px;
  background: var(--color-bg-deep, #0d0d0d);
  border: 1px solid var(--color-border, #333);
  border-radius: 4px;
  overflow: hidden;
}
.upload-progress-fill {
  height: 100%;
  width: 0;
  background: var(--color-accent, #ffce00);
  border-radius: 4px;
  transition: width 0.2s;
}
.upload-progress-text {
  font-size: 0.8rem;
  color: var(--color-text-dim, #888);
  min-width: 3rem;
  text-align: right;
}
.upload-message {
  font-size: 0.85rem;
  flex: 1;
}
.upload-message--error {
  color: #ef4444;
}
.upload-message--success {
  color: #22c55e;
}
.upload-form-actions {
  display: flex;
  gap: 0.75rem;
}
.modal-lock {
  overflow: hidden;
}
.smart-captcha {
  overflow: hidden;
  border-radius: 0;
  background: #161618;
  min-height: 102px;
}
.smart-captcha iframe {
  border-radius: 0;
  background: #161618;
}

/* === Toast notification === */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  padding: 1rem 1.25rem;
  background: #1E1E22;
  border: 1px solid #2E2E34;
  border-left: 4px solid #22c55e;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  font-family: 'PT Sans', 'Noto Sans', sans-serif;
  font-size: 0.9rem;
  color: #F2F0EB;
  opacity: 0;
  transform: translateX(-50%) translateY(1rem);
  pointer-events: none;
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}
.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.toast-text {
  flex: 1;
  line-height: 1.4;
}
.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #9B958A;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 0.25rem;
}
.toast-close:hover {
  color: #F2F0EB;
}
