/* tishkov-tennis mockup v1. Design contract: ../../CONCEPT.md §5 */
@import url("../fonts/fonts.css");

:root {
  --bg: #e8edf2;
  --surface: #f5f7f9;
  --surface-2: #dbe3ea;
  --ink: #0c1a2c;
  --ink-2: #3c4a5c;
  --hair: rgba(12, 26, 44, .12);
  --court: #1d4e89;
  --court-deep: #0f2e57;
  --surround: #2c6e5a;
  --on-court: #eef3f8;
  --on-court-2: #c3d1e1;
  --ball: #d5ee3b;
  --ball-deep: #b8d21f;
  --other: color-mix(in srgb, var(--ink-2) 32%, transparent); /* other tenants on coach schedules */
  --on-ball: #0c1a2c;
  --danger: #b4321f;
  --shadow: 0 18px 40px -22px rgba(15, 46, 87, .45);
  --r-card: 20px;
  --r-ctl: 14px;
  --r-input: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1280px;
  --pad: clamp(18px, 4vw, 40px);
  /* iOS 26+ blurs ~16-20pt below the status bar too, so add a gap — only when an inset exists (min() = 0 otherwise) */
  --safe-top: calc(env(safe-area-inset-top, 0px) + min(env(safe-area-inset-top, 0px), 20px));
  /* bar height + iOS status-bar inset (standalone PWA, viewport-fit=cover) */
  --header-h: calc(68px + var(--safe-top));
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* type scale: every font-size on the site comes from here */
  --fs-display: clamp(2.5rem, 6vw, 4.8rem);   /* home hero and closing headline */
  --fs-h1: clamp(2.1rem, 4.6vw, 3.6rem);      /* inner pages */
  --fs-h2: clamp(1.7rem, 3.4vw, 2.8rem);
  --fs-h3: clamp(1.1rem, 1.6vw, 1.35rem);
  --fs-num: clamp(2.2rem, 4vw, 3.2rem);       /* big figures: score steps, calculator */
  --fs-num-sm: clamp(1.4rem, 2.4vw, 1.9rem);  /* figures in lists and boards */
  --fs-lead: clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-text: 1rem;                            /* paragraphs inside cards and lists */
  --fs-sm: .875rem;                           /* captions, labels, helper text */
  --fs-xs: .75rem;                            /* schedule cells, axis ticks */
  --accent-ink: var(--court);                 /* coloured text on the page background */
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #08131f;
  --surface: #0f1f33;
  --surface-2: #152a43;
  --ink: #eef3f8;
  --ink-2: #c3d1e1;
  --hair: rgba(230, 237, 244, .12);
  --court: #1f5596;
  --court-deep: #0b2546;
  --accent-ink: var(--ball);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08131f; --surface: #0f1f33; --surface-2: #152a43; --ink: #eef3f8; --ink-2: #c3d1e1;
    --hair: rgba(230, 237, 244, .12); --court: #1f5596; --court-deep: #0b2546; --accent-ink: var(--ball);
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0; }
.muted { color: var(--ink-2); }
p.muted { font-size: var(--fs-text); }
.lead .muted, .day-head .muted { font-size: var(--fs-sm); }
.inst-head .muted { font-size: var(--fs-text); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 58ch; }
.on-court .lead, .on-court .muted { color: var(--on-court-2); }
/* layout helpers (replace inline styles) */
.pt-0 { padding-top: 0; }
.section--cta { padding-block: clamp(48px, 7vw, 96px); }
.stack { display: grid; gap: 24px; }
.stack--lg { gap: 32px; }
.stack > .seg, .pl-row > a, .rr-go { justify-self: start; }
.wrap--narrow { max-width: 900px; }
/* section head: one spacing between headline and its subtitle everywhere */
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 40px); align-content: start; position: relative; z-index: 1; }
.sec-head--flat { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ball); color: var(--on-ball); padding: 10px 14px; border-radius: var(--r-input); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  --bgc: var(--ball); --fgc: var(--on-ball);
  display: inline-flex; align-items: center; gap: .6em; white-space: nowrap;
  padding: .95em 1.4em; border-radius: var(--r-ctl); border: 0; cursor: pointer;
  background: var(--bgc); color: var(--fgc); font-weight: 600; text-decoration: none; line-height: 1.1;
  transition: transform .35s var(--ease), background-color .25s, box-shadow .35s var(--ease);
  box-shadow: 0 10px 24px -14px rgba(184, 210, 31, .9);
  will-change: transform;
}
.btn:hover { background: #e2f75a; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: left; } }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--ghost { --bgc: transparent; --fgc: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hair); }
.btn--ghost:hover { background: var(--surface-2); }
.on-court .btn--ghost, .btn--ghost.on-dark { --fgc: var(--on-court); box-shadow: inset 0 0 0 1.5px rgba(238, 243, 248, .35); }
.on-court .btn--ghost:hover, .btn--ghost.on-dark:hover { background: rgba(238, 243, 248, .1); }
.btn--sm { padding: .7em 1em; font-size: var(--fs-sm); }
.btn--block { justify-content: center; }
.link-arrow { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--ball); padding-bottom: 2px; }
.link-arrow:hover .ico { transform: translate(2px, -2px); }
.link-arrow .ico { transition: transform .3s var(--ease); }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header-h);
  padding-top: var(--safe-top); /* background runs under the status bar, content sits below it */
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
}
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: var(--fs-text); letter-spacing: -.01em; line-height: 1; }
.brand small { display: block; font: 500 var(--fs-xs)/1.2 var(--f-body); color: var(--ink-2); letter-spacing: 0; margin-top: 3px; }
.brand-mark { width: 34px; height: 34px; flex: none; transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(200deg); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: var(--fs-text); font-weight: 500; white-space: nowrap; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.hdr-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .ico { width: 22px; height: 22px; }
.theme-dark-only { display: none; }
[data-theme="dark"] .theme-dark-only { display: block; }
[data-theme="dark"] .theme-light-only { display: none; }
.menu-btn { display: none; }

/* mobile menu */
.mnav { position: fixed; inset: var(--header-h) 0 0; z-index: 39; background: var(--bg); padding: 24px var(--pad) 40px; display: none; flex-direction: column; gap: 6px; overflow-y: auto; }
.mnav a { font-family: var(--f-display); font-size: 1.5rem; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.mnav .btn { margin-top: 20px; justify-content: center; font-family: var(--f-body); font-size: var(--fs-body); border-bottom: 0; }
.menu-open .mnav { display: flex; animation: fadeUp .4s var(--ease); }

@media (max-width: 1220px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .hdr-tools { margin-left: auto; }
  .hdr-cab { display: none; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
}
@media (max-width: 360px) {
  .hdr .wrap, .brand { gap: 4px; }
}

main { padding-top: var(--header-h); }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: flex-start; overflow: hidden; padding-block: clamp(20px, 2.6vw, 36px) clamp(40px, 5vw, 64px); isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 72px); align-items: center; position: relative; z-index: 2; }
.hero-copy { display: grid; gap: 22px; align-content: center; }
.hero h1 { display: flex; flex-wrap: wrap; gap: 0 .28em; }
.hero h1 .w { display: inline-block; transition: transform .5s var(--ease); }
.hero-sub { font-size: var(--fs-lead); color: var(--ink-2); max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; aspect-ratio: 3 / 4; max-height: min(78dvh, 720px); justify-self: end; width: 100%; max-width: 520px; }
.hero-photo { position: absolute; inset: 0; border-radius: var(--r-card); overflow: hidden; background: var(--court); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.is-ready .hero-photo img { transform: none; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-lines path, .hero-lines rect, .hero-lines line { fill: none; stroke: rgba(213, 238, 59, .55); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-ready .hero-lines * { animation: draw 2.2s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rally {
  position: absolute; left: 16px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: rgba(8, 19, 31, .78);
  color: var(--on-court); padding: 10px 14px; border-radius: 14px; font-size: var(--fs-sm); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.rally b { font-family: var(--f-display); font-size: 1.15rem; color: var(--ball); min-width: 1.6em; text-align: center; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; touch-action: pan-y; }
.hero-hint { font-size: var(--fs-sm); color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.hero-hint .ico { color: var(--ball-deep); }
.hero-court-bg { position: absolute; inset: auto -10% -42% -10%; height: 70%; z-index: 0; opacity: .5; pointer-events: none; }
.hero-court-bg path { fill: none; stroke: var(--hair); stroke-width: 2; }

@media (max-width: 860px) {
  .hero { min-height: auto; padding-block: 20px 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 4 / 3.2; max-height: 52dvh; max-width: none; justify-self: stretch; }
  .hero-photo img { object-position: 50% 22%; }
  .hero-sub { max-width: none; }
}

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- path (15/30/40/game) ---------- */
.path { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 120px; }
.path-svg { position: absolute; left: 0; right: 0; top: 0; height: 120px; width: 100%; overflow: visible; pointer-events: none; }
.path-svg .arc { fill: none; stroke: var(--hair); stroke-width: 2; stroke-dasharray: 6 8; }
.path-svg .mark { fill: var(--surface-2); transition: fill .4s; }
.path-svg .mark.on { fill: var(--accent-ink); }
.path-ball { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; z-index: 2; pointer-events: none; will-change: transform; }
.path-ball-shadow { position: absolute; left: 0; top: 116px; width: 26px; height: 6px; margin-left: -13px; border-radius: 50%; background: rgba(12, 26, 44, .25); filter: blur(2px); will-change: transform; }
.step { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--hair); transition: border-color .4s; }
.step.on { border-top-color: var(--accent-ink); }
.step-score { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-num); line-height: 1; color: var(--accent-ink); letter-spacing: -.03em; transition: transform .5s var(--ease); }
.step.on .step-score { transform: translateY(-4px); }
.step-when { font-weight: 600; }
.step p { color: var(--ink-2); font-size: var(--fs-text); }
@media (max-width: 860px) {
  .path { grid-template-columns: 1fr; padding-top: 0; padding-left: 64px; gap: 28px; }
  .path-svg, .path-ball-shadow { display: none; }
  .path-ball { left: 20px !important; }
  .path::before { content: ""; position: absolute; left: 20px; top: 8px; bottom: 8px; border-left: 2px dashed var(--hair); }
  .step { border-top: 0; padding-top: 0; }
}

/* ---------- coaches ---------- */
/* photo cards (SHOW_COACH_PHOTOS = True) */
.coaches { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.coach { position: relative; display: grid; border-radius: var(--r-card); overflow: hidden; text-decoration: none; background: var(--court-deep); color: var(--on-court); isolation: isolate; min-height: 300px; box-shadow: var(--shadow); }
.coach:first-child { grid-row: span 2; min-height: 620px; }
.coach img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.coach:nth-child(n+2) img { object-position: 50% 25%; }
.coach::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 19, 31, 0) 35%, rgba(8, 19, 31, .88) 100%); }
.coach:hover img { transform: scale(1.04); }
.coach-body { align-self: end; padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 8px; }
.coach-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--on-court-2); font-size: var(--fs-sm); }
/* shared: coach role and name, same on the home page and the coach page */
.coach-role { font-size: var(--fs-sm); font-weight: 600; color: var(--accent-ink); }
.coach .coach-role { color: var(--ball); }
.coach-name { font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.15; font-weight: 600; }
.coach .coach-name { font-size: clamp(1.25rem, 2vw, 1.8rem); }
/* roster rows (no photos): a list, not three identical cards */
.roster { border-top: 1px solid var(--hair); }
.roster-row { display: grid; grid-template-columns: minmax(220px, 4fr) 7fr auto; gap: 16px clamp(20px, 4vw, 56px); align-items: start; padding-block: clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--hair); text-decoration: none; }
.roster-row:hover .coach-name { text-decoration: underline 2px var(--ball); text-underline-offset: 6px; }
.rr-who { display: grid; gap: 6px; }
.rr-who .coach-name { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.rr-exp { font-size: var(--fs-sm); color: var(--ink-2); }
.rr-what { display: grid; gap: 10px; }
.rr-creds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; font-weight: 600; }
.rr-for { color: var(--ink-2); font-size: var(--fs-text); }
.rr-go { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; white-space: nowrap; border-bottom: 2px solid var(--ball); padding-bottom: 2px; align-self: start; }
.rr-go .ico { transition: transform .3s var(--ease); }
.roster-row:hover .rr-go .ico, .other:hover .rr-go .ico { transform: translateX(3px); }
@media (max-width: 960px) {
  .roster-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rr-creds { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .coaches { grid-template-columns: 1fr; }
  .coach, .coach:first-child { grid-row: auto; min-height: 440px; }
}

/* ---------- formats and prices ---------- */
.formats { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.formats-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 24px); }
.formats-media img { width: 100%; height: 100%; object-fit: cover; }
.plist { border-top: 1px solid var(--hair); }
.pl-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--hair); }
.pl-row > div { display: grid; gap: 6px; }
.pl-row p { color: var(--ink-2); font-size: var(--fs-text); max-width: 46ch; }
.pl-price { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 600; white-space: nowrap; text-align: right; }
.pl-price small { display: block; font: 400 var(--fs-sm) var(--f-body); color: var(--ink-2); }
/* extra prices: label left, price right, one line each */
.extras { list-style: none; margin: clamp(24px, 3vw, 36px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(16px, 3vw, 40px); }
.extras li { display: grid; gap: 2px; padding-top: 12px; border-top: 2px solid var(--hair); color: var(--ink-2); font-size: var(--fs-text); }
.extras b { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h3); color: var(--ink); }
.extras--col { grid-template-columns: 1fr; margin: 0; max-width: 460px; }
.extras--col li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: var(--fs-text); }
.extras--col li:last-child { border-bottom: 1px solid var(--hair); }
@media (max-width: 960px) {
  .formats { grid-template-columns: 1fr; }
  .formats-media { position: static; aspect-ratio: 3 / 2; }
  .extras { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .pl-row { grid-template-columns: 1fr; }
  .pl-price { text-align: left; }
}

/* ---------- cabinet teaser ---------- */
.cab-teaser { background: var(--court-deep); color: var(--on-court); overflow: hidden; }
.cab-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.cab-copy { display: grid; gap: 22px; }
.cab-copy .lead { color: var(--on-court-2); }
.cab-points { display: grid; gap: 14px; margin: 4px 0 8px; padding: 0; list-style: none; }
.cab-points li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.cab-points .ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(213, 238, 59, .14); fill: var(--ball); }
.cab-points b { display: block; }
.cab-points span { color: var(--on-court-2); font-size: var(--fs-text); }
.cab-court { position: absolute; inset: 0; pointer-events: none; opacity: .14; }
.cab-court path { fill: none; stroke: #f3f6f4; stroke-width: 2; }
@media (max-width: 900px) { .cab-grid { grid-template-columns: 1fr; } }

/* mini cabinet preview (real component, shares cabinet.css tokens) */
.mini { position: relative; background: var(--surface); color: var(--ink); border-radius: 24px; padding: 18px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); display: grid; gap: 14px; max-width: 560px; justify-self: end; width: 100%; }
.mini-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mini-hello { font-family: var(--f-display); font-size: 1.05rem; }
.mini-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.mini-tabs button { border: 0; background: transparent; padding: 6px 10px; border-radius: 9px; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; color: var(--ink-2); }
.mini-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.mini-next { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--court); color: var(--on-court); }
.mini-date { text-align: center; font-family: var(--f-display); line-height: 1; padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, .2); }
.mini-date b { display: block; font-size: 1.6rem; }
.mini-date small { font: 600 var(--fs-xs) var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--on-court-2); }
.mini-next .t { font-weight: 600; }
.mini-next .s { color: var(--on-court-2); font-size: var(--fs-sm); }
.mini-count { font-family: var(--f-display); font-size: var(--fs-sm); background: var(--ball); color: var(--on-ball); padding: 6px 9px; border-radius: 9px; }
.mini-comment { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); min-height: 118px; }
.mini-comment img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.mini-comment b { font-size: var(--fs-sm); }
.mini-comment p { font-size: var(--fs-text); margin-top: 4px; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--ink); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mini-skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-skill { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--hair); display: grid; gap: 2px; }
.mini-skill span { font-size: var(--fs-xs); color: var(--ink-2); }
.mini-skill b { font-family: var(--f-display); font-size: var(--fs-text); }
.mini-skill b i { font-style: normal; color: var(--ink-2); font-size: var(--fs-xs); }
.mini-panel[hidden] { display: none; }
.mini-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mini-day { text-align: center; padding: 8px 0; border-radius: 10px; font-size: var(--fs-xs); color: var(--ink-2); border: 1px solid var(--hair); }
.mini-day b { display: block; font-family: var(--f-display); font-size: var(--fs-text); color: var(--ink); }
.mini-day.has { background: var(--court); color: var(--on-court-2); border-color: transparent; }
.mini-day.has b { color: var(--on-court); }
.mini-day.today { box-shadow: inset 0 0 0 2px var(--ball-deep); }

/* ---------- arena ---------- */
.arena-media { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 7; background: var(--court); box-shadow: var(--shadow); }
.arena-media img { width: 100%; height: 100%; object-fit: cover; }
.arena-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(28px, 4vw, 48px); align-items: start; }
.arena-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin-top: 8px; }
.arena-facts div { display: grid; }
.arena-facts b { font-family: var(--f-display); font-size: var(--fs-num-sm); line-height: 1.1; color: var(--accent-ink); }
.arena-facts span { color: var(--ink-2); font-size: var(--fs-sm); }
.calc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.calc { background: var(--surface); border-radius: var(--r-card); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 20px; box-shadow: 0 1px 0 var(--hair); }
.seg { display: inline-flex; padding: 4px; border-radius: 13px; background: var(--surface-2); gap: 4px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.calc-row { display: grid; gap: 8px; }
.calc-row label { font-weight: 600; font-size: var(--fs-text); }
.calc-out { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc-out b { font-family: var(--f-display); font-size: var(--fs-num); letter-spacing: -.03em; line-height: 1; }
.calc-out span { color: var(--ink-2); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--court) var(--p, 50%), var(--surface-2) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--court); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ecff7a, var(--ball) 55%, var(--ball-deep)); border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--ball); border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: grab; }
.ticks { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--ink-2); }
@media (max-width: 860px) {
  .arena-grid { grid-template-columns: 1fr; }
  .arena-media { aspect-ratio: 4 / 3; }
  .arena-facts { gap: 12px 24px; }
}

