/* =====================================================================
   NOVA · Volleyball Club Vienna — Cosmic design system
   ===================================================================== */

:root {
  /* Space palette */
  --space-900: #04060f;
  --space-850: #060917;
  --space-800: #080c1e;
  --space-750: #0a1026;
  --space-700: #0d1430;

  /* Accents (from the NOVA galaxy) */
  --cyan: #38d6ff;
  --cyan-bright: #8fe9ff;
  --blue: #2b7bff;
  --violet: #7c5cff;

  /* Text */
  --text: #eaf1ff;
  --muted: #a7b6d6;
  --muted-dim: #7f8fb5;

  /* Surfaces */
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(126, 170, 255, 0.16);
  --border-strong: rgba(126, 170, 255, 0.30);

  /* Effects */
  --grad-brand: linear-gradient(135deg, var(--cyan-bright) 0%, var(--cyan) 40%, var(--blue) 100%);
  --grad-text: linear-gradient(120deg, #b9f0ff 0%, #52d3ff 45%, #4d8bff 100%);
  --glow-cyan: 0 0 40px rgba(56, 214, 255, 0.35);
  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.9);

  --radius: 18px;
  --radius-lg: 26px;
  --container: 1160px;

  --font-display: "Unbounded", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--space-900);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* Unbounded is a wide face — keep tracking neutral and give lines a bit more air. */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.16; margin: 0; letter-spacing: normal; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--cyan); color: #041018; padding: 10px 18px; border-radius: 0 0 12px 12px;
  font-weight: 600; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ------------------------ Cosmic background ------------------------ */
#starfield {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -3; display: block;
}
body::before { /* deep gradient wash */
  content: ""; position: fixed; inset: 0; z-index: -4;
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(43, 123, 255, 0.18), transparent 60%),
    radial-gradient(1000px 700px at 95% 5%, rgba(124, 92, 255, 0.14), transparent 55%),
    linear-gradient(180deg, var(--space-900) 0%, var(--space-850) 40%, var(--space-900) 100%);
}
.nebula {
  position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; pointer-events: none;
  will-change: transform;
}
.nebula--1 { width: 620px; height: 620px; top: 8%; left: -12%;
  background: radial-gradient(circle, rgba(56,214,255,0.30), transparent 70%); }
.nebula--2 { width: 720px; height: 720px; bottom: -6%; right: -14%;
  background: radial-gradient(circle, rgba(124,92,255,0.26), transparent 70%); }

/* --------------------------- Utilities --------------------------- */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan); animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.4; transform:scale(.75);} }

/* ---------------------------- Buttons ---------------------------- */
.btn {
  --btn-pad: 15px 30px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--btn-pad); border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
/* Only the trailing arrow slides on hover — a leading .btn__icon stays put. */
.btn > span[aria-hidden]:last-child { transition: transform .25s var(--ease); }
.btn:hover > span[aria-hidden]:last-child { transform: translateX(4px); }
.btn__icon { display: inline-flex; }
.btn__icon svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn--sm { --btn-pad: 10px 20px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--grad-brand); color: #04121e;
  box-shadow: 0 10px 30px -10px rgba(56,214,255,0.7), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(56,214,255,0.85); }
.btn--ghost {
  background: var(--glass); color: var(--text); border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--cyan); background: var(--glass-strong); }

