/* K1 Karys — one stylesheet. Theme lives in the custom properties below.
   The 3D stage (canvas) sits fixed behind the page; sections scroll over it. */

/* ---------- Fonts (self-hosted, latin + latin-ext for Lithuanian) ---------- */
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-ext-800-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-800-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --red: #e11d2a;
  --red-hot: #ff3b3b;
  --red-deep: #8f0d17;
  --ink: #09090b;
  --ink-2: #111114;
  --ink-3: #1a1a1f;
  --text: #f3f0ea;
  --muted: #a7a3a0;
  --line: rgba(255, 255, 255, 0.09);
  --panel: rgba(13, 13, 16, 0.74);

  --kids: #f5b700;
  --teens: #38a8f5;
  --adults: var(--red);
  --general: #34d399;
  --girls: #f472b6;
  --personal: #b9b4ad;
  --gold: #d4a24c;

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 18px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
em { font-style: inherit; color: var(--red); }
:focus-visible { outline: 3px solid var(--red-hot); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--red); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 2px; background: var(--red); flex: none; }
.eyebrow__brand { color: var(--text); }

.is-missing { color: #ffb4b4; font-style: italic; opacity: 0.85; }

/* ---------- 3D stage ---------- */
.stage {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block;
  opacity: 0; transition: opacity 0.6s ease;
}
.stage.is-ready { opacity: 1; }

/* Darkens the stage behind text-heavy sections; JS sets --veil 0..1 */
.stage-veil {
  --veil: 0;
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 35%, rgba(9, 9, 11, 0.85) 100%),
    rgba(9, 9, 11, calc(var(--veil) * 0.55));
}
/* Without the fighter clips the page still looks intentional */
.no-fighter .stage-veil {
  background:
    radial-gradient(60% 50% at 70% 35%, rgba(225, 29, 42, 0.35), transparent 70%),
    radial-gradient(120% 90% at 50% 40%, transparent 35%, rgba(9, 9, 11, 0.9) 100%),
    var(--ink);
}

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red-hot)); transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(9, 9, 11, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header-inner { height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: baseline; gap: 0.35rem; text-decoration: none; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.brand__mark { background: var(--red); color: #fff; padding: 0.08em 0.28em 0.04em; transform: skewX(-8deg); display: inline-block; }
.brand__word { letter-spacing: 0.04em; }

.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 2rem); }
.site-nav a { text-decoration: none; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.95rem; color: var(--muted); position: relative; padding: 0.4rem 0; transition: color 0.2s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.site-nav a:hover, .site-nav a.is-active { color: var(--text); }
.site-nav a.is-active::after, .site-nav a:hover::after { transform: scaleX(1); }
.lang-switch { display: inline-flex; gap: 0.5rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.lang-switch a[aria-current] { color: var(--text); }

.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.04); color: var(--text); cursor: pointer; position: relative; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { position: absolute; left: 13px; width: 22px; height: 2px; background: currentColor; content: ""; transition: transform 0.25s ease, opacity 0.2s; }
.menu-toggle__bars { top: 23px; }
.menu-toggle__bars::before { left: 0; top: -7px; }
.menu-toggle__bars::after { left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 52px; padding: 0.85rem 1.6rem;
  font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.05rem;
  text-decoration: none; border-radius: 4px; transform: skewX(-8deg); transition: transform 0.2s ease, background-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.button > * { transform: skewX(8deg); }
.button--primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(225, 29, 42, 0.8); }
.button--primary:hover { background: var(--red-hot); transform: skewX(-8deg) translateY(-2px); }
.button--ghost { color: var(--text); border: 1.5px solid rgba(255,255,255,0.35); }
.button--ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.06); }

/* ---------- Floating Messenger button ---------- */
.chat-fab {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 3.25rem; padding: 0 1.15rem 0 0.95rem;
  border-radius: 999px; background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 12px 32px -10px rgba(225, 29, 42, 0.9), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}
.chat-fab:hover, .chat-fab:focus-visible { background: var(--red-hot); transform: translateY(-2px); }
.chat-fab svg { width: 1.5rem; height: 1.5rem; flex: none; }

