/* ============================================================
   COSMO EPIL FEST 2026 MOSCOW — Styles v3
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green-dark: #071f17;
  --green:      #0B3D2E;
  --green-mid:  #145840;
  --gold:       #C5963A;
  --gold-light: #dbb76a;
  --gold-pale:  #f0ddb0;
  --white:      #FAFAF5;
  --white-50:   rgba(250,250,245,.5);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Raleway', 'Segoe UI', sans-serif;
  --header-h:   72px;
  --ease:       cubic-bezier(.25,.46,.45,.94);
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body); background: var(--green-dark); color: var(--white);
  line-height: 1.6; overflow-x: hidden; position: relative;
}

/* =====================================================
   PREMIUM BACKGROUND FX — gold orbs, rays, particles
   ===================================================== */
.bg-fx {
  position: absolute; top: 0; left: 0; width: 100%;
  z-index: 2; pointer-events: none; overflow: hidden;
}

/* --- Pulsating gold orbs --- */
.bg-fx__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
}
.bg-fx__orb--1 {
  width: 700px; height: 700px;
  top: -5%; left: -10%;
  background: radial-gradient(circle, rgba(197,150,58,.12) 0%, rgba(197,150,58,.04) 35%, transparent 65%);
  animation: orbFloat1 14s ease-in-out infinite;
}
.bg-fx__orb--2 {
  width: 600px; height: 600px;
  bottom: 10%; right: -8%;
  background: radial-gradient(circle, rgba(197,150,58,.1) 0%, rgba(219,183,106,.03) 35%, transparent 65%);
  animation: orbFloat2 18s ease-in-out infinite;
}
.bg-fx__orb--3 {
  width: 550px; height: 550px;
  top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(197,150,58,.08) 0%, rgba(11,61,46,.03) 35%, transparent 60%);
  animation: orbFloat3 20s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%   { transform: translate(0,0) scale(1); opacity: .3; }
  25%  { transform: translate(60px,80px) scale(1.15); opacity: .5; }
  50%  { transform: translate(30px,120px) scale(.95); opacity: .35; }
  75%  { transform: translate(-20px,40px) scale(1.1); opacity: .45; }
  100% { transform: translate(0,0) scale(1); opacity: .3; }
}
@keyframes orbFloat2 {
  0%   { transform: translate(0,0) scale(1); opacity: .25; }
  33%  { transform: translate(-70px,-60px) scale(1.2); opacity: .45; }
  66%  { transform: translate(-30px,-100px) scale(.9); opacity: .3; }
  100% { transform: translate(0,0) scale(1); opacity: .25; }
}
@keyframes orbFloat3 {
  0%   { transform: translate(-50%,0) scale(1); opacity: .2; }
  50%  { transform: translate(-50%,-60px) scale(1.3); opacity: .4; }
  100% { transform: translate(-50%,0) scale(1); opacity: .2; }
}

/* --- Diagonal light rays (hidden — cause visible lines through sections) --- */
.bg-fx__ray { display: none; }
.bg-fx__ray--1 {
  width: 200%; height: 2px;
  top: 30%; left: -50%;
  transform: rotate(-25deg);
  filter: blur(1px);
  animation: raySlide1 12s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(197,150,58,.08) 0%, rgba(197,150,58,.35) 40%, rgba(197,150,58,.08) 100%);
}
.bg-fx__ray--2 {
  width: 200%; height: 1.5px;
  top: 65%; left: -50%;
  transform: rotate(-18deg);
  filter: blur(.5px);
  animation: raySlide2 16s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(197,150,58,.05) 0%, rgba(197,150,58,.3) 40%, rgba(197,150,58,.05) 100%);
}
@keyframes raySlide1 {
  0%   { opacity: 0; transform: rotate(-25deg) translateX(-10%); }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(-25deg) translateX(10%); }
}
@keyframes raySlide2 {
  0%   { opacity: 0; transform: rotate(-18deg) translateX(10%); }
  40%  { opacity: .7; }
  60%  { opacity: .7; }
  100% { opacity: 0; transform: rotate(-18deg) translateX(-10%); }
}

