:root {
  --bg-accent-1: rgba(120, 86, 255, 0.10);
  --bg-accent-2: rgba(0, 200, 255, 0.08);
  --bg-dark-1: #0b1020;
  --bg-dark-2: #0e1426;
  --bg-dark-3: #101830;
  --text: #1a1a1a;
  --text-soft: #2e2e2e;
  --text-muted: #5a5a5a;
  --brand: #ffd166;
  --brand-700: #ffb703;
  --link: #1a73e8;
  --surface: rgba(47, 47, 47, 1);
  --surface-strong: rgba(47, 47, 47, 1);
  --border-color: rgba(255, 255, 255, 0.16);
  --shadow: 0 8px 20px rgba(0,0,0,0.30);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--text-soft);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
  padding-top: 64px;
  background-color: #ffffff;
}

body::before {
  content: "";
  display: none;
}

body::after {
  content: "";
  display: none;
}

@keyframes bg-ozone {
  0% { background-position: 0% 0%, 0% 0%, 0% 0%; }
  50% { background-position: 100% 50%, 50% 100%, 0% 0%; }
  100% { background-position: 0% 0%, 0% 0%, 0% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-left: 50px;
  line-height: 1.1;
  color: #1a1a1a;
  text-shadow: none;
}

p {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.45;
  font-weight: 500;
  margin: 1px 1px 1rem 5px;
  margin-left: 55px;
  max-width: 70ch;
  text-shadow: none;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--brand-700);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 64px;
  background-color: #2f2f2f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  padding: 8px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: bold;
  z-index: 1000;
  flex-wrap: wrap;
  gap: 6px 16px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 0;
  padding: 8px 14px;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

nav a:hover,
nav a:focus-visible {
  background-color: var(--brand);
  color: #2f2f2f;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

nav a.active {
  background-color: var(--brand);
  color: #2f2f2f;
}

footer {
  margin-top: auto;
  height: 56px;
  width: 100%;
  background-color: #2f2f2f;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  z-index: 1000;
  padding: 0 20px;
}

.copy {
  margin: 0;
  padding-left: 15px;
  line-height: 56px;
  font-size: 1.2rem;
  color: #ffffff;
  text-shadow: none;
}

.socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftig {
  height: 30px;
  width: 30px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.ftig:hover {
  transform: scale(1.15);
}

iframe,
img {
  display: block;
  max-width: 100%;
  height: auto;
}

.media {
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 12px auto;
}

.media iframe,
.media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: none;
  border-radius: 12px;
}

.gallery-grid {
  width: 90%;
  max-width: 1200px;
  margin: 12px auto 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-grid .galerie {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
}

.tiktok, .instagram {
  border: 6px solid #ffffff;
  border-radius: 200px;
  width: 300px;
  height: auto;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 20px;
}

.icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #2f2f2f;
}

.icon-wrap img {
  width: 20vw;
  max-width: 300px;
  min-width: 100px;
  height: auto;
  border: 6px solid #fff;
  border-radius: 50%;
  display: block;
  margin-bottom: 12px;
}

.icon-wrap img.tiktok {
  border-color: #fff;
  background-color: #000;
}

.icon-wrap p {
  margin: 0;
  color: #2f2f2f;
  text-shadow: none;
  font-weight: 600;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.mapy1, .mapy2 {
  text-align: center;
  margin: 6px auto 0;
  width: 90%;
  max-width: 1200px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  text-shadow: none;
}

.sponsors-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 25px;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 16px 55px 0 55px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex: 0 0 auto;
}

.sponsor-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.sponsor-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sponsor-name {
  margin: 0;
  margin-left: 0;
  max-width: none;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text);
  text-shadow: none;
  text-align: center;
}

.sponsor-ig {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.9;
}

.enlarge {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

lightbox-img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  backdrop-filter: blur(6px) saturate(120%);
}

.lightbox-close {
  top: -16px;
  right: -16px;
}

.lightbox-prev {
  left: -56px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -56px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 700px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 500px) {
  footer {
    flex-direction: column;
    height: auto;
    gap: 5px;
    padding: 5px 20px;
  }
  .copy { line-height: normal; }
}

@media (max-width: 700px) {
  h1 { margin-left: 20px; font-size: clamp(1.8rem, 6vw, 2.2rem); }
  p { margin-left: 24px; margin-right: 16px; font-size: 1rem; }
  nav { min-height: 60px; padding: 6px 14px; }
  body { padding-top: 84px; }
  .sponsors-row { margin: 12px 24px 0 24px; gap: 20px; flex-wrap: wrap; justify-content: center; }
  .sponsor-card { align-items: center; }
  .sponsor-photo { width: 150px; height: 150px; }
}

@media (max-width: 360px) {
  nav { gap: 4px 10px; }
  nav a { padding: 4px 8px; font-size: 0.95rem; }
  body { padding-top: 100px; }
}