/* ------------------------------- Nav ------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, backdrop-filter .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent; padding: 6px 0;
}
/* The scrolled backdrop lives on ::before, not on .nav itself: backdrop-filter
   on .nav would make it the containing block for the fixed mobile drawer,
   clipping the drawer to the nav's height. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(6, 9, 23, 0.72); backdrop-filter: blur(14px) saturate(140%);
  opacity: 0; transition: opacity .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav.is-scrolled::before { opacity: 1; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 46px; height: 46px; object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(56,214,255,0.55));
  animation: spin 60s linear infinite;
}
.brand__type { width: 116px; height: 28px; }
.footer .brand__type { width: 104px; height: 25px; }

@keyframes spin { to { transform: rotate(360deg); } }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a:not(.btn) {
  font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; color: var(--muted);
  position: relative; transition: color .2s;
}
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad-brand); transition: width .25s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--text); }
.nav__links > a:not(.btn):hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

/* Language switch (EN / УКР) */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.lang-switch__btn {
  appearance: none; border: 0; cursor: pointer; background: none;
  padding: 6px 12px; border-radius: 999px; color: var(--muted);
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  transition: color .2s, background .25s var(--ease), box-shadow .25s var(--ease);
}
.lang-switch__btn:hover { color: var(--text); }
.lang-switch__btn.is-active {
  background: var(--grad-brand); color: #04121e;
  box-shadow: 0 4px 14px -6px rgba(56,214,255,0.8);
}
.lang-switch__btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------ Hero ------------------------------ */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
  min-height: min(78vh, 720px);
}
.hero__headline { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: normal; margin-bottom: 22px; }
/* The h1 holds the small location line plus the big tagline; each keeps its own
   scale, so the heading reads as one block visually but two parts semantically. */
.hero__headline .eyebrow { line-height: 1.4; }
.hero__tagline { display: block; }
.hero__lede { color: var(--muted); font-size: 1.12rem; max-width: 56ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero visual: galaxy + orbits + volleyballs */
.hero__visual { position: relative; aspect-ratio: 1; max-width: 460px; margin: 0 auto; width: 100%; }
.hero__galaxy {
  position: absolute; inset: 0; margin: auto; width: 62.4%; height: 62.4%; object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(56,214,255,0.45));
  animation: spin 90s linear infinite, floaty 8s ease-in-out infinite;
}
/* Elliptical orbits. Each visible ring is an ellipse matching the ball's
   offset-path exactly: same semi-axes, same off-centre position (the galaxy
   sits toward a focus, not the middle) and the same tilt. The rings rotate
   about the CONTAINER centre, so transform-origin is expressed in ring-local
   coordinates — keep it in sync if the geometry changes. */
.orbit {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(126,170,255,0.18);
}
.orbit--1 {
  width: 94%; height: 68%; left: 6%; top: 16%;
  transform-origin: 46.81% 50%; transform: rotate(-14deg);
}
.orbit--2 {
  width: 68%; height: 48%; left: 14%; top: 26%;
  border-style: dashed; border-color: rgba(56,214,255,0.22);
  transform-origin: 52.94% 50%; transform: rotate(10deg);
}
.hero__ball {
  position: absolute;
  filter: drop-shadow(0 0 5px rgba(56,214,255,0.8)) drop-shadow(0 0 14px rgba(56,214,255,0.35));
}
/* The tracks only carry the orbital tilt now; the motion itself lives on the
   balls as an offset-path. */
.orbit-track { position: absolute; inset: 0; }
.orbit-track--1 { transform: rotate(-14deg); }
.orbit-track--2 { transform: rotate(10deg); }
/* Kepler-ish velocity with inertia: the ball whips through 0% (the near
   point) at ~2.6x its average speed and coasts out at the far point at
   ~0.25x. The two beziers mirror each other with matching end slopes, so
   velocity stays continuous at both joints and the loop never stalls. */
@keyframes orbit-kepler {
  0%   { offset-distance: 0%;   animation-timing-function: cubic-bezier(0.3, 0.78, 0.72, 0.93); }
  50%  { offset-distance: 50%;  animation-timing-function: cubic-bezier(0.28, 0.07, 0.7, 0.22); }
  100% { offset-distance: 100%; }
}
/* The paths themselves are set from main.js in px (browsers resolve basic-shape
   percentages against the ball's own box, not the track). top/left here are the
   static fallback; main.js adds body.orbits-live when the px paths are applied.
   Each ball also spins on its own axis via transform (composes with offset). */