/* --- Floating gold dots --- */
.bg-fx__dot {
  position: absolute; display: block;
  background: var(--gold); border-radius: 50%; opacity: 0;
  will-change: transform, opacity;
  box-shadow: 0 0 6px 2px rgba(197,150,58,.4);
  animation: dotFloat linear infinite;
}
.bg-fx__dot:nth-child(6)  { left: 5%;  top: 0%;  width: 5px; height: 5px; animation-duration: 16s; animation-delay: 0s; }
.bg-fx__dot:nth-child(7)  { left: 15%; top: 10%; width: 7px; height: 7px; animation-duration: 20s; animation-delay: 1.5s; }
.bg-fx__dot:nth-child(8)  { left: 28%; top: 20%; width: 4px; height: 4px; animation-duration: 14s; animation-delay: 3s; }
.bg-fx__dot:nth-child(9)  { left: 38%; top: 30%; width: 8px; height: 8px; animation-duration: 22s; animation-delay: 0.5s; }
.bg-fx__dot:nth-child(10) { left: 50%; top: 40%; width: 5px; height: 5px; animation-duration: 18s; animation-delay: 4s; }
.bg-fx__dot:nth-child(11) { left: 62%; top: 50%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: 2s; }
.bg-fx__dot:nth-child(12) { left: 74%; top: 60%; width: 6px; height: 6px; animation-duration: 21s; animation-delay: 5s; }
.bg-fx__dot:nth-child(13) { left: 82%; top: 70%; width: 5px; height: 5px; animation-duration: 17s; animation-delay: 1s; }
.bg-fx__dot:nth-child(14) { left: 90%; top: 80%; width: 4px; height: 4px; animation-duration: 19s; animation-delay: 6s; }
.bg-fx__dot:nth-child(15) { left: 45%; top: 15%; width: 9px; height: 9px; animation-duration: 24s; animation-delay: 3.5s; }
.bg-fx__dot:nth-child(16) { left: 20%; top: 55%; width: 5px; height: 5px; animation-duration: 13s; animation-delay: 7s; }
.bg-fx__dot:nth-child(17) { left: 68%; top: 85%; width: 6px; height: 6px; animation-duration: 16s; animation-delay: 2.5s; }
@keyframes dotFloat {
  0%   { transform: translateY(80px) scale(1); opacity: 0; }
  10%  { opacity: .8; }
  30%  { opacity: .5; transform: translateY(40px) scale(1.2); }
  50%  { opacity: .9; transform: translateY(0) scale(.9); }
  70%  { opacity: .5; transform: translateY(-40px) scale(1.15); }
  90%  { opacity: .7; }
  100% { transform: translateY(-80px) scale(1); opacity: 0; }
}

/* --- Shimmer lines hidden (behind content) --- */
.bg-fx__shimmer { display: none; }
.bg-fx__shimmer--1 {
  top: 25%; left: -50%;
  background: linear-gradient(90deg, transparent 0%, rgba(197,150,58,.4) 30%, rgba(197,150,58,.7) 50%, rgba(197,150,58,.4) 70%, transparent 100%);
  transform: rotate(-20deg);
  animation: shimmerSlide 8s ease-in-out infinite;
}
.bg-fx__shimmer--2 {
  top: 55%; left: -50%;
  background: linear-gradient(90deg, transparent 0%, rgba(197,150,58,.3) 35%, rgba(197,150,58,.6) 50%, rgba(197,150,58,.3) 65%, transparent 100%);
  transform: rotate(-15deg);
  animation: shimmerSlide 12s ease-in-out infinite 3s;
}
.bg-fx__shimmer--3 {
  top: 78%; left: -50%;
  background: linear-gradient(90deg, transparent 0%, rgba(197,150,58,.25) 40%, rgba(197,150,58,.5) 50%, rgba(197,150,58,.25) 60%, transparent 100%);
  transform: rotate(-25deg);
  animation: shimmerSlide 10s ease-in-out infinite 6s;
}
@keyframes shimmerSlide {
  0%   { opacity: 0; transform: rotate(-20deg) translateX(-20%); }
  15%  { opacity: .7; }
  50%  { opacity: 1; }
  85%  { opacity: .7; }
  100% { opacity: 0; transform: rotate(-20deg) translateX(20%); }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .bg-fx { display: none; }
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* All sections & content */
.header, .lightbox, .video-modal {
  position: relative; z-index: 5;
}
.hero {
  position: relative; z-index: 3;
}
.about, .grandprix, .organizers, .chief-judge, .judges, .masterclass, .contacts, .footer {
  position: relative; z-index: 1;
}

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 clamp(24px, 3vw, 64px); }

/* Section title */
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600; text-align: center; color: var(--gold); margin-bottom: 56px;
}
.section-title::after {
  content: ''; display: block; width: 80px; height: 2px;
  background: var(--gold); margin: 16px auto 0; border-radius: 2px;
}

