:root {
  --yellow: #ffd22f;
  --yellow-soft: #ffe670;
  --black: #111111;
  --ink: #222222;
  --gray: #707070;
  --cream: #fff9e8;
  --white: #ffffff;
  --ring: rgba(255, 210, 47, 0.45);
  --radius: 16px;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Barlow', 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(255, 210, 47, 0.4), transparent 42%),
    linear-gradient(180deg, #fffefb, #fff6d6 45%, #fffef2);
  line-height: 1.55;
}

body.intro-lock {
  overflow: hidden;
}

img,
iframe {
  max-width: 100%;
  border: 0;
}

a {
  color: inherit;
}

.container {
  width: min(1100px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(255, 246, 214, 0.87);
  border-bottom: 2px solid rgba(17, 17, 17, 0.12);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.brand span {
  display: block;
  color: var(--gray);
  font-size: 0.9rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--yellow);
  padding: 0.6rem 1rem;
  z-index: 5000;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
  outline: 3px solid var(--ring);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 0.65rem;
  border-radius: 7px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover {
  background: rgba(17, 17, 17, 0.08);
}

.main-nav a[aria-current="page"] {
  background: rgba(17, 17, 17, 0.08);
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
}

.button-mini {
  background: var(--black);
  color: var(--white);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
}

.lang-switch a.active {
  background: var(--black);
  color: var(--yellow);
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-intro-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
}

.site-intro-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

.site-intro-content img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.site-intro-content p {
  margin: 0.35rem 0 0;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.05em;
  font-size: 1.25rem;
}

.site-intro-skip {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-weight: 700;
  backdrop-filter: blur(3px);
}

.site-intro-skip:hover {
  background: rgba(0, 0, 0, 0.55);
}

.hero {
  padding: 3rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.83rem;
  color: var(--gray);
}

h1,
h2,
h3 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.01em;
  color: var(--black);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0.35rem 0 0.75rem;
}

.hero p {
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.button-primary,
.button-secondary,
button {
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.button-primary,
button {
  background: var(--black);
  color: var(--yellow);
}

.button-secondary {
  background: var(--yellow);
  color: var(--black);
}

.button-primary:hover,
.button-secondary:hover,
button:hover {
  transform: translateY(-2px);
}

.hero-card {
  background: linear-gradient(170deg, var(--black), #303030);
  color: var(--yellow-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 210, 47, 0.3);
}

.hero-card h2 {
  color: var(--yellow);
  margin-top: 0;
}

.section-block {
  padding: 2rem 0;
}

.section-block.alt {
  background: rgba(255, 255, 255, 0.7);
  border-block: 1px solid rgba(17, 17, 17, 0.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.card h3,
.card h2 {
  margin-top: 0;
}

.card img,
.media-card iframe {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 0.8rem;
  background: #ececec;
}

.media-card img {
  height: 260px;
  object-fit: contain;
  background: #f3f3f3;
}

.text-link {
  color: #5c4300;
  font-weight: 700;
  text-decoration: underline;
}

.lead {
  max-width: 75ch;
  font-size: 1.08rem;
}

.members-grid {
  margin-bottom: 1.3rem;
}

.member-card {
  border-left: 5px solid var(--yellow);
}

.prose section {
  margin-bottom: 1.6rem;
}

.history-page {
  max-width: 980px;
}

.history-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.4rem;
}

.history-figure {
  margin: 0;
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius);
  padding: 0.7rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.history-figure img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  background: #ededed;
}

.history-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: #4f4f4f;
}

.history-figure figcaption a {
  text-decoration: underline;
}

.history-highlight {
  background: rgba(255, 210, 47, 0.2);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-left: 6px solid var(--yellow);
  border-radius: 12px;
  padding: 0.8rem 1rem;
}

.history-highlight h3 {
  margin-top: 0;
}

.history-highlight ul,
.history-highlight ol {
  margin-bottom: 0;
}

.history-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.history-step {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  padding: 0.9rem;
}

.history-step h3 {
  margin-top: 0;
}

.event-list {
  display: grid;
  gap: 1rem;
}

.event-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
}

.event-item ul {
  margin-top: 0.4rem;
  padding-left: 1.2rem;
}

.gallery-group {
  margin-bottom: 1.8rem;
}

.news-card p {
  margin-top: 0.3rem;
}

.article-page {
  max-width: 780px;
}

.muted {
  color: var(--gray);
}

.article-cover {
  border-radius: var(--radius);
  margin: 0.8rem 0 1rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

form {
  display: grid;
  gap: 0.8rem;
}

label span {
  display: inline-block;
  margin-bottom: 0.22rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 10px;
  padding: 0.64rem 0.72rem;
  font: inherit;
  background: #fffef7;
}

input:focus,
textarea:focus {
  outline: 3px solid var(--ring);
  border-color: rgba(17, 17, 17, 0.45);
}

.map-wrap iframe {
  width: 100%;
  min-height: 290px;
  border-radius: var(--radius);
}

.alert {
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-weight: 600;
}

.alert.success {
  background: #d7f4db;
  color: #0a5520;
}

.alert.error {
  background: #ffe0e0;
  color: #7a0909;
}

.honeypot {
  display: none !important;
}

.form-page {
  max-width: 780px;
}

.small {
  margin: 0;
  color: var(--gray);
  font-size: 0.92rem;
}

.cta-strip {
  background: linear-gradient(110deg, #1f1f1f, #2e2e2e);
  color: var(--yellow-soft);
}

.cta-center {
  text-align: center;
}

.cta-strip h2 {
  margin-top: 0;
  color: var(--yellow);
}

.not-found {
  text-align: center;
  padding-block: 4rem;
}

.site-footer {
  background: #0f0f0f;
  color: #f4f4f4;
  margin-top: 2rem;
  padding-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-grid section h2 {
  color: var(--yellow);
  margin-top: 0;
  font-size: 1.02rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-grid a {
  color: #fff;
}

.copyright {
  margin: 0;
  text-align: center;
  padding: 1rem;
  font-size: 0.88rem;
  color: #cacaca;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.media-thumb {
  display: block;
  cursor: zoom-in;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
}

.media-thumb img {
  margin-bottom: 0;
  transition: transform 0.25s ease;
}

.media-thumb:hover img,
.media-thumb:focus-visible img {
  transform: scale(1.03);
}

.media-card .media-thumb {
  margin-bottom: 0.8rem;
}

.yt-facade {
  position: relative;
  display: block;
  width: 100%;
  height: 260px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  margin-bottom: 0.8rem;
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.yt-facade:hover img,
.yt-facade:focus-visible img {
  opacity: 1;
  transform: scale(1.02);
}

.yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--yellow);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.yt-iframe-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.yt-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-facade {
  width: 100%;
  min-height: 200px;
  border: 1px dashed rgba(17, 17, 17, 0.25);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  cursor: pointer;
}

.map-facade:hover {
  background: var(--cream);
}

.map-facade-pin {
  font-size: 2rem;
}

.map-iframe-wrap {
  position: relative;
  width: 100%;
  min-height: 290px;
  border-radius: var(--radius);
  overflow: hidden;
}

.map-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  padding: 2rem;
}

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

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  background: #1a1a1a;
}

.lightbox-caption {
  color: #fff;
  margin-top: 1rem;
  text-align: center;
  max-width: 90vw;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  cursor: pointer;
}

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

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

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

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.event-item.is-past {
  opacity: 0.92;
  border-style: dashed;
}

.event-item .badge {
  display: inline-block;
  background: var(--gray);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.past-events {
  margin-top: 2.5rem;
}

.news-thumb-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.news-thumb-link img {
  margin-bottom: 0;
}

select {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 10px;
  padding: 0.64rem 0.72rem;
  font: inherit;
  background: #fffef7;
}

select:focus,
button:focus-visible,
.button-primary:focus-visible,
.button-secondary:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #c92020;
  background: #fff5f5;
}

.field-error {
  display: block;
  color: #7a0909;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.sponsors-block h2 {
  margin-top: 0;
}

.sponsors-grid {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.sponsor-card {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sponsor-card:hover,
.sponsor-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(17, 17, 17, 0.18);
}

.sponsor-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.sponsor-card img {
  max-width: 100%;
  height: auto;
  max-height: 90px;
  width: auto;
  object-fit: contain;
}

.sponsor-name {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1000px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .lang-switch {
    order: 3;
    display: none;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 70vh;
    padding: 0.5rem 0 1rem;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
  }

  .main-nav.is-open ~ .lang-switch,
  .lang-switch.is-mobile-visible {
    display: inline-flex;
    grid-column: 1 / -1;
    order: 5;
    align-self: flex-start;
    margin-top: 0.4rem;
  }

  .hero-grid,
  .contact-layout,
  .history-media-grid,
  .history-steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 1.8rem;
  }

  .card {
    padding: 0.85rem;
  }

  .media-card img {
    height: 220px;
  }

  .yt-facade,
  .yt-iframe-wrap {
    height: 220px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }
}
