@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Unbounded:wght@700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-main: #F4F4F6;
  --bg-card: #FFFFFF;
  --color-black: #111113;
  --color-dark: #19191D;
  --color-red: #E30613;
  --color-red-hover: #C5000C;
  --color-white: #FFFFFF;
  --text-primary: #111113;
  --text-muted: #6B7280;
  --border-light: #E5E7EB;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50px;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-black);
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Скрываем устаревшие фоновые слои */
.aurora, .gold-ribbon, .bg-blobs, .bg-grid, .bg-stars, .bg-particles,
.chalk-writing, .pencil-layer, .fly-layer, .chalkboard {
  display: none !important;
}

.gradient-text {
  color: var(--color-red) !important;
  background: none !important;
  -webkit-text-fill-color: var(--color-red) !important;
}

/* ============================================================
   ИНТРО-ЭКРАН (ЦЕНТРИРОВАННЫЙ, БЕЗ СМЕЩЕНИЙ В УГОЛ)
   ============================================================ */
.intro-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background: radial-gradient(circle at center, #1C1C22 0%, #0B0B0E 100%) !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 20px !important;
  pointer-events: auto !important;
  overflow: hidden !important;
}

.intro-school {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
  animation: introFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: clamp(4rem, 14vw, 7.5rem);
  line-height: 1;
  color: var(--color-red);
  text-shadow: 0 0 35px rgba(227, 6, 19, 0.65), 0 0 80px rgba(227, 6, 19, 0.3);
  letter-spacing: -0.04em;
  margin-bottom: 6px;
  animation: introZoomIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.intro-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 4px;
  animation: introFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* ============================================================
   ПЛАВНОЕ ПОЯВЛЕНИЕ СМАЙЛИКОВ СНИЗУ ВВЕРХ СЛЕВА НАПРАВО
   ============================================================ */
.intro-confetti {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-size: 1.8rem;
}

.intro-confetti span {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 35px, 0) scale(0.6);
  animation: emojiRiseUp 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  will-change: transform, opacity;
}

/* Очерёдность появления слева направо */
.intro-confetti span:nth-child(1) { animation-delay: 0.45s; }
.intro-confetti span:nth-child(2) { animation-delay: 0.58s; }
.intro-confetti span:nth-child(3) { animation-delay: 0.71s; }
.intro-confetti span:nth-child(4) { animation-delay: 0.84s; }
.intro-confetti span:nth-child(5) { animation-delay: 0.97s; }
.intro-confetti span:nth-child(6) { animation-delay: 1.10s; }

@keyframes emojiRiseUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 35px, 0) scale(0.6);
  }
  70% {
    opacity: 1;
    transform: translate3d(0, -6px, 0) scale(1.12);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes introZoomIn {
  from { opacity: 0; transform: scale(0.6) translateY(20px); filter: blur(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

@keyframes introFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes confettiFloat {
  0% { transform: translateY(0) rotate(-6deg); }
  100% { transform: translateY(-10px) rotate(6deg); }
}

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5%;
  background: var(--color-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 22px;
  background: var(--color-red);
  border-radius: 2px;
}

nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  align-items: center;
}

nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--color-white);
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  position: relative;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  color: var(--color-white);
  background: var(--color-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(227, 6, 19, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  transform: translateZ(0);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--color-red-hover);
  box-shadow: 0 6px 24px rgba(227, 6, 19, 0.45);
}

.btn:active {
  transform: scale(0.97);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.76rem;
}

.btn-green {
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: none;
}

.btn-green:hover {
  background: #222226;
}

.btn-red {
  background: var(--color-red);
}

.btn-grey {
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: var(--shadow-sm);
}

.btn-grey:hover {
  background: #F0F0F0;
}

.btn-full {
  width: 100%;
}

/* ============================================================
   HERO СЕКЦИЯ (СТРОГИЙ БАННЕР С ПАРИТЕЛЯМИ И ЦЕНТРИРОВАНИЕМ)
   ============================================================ */
.hero-new {
  position: relative;
  background: var(--color-black);
  color: var(--color-white);
  padding: 36px 20px 48px;
  width: 100%;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}

/* Баннер: строго фиксированная высота и границы */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  min-height: 240px;
  max-height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0E0E12;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 1. Левая сценическая зона со срезом под углом */
.hero-stage-visual {
  position: absolute;
  left: 0;
  top: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, #24252D 0%, #15161C 60%, #0B0B0E 100%);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

/* Красный неоновый отблеск софита */
.stage-ambient-light {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 6, 19, 0.35) 0%, transparent 70%);
  filter: blur(30px);
  top: 15%;
  left: 10%;
  animation: lightPulse 5s ease-in-out infinite alternate;
}

@keyframes lightPulse {
  0% { transform: scale(0.9); opacity: 0.25; }
  100% { transform: scale(1.2); opacity: 0.6; }
}

/* Парящие символы КВН */
.stage-float-item {
  position: absolute;
  display: block;
  user-select: none;
  line-height: 1;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7));
  will-change: transform;
}

/* Маска: левитирует в левой зоне */
.stage-mask {
  font-size: clamp(3.6rem, 7vw, 4.8rem);
  top: 20%;
  left: 4%;
  opacity: 0.9;
  animation: maskFloatAcross 7s ease-in-out infinite alternate;
}

@keyframes maskFloatAcross {
  0% { transform: translate3d(0, 0, 0) rotate(-10deg) scale(0.95); }
  50% { transform: translate3d(25px, -15px, 0) rotate(4deg) scale(1.05); }
  100% { transform: translate3d(50px, 10px, 0) rotate(-4deg) scale(1); }
}