/* ======================== HEADER ======================== */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.header--scrolled { background: rgba(7,31,23,.95); backdrop-filter: blur(12px); box-shadow: 0 2px 24px rgba(0,0,0,.3); }
.nav { display: flex; align-items: center; justify-content: center; width: 100%; padding: 0 clamp(24px, 3vw, 64px); height: var(--header-h); }
.nav__list { display: flex; list-style: none; justify-content: space-evenly; width: 100%; }
.nav__link {
  font-family: var(--font-body); font-weight: 500; font-size: clamp(.85rem, .9vw, 1.1rem);
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold-pale);
  position: relative; transition: color .25s var(--ease);
}
.nav__link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width .3s var(--ease); }
.nav__link:hover { color: var(--gold); }
.nav__link:hover::after { width: 100%; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__burger.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav__burger.active span:nth-child(2){ opacity: 0; }
.nav__burger.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
.nav__overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; opacity: 0; transition: opacity .35s var(--ease); }
.nav__overlay.active { display: block; opacity: 1; }

/* ======================== HERO ======================== */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero__video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,31,23,.6) 0%, rgba(7,31,23,.3) 40%, rgba(7,31,23,.7) 100%), linear-gradient(0deg, var(--green-dark) 0%, transparent 20%); }
.hero__content { position: relative; z-index: 1; text-align: center; padding: 0 24px; animation: fadeUp .9s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.hero__badge { display: inline-block; font-size: clamp(.85rem, 1vw, 1.1rem); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); border: 1px solid var(--gold); padding: clamp(8px, .6vw, 14px) clamp(24px, 2vw, 40px); border-radius: 100px; margin-bottom: clamp(28px, 2vw, 40px); }
.hero__title { font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 700; line-height: 1.1; color: var(--white); margin-bottom: 20px; }
.hero__title span { color: var(--gold); }
.hero__subtitle { font-size: clamp(1rem, 2.5vw, 1.5rem); font-weight: 300; color: var(--white-50); max-width: 700px; margin: 0 auto clamp(40px, 3vw, 56px); }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: clamp(.9rem, 1vw, 1.15rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: clamp(14px, 1vw, 20px) clamp(36px, 3vw, 52px); border-radius: 4px; transition: all .3s var(--ease); cursor: pointer; border: 2px solid transparent; }
.btn--primary { background: var(--gold); color: var(--green-dark); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(197,150,58,.3); }
.btn--outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: var(--green-dark); transform: translateY(-2px); }
.hero__scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 1; color: var(--gold); animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* ======================== ABOUT ======================== */
.about { padding: clamp(80px, 7vw, 140px) 0; background: var(--green-dark); }
.about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 2.5vw, 40px); }
.about__card { background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%); border: 1px solid rgba(197,150,58,.15); border-radius: clamp(12px, 1vw, 18px); padding: clamp(32px, 3vw, 52px) clamp(24px, 2.5vw, 40px); text-align: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.about__card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.3); border-color: rgba(197,150,58,.35); }
.about__icon { color: var(--gold); margin-bottom: 20px; }
.about__card h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 1.5vw, 1.6rem); color: var(--gold-light); margin-bottom: 12px; }
.about__card p { font-size: clamp(.9rem, 1vw, 1.1rem); color: var(--white-50); line-height: 1.7; }
.about__card em { color: var(--gold-pale); font-style: italic; }

/* ======================== GRAND PRIX ======================== */
.grandprix { padding: clamp(60px, 6vw, 120px) 0; background: linear-gradient(180deg, var(--green-dark) 0%, var(--green) 50%, var(--green-dark) 100%); }
.grandprix__wrap { max-width: clamp(700px, 55vw, 960px); margin: 0 auto; border-radius: clamp(12px, 1.2vw, 20px); overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.grandprix__img { width: 100%; display: block; }

/* ======================== ORGANIZERS ======================== */
.organizers { padding: clamp(80px, 7vw, 140px) 0; background: var(--green-dark); position: relative; overflow: hidden; }
.organizers::before {
  content: ''; position: absolute; top: -120px; left: -120px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(197,150,58,.06) 0%, transparent 70%);
  pointer-events: none;
}
.organizers::after {
  content: ''; position: absolute; bottom: -100px; right: -100px;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(197,150,58,.05) 0%, transparent 70%);
  pointer-events: none;
}
.organizers__subtitle {
  text-align: center; font-size: 1.05rem; color: var(--white-50);
  max-width: 600px; margin: -32px auto 48px; line-height: 1.7;
}
.organizers__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 3vw, 52px); max-width: clamp(700px, 55vw, 920px); margin: 0 auto; }