.hero__ball--a {
  top: 6%; left: 50%; width: 46px; height: 46px; margin-left: -23px; margin-top: -23px;
  offset-rotate: 0deg;
  animation: orbit-kepler 16s infinite, spin 7s linear infinite;
}
.hero__ball--b {
  top: 22%; left: 50%; width: 32px; height: 32px; margin-left: -16px; margin-top: -16px;
  offset-rotate: 0deg;
  animation: orbit-kepler 11s infinite reverse, spin 5s linear infinite reverse;
  animation-delay: -4s, 0s;
}
/* px offset-path coordinates are relative to the ball's own box, so pin that
   box to the track's origin while the JS paths are live. */
body.orbits-live .hero__ball--a,
body.orbits-live .hero__ball--b { top: 0; left: 0; margin: 0; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 3px; background: var(--cyan);
  animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%{opacity:0; transform: translateY(-4px);} 30%{opacity:1;} 100%{opacity:0; transform: translateY(14px);} }

/* ----------------------------- Sections ----------------------------- */
.section { position: relative; padding: 100px 0; }
.section--alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(10,16,38,0.55) 12%, rgba(10,16,38,0.55) 88%, transparent);
  border-block: 1px solid var(--border);
}
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__title { font-size: clamp(2rem, 4vw, 3.1rem); }
.section__intro { color: var(--muted); margin-top: 18px; font-size: 1.08rem; }

/* Club */
.club__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.club__lead .quote {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4; font-weight: 500;
  color: var(--text); margin-bottom: 26px; padding-left: 22px; border-left: 3px solid var(--cyan);
}
.club__lead p:not(.quote) { color: var(--muted); margin-bottom: 16px; }
.pill-list { display: grid; gap: 14px; }
.pill-list li {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px;
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 500; transition: transform .25s var(--ease), border-color .25s;
}
.pill-list li:hover { transform: translateX(6px); border-color: var(--border-strong); }
.pill-list__icon { color: var(--cyan); font-size: 1.1rem; }

/* Cards (training) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; padding: 32px 26px; border-radius: var(--radius-lg);
  background: var(--glass); border: 1px solid var(--border);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card::before { /* top glow line */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-8px); border-color: var(--border-strong); background: var(--glass-strong); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: radial-gradient(circle at 30% 20%, rgba(56,214,255,0.28), rgba(43,123,255,0.10));
  border: 1px solid var(--border-strong);
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--cyan); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* Coaches */
.coaches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.coach {
  border-radius: var(--radius-lg); background: var(--glass); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), border-color .3s;
}
.coach:hover { transform: translateY(-8px); border-color: var(--border-strong); }
.coach__photo { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; }
.coach__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.coach__photo::after { /* cosmic tint over photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,12,30,0) 40%, rgba(8,12,30,0.85) 100%),
              radial-gradient(120% 80% at 50% 0%, rgba(56,214,255,0.14), transparent 60%);
}
.coach__body { padding: 24px 26px 30px; }
.coach__body h3 { font-size: 1.3rem; }
.coach__role { color: var(--cyan); font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; margin: 4px 0 10px; }
.coach__exp { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.coach__years { font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: 1.05rem; }
.coach__body > p:last-child { color: var(--muted); font-size: 0.95rem; }

/* ------------------------------ Teams ------------------------------ */
.teams { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.team-card {
  position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  height: clamp(320px, 40vw, 460px);
  transition: transform .3s var(--ease), border-color .3s;
}
.team-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.team-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 26%; }
.team-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,9,23,0) 45%, rgba(6,9,23,0.88) 100%),
              radial-gradient(120% 70% at 50% 0%, rgba(56,214,255,0.10), transparent 55%);
}
.team-card figcaption {
  position: absolute; left: 22px; bottom: 20px; right: 20px; z-index: 1;
  font-family: var(--font-display); color: var(--muted); font-size: 0.9rem;
}
.team-card__tag {
  display: inline-block; margin-right: 8px; padding: 5px 12px; border-radius: 999px;
  background: rgba(4,18,30,0.6); color: var(--cyan-bright); border: 1px solid var(--border-strong);
  font-size: 0.72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}

/* ------------------------------ Videos ------------------------------ */
/* Column ratio 256:81 = (16/9)² : 1, so a 16:9 wide card and a 9:16 short
   card in the same row come out exactly the same height. */
.videos__grid { display: grid; grid-template-columns: 256fr 81fr; gap: 22px; }
.video-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-card); background: var(--glass);
  transition: transform .3s var(--ease), border-color .3s;
}
.video-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.video-card--wide { aspect-ratio: 16 / 9; }
.video-card--short { aspect-ratio: 9 / 16; }
.video-card__poster {
  display: block; width: 100%; height: 100%; padding: 0; border: 0;
  cursor: pointer; background: none;
}
.video-card__poster img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.video-card:hover .video-card__poster img { transform: scale(1.04); }
.video-card__play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none;
  background: rgba(4,18,30,0.55); border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px -8px rgba(56,214,255,0.55);
  transition: transform .25s var(--ease), background .25s;
}
.video-card__play svg { width: 26px; height: 26px; margin-left: 3px; fill: var(--cyan-bright); }
.video-card:hover .video-card__play { transform: scale(1.1); background: rgba(4,18,30,0.78); }
.video-card__poster:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.video-card__tag {
  position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px;
  background: rgba(4,18,30,0.6); color: var(--cyan-bright); border: 1px solid var(--border-strong);
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.video-card iframe { display: block; width: 100%; height: 100%; border: 0; }
/* The CTA fills the last grid cell (the short-video rail), so it becomes a
   vertical tile with card geometry rather than a floating pill button. */
.videos__more { display: grid; margin: 0; }
.videos__more .btn {
  width: 100%; height: 100%; flex-direction: column; gap: 14px;
  white-space: normal; text-align: center; padding: 24px 18px;
  border-radius: var(--radius-lg);
}
.videos__more .btn__icon svg { width: 30px; height: 30px; }
/* Per-video author credit — sibling of the poster button so the link stays
   clickable; removed by main.js when the player loads. */
.video-card__credit {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(4,18,30,0.65); color: var(--muted); border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 500; letter-spacing: .03em;
  transition: color .2s, border-color .2s;
}
.video-card__credit:hover { color: var(--cyan-bright); border-color: var(--border-strong); }
.video-card__credit svg {
  width: 13px; height: 13px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Leagues we compete in */
.leagues { margin-top: 26px; }
.leagues__title {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dim);
  margin-bottom: 16px;
}
.leagues__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.league {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 24px 26px; border-radius: var(--radius-lg);
  background: var(--glass); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.league:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--glass-strong); }
.league__badge {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(56,214,255,0.28), rgba(43,123,255,0.10));
  border: 1px solid var(--border-strong);
}
.league__badge svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.league h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; }
.league p { color: var(--muted); font-size: 0.94rem; }

/* ----------------------------- Contact ----------------------------- */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: stretch; }
.contact__info {
  display: flex; flex-direction: column;
  padding: 34px; border-radius: var(--radius-lg);
  background: var(--glass); border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.contact__info h3 { font-size: 1.5rem; margin-bottom: 26px; }
.contact__decor {
  margin-top: auto; padding-top: 30px; display: flex; align-items: center; gap: 18px;
}
.contact__decor img {
  width: 84px; height: 84px; object-fit: contain; flex: 0 0 auto;
  filter: drop-shadow(0 0 20px rgba(56,214,255,0.45)); animation: spin 80s linear infinite;
}
.contact__decor p { color: var(--muted); font-family: var(--font-display); font-size: 1.02rem; line-height: 1.4; }
.contact__decor span { font-family: var(--font-body); }
.contact__list { display: grid; gap: 20px; margin-bottom: 34px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glass-strong); border: 1px solid var(--border); color: var(--cyan); font-size: 1.15rem;
}
.contact__label { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-dim); }
.contact__list a:hover { color: var(--cyan); }
.contact__socials-label { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted-dim); margin-bottom: 14px; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--border); color: var(--muted);
  transition: transform .25s var(--ease), color .25s, border-color .25s, background .25s;
}
.socials a:hover { transform: translateY(-3px); color: var(--cyan); border-color: var(--cyan); background: var(--glass-strong); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.contact__form {
  padding: 34px; border-radius: var(--radius-lg); background: var(--glass-strong);
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
/* Honeypot field: parked off-screen (not display:none — some bots skip those) */
.contact__form .hp {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .checkbox { font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--text); }
.field label { display: block; margin-bottom: 8px; }
.req { color: var(--cyan); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px; font: inherit; color: var(--text);
  background: rgba(4,7,18,0.6); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--cyan); background: rgba(4,7,18,0.85);
  box-shadow: 0 0 0 3px rgba(56,214,255,0.18);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: var(--space-800); color: var(--text); }

.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b81; box-shadow: 0 0 0 3px rgba(255,107,129,0.15); }
.field__error { display: block; color: #ff8ea0; font-size: 0.8rem; margin-top: 6px; min-height: 1em; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--muted);
  font-family: var(--font-body); font-size: 0.9rem; margin: 6px 0 4px; cursor: pointer; }
.checkbox input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cyan); cursor: pointer; }
.checkbox a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

.contact__form .btn { margin-top: 20px; }
.form-status { margin-top: 16px; font-size: 0.94rem; min-height: 1.2em; }
.form-status.is-success { color: #6ee7a8; }
.form-status.is-error { color: #ff8ea0; }

/* ------------------------------ Footer ------------------------------ */
.footer { position: relative; padding-top: 70px; border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(4,6,15,0.85)); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 48px; }
.footer__tagline { font-family: var(--font-display); color: var(--text); margin: 18px 0 8px; font-size: 1.05rem; }
.footer__meta { color: var(--muted-dim); font-size: 0.88rem; }
.footer__nav h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-dim); margin-bottom: 18px; }
.footer__nav a { display: block; color: var(--muted); margin-bottom: 12px; font-size: 0.95rem; transition: color .2s; width: fit-content; }
.footer__nav a:hover { color: var(--cyan); }
.footer__bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__bottom p { color: var(--muted-dim); font-size: 0.85rem; }

/* --------------------------- Reveal anim --------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------- Responsive ---------------------------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .coaches { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .hero__inner { gap: 24px; }
}

/* The nav collapses earlier than the rest of the layout: with five links, the
   three-way language switch, wide Unbounded type and the longest (Ukrainian)
   labels, the row overflows below ~1150px, well before the 860px content
   breakpoint. Keep in sync with mqMobile in main.js. */
@media (max-width: 1220px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); flex-direction: column;
    align-items: flex-start; justify-content: flex-start; gap: 4px; padding: 100px 30px 40px;
    background: rgba(6,9,23,0.96); backdrop-filter: blur(18px); border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform .35s var(--ease); z-index: 90;
  }
  .nav__links.is-open { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .nav__links > a:not(.btn) { font-size: 1.25rem; padding: 12px 0; }
  .nav__cta { margin-top: 16px; }
}

@media (max-width: 860px) {
  .hero { padding: 130px 0 70px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__visual { order: 1; max-width: 340px; }
  .eyebrow, .hero__actions { justify-content: center; }
  .hero__lede { margin-left: auto; margin-right: auto; }

  .club__grid { grid-template-columns: 1fr; gap: 34px; }
  .coaches { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .teams { grid-template-columns: 1fr; }
  .leagues__list { grid-template-columns: 1fr; }
  .videos__grid { grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
  .video-card--wide { grid-column: span 2; }
  .videos__more { grid-column: 1 / -1; }
  .contact { grid-template-columns: 1fr; gap: 34px; }

  /* Larger, easier tap targets on touch devices */
  .footer__nav a { padding: 8px 0; margin-bottom: 4px; }
  .contact__list a { display: inline-block; padding: 4px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 72px 0; }
  .nav__actions { gap: 6px; }
  .lang-switch__btn { padding: 5px 9px; font-size: 0.74rem; }
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact__form, .contact__info { padding: 24px 20px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
}

/* ------------------------ Reduced motion ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