/* Микрофон: левитирует снизу */
.stage-mic {
  font-size: clamp(3rem, 6vw, 4rem);
  bottom: 8%;
  left: 28%;
  opacity: 0.85;
  animation: micFloatAcross 6.5s ease-in-out infinite alternate;
}

@keyframes micFloatAcross {
  0% { transform: translate3d(0, 0, 0) rotate(16deg) scale(1); }
  50% { transform: translate3d(-20px, -20px, 0) rotate(6deg) scale(1.08); }
  100% { transform: translate3d(25px, -10px, 0) rotate(22deg) scale(0.95); }
}

/* 2. Правая часть: школа */
.hero-photo-frame {
  position: absolute;
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  z-index: 1;
  background: #1A1A1E;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Текстовый блок под баннером */
.hero-info {
  text-align: center;
  width: 100%;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: rgba(227, 6, 19, 0.15);
  color: var(--color-red);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.6rem, 3.8vw, 2.3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--color-white);
}

.hero-title-sub {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
}

.hero-text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 22px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 18px;
  border-radius: var(--radius-md);
}

.hero-stat .stat-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-red);
}

.hero-stat .stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  background: var(--color-white);
  color: var(--color-black);
}

.hero-buttons .btn:hover {
  background: #F0F0F0;
}

.hero-buttons .btn-grey {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Адаптив для телефонов */
@media (max-width: 768px) {
  .hero-new {
    padding: 24px 16px 36px;
  }
  .hero-photo-wrap {
    height: 180px;
    min-height: 180px;
  }
  .hero-stage-visual {
    width: 65%;
  }
  .stage-mask {
    font-size: 3.2rem;
  }
  .stage-mic {
    font-size: 2.6rem;
  }
  .hero-stats {
    gap: 20px;
  }
}

/* Золотой кубок КВН: парит в правом углу скошенного блока */
.stage-trophy {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  top: 15%;
  right: 14%;
  opacity: 0.9;
  animation: trophyFloat 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

@keyframes trophyFloat {
  0% { transform: translate3d(0, 0, 0) rotate(8deg) scale(0.95); }
  50% { transform: translate3d(-15px, 20px, 0) rotate(-6deg) scale(1.05); }
  100% { transform: translate3d(10px, 35px, 0) rotate(12deg) scale(1); }
}

/* Мерцающие звёздочки сцены */
.stage-star {
  font-size: 1.6rem;
  opacity: 0.7;
}

.stage-star.s1 {
  top: 65%;
  left: 12%;
  animation: starTwinkle 3.2s ease-in-out infinite alternate;
}

.stage-star.s2 {
  top: 10%;
  left: 45%;
  font-size: 1.3rem;
  animation: starTwinkle 4s ease-in-out infinite alternate 1s;
}

@keyframes starTwinkle {
  0% { transform: scale(0.7) rotate(0deg); opacity: 0.3; }
  50% { transform: scale(1.25) rotate(25deg); opacity: 0.95; }
  100% { transform: scale(0.85) rotate(-15deg); opacity: 0.4; }
}

/* Бегущий луч софита (сканирует сцену слева направо) */
.stage-spotlight-ray {
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70px;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: rotate(26deg);
  pointer-events: none;
  animation: spotlightSweep 5.5s ease-in-out infinite;
}

@keyframes spotlightSweep {
  0% { transform: translateX(-60px) rotate(26deg); opacity: 0; }
  30% { opacity: 0.8; }
  70% { opacity: 0.8; }
  100% { transform: translateX(450px) rotate(26deg); opacity: 0; }
}

/* ============================================================
   ТЕХРАБОТЫ
   ============================================================ */
.maintenance-inline {
  display: none;
  max-width: 680px;
  margin: 30px auto;
  padding: 26px 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border-left: 5px solid var(--color-red);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.maintenance-inline.show {
  display: block;
}

.maintenance-icon {
  font-size: 2.3rem;
  color: var(--color-red);
  margin-bottom: 6px;
}

.maintenance-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.maintenance-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.maint-bars {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 12px;
}

.maint-bars span {
  width: 4px;
  height: 14px;
  background: var(--color-red);
  border-radius: 2px;
}

/* ============================================================
   ПРОСТОРНЫЕ СЕКЦИИ САЙТА (ОТСТУПЫ 80px+)
   ============================================================ */
section {
  padding: 80px 5%;
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 40px;
}

/* О Лиге */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.info-card .icon {
  font-size: 2.1rem;
  margin-bottom: 16px;
}

.info-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Команды */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-logo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #EAEAEA;
}

.team-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 18px 20px 6px;
  color: var(--text-primary);
}

.team-desc {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex-grow: 1;
}

/* Жюри на главной */
.jury-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.jury-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jury-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.jury-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  border: 3px solid var(--color-red);
}