/* Person card (shared) */
.person-card {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  border: 1px solid rgba(197,150,58,.12); border-radius: 16px;
  overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative;
}
.person-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(197,150,58,.2);
  border-color: rgba(197,150,58,.4);
}
.person-card__img-wrap { overflow: hidden; position: relative; }
.person-card__img-wrap::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to top, var(--green) 0%, transparent 100%);
  pointer-events: none;
}
.person-card__img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .5s var(--ease); }
.person-card:hover .person-card__img { transform: scale(1.06); }
.person-card__info { padding: clamp(16px, 1.5vw, 28px) clamp(16px, 1.5vw, 28px) clamp(18px, 1.6vw, 30px); text-align: center; }
.person-card__name { font-family: var(--font-display); font-size: clamp(1rem, 1.2vw, 1.35rem); color: var(--gold-light); margin-bottom: 6px; }
.person-card__role {
  font-size: .78rem; color: var(--white-50);
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: .04em; text-transform: uppercase; font-weight: 500;
}
.person-card__role-icon { color: var(--gold); flex-shrink: 0; opacity: .7; }
.person-card__desc {
  font-size: .85rem; color: rgba(250,250,245,.4); line-height: 1.65;
  margin-top: 12px; padding: 0 4px;
}
.person-card__btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 16px;
  font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 28px; border-radius: 100px; cursor: pointer;
  background: linear-gradient(135deg, rgba(197,150,58,.12) 0%, rgba(197,150,58,.05) 100%);
  color: var(--gold); border: 1.5px solid rgba(197,150,58,.5);
  transition: all .3s var(--ease);
  backdrop-filter: blur(4px);
}
.person-card__btn:not(:disabled):hover {
  background: var(--gold); color: var(--green-dark);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(197,150,58,.3);
  transform: translateY(-1px);
}
.person-card__btn:disabled { opacity: .4; cursor: default; }
.person-card--large .person-card__name { font-size: clamp(1.15rem, 1.3vw, 1.5rem); }

/* Organizers stats */
.organizers__stats {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 56px; padding-top: 48px;
  border-top: 1px solid rgba(197,150,58,.12);
  flex-wrap: wrap;
}
.organizers__stat { text-align: center; flex: 0 0 auto; min-width: 100px; }
.organizers__stat-num {
  display: block; font-family: var(--font-display); font-size: clamp(2rem, 2.5vw, 3.2rem);
  font-weight: 700; color: var(--gold);
  line-height: 1.1; margin-bottom: 6px;
}
.organizers__stat-label {
  font-size: .78rem; color: var(--white-50);
  letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
}

/* ======================== CHIEF JUDGE ======================== */
.chief-judge { padding: clamp(80px, 7vw, 140px) 0; background: linear-gradient(180deg, var(--green-dark) 0%, var(--green) 50%, var(--green-dark) 100%); }
.chief-judge__wrap { max-width: clamp(420px, 32vw, 580px); margin: 0 auto; text-align: center; }
.chief-judge__photo { border-radius: clamp(12px, 1.2vw, 20px); overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 16px 48px rgba(0,0,0,.3); }
.chief-judge__photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.chief-judge__info { margin-top: clamp(20px, 2vw, 36px); }
.chief-judge__name { font-family: var(--font-display); font-size: clamp(1.6rem, 2vw, 2.4rem); color: var(--gold); margin-bottom: 8px; }
.chief-judge__title { font-size: clamp(.95rem, 1.1vw, 1.25rem); color: var(--white-50); }

