:root {
  --bg: #0b0d12;
  --bg-soft: #121722;
  --card: #181f2c;
  --text: #f5f7fb;
  --muted: #bac3d1;
  --line: #2c3445;
  --accent: #e11d2e;
  --accent-2: #ffd447;
  --max: 1200px;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #090b10 0%, #0f141d 100%);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

a[href^="tel:"],
a[href^="mailto:"] {
  color: #ffd9dd;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 18, 0.88);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-width: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.desktop-nav a,
.mobile-nav a {
  padding: .8rem .95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: .2s ease;
  font-weight: 600;
  font-size: .95rem;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
  border-radius: 5px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .8rem 0 1rem;
}

.mobile-panel.show {
  display: block;
}

.mobile-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: .35rem;
}

.hero,
.page-section {
  padding: 4rem 0 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(225,29,46,.12);
  color: #ffd6da;
  border: 1px solid rgba(225,29,46,.25);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.12;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.2rem, 4.2vw, 4.7rem);
  margin-top: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.section-intro,
.hero p,
.muted {
  color: var(--muted);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 1.8rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .85rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  transition: .2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #f52538;
}

.btn-secondary {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  color: var(--text);
}

.hero-card,
.stat,
.card,
.info-box,
.rule-card,
.sponsor-card,
.contact-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.stat,
.card,
.info-box,
.rule-card,
.sponsor-card,
.contact-card {
  padding: 1.25rem;
}

.grid-2,
.grid-3,
.grid-4,
.about-layout,
.contacts-layout,
.hero-stats {
  display: grid;
  gap: 1.1rem;
}

.grid-2,
.about-layout,
.contacts-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-stats {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.25rem;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent-2);
}

.calendar-list,
.contact-list,
.rules-list {
  display: grid;
  gap: .9rem;
}

.event {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.date-badge {
  text-align: center;
  padding: .8rem .5rem;
  border-radius: 14px;
  background: rgba(225,29,46,.14);
  border: 1px solid rgba(225,29,46,.28);
}

.date-badge strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  color: white;
}

.date-badge span {
  color: #ffd9dd;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .05em;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,.08);
}

.slideshow {
  position: relative;
  min-height: 520px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
}

.hero-overlay-content {
  padding: 2rem;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
}

.slide-btn.prev { left: 1rem; }
.slide-btn.next { right: 1rem; }

.slide-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: .55rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  opacity: .45;
  cursor: pointer;
}

.dot.active { opacity: 1; }

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

.footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: .5rem;
}

.social-icons a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.1);
}

.sponsor-card {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:#111;
}

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

@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .grid-4,
  .grid-3,
  .grid-2,
  .about-layout,
  .contacts-layout,
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .slideshow,
  .hero-overlay { min-height: 360px; }
  .hero { padding-top: 2.4rem; }
  .page-section { padding-top: 2.4rem; }
  .nav { min-height: 72px; }
  .brand img { width: 135px !important; }
  .container { width: min(100% - 1rem, var(--max)); }
  .event { grid-template-columns: 1fr; align-items: flex-start; }
  .cta-row,
  .footer-row { flex-direction: column; align-items: stretch; }
  .social-icons { justify-content: flex-start; }
  .btn { width: 100%; }
  .hero,
  .page-section { padding-bottom: 3.3rem; }
}

.mobile-panel {
  display: none;
}

.mobile-panel.show {
  display: block;
}
