@font-face {
  font-family: 'Fifa26';
  src: url('/fonts/fifa-26.otf') format('opentype');
  font-display: swap;
}

:root {
  --bg-deep: #0a2f63;
  --bg-mid: #11488d;
  --bg-soft: #dce8f8;
  --ink: #10233f;
  --ink-soft: #436487;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(16, 35, 63, 0.12);
  --accent: #00c2ff;
  --accent-strong: #0cf;
  --gold: #ecd18b;
  --shadow: 0 24px 60px rgba(5, 27, 58, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Avenir Next', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #f4f8ff 0%, #dfeeff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Segoe UI', 'Avenir Next', sans-serif;
  letter-spacing: 0.03em;
}

.page-home .hero h1 {
  font-family: 'Fifa26', 'Avenir Next', sans-serif;
}

p {
  margin: 0;
  line-height: 1.65;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(7, 33, 74, 0.94), rgba(14, 77, 148, 0.82)),
    url('/images/background_banner.webp') center/cover no-repeat;
  color: #fff;
}

.hero__backdrop,
.hero__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__backdrop {
  background:
    radial-gradient(circle at 75% 18%, rgba(236, 209, 139, 0.24), transparent 22%),
    radial-gradient(circle at 22% 40%, rgba(12, 204, 255, 0.18), transparent 20%);
}

.hero__noise {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
}

.topbar,
.hero__content,
.section,
.subhero__content,
.rules-shell,
.footer-banner {
  width: var(--content-width);
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__logo {
  width: 64px;
}

.brand__text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar__links {
  display: inline-flex;
  gap: 24px;
  font-size: 0.95rem;
}

.topbar__links a {
  opacity: 0.86;
}

.topbar__links a:hover {
  opacity: 1;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 84px);
  padding: 44px 0 72px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--bg-mid);
}

.hero h1,
.subhero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
}

.hero__lead,
.subhero p,
.section__heading p {
  max-width: 62ch;
  font-size: 1.08rem;
}

.hero__lead {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), #67e1ff);
  color: #03203b;
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.hero__status-card {
  margin-top: 30px;
  max-width: 420px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero__status-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero__status-card strong {
  display: block;
  font-size: 1.45rem;
}

.hero__status-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.hero__art {
  position: relative;
}

.hero__art::before {
  content: '';
  position: absolute;
  inset: 8% 4% auto auto;
  width: 88%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 62%);
  filter: blur(10px);
}

.hero__mascots {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.36));
}

.section {
  padding: 88px 0;
}

.section--light {
  color: var(--ink);
}

.section--feature {
  padding-top: 20px;
}

.section__heading {
  margin-bottom: 36px;
}

.section__heading h2,
.feature-panel__content h2,
.rules-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.section__heading p {
  margin-top: 14px;
  color: var(--ink-soft);
}

.steps-grid,
.editions-grid {
  display: grid;
  gap: 22px;
}

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

.info-card,
.edition-card,
.rules-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.info-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
}

.info-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-mid));
  color: #fff;
  font-weight: 800;
}

.info-card h3,
.edition-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.info-card p + p {
  margin-top: 10px;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: #f7fbff;
}

.feature-panel__image {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(7, 33, 74, 0.08), rgba(7, 33, 74, 0.48)),
    url('/images/background_blue.jpg') center/cover no-repeat;
}

.feature-panel__image-overlay {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(15, 72, 141, 0.34), rgba(0, 0, 0, 0)),
    url('/images/background_banner.webp') center/cover no-repeat;
  mix-blend-mode: multiply;
}

.feature-panel__content {
  padding: 42px;
}

.feature-panel__content p {
  margin-top: 16px;
  color: var(--ink-soft);
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--bg-mid);
  font-weight: 800;
}

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

.edition-card {
  padding: 24px 20px;
  text-align: center;
}

.edition-card--link {
  display: block;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.edition-card--link:hover,
.edition-card--link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(17, 72, 141, 0.28);
  box-shadow: 0 28px 70px rgba(5, 27, 58, 0.22);
}

.edition-card__mascot {
  width: 118px;
  height: 118px;
  margin: 0 auto 16px;
  border: 3px solid rgba(17, 72, 141, 0.12);
  border-radius: 50%;
  object-fit: cover;
}

.edition-card__ranking {
  margin-top: 18px;
  border-radius: 14px;
}

.footer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 40px;
  padding: 26px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-mid));
  color: #fff;
}

.footer-banner p {
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
}

.footer-banner a {
  font-size: 1.2rem;
  font-weight: 700;
}

.subhero {
  padding-bottom: 34px;
  background:
    radial-gradient(circle at right top, rgba(236, 209, 139, 0.22), transparent 20%),
    linear-gradient(180deg, #eff6ff 0%, #dfeaf8 100%);
}

.topbar--dark {
  padding-top: 22px;
}

.brand--dark .brand__text,
.topbar__links--dark {
  color: var(--ink);
}

.subhero__content {
  padding: 52px 0 16px;
}

.subhero__content p {
  margin-top: 16px;
  color: var(--ink-soft);
}

.rules-shell {
  display: grid;
  gap: 24px;
  padding: 0 0 72px;
}

.rules-card {
  padding: 28px;
}

.rules-card > p + p {
  margin-top: 12px;
}

.rules-card h2 {
  margin-bottom: 18px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.rules-table th,
.rules-table td {
  padding: 8px 16px;
  border-bottom: 1px solid rgba(16, 35, 63, 0.08);
  //text-align: left;
}

.rules-table thead th {
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-mid));
  color: #fff;
}

.rules-table-points {
  text-align: center;
}

.rules-table-section0 {
  background: rgba(17, 72, 141, 0.1);
}

.rules-table-section1 {
  background: rgba(17, 72, 141, 0.2);
}

.rules-table-section2 {
  background: rgba(17, 72, 141, 0.3);
}

.rules-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
}

@media (max-width: 1024px) {
  .hero__content,
  .feature-panel {
    grid-template-columns: 1fr;
  }

  .hero__content {
    min-height: auto;
    padding-top: 56px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar,
  .footer-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar__links {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .editions-grid {
    grid-template-columns: 1fr;
  }

  .feature-panel__content,
  .info-card,
  .rules-card {
    padding: 22px;
  }
}
