/* ═══════════════════════════════════════════════════════════
   FIFUSA • UEFS — HOME REDESIGN (DESIGN.md: "neon highlighter on white")
   Standalone stylesheet — scoped to the homepage only so other pages
   keep the current dark theme until the direction is approved.
   Fonts: Inter (NoiGrotesk substitute) + Archivo (SansPlomb substitute),
   both with Cyrillic support.
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --lime:        #dbf52f;
  --cyan:        #7af3ff;
  --abyss:       #052326;
  --ink:         #14151c;
  --white:       #ffffff;
  --ash:         #666666;
  --hairline:    #e5e5e5;

  --font-ui:     'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display:'Archivo', 'Inter', ui-sans-serif, system-ui, sans-serif;

  --r-card:  24px;
  --r-btn:   8px;
  --r-full:  9999px;

  --maxw:    1200px;
  --gap-sec: 80px;
}

/* ─── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ─── NAVBAR ───────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
}
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.navbar-brand .dot { color: var(--ink); }

#navMenu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--r-btn);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-link:hover { background: #f2f2f2; }
.nav-link.active { background: var(--lime); color: var(--ink); }

/* Lang switcher */
.lang-switcher { display: flex; gap: 2px; margin-left: 12px; }
.lang-btn {
  padding: 7px 11px;
  border: none;
  background: none;
  cursor: pointer;
  font: 500 13px var(--font-ui);
  color: var(--ash);
  border-radius: var(--r-btn);
  transition: background 0.15s, color 0.15s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--lime); color: var(--ink); }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 8px; margin-left: auto;
}
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 24px 96px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Full-bleed radial that fades to transparent well before the edges,
     so there is no hard rectangular seam on wide screens. */
  background: radial-gradient(1000px 820px at 50% 42%, var(--cyan) 0%, var(--lime) 52%, rgba(255,255,255,0) 80%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; }

.hero-logos {
  display: flex; justify-content: center; align-items: center;
  gap: 28px; margin-bottom: 36px;
}
.hero-logos img { height: 96px; width: auto; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  color: var(--ink);
  text-transform: uppercase;
}
/* Lime highlighter marker on the emphasised word */
.hero h1 .hl {
  background: var(--lime);
  box-shadow: 0 0 0 2px var(--lime);
  padding: 0 0.08em;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto 36px;
  font-weight: 500;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 16px var(--font-ui);
  padding: 13px 26px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: #cbe81c; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* ─── TICKER (lime highlighter strip) ──────────────────── */
.ticker {
  overflow: hidden;
  background: var(--lime);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 12px 0;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 0 22px;
}
.ticker-item span { opacity: 0.4; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── SECTIONS ─────────────────────────────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: var(--gap-sec) 24px; }
.section-alt { background: #fafafa; max-width: none; }
/* Full-bleed grey band, but keep every direct child inside the centered
   column so text/chips align exactly with the rest of the page.
   maxw − 48px matches the text column of normal .section (1200 − 2×24px pad). */
.section-alt > * { max-width: calc(var(--maxw) - 48px); margin-left: auto; margin-right: auto; }

.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}
.section-label::first-letter { color: var(--ink); }

.section-text { font-size: 17px; line-height: 1.6; color: var(--ash); }
.section-text b { color: var(--ink); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* ─── MISSION ──────────────────────────────────────────── */
.mission-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--gap-sec) 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.mission-section h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--ink);
}
.mission-section h2 .hl { background: var(--lime); padding: 0 0.08em; }
.mission-section p { font-size: 18px; line-height: 1.6; color: var(--ash); margin: 0; }
.mission-section p b { color: var(--ink); }