.jury-name {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.jury-role {
  color: var(--color-red);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.jury-quote {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   ЗАЛ СЛАВЫ + ПЛАШКА «СЕЗОН ИГРЫ УЖЕ ИДЕТ»
   ============================================================ */
.winners-soon {
  display: none !important; /* По умолчанию скрыта, когда зал славы открыт */
  max-width: 720px;
  margin: 0 auto 28px;
  background: var(--color-white);
  border: 2px solid var(--color-red);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

/* Показывается ТОЛЬКО когда администратор скрыл зал славы */
.winners-soon.visible {
  display: flex !important;
}

.soon-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.soon-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.soon-text span:first-child {
  display: block;
  color: var(--color-red);
  font-size: 0.95rem;
}

.soon-deco, .soon-line {
  display: none !important;
}

/* ============================================================
   ПОЛУПРОЗРАЧНЫЙ ЗОЛОТОЙ ФОН И ПЛАВНОЕ ВРАЩЕНИЕ КОРОНЫ
   ============================================================ */
.champion-card {
  position: relative;
  /* Полупрозрачный золотой градиент (glassmorphism) */
  background: 
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(255, 220, 110, 0.45) 0%, rgba(255, 195, 45, 0.22) 55%, rgba(240, 165, 20, 0.12) 100%),
    linear-gradient(160deg, rgba(255, 250, 235, 0.72) 0%, rgba(255, 240, 190, 0.55) 100%) !important;
  color: #2D2305 !important;
  border-radius: var(--radius-lg);
  padding: 48px 26px 42px;
  text-align: center;
  overflow: hidden;
  border: 1.5px solid rgba(230, 175, 20, 0.45) !important;
  box-shadow: 
    0 20px 50px rgba(220, 160, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -10px 25px rgba(240, 180, 0, 0.1) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 34px;
}

/* Корона с деликатным живым покачиванием-вращением */
.champion-crown {
  display: inline-block;
  font-size: 2.8rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 14px rgba(230, 160, 0, 0.4));
  transform-origin: center bottom;
  animation: crownSwayRotate 3.6s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes crownSwayRotate {
  0% {
    transform: rotate(-7deg) translateY(0) scale(0.96);
  }
  50% {
    transform: rotate(0deg) translateY(-5px) scale(1.04);
  }
  100% {
    transform: rotate(7deg) translateY(0) scale(0.96);
  }
}

/* Деликатные расходящиеся лучи триумфа на фоне */
.champion-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.55) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: victoryGlowPulse 4.5s ease-in-out infinite alternate;
}

@keyframes victoryGlowPulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 0.95; }
}

.champion-card > * {
  position: relative;
  z-index: 1;
}

/* Золотая лента-бейдж «ЧЕМПИОН» */
.champion-ribbon {
  background: linear-gradient(135deg, #FFD000 0%, #FF9900 100%) !important;
  color: #1A1300 !important;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 22px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(230, 150, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.champion-crown {
  font-size: 2.8rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 12px rgba(230, 160, 0, 0.45));
}

.champion-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7A5C0A !important;
  margin-bottom: 16px;
}

/* Аватарка чемпиона в золотом двойном кольце */
.champion-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(200, 140, 0, 0.35), 0 0 0 3px #FFC107 !important;
  margin: 0 auto 16px;
  object-fit: cover;
  display: block;
  background: #FFF;
}

/* Название команды — сочный рубиново-красный с контрастом */
.champion-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: #C7000C !important;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.7);
}

.champion-season {
  color: #634C14 !important;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.champion-quote, .champion-card .quote {
  color: #523F10 !important;
  font-style: italic;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 10px;
}

/* Кнопка «Изменить чемпиона» на светлом фоне */
.champion-card .btn,
.champion-card button {
  background: #FFFFFF !important;
  color: #1A1300 !important;
  border: 1.5px solid rgba(220, 160, 0, 0.4) !important;
  box-shadow: 0 4px 16px rgba(180, 120, 0, 0.18) !important;
}

.champion-card .btn:hover,
.champion-card button:hover {
  background: #FFF8E7 !important;
}

.confetti {
  display: none !important;
}

.podium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.podium-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}

.podium-card:hover {
  transform: translateY(-5px);
}

.podium-medal {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.podium-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.podium-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.podium-season {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.podium-score {
  margin-left: auto;
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  color: var(--color-red);
  font-size: 0.9rem;
}

.podium-step {
  display: none !important;
}

/* ============================================================
   СХЕМА ЗАЛА (4 СЕКТОРА / 3 ПРОХОДА) — БЕЛЫЙ ТЕКСТ БРОНИ
   ============================================================ */
.seats-hall {
  background: var(--bg-card) !important;
  border-radius: var(--radius-lg) !important;
  padding: 28px 14px !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid var(--border-light) !important;
  width: 100% !important;
  overflow-x: auto !important;
}

.pro-hall-poster {
  width: 100% !important;
  display: flex;
  flex-direction: column;
}

.pro-hall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.pro-venue-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
}

.pro-venue-city, .pro-org-sub, .pro-org-slogan {
  display: none !important;
}

.pro-stage-center-box .pro-stage-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  color: var(--color-white);
}

.pro-org-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-red);
}

.pro-stage-scene {
  background: #232328;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 18px;
}

.pro-jury-box {
  background: var(--color-black);
  color: var(--color-white);
  padding: 4px 16px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.pro-parterre-container {
  background: #FAFAFA;
  border-radius: var(--radius-md);
  padding: 18px 8px;
  border: 1px solid var(--border-light);
}

.pro-seats-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.pro-row-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
}

.pro-row-badge {
  width: 28px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
}

.pro-row-sector {
  display: flex;
  gap: 3px;
  align-items: center;
}

.pro-aisle {
  width: 10px;
  min-width: 10px;
}

.aisle-text {
  display: none !important;
}

.pro-seat-btn, .seat-cell {
  width: clamp(18px, 3.2vw, 26px) !important;
  height: clamp(20px, 3.5vw, 28px) !important;
  min-width: 0 !important;
  border-radius: 5px !important;
  border: none !important;
  font-weight: 800 !important;
  font-size: clamp(0.55rem, 1.8vw, 0.72rem) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s ease !important;
}

.pro-seat-btn:active {
  transform: scale(0.88) !important;
}

.pro-seat-btn.free {
  background: var(--color-black) !important;
  color: var(--color-white) !important;
}

.pro-seat-btn.taken {
  background: #E5E5E5 !important;
  color: #9E9E9E !important;
  cursor: not-allowed !important;
}

.pro-seat-btn.mine,
.seat-cell.mine {
  background: var(--color-red) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 10px rgba(227, 6, 19, 0.5) !important;
}