/* ---------- Chapters (scroll stages for the fighter) ---------- */
main { position: relative; z-index: 1; }
.chapter { --p: 0.5; position: relative; }
.chapter__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: var(--header-h) var(--gutter) 0; max-width: 1400px; margin: 0 auto; }

/* Hero */
.chapter--hero { height: 150vh; }
.hero {
  width: min(44rem, 52%);
  /* fades out and drifts up as the fighter starts the first combo */
  opacity: clamp(0, (0.52 - var(--p)) * 6, 1);
  transform: translateY(calc((0.34 - var(--p)) * 30vh));
}
.hero__title { font-size: clamp(3.4rem, 9.5vw, 9.5rem); line-height: 0.86; margin-bottom: 1.6rem; text-shadow: 0 6px 40px rgba(0,0,0,0.6); }
.hero__title em { display: inline-block; color: var(--red); text-shadow: 0 0 60px rgba(225,29,42,0.45); }
.hero__lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); color: #d7d2cc; max-width: 32rem; margin-bottom: 2rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: -0.6rem 0 1.8rem; padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border: 1px solid rgba(212, 162, 76, 0.55); border-radius: 999px; background: rgba(212, 162, 76, 0.1);
  color: #f3dcb0; font-weight: 600; font-size: 0.98rem; line-height: 1.3;
}
.hero__badge::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.scroll-hint { position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.8rem; color: var(--muted); opacity: clamp(0, (0.42 - var(--p)) * 10, 1); display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.scroll-hint::after { content: ""; width: 2px; height: 46px; background: linear-gradient(var(--red), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Benefits: one tall chapter per item, text pinned while the move plays */
.chapter--benefit { height: 120vh; }
.benefit {
  width: min(40rem, 46%);
  --in: clamp(0, (var(--p) - 0.1) * 7, 1);
  --out: clamp(0, (0.92 - var(--p)) * 7, 1);
  opacity: calc(var(--in) * var(--out));
  transform: translateY(calc((0.5 - var(--p)) * 18vh));
}
.benefit--right { margin-left: auto; text-align: right; }
.benefit--right .eyebrow { justify-content: flex-end; }
.benefit__num { display: block; font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(5rem, 13vw, 11rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 2px rgba(225, 29, 42, 0.75); margin-bottom: -0.15em; opacity: 0.9; }
.benefit__title { font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: 0.88; margin-bottom: 1.3rem; text-shadow: 0 6px 40px rgba(0,0,0,0.65); }
.benefit__text { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: #d7d2cc; max-width: 30rem; text-shadow: 0 2px 16px rgba(0,0,0,0.8); }
.benefit--right .benefit__text { margin-left: auto; }

/* Content sections (about, fighters, schedule, community, contacts) */
.chapter--content { padding: calc(var(--header-h) + 14vh) var(--gutter) 18vh; }
.content { max-width: 1400px; margin: 0 auto; }
.content--right > * { margin-left: auto; width: min(46rem, 54%); }
.content--left > * { width: min(46rem, 54%); }
.content--wide { max-width: 1240px; }
.section-head { margin-bottom: 2.5rem; }
.section-head--narrow { max-width: 44rem; }
.section-title { font-size: clamp(2.8rem, 6.5vw, 5.8rem); line-height: 0.88; margin-bottom: 1.2rem; text-shadow: 0 6px 40px rgba(0,0,0,0.6); }
.section-lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: #d7d2cc; }
.subhead { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 3rem; margin-bottom: 1.25rem; }
/* Heading gets a screen of its own next to the fighter before the panels scroll over */
.section-head--stage { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; margin-top: -6vh; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8); }

/* Scroll-in reveal (only hidden when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .chapter--benefit [data-reveal] { transition: none; } /* benefits are driven by --p instead */
.js .chapter--benefit [data-reveal] { opacity: calc(var(--in) * var(--out)); transform: translateY(calc((0.5 - var(--p)) * 18vh)); }

/* Photo placeholders */
.photo-placeholder {
  width: 100%; height: 100%; min-height: 180px; display: grid; place-items: center;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #1d1d23, #101013);
  color: var(--muted); font-family: var(--display); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.85rem;
}
.photo-placeholder--fighter { background: radial-gradient(70% 60% at 50% 30%, rgba(225,29,42,0.25), transparent 70%), repeating-linear-gradient(-45deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px), linear-gradient(160deg, #1d1d23, #0e0e11); }

/* About */
.trainer { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); overflow: hidden; }
.trainer__photo { margin: 0; aspect-ratio: 4 / 5; }
.trainer__photo img { width: 100%; height: 100%; object-fit: cover; }
.trainer__body { padding: clamp(1.4rem, 3vw, 2.4rem); }
.trainer__role { font-family: var(--display); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); font-size: 0.9rem; margin-bottom: 0.5rem; }
.trainer__name { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.9rem; height: 3px; background: var(--red); transform: skewX(-20deg); }
.ticks--small { font-size: 0.95rem; color: #d7d2cc; }
.ticks--achievements { margin-top: 1.6rem; color: #d7d2cc; }
/* Short quotes from members (newcomers section) */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.quote { margin: 0; padding: 1.3rem 1.5rem; }
.quote p { margin: 0 0 0.8rem; font-size: 1.08rem; line-height: 1.5; }
.quote footer { color: var(--muted); font-size: 0.9rem; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.gallery__item { margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery__item:hover img { transform: scale(1.05); }
/* which part of a photo stays visible when the tile crops it (CMS field "focus") */
.gallery__item img.focus-top { object-position: 50% 8%; }
.gallery__item img.focus-bottom { object-position: 50% 100%; }
.gallery__item:first-child { grid-column: span 2; aspect-ratio: 16 / 8; }
/* With a wide first photo, an even count leaves the last one alone on its row: widen it too */
.gallery__item:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 16 / 8; }
/* Competition photos are portrait: three across, no wide lead image */
.gallery--fights { grid-template-columns: repeat(3, 1fr); }
.gallery--fights .gallery__item, .gallery--fights .gallery__item:first-child, .gallery--fights .gallery__item:last-child { grid-column: auto; aspect-ratio: 3 / 4; }

/* Fighters */
.fighters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.fighter-card { overflow: hidden; display: flex; flex-direction: column; transition: transform 0.35s ease, border-color 0.35s; }
.fighter-card:hover { transform: translateY(-6px); border-color: rgba(225,29,42,0.5); }
.fighter-card__photo { margin: 0; aspect-ratio: 4 / 5; position: relative; }
.fighter-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.fighter-card__division { position: absolute; left: 1rem; bottom: 1rem; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3rem 0.7rem; transform: skewX(-8deg); font-size: 0.95rem; }
.fighter-card__body { padding: 1.4rem 1.4rem 1.6rem; }
.fighter-card__name { font-size: 1.9rem; margin-bottom: 1.1rem; }
.fighter-card__nick { color: var(--red); }
.record { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; margin: 0; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.record dt { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); order: 2; }
.record dd { margin: 0; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 2rem; line-height: 1; order: 1; }
.record__item { display: flex; flex-direction: column; gap: 0.3rem; }
.record__item--wins dd { color: var(--red-hot); }

/* Schedule */
.sample-banner { display: inline-block; margin: 0 0 1.2rem; padding: 0.5rem 0.9rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; color: #1a1300; background: repeating-linear-gradient(-45deg, #f5b700 0 14px, #ffcc33 14px 28px); }
.schedule-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chip { --c: var(--text); min-height: 40px; border: 1.5px solid var(--line); background: rgba(13,13,16,0.6); color: var(--text); border-radius: 999px; padding: 0.45rem 1rem; font: 600 0.95rem/1 var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: border-color 0.2s, background-color 0.2s; }
.chip::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c); }
.chip[data-group="all"]::before { display: none; }
.chip--kids { --c: var(--kids); } .chip--teens { --c: var(--teens); } .chip--adults { --c: var(--adults); }
.chip--general { --c: var(--general); } .chip--girls { --c: var(--girls); }
.chip[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, rgba(13,13,16,0.8)); }
/* One column per day that has training; empty days are left out */
.week { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 0.5rem; gap: 0.5rem; }
.week__day--empty { display: none; }
.week__day { padding: 0.9rem 0.7rem; border-radius: 12px; background: rgba(255,255,255,0.025); min-height: 12rem; }
.week__name { font-size: 1.15rem; margin-bottom: 0.9rem; color: var(--text); }
.week__short { display: none; }
.week__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.week__none { color: var(--muted); font-size: 0.85rem; margin: 0; }
.session { --c: var(--adults); border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); border-radius: 0 8px 8px 0; padding: 0.5rem 0.6rem; display: grid; gap: 0.1rem; transition: opacity 0.25s, filter 0.25s; }
.session--kids { --c: var(--kids); } .session--teens { --c: var(--teens); } .session--adults { --c: var(--adults); } .session--personal { --c: var(--personal); }
.session--general { --c: var(--general); } .session--girls { --c: var(--girls); }
.session__time { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.15rem; line-height: 1.1; }
.session__group { font-size: 0.82rem; color: #d7d2cc; }
.session__note { font-size: 0.78rem; color: var(--muted); }
.session.is-dimmed { opacity: 0.18; filter: grayscale(1); }
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.group-card { --c: var(--adults); padding: 1.3rem 1.4rem; border-top: 3px solid var(--c); }
.group-card--kids { --c: var(--kids); } .group-card--teens { --c: var(--teens); } .group-card--personal { --c: var(--personal); }
.group-card--general { --c: var(--general); } .group-card--girls { --c: var(--girls); }
.group-card h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.group-card p { margin: 0.3rem 0 0; color: #d7d2cc; font-size: 0.95rem; }
.group-card__ages { color: var(--c) !important; font-weight: 600; }

/* Newcomers: perks and FAQ */
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.perk { padding: 1.2rem 1.3rem 1.3rem; position: relative; overflow: hidden; }
.perk::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--red), transparent); }
.perk__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--red-hot); background: rgba(225, 29, 42, 0.1); border: 1px solid rgba(225, 29, 42, 0.3); margin-bottom: 0.8rem; }
.perk__title { font-size: 1.45rem; margin-bottom: 0.4rem; }
.perk p { margin: 0; color: #d7d2cc; font-size: 0.97rem; }
.faq { display: grid; gap: 0.6rem; }
.faq__item { padding: 0; overflow: hidden; }
.faq__q { list-style: none; cursor: pointer; padding: 1.05rem 3.2rem 1.05rem 1.3rem; font-weight: 600; font-size: 1.06rem; position: relative; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ""; position: absolute; right: 1.3rem; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--red-hot); border-bottom: 2px solid var(--red-hot); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s ease; }
.faq__item[open] .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.faq__q:hover { color: #fff; background: rgba(255, 255, 255, 0.03); }
.faq__a { padding: 0 1.3rem 1.15rem; color: #d7d2cc; }
.faq__a p { margin: 0; }
.faq-cta { margin-top: 1.5rem; padding: 1.4rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; border-color: rgba(212, 162, 76, 0.45); background: linear-gradient(120deg, rgba(212, 162, 76, 0.14), rgba(13, 13, 16, 0.8) 60%); }
.faq-cta__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 0.3rem; color: #f3dcb0; }
.faq-cta p { margin: 0; color: #d7d2cc; }
.faq-cta__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Community */
.activities { display: grid; gap: 1rem; }
.activity { display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: hidden; }
.activity__photo { margin: 0; min-height: 150px; }
.activity__photo img { width: 100%; height: 100%; object-fit: cover; }
.activity__body { padding: 1.3rem 1.5rem; }
.activity h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.activity p { margin: 0; color: #d7d2cc; }

/* Contacts */
.chapter--contacts { min-height: 120vh; }
.contact { padding: clamp(1.4rem, 3vw, 2.4rem); }
.contact__list { margin: 0; display: grid; gap: 1.4rem; }
.contact__list dt { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.85rem; color: var(--red); margin-bottom: 0.3rem; }
.contact__list dd { margin: 0; }
.contact__list address { font-style: normal; }
.contact__big { font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(1.7rem, 3.2vw, 2.6rem); text-decoration: none; line-height: 1.05; word-break: break-word; }
.contact__big:hover { color: var(--red-hot); }
.social { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.social__label { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }
.social__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social__list a { display: inline-block; padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.social__list a:hover { border-color: var(--red); }

/* Footer */
.site-footer { position: relative; z-index: 1; padding: 2.5rem var(--gutter) 3rem; text-align: center; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); background: linear-gradient(transparent, rgba(9,9,11,0.9)); }
.site-footer p { margin: 0; }
.site-footer__emblem { width: 120px; height: 120px; margin: 0 auto 1rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 20px 60px -20px rgba(225, 29, 42, 0.6); }
.site-footer .brand__mark { font-family: var(--display); font-weight: 800; font-style: italic; }

/* 404 */
.notfound { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--gutter); gap: 0.5rem; }
.notfound__code { font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(7rem, 25vw, 16rem); line-height: 0.8; margin: 0; color: transparent; -webkit-text-stroke: 3px var(--red); }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .week { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content--right > *, .content--left > * { width: min(46rem, 64%); }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(9, 9, 11, 0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 0.5rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--line);
    transform: translateY(-110%); visibility: hidden; transition: transform 0.3s ease, visibility 0.3s;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav a { font-size: 1.35rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .lang-switch { border: 0; padding: 1rem 0 0; }

  /* the fighter takes the top half; text sits at the bottom over a fade */
  .chapter__sticky { align-items: flex-end; padding-bottom: 7vh; }
  .chapter__sticky::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(transparent, rgba(9,9,11,0.88) 45%); pointer-events: none; z-index: -1; }
  .hero, .benefit { width: 100%; }
  .hero__title { font-size: clamp(3rem, 15vw, 5.2rem); }
  .benefit--right { text-align: left; margin-left: 0; }
  .benefit--right .eyebrow { justify-content: flex-start; }
  .benefit--right .benefit__text { margin-left: 0; }
  .benefit__num { font-size: 5rem; -webkit-text-stroke-width: 1.5px; }
  .benefit__title { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .scroll-hint { display: none; }

  .chapter--content { padding: calc(var(--header-h) + 38vh) var(--gutter) 14vh; }
  .section-head--stage { min-height: 0; margin-top: 0; }
  .content--right > *, .content--left > * { width: 100%; }
  .trainer { grid-template-columns: 1fr; }
  .trainer__photo { aspect-ratio: 4 / 3; }
  .activity { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .activity__photo { aspect-ratio: 16 / 9; min-height: 0; }
  .week { grid-template-columns: 1fr; }
  .groups { grid-template-columns: 1fr; }
  .week__day { min-height: 0; display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.75rem; align-items: start; padding: 0.75rem; }
  .week__name { margin: 0.25rem 0 0; }
  .week__long { display: none; }
  .week__short { display: inline; }
  .week__day--empty { display: none; }
  .gallery--fights { grid-template-columns: repeat(2, 1fr); }
  .record dd { font-size: 1.7rem; }
  .chat-fab { width: 3.25rem; padding: 0; justify-content: center; }
  .chat-fab__label { display: none; }
  /* leave the bottom-right corner to the floating Messenger button */
  .hero__actions { padding-right: 3.75rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  /* .motion-ok (set by ?motion) keeps the full experience for review */
  html { scroll-behavior: auto; }
  :root:not(.motion-ok) *, :root:not(.motion-ok) *::before, :root:not(.motion-ok) *::after { animation: none !important; transition: none !important; }
  :root:not(.motion-ok) .hero, :root:not(.motion-ok) .benefit, :root:not(.motion-ok).js .chapter--benefit [data-reveal] { transform: none !important; }
  :root:not(.motion-ok).js [data-reveal] { opacity: 1; transform: none; }
}