.mission-balls {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 360px;
}
.mission-balls::before {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,243,255,0.9) 0%, rgba(122,243,255,0.4) 45%, rgba(255,255,255,0) 72%);
  animation: ballGlow 3.2s ease-in-out infinite;
}
.mission-balls img {
  position: relative;
  height: 320px; width: auto;
  animation-name: ballIn;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
  animation-play-state: paused;
  filter: drop-shadow(0 24px 40px rgba(5,35,38,0.22));
}
@keyframes ballGlow { 0%,100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes ballIn {
  0%   { opacity: 0; transform: translateY(60px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── PRESIDENTS ───────────────────────────────────────── */
.presidents-table { display: flex; flex-direction: column; }
.president-row {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 24px;
  padding: 20px 4px;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.president-row:last-child { border-bottom: 1px solid var(--hairline); }
.president-years { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.president-name { font-size: 17px; font-weight: 500; color: var(--ink); }
.president-country { font-size: 15px; color: var(--ash); text-align: right; }
.president-row.current { background: var(--lime); border-radius: var(--r-card); border-color: transparent; padding: 20px 24px; }
.president-row.current .president-country { color: var(--ink); }
.president-note { margin-top: 24px; font-size: 15px; color: var(--ash); line-height: 1.6; max-width: 760px; }

/* ─── COOP CARDS ───────────────────────────────────────── */
.coop-events { display: flex; gap: 12px; flex-wrap: wrap; }
.coop-card {
  flex: 1; min-width: 120px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 24px;
  text-align: center;
}
.coop-card-year { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--ink); }
.coop-card-place { font-size: 15px; color: var(--ash); margin-top: 4px; }

/* ─── COMPETITIONS ─────────────────────────────────────── */
.comp-list { display: flex; flex-direction: column; gap: 14px; }
.comp-item { display: flex; gap: 12px; font-size: 16px; color: var(--ink); align-items: baseline; }
.comp-arrow {
  color: var(--ink);
  background: var(--lime);
  border-radius: var(--r-full);
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}

/* ─── NEWS ─────────────────────────────────────────────── */
.news-section-header {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 32px;
}
.news-section-header h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0; color: var(--ink);
}
.news-section-header .all-link { font-weight: 600; font-size: 15px; color: var(--ink); border-bottom: 2px solid var(--lime); }

.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform 0.15s;
}
.card:hover { transform: translateY(-3px); }
.card-img { width: 100%; height: 260px; object-fit: cover; }
.card-img-placeholder {
  height: 260px;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(-45deg, #f4f4f4, #f4f4f4 12px, #eee 12px, #eee 24px);
  color: var(--ash); font-size: 13px;
}
.card-body { padding: 24px; }
.card-meta { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.card-title { font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--ink); }

.spinner-wrap { grid-column: 1/-1; display: flex; justify-content: center; padding: 40px; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--hairline); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; color: var(--ash); padding: 40px; }
.empty-icon { font-size: 40px; margin-bottom: 8px; }

/* ─── FOOTER ───────────────────────────────────────────── */
footer { margin-top: var(--gap-sec); }
.footer-banner { background: var(--white); }
.footer-banner img { width: 100%; }
.footer-bottom {
  background: var(--abyss);
  color: var(--white);
  border-radius: var(--r-card) var(--r-card) 0 0;
  padding: 40px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: var(--lime); }

/* ─── REVEAL ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2, .mission-section { grid-template-columns: 1fr; gap: 32px; }
  .mission-balls { min-height: 280px; }
  .mission-balls img { height: 240px; }
  .president-row { grid-template-columns: 110px 1fr; }
  .president-country { display: none; }
}
@media (max-width: 768px) {
  #navMenu {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--hairline);
    padding: 8px 16px 16px; gap: 4px; z-index: 50;
  }
  #navMenu.open { display: flex; }
  .navbar { position: relative; }
  .nav-link { padding: 12px 14px; }
  .lang-switcher { margin: 8px 0 0; }
  .mobile-toggle { display: flex; }
  #homeNewsList { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   INNER PAGES — shared components (about, news, media, partners,
   documents, contact, article) in the light/lime system.
   ═══════════════════════════════════════════════════════════ */

/* ─── PAGE HEADER (news / media / partners / documents / contact) ── */
.page-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 28px;
}
.page-header .section-label { margin-bottom: 10px; }
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}
.page-header-note {
  font-size: 17px;
  color: var(--ash);
  max-width: 640px;
  margin: 20px 0 0;
  line-height: 1.6;
}

/* ─── PAGE HERO (about) — gradient banner with logos + title ── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 24px 64px;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 620px at 50% 40%, var(--cyan) 0%, var(--lime) 52%, rgba(255,255,255,0) 80%);
  z-index: 0;
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}
.page-hero-inner img { height: 84px; width: auto; }
.page-hero-inner h1 {
  flex-basis: 100%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 12px 0 0;
  color: var(--ink);
}

/* ─── GRIDS ────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* about → microfutsal history: single readable text column, not a 4-col grid */
.grid-5-4 { display: block; }
.grid-5-4 .section-text { max-width: 860px; }

/* ─── PAGINATION ───────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.page-btn {
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--hairline);
  background: var(--white);
  border-radius: var(--r-btn);
  font: 500 14px var(--font-ui);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.page-btn:hover:not(:disabled) { border-color: var(--ink); }
.page-btn.active { background: var(--lime); border-color: var(--lime); }
.page-btn:disabled { opacity: 0.4; cursor: default; }

/* ─── FILTER TABS (media) ──────────────────────────────── */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-tab {
  padding: 9px 20px;
  border: 1px solid var(--hairline);
  background: var(--white);
  border-radius: var(--r-full);
  font: 500 14px var(--font-ui);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.filter-tab:hover { border-color: var(--ink); }
.filter-tab.active { background: var(--lime); border-color: var(--lime); }

/* ─── MEDIA CARD extras ────────────────────────────────── */
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--lime); color: var(--ink);
  font: 700 11px var(--font-display);
  letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: var(--r-full);
}
.card-img-placeholder { position: relative; }
.card-video-wrap { position: relative; aspect-ratio: 16/9; background: #000; }
.card-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ─── PARTNERS ─────────────────────────────────────────── */
.partner-white {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 40px 24px;
  min-height: 180px;
}
.partner-white-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink) !important; }
.partner-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 1px dashed #d5d5d5;
  border-radius: var(--r-card);
  padding: 40px 24px; min-height: 180px;
  background: #fafafa;
}
.partner-slot-img { width: 64px; height: 64px; border-radius: 12px; background: repeating-linear-gradient(-45deg,#eee,#eee 8px,#e3e3e3 8px,#e3e3e3 16px); }
.partner-slot-hint { font-size: 12px; color: var(--ash); text-align: center; max-width: 160px; }

/* ─── DOCUMENTS ────────────────────────────────────────── */
#docsList { display: flex; flex-direction: column; gap: 12px; }
.doc-item {
  display: flex; align-items: center; gap: 20px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 20px 24px;
}
.doc-icon-box {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--ink);
  border-radius: 12px;
  font: 700 13px var(--font-display);
}
.doc-info { flex: 1; min-width: 0; }
.doc-title { font-size: 17px; font-weight: 600; color: var(--ink); }
.doc-hint { font-size: 13px; color: var(--ash); margin-top: 3px; }
.doc-download-link { flex-shrink: 0; font: 600 14px var(--font-ui); color: var(--ink); border-bottom: 2px solid var(--lime); padding-bottom: 2px; }

/* ─── FORMS (contact) ──────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 8px;
  font: 600 13px var(--font-display);
  letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink);
}
.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--white);
  font: 400 16px var(--font-ui);
  color: var(--ink);
  transition: border-color 0.15s;
}
.form-control:focus { outline: none; border-color: var(--ink); }
textarea.form-control { resize: vertical; border-radius: 18px; }

.btn-blue {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--ink);
  font: 500 16px var(--font-ui);
  padding: 14px 32px;
  border: none; border-radius: var(--r-btn);
  cursor: pointer;
  transition: background 0.15s;
}
.btn-blue:hover { background: #cbe81c; }

/* ─── ARTICLE ──────────────────────────────────────────── */
.article-page { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.article-back { display: inline-block; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 28px; border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.article-category { font: 700 13px var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); background: var(--lime); display: inline-block; padding: 4px 12px; border-radius: var(--r-full); margin-bottom: 16px; }
.article-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 5vw, 56px); line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 16px; color: var(--ink); }
.article-meta { font-size: 15px; color: var(--ash); margin-bottom: 28px; }
.article-meta span { color: var(--ink); font-weight: 600; }
.article-hero-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--r-card); margin-bottom: 24px; }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 40px; }
.article-gallery-img { width: 100%; height: 170px; object-fit: cover; border-radius: 16px; }
.article-body { font-size: 18px; line-height: 1.75; color: #2a2b33; }
.article-body p { margin: 0 0 1.2rem; }
.article-body h2, .article-body h3 { font-family: var(--font-display); color: var(--ink); margin: 2rem 0 0.75rem; }
.article-body img { max-width: 100%; border-radius: 16px; margin: 1rem 0; }

/* ─── COUNTRIES (about) ────────────────────────────────── */
.countries-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.country-chip {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  padding: 9px 18px;
  font-size: 15px; font-weight: 500;
  color: var(--ink);
}

/* ─── about: angled alt section is just a soft grey band here ── */
.section-angled { transform: none; }

/* ─── RESPONSIVE (inner pages) ─────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .doc-item { flex-wrap: wrap; }
}