.pro-lower-tier {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  gap: 12px;
  margin-top: 16px;
}

.pro-standing-zone {
  background: var(--color-white);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 4px;
  text-align: center;
}

.standing-tag-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
}

.standing-info-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.btn-pro-book-stand {
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.pro-sound-booth {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 8px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.booth-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pro-footer-hall {
  display: none !important;
}

/* Карточка моей брони (строго белый текст места и ряда) */
.my-bookings {
  background: var(--color-black);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-top: 22px;
  color: #FFFFFF !important;
}

.my-bookings p {
  color: rgba(255, 255, 255, 0.75) !important;
}

.my-booking-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: #FFFFFF !important;
}

.my-booking-row b {
  color: #FFFFFF !important;
}

/* ============================================================
   ПРАВИЛА И ОРГАНИЗАТОРЫ (С БОЛЬШИМИ ПРОМЕЖУТКАМИ)
   ============================================================ */
.rules-document {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.rules-stamp {
  display: inline-block;
  background: rgba(227, 6, 19, 0.08);
  color: var(--color-red);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.rules-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.rules-greeting {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.rules-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.rule-block {
  background: #FAFAFA;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.rule-block h3 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-num {
  width: 24px;
  height: 24px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.rule-list {
  list-style: none;
  padding-left: 4px;
}

.rule-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.rule-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--color-red);
  font-weight: bold;
}

.rule-note {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--color-white);
  border-left: 3px solid var(--color-red);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.rules-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.rules-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.rules-sign {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Промежутки между карточками организаторов */
.org-cards-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.org-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.org-card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

/* Стильная рамка со статусом */
.org-header-tag,
.org-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227, 6, 19, 0.05);
  border: 1.5px solid rgba(227, 6, 19, 0.4);
  color: var(--color-red);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(227, 6, 19, 0.1);
}

/* Пульсирующая точка перед текстом статуса */
.org-header-tag::before,
.org-card-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 8px var(--color-red);
  animation: orgDotPulse 1.8s infinite;
}

@keyframes orgDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.org-card > .org-status-text,
.org-card > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227, 6, 19, 0.05);
  border: 1.5px solid rgba(227, 6, 19, 0.4);
  color: var(--color-red);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.org-admin-actions {
  display: inline-flex;
  gap: 8px;
  margin-left: auto;
}

.org-content-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.org-logo-picture {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-red);
}

.org-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.org-subtitle {
  color: var(--color-red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.org-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.org-slogan-box {
  background: #FAFAFA;
  border-radius: var(--radius-full);
  padding: 6px 16px;
  display: inline-block;
  border: 1px solid var(--border-light);
}

.org-slogan-text {
  font-style: italic;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.82rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tl-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}

.tl-item:hover {
  transform: translateY(-5px);
}

.tl-date {
  color: var(--color-red);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tl-item h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 6px 0;
}

.tl-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer {
  text-align: center;
  padding: 38px 5%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  background: var(--color-black);
}

/* ============================================================
   ПРОФИЛЬ, БИЛЕТ (ИСПРАВЛЕННЫЙ БЕЗ НАЛЕЗАНИЯ ЛОГОТИПА)
   ============================================================ */
.page { display: none; }
.page.active { display: block; }

.profile-section {
  padding-top: 36px;
}

.profile-header {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 34px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.profile-fio {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.profile-phone {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

.role-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-red);
  margin-top: 4px;
}

/* Электронный билет: гармоничное разделение логотипа и текста */
.ek-ticket {
  background: var(--color-white);
  color: var(--color-black);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  max-width: 620px;
  margin: 0 auto;
}

.ekt-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--color-black);
  color: var(--color-white);
}

.ekt-logo-box {
  width: 46px;
  height: 46px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.ekt-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 1rem;
}

.ekt-number {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

.ekt-body {
  padding: 22px;
  position: relative;
}

/* Сетка: заголовок слева, логотип справа */
.ekt-event-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
  color: var(--color-black);
  padding-right: 75px;
}

.ekt-org {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 14px;
  padding-right: 75px;
}

.ekt-datetime, .ekt-venue {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.ekt-fields {
  margin-top: 14px;
  border-top: 1px solid var(--border-light);
}

.ekt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
}

.ekt-label {
  color: var(--text-muted);
  font-weight: 600;
}

.ekt-value {
  font-weight: 800;
}

/* Кружок 0+ встроен аккуратно */
.ekt-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-black);
  font-weight: 800;
  font-size: 0.75rem;
  margin-left: 8px;
}

.ekt-barcode {
  padding: 18px;
  background: var(--color-white);
  text-align: center;
  border-top: 2px dashed var(--border-light);
}

.ekt-barcode svg {
  max-width: 100%;
  height: 54px;
}

.ekt-barcode-id {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.ekt-rules {
  padding: 16px 22px;
  background: #FAFAFA;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ekt-footer {
  padding: 12px 22px;
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

/* Логотип аккуратно в правом верхнем углу билета */
.ekt-floating-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
  pointer-events: none;
}

/* ============================================================
   ИСПРАВЛЕННАЯ АДМИНКА: КОМПАКТНЫЕ КАРТОЧКИ ЖЮРИ И КОМАНД
   ============================================================ */
.admin-section {
  background: transparent !important;
  border: none !important;
  padding: 10px 0 !important;
  margin-bottom: 38px;
}

.admin-section h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-tab.active {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* Вкладки контента админки: аккуратные компактные списки */
.admin-tab-content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-top: 14px;
}

/* Сетка карточек в админке */
#adminJuryList, 
#adminTeamsList, 
#adminWinnersList,
.admin-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Строгий компактный размер любой карточки в админке */
#adminJuryList > div,
#adminTeamsList > div,
#adminWinnersList > div,
.admin-tab-content .jury-card,
.admin-tab-content .team-card,
.admin-tab-content .podium-card,
.admin-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 10px 14px !important;
  border-radius: var(--radius-sm) !important;
  background: #FAFAFA !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: none !important;
  transform: none !important;
  height: auto !important;
  min-height: 64px !important;
}