/* Chief judge button */
.chief-judge__btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 20px;
  font-family: var(--font-body); font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 11px 32px; border-radius: 100px; cursor: pointer;
  background: linear-gradient(135deg, rgba(197,150,58,.12) 0%, rgba(197,150,58,.05) 100%);
  color: var(--gold); border: 1.5px solid rgba(197,150,58,.5);
  transition: all .3s var(--ease);
  backdrop-filter: blur(4px);
}
.chief-judge__btn:not(:disabled):hover {
  background: var(--gold); color: var(--green-dark);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(197,150,58,.3);
  transform: translateY(-1px);
}
.chief-judge__btn:disabled { opacity: .4; cursor: default; }
.chief-judge__photo { cursor: zoom-in; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.chief-judge__photo:hover { transform: translateY(-4px); box-shadow: 0 24px 64px rgba(0,0,0,.45), 0 0 0 1px rgba(197,150,58,.3); }

/* ======================== JUDGES CAROUSEL ======================== */
.judges { padding: clamp(80px, 7vw, 140px) 0 clamp(60px, 5vw, 100px); background: var(--green-dark); overflow: hidden; }

.carousel { position: relative; display: flex; align-items: center; padding: 0 clamp(48px, 4vw, 80px); }

.carousel__track-wrap { overflow: hidden; width: 100%; }
.carousel__track {
  display: flex; gap: 20px;
  transition: transform .5s var(--ease);
  will-change: transform;
}

.judge-card {
  flex: 0 0 calc((100% - 80px) / 5); background: var(--green);
  border: 2px solid var(--gold); border-radius: 16px;
  overflow: hidden; text-align: center;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  cursor: pointer;
}
.judge-card:hover {
  border-color: var(--gold-light);
  box-shadow: 0 12px 36px rgba(197,150,58,.25);
}
.judge-card__img-wrap {
  overflow: hidden;
}
.judge-card img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top right; display: block;
  background: var(--green-mid);
  transition: transform .5s var(--ease);
}
.judge-card:hover img {
  transform: scale(1.08);
}
.judge-card__name {
  font-family: var(--font-display); font-size: clamp(.95rem, 1.1vw, 1.3rem);
  color: var(--gold-light); padding: clamp(10px, 1vw, 18px) clamp(8px, .8vw, 14px) clamp(8px, .8vw, 14px);
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  flex: 1; display: flex; align-items: center; justify-content: center;
}
.judge-card__btn {
  display: block; width: calc(100% - 24px); margin: 0 auto clamp(10px, 1vw, 16px);
  font-family: var(--font-body); font-size: clamp(.65rem, .7vw, .88rem); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: clamp(7px, .7vw, 13px) 0; border-radius: 100px; cursor: pointer;
  background: linear-gradient(135deg, rgba(197,150,58,.12) 0%, rgba(197,150,58,.05) 100%);
  color: var(--gold); border: 1.5px solid rgba(197,150,58,.5);
  transition: all .3s var(--ease);
  backdrop-filter: blur(4px);
}
.judge-card__btn:not(:disabled):hover {
  background: var(--gold); color: var(--green-dark);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(197,150,58,.3);
  transform: translateY(-1px);
}
.judge-card__btn:disabled {
  opacity: .4; cursor: default;
}

.carousel__btn {
  position: absolute; z-index: 2;
  width: clamp(42px, 3.5vw, 64px); height: clamp(42px, 3.5vw, 64px); border-radius: 50%;
  background: rgba(7,31,23,.8); border: 2px solid var(--gold);
  color: var(--gold); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
  backdrop-filter: blur(8px);
}
.carousel__btn:hover { background: var(--gold); color: var(--green-dark); transform: scale(1.1); }
.carousel__btn--prev { left: 8px; }
.carousel__btn--next { right: 8px; }
.carousel__btn:disabled { opacity: .3; pointer-events: none; }

/* ======================== MASTERCLASS ======================== */
.masterclass { padding: clamp(80px, 7vw, 140px) 0; background: linear-gradient(180deg, var(--green-dark) 0%, var(--green) 50%, var(--green-dark) 100%); }

.mc-group { margin-bottom: 56px; }
.mc-group:last-child { margin-bottom: 0; }
.mc-group__title {
  font-family: var(--font-display); font-size: clamp(1.3rem, 1.5vw, 1.8rem); font-weight: 500;
  color: var(--gold-light); text-align: center; margin-bottom: clamp(24px, 2vw, 40px);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.mc-group__badge {
  display: inline-block; font-family: var(--font-body); font-size: .72rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
}
.mc-group__badge--free { background: rgba(46,139,87,.3); color: #6fcf97; border: 1px solid rgba(46,139,87,.4); }
.mc-group__badge--paid { background: rgba(197,150,58,.15); color: var(--gold-light); border: 1px solid rgba(197,150,58,.3); }

.mc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }

.mc-card {
  display: flex; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  border: 1px solid rgba(197,150,58,.15);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.mc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.3); border-color: var(--gold); }
.mc-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.mc-card:hover .mc-card__img { transform: scale(1.05); }
.mc-card__body { padding: clamp(20px, 2vw, 32px) clamp(16px, 1.5vw, 28px); display: flex; flex-direction: column; justify-content: center; }
.mc-card__title { font-family: var(--font-display); font-size: clamp(1.05rem, 1.2vw, 1.4rem); color: var(--gold-light); margin-bottom: 8px; line-height: 1.3; }
.mc-card__speaker { font-size: clamp(.85rem, .95vw, 1.1rem); color: var(--white-50); }

/* MC play button — in card body */
.mc-card__img-wrap { position: relative; flex: 0 0 clamp(120px, 10vw, 200px); overflow: hidden; }