/* ---------- other sports (scroll-snap) ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 31%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 18px; margin-inline: calc(var(--pad) * -1); scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.sport { display: grid; grid-template-rows: 220px auto; border-radius: var(--r-card); overflow: hidden; background: var(--surface); text-decoration: none; box-shadow: 0 1px 0 var(--hair); transition: transform .5s var(--ease); }
.sport:hover { transform: translateY(-4px); }
.sport img { width: 100%; height: 100%; object-fit: cover; }
.sport-body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.sport-body p { color: var(--ink-2); font-size: var(--fs-text); }
.sport--gift { background: var(--ball); color: var(--on-ball); grid-template-rows: 1fr; align-content: end; min-height: 380px; position: relative; overflow: hidden; }
.sport--gift p { color: #2c3a1a; }
.gift-ball { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 3px solid rgba(12, 26, 44, .12); }
.gift-ball::before, .gift-ball::after { content: ""; position: absolute; inset: 20px; border-radius: 50%; border: 3px solid rgba(12, 26, 44, .12); clip-path: inset(0 50% 0 0); }
.gift-ball::after { clip-path: inset(0 0 0 50%); inset: 60px; }
@media (max-width: 860px) { .rail { grid-auto-columns: minmax(260px, 82%); } }

/* ---------- signup / contacts ---------- */
.final { background: var(--court); color: var(--on-court); overflow: hidden; }
.final-title { font-size: var(--fs-display); }
.final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; position: relative; z-index: 1; }
.form { background: var(--surface); color: var(--ink); border-radius: var(--r-card); padding: clamp(20px, 3vw, 34px); display: grid; gap: 16px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-sm); }
.field--set { border: 0; padding: 0; margin: 0; }
.field--set legend { margin-bottom: 6px; padding: 0; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: var(--r-input); border: 1.5px solid var(--hair); background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--court); box-shadow: 0 0 0 4px color-mix(in srgb, var(--court) 22%, transparent); }
[data-theme="dark"] .field input:focus, [data-theme="dark"] .field select:focus, [data-theme="dark"] .field textarea:focus { border-color: var(--ball); }
.field .help { font-size: var(--fs-sm); color: var(--ink-2); }
.field .err { font-size: var(--fs-sm); color: var(--danger); display: none; font-weight: 600; }
[data-theme="dark"] .field .err { color: #ff8a73; }
.field.bad input { border-color: var(--danger); }
.field.bad .err { display: block; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { cursor: pointer; }
.radio-row input { position: absolute; opacity: 0; }
.radio-row span { display: inline-block; padding: 9px 14px; border-radius: 11px; border: 1.5px solid var(--hair); font-weight: 600; font-size: var(--fs-sm); transition: all .2s; }
.radio-row input:checked + span { background: var(--court); color: var(--on-court); border-color: var(--court); }
.radio-row input:focus-visible + span { outline: 3px solid var(--ball); outline-offset: 2px; }
.form-ok { display: none; text-align: left; gap: 12px; }
.form.sent > :not(.form-ok) { display: none; }
.form.sent .form-ok { display: grid; animation: fadeUp .5s var(--ease); }
.form-ok .big-ball { width: 64px; height: 64px; }
.demo-note { font-size: var(--fs-xs); color: var(--ink-2); }
.contacts { display: grid; gap: 14px; margin-top: 30px; }
.contact { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(238, 243, 248, .16); }
.contact .ico { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(238, 243, 248, .1); }
.contact b { display: block; }
.contact b, .trial-call b { font-family: var(--f-body); font-size: var(--fs-body); font-weight: 700; }
.contact span { color: var(--on-court-2); font-size: var(--fs-sm); }
.socials { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.social { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(238, 243, 248, .1); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.social:hover { background: rgba(238, 243, 248, .18); }
.final-court { position: absolute; inset: 0; pointer-events: none; opacity: .16; }
.final-court path { fill: none; stroke: #f3f6f4; stroke-width: 2; }
@media (max-width: 900px) { .final-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.ftr { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: var(--fs-sm); color: var(--ink-2); }
.ftr .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--ink); }

/* ---------- inner pages ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero h1 { font-size: var(--fs-h1); max-width: 18ch; }
.crumbs { font-size: var(--fs-sm); color: var(--ink-2); display: flex; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* coach page */
.cp-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 56px); }
.cp-hero:has(.cp-photo) { grid-template-columns: .85fr 1.15fr; }
.cp-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; background: var(--court); box-shadow: var(--shadow); }
.cp-photo img { width: 100%; height: 100%; object-fit: cover; }
.cp-copy { display: grid; gap: 20px; }
.cp-copy h1 { font-size: var(--fs-h1); }
/* Coach facts: solid panel with dividers between entries. */
.cp-panel { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-card); background: var(--court-deep); color: var(--on-court); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow); }
.facts { margin: 0; display: grid; }
.facts div { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--hair); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts div:last-child { padding-bottom: 0; }
.facts dt { font-size: var(--fs-sm); color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; }
.facts dd::first-letter { text-transform: uppercase; }
.facts--panel div { border-top-color: rgba(238, 243, 248, .16); }
.facts--panel dt { color: var(--on-court-2); }
.facts--panel dd { font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.25; }
/* credentials: a two-column list with hairlines, no icon tiles */
.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--hair); }
.cred { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--hair); align-content: start; }
.cred p { font-size: var(--fs-text); }
.sched { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.sched-day { background: var(--surface); border-radius: 14px; padding: 12px; display: grid; gap: 8px; align-content: start; min-height: 150px; }
.sched-day h4 { font: 700 var(--fs-xs) var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.slot { border-radius: 10px; padding: 8px 10px; font-size: var(--fs-sm); background: var(--court); color: var(--on-court); display: grid; }
.slot b { font-family: var(--f-display); font-size: var(--fs-sm); }
.slot.free { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ball-deep); gap: 8px; padding: 8px; }
.fw-h { display: grid; padding: 0 2px; }
.fw-h b { font-family: var(--f-display); font-size: var(--fs-sm); }
.fw-h { font-size: var(--fs-xs); color: var(--ink-2); }
.fw-h b { color: var(--ink); }
.halves { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.hh { font: 600 var(--fs-xs) var(--f-body); font-variant-numeric: tabular-nums; padding: 7px 0 6px; border: 0; border-radius: 7px; cursor: pointer; color: var(--ink); background: color-mix(in srgb, var(--ball) 26%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ball-deep) 55%, transparent); position: relative; transition: background-color .2s, transform .2s var(--ease); }
.hh:hover { background: color-mix(in srgb, var(--ball) 55%, transparent); transform: translateY(-1px); }
.hh.on { background: var(--ball); color: var(--on-ball); box-shadow: none; }
.lg-half { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; background: linear-gradient(90deg, var(--ball-deep) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--ball-deep); }
.others { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--hair); }
.other { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hair); text-decoration: none; transition: background-color .25s; }
.other:hover b { text-decoration: underline 2px var(--ball); text-underline-offset: 5px; }
.other b { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h3); }
@media (max-width: 960px) { .sched { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) {
  .cp-hero { grid-template-columns: 1fr; }
  .cp-photo { aspect-ratio: 4 / 4.2; }
  .creds, .others { grid-template-columns: 1fr; }
  .sched { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 150px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .sched-day { scroll-snap-align: start; }
}

/* arena page */
.price-slots { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 12px; }
/* upcoming price change from the club sheet: must stand out */
.price-notices { display: grid; gap: 10px; }
.price-notices[hidden] { display: none; }
.price-notice { padding: 14px 18px; border-radius: 14px; background: var(--ball); color: var(--on-ball); border-left: 6px solid #e5484d; display: grid; gap: 4px; font-size: var(--fs-sm); box-shadow: var(--shadow); }
.price-notice p { margin: 0; }
.price-notice .pn-head { font-weight: 800; font-size: var(--fs-text); }
.price-slots { gap: 0; border-block: 1px solid var(--hair); }
.pslot { padding: 18px 20px; display: grid; gap: 4px; border-left: 1px solid var(--hair); }
.pslot:first-child { border-left: 0; padding-left: 0; }
.pslot .tm { font-weight: 600; font-variant-numeric: tabular-nums; }
.pslot b { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-num-sm); }
.pslot span:last-child { font-size: var(--fs-sm); color: var(--ink-2); }
.pslot.peak b { text-decoration: underline 3px var(--ball); text-underline-offset: 6px; }
.bk-bar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.bk-dur { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); flex-wrap: wrap; }
.bk-dur .bk-lbl { font-size: var(--fs-sm); color: var(--ink-2); padding: 0 8px 0 6px; }
.bk-dur button { font: 600 var(--fs-sm) var(--f-body); border: 0; border-radius: 10px; padding: 8px 14px; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s; }
.bk-dur button:hover { background: color-mix(in srgb, var(--ball) 30%, transparent); }
.bk-dur button[aria-pressed="true"] { background: var(--ball); color: var(--on-ball); }
@media (max-width: 560px) { .bk-dur { width: 100%; justify-content: space-between; } .bk-dur .bk-lbl { width: 100%; padding: 4px 6px 2px; } .bk-dur button { flex: 1; padding: 8px 6px; } }
.calc > * { min-width: 0; }
.board-wrap { overflow-x: auto; margin-inline: -4px; padding: 8px 4px 2px; }
.board { --row: 34px;
  display: grid; grid-template-columns: 54px repeat(var(--cols), minmax(76px, 1fr)); grid-template-rows: 34px; grid-auto-rows: var(--row); column-gap: 6px; row-gap: 0; font-size: var(--fs-xs); min-width: 480px; }
.board .hd { font-weight: 700; text-align: center; padding: 6px 0; color: var(--ink-2); }
.board .tm { color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1; align-self: center; }
.board .tm.hr { font-weight: 700; color: var(--ink); font-size: var(--fs-xs); }
.board .tm.half { font-size: var(--fs-xs); }
.board .c { position: relative; border-radius: 7px; margin: 3px 0; border: 0; padding: 0 8px; cursor: pointer; text-align: left; font: 500 var(--fs-xs) var(--f-body); font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--ink-2) 75%, transparent);
  background: color-mix(in srgb, var(--ink-2) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink-2) 20%, transparent); transition: background-color .15s, color .15s; overflow: hidden; white-space: nowrap; }