/* Жёсткое ограничение аватарок жюри, команд и победителей */
#adminJuryList img,
#adminTeamsList img,
#adminWinnersList img,
.admin-tab-content img,
.admin-jury-img,
.admin-team-img {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  border-radius: 50% !important;
  margin: 0 14px 0 0 !important;
  border: 2px solid var(--color-red) !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* Заголовки и подписи внутри карточек */
#adminJuryList h3, #adminJuryList .jury-name,
#adminTeamsList h3, #adminTeamsList .team-name,
#adminWinnersList h3, #adminWinnersList .winner-name {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--text-primary) !important;
  text-align: left !important;
}

#adminJuryList p, #adminTeamsList p, #adminWinnersList p,
.admin-tab-content .jury-role {
  font-size: 0.78rem !important;
  margin: 2px 0 0 !important;
  color: var(--text-muted) !important;
  text-align: left !important;
}

#adminJuryList button,
#adminTeamsList button,
#adminWinnersList button,
.admin-tab-content .team-actions {
  position: static !important;
  margin-left: auto !important;
  padding: 6px 12px !important;
  font-size: 0.74rem !important;
  flex-shrink: 0 !important;
}

/* Кнопки управления рядом */
.team-actions {
  position: static !important;
  display: inline-flex !important;
  gap: 8px !important;
  margin-left: auto !important;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #FAFAFA;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.user-limit-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.75rem;
  color: var(--color-red);
  font-weight: 700;
}

.user-limit-input {
  width: 38px;
  background: var(--color-white);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: 4px;
  text-align: center;
  padding: 2px;
}

/* ============================================================
   ЧИСТАЯ ПРЕМИУМ-МОДАЛКА БЕЗ СКРОЛЛБАРОВ С НЕОНОВЫМ СВЕЧЕНИЕМ
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 12, 15, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   ПЕРЕЛИВАЮЩАЯСЯ ГРАДИЕНТНАЯ ОБВОДКА БЕЗ СКРОЛЛБАРОВ
   ============================================================ */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.modal {
  position: relative;
  color: var(--text-primary);
  border-radius: 28px;
  padding: 36px 30px 32px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow: visible;
  
  /* Белый фон внутри + расширенная бегущая градиентная рамка */
  background: 
    linear-gradient(#FFFFFF, #FFFFFF) padding-box,
    conic-gradient(
      from var(--border-angle),
      #E30613 0%,
      #FFA000 25%,
      #111113 50%,
      #E30613 75%,
      #FFA000 100%
    ) border-box;
  border: 4px solid transparent; /* Увеличенная толщина обводки */
  
  /* Усиленное мягкое свечение под цвет рамки */
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 0 35px rgba(227, 6, 19, 0.35);
    
  animation: rotateBorderAngle 3.5s linear infinite;
}

/* Вращение градиента по периметру */
@keyframes rotateBorderAngle {
  to {
    --border-angle: 360deg;
  }
}

/* Мягкое живое дыхание контура вместо ломающего верстку псевдоэлемента */
@keyframes modalGlowPulse {
  0% {
    border-color: rgba(227, 6, 19, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22), 0 0 15px rgba(227, 6, 19, 0.12);
  }
  100% {
    border-color: rgba(227, 6, 19, 0.65);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), 0 0 35px rgba(227, 6, 19, 0.28);
  }
}

.modal h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--color-red);
  margin-bottom: 4px;
}

.modal .modal-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  transform: rotate(90deg);
  color: var(--color-red);
}

/* Поля формы */
.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 15px;
  background: #FAFAFC;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  background: #FFFFFF;
  border-color: var(--color-red);
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1);
}

.field input::placeholder {
  color: #A1A1AA;
}

/* Кнопка отправки кода */
.modal .btn-full {
  padding: 13px 26px;
  font-size: 0.86rem;
  margin-top: 8px;
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

/* Адаптив для маленьких экранов телефонов */
@media (max-width: 520px) {
  .modal {
    padding: 28px 18px 22px;
    border-radius: 20px;
  }
}

.error-msg {
  color: var(--color-red);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
}

.sms-notification {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  width: 90%;
  max-width: 340px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  display: none;
}

.sms-notification.show { display: block; }
.sms-header { font-weight: 800; color: var(--color-red); font-size: 0.8rem; text-transform: uppercase; }
.sms-code { font-family: 'Unbounded', sans-serif; font-size: 1.6rem; font-weight: 900; text-align: center; letter-spacing: 0.15em; margin: 8px 0; }
.sms-note { font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); text-align: center; }

.maint-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-black);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
  white-space: nowrap;
}

.maint-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hidden { display: none !important; }

@media print {
  body * { visibility: hidden !important; }
  #ticketPro, #ticketPro * { visibility: visible !important; }
  #ticketPro {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
}

/* ============================================================
   АДАПТАЦИЯ ДЛЯ СМАРТФОНОВ
   ============================================================ */
@media (max-width: 768px) {
  .hero-photo-wrap {
    grid-template-columns: 1fr;
    min-height: 180px;
  }
  
  .hero-photo-wrap::before {
    background: linear-gradient(180deg, var(--color-red) 0%, var(--color-red) 55%, transparent 55.1%);
  }

  .hero-photo-frame {
    position: relative;
    width: 100%;
    height: 130px;
    order: 2;
  }

  section {
    padding: 60px 4%;
  }

  .admin-tab-content {
    padding: 16px;
  }
}
/* ============================================================
   РЕЖИМ ТЕХНИЧЕСКИХ РАБОТ (ВЕСЬ БЛОК HERO + КАРТОЧКА ТЕХРАБОТ)
   ============================================================ */