.mc-card__play {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); background: transparent;
  border: 1.5px solid var(--gold); border-radius: 100px;
  padding: 8px 20px 8px 14px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s;
}
.mc-card__play svg { flex-shrink: 0; }
.mc-card__play:hover {
  background: var(--gold); color: var(--green-dark);
  transform: translateY(-2px); box-shadow: 0 4px 16px rgba(197,150,58,.3);
}

/* ======================== CONTACTS ======================== */
.contacts { padding: clamp(80px, 7vw, 140px) 0; background: var(--green-dark); }
.contacts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 2vw, 36px); }
.contacts__card { display: flex; flex-direction: column; align-items: center; text-align: center; background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%); border: 1px solid rgba(197,150,58,.15); border-radius: clamp(12px, 1vw, 18px); padding: clamp(32px, 3vw, 56px) clamp(24px, 2vw, 40px); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.contacts__card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.3); border-color: var(--gold); }
.contacts__icon { color: var(--gold); margin-bottom: 16px; }
.contacts__label { font-size: clamp(.78rem, .85vw, 1rem); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--white-50); margin-bottom: 8px; }
.contacts__value { font-family: var(--font-display); font-size: clamp(1.1rem, 1.2vw, 1.45rem); color: var(--gold-light); }

/* ======================== FOOTER ======================== */
.footer { border-top: 1px solid rgba(197,150,58,.12); padding: 32px 0; background: var(--green-dark); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer__logo-text { font-family: var(--font-display); font-size: clamp(1rem, 1.1vw, 1.3rem); font-weight: 600; color: var(--gold); opacity: .6; }
.footer__copy { font-size: clamp(.8rem, .85vw, 1rem); color: var(--white-50); }
.footer__socials a { color: var(--gold); transition: opacity .25s; }
.footer__socials a:hover { opacity: .7; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr 1fr; }
  .contacts__grid { grid-template-columns: 1fr 1fr; }
  .judge-card { flex: 0 0 calc((100% - 60px) / 4); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }

  /* Nav mobile */
  .nav { justify-content: flex-end; }
  .nav__burger { display: flex; position: relative; z-index: 1001; }
  .nav__list {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
    height: 100vh; height: 100dvh; flex-direction: column;
    background: rgba(7,31,23,.98); backdrop-filter: blur(20px);
    padding: 100px 32px 40px; gap: 24px;
    transition: right .35s var(--ease);
    border-left: 1px solid rgba(197,150,58,.2);
    box-shadow: -8px 0 32px rgba(0,0,0,.4);
    z-index: 1000; justify-content: flex-start;
  }
  .nav__list.open { right: 0; }
  .nav__link { font-size: 1.05rem; padding: 10px 0; display: block; border-bottom: 1px solid rgba(197,150,58,.08); }
  .nav__link::after { display: none; }

  /* Hero */
  .hero { min-height: 100vh; min-height: 100dvh; }
  .hero__content { padding: 0 16px; }
  .hero__badge { font-size: .72rem; padding: 6px 18px; margin-bottom: 20px; }
  .hero__title { font-size: clamp(2rem, 9vw, 3rem); margin-bottom: 16px; }
  .hero__subtitle { font-size: .95rem; margin: 0 auto 28px; }
  .hero__actions { flex-direction: column; align-items: center; gap: 12px; }
  .btn { width: 100%; max-width: 280px; padding: 13px 28px; font-size: .88rem; }
  .hero__scroll { bottom: 20px; }

  /* Sections */
  .about, .organizers, .judges, .chief-judge, .masterclass, .contacts { padding: 64px 0; }
  .section-title { margin-bottom: 36px; }
  .about__grid { grid-template-columns: 1fr; gap: 20px; }
  .about__card { padding: 28px 24px; }
  .grandprix { padding: 56px 0; }
  .grandprix__wrap { max-width: 100%; }

  .organizers__grid { grid-template-columns: 1fr 1fr; gap: 16px; max-width: 100%; }
  .organizers__subtitle { font-size: .95rem; margin: -20px auto 32px; }
  .organizers__stats { gap: 24px; margin-top: 36px; padding-top: 32px; }
  .organizers__stat-num { font-size: 1.6rem; }
  .organizers__stat-label { font-size: .7rem; }
  .person-card__desc { font-size: .8rem; }
  .person-card__info { padding: 14px 12px 16px; }
  .person-card__btn { font-size: .65rem; padding: 8px 20px; }

  .chief-judge__wrap { max-width: 80%; }
  .chief-judge__name { font-size: 1.4rem; }

  /* Carousel */
  .carousel { padding: 0 40px; }
  .carousel__track-wrap { padding: 24px 0; }
  .carousel__btn { width: 44px; height: 44px; }
  .carousel__btn--prev { left: 2px; }
  .carousel__btn--next { right: 2px; }
  .judge-card { flex: 0 0 calc((100% - 24px) / 3); }
  .judge-card__name { font-size: .85rem; padding: 10px 8px 8px; }
  .judge-card__btn { font-size: .62rem; padding: 8px 0; margin-bottom: 12px; width: calc(100% - 20px); }

  /* Masterclass */
  .mc-grid { grid-template-columns: 1fr; }
  .mc-card { flex-direction: column; }
  .mc-card__img-wrap { flex: 0 0 auto; height: auto; aspect-ratio: 3/4; }
  .mc-card__img { object-position: top center; }
  .mc-card__body { padding: 20px 16px; }
  .mc-card__play { font-size: .78rem; padding: 14px 24px 14px 18px; width: 100%; justify-content: center; }

  /* Contacts / Footer */
  .contacts__grid { grid-template-columns: 1fr; gap: 16px; }
  .contacts__card { padding: 28px 20px; }
  .contacts__value { font-size: 1rem; word-break: break-word; }
  .footer { padding: 24px 0; }
  .footer__inner { flex-direction: column; text-align: center; gap: 12px; }

  /* Lightbox / Video modal */
  .lightbox__img { max-width: 95vw; max-height: 85vh; border-radius: 8px; }
  .lightbox__close { top: 12px; right: 16px; font-size: 2.5rem; }
  .video-modal { padding: 16px; flex-direction: column; gap: 12px; }
  .video-modal__player { max-width: 100%; max-height: 75vh; border-radius: 8px; }
  .video-modal__close {
    position: relative; top: auto; right: auto;
    align-self: flex-end;
    font-size: 2rem; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(197,150,58,.15); border-radius: 50%;
    border: 1.5px solid rgba(197,150,58,.4);
  }

  /* Bio modal — mobile */
  .bio-modal { padding: 12px; }
  .bio-modal__content { max-width: 100%; max-height: 90vh; padding: 24px 18px; border-radius: 12px; }
  .bio-modal__name { font-size: 1.25rem; margin-bottom: 16px; }
  .bio-modal__text { font-size: .88rem; line-height: 1.7; }
  .bio-modal__close { top: 10px; right: 14px; font-size: 2.4rem; }
}

