/* Karina Skubenko — V2 shared base: reset, top bar, footer, cards, schedule, booking widget.
   Each mini-site overrides the tokens below in its own style.css. */
:root {
  --bg: #f4f1ec;
  --fg: #141414;
  --muted: #6a6660;
  --surface: #ffffff;
  --surface-2: #f0ede7;
  --border: rgba(0, 0, 0, .13);
  --accent: #141414;
  --accent-fg: #ffffff;
  --ok: #1c8a4a;
  --danger: #c2362b;
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: 'Manrope', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-head: 'Unbounded', var(--font-body);
  --wrap: 1140px;
  --c-ice: #6fd8ff;
  --c-lingua: #c4603b;
  --c-dance: #ff2e93;
  --c-mix: #7b5cff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3 { line-height: 1.25; }
html:lang(zh) body { line-break: strict; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 28px; } }
.section { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 760px) { .section { padding-top: 88px; padding-bottom: 88px; } }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.sec-title { font-size: clamp(1.7rem, 5vw, 2.8rem); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-fg);
  font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn--sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Shared top bar ---------- */
.ks-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 16, 18, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #f3f3f3; font-family: 'Manrope', 'Noto Sans SC', system-ui, sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ks-top__in {
  max-width: var(--wrap); margin: 0 auto; padding: 8px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
}
.ks-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .01em; order: 0; margin-right: auto; white-space: nowrap; }
.ks-brand__mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #111;
  background: conic-gradient(from 200deg, var(--c-ice), var(--c-lingua), var(--c-dance), var(--c-mix), var(--c-ice));
}
.ks-nav { order: 3; width: 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ks-nav::-webkit-scrollbar { display: none; }
.ks-nav a {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 6px 12px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 700; color: #cfcfcf; white-space: nowrap;
}
.ks-nav a i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.ks-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.ks-nav a[aria-current="page"] { background: var(--dot); color: #111; }
.ks-nav a[aria-current="page"] i { background: #111; }
.ks-nav--ice { --dot: var(--c-ice); }
.ks-nav--lingua { --dot: #e08a63; }
.ks-nav--dance { --dot: var(--c-dance); }
.ks-nav--mix { --dot: #a08bff; }
.ks-my {
  order: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25);
  text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.ks-my[aria-current="page"] { background: #fff; color: #111; }
.ks-my__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: #111; font-size: 12px; display: inline-grid; place-items: center; }
.ks-my[aria-current="page"] .ks-my__n { background: #111; color: #fff; }
.ks-my { min-width: 0; }
.ks-my__t { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px) {
  .ks-top__in { gap: 6px 8px; }
  .ks-brand { gap: 8px; }
  .ks-brand__name { white-space: normal; font-size: 13px; line-height: 1.05; max-width: 5.8em; }
  .ks-my { padding: 6px 10px; font-size: 13px; }
  .ks-lang__btn { padding: 0 9px; }
}
@media (min-width: 820px) {
  .ks-top__in { padding: 10px 28px; flex-wrap: nowrap; }
  .ks-brand { margin-right: 18px; }
  .ks-nav { order: 1; width: auto; }
  .ks-my { margin-left: auto; }
  .ks-lang { order: 3; }
}

/* ---------- Shared footer ---------- */
.ks-foot { background: #101012; color: #bdbdbd; font-family: 'Manrope', 'Noto Sans SC', system-ui, sans-serif; font-size: 14px; padding: 36px 0 44px; }
.ks-foot__in { display: grid; gap: 18px; }
.ks-foot b { color: #fff; }
.ks-foot a { color: #fff; }
.ks-foot__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ks-foot__tg { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #2aa3df; color: #fff !important; text-decoration: none; font-weight: 700; width: max-content; }
@media (min-width: 760px) { .ks-foot__in { grid-template-columns: 1.3fr 1fr auto; align-items: start; } }

/* ---------- Service cards ---------- */
.ks-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.ks-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
.ks-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ks-card__glyph { font-family: var(--font-head); font-size: 26px; line-height: 1; }
.ks-card__type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ks-card__title { font-size: 1.15rem; margin: 0; }
.ks-card__en { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.ks-card__desc { font-size: 15px; margin: 0; flex: 1; }
.ks-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ks-card__price { font-size: 14px; color: var(--muted); }
.ks-card__price b { color: var(--fg); font-size: 18px; }
.ks-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ks-tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); }
.ks-error { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(194, 54, 43, .45); background: rgba(194, 54, 43, .08); }
.ks-loading { color: var(--muted); font-size: 14px; }

/* ---------- Group schedule table ---------- */
.ks-sched { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.ks-sched table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ks-sched th, .ks-sched td { padding: 12px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ks-sched th { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.ks-sched tr:last-child td { border-bottom: 0; }
.ks-sched td.t { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.ks-sched .d { white-space: nowrap; }
.ks-sched a { font-weight: 700; }
.ks-sched caption { caption-side: bottom; text-align: left; padding: 10px 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 520px) {
  .ks-sched th.cap, .ks-sched td.cap { display: none; }
  .ks-sched th, .ks-sched td { padding: 10px 8px; font-size: 14px; }
}

/* ---------- Related (cross-sell) list ---------- */
.ks-related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.ks-rel {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius);
  text-decoration: none; background: var(--surface); border: 1px solid var(--border);
  transition: transform .15s ease;
}
.ks-rel:hover { transform: translateY(-2px); }
.ks-rel__div { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; display: flex; align-items: center; gap: 6px; }
.ks-rel__div i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, currentColor); }
.ks-rel--skating { --dot: var(--c-ice); }
.ks-rel--languages { --dot: var(--c-lingua); }
.ks-rel--dance { --dot: var(--c-dance); }
.ks-rel--mix { --dot: var(--c-mix); }
.ks-rel__t { font-weight: 700; }
.ks-rel__p { font-size: 13px; color: var(--muted); }

/* ---------- Booking widget ---------- */
.bk {
  background: var(--surface); color: var(--fg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 14px; scroll-margin-top: 110px;
}
@media (min-width: 760px) { .bk { padding: 28px; } }
.bk-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.bk-steps li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); }
.bk-steps li.is-on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 700; }
.bk-steps li.is-done { color: var(--fg); }
.bk-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.bk-services { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-svc {
  border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 10px 14px; cursor: pointer; text-align: left; font-size: 15px; font-weight: 700; line-height: 1.25;
  max-width: 100%;
}
.bk-svc small { display: block; font-weight: 500; font-size: 12px; opacity: .75; margin-top: 3px; }
.bk-svc[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.bk-cal { margin-top: 20px; }
.bk-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.bk-arrow {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface-2); cursor: pointer; font-size: 18px; line-height: 1;
}
.bk-arrow:disabled { opacity: .3; cursor: default; }
.bk-week { font-weight: 800; text-align: center; font-size: 15px; min-width: 0; }
.bk-week small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.bk-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bk-day {
  border: 1px solid transparent; background: transparent; border-radius: var(--radius-sm);
  padding: 6px 0 5px; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.15; min-width: 0;
}
.bk-day span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bk-day b { font-size: 17px; font-variant-numeric: tabular-nums; }
.bk-day i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 4px; }
.bk-day i.no { background: transparent; }
.bk-day.is-today b { text-decoration: underline; text-underline-offset: 3px; }
.bk-day.is-past { opacity: .4; }
.bk-day.is-active { background: var(--accent); color: var(--accent-fg); }
.bk-day.is-active span { color: inherit; opacity: .85; }
.bk-day.is-active i { background: var(--accent-fg); }
.bk-day.is-active i.no { background: transparent; }
.bk-body { margin-top: 12px; }
.bk-col { display: none; }
.bk-col.is-active { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bk-col__date { grid-column: 1 / -1; font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.bk-slot {
  border: 1.5px solid var(--accent); background: transparent; color: var(--fg);
  border-radius: var(--radius-sm); padding: 9px 4px; cursor: pointer; font-weight: 800; font-size: 15px;
  line-height: 1.15; text-align: center; font-variant-numeric: tabular-nums; min-width: 0;
}
.bk-slot small { display: block; font-weight: 600; font-size: 11px; opacity: .8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-slot:hover:not(:disabled), .bk-slot.is-sel { background: var(--accent); color: var(--accent-fg); }
.bk-slot:disabled { border-style: dashed; border-color: var(--border); opacity: .6; cursor: not-allowed; font-weight: 600; }
.bk-empty { grid-column: 1 / -1; color: var(--muted); font-size: 13px; text-align: center; padding: 10px 0; }
.bk-loading { grid-column: 1 / -1; color: var(--muted); font-size: 14px; padding: 18px 0; text-align: center; }
/* prices (UAH), rink formats, age group, lesson options */
.ks-card__fmt { font-size: 13px; font-weight: 700; margin: 4px 0 6px; color: var(--muted); }
.ks-prices { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--border); font-size: 13px; display: grid; gap: 3px; }
.ks-flex { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.ks-flex th, .ks-flex td { padding: 4px 6px; border-bottom: 1px solid var(--border); text-align: left; }
.ks-flex th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.ks-flex td + td, .ks-flex th + th { text-align: right; white-space: nowrap; }
.ks-flex tr.ks-flex__sub th { padding-top: 10px; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--fg); }
.ks-age, .bk-slot small.bk-age {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  border: 1px solid currentColor; opacity: .9; white-space: nowrap; margin-top: 3px;
}
.bk-services--fmt { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.bk-svc--fmt { position: relative; padding: 12px 14px 12px 50px; min-height: 72px; }
.bk-svc--fmt small { font-weight: 500; }
.bk-svc--fmt .bk-svc__p { font-weight: 800; opacity: 1; margin-top: 6px; }
.bk-svc__n {
  position: absolute; left: 10px; top: 12px; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 999px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 1.5px solid currentColor;
}
.bk-setup { display: grid; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.bk-setup select.is-empty { border-color: var(--accent); border-width: 2px; }
.bk-setup__hint { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.bk-setup__l { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.bk-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-opt { border: 1.5px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; font-weight: 700; font-size: 14px; text-align: left; }
.bk-opt small { display: block; font-weight: 600; font-size: 12px; opacity: .8; }
.bk-opt[aria-checked="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.bk-slot small { white-space: normal; }
.bk-slot small.bk-slot__price { font-weight: 800; opacity: 1; }
.bk-slot small.bk-slot__now { font-weight: 500; }
.bk-needage { font-weight: 700; color: var(--fg); }
.bk-summary .ks-flex { max-width: 360px; }

/* recommended slots (right next to Karina's existing sessions) */
.bk-day { position: relative; }
.bk-day__rec {
  position: absolute; top: -7px; right: -1px; font-style: normal; font-size: 9px; line-height: 1;
  width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%;
  background: color-mix(in srgb, #f5b301 22%, var(--surface)); border: 1px solid #e0a100;
}
.bk-sub { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--muted); margin: 4px 0 0; line-height: 1.3; }
.bk-sub--rec { color: #9a6700; color: color-mix(in srgb, #d99a00 72%, var(--fg)); margin-top: 0; }
.bk-slot.is-rec {
  background: color-mix(in srgb, #f5b301 16%, var(--surface)); border-color: #e0a100; color: var(--fg);
  box-shadow: 0 2px 8px rgba(224, 161, 0, .18);
}
.bk-slot.is-rec:hover:not(:disabled), .bk-slot.is-rec.is-sel { background: #e0a100; color: #1a1200; border-color: #e0a100; }
.bk-slot__star { font-size: .8em; margin-right: 3px; }
.bk-slot small.bk-slot__hint { white-space: normal; font-weight: 500; opacity: .9; }
.bk-col.is-active .bk-slot.is-rec { grid-column: span 2; }
.bk-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.bk-link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-weight: 700; }
@media (min-width: 900px) {
  .bk-day { cursor: default; }
  .bk-day.is-active { background: transparent; color: inherit; }
  .bk-day.is-active span { color: var(--muted); opacity: 1; }
  .bk-day.is-active i { background: var(--accent); }
  .bk-body { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-height: 460px; overflow-y: auto; align-items: start; }
  .bk-col, .bk-col.is-active { display: flex; flex-direction: column; gap: 6px; }
  .bk-col__date { display: none; }
  .bk-slot { font-size: 14px; padding: 8px 2px; }
  .bk-col.is-active .bk-slot.is-rec { grid-column: auto; }
  .bk-sub { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--border); padding-top: 4px; }
  .bk-sub--rec { border-top: 0; padding-top: 0; }
  .bk-slot small.bk-slot__hint { font-size: 10px; padding: 0 2px; }
}
.bk-alert {
  padding: 12px 14px; border-radius: var(--radius-sm); margin: 0 0 14px; font-size: 14px; font-weight: 600;
  background: rgba(194, 54, 43, .1); border: 1px solid rgba(194, 54, 43, .45);
}
.bk-alert a { font-weight: 800; }
.bk-form { display: grid; gap: 14px; margin-top: 4px; }
.bk-summary { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 4px solid var(--accent); font-size: 15px; }
.bk-summary b { font-size: 16px; }
.bk-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.bk-field input, .bk-field select, .bk-field textarea {
  width: 100%; padding: 12px 13px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--fg); font-size: 16px;
}
.bk-field textarea { min-height: 84px; resize: vertical; }
.bk-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .bk-row { grid-template-columns: 1fr 1fr; } }
.bk-small { font-size: 13px; color: var(--muted); margin: 0; }
.bk-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bk-done { text-align: center; padding: 10px 0; }
.bk-done__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--accent); color: var(--accent-fg); }
.bk-done .bk-actions { justify-content: center; margin-top: 16px; }
.bk-done p { margin: 0 0 8px; }

/* ---------- My bookings ---------- */
.my-list { display: grid; gap: 12px; }
.my-card { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.my-card.is-off { opacity: .6; }
.my-card__when { text-align: center; border-radius: var(--radius-sm); background: var(--surface-2); padding: 10px 4px; line-height: 1.2; align-self: start; }
.my-card__when b { display: block; font-family: var(--font-head); font-size: 24px; }
.my-card__when span { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.my-card h3 { font-size: 1.02rem; margin: 0 0 4px; }
.my-card p { margin: 0 0 4px; font-size: 14px; }
.my-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.my-card__msg { font-size: 13px; font-weight: 700; }
.my-badge { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); margin-left: 6px; vertical-align: middle; }
.ks-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #111; color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; z-index: 100; box-shadow: 0 8px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); text-align: center; }

/* payment before the lesson (individual services) */
.bk-done__icon.is-pay { background: #f5b301; color: #1a1200; }
.ks-pay { text-align: left; margin: 14px auto 12px; max-width: 520px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1.5px solid #e0a100; }
.ks-pay p { margin: 0 0 6px; }
.ks-pay__must { font-size: 15px; line-height: 1.35; }
.ks-pay__hold { font-size: 14px; color: var(--muted); }
.ks-pay__title { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-top: 10px !important; }
.ks-pay__det { margin-top: 8px; }
.ks-pay__det summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.ks-pay__box { display: grid; gap: 8px; margin-top: 8px; }
.ks-pay__row { display: grid; gap: 2px; }
.ks-pay__l { font-size: 12px; font-weight: 700; color: var(--muted); }
.ks-pay__v { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ks-pay__val { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; min-width: 0; user-select: all; }
.ks-pay__copy { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; cursor: pointer; flex: none; }
.ks-pay__copy.is-ok { border-color: var(--ok); color: var(--ok); }
.ks-pay__sec { font-size: 13px; font-weight: 700; margin: 6px 0 0 !important; padding-top: 8px; border-top: 1px solid var(--border); }
.ks-pay__actions { margin-top: 12px; }
.ks-pay__msg { font-size: 13px; font-weight: 700; color: var(--danger); margin-top: 8px !important; }
.ks-pay.is-done { border-color: var(--ok); }
.ks-pay__thanks { font-weight: 700; margin: 0 !important; }
.ks-pay.is-expired { border-color: var(--danger); }
.my-card .ks-pay { margin: 8px 0 0; max-width: none; }
.my-card__st { margin-top: 2px !important; }
.my-status { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.my-status--pending_payment { border-color: #e0a100; background: color-mix(in srgb, #f5b301 18%, var(--surface)); }
.my-status--paid_claimed { border-color: #3b82c4; }
.my-status--confirmed, .my-status--active { border-color: var(--ok); color: var(--ok); }
.my-status--expired, .my-status--cancelled { border-color: var(--danger); color: var(--danger); }

/* recurring booking ("every week until cancelled") */
.bk-weekly { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.bk-weekly label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; cursor: pointer; }
.bk-weekly input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.bk-weekly .bk-small { margin-top: 4px; }
.bk-done__sub { font-size: 15px; }
.my-subs { display: grid; gap: 10px; }
.my-sub { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.my-sub h3 { font-size: 1.02rem; margin: 0 0 4px; }
.my-sub p { margin: 0 0 6px; font-size: 14px; }
.my-sub .my-card__msg { color: var(--danger); }
.my-sub__lh { font-size: 12px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 6px !important; }
.my-lessons { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.my-lesson { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.my-lesson__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 14px; }
.my-lesson__when { font-weight: 700; }
.my-lesson .ks-pay { margin: 8px 0 0; max-width: none; }
.my-lesson__skip { font-size: 13px; margin-top: 8px; color: var(--muted); }
.my-lesson .my-card__msg { margin: 6px 0 0; font-size: 13px; }
/* абонемент (pack of 4 / 8 weekly paid lessons) */
.bk-pkg { margin-top: 10px; }
.bk-pkg[hidden] { display: none; }
.bk-pkg .bk-setup__l { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.bk-pkg .bk-opt { flex: 1 1 calc(50% - 8px); }
.ks-pay__amount { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.ks-pay__amount b { font-size: 16px; white-space: nowrap; }
.my-status--pkg { border-color: var(--c-mix); color: var(--c-mix); }
.my-sub__pkg { line-height: 1.7; }
.my-sub__pkg .my-status { margin-left: 4px; }
.my-lesson__st { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.my-lesson__after { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Cancellation confirm modal + free-cancellation rule */
.ks-noscroll { overflow: hidden; }
.ks-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .5); display: grid; place-items: center; padding: 16px; }
.ks-modal__box {
  width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--surface); color: var(--fg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 18px 60px rgba(0, 0, 0, .35); font-family: var(--font-body);
}
.ks-modal__t { font-size: 18px; margin: 0 0 10px; }
.ks-modal__q { margin: 0 0 12px; font-weight: 600; overflow-wrap: anywhere; }
.ks-modal__warn { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(194, 54, 43, .1); border: 1px solid rgba(194, 54, 43, .5); margin: 0 0 14px; font-size: 14px; }
.ks-modal__warn p { margin: 0 0 6px; }
.ks-modal__warn p:last-child { margin: 0; }
.ks-modal__warn a { font-weight: 800; color: inherit; }
.ks-modal__rule { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.ks-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ks-modal__actions .btn { flex: 1 1 140px; }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.ks-pay__rule, .bk-done__rule, [data-ks-cancelrule] { font-size: 13px; color: var(--muted); }