body.is-maintenance,
body.maint-limited {
  background-color: var(--color-black) !important;
}

/* Оставляем ВЕСЬ первый блок (.hero-new) со всеми внутренностями,
   скрываем только секции ниже него (О лиге, Команды, Жюри, Зал, Правила) */
body.is-maintenance #page-main > section,
body.maint-limited #page-main > section,
body.is-maintenance footer,
body.maint-limited footer,
body.is-maintenance nav ul li.nav-link,
body.maint-limited nav ul li.nav-link,
body.is-maintenance #heroTeamsBtn,
body.maint-limited #heroTeamsBtn,
body.is-maintenance #page-profile,
body.maint-limited #page-profile,
body.is-maintenance #page-participants,
body.maint-limited #page-participants,
body.is-maintenance #page-whitelist,
body.maint-limited #page-whitelist {
  display: none !important;
}

/* Сам блок техработ: по умолчанию скрыт */
#maintenanceScreen {
  display: none !important;
}

/* Когда техработы активны — показываем карточку ровно по центру под первым блоком */
body.is-maintenance #maintenanceScreen,
body.maint-limited #maintenanceScreen,
#maintenanceScreen.show {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: calc(100% - 32px) !important;
  max-width: 680px !important;
  margin: 10px auto 70px !important;
  padding: 38px 28px !important;
  background: radial-gradient(circle at 50% 0%, rgba(227, 6, 19, 0.18) 0%, rgba(22, 22, 28, 0.98) 75%) !important;
  border: 1.5px solid rgba(227, 6, 19, 0.5) !important;
  border-left: 1.5px solid rgba(227, 6, 19, 0.5) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(227, 6, 19, 0.22) !important;
  text-align: center !important;
}

#maintenanceScreen .maint-bars {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 16px !important;
}

#maintenanceScreen .maint-bars span {
  width: 5px !important;
  height: 18px !important;
  background: var(--color-red) !important;
  border-radius: 4px !important;
  box-shadow: 0 0 10px var(--color-red) !important;
  animation: maintBarWave 1.2s ease-in-out infinite alternate !important;
}

#maintenanceScreen .maint-bars span:nth-child(even) {
  animation-delay: 0.3s !important;
}

@keyframes maintBarWave {
  0% { transform: scaleY(0.5); opacity: 0.4; }
  100% { transform: scaleY(1.3); opacity: 1; }
}

#maintenanceScreen .maintenance-icon {
  font-size: 3rem !important;
  margin-bottom: 10px !important;
  filter: drop-shadow(0 0 14px rgba(227, 6, 19, 0.55));
  animation: wrenchFloat 3s ease-in-out infinite alternate;
}

@keyframes wrenchFloat {
  0% { transform: rotate(-10deg) translateY(0); }
  100% { transform: rotate(10deg) translateY(-5px); }
}

#maintenanceScreen .maintenance-text {
  font-family: 'Unbounded', sans-serif !important;
  font-size: clamp(1.15rem, 3vw, 1.45rem) !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  margin-bottom: 6px !important;
}

#maintenanceScreen .maintenance-sub {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.94rem !important;
}
/* ============================================================
   ОПТИМИЗАЦИЯ ИНТРО (60 FPS НА ВСЕХ УСТРОЙСТВАХ)
   ============================================================ */
.intro-screen {
  will-change: opacity, transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style paint;
}

/* Пока идёт интро — ставим фоновые анимации на паузу, чтобы не было рывков */
body:not(.intro-done) .aurora,
body:not(.intro-done) .bg-blobs *,
body:not(.intro-done) .bg-stars *,
body:not(.intro-done) .bg-particles *,
body:not(.intro-done) .fly-layer *,
body:not(.intro-done) .pencil-layer *,
body:not(.intro-done) .chalk-writing *,
body:not(.intro-done) .hero-stage-visual * {
  animation-play-state: paused !important;
}