@media (max-width: 480px) {
  .judge-card { flex: 0 0 calc((100% - 16px) / 2); }
  .carousel { padding: 0 36px; }
  .carousel__track { gap: 16px; }
  .judge-card__name { font-size: .8rem; padding: 10px 6px 6px; }
  .judge-card__btn { font-size: .6rem; padding: 7px 0; margin-bottom: 10px; letter-spacing: .08em; width: calc(100% - 16px); }

  .mc-card__img-wrap { height: auto; aspect-ratio: 3/4; }
  .mc-group__title { font-size: 1.15rem; }
  .mc-card__title { font-size: 1rem; }

  /* Bio modal — small mobile */
  .bio-modal { padding: 8px; }
  .bio-modal__content { max-height: 92vh; padding: 20px 14px; border-radius: 10px; }
  .bio-modal__name { font-size: 1.15rem; margin-bottom: 14px; }
  .bio-modal__text { font-size: .84rem; line-height: 1.65; }
  .bio-modal__close { top: 6px; right: 10px; font-size: 2.2rem; }

  .chief-judge__wrap { max-width: 90%; }
  .chief-judge__name { font-size: 1.2rem; }

  .organizers__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; gap: 20px; }
  .organizers__stats { gap: 20px; flex-wrap: wrap; justify-content: space-around; }
  .organizers__stat { min-width: 80px; }
  .organizers__stat-num { font-size: 1.4rem; }
  .organizers__stat-label { font-size: .65rem; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 1.8rem; }
  .organizers__grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .organizers__stats { flex-direction: row; flex-wrap: wrap; gap: 16px; justify-content: space-around; }
  .organizers__stat { min-width: 70px; }
  .judge-card { flex: 0 0 calc(100% / 1.6); }
  .carousel { padding: 0 30px; }
  .nav__list { width: 90%; }

  /* Bio modal — extra small */
  .bio-modal__content { padding: 18px 12px; }
  .bio-modal__name { font-size: 1.1rem; }
  .bio-modal__text { font-size: .82rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 400px; }
  .hero__scroll { display: none; }
  .bio-modal__content { max-height: 88vh; padding: 16px; }
  .bio-modal__name { font-size: 1.1rem; margin-bottom: 10px; }
  .bio-modal__text { font-size: .84rem; }
}

