/* =========================================================
   Atleta.ba — public site
   ========================================================= */
:root {
  --brand: #E24D35;
  --brand-600: #C93B24;
  --brand-50: #FDF0ED;
  --ink: #111318;
  --ink-2: #1C1F26;
  --text: #2A2E37;
  --muted: #687080;
  --line: #E6E7EB;
  --surface: #F5F6F8;
  --bg: #FFFFFF;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 19, 24, .06), 0 8px 24px -12px rgba(17, 19, 24, .18);
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.icon { flex-shrink: 0; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: background .2s, transform .2s, color .2s;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-600); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 26px; font-size: 17px; }

.chip {
  display: inline-block;
  font: 700 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand);
}
.chip-solid { background: var(--brand); color: #fff; padding: 6px 10px; border-radius: 4px; }
.kicker {
  display: inline-block; margin-bottom: 6px;
  font: 700 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
}
.meta { font-size: 13px; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { height: 40px; width: auto; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.main-nav a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: 8px;
  font: 600 19px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
  transition: color .2s, background .2s;
}
.main-nav a:not(.btn):hover { color: var(--brand); }
.main-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; border: 0; background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--surface); }
.menu-toggle { display: none; }

.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 14px 0; }
.search-form { display: flex; gap: 10px; }
.search-form input {
  flex: 1; min-width: 0; padding: 12px 16px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.search-form input:focus { outline: none; border-color: var(--brand); background: #fff; }
.search-form-lg { max-width: 620px; margin-top: 20px; }

@media (max-width: 1080px) {
  /* backdrop-filter makes the header the containing block for position:fixed children,
     which squeezed the mobile menu into the header's 72px — use a solid header instead */
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: #fff; padding: 24px 20px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a:not(.btn) { font-size: 28px; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { background: none; }
  .nav-cta { display: inline-flex; margin-top: 24px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 22px; } }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); aspect-ratio: 16 / 10;
}
.card-media img, .img-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.img-fallback { background: linear-gradient(135deg, var(--ink-2), #3a2520 60%, var(--brand)); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.card-title { font: 700 22px/1.15 var(--font-display); letter-spacing: .005em; }
.card-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.card:hover .card-title a { background-size: 100% 2px; }
/* Whole card clickable */
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-excerpt { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.play-badge {
  position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff;
  box-shadow: 0 6px 18px rgba(226, 77, 53, .45);
}

/* compact: horizontal row (hero sidebar) */
.card-compact { flex-direction: row; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.card-compact:last-of-type { border-bottom: 0; }
.card-compact .card-media { width: 112px; flex-shrink: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.card-compact .card-body { padding: 0; gap: 4px; }
.card-compact .card-title { font-size: 18px; }
.card-compact .play-badge { width: 28px; height: 28px; left: 6px; bottom: 6px; }
.card-compact .play-badge svg { width: 12px; height: 12px; }

/* compact-v: small vertical (related posts) */
.card-compact-v .card-title { font-size: 19px; }
.card-compact-v .chip { display: none; }

/* overlay: text on image (programs) */
.card-overlay .card-media { aspect-ratio: 4 / 5; }
.card-overlay .card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(10, 10, 12, .88) 100%);
}
.card-overlay .card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; color: #fff; }
.card-overlay .card-title { color: #fff; font-size: 28px; }
.card-overlay .chip { color: #fff; opacity: .85; }
.card-overlay .card-excerpt, .card-overlay .meta { display: none; }

/* video cards on dark */
.card-video .card-media { aspect-ratio: 16 / 9; }
.card-video .chip, .card-video .card-excerpt { display: none; }
.card-video .card-title { font-size: 20px; }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 8px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 32px; }
.hero-main { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--ink); min-height: 460px; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media .img-fallback { width: 100%; height: 100%; object-fit: cover; }
.hero-main::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(8, 8, 10, .9) 100%);
}
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-title { font: 700 clamp(32px, 4vw, 52px)/1.02 var(--font-display); color: #fff; text-wrap: balance; }
.hero-title a::after { content: ""; position: absolute; inset: 0; }
.hero-body .meta { color: rgba(255, 255, 255, .75); }
.side-heading { font: 700 15px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hero-side .link-arrow { margin-top: 12px; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-main { min-height: 380px; }
}
@media (max-width: 600px) {
  .hero { padding-top: 16px; }
  .hero-main { min-height: 340px; border-radius: var(--radius); }
  .hero-body { padding: 20px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding-top: 32px; padding-bottom: 64px; } /* vertical only: .container's side gutter must stay */
.section-muted { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-title { font: 700 clamp(34px, 4vw, 48px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.section-dark { background: var(--ink); color: #D7DAE0; }
.section-dark .section-title, .section-dark .card-title { color: #fff; }
.section-dark .meta { color: #9AA1AE; }
.section-dark .card-media { background: var(--ink-2); }
.section-programs { padding-bottom: 32px; }
@media (max-width: 600px) { .section { padding: 44px 0; } }

.cta-band {
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cpath d='M-40 200 L120 40 M0 240 L240 0 M60 260 L280 40' stroke='%23ffffff' stroke-opacity='.08' stroke-width='22'/%3E%3C/svg%3E") right center / 480px repeat-y;
  color: #fff; padding: 56px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font: 700 italic clamp(40px, 5vw, 64px)/1 var(--font-display); color: #fff; text-transform: uppercase; }
.cta-band p { margin: 10px 0 0; max-width: 560px; font-size: 17px; opacity: .92; }

/* ---------- Page heads ---------- */
.page-head { padding: 40px 0 28px; background: linear-gradient(180deg, var(--surface), #fff); border-bottom: 1px solid var(--line); }
.page-title { font: 700 clamp(40px, 6vw, 68px)/1 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.page-lead { margin: 14px 0 0; color: var(--muted); font-size: 18px; max-width: 720px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a:hover { color: var(--brand); }
.archive-intro { padding-top: 32px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

.error-head { text-align: center; padding: 72px 0 48px; }
.error-head .search-form { margin: 24px auto; }
.error-code { font: 700 120px/1 var(--font-display); color: var(--brand); opacity: .9; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 48px; }
.page-link {
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 15px;
}
a.page-link:hover { border-color: var(--brand); color: var(--brand); }
.page-link.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-gap { align-self: center; color: var(--muted); padding: 0 4px; }

/* ---------- Article ---------- */
.article-head { padding-top: 32px; padding-bottom: 24px; }
.article-head .chip-solid { margin-bottom: 16px; }
.article-title { font: 700 clamp(38px, 5.4vw, 64px)/1.02 var(--font-display); text-wrap: balance; }
.article-lead { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 18px 0 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-hero { margin: 8px auto 36px; max-width: 1100px; }
.article-hero > img, .article-hero .yt { border-radius: var(--radius); width: 100%; }
.article-hero > img { max-height: 640px; object-fit: cover; }

.prose { font-size: 18px; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); margin-top: 1.8em; }
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 27px; }
.prose h4 { font-size: 22px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose img { border-radius: var(--radius-sm); margin: 1.6em auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand); }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brand);
  font: 600 italic 26px/1.3 var(--font-display); color: var(--ink);
}
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 700; color: var(--ink); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 36px 0 0; }
.tag-list a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; }
.tag-list a:hover { background: var(--brand-50); color: var(--brand); }

.share { display: flex; align-items: center; gap: 8px; margin: 28px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share span { font-weight: 600; margin-right: 6px; }
.share a, .share button {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); transition: all .2s;
}
.share a:hover, .share button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.share button.is-copied { background: #16a34a; border-color: #16a34a; color: #fff; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 56px; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); font: 700 19px/1.2 var(--font-display); color: var(--ink); }
.post-nav a:hover { border-color: var(--brand); }
.post-nav small { font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-nav .next { text-align: right; }
@media (max-width: 600px) {
  .prose { font-size: 17px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
}

/* YouTube facade */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; cursor: pointer; border-radius: var(--radius-sm); }
.yt img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; border-radius: 0 !important; opacity: .9; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt-play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  border: 0; background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(226, 77, 53, .5); transition: transform .2s;
}
.yt:hover .yt-play { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 36px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--surface); }
.contact-card .icon { color: var(--brand); }
.contact-card span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-card strong { color: var(--ink); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A9AFBB; font-size: 15px; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-about img { height: 52px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-about p { margin: 0 0 18px; max-width: 360px; }
.site-footer h2 { font: 700 15px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.contact-list li { display: flex; gap: 8px; align-items: flex-start; }
.contact-list .icon { margin-top: 4px; color: var(--brand); }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink-2); color: #fff; }
.socials a:hover { background: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 20px; margin-top: 48px; border-top: 1px solid #2A2E37; font-size: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Team grid (Naš tim) */
.prose .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; margin: 1.4em 0 2.4em; }
.prose .team-card { margin: 0; text-align: center; }
.prose .team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 0 12px; background: var(--surface); }
.prose .team-card figcaption { font-size: 15px; line-height: 1.4; color: var(--muted); text-align: center; margin: 0; }
.prose .team-card strong { display: block; font: 700 21px/1.15 var(--font-display); color: var(--ink); }
.prose .callout { padding: 18px 22px; border-radius: var(--radius); background: var(--brand-50); border-left: 4px solid var(--brand); }

/* =========================================================
   Typography refresh — Big Shoulders Display (stadium signage) + Plus Jakarta Sans
   ========================================================= */
.main-nav a:not(.btn) { font-weight: 800; font-size: 20px; letter-spacing: .04em; }
@media (max-width: 1080px) {
  .main-nav a:not(.btn) { font-size: 32px; padding: 14px 4px; }
  .main-nav .nav-cta { font-size: 17px; padding: 14px 26px; }
}
.menu-toggle .icon-close, body.menu-open .menu-toggle .icon-menu { display: none; }
body.menu-open .menu-toggle .icon-close { display: block; }
.card-title { font-weight: 800; font-size: 25px; line-height: 1.05; letter-spacing: .005em; }
.card-compact .card-title { font-size: 19px; }
.card-overlay .card-title { font-size: 32px; text-transform: uppercase; }
.card-video .card-title { font-size: 22px; }
.hero-title { font-weight: 900; font-size: clamp(34px, 3.7vw, 54px); line-height: .95; text-transform: uppercase; letter-spacing: .01em; }
.section-title { font-weight: 900; font-size: clamp(44px, 5.4vw, 72px); line-height: .88; letter-spacing: .01em; }
.page-title { font-weight: 900; font-size: clamp(52px, 8vw, 110px); line-height: .86; }
.article-title { font-weight: 900; font-size: clamp(42px, 6vw, 80px); line-height: .92; }
.prose h2, .prose h3, .prose h4 { font-weight: 800; }
.prose h2 { font-size: 40px; }
.prose h3 { font-size: 31px; }
.prose blockquote { font-weight: 800; font-size: 32px; font-style: normal; text-transform: uppercase; line-height: 1.05; }
.post-nav a { font-weight: 800; font-size: 22px; }
.cta-band h2 { font-weight: 900; font-style: normal; font-size: clamp(52px, 7vw, 96px); line-height: .85; }
.error-code { font-weight: 900; font-size: 180px; }
.kicker { font-weight: 800; letter-spacing: .18em; }
.kicker::before { content: ""; display: inline-block; width: 26px; height: 3px; margin: 0 10px 3px 0; background: currentColor; vertical-align: middle; transform: skewX(-30deg); }

/* =========================================================
   FX — animated sport backgrounds
   ========================================================= */
.fx-track { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fx-lanes { position: absolute; right: -8%; top: 50%; width: 120%; min-width: 900px; height: 130%; transform: translateY(-50%); }
.fx-lanes path { fill: none; stroke: var(--brand); stroke-width: 1.5; opacity: .14; }
.fx-lanes .fx-lane-run {
  stroke-width: 3; opacity: .55; stroke-linecap: round;
  stroke-dasharray: 140 2400; animation: lane-run 7s linear infinite;
}
@keyframes lane-run { from { stroke-dashoffset: 2540; } to { stroke-dashoffset: 0; } }

/* speed streaks */
.fx-speed { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.fx-speed i {
  position: absolute; left: 0; height: 2px; width: 22%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand));
  opacity: 0; animation: streak 3.6s cubic-bezier(.6, 0, .3, 1) infinite;
}
.fx-speed i:nth-child(1) { top: 12%; animation-delay: 0s; width: 26%; }
.fx-speed i:nth-child(2) { top: 27%; animation-delay: 1.3s; width: 14%; }
.fx-speed i:nth-child(3) { top: 41%; animation-delay: .6s; width: 30%; }
.fx-speed i:nth-child(4) { top: 56%; animation-delay: 2.2s; width: 18%; }
.fx-speed i:nth-child(5) { top: 68%; animation-delay: 1.8s; width: 24%; }
.fx-speed i:nth-child(6) { top: 79%; animation-delay: .3s; width: 12%; }
.fx-speed i:nth-child(7) { top: 88%; animation-delay: 2.8s; width: 28%; }
.fx-speed i:nth-child(8) { top: 33%; animation-delay: 3.1s; width: 10%; }
@keyframes streak {
  0% { transform: translateX(-120%); opacity: 0; }
  15% { opacity: .55; }
  70% { opacity: .35; }
  100% { transform: translateX(560%); opacity: 0; }
}
.fx-speed-light i { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9)); }

/* Hero */
.hero { position: relative; padding-top: 36px; padding-bottom: 28px; }
.hero > .container { position: relative; z-index: 1; }
.hero .fx-lanes { opacity: .9; }
.hero-main { box-shadow: 0 30px 60px -30px rgba(17, 19, 24, .55); }
.hero-media img { animation: ken-burns 18s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-main::before {
  content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand);
}
.hero-title { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both .1s; }
.hero-body .chip { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero-body .meta { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both .25s; }
.hero-side { position: relative; background: rgba(255, 255, 255, .86); backdrop-filter: blur(6px); border-radius: var(--radius); padding: 4px 4px 4px 0; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Ticker (marquee) */
.ticker {
  position: relative; z-index: 2; overflow: hidden; background: var(--ink); color: #fff;
  transform: rotate(-1.6deg) scale(1.03); margin: 28px 0 8px; padding: 14px 0;
  border-top: 4px solid var(--brand); border-bottom: 4px solid var(--brand);
}
.ticker-track { display: flex; width: max-content; align-items: center; gap: 28px; animation: marquee 28s linear infinite; }
.ticker span { font: 900 clamp(30px, 4vw, 48px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.ticker span:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.ticker b { color: var(--brand); font-size: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Ghost words behind section titles */
.section-head { position: relative; }
.section-head[data-ghost]::before {
  content: attr(data-ghost); position: absolute; z-index: -1; right: -10px; bottom: -14px;
  font: 900 clamp(90px, 15vw, 200px)/.8 var(--font-display); text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(226, 77, 53, .16); pointer-events: none;
  transform: translateX(calc(var(--drift, 0) * 1px));
}
.section { position: relative; isolation: isolate; }
.section-dark .section-head[data-ghost]::before { -webkit-text-stroke-color: rgba(255, 255, 255, .09); }

/* Program cards: big numbers + red sweep */
.card-num {
  position: absolute; z-index: 2; top: 14px; right: 18px;
  font: 900 64px/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85);
  transition: color .3s, transform .4s;
}
.card-overlay:hover .card-num { color: var(--brand); -webkit-text-stroke-color: var(--brand); transform: translateY(-4px); }
.card-overlay .card-media::before {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 5px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.card-overlay:hover .card-media::before { transform: scaleX(1); }
.card-overlay .card-body { z-index: 2; }

/* Card lift + sheen */
.card-media::after { transition: opacity .3s; }
.card:not(.card-compact):hover .card-media { box-shadow: 0 22px 40px -24px rgba(17, 19, 24, .6); }
.card-media { transition: box-shadow .35s, transform .35s; }
.card:not(.card-compact):not(.card-overlay):hover .card-media { transform: translateY(-4px); }
.card:not(.card-overlay) .card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-100%); opacity: 0;
}
.card:not(.card-overlay):hover .card-media::after { animation: sheen .8s ease; }
@keyframes sheen { from { transform: translateX(-100%); opacity: 1; } to { transform: translateX(100%); opacity: 1; } }

/* Dark Atleta TV section: glowing stadium lights + lane lines */
.section-dark { overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(90deg, transparent 0 119px, rgba(255, 255, 255, .05) 119px 121px);
  animation: lanes-move 6s linear infinite;
}
@keyframes lanes-move { to { background-position: 240px 0; } }
.fx-glow { position: absolute; inset: -20%; z-index: -1; pointer-events: none; }
.fx-glow::before, .fx-glow::after {
  content: ""; position: absolute; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; border-radius: 50%;
  filter: blur(80px); opacity: .45;
}
.fx-glow::before { background: var(--brand); top: 10%; left: 5%; animation: float-a 14s ease-in-out infinite alternate; }
.fx-glow::after { background: #3b1d7a; bottom: 5%; right: 0; animation: float-b 17s ease-in-out infinite alternate; }
@keyframes float-a { to { transform: translate(30%, 20%) scale(1.15); } }
@keyframes float-b { to { transform: translate(-35%, -15%) scale(.9); } }
.card-video .play-badge { transition: transform .3s; }
.card-video:hover .play-badge { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(226, 77, 53, .25); }

/* CTA band: moving stripes + streaks */
.cta-band { position: relative; overflow: hidden; isolation: isolate; animation: stripes 12s linear infinite; }
@keyframes stripes { to { background-position: calc(100% + 480px) center; } }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { text-shadow: 0 6px 0 rgba(0, 0, 0, .12); }
.cta-band .btn-light { box-shadow: 0 10px 0 -2px rgba(0, 0, 0, .18); }

/* Dark page heads with track */
.page-head { position: relative; overflow: hidden; background: var(--ink); border-bottom: 0; padding: 64px 0 52px; color: #C9CDD5; }
.page-head > .container { position: relative; z-index: 1; }
.page-head .page-title { color: #fff; animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.page-head .page-lead { color: #AEB4BF; }
.page-head .breadcrumbs ol { color: #8E95A3; }
.page-head .fx-lanes path { opacity: .22; }
.page-head .fx-lanes .fx-lane-run { opacity: .9; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 40px, #fff 40px 80px); opacity: .9; }
.page-head .search-form input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; }
.page-head .search-form input::placeholder { color: #8E95A3; }
.error-head .page-lead { margin-inline: auto; }

/* Buttons */
.btn-brand { position: relative; overflow: hidden; }
.btn-brand::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
}
.btn-brand:hover::after { transition: transform .6s; transform: translateX(120%) skewX(-20deg); }

/* Header reading progress (articles) */
.site-header { transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(17, 19, 24, .4); }
.read-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--brand);
  transform: scaleX(var(--progress, 0)); transform-origin: left; }

/* Footer wordmark */
.site-footer { position: relative; overflow: hidden; }
.footer-wordmark { overflow: hidden; line-height: .78; margin-top: 40px; text-align: center; }
.footer-wordmark span {
  display: inline-block; font: 900 clamp(110px, 26vw, 380px)/.8 var(--font-display); letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 2px #2A2E37;
  background: linear-gradient(90deg, transparent 40%, rgba(226, 77, 53, .55) 50%, transparent 60%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; animation: wordmark-sweep 7s linear infinite;
}
@keyframes wordmark-sweep { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.footer-bottom { margin-top: 0; }

/* Scroll reveal (only when JS is running, so content never stays hidden) */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .ticker { margin-top: 20px; }
  .card-num { font-size: 48px; }
  .page-head { padding: 44px 0 40px; }
  .section-head[data-ghost]::before { bottom: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .fx-speed i, .fx-lanes .fx-lane-run, .hero-media img, .fx-glow::before, .fx-glow::after,
  .section-dark::before, .cta-band, .footer-wordmark span { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Forms (registrations, contact)
   ========================================================= */
.atleta-form-wrap { margin: 2em 0; scroll-margin-top: calc(var(--header-h) + 20px); }
.atleta-form {
  position: relative; padding: clamp(22px, 4vw, 40px); border-radius: calc(var(--radius) + 4px);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(17, 19, 24, .45);
  font-size: 16px; line-height: 1.5;
}
.atleta-form::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; border-radius: 18px 18px 0 0;
  background: repeating-linear-gradient(90deg, var(--brand) 0 40px, var(--ink) 40px 80px); }
.form-intro { margin-bottom: 22px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid > * { grid-column: 1 / -1; }
.form-grid > .field-half { grid-column: span 1; }
@media (max-width: 600px) { .form-grid > .field-half { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 700; font-size: 14px; color: var(--ink); padding: 0; }
.field .req { color: var(--brand); }
.field .lock { color: var(--muted); vertical-align: -1px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(226, 77, 53, .12); }
.field input[type="file"] { padding: 10px; background: #fff; border-style: dashed; cursor: pointer; }
.field-help { color: var(--muted); font-size: 13px; }
.field-error { margin: 0; color: #C42B13; font-size: 13px; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.has-error input:not([type="checkbox"]):not([type="radio"]), .has-error select, .has-error textarea { border-color: #C42B13; background: #FFF6F4; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; color: var(--text); font-weight: 500; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--brand); cursor: pointer; }
.field-consent { padding: 14px 16px; border-radius: 10px; background: var(--surface); }
.field-consent .check { font-size: 14px; line-height: 1.5; }
.field-heading h3 { font: 900 28px/1 var(--font-display); text-transform: uppercase; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.field-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.form-note .icon { margin-top: 2px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-required-note { font-size: 13px; color: var(--muted); }
.form-actions .btn.is-loading { opacity: .7; pointer-events: none; }
.form-actions .btn.is-loading .icon { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.form-status.is-error { background: #FFF1EE; color: #A62A14; border: 1px solid #F7CFC6; }
.form-success, .form-closed {
  display: flex; gap: 14px; align-items: flex-start; padding: 24px 26px; border-radius: var(--radius);
  font-size: 17px; font-weight: 600; animation: rise .6s cubic-bezier(.2, .8, .2, 1) both;
}
.form-success { background: #ECFDF3; color: #116B3A; border: 1px solid #B7EBCB; }
.form-success p { margin: 0; }
.form-closed { background: var(--surface); color: var(--muted); }
.prose .atleta-form-wrap p { margin: 0; }