.intro-screen.hide-intro {
  opacity: 0 !important;
  transform: translate3d(0, 0, 0) scale(1.03) !important;
  pointer-events: none !important;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ============================================================
   ПОЛНАЯ АДАПТАЦИЯ И ОПТИМИЗАЦИЯ ДЛЯ ТЕЛЕФОНОВ (БЕЗ ЛАГОВ)
   ============================================================ */
html, body {
  max-width: 100%;
  overflow-x: hidden !important;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  /* 1. Отключаем пожиратели FPS на телефонах */
  .aurora,
  .gold-ribbon,
  .bg-blobs,
  .chalk-writing,
  .pencil-layer,
  .chalkboard,
  .fly-layer,
  .bg-particles {
    display: none !important;
  }

  /* Оставляем только половину лёгких звёзд без тяжёлых теней */
  .bg-stars span:nth-child(n+8) {
    display: none !important;
  }

  /* Заменяем тяжёлый backdrop-filter на лёгкий плотный фон */
  nav,
  .modal-overlay,
  .champion-card,
  .info-card,
  .team-card,
  .jury-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  nav {
    background: rgba(15, 15, 18, 0.96) !important;
    padding: 10px 14px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* 2. Компактная шапка: логотип слева, кнопка Входа/Профиля справа */
  nav .logo {
    font-size: 0.9rem !important;
    white-space: nowrap !important;
  }

  nav ul {
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  nav ul li.nav-link {
    display: none !important; /* Скрываем текстовые якоря, чтобы не ломали шапку */
  }

  nav .btn-small {
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
  }

  /* 3. Главный экран (Hero) и баннер со школой */
  .hero-new {
    padding: 76px 14px 32px !important;
  }

  .hero-grid {
    gap: 18px !important;
  }

  .hero-photo-wrap {
    display: flex !important;
    flex-direction: column !important;
    border-radius: 18px !important;
    min-height: auto !important;
    overflow: hidden !important;
  }

  .hero-stage-visual {
    height: 110px !important;
    min-height: 110px !important;
  }

  .hero-photo-frame {
    position: relative !important;
    width: 100% !important;
    height: 165px !important;
  }

  .hero-photo-badge {
    font-size: 0.7rem !important;
    padding: 5px 10px !important;
    top: 10px !important;
    right: 10px !important;
  }

  .hero-badge {
    font-size: 0.72rem !important;
    padding: 5px 12px !important;
  }

  .hero-title {
    font-size: 1.55rem !important;
    line-height: 1.2 !important;
  }

  .hero-title-sub {
    font-size: 0.88rem !important;
    margin-top: 6px !important;
  }

  .hero-text {
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
    padding: 0 4px !important;
  }

  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 12px 10px !important;
    width: 100% !important;
  }

  .hero-stat .stat-num {
    font-size: 1.25rem !important;
  }

  .hero-stat .stat-label {
    font-size: 0.68rem !important;
  }

  .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .hero-buttons .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* 4. Секции, заголовки и сетки карточек (в 1 колонку без вылетов) */
  section {
    padding: 40px 14px !important;
  }

  .section-title {
    font-size: 1.4rem !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  .section-sub {
    font-size: 0.85rem !important;
    margin-bottom: 22px !important;
  }

  .info-grid,
  .teams-grid,
  .jury-grid,
  .podium,
  .org-cards-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .podium-step {
    display: none !important;
  }

  /* 5. Карточка Чемпиона и Зал славы */
  .champion-card {
    padding: 28px 16px 24px !important;
    border-radius: 20px !important;
    margin-bottom: 20px !important;
    background: linear-gradient(160deg, #FFF9E6 0%, #FFE599 100%) !important;
  }

  .champion-name {
    font-size: 1.15rem !important;
  }

  .champion-logo {
    width: 88px !important;
    height: 88px !important;
  }

  /* 6. Схема зала (плавный горизонтальный скролл пальцем внутри блока) */
  .seats-hall {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px 6px !important;
    border-radius: 16px !important;
  }

  #seatsScheme {
    min-width: 580px !important;
    margin: 0 auto !important;
  }

  .hall-admin-bar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* 7. Правила и расписание */
  .rules-document {
    padding: 22px 14px !important;
    border-radius: 18px !important;
  }

  .rules-title {
    font-size: 1.05rem !important;
  }

  .rule-block {
    padding: 14px !important;
  }

  /* 8. Электронный билет (#ticketPro) — полная адаптация под узкий экран */
  .ek-ticket {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .ekt-head {
    padding: 14px 16px !important;
  }

  .ekt-body {
    padding: 18px 16px !important;
  }

  .ekt-floating-logo {
    width: 56px !important;
    height: auto !important;
    top: 14px !important;
    right: 14px !important;
  }

  .ekt-event-name {
    font-size: 1.15rem !important;
    padding-right: 65px !important;
  }

  .ekt-fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .ekt-barcode svg {
    max-width: 100% !important;
    height: auto !important;
  }

  .ekt-rules {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 14px 16px !important;
  }

  .ekt-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 12px 16px !important;
  }

  /* 9. Профиль и панель администратора */
  .profile-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 18px 14px !important;
  }

  .profile-header > div:last-child {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .profile-header > div:last-child .btn {
    width: 100% !important;
  }

  .admin-section > div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .admin-section > div:first-child .btn {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .admin-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .user-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  /* 10. Модальные окна и настройка зала */
  .modal-overlay {
    padding: 10px !important;
  }

  .modal {
    padding: 24px 16px 20px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    border-radius: 20px !important;
  }

  /* Фикс сетки в модалке настройки зала */
  #seatConfigModal .modal > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  #seatConfigModal .field[style*="grid-column"] {
    grid-column: span 1 !important;
  }
}
/* ============================================================
   ИСПРАВЛЕНИЕ ЭЛЕКТРОННОГО БИЛЕТА (1 В 1 НА ПК И ТЕЛЕФОНЕ)
   ============================================================ */

/* Сам контейнер билета — единый вид на всех экранах */
.ek-ticket {
  width: 100% !important;
  max-width: 580px !important;
  margin: 0 auto !important;
  background: #FFFFFF !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14) !important;
}

/* 1. Красный квадратик «Е БИЛЕТ» — текст строго по центру внутри квадрата */
.ekt-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 18px 24px !important;
  background: #111113 !important;
}

.ekt-logo-box {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  background: #E30613 !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-family: 'Unbounded', sans-serif !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.02em !important;
  padding: 4px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* 2. Тело билета и строки (всегда 1 в 1: название слева, значение справа) */
.ekt-body {
  position: relative !important;
  padding: 24px 26px 20px !important;
  background: #FFFFFF !important;
}

.ekt-fields {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin-top: 16px !important;
}

.ekt-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #EBEBEF !important;
}

/* 3. Значок «0+» — крупнее и строго справа */
.ekt-age {
  width: 44px !important;
  height: 44px !important;
  border: 2px solid #111113 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #111113 !important;
  margin-top: 16px !important;
  margin-left: auto !important; /* Прижимает 0+ вправо */
  margin-right: 0 !important;
}

/* 4. Правила билета — более крупный и четкий текст без смены дизайна */
.ekt-rules {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 18px 26px !important;
  background: #FAFAFC !important;
  border-top: 1px solid #ECECEF !important;
}

.ekt-rules-title {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #44444A !important;
  margin-bottom: 3px !important;
}

.ekt-rules-text {
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
  color: #6E6E77 !important;
}

/* 5. Нижняя черная плашка — всегда в одну строку как на ПК */
.ekt-footer {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 26px !important;
  background: #111113 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.78rem !important;
}

/* 6. На телефоне сохраняем точную копию ПК-билета (1 в 1) */
@media (max-width: 768px) {
  .ekt-head {
    padding: 15px 18px !important;
  }

  .ekt-body {
    padding: 20px 18px 16px !important;
  }

  .ekt-floating-logo {
    width: 54px !important;
    height: 54px !important;
    top: 18px !important;
    right: 18px !important;
  }

  .ekt-event-name {
    font-size: 1.15rem !important;
    padding-right: 64px !important;
  }

  /* Сохраняем строчную структуру полей 1 в 1 как на ПК */
  .ekt-fields {
    display: flex !important;
    flex-direction: column !important;
  }

  .ekt-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
  }

  .ekt-rules {
    padding: 16px 18px !important;
  }

  .ekt-rules-title {
    font-size: 0.84rem !important;
  }

  .ekt-rules-text {
    font-size: 0.8rem !important;
  }

  .ekt-footer {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 18px !important;
    font-size: 0.7rem !important;
  }
}
/* ============================================================
   СЛАЙДЕР "КНИЖНАЯ СТРАНИЦА" (3D ЭФФЕКТ ПЕРЕЛИСТЫВАНИЯ)
   ============================================================ */

/* Убираем все старые декорации */
.stage-float-item, .stage-ambient-light, .stage-spotlight-ray, .hero-stage-visual, .hero-photo-frame, .hero-photo-badge { 
  display: none !important; 
}

/* Контейнер с 3D-перспективой */
.hero-photo-wrap {
  position: relative !important;
  width: 100% !important;
  border-radius: 20px !important;
  background: #111113 !important;
  perspective: 1500px !important; /* Добавляем глубину для 3D */
  overflow: hidden !important;
}

.slide-item {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform-origin: left center !important; /* Ось вращения слева (корешок книги) */
  backface-visibility: hidden !important;
  opacity: 0;
  z-index: 1;
  transform: rotateY(0deg);
  transition: none !important; /* Мгновенный сброс неактивных страниц */
  color: transparent !important;
}

/* Картинка, которая лежит сверху */
.slide-item.active {
  opacity: 1 !important;
  z-index: 2 !important;
}

/* Класс для переворачивающейся страницы (улетает влево) */
.slide-item.turning {
  opacity: 1 !important;
  z-index: 3 !important;
  transform: rotateY(-110deg) !important; /* Угол переворачивания */
  transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
}

/* Темный градиент поверх */
.slider-overlay {
  position: absolute !important;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(17,17,19,0.05) 0%, rgba(17,17,19,0.95) 100%) !important;
  z-index: 4 !important;
  pointer-events: none !important;
}