/* ======================== LARGE SCREENS ======================== */
@media (min-width: 1440px) {
  html { font-size: 17px; }
  .container { max-width: 1400px; }
  :root { --header-h: 84px; }
  .section-title { margin-bottom: 64px; }
  .section-title::after { width: 100px; height: 3px; margin-top: 20px; }
  .carousel__track { gap: 24px; }
  .judge-card { border-radius: 20px; }
  .organizers__grid { max-width: 920px; }
  .mc-grid { gap: 32px; }
}

@media (min-width: 1920px) {
  html { font-size: 19px; }
  .container { max-width: 1640px; }
  :root { --header-h: 92px; }
  .section-title { margin-bottom: 72px; }
  .hero__title { font-size: clamp(4rem, 5vw, 6rem); }
  .carousel__track { gap: 28px; }
  .judge-card { flex: 0 0 calc((100% - 140px) / 6); border-width: 3px; }
  .grandprix__wrap { border-width: 3px; }
  .chief-judge__photo { border-width: 3px; }
  .organizers__grid { max-width: 1100px; gap: 56px; }
  .organizers__stats { gap: 72px; margin-top: 72px; padding-top: 60px; }
  .mc-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .contacts__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 2560px) {
  html { font-size: 21px; }
  .container { max-width: 2000px; }
  :root { --header-h: 100px; }
  .hero__title { font-size: clamp(5rem, 4vw, 7rem); }
  .judge-card { flex: 0 0 calc((100% - 210px) / 7); }
  .carousel__track { gap: 35px; }
  .organizers__grid { max-width: 1300px; }
  .chief-judge__wrap { max-width: 640px; }
  .mc-card__img-wrap { flex: 0 0 240px; }
}

/* ======================== LIGHTBOX ======================== */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.92); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  cursor: zoom-out;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 90vw; max-height: 88vh;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transform: scale(.9); transition: transform .4s var(--ease);
  object-fit: contain;
}
.lightbox.active .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none; color: var(--gold);
  font-size: 3rem; line-height: 1; cursor: pointer;
  transition: transform .25s, color .25s;
}
.lightbox__close:hover { transform: scale(1.2); color: var(--white); }

/* Judge card image clickable */
.judge-card img { cursor: zoom-in; }

/* ======================== VIDEO MODAL ======================== */
.video-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.95); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.video-modal.active { opacity: 1; visibility: visible; }
.video-modal__player {
  max-width: 92vw; max-height: 88vh; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transform: scale(.92); transition: transform .4s var(--ease);
  outline: none;
}
.video-modal.active .video-modal__player { transform: scale(1); }
.video-modal__close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none; color: var(--gold);
  font-size: 3rem; line-height: 1; cursor: pointer;
  transition: transform .25s, color .25s; z-index: 1;
}
.video-modal__close:hover { transform: scale(1.2); color: var(--white); }

/* ======================== BIO MODAL ======================== */
.bio-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.92); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  padding: 24px;
}
.bio-modal.active { opacity: 1; visibility: visible; }
.bio-modal__content {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border: 1px solid rgba(197,150,58,.3); border-radius: 16px;
  max-width: 640px; width: 100%; max-height: 80vh;
  overflow-y: auto; padding: clamp(28px, 3vw, 48px);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  transform: scale(.9); transition: transform .4s var(--ease);
}
.bio-modal.active .bio-modal__content { transform: scale(1); }
.bio-modal__name {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 2rem);
  color: var(--gold); margin-bottom: 20px; text-align: center;
}
.bio-modal__text {
  font-size: clamp(.9rem, 1vw, 1.05rem); color: var(--white-50);
  line-height: 1.75; white-space: pre-line;
}
.bio-modal__close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none; color: var(--gold);
  font-size: 3rem; line-height: 1; cursor: pointer;
  transition: transform .25s, color .25s; z-index: 1;
}
.bio-modal__close:hover { transform: scale(1.2); color: var(--white); }
/* Scrollbar styling for bio modal */
.bio-modal__content::-webkit-scrollbar { width: 6px; }
.bio-modal__content::-webkit-scrollbar-track { background: transparent; }
.bio-modal__content::-webkit-scrollbar-thumb { background: rgba(197,150,58,.3); border-radius: 3px; }

/* Active bio buttons */
.judge-card__btn:not(:disabled),
.person-card__btn:not(:disabled),
.chief-judge__btn:not(:disabled) { opacity: 1; cursor: pointer; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
