:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --text: #0a0a0a;
  --muted: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --surface: #f3f4f6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --max: 1080px;
  --section-pad: clamp(5rem, 9vw, 7.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

/* Header / nav — floating capsule */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding: 0 clamp(16px, 3vw, 28px);
  background: transparent;
  margin-bottom: 8px;
}

.site-header-inner.wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 56px;
  padding: 6px 8px 6px 18px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 28px rgba(0, 0, 0, 0.06);
  transition:
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.site-header.is-scrolled .site-header-inner.wrap {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border-strong);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 12px 36px rgba(0, 0, 0, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  justify-self: start;
}

.nav-brand .site-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  justify-self: center;
}

.nav-links a {
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.lang-switch {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  line-height: 1;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang-switch:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
  background: var(--text);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), opacity 0.15s ease, background 0.15s ease;
}

.btn:hover {
  opacity: 0.88;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface);
  opacity: 1;
}

.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  max-width: var(--max);
  margin: 10px auto 0;
  padding: 8px 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.08);
}

.mobile-nav a {
  padding: 14px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-of-type:not(.btn) {
  border-bottom: none;
}

.mobile-nav .btn {
  margin-top: 16px;
  width: 100%;
}

.mobile-nav.is-open {
  display: flex;
}

.hero-image picture,
.hero-image img,
.coaches-image picture,
.coaches-image img {
  display: block;
  width: 100%;
}

/* Footer */
.site-footer {
  padding: clamp(3rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--bg);
  font-size: 0.875rem;
}

.footer-shell {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 48px) clamp(28px, 4vw, 40px) clamp(24px, 3vw, 32px);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 56px;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .nav-brand {
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.footer-info h4 {
  margin: 0 0 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-info li + li {
  margin-top: 8px;
}

.footer-info a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-info a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: left;
}

.footer-copyright {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header-inner.wrap {
    display: flex;
    min-height: 52px;
    padding: 6px 8px 6px 14px;
  }

  .nav-links,
  .nav-actions .btn:not(.nav-hamburger) {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-actions {
    margin-left: auto;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:active { transform: none; }
  .site-header-inner.wrap { transition: none; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-elevated: #111111;
    --text: #f5f5f5;
    --muted: #a1a1a6;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --surface: #1a1a1a;
  }

  body { color-scheme: dark; }

  .site-header-inner.wrap {
    background: rgba(17, 17, 17, 0.82);
  }

  .site-header.is-scrolled .site-header-inner.wrap {
    background: rgba(17, 17, 17, 0.94);
  }

  .mobile-nav {
    background: rgba(17, 17, 17, 0.94);
  }

  .nav-hamburger {
    background: var(--surface);
  }

  .btn {
    background: #f5f5f5;
    color: #0a0a0a;
  }

  .lang-switch {
    background: var(--bg-elevated);
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--text);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  outline: none;
}