/* Адаптация размеров */
@media (min-width: 769px) { 
  .hero-photo-wrap { height: 340px !important; } 
}
@media (max-width: 768px) {
  .hero-photo-wrap { height: 220px !important; border-radius: 18px !important; }
  .slider-overlay { background: linear-gradient(to bottom, rgba(17,17,19,0.05) 0%, rgba(17,17,19,0.95) 100%) !important; }
}
/* ============================================================
   ФИКС ЗАЛА СЛАВЫ: СКРЫТИЕ 2 И 3 МЕСТА НА ТЕЛЕФОНАХ
   ============================================================ */
@media (max-width: 768px) {
  /* Перебиваем жесткое правило сетки, если администратор скрыл Зал славы */
  .podium.hidden,
  .champion-card.hidden,
  .winners-soon.hidden,
  #winnersSoon.hidden {
    display: none !important;
  }
}
/* ============================================================
   АНИМАЦИЯ КУБКА В БЛОКЕ "СЕЗОН ИГРЫ УЖЕ ИДЁТ"
   ============================================================ */
@keyframes trophyGlowFloat {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.2));
  }
  50% {
    transform: translateY(-10px) scale(1.08); /* Кубок приподнимается и чуть увеличивается */
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9)); /* Яркое золотое свечение */
  }
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.2));
  }
}

#winnersSoon .soon-icon {
  display: inline-block !important; /* Обязательно для анимации эмодзи */
  animation: trophyGlowFloat 3s ease-in-out infinite !important;
  transform-origin: center bottom;
}
/* ============================================================
   БЕЙДЖ "ВОЛНА 1" И ДАТА ДЛЯ БЛОКА БРОНИРОВАНИЯ
   ============================================================ */
.seats-title-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap; /* На узких телефонах бейдж аккуратно спрыгнет вниз */
  margin-bottom: 5px;
}

.booking-wave-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227, 6, 19, 0.08); /* Полупрозрачный красный фон */
  border: 1px solid rgba(227, 6, 19, 0.25);
  padding: 6px 14px;
  border-radius: 50px;
}

.booking-wave-badge .wave-text {
  color: #e30613; /* Фирменный красный КВН */
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.booking-wave-badge .wave-date {
  color: #888888;
  font-weight: 600;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05); /* Темно-серая подложка для даты */
  padding: 2px 8px;
  border-radius: 10px;
}
/* ============================================================
   ПЕРЕКЛЮЧАТЕЛИ ВОЛН (БИЛЕТЫ И БРОНИРОВАНИЕ)
   ============================================================ */
.wave-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 4px;
  gap: 4px;
  align-items: center;
}
.wave-btn {
  background: transparent;
  border: none;
  color: #888;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.wave-btn.active {
  background: #e30613;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(227, 6, 19, 0.4);
}