@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #003B79;
  --navy-dark:  #001F44;
  --gold:       #F5A300;
  --gold-dark:  #C68400;
  --red:        #C1272D;
  --white:      #FFFFFF;
  --off-white:  #F2F5FA;
  --gray-100:   #EEF1F7;
  --gray-200:   #D8DDE8;
  --gray-400:   #8A93A8;
  --text-main:  #1E2235;
  --text-muted: #4A5168;
  --shadow-sm:  0 1px 4px rgba(0,59,121,0.08);
  --shadow-md:  0 4px 16px rgba(0,59,121,0.12);
  --shadow-lg:  0 8px 32px rgba(0,59,121,0.18);
  --r-sm:  5px;
  --r-md:  9px;
  --r-lg:  14px;
  --font-cond: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --ease: 0.22s ease;

  
  --group-header-h: 52px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;

  
  background-color: #e8edf6;

  
  background-image:
    
    radial-gradient(ellipse 120% 80% at 50% 40%,
      rgba(255,255,255,0.55) 0%,
      rgba(232,237,246,0.0) 100%),
    
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 28px,
      rgba(0,59,121,0.04) 28px,
      rgba(0,59,121,0.04) 29px
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 28px,
      rgba(0,59,121,0.04) 28px,
      rgba(0,59,121,0.04) 29px
    ),
    
    radial-gradient(circle, rgba(0,59,121,0.07) 1px, transparent 1px);

  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    24px 24px;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--navy); color: #fff;
  padding: 6px 14px; border-radius: var(--r-sm);
  font-size: 13px; z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.container {
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 18px;
}
@media (min-width: 768px)  { .container { padding: 0 28px; } }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

.top-bar {
  background: var(--gold); color: var(--navy-dark);
  text-align: center; padding: 8px 18px;
  font-size: 13px; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.2px;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-dark);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 60px; gap: 14px; position: relative;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: 38px; height: 38px; background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; line-height: 1;
}
.logo-text {
  font-family: var(--font-cond); font-size: 23px; font-weight: 900;
  color: var(--white); letter-spacing: 0.5px; line-height: 1;
}
.logo-text span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.78);
  padding: 7px 12px; border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
  white-space: nowrap; text-decoration: none;
}
.nav-link:hover { color: var(--gold); background: rgba(255,255,255,0.07); }

.lang-switcher { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 30px; padding: 0 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(255,255,255,0.22);
  background: transparent; color: rgba(255,255,255,0.65);
  font-family: var(--font-body); text-decoration: none; line-height: 1;
  transition: all var(--ease);
}
.lang-btn:hover { background: rgba(255,255,255,0.1); color: #fff !important; border-color: rgba(255,255,255,0.5); }
.lang-btn.active { background: var(--gold); color: var(--navy-dark) !important; border-color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 7px; border-radius: var(--r-sm); color: var(--white);
}

@media (max-width: 820px) {
  .main-nav {
    display: none; position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column; align-items: stretch;
    padding: 12px 18px 18px; gap: 3px;
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow-lg); z-index: 99;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px 14px; font-size: 15px; }
  .nav-toggle { display: flex; align-items: center; }
}
@media (max-width: 480px) {
  .lang-btn { min-width: 34px; height: 26px; font-size: 11px; padding: 0 6px; }
  .logo-text { font-size: 20px; }
  .logo-icon { width: 34px; height: 34px; font-size: 17px; }
}

.hero {
  background: var(--navy); color: var(--white);
  padding: 52px 0 44px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(245,163,0,0.09); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -50px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 40px solid rgba(255,255,255,0.05); pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; position: relative; z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-cond); font-size: 13px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-cond); font-size: 68px; font-weight: 900;
  line-height: 0.9; color: var(--white); margin-bottom: 16px;
}
.hero-title .accent { color: var(--gold); }
.hero-subtitle {
  font-size: 17px; color: rgba(255,255,255,0.75);
  margin-bottom: 26px; line-height: 1.55;
}
.hero-subtitle strong { color: #fff; font-weight: 600; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 140px;
  padding: 9px 0;
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  text-align: center; white-space: nowrap;
  transition: transform var(--ease);
}
.badge:hover { transform: translateY(-2px); }
.badge-gold    { background: var(--gold); color: var(--navy-dark); }
.badge-outline {
  background: rgba(255,255,255,0.1); color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.26);
}

.hero-visual { display: flex; flex-direction: column; gap: 12px; }
.hero-stat-row { display: flex; gap: 12px; }
.hero-stat-card {
  flex: 1;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-md);
  padding: 18px 14px; text-align: center;
}
.hero-stat-card .num {
  font-family: var(--font-cond); font-size: 46px; font-weight: 900;
  color: var(--gold); line-height: 1;
}
.hero-stat-card .lbl { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 5px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 54px; }
}
@media (max-width: 480px) {
  .hero { padding: 36px 0 32px; }
  .hero-title { font-size: 42px; }
  .hero-stat-card .num { font-size: 38px; }
  .badge { width: calc(50% - 5px); }
}

.section-head {
  display: flex; align-items: center; gap: 12px;
  margin: 44px 0 18px;
}
.section-accent { width: 4px; height: 24px; background: var(--gold); border-radius: 3px; flex-shrink: 0; }
.section-title {
  font-family: var(--font-cond); font-size: 24px; font-weight: 700;
  color: var(--navy); letter-spacing: 0.3px; white-space: nowrap;
}
.section-line { height: 1px; flex: 1; background: var(--gray-200); }

.groups-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
@media (max-width: 1023px) { .groups-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .groups-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px)  { .groups-grid { grid-template-columns: 1fr; } }

.group-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.group-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.group-header {
  background: var(--navy);
  height: var(--group-header-h);
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}
.group-letter {
  font-family: var(--font-cond); font-size: 17px; font-weight: 700;
  color: var(--white); line-height: 1; white-space: nowrap;
}
.group-host {
  font-size: 11px; color: rgba(255,255,255,0.65);
  line-height: 1.2;
  
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.team-row {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-bottom: 1px solid var(--gray-100);
  transition: background var(--ease);
}
.team-row:last-child { border-bottom: none; }
.team-row:hover { background: var(--off-white); }
.team-flag { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.team-name { font-size: 13px; font-weight: 500; color: var(--text-main); flex: 1; }
.team-conf { font-size: 11px; color: var(--gray-400); white-space: nowrap; }
.seed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.no-dot    { width: 7px; display: inline-block; flex-shrink: 0; }

.groups-note { font-size: 12px; color: var(--gray-400); margin-top: 8px; display: flex; align-items: center; gap: 6px; }

.cities-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px;
  align-items: stretch;
}
@media (max-width: 1023px) { .cities-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .cities-grid { grid-template-columns: repeat(2, 1fr); } }

.city-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--navy);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.city-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.city-card.final {
  border-left-color: var(--gold);
  background: #fffcf0;
  border-color: #dfc870;
}

.city-top { flex: 1; }
.city-name { font-size: 13px; font-weight: 600; color: var(--text-main); line-height: 1.3; margin-bottom: 3px; }
.city-country { font-size: 12px; color: var(--gray-400); }

.city-final-strip {
  display: flex; align-items: center; gap: 7px;
  margin-top: 10px;
  padding: 7px 10px;
  background: var(--gold); border-radius: var(--r-sm);
  font-size: 12px; font-weight: 700; color: var(--navy-dark);
}

.city-strip-placeholder {
  margin-top: 10px; padding: 7px 10px;
  font-size: 12px; font-weight: 700;
  visibility: hidden; pointer-events: none;
  border-radius: var(--r-sm);
}

.seo-article {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}
@media (max-width: 767px) { .seo-article { padding: 24px 18px; } }

.seo-h2 {
  font-family: var(--font-cond); font-size: 22px; font-weight: 700;
  color: var(--navy); margin: 30px 0 12px;
  padding-left: 12px; border-left: 4px solid var(--gold); line-height: 1.2;
}
.seo-h2:first-child { margin-top: 0; }

.seo-p {
  font-size: 15px; line-height: 1.82;
  color: var(--text-muted); margin-bottom: 13px;
}
.seo-p strong { color: var(--text-main); font-weight: 600; }

.seo-callout {
  background: var(--gray-100); border-left: 4px solid var(--navy);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 16px; font-size: 14px; color: var(--text-main);
  font-weight: 500; margin: 16px 0; line-height: 1.65;
}

.seo-table-wrap {
  overflow-x: auto; margin: 16px 0;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--gray-200);
}
.seo-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 400px; }
.seo-table th {
  background: var(--navy); color: var(--white);
  padding: 11px 15px; text-align: left;
  font-family: var(--font-cond); font-weight: 600; font-size: 15px;
}
.seo-table td { padding: 10px 15px; border-bottom: 1px solid var(--gray-100); color: var(--text-muted); }
.seo-table tr:last-child td { border-bottom: none; }
.seo-table tr:nth-child(even) td { background: var(--off-white); }
.seo-table td strong { color: var(--text-main); }

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--ease);
  backdrop-filter: blur(4px);
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-item.open { border-color: var(--navy); }

.faq-question {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 20px; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--text-main); transition: color var(--ease); line-height: 1.4;
}
.faq-question:hover, .faq-item.open .faq-question { color: var(--navy); }

.faq-icon {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--gold); font-style: normal;
  transition: transform var(--ease), background var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--gold); color: var(--navy-dark); }

.faq-answer {
  display: none; padding: 14px 20px 18px;
  font-size: 14px; line-height: 1.78; color: var(--text-muted);
  border-top: 1px solid var(--gray-100);
}
.faq-answer strong { color: var(--text-main); }
.faq-item.open .faq-answer { display: block; }

.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.6);
  margin-top: 64px; padding: 36px 0;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 28px; align-items: center;
}
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { font-family: var(--font-cond); font-size: 26px; font-weight: 900; color: var(--gold); margin-bottom: 6px; }
.footer-text { font-size: 13px; line-height: 1.65; }
.footer-links { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; }
@media (max-width: 640px) { .footer-links { align-items: flex-start; } }
.footer-link { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-link:hover { color: var(--gold); }

#scrollTop {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  background: var(--navy); color: var(--gold);
  border: 2px solid var(--gold); border-radius: 50%;
  width: 46px; height: 46px; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.2s; box-shadow: var(--shadow-md);
}
#scrollTop.visible { opacity: 1; pointer-events: auto; }
#scrollTop:hover { transform: translateY(-3px); }