.board .c .t { pointer-events: none; }
.board .c[data-lab] .t { display: none; }
.board .c[data-lab]::before { content: attr(data-lab); font-weight: 700; }
.board .c.mine[data-lab], .board .c.pv[data-lab] { white-space: normal; line-height: 1.15; align-self: stretch; }
.board .c.busy { background: color-mix(in srgb, var(--court) 85%, var(--bg)); box-shadow: none; cursor: not-allowed; color: var(--on-court-2, rgba(255,255,255,.7)); }
.board .c.busy .t, .board .c.mine .t, .board .c.pv .t, .board .c.pv-bad .t { display: none; }
.board .c.pv { background: color-mix(in srgb, var(--ball) 45%, var(--surface)); color: var(--on-ball); box-shadow: none; }
.board .c.pv-bad { background: color-mix(in srgb, #e5484d 22%, transparent); box-shadow: inset 0 0 0 1px #e5484d; color: var(--ink); cursor: not-allowed; }
.board .c.mine { background: var(--ball); color: var(--on-ball); box-shadow: none; }
/* coach pages (data-owner): the coach's slots solid, other tenants hatched and muted, nothing to book */
.board .c.own { background: var(--court); color: var(--on-court); box-shadow: none; cursor: default; }
.board .c.own .t, .board .c.tenant .t { display: none; }
.board .c.tenant, .lg-other { background: repeating-linear-gradient(135deg, var(--other) 0 3px, color-mix(in srgb, var(--ink-2) 6%, transparent) 3px 7px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink-2) 18%, transparent); color: var(--ink-2); cursor: default; }
.board--view .c { cursor: default; }
.board .c.jt { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }
.board .c.jb { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.lg-free { background: color-mix(in srgb, var(--ink-2) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink-2) 30%, transparent); }
.lg-off, .board .c.na { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink-2) 16%, transparent) 0 3px, transparent 3px 7px); }
.board .c.past, .board .c.na { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink-2) 12%, transparent); cursor: not-allowed; color: color-mix(in srgb, var(--ink-2) 40%, transparent); }
.board .c.past { background: transparent; opacity: .55; }
.board .c.past .t { display: none; }
.board .c.na .t { display: none; }
/* arena calendar: year / month / week / day */
.cal { display: grid; gap: 14px; }
.cal-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.cal-year, .cal-months { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.cal-months { flex-wrap: wrap; }
.cal-year b { font-family: var(--f-display); min-width: 4.4ch; text-align: center; font-variant-numeric: tabular-nums; }
.cal-year button, .wk-nav { border: 0; width: 34px; height: 34px; border-radius: 10px; background: transparent; color: var(--ink); font: 600 1.15rem var(--f-body); cursor: pointer; transition: background-color .2s; }
.wk-nav { background: var(--surface-2); }
.cal-year button:hover:not(:disabled), .wk-nav:hover:not(:disabled) { background: color-mix(in srgb, var(--ball) 30%, transparent); }
.cal-year button:disabled, .wk-nav:disabled { opacity: .3; cursor: default; }
.cal-months button { font: 600 var(--fs-sm) var(--f-body); border: 0; border-radius: 10px; padding: 7px 10px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color .2s; }
.cal-months button:not(.has):not([aria-pressed="true"]) { opacity: .7; }
.cal-months button.has { color: var(--ink); }
.cal-months button:hover { background: color-mix(in srgb, var(--ball) 30%, transparent); }
.cal-months button[aria-pressed="true"] { background: var(--ball); color: var(--on-ball); }
.cal-grid { position: relative; display: grid; grid-template-columns: 40px repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid .ch { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); text-align: center; }
.cal-grid .ch.we { color: var(--accent-ink); }
.cal-grid button { border: 0; font: 600 var(--fs-xs) var(--f-body); color: var(--ink); cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.cal-grid button:disabled { cursor: default; }
.cal-grid .wkn { border-radius: 8px; background: transparent; color: var(--ink-2); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.cal-grid .wkn:hover:not(:disabled) { background: var(--surface-2); }
.cal-grid .wkn.on { background: var(--court); color: var(--on-court); }
.cal-grid .cd { min-height: 54px; padding: 6px 6px 5px; border-radius: 10px; background: color-mix(in srgb, var(--ink-2) 6%, transparent); display: grid; grid-template-rows: auto 1fr; gap: 4px; text-align: left; }
.cal-grid .cd b { font-variant-numeric: tabular-nums; }
.cal-grid .cd:hover:not(:disabled) { background: color-mix(in srgb, var(--ball) 22%, transparent); }
.cal-grid .cd.inwk { background: color-mix(in srgb, var(--court) 13%, transparent); }
.cal-grid .cd.out { opacity: .5; }
.cal-grid .cd:disabled { background: transparent; color: var(--ink-2); opacity: .75; }
.cal-grid .cd.today b { color: var(--accent-ink); text-decoration: underline 2px; text-underline-offset: 3px; }
.cal-grid .cd.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.lv { display: flex; gap: 2px; align-items: stretch; height: 18px; }
.lv i { flex: 1; max-width: 9px; border-radius: 2px; background: linear-gradient(to top, var(--court) calc(var(--v) * 100%), color-mix(in srgb, var(--ink-2) 18%, transparent) 0); }
.lv i.na, .wd-s i.na { background: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink-2) 22%, transparent); }
.cal-empty { position: absolute; inset: 24px 0 0 44px; margin: 0; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink-2); font-size: var(--fs-sm); text-align: center; padding: 12px; pointer-events: none; }
.wk-box { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--hair); }
.wk-head { display: flex; align-items: center; gap: 10px; }
.wk-head h3 { flex: 1; text-align: center; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.wk-view { display: grid; grid-template-columns: 38px repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 22px 0; font-size: var(--fs-xs); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wd { border: 0; border-radius: 12px; padding: 6px; background: color-mix(in srgb, var(--ink-2) 6%, transparent); display: grid; grid-template-rows: auto 120px auto; gap: 4px; color: var(--ink); font: 500 var(--fs-xs) var(--f-body); text-align: center; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.wd:hover:not(:disabled) { background: color-mix(in srgb, var(--ball) 22%, transparent); }
.wd:disabled { opacity: .45; cursor: default; }
.wd.we .wd-h b { color: var(--accent-ink); }
.wd.today .wd-h { text-decoration: underline 2px; text-underline-offset: 3px; }
.wd.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.wd-s { display: grid; grid-template-columns: repeat(var(--courts, 5), 1fr); gap: 2px; }
.wd-s i { border-radius: 3px; background-color: color-mix(in srgb, var(--ink-2) 12%, transparent); }
.wd-p { font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-xs); }
.wk-note { font-size: var(--fs-sm); margin: 0; }
.day-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-top: 16px; border-top: 1px solid var(--hair); }
.pick .pk-go { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
@media (max-width: 560px) {
  .cal-months { display: grid; grid-template-columns: repeat(6, 1fr); width: 100%; }
  .cal-months button { padding: 7px 2px; }
  .cal-grid { grid-template-columns: 26px repeat(7, minmax(0, 1fr)); gap: 3px; }
  .cal-grid .cd { min-height: 46px; padding: 4px; }
  .lv { height: 14px; gap: 1px; }
  .cal-empty { inset: 22px 0 0 29px; }
  .wk-view { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .wk-axis { display: none; }
  .wd { padding: 4px 3px; grid-template-rows: auto 96px auto; }
  .wd-s { gap: 1px; }
}
.pick { font-size: var(--fs-sm); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.pick.on { color: var(--ink); }
.pick .pk { padding: 6px 6px 6px 10px; border-radius: 10px; background: var(--ball); color: var(--on-ball); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.pick .pk em { font-style: normal; font-weight: 700; }
.pick .pk [data-rm] { border: 0; background: rgba(0,0,0,.12); color: inherit; width: 22px; height: 22px; border-radius: 6px; cursor: pointer; font-size: var(--fs-sm); line-height: 1; }
.pick .pk { background: var(--surface-2); color: var(--ink); max-width: 100%; }
.pick .pk [data-rm] { flex: none; }

.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--ink-2); }
.legend .lg-busy { background: var(--court); }
.legend .lg-pick { background: var(--ball); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.acc { display: grid; gap: 10px; }
.acc details { background: var(--surface); border-radius: 16px; padding: 0 20px; }
.acc summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { transition: transform .3s var(--ease); }
.acc details[open] summary .ico { transform: rotate(180deg); }
.acc ul { margin: 0 0 18px; padding-left: 20px; color: var(--ink-2); font-size: var(--fs-text); display: grid; gap: 6px; }
@media (max-width: 860px) { .price-slots { grid-template-columns: 1fr 1fr; } .pslot:nth-child(odd) { border-left: 0; padding-left: 0; } .pslot:nth-child(n+3) { border-top: 1px solid var(--hair); } }

/* sport page */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.split-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy { display: grid; gap: 14px; }
.instr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inst { padding-top: 20px; border-top: 2px solid var(--hair); display: grid; gap: 10px; }
.inst-head { display: flex; gap: 14px; align-items: center; }
.inst ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: var(--fs-text); }
@media (max-width: 860px) { .split, .instr { grid-template-columns: 1fr; } .split--rev .split-media { order: -1; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, calc(100% + 60px)); visibility: hidden; z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: var(--fs-text); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); transition: transform .5s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* install banner */
.install { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55; display: none; align-items: center; gap: 12px; background: var(--surface); color: var(--ink); padding: 12px 12px 12px 16px; border-radius: 16px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .5); max-width: 360px; font-size: var(--fs-sm); border: 1px solid var(--hair); }
.install.show { display: flex; animation: fadeUp .5s var(--ease); }
.install .brand-mark { width: 38px; height: 38px; }
.install > span { flex: 1; min-width: 0; }
@media (min-width: 640px) { .install { max-width: 460px; } }
@media (max-width: 639px) { .install { left: 12px; right: 12px; max-width: none; font-size: var(--fs-sm); } }
@media (max-width: 860px) { body[data-page="cabinet"] .install { bottom: calc(76px + env(safe-area-inset-bottom)); } }

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

/* «Гордость клуба»: badge + home teaser (page styles: pride.css) */
.pride-teaser { background: var(--court-deep); color: var(--on-court); overflow: hidden; }
.pride-teaser .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.pride-teaser-copy { display: grid; gap: 18px; }
.pride-teaser-media { position: relative; border-radius: var(--r-card); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); aspect-ratio: 941 / 562; }
.pride-badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--ball); color: var(--on-ball); font-weight: 700; font-size: .85rem; }
.pride-badge .ico { width: 18px; height: 18px; }
.trial-card { display: grid; justify-items: start; gap: 16px; padding: clamp(20px, 3vw, 34px); background: var(--surface); color: var(--ink); border-radius: var(--r-card); scroll-margin-top: 6rem; }
.trial-card .lead { color: var(--ink-2); }
.trial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.trial-copy { background: none; border: 0; padding: 10px 0; font: inherit; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.trial-call { min-width: 0; }
.trial-call b { -webkit-user-select: text; user-select: text; }
.trial-call b { white-space: nowrap; }
@media (max-width: 900px) { .trial-card { grid-row: 1; } }
.pride-teaser-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) { .pride-teaser .wrap { grid-template-columns: 1fr; } }


