/* KRĘG — styles. One line weight (--line) across illustration and UI. */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin.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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin-ext.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-latin.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-latin-ext.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;
}

:root {
  --paper: #F3EFE8;
  --paper-2: #EAE4D9;      /* plate disc, concept bar */
  --ink: #1F2A26;
  --ink-2: #4B5752;        /* secondary text, 6.6:1 on paper */
  --accent: #D2643A;       /* selected zone, primary button */
  --on-accent: #131B18;    /* text on accent, 4.7:1 */
  --sage: #4F6A56;         /* free slots, statuses, 5.2:1 on paper */
  --sage-soft: #DCE3D8;
  --hair: rgba(31, 42, 38, .2);
  --hair-strong: rgba(31, 42, 38, .42);

  --line: 1.5px;
  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --wrap: 78rem;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- concept bar ---------- */
.concept { background: var(--paper-2); border-bottom: var(--line) solid var(--hair); }
.concept__text {
  font-size: .8125rem; line-height: 1.4; color: var(--ink-2);
  padding-block: .55rem; display: flex; flex-wrap: wrap; column-gap: .75rem; row-gap: .15rem;
}
.concept__text a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.15rem;
  border-radius: 999px; border: var(--line) solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: #D86E45; }   /* lighter, not darker: #131B18 text stays 5.2:1 */
.btn--accent:active { transform: translateY(1px); }

/* ---------- header ---------- */
.site-header__row {
  display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.75rem);
  min-height: 4.75rem;
  position: relative;      /* anchors the mobile menu panel */
}
.logo { display: inline-flex; align-items: center; gap: .6rem; min-width: 44px; min-height: 44px; text-decoration: none; margin-right: auto; border-radius: 4px; }
.logo__ring { width: 2rem; height: 2rem; }
.logo__ring .seg { fill: var(--ink); }
.logo__word { font-weight: 640; font-size: 1.125rem; letter-spacing: .14em; font-stretch: 100%; }

.nav__list { display: flex; gap: clamp(1rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav__list a {
  text-decoration: none; font-size: .9875rem; padding-block: .5rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 var(--line) no-repeat;
}
.nav__list a:hover { background-size: 100% var(--line); }

/* mobile menu button (hidden from 820 px up) */
.menu-btn {
  display: none; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border: var(--line) solid var(--hair-strong); border-radius: 50%; background: transparent; cursor: pointer;
}
.menu-btn:hover { border-color: var(--ink); }
.menu-btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: var(--line); stroke-linecap: round; overflow: visible; }
.menu-btn path { transform-box: fill-box; transform-origin: 50% 50%; }
.menu-btn[aria-expanded="true"] .menu-btn__l1 { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__l2 { transform: translateY(-3px) rotate(-45deg); }

.lang { display: inline-flex; border: var(--line) solid var(--hair-strong); border-radius: 999px; padding: 2px; }
.lang__btn {
  min-width: 44px; min-height: 44px; padding: 0 .55rem; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer; font-size: .875rem; font-weight: 560; letter-spacing: .04em;
}
.lang__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "plate" "panel";
  row-gap: 1.75rem;
}
.hero__intro { grid-area: intro; }
.plate { grid-area: plate; margin: 0; }
.hero__panel { grid-area: panel; min-width: 0; }

.ex-kicker.hero__kicker { display: block; margin-bottom: .9rem; padding-left: 1.1rem; text-indent: -1.1rem; }
.hero__kicker::before { display: inline-block; margin-right: .55rem; vertical-align: .05em; }   /* .55 + .55 = the hanging indent */
/* phones show the ring alone in the header (see below), so the kicker names the studio */
.hero__brand-word { font-family: var(--font); font-weight: 640; font-size: .875rem; letter-spacing: .14em; color: var(--ink); }
.hero__title {
  font-size: clamp(3rem, 1.4rem + 5.6vw, 5.75rem);
  font-weight: 520;
  font-stretch: 82%;
  line-height: .93;
  letter-spacing: -.028em;
  text-wrap: balance;
  max-width: 5.6em;
}
.hero__lede {
  margin-top: 1.25rem; max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.5; color: var(--ink-2);
  text-wrap: pretty;
}
.noscript-note {   /* without JavaScript the figure and the booking do nothing: say so */
  margin-top: 1.25rem; max-width: 34rem; padding: 1rem 1.1rem;
  border: var(--line) dashed var(--hair-strong); border-radius: 14px; color: var(--ink-2);
}

/* plate: the figure, like a page in an anatomy atlas */
.plate__stage { width: min(100%, 25rem); margin-inline: auto; }
.body {
  /* --sw is set by body-map.js so figure lines render at --line on screen */
  --sw: 1.5; --fsw: calc(var(--sw) * 1px);
  width: 100%; height: auto; overflow: visible; -webkit-tap-highlight-color: transparent;
}
.plate__disc { fill: var(--paper-2); }
.body .outline {
  fill: var(--paper); stroke: var(--ink); stroke-width: var(--fsw); stroke-linejoin: round;
}
.body .m {
  fill: none; stroke: var(--ink); stroke-opacity: .28; stroke-width: var(--fsw); stroke-linecap: round;
}
.body .m.is-lit { stroke-opacity: .95; }
.body .vert, .body .spine-line { fill: none; stroke: var(--ink); stroke-width: var(--fsw); stroke-linecap: round; }
.body .spine-line { stroke-opacity: .32; }
.body .vert { stroke-opacity: .55; }

.zone { cursor: pointer; outline: none; }
.zone .zh { fill: transparent; }
.zone .za {
  fill: var(--accent); fill-opacity: 0;
  stroke: var(--ink); stroke-opacity: 0; stroke-width: var(--fsw);
}
.zone .zp { fill: var(--sage); }
/* the pulse ring grows by scale(); its line stays at the site's weight */
.zone .zr { fill: none; stroke: var(--sage); vector-effect: non-scaling-stroke; stroke-width: var(--line); stroke-opacity: .55; }
@media (hover: hover) {
  .zone:hover .za { fill-opacity: .08; stroke: var(--accent); stroke-opacity: .7; }
}
.zone:focus-visible .za { stroke: var(--ink); stroke-opacity: 1; stroke-dasharray: 3 3; fill-opacity: .06; }
.zone.is-selected .za { fill-opacity: .17; stroke: var(--accent); stroke-opacity: 1; }
.zone.is-selected:focus-visible .za { stroke: var(--ink); stroke-dasharray: 3 3; }
.zone.is-selected .zp { fill: var(--accent); }
.zone.is-selected .zr { stroke: var(--accent); stroke-opacity: .9; }

.callout path { fill: none; stroke: var(--ink); stroke-width: var(--fsw); }
.callout circle { fill: var(--ink); }
.callout text { fill: var(--ink); font-size: 15.5px; font-weight: 560; font-stretch: 92%; letter-spacing: -.005em; }

/* views: both live in the same SVG, one is hidden */
.plate[data-view="front"] .view--back,
.plate[data-view="back"] .view--front { opacity: 0; visibility: hidden; }
.plate[data-view="front"] .plate__view--back,
.plate[data-view="back"] .plate__view--front { display: none; }

.plate__caption {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(100%, 25rem); margin: .75rem auto 0;
  padding-top: .65rem; border-top: var(--line) solid var(--hair);
  font-size: .9375rem; color: var(--ink-2);
}
.plate__ryc { font-variant-numeric: tabular-nums; }
.flip {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: .4rem .95rem .4rem .75rem;
  border: var(--line) solid var(--hair-strong); border-radius: 999px; background: transparent;
  color: var(--ink); font-weight: 560; font-size: .9375rem; cursor: pointer;
}
.flip:hover { border-color: var(--ink); }
.flip__icon { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; }

/* ---------- panel: chips, questions, match ---------- */
.step--refine { margin-top: 1.75rem; padding-top: 1.25rem; border-top: var(--line) solid var(--hair); }
.step__label { font-size: .9375rem; color: var(--ink-2); margin-bottom: .6rem; }
.step__intro { font-weight: 560; margin-bottom: 1rem; }
.question + .question { margin-top: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
/* One choice chip for the whole site (S3): the hero's zones and answers, the form's «Co boli» (.opt--chip, a
   radio) and the exercise page's zones. A ring before the label; chosen ("your answer"): accent fill and a
   tick. Labels in sentence case. */
.chip, .opt--chip .opt__box {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .45rem 1rem .45rem .7rem;
  border: var(--line) solid var(--hair-strong); border-radius: 999px;
  background: transparent; font-size: 1rem; line-height: 1.2; text-align: left;
}
.chip { cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .opt--chip .opt__input:checked + .opt__box {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 560;
}
.chip[aria-pressed="true"]:hover, .opt--chip:hover .opt__input:checked + .opt__box { background: #D86E45; border-color: #D86E45; }
.chip[aria-pressed="true"] .opt__mark, .opt--chip .opt__input:checked + .opt__box .opt__mark { border-color: transparent; background: transparent; }
.chip[aria-pressed="true"] .opt__mark svg { visibility: visible; }

.match { margin-top: 2rem; border-top: var(--line) solid var(--ink); padding-top: 1.1rem; }
.match__empty { display: flex; align-items: center; gap: .75rem; color: var(--ink-2); }
.match__empty svg { width: 1.6rem; height: 1.6rem; flex: none; fill: none; stroke: var(--sage); stroke-width: var(--line); }

.match__zone { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; color: var(--ink-2); }
.match__zone::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
.match__visit {
  margin-top: .35rem; font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.15rem); font-weight: 540; font-stretch: 88%;
  line-height: 1.08; letter-spacing: -.015em;
}
.match__meta { margin-top: .45rem; display: flex; gap: 1.25rem; font-family: var(--mono); font-size: .9375rem; color: var(--ink-2); }

.match__rows { margin: 1.15rem 0 0; display: grid; grid-template-columns: minmax(7.5rem, auto) 1fr; }
.match__rows dt, .match__rows dd { padding-block: .8rem; border-top: var(--line) solid var(--hair); }
.match__rows dt { font-size: .9375rem; color: var(--ink-2); padding-right: 1rem; }
.match__rows dd { margin: 0; }
.match__name { font-weight: 600; font-size: 1.125rem; }
.match__spec { display: block; font-size: .9375rem; color: var(--ink-2); }
.match__slot { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .9rem; row-gap: .2rem; }
.match__time { font-family: var(--mono); font-size: 1.5rem; line-height: 1.1; letter-spacing: -.02em; }
.match__free { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; color: var(--sage); }
.match__free::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sage); }
.match__none { font-size: 1rem; }
.match__none a { text-underline-offset: .2em; }
.match__note { margin-top: .9rem; padding-top: .8rem; border-top: var(--line) solid var(--hair); font-size: .9375rem; color: var(--ink-2); }
.match__actions { margin-top: 1.25rem; }

/* ---------- booking ---------- */
.btn--line { background: transparent; border-color: var(--hair-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }

.booking { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem); }
.booking__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "main" "phone" "after";
  row-gap: 1.75rem;
  padding-top: 1.4rem;
}
.booking__grid::before {   /* the section rule, gutter to gutter */
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  border-top: var(--line) solid var(--ink);
}
.booking__head { grid-area: head; }
.booking__title {
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.25rem); font-weight: 520; font-stretch: 82%;
  line-height: .95; letter-spacing: -.025em;
}
.booking__title:focus, .booked__title:focus { outline: none; }
.booking__lede { margin-top: .9rem; max-width: 34rem; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); text-wrap: pretty; }
.booking__main { grid-area: main; min-width: 0; }

/* form: three choices, each a radio group (fieldset + legend) drawn as chips or cards.
   The radio itself is visually hidden inside its label; the drawn box after it shows its state. */
.bform__label { font-size: .9375rem; color: var(--ink-2); }
.bform__choices { border-top: var(--line) solid var(--hair); container: choices / inline-size; }
.choice {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1rem;
  min-width: 0; margin: 0; padding: .9rem 0 1.05rem; border: 0; border-bottom: var(--line) solid var(--hair);
}
/* floated, the legend sits in the fieldset's content (a grid item) like any label, not on its top border */
.choice__legend { float: left; grid-column: 1 / -1; grid-row: 1; padding: 0; margin-bottom: .6rem; }
.choice__opts, .choice .field-error { grid-column: 1 / -1; }
.choice__opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.choice__opts--chips { display: flex; flex-wrap: wrap; }

/* M1: a group the hero's match or a team card filled in shows as one row, as in the match card: the legend,
   the choice, «Zmień» on the right (phones: the choice under the legend). «Zmień» opens the cards again;
   «Gotowe» folds them back. */
.choice[data-view="summary"] { row-gap: .1rem; padding-block: .5rem; }
.choice[data-view="summary"] .choice__legend,
.choice[data-view="edit"] .choice__legend { grid-column: 1; margin: 0; }
.choice[data-view="summary"] .choice__legend { font-size: .875rem; line-height: 1.3; }
.choice[data-view="edit"] .choice__opts { margin-top: .75rem; }
.choice__summary { grid-column: 1; grid-row: 2; min-width: 0; }
.choice__edit { grid-column: 2; grid-row: 1 / span 2; min-width: 5.25rem; padding-inline: .95rem; font-size: .9375rem; }
.choice[data-view="edit"] .choice__edit { grid-row: 1; }
.choice__edit[aria-expanded="true"] .choice__edit-more,
.choice__edit[aria-expanded="false"] .choice__edit-done { display: none; }
.choice__name { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.choice__meta { display: block; font-size: .875rem; line-height: 1.35; color: var(--ink-2); }
#bk-visit-sum .choice__meta { font-family: var(--mono); font-size: .8125rem; font-variant-numeric: tabular-nums; }
#bk-therapist-sum { display: flex; align-items: center; gap: .6rem; }
#bk-therapist-sum .opt__avatar { display: none; width: 2.25rem; height: 2.25rem; }
#bk-therapist-sum .opt__avatar.is-shown { display: block; }
.choice__who { min-width: 0; }
@container choices (width < 30rem) {
  /* phones: the avatar beside the legend and the name, as in a list; the specialisation is in the cards */
  #bk-therapist[data-view="summary"] { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .7rem; }
  #bk-therapist[data-view="summary"] .choice__legend { grid-column: 2; }
  #bk-therapist-sum, #bk-therapist-sum .choice__who { display: contents; }
  #bk-therapist-sum .opt__avatar { grid-column: 1; grid-row: 1 / span 2; width: 2.5rem; height: 2.5rem; }
  #bk-therapist-sum .choice__name { grid-column: 2; grid-row: 2; }
  #bk-therapist-sum .choice__meta { display: none; }
  #bk-therapist[data-view="summary"] .choice__edit { grid-column: 3; }
}
@container choices (min-width: 30rem) {   /* wide enough: legend | choice | «Zmień», as the match card's rows */
  .choice[data-view="summary"] { grid-template-columns: 8.5rem minmax(0, 1fr) auto; padding-block: .6rem; }
  .choice[data-view="summary"] .choice__summary { grid-column: 2; grid-row: 1; }
  .choice[data-view="summary"] .choice__legend { align-self: center; font-size: .9375rem; }
  .choice[data-view="summary"] .choice__edit { grid-column: 3; grid-row: 1; }
  .choice[data-view="edit"] { grid-template-columns: minmax(0, 1fr) auto; }
}

.opt { position: relative; display: block; min-width: 0; cursor: pointer; }   /* holds its hidden radio */
.opt__box {
  display: block; height: 100%; min-height: 44px;
  border: var(--line) solid var(--hair-strong); border-radius: 14px; background: transparent;
  line-height: 1.25;
}
.opt:hover .opt__box { border-color: var(--ink); }
.opt__input:focus-visible + .opt__box { outline: 2px solid var(--ink); outline-offset: 3px; }
.opt__input:checked + .opt__box { border-color: var(--accent); background: rgba(210, 100, 58, .09); }
.opt__name { font-weight: 560; }

/* the mark: an empty ring; chosen, an accent disc with a tick (the state is not colour alone) */
.opt__mark {
  flex: none; display: grid; place-items: center; width: 1.125rem; height: 1.125rem;
  border: var(--line) solid var(--hair-strong); border-radius: 50%;
}
.opt__mark svg { width: .875rem; height: .875rem; fill: none; stroke: var(--on-accent); stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.opt__mark path { vector-effect: non-scaling-stroke; }
.opt__input:checked + .opt__box .opt__mark { border-color: var(--accent); background: var(--accent); }
.opt__input:checked + .opt__box .opt__mark svg { visibility: visible; }

/* «Co boli»: the site's choice chip (see .chip) around a radio */
.opt--chip .opt__box { display: flex; height: auto; }
.opt--chip .opt__name { font-weight: inherit; }
.has-error .opt--chip .opt__box { border-color: var(--accent); }

/* «Rodzaj wizyty»: on phones a list, name left and «60 min · 220 zł» right; from 560 px two columns
   of cards, name and mark on top, the price line under them (so too in one column on 320 px phones,
   where the price beside a name would squeeze words like «Kinesiotaping») */
.opt--card .opt__box {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: .75rem;
  padding: .55rem .75rem .55rem .9rem;
}
.opt--card .opt__name { grid-column: 1; grid-row: 1; }
.opt--card .opt__foot { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.opt--card .opt__mark { grid-column: 3; grid-row: 1; }
@media (width < 360px), (min-width: 560px) {
  .opt--card .opt__box {
    grid-template-columns: minmax(0, 1fr) auto; align-items: start; align-content: start; column-gap: .6rem; row-gap: .25rem;
    padding: .6rem .75rem .65rem .9rem;
  }
  .opt--card .opt__mark { grid-column: 2; }
  .opt--card .opt__foot { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
}
@media (min-width: 560px) {
  .choice__opts--visits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.opt__meta { font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt__tag {
  padding: .05rem .5rem; border: var(--line) solid var(--sage); border-radius: 999px;
  font-size: .75rem; font-weight: 560; line-height: 1.3; color: var(--sage);
}

/* «Terapeuta»: the team portrait's head as an avatar, name and specialisation, the mark; a list on
   phones, three small cards side by side (like the team section) where the field is wide enough */
.opt--person .opt__box { display: flex; align-items: center; gap: .8rem; padding: .5rem .85rem .5rem .5rem; }
.opt__avatar { flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: var(--paper-2); }
.opt__who { flex: 1; min-width: 0; }
.opt__who .opt__name, .opt__spec { display: block; }
.opt__spec { margin-top: .1rem; font-size: .875rem; color: var(--ink-2); }
@container choices (min-width: 27rem) {
  .choice__opts--people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opt--person .opt__box { flex-wrap: wrap; align-items: flex-start; align-content: flex-start; row-gap: .5rem; padding: .55rem .7rem .7rem .75rem; }
  .opt--person .opt__who { order: 1; flex-basis: 100%; }
  .opt--person .opt__mark { margin-left: auto; }
}

/* week of slots */
.slots { margin-top: 1.9rem; }
.bform__choices:not(:has(.choice:not([data-view="summary"]))) + .slots { margin-top: 1.4rem; }
.slots__label { margin-bottom: .65rem; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .375rem; }
.day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  min-width: 0; min-height: 4.75rem; padding: .45rem .15rem;
  border: var(--line) solid var(--hair-strong); border-radius: 14px; background: transparent; cursor: pointer;
}
.day:hover:not(:disabled) { border-color: var(--ink); }
.day__name { font-size: .8125rem; line-height: 1.2; color: var(--ink-2); white-space: nowrap; }
.day__num { font-family: var(--mono); font-size: 1.3rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.day__free { display: inline-flex; align-items: center; gap: .28rem; font-family: var(--mono); font-size: .75rem; line-height: 1.2; color: var(--sage); }
.day__free::before { content: ""; width: .38rem; height: .38rem; border-radius: 50%; background: currentColor; }
.day__free.is-none { color: var(--ink-2); }
.day__free.is-none::before { display: none; }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day[aria-pressed="true"] .day__name,
.day[aria-pressed="true"] .day__free { color: var(--paper); }
.day:disabled { cursor: default; border-style: dashed; border-color: var(--hair); }
.day:disabled .day__num { color: var(--ink-2); }

/* The 7-day row on narrow phones: 3 px gaps keep each day at least 44 px wide down to 360 px; under 360 px
   the names drop a size so they stay inside the buttons (320 px: 38 px days). The panel tabs repeat this. */
@media (width < 380px) {
  .days { gap: 3px; }
  .day { padding-inline: 0; }
}
@media (width < 360px) {
  .day__name { font-size: .75rem; }
}

.times { margin-top: .75rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .375rem; }
.time {
  min-width: 0; min-height: 44px; padding: .35rem .2rem;
  border: var(--line) solid var(--hair-strong); border-radius: 999px; background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: .9375rem; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.time:hover:not(:disabled) { border-color: var(--ink); }
.time[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* taken: hatched like an occupied field on a drawing */
.time:disabled {
  cursor: default; border-color: var(--hair); color: var(--ink-2);
  background: repeating-linear-gradient(-45deg, transparent 0 5px, var(--hair) 5px 6.5px);
}
.time.is-mine { border: var(--line) dashed var(--accent); color: var(--ink); background: none; }
/* too soon to book (inside the 2 h lead): plain and faint, so today doesn't read as fully taken */
.time.is-soon { background: none; border-color: var(--hair); color: rgba(75, 87, 82, .72); }

.slots__msg { padding: 1rem 1.1rem; border: var(--line) dashed var(--hair-strong); border-radius: 14px; color: var(--ink-2); }
.slots__msg a { color: var(--ink); text-underline-offset: .2em; }
.slots__msg:focus { outline: 2px solid var(--ink); outline-offset: 3px; }   /* R7: submit moves focus here */
.slots__chosen { margin-top: .9rem; display: flex; align-items: baseline; gap: .5rem; font-size: .9375rem; }
.slots__chosen::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); transform: translateY(-.1em); }
.slots__chosen.is-empty { color: var(--ink-2); }
.slots__chosen.is-empty::before { background: transparent; box-shadow: inset 0 0 0 var(--line) var(--hair-strong); }

/* name + phone */
.bform__contact { margin-top: 1.9rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.field .bform__label { display: block; margin-bottom: .4rem; }
.input {
  display: flex; align-items: center; width: 100%; min-height: 48px; margin: 0; padding: .5rem .9rem;
  border: var(--line) solid var(--hair-strong); border-radius: 12px; background: transparent;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
}
.input:hover { border-color: var(--ink); }
input.input:focus-visible, .input--tel:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.input--tel { padding: 0 0 0 .9rem; cursor: text; }
.input__prefix { flex: none; padding-right: .6rem; margin-right: .6rem; border-right: var(--line) solid var(--hair); font-family: var(--mono); font-size: .9375rem; color: var(--ink-2); }
.input--tel input {
  flex: 1; min-width: 0; height: 45px; padding: 0 .9rem 0 0; border: 0; background: transparent;
  font: inherit; font-family: var(--mono); font-size: 1rem; color: var(--ink); letter-spacing: .02em;
}
.input--tel input:focus { outline: none; }

.has-error .input { border-color: var(--accent); }
.field-error { display: flex; align-items: baseline; gap: .5rem; margin-top: .45rem; font-size: .9375rem; line-height: 1.35; color: var(--ink); }
.field-error::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); transform: translateY(-.1em); }

.bform__submit { margin-top: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.bform__btn { min-height: 52px; padding-inline: 1.75rem; font-size: 1.0625rem; }
.bform__demo { font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); }

/* confirmation */
.booked { padding-top: 1.1rem; border-top: var(--line) solid var(--hair); }
.booked__title { display: flex; align-items: center; gap: .55rem; font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--sage); }
.booked__check { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; }
.booked__visit { margin-top: .8rem; font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.15rem); font-weight: 540; font-stretch: 88%; line-height: 1.08; letter-spacing: -.015em; }
.booked__when { margin-top: .55rem; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .9rem; row-gap: .15rem; }
.booked__time { font-family: var(--mono); font-size: 1.75rem; line-height: 1.15; letter-spacing: -.02em; }
.booked__date { color: var(--ink-2); }
.booked__rows { margin: 1.1rem 0 0; display: grid; grid-template-columns: minmax(6.5rem, auto) 1fr; }
.booked__rows dt, .booked__rows dd { padding-block: .7rem; border-top: var(--line) solid var(--hair); }
.booked__rows dt { font-size: .9375rem; color: var(--ink-2); padding-right: 1rem; }
.booked__rows dd { margin: 0; }
.booked__name { font-weight: 600; }
.booked__spec { display: block; font-size: .9375rem; color: var(--ink-2); }
.booked__meta { display: flex; gap: 1.1rem; font-family: var(--mono); font-size: .9375rem; }
.booked__note {
  margin-top: .4rem; padding: .75rem 1rem; border: var(--line) dashed var(--hair-strong); border-radius: 12px;
  font-size: .9375rem; color: var(--ink-2);
}
.booked .btn--line { margin-top: 1.25rem; }

/* the phone: drawn with the site's one line weight; after a booking, a quiet link to the owner's panel under it (P2) */
.phone-col { grid-area: phone; justify-self: center; width: min(100%, 19.5rem); }
.phone { margin: 0; }
.phone-col__more { margin-top: 1.1rem; padding-top: .9rem; border-top: var(--line) solid var(--hair); text-align: center; text-wrap: balance; }
.phone-col__link {   /* inline, so on a narrow phone the arrow follows the last word; 44 px tall on one line */
  display: inline-block; padding-block: .65rem; line-height: 1.4;
  font-weight: 600; text-underline-offset: .2em; text-decoration-thickness: 1px;
}
.phone-col__arrow {
  display: inline-block; width: 1rem; height: 1rem; margin-left: .4rem; vertical-align: -.15em;
  fill: none; stroke: currentColor; stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round;
}
.phone__body {
  position: relative; aspect-ratio: 71.5 / 147; padding: .55rem;
  border: var(--line) solid var(--ink); border-radius: 3rem; background: var(--paper);
}
.phone__key { position: absolute; width: 3px; background: var(--ink); }
.phone__key--a { left: -4px; top: 16%; height: 4%; border-radius: 2px 0 0 2px; }
.phone__key--b { left: -4px; top: 23%; height: 8%; border-radius: 2px 0 0 2px; }
.phone__key--c { right: -4px; top: 26%; height: 11%; border-radius: 0 2px 2px 0; }
.phone__screen {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border: var(--line) solid var(--hair); border-radius: 2.5rem; background: #FBF9F5;
}
.phone__screen::after {   /* home indicator */
  content: ""; position: absolute; left: 50%; bottom: .45rem; width: 6.5rem; height: 4px; margin-left: -3.25rem;
  border-radius: 2px; background: var(--ink);
}
.phone__status {
  position: relative; flex: none; display: flex; align-items: center; justify-content: space-between;
  height: 2.75rem; padding: .3rem 1.35rem 0 1.7rem;
  font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.phone__island { position: absolute; left: 50%; top: .6rem; width: 5.4rem; height: 1.5rem; margin-left: -2.7rem; border-radius: 999px; background: var(--ink); }
.phone__icons { width: 3.4rem; height: .76rem; overflow: visible; fill: none; stroke: currentColor; stroke-width: var(--line); stroke-linecap: round; }
.phone__icons path, .phone__icons rect { vector-effect: non-scaling-stroke; }
.phone__icons circle, .phone__icons .phone__battery { fill: currentColor; stroke: none; }

.phone__head { flex: none; display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem .75rem .7rem; border-bottom: var(--line) solid var(--hair); }
.phone__back { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: currentColor; stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; }
.phone__avatar { width: 2.25rem; height: 2.25rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); }
.phone__avatar .logo__ring { width: 1.4rem; height: 1.4rem; }
.phone__avatar .logo__ring .seg { fill: var(--paper); animation: none; }
.phone__who { display: flex; flex-direction: column; line-height: 1.2; }
.phone__name { font-weight: 640; font-size: .9375rem; letter-spacing: .12em; }
.phone__via { font-size: .75rem; color: var(--ink-2); }

.phone__thread { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .5rem; padding: .9rem .75rem; overflow: hidden; }
.sms__idle { margin: .2rem .9rem .5rem; text-align: center; font-size: .8125rem; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
/* idle (N6): an empty thread, the note in the middle under a drawn message icon (no wireframe placeholders) */
.phone[data-state="idle"] .phone__thread { justify-content: center; padding-bottom: 3.5rem; }
.sms__idle-icon { align-self: center; width: 2.5rem; height: 2.5rem; fill: none; stroke: var(--ink-2); stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; }
.sms__idle-icon path { vector-effect: non-scaling-stroke; }
.sms__idle-icon circle { fill: var(--ink-2); stroke: none; }
.phone[data-state="booked"] .sms__idle,
.phone[data-state="booked"] .sms__idle-icon { display: none; }
.sms__stamp { align-self: center; margin-top: .3rem; font-size: .75rem; color: var(--ink-2); }
.sms__bubble {
  align-self: flex-start; max-width: 88%; padding: .6rem .8rem;
  border-radius: 1.15rem 1.15rem 1.15rem .35rem; background: var(--paper-2);
  font-size: .875rem; line-height: 1.42; overflow-wrap: anywhere;
}
.sms__group { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.sms__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.sms__chip { padding: .3rem .85rem; border: var(--line) solid var(--sage); border-radius: 999px; font-size: .8125rem; font-weight: 600; color: var(--sage); }

.phone__compose { flex: none; display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem 1.35rem; }
.phone__field { flex: 1; padding: .42rem .85rem; border: var(--line) solid var(--hair); border-radius: 999px; font-size: .8125rem; color: var(--ink-2); }
.phone__send { width: 1.65rem; height: 1.65rem; flex: none; fill: none; stroke: var(--ink-2); stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; }
.phone__send * { vector-effect: non-scaling-stroke; }
.phone__caption { margin-top: .9rem; text-align: center; font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); }

/* exercises after the visit: QR on wide screens, a link button on phones */
.after {
  grid-area: after; align-self: start; display: flex; align-items: center; gap: 1.4rem;
  padding: 1.1rem 1.25rem; border: var(--line) solid var(--hair-strong); border-radius: 18px;
}
.after__qr { flex: none; width: 9.5rem; }
.after__qr:empty { display: none; }
.qr { width: 100%; height: auto; }
.qr__bg { fill: #FBF9F5; }
.qr__dots { fill: var(--ink); }
.after__title { font-size: 1.1875rem; font-weight: 600; line-height: 1.25; }
.after__text { margin-top: .35rem; font-size: .9375rem; color: var(--ink-2); text-wrap: pretty; }
.after__link { margin-top: 1rem; }
.after__scan { margin-top: .6rem; font-size: .9375rem; }
.after__arrow { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; }
.after__url { display: inline-block; margin-top: .7rem; font-family: var(--mono); font-size: .8125rem; color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }

@media (min-width: 560px) {
  .times { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bform__contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .after__qr, .after__url, .after__scan { display: none; }
}
@media (min-width: 900px) {
  .after__link { display: none; }
}
@media (max-width: 959px) {
  .phone-col { width: min(100%, 18rem); }
  .phone-col:has(.phone[data-state="idle"]) { display: none; }
}
@media (min-width: 960px) {
  .booking__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "head phone" "main phone" "after phone";
    column-gap: clamp(2.5rem, 6vw, 6rem);
    row-gap: 2.5rem;
  }
  .booking__main { max-width: 40rem; }
  .after { max-width: 40rem; }
  .phone-col { position: sticky; top: 1.5rem; align-self: start; width: min(100%, 20rem); margin-top: .35rem; }
}

/* ---------- sections after the booking: shared head ---------- */
.sec { padding-block: clamp(2rem, 3.5vw, 3.5rem) clamp(3.5rem, 8vw, 6.5rem); }
.sec__inner { position: relative; padding-top: 1.4rem; }
.sec__inner::before {   /* the section rule, gutter to gutter, as above the booking */
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  border-top: var(--line) solid var(--ink);
}
.sec__title {
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.25rem); font-weight: 520; font-stretch: 82%;
  line-height: .95; letter-spacing: -.025em;
}
.sec__lede { margin-top: .9rem; max-width: 34rem; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); text-wrap: pretty; }

/* line drawings (process, team): one line weight however they are scaled */
.art-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.art { display: block; overflow: hidden; }
.art path, .art rect, .art circle, .art ellipse, .pt path, .pt circle, .pt ellipse { vector-effect: non-scaling-stroke; }
.art .fig, .art .pf, .pt .pf { fill: var(--paper); stroke: var(--ink); stroke-width: var(--line); stroke-linejoin: round; stroke-linecap: round; }
.art .fig--open { fill: none; }
.art .pl, .pt .pl { fill: none; stroke: var(--ink); stroke-width: var(--line); stroke-linejoin: round; stroke-linecap: round; }
.art .m, .pt .m { fill: none; stroke: var(--ink); stroke-opacity: .28; stroke-width: var(--line); stroke-linecap: round; }
.art .pd, .art .qr-d, .pt .pd { fill: var(--ink); }
.art .pdisc, .pt .pdisc { fill: var(--paper-2); }
.art .ghost { fill: none; stroke: var(--ink); stroke-opacity: .6; stroke-width: var(--line); stroke-dasharray: 4 5; stroke-linecap: round; }
.art .arc, .art .tick { fill: none; stroke: var(--accent); stroke-width: var(--line); }
.art .joint { fill: var(--sage); }
.art .end, .art .dot { fill: var(--accent); }
.art .spine-line { fill: none; stroke: var(--ink); stroke-opacity: .32; stroke-width: var(--line); }
.art .vert { fill: none; stroke: var(--ink); stroke-opacity: .55; stroke-width: var(--line); stroke-linecap: round; }
.art .tape { fill: var(--accent); fill-opacity: .17; stroke: var(--accent); stroke-width: var(--line); }
.art .ph { fill: var(--paper); stroke: var(--ink); stroke-width: var(--line); }
.art .ph-screen { fill: #FBF9F5; stroke: var(--hair); stroke-width: var(--line); }
.art .ph-bar { stroke: var(--ink); stroke-width: var(--line); stroke-linecap: round; }
.art .ph-line { stroke: var(--ink); stroke-opacity: .28; stroke-width: var(--line); stroke-linecap: round; }
.art .qr-f { fill: none; stroke: var(--ink); stroke-width: var(--line); }

/* ---------- how a visit works: three steps on one rail ---------- */
.steps {
  --steps-gap: clamp(1.5rem, 3.5vw, 3.5rem);
  list-style: none; margin: clamp(2.25rem, 4vw, 3.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 3rem;
}
.step-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
/* dimension line over the steps it spans: |—— label ——| */
.step-card__span {
  display: flex; align-items: center; gap: .7rem; margin-bottom: 1.25rem;
  font-family: var(--mono); font-size: .8125rem; line-height: 1.3; color: var(--ink-2); white-space: nowrap;
}
.step-card__span::before, .step-card__span::after {
  content: ""; flex: 1; height: .6rem;
  background: linear-gradient(var(--hair-strong), var(--hair-strong)) 0 50% / 100% var(--line) no-repeat;
}
.step-card__span::before { border-left: var(--line) solid var(--hair-strong); }
.step-card__span::after { border-right: var(--line) solid var(--hair-strong); }
.step-card__art { width: 10rem; height: 10rem; margin-left: -.5rem; }
.step-card__num {
  position: relative; margin-top: 1.4rem; padding: .85rem 0 0 1.15rem;
  border-top: var(--line) solid var(--hair-strong);
  font-family: var(--mono); font-size: .875rem; line-height: 1.2; color: var(--ink-2);
}
.step-card__num::before {   /* the step's node on the rail */
  content: ""; position: absolute; left: 0; top: calc(-.3rem - var(--line) / 2);
  width: .6rem; height: .6rem; border-radius: 50%; background: var(--ink);
}
.step-card__title { margin-top: .55rem; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); font-weight: 560; font-stretch: 90%; line-height: 1.15; letter-spacing: -.01em; }
.step-card__text { margin-top: .5rem; max-width: 26rem; color: var(--ink-2); text-wrap: pretty; }

/* ---------- team ---------- */
.team__list {
  list-style: none; margin: clamp(2.25rem, 4vw, 3.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 3.5rem;
}
.tcard { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.tcard__portrait { width: min(100%, 16.5rem); height: auto; margin-left: -.75rem; }
.tcard__name { margin-top: .9rem; font-size: clamp(1.5rem, 1.25rem + .9vw, 1.875rem); font-weight: 560; font-stretch: 90%; line-height: 1.1; letter-spacing: -.01em; }
.tcard__spec { margin-top: .3rem; color: var(--ink-2); }
.tcard__zones {
  align-self: stretch; display: flex; align-items: flex-start; gap: 1rem;
  margin: 1.15rem 0 1.5rem; padding-top: 1rem; border-top: var(--line) solid var(--hair);
}
.tcard__mini { flex: none; width: auto; height: 5.75rem; }
.tcard__label { font-size: .875rem; color: var(--ink-2); }
.tcard__zone-list { list-style: none; margin: .35rem 0 0; padding: 0; }
.tcard__zone-list li { display: flex; align-items: baseline; gap: .55rem; line-height: 1.45; }
.tcard__zone-list li::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); transform: translateY(-.1em); }
.tcard__btn { margin-top: auto; }

/* ---------- prices ---------- */
.prices__grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
.prices__cta { justify-self: start; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: .95rem 0; border-bottom: var(--line) solid var(--hair); text-align: left; font-weight: 400; vertical-align: baseline; }
.ptable thead th { padding-block: 0 .6rem; border-bottom-color: var(--hair-strong); font-size: .875rem; color: var(--ink-2); }
.ptable tbody th { padding-right: 1rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 560; line-height: 1.3; }
.ptable .ptable__num { text-align: right; white-space: nowrap; }
.ptable td.ptable__num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ptable .ptable__num:not(:last-child) { padding-right: clamp(1rem, 4vw, 2.75rem); }
.ptable__min { color: var(--ink-2); font-size: .9375rem; }
.ptable__price { font-size: 1.125rem; }
.prices__note { margin-top: 1.1rem; display: flex; align-items: baseline; gap: .55rem; }
.prices__note::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sage); transform: translateY(-.1em); }

/* ---------- contact + FAQ ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
.contact__place { margin-top: 1.5rem; font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.15rem); font-weight: 540; font-stretch: 88%; line-height: 1.08; letter-spacing: -.015em; }
.contact__place-note { margin-top: .35rem; font-size: .9375rem; color: var(--ink-2); }
.contact__rows { margin: 1.4rem 0 0; display: grid; grid-template-columns: minmax(6.5rem, auto) 1fr; border-bottom: var(--line) solid var(--hair); }
.contact__rows dt, .contact__rows dd { padding-block: .8rem; border-top: var(--line) solid var(--hair); }
.contact__rows dt { padding-right: 1rem; font-size: .9375rem; color: var(--ink-2); }
.contact__rows dd { margin: 0; }
.hours { list-style: none; margin: 0; padding: 0; display: grid; row-gap: .2rem; }
.hours__row { display: grid; grid-template-columns: 5.75rem auto; column-gap: .75rem; }
.hours__time { font-family: var(--mono); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.hours__row.is-closed .hours__time { font-family: var(--font); font-size: 1rem; color: var(--ink-2); }
.contact__phone { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .7rem; }
.contact__num { font-family: var(--mono); font-size: .9375rem; }
.tag { display: inline-block; padding: .1rem .55rem; border: var(--line) dashed var(--hair-strong); border-radius: 999px; font-size: .8125rem; line-height: 1.3; color: var(--ink-2); }
.contact__cta { margin-top: 1.75rem; }

.faq__title { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); font-weight: 560; font-stretch: 90%; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 1rem; }
.faq__item { border-top: var(--line) solid var(--hair); }
.faq__item:last-of-type { border-bottom: var(--line) solid var(--hair); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.75rem; padding-block: .85rem; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 560; line-height: 1.3;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:focus-visible { outline-offset: 2px; }
.faq__icon { flex: none; width: 1.75rem; height: 1.75rem; fill: none; stroke-width: var(--line); stroke-linecap: round; }
.faq__icon circle { stroke: var(--hair-strong); }
.faq__icon path { stroke: var(--ink); transform-box: fill-box; transform-origin: 50% 50%; }
.faq__q:hover .faq__icon circle { stroke: var(--ink); }
.faq__item[open] .faq__v { transform: scaleY(0); }
.faq__a { max-width: 36rem; padding: 0 2.75rem 1.2rem 0; color: var(--ink-2); text-wrap: pretty; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); border-top: var(--line) solid var(--hair); padding-block: 2.5rem 3rem; font-size: .9375rem; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
.site-footer__logo { margin: 0; }
.site-footer__logo .logo__word { display: inline; }
.site-footer .logo__ring .seg { animation: none; }
.site-footer__note { margin-top: .9rem; max-width: 30rem; color: var(--ink-2); }
.site-footer__panel-link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  font-weight: 600; font-size: 1.0625rem; text-underline-offset: .2em; text-decoration-thickness: 1px;
}
.site-footer__arrow { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; }
.site-footer__panel-note { color: var(--ink-2); }
.site-footer__ctrl a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .2em; text-decoration-thickness: 1px; }

@media (max-width: 719px) {
  /* phones: the drawing beside its step, so three steps fit in about two screens */
  .step-card { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 1.1rem; align-items: start; }
  /* one column: the dimension line can't span two steps, so it becomes a plain label over the group */
  .step-card__span { grid-column: 1 / -1; color: var(--ink); }
  .step-card__span::before, .step-card__span::after { display: none; }
  .step-card__art { grid-row: span 3; width: 7.5rem; height: 7.5rem; margin: 0; }
  .step-card__num { margin-top: .4rem; }
  .step-card__title { margin-top: .45rem; }
}
@media (max-width: 479px) {
  /* N4: narrow phones: a smaller drawing beside the number and title, the text under both at full width
     (beside a 7.5rem drawing it ran ~22 characters a line) */
  .step-card { grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1rem; }
  .step-card__art { grid-row: span 2; width: 5.5rem; height: 5.5rem; align-self: center; }
  .step-card__text { grid-column: 1 / -1; margin-top: .85rem; }
}
@media (max-width: 719px) {   /* N3: one card per row on phones only; tablets get the three side by side */
  .tcard { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 1rem; }
  .tcard__portrait { grid-row: 1 / span 2; width: 100%; margin-left: -.5rem; align-self: center; }
  .tcard__name { align-self: end; margin-top: 0; }
  .tcard__spec { align-self: start; }
  .tcard__zones, .tcard__btn { grid-column: 1 / -1; }
  .tcard__zones { margin-top: .75rem; }
  .tcard__btn { justify-self: start; }
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--steps-gap); }
  .step-card { padding-top: 2.6rem; }
  .step-card__span { position: absolute; top: 0; left: 0; width: 100%; margin: 0; }
  .step-card__span--visit { width: calc(200% + var(--steps-gap)); }
  .step-card__art { width: 12.5rem; height: 12.5rem; }
  .step-card:not(:last-child) .step-card__num { margin-right: calc(-1 * var(--steps-gap)); }   /* one rail through all steps */
  .step-card__text { padding-right: 1rem; }
}
@media (min-width: 720px) {
  .team__list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3.5vw, 3.5rem); row-gap: 0; }
  /* the three cards share their rows: names, zone figures and buttons line up even when a specialisation wraps */
  .tcard { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; justify-items: start; }
  .tcard__zones { justify-self: stretch; }
  .tcard__btn { align-self: end; }
}
@media (min-width: 800px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; column-gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: clamp(2.5rem, 6vw, 6rem); }
  .faq { padding-top: .5rem; }
}
@media (min-width: 960px) {
  .prices__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
    grid-template-areas: "head body" "cta body"; column-gap: clamp(2.5rem, 6vw, 6rem); row-gap: 1.75rem;
  }
  .prices__grid > .sec__head { grid-area: head; }
  .prices__body { grid-area: body; }
  .prices__cta { grid-area: cta; align-self: start; }
  .prices__body { padding-top: .6rem; }
}

/* ---------- layout breakpoints ---------- */
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro plate" "panel plate";
    column-gap: clamp(2.5rem, 6vw, 6rem);
    row-gap: 2.25rem;
  }
  .plate { align-self: start; position: sticky; top: 1rem; }
  .plate__stage, .plate__caption { width: min(100%, calc(min(72svh, 44rem) * 400 / 660)); }
  .hero__panel { max-width: 36rem; }
}
@media (max-width: 819px) {
  .menu-btn { display: inline-flex; }
  /* the nav becomes a panel under the header row; it overlays content, so nothing shifts */
  .nav {
    display: none; position: absolute; z-index: 20;
    top: calc(100% - .35rem); left: calc(var(--gutter) - .5rem); right: calc(var(--gutter) - .5rem);
    padding: .4rem; background: var(--paper);
    border: var(--line) solid var(--hair-strong); border-radius: 14px;
  }
  .site-header[data-menu="open"] .nav { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li + li { border-top: var(--line) solid var(--hair); }
  .nav__list a {
    display: flex; align-items: center; min-height: 48px; padding: 0 .85rem;
    font-size: 1.125rem; border-radius: 9px; background: none;
  }
  .nav__list a:hover { background: var(--paper-2); }
}
@media (max-width: 479px) {
  .site-header__row { gap: .5rem; }
  .site-header__cta { padding-inline: .85rem; }
}
@media (max-width: 429px) {
  .logo__word { display: none; }   /* ring alone (it carries the aria-label) keeps PL/EN, CTA and menu on one row */
}
@media (min-width: 430px) {
  .hero__brand { display: none; }   /* the header shows the wordmark */
}
@media (max-width: 429px) {   /* phones: «KRĘG · Fizjoterapia» on the first line, the place under it, never a «·» at a line end */
  .hero__sep { display: none; }
  .hero__place { display: block; text-indent: 0; }
}
@media (width < 375px) {   /* 320–374 px phones: the CTA keeps its first word («Umów» / «Book») so the 44 px PL/EN and
                              menu buttons fit; its aria-label keeps the whole phrase, which starts with that word (label in name) */
  .site-header__cta-more { display: none; }
}
@media (max-width: 959px) {
  .hero__title { max-width: none; }
}

/* ========== exercises page (cwiczenia.html) ==========
   Kept in this file: the page shares the header, footer, chips, buttons and tokens,
   and this section adds about 5 KB, less than a second request would cost. */
.expage {
  padding-block: clamp(1.75rem, 4vw, 3.25rem) clamp(3.5rem, 8vw, 6.5rem);
  min-height: 100vh; min-height: 100svh;   /* the set is drawn by JS: keep the footer below the fold meanwhile (no layout shift) */
}
.ex-head { max-width: 42rem; }
.ex-kicker { display: flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .8125rem; line-height: 1.3; color: var(--ink-2); }
.ex-kicker::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
.ex-title {
  margin-top: .75rem; font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.25rem); font-weight: 520; font-stretch: 82%;
  line-height: .98; letter-spacing: -.025em; text-wrap: balance;
}
.ex-title:focus { outline: none; }   /* focused only to move screen readers to the new set */
.ex-lede { margin-top: 1rem; max-width: 34rem; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); text-wrap: pretty; }
.ex-pick { margin-top: 1.75rem; max-width: 42rem; }
/* N5 + P5: without a zone the page shows the front figure on its plate. On phones it is a quiet drawing under
   the chips (the chips are the control); from 720 px it sits beside them, larger, and each zone's dots are a
   link doing what its chip does: hover or focus lights the dots and the caption names the zone. */
.ex-pick__plate { margin: 2.5rem 0 0; }
.ex-pick__fig { display: block; width: auto; height: clamp(16rem, 70vw, 20rem); margin-inline: auto; }
.ex-pick__cap { display: none; }
.art .spot { fill: var(--sage); }
.pick { display: none; cursor: pointer; outline: none; }
.pick__hit { fill: transparent; }
.art .pick__dot { fill: var(--sage); }
.art .pick__ring { fill: none; stroke: var(--sage); stroke-width: var(--line); stroke-opacity: .5; }
.pick:hover .pick__dot, .pick:focus-visible .pick__dot { fill: var(--accent); }
.pick:hover .pick__ring, .pick:focus-visible .pick__ring { stroke: var(--accent); stroke-opacity: 1; }
.pick:focus-visible .pick__hit { stroke: var(--ink); stroke-width: var(--line); stroke-dasharray: 3 3; }
@media (min-width: 720px) {
  .expage > .wrap:has(> #ex-pick:not([hidden])) {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; grid-template-areas: "head fig" "pick fig";
    column-gap: clamp(2rem, 6vw, 6rem); align-items: start;
  }
  .expage .ex-head { grid-area: head; }
  .expage .ex-pick { display: contents; }
  .ex-pick .chips { grid-area: pick; margin-top: 1.75rem; max-width: 42rem; }
  .ex-pick__plate { grid-area: fig; margin: 0; }
  /* 30.5rem tall: a 30-unit hit circle is at least 44 px across */
  .ex-pick__fig { height: clamp(30.5rem, 40vw, 37rem); }
  .ex-pick__fig .pick-static { display: none; }
  .ex-pick__fig .pick { display: inline; }
  .ex-pick__cap {
    display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; margin-top: .5rem; padding-top: .6rem;
    border-top: var(--line) solid var(--hair); font-size: .9375rem; color: var(--ink-2);
  }
  .ex-pick__cap.is-zone { color: var(--ink); font-weight: 560; }
  .ex-pick__cap.is-zone::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
}
.ex-notes { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.1rem; }
.ex-sample {
  display: inline-block; padding: .2rem .7rem; border: var(--line) dashed var(--hair-strong); border-radius: 999px;
  font-family: var(--mono); font-size: .875rem; line-height: 1.35; color: var(--ink);
}
.ex-stop { display: flex; align-items: baseline; gap: .55rem; font-size: 1rem; }
.ex-stop::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sage); transform: translateY(-.1em); }
.ex-art-error { margin-top: 1.25rem; color: var(--ink-2); }

.ex-list {
  list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 3rem; column-gap: clamp(1.5rem, 3.5vw, 3.5rem);
}
.ex-card { display: flex; flex-direction: column; min-width: 0; }
.ex-card__art { position: relative; aspect-ratio: 4 / 3; }
.no-art .ex-card__art { display: none; }
.ex-card__art .ex-art { height: 100%; }
/* the card's node on a rail, as the steps on the main page; the pause button sits on it */
.ex-card__rail {
  position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  margin-top: .9rem; border-top: var(--line) solid var(--hair-strong);
}
.ex-card__rail::before {
  content: ""; position: absolute; left: 0; top: calc(-.3rem - var(--line) / 2);
  width: .6rem; height: .6rem; border-radius: 50%; background: var(--ink);
}
.ex-card__num { padding: .85rem 0 0 1.15rem; font-family: var(--mono); font-size: .875rem; line-height: 1.2; color: var(--ink-2); }
.ex-card__title { margin-top: .5rem; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); font-weight: 560; font-stretch: 90%; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.ex-card__reps { margin-top: .35rem; font-size: 1rem; color: var(--ink-2); }

/* counter / hold timer */
/* at the bottom of the card, so the counters of a row line up */
.ex-ctl { margin-top: auto; padding-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.ex-ctl__value { min-width: 4.6ch; font-family: var(--mono); font-size: 1.875rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ex-ctl__of { color: var(--ink-2); font-size: 1.125rem; letter-spacing: 0; }
.ex-ctl__main { min-width: 5.75rem; font-size: 1.0625rem; }
.ex-ctl__main[aria-disabled="true"],
.ex-ctl__main[aria-disabled="true"]:hover { background: transparent; border-color: var(--hair-strong); color: var(--ink-2); cursor: default; transform: none; }
.ex-ctl__reset { min-width: 0; }
.ex-ctl__done { display: inline-flex; align-items: center; gap: .4rem; font-size: .9375rem; color: var(--sage); font-weight: 560; }
.ex-ctl__done svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; }
.ex-card.is-done .ex-ctl__value { color: var(--sage); }
.ex-ctl__bar {
  flex: 1 0 100%; height: 3px; border-radius: 2px;
  background: var(--hair) linear-gradient(var(--accent), var(--accent)) 0 0 / calc(var(--p, 0) * 100%) 100% no-repeat;
}

/* pause for each drawing, on the card's rail (reduced motion: no animation, no button) */
.ex-pause {
  flex: none; margin-top: -22px; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: var(--line) solid var(--hair-strong); border-radius: 50%;
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.ex-pause:hover { border-color: var(--ink); }
.ex-pause svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; }
.ex-pause__play { display: none; }
.ex-pause[aria-pressed="true"] .ex-pause__bars { display: none; }
.ex-pause[aria-pressed="true"] .ex-pause__play { display: inline; }

.ex-after { margin-top: clamp(2.75rem, 6vw, 4rem); }

@media (min-width: 720px) {
  .ex-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .ex-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .ex-pause { display: none; }
}

/* drawings from tools/figure/exercises.py: each layer is used twice, a wide ink stroke
   under a paper fill, so overlapping parts read as one outline at --line */
.ex-art { display: block; width: 100%; height: auto; overflow: hidden; }
.ex-art .ex-f { opacity: 0; }
.ex-art .ex-f.is-on { opacity: 1; }
.ex-art .o { fill: none; stroke: var(--ink); stroke-width: calc(var(--line) * 2); stroke-linejoin: round; }
.ex-art .p { fill: var(--paper); stroke: none; }
.ex-art .p.far { fill: #E4DDD0; }   /* limbs behind the body: one step darker than --paper-2 */
.ex-art .m { fill: none; stroke: var(--ink); stroke-opacity: .28; stroke-width: var(--line); stroke-linecap: round; }
.ex-art .zf { fill: var(--accent); fill-opacity: .17; stroke: var(--accent); stroke-width: var(--line); }
.ex-art .ar { fill: none; stroke: var(--accent); stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; }
.ex-art .gr { fill: none; stroke: var(--ink); stroke-opacity: .42; stroke-width: var(--line); stroke-linecap: round; }
.ex-art .prop { fill: var(--paper); stroke: var(--ink); stroke-opacity: .6; stroke-width: var(--line); }
.ex-art .band { fill: none; stroke: var(--accent); stroke-width: var(--line); stroke-linecap: round; }
.ex-art .ex-plate { fill: var(--paper-2); }

/* ========== owner panel (panel.html) ==========
   Kept in this file for the same reason as the exercises page: it shares the header, footer,
   tags, kicker and tokens, and this section adds about 13 KB (3 KB compressed), less than a second request. */
.ppage {
  --screen: #FBF9F5;    /* the app surface, as the phone screen on the main page */
  --on-accent-line: rgba(19, 27, 24, .35);
  padding-block: clamp(1.75rem, 4vw, 3.25rem) clamp(3.5rem, 8vw, 6.5rem);
  min-height: 100vh; min-height: 100svh;   /* the schedule is drawn by JS: keep the footer below the fold meanwhile */
}

/* header: a way back instead of the section links */
.back-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-size: .9875rem; text-decoration: none; }
.back-link:hover span { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.back-link__arrow, .p-arrow { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; }

/* head */
.p-head { max-width: 46rem; }
.p-title {
  margin-top: .75rem; font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.25rem); font-weight: 520; font-stretch: 82%;
  line-height: .98; letter-spacing: -.025em; text-wrap: balance;
}
.p-lede { margin-top: 1rem; max-width: 36rem; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); text-wrap: pretty; }
.p-hint { margin-top: 1.25rem; max-width: 36rem; padding: .75rem 1rem; border: var(--line) dashed var(--hair-strong); border-radius: 12px; font-size: .9375rem; color: var(--ink-2); }
.p-hint__link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--ink); font-weight: 600; text-underline-offset: .2em; text-decoration-thickness: 1px; white-space: nowrap; }
.p-hint--new { padding: 0; border: 0; }
.p-hint--new .p-hint__link {
  min-height: 44px; padding: .55rem 1.15rem; border: var(--line) solid var(--hair-strong); border-radius: 999px; text-decoration: none;
}
.p-hint--new .p-hint__link:hover { border-color: var(--ink); }

/* layout: the schedule, then the numbers (DOM order = reading order); on wide screens the numbers sit beside it */
.p-layout { margin-top: clamp(2.25rem, 4vw, 3.25rem); display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
.p-stats, .p-sched { min-width: 0; }
.p-sec-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding-top: 1rem; margin-bottom: 1.25rem; border-top: var(--line) solid var(--ink);
}
.p-h2 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); font-weight: 560; font-stretch: 90%; line-height: 1.15; letter-spacing: -.01em; }
.legend { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; list-style: none; margin: 0; padding: 0; font-size: .875rem; color: var(--ink-2); }
.legend__item { display: inline-flex; align-items: center; gap: .45rem; }
.legend__item::before { content: ""; flex: none; width: 1rem; height: .7rem; border-radius: 3px; }
.legend__item--visit::before { background: var(--paper-2); box-shadow: inset 0 0 0 var(--line) var(--hair-strong); }
.legend__item--web::before { width: .5rem; height: .5rem; border-radius: 50%; background: var(--sage); }
.legend__item--new::before { background: var(--accent); }

/* tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.tile {
  display: flex; flex-direction: column; min-width: 0;
  padding: 1.1rem 1.2rem 1rem; border: var(--line) solid var(--hair-strong); border-radius: 18px;
}
.tile__label { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.tile__value { margin-top: .55rem; font-family: var(--mono); font-size: 2.125rem; line-height: 1.05; letter-spacing: -.03em; word-spacing: -.4em; font-variant-numeric: tabular-nums; }
.tile__note { margin-top: .4rem; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.tile__arrow { margin-inline: .45em .1em; }
.tile__yours { margin-top: .4rem; display: flex; align-items: baseline; gap: .5rem; font-size: .9375rem; line-height: 1.4; }
.tile__yours::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); transform: translateY(-.1em); }
.tile__foot { margin-top: auto; padding-top: 1rem; font-family: var(--mono); font-size: .75rem; line-height: 1.3; color: var(--ink-2); }

/* occupancy per day: capacity (Saturday is short, Sunday closed) and the taken part */
.lbars { min-height: 4.35rem; list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.lbar { display: flex; flex-direction: column; align-items: center; gap: .35rem; min-width: 0; }
.lbar__col { width: 100%; height: 3.25rem; display: flex; align-items: flex-end; justify-content: center; border-bottom: var(--line) solid var(--hair-strong); }
.lbar__room { display: flex; align-items: flex-end; width: 100%; max-width: 1.5rem; border-radius: 4px 4px 0 0; background: var(--sage-soft); }
.lbar__fill { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--sage); }
.lbar.is-selected .lbar__fill { background: var(--ink); }
.lbar__day { font-family: var(--mono); font-size: .6875rem; line-height: 1; color: var(--ink-2); white-space: nowrap; }
.lbar.is-selected .lbar__day { color: var(--ink); }

/* no-shows before and after reminders, on a 0–20 % scale */
.nsbars { margin-top: 1.1rem; display: grid; gap: .6rem; }
.nsbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label num" "track track"; gap: .25rem .75rem; font-size: .875rem; line-height: 1.3; color: var(--ink-2); }
.nsbar__label { grid-area: label; }
.nsbar__num { grid-area: num; font-family: var(--mono); color: var(--ink); word-spacing: -.3em; }
.nsbar__track { grid-area: track; display: block; height: 6px; border-radius: 3px; background: var(--hair); }
.nsbar__fill { display: block; height: 100%; border-radius: 3px; }
.nsbar__fill--before { width: 70%; background: var(--ink-2); }
.nsbar__fill--after { width: 20%; background: var(--sage); }

/* the latest night-time bookings */
.nlist { min-height: 5.15rem; list-style: none; margin: 1rem 0 0; padding: .75rem 0 0; border-top: var(--line) solid var(--hair); display: grid; gap: .3rem; font-size: .875rem; line-height: 1.35; }
.nlist__item { display: flex; align-items: baseline; gap: .5rem; }
.nlist__item::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--sage); transform: translateY(-.1em); }
.nlist__item.is-mine::before { background: var(--accent); }

/* day tabs, drawn like the booking week on the main page */
.ptabs { min-height: 4.75rem; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .375rem; }
.ptab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  min-width: 0; min-height: 4.75rem; padding: .45rem .15rem;
  border: var(--line) solid var(--hair-strong); border-radius: 14px; background: transparent; cursor: pointer;
}
.ptab:hover { border-color: var(--ink); }
.ptab__name { font-size: .8125rem; line-height: 1.2; color: var(--ink-2); white-space: nowrap; }
.ptab__num { font-family: var(--mono); font-size: 1.3rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ptab__count { font-family: var(--mono); font-size: .75rem; line-height: 1.2; color: var(--ink-2); white-space: nowrap; }
.ptab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ptab[aria-selected="true"] .ptab__name,
.ptab[aria-selected="true"] .ptab__count { color: var(--paper); }
.ptab.is-closed { border-style: dashed; }
.ptab.is-closed:not([aria-selected="true"]) .ptab__num { color: var(--ink-2); }
.ptab.has-new::after {   /* a badge on the top edge: the viewer's booking is on this day */
  content: ""; position: absolute; top: -.35rem; left: 50%; width: .7rem; height: .7rem; margin-left: -.35rem;
  border: 2px solid var(--paper); border-radius: 50%; background: var(--accent);
}

@media (width < 380px) {   /* same as the booking days: >= 44 px wide at 360 px, names inside at 320 px */
  .ptabs { gap: 3px; }
  .ptab { padding-inline: 0; }
}
@media (width < 360px) {
  .ptab__name { font-size: .75rem; }
}

.p-day { margin-top: 1.4rem; }
.p-day:focus-visible { outline-offset: 6px; }
.p-day__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .85rem; }
.p-day__title { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.p-day__sum { font-family: var(--mono); font-size: .875rem; color: var(--ink-2); }
.p-closed { max-width: 40rem; padding: 1.4rem 1.25rem; border: var(--line) dashed var(--hair-strong); border-radius: 18px; color: var(--ink-2); text-wrap: pretty; }

/* wide screens: the day as a quiet grid, one column per therapist */
.pgrid-wrap { border: var(--line) solid var(--hair-strong); border-radius: 18px; background: var(--screen); overflow: hidden; }
.pgrid { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.pgrid th, .pgrid td { padding: .3rem; vertical-align: top; text-align: left; font-weight: 400; }
.pgrid thead th { padding: .8rem .65rem .7rem; border-bottom: var(--line) solid var(--hair-strong); }
.pgrid .pgrid__corner { width: 4.5rem; }
.pgrid__name { display: block; font-weight: 600; line-height: 1.25; }
.pgrid__count { display: block; margin-top: .1rem; font-family: var(--mono); font-size: .75rem; color: var(--ink-2); }
.pgrid tbody th, .pgrid tbody td { border-top: var(--line) solid var(--hair); }
.pgrid tbody tr:first-child > * { border-top: 0; }
.pgrid td { border-left: var(--line) solid var(--hair); height: 4rem; }
.pgrid tbody .pgrid__time { padding: .7rem .5rem .3rem .95rem; font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.appt {
  position: relative; min-height: 3.35rem; padding: .45rem .6rem .5rem;
  border-radius: 10px; background: var(--paper-2);
}
.appt__who, .pitem__who { display: flex; align-items: center; gap: .45rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.appt__who { font-size: .9375rem; }
.appt__what { margin-top: .1rem; font-size: .8125rem; line-height: 1.3; color: var(--ink-2); }
.appt__time { display: none; }
.web-mark { position: relative; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--sage); }
.appt.is-new, .pitem.is-new { background: var(--accent); color: var(--on-accent); }
.appt.is-new .appt__what, .appt.is-new .appt__time { color: var(--on-accent); }
.appt__new, .pitem__new { font-family: var(--mono); font-size: .75rem; line-height: 1.3; letter-spacing: .01em; }
.appt__new { margin-bottom: .15rem; }
.appt__sms, .pitem__sms { margin-top: .4rem; padding-top: .4rem; border-top: var(--line) solid var(--on-accent-line); line-height: 1.35; }
.appt__sms { font-size: .75rem; }
.appt.is-new:focus-visible, .pitem.is-new:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* phones: the day as a list, by time */
.plist { list-style: none; margin: 0; padding: 0; border-top: var(--line) solid var(--hair-strong); }
.pitem { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: .9rem; padding: .8rem 0; border-bottom: var(--line) solid var(--hair); }
.pitem__time { display: flex; flex-direction: column; font-family: var(--mono); line-height: 1.3; font-variant-numeric: tabular-nums; }
.pitem__start { font-size: 1rem; }
.pitem__end { font-size: .75rem; color: var(--ink-2); }
.pitem__what { font-size: .9375rem; line-height: 1.35; color: var(--ink-2); }
.pitem__meta { margin-top: .2rem; font-family: var(--mono); font-size: .75rem; line-height: 1.35; color: var(--ink-2); }
.pitem__new { margin-bottom: .2rem; }
.pitem__sms { font-size: .8125rem; }
.pitem.is-new { margin: .35rem -.75rem; padding: .8rem .75rem; border-bottom: 0; border-radius: 14px; }
.pitem.is-new .pitem__end, .pitem.is-new .pitem__what, .pitem.is-new .pitem__meta { color: var(--on-accent); }

@media (max-width: 699px) {
  .pgrid-wrap { display: none; }
  .legend__item--visit { display: none; }   /* the phone list has no cards */
}
/* Phones show the bare number; the words stay for screen readers (label in name). Range syntax,
   so at a fractional width such as 639.5 px exactly one of the two forms shows. */
@media (width < 640px) {
  .ptab__w {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}
@media (width >= 640px) {
  .ptab__n { display: none; }
}
@media (min-width: 700px) {
  .plist { display: none; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-sched .legend { margin-left: auto; }
}
@media (min-width: 900px) {
  .appt__time { display: block; position: absolute; top: .5rem; right: .6rem; font-family: var(--mono); font-size: .6875rem; line-height: 1.3; color: var(--ink-2); }
  .appt__who { padding-right: 4.75rem; }
  /* the new card: its label gets the whole first line, the time sits on the name line as on every other card (S1) */
  .appt.is-new .appt__time { top: 1.625rem; }
}
@media (min-width: 1240px) {   /* below this the numbers beside the grid would squeeze its columns */
  .p-layout {
    grid-template-columns: minmax(0, 1fr) 19.5rem; grid-template-areas: "sched stats";
    column-gap: clamp(2rem, 3.5vw, 3.5rem); align-items: start;
  }
  .p-sched { grid-area: sched; }
  .p-stats { grid-area: stats; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
}

/* CTRL's offer at the end of the panel (wave B, P1). It is the studio that built this demo talking, not KRĘG,
   so the card turns KRĘG's palette over: paper on ink. CTRL's mark is a text cursor, drawn in the accent. */
.offer {
  margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(1.4rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 1.75rem;
  border-radius: 18px; background: var(--ink); color: var(--paper);
}
.offer :focus-visible { outline-color: var(--paper); }
.offer__from { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; font-family: var(--mono); font-size: .8125rem; line-height: 1.3; }
.offer__ctrl { display: inline-flex; align-items: center; gap: .2rem; font-size: .9375rem; letter-spacing: .14em; }
.offer__ctrl::after { content: ""; width: .5em; height: 1.1em; background: var(--accent); }
.offer__by { color: rgba(243, 239, 232, .74); }
.offer__title {
  margin-top: 1rem; font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); font-weight: 520; font-stretch: 82%;
  line-height: .98; letter-spacing: -.025em; text-wrap: balance;
}
.offer__list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.offer__list li { display: flex; align-items: baseline; gap: .55rem; }
.offer__list li::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); transform: translateY(-.1em); }
@media (width < 560px) {   /* phones: the four parts one under another, not wrapped unevenly */
  .offer__list { flex-direction: column; }
}
.offer__deal { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: 1.25rem; border-top: var(--line) solid rgba(243, 239, 232, .26); }
.offer__price { font-family: var(--mono); font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; }
.offer__arrow { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 960px) {
  .offer { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: clamp(2.5rem, 6vw, 6rem); }
  .offer__deal { flex-direction: column; align-items: flex-start; padding: 0 0 0 clamp(1.5rem, 3vw, 2.5rem); border-top: 0; border-left: var(--line) solid rgba(243, 239, 232, .26); }
}

/* ========== 404.html ==========
   Reuses the exercise page's kicker, title and lede. The ring is the logo with one segment out of place. */
.nf {
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3.5rem, 9vw, 7rem);
  min-height: calc(100vh - 7.5rem); min-height: calc(100svh - 7.5rem);   /* the footer starts at the fold, not mid-screen */
  display: flex; align-items: center;   /* and the message sits in the middle of that screen */
}
.nf__grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; align-items: center; }
.nf__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.nf__ring { width: clamp(7.5rem, 30vw, 15rem); height: auto; overflow: visible; }
.nf__ring .seg { fill: var(--ink); }
.nf__ring .seg:first-of-type {   /* the missing piece: an outline, moved out of the ring */
  fill: var(--paper); stroke: var(--accent); stroke-width: var(--line); vector-effect: non-scaling-stroke;
  stroke-dasharray: 4 3; transform: translate(2.2px, -2.6px);
}
@media (min-width: 720px) {
  .nf__grid { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(2rem, 6vw, 6rem); }
}

/* ---------- motion: everything lives here ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .logo__ring .seg {
    transform-box: view-box; transform-origin: 50% 50%;
    animation: seg-in .9s var(--ease) both;
    animation-delay: calc(var(--i) * 55ms + 150ms);
  }
  /* the segments' order for the stagger lives here, not in style="" (CSP: style-src 'self') */
  .logo__ring .seg:nth-child(1) { --i: 0; }
  .logo__ring .seg:nth-child(2) { --i: 1; }
  .logo__ring .seg:nth-child(3) { --i: 2; }
  .logo__ring .seg:nth-child(4) { --i: 3; }
  .logo__ring .seg:nth-child(5) { --i: 4; }
  .logo__ring .seg:nth-child(6) { --i: 5; }
  .logo__ring .seg:nth-child(7) { --i: 6; }
  .logo__ring .seg:nth-child(8) { --i: 7; }
  .logo__ring .seg:nth-child(9) { --i: 8; }
  @keyframes seg-in {
    from { transform: rotate(-70deg) scale(.55); opacity: 0; }
  }

  .body .outline {
    animation: draw 1.2s cubic-bezier(.45, .05, .25, 1) .1s backwards, fill-in .6s ease-out .9s backwards;
  }
  /* dasharray lives only inside the keyframes, so finished lines carry no dash seams */
  @keyframes draw {
    from { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
    to { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
  }
  @keyframes fill-in { from { fill-opacity: 0; } }

  .view .hints, .view .zones { animation: fade-in .7s ease-out 1s both; }
  .plate__disc { transform-box: fill-box; transform-origin: 50% 50%; animation: disc-in 1.1s var(--ease) both; }
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes disc-in { from { opacity: 0; transform: scale(.94); } }

  .view { transition: opacity .45s ease, visibility 0s linear 0s; }
  .plate[data-view="front"] .view--back,
  .plate[data-view="back"] .view--front { transition: opacity .45s ease, visibility 0s linear .45s; }

  .body .m.is-lit { animation: draw .9s var(--ease) backwards; }
  .zone .za { transition: fill-opacity .25s ease, stroke-opacity .25s ease; }
  .zone .zr { transform-box: fill-box; transform-origin: 50% 50%; }
  .zone.is-selected .zr { animation: pulse 2.4s ease-out infinite; }
  @keyframes pulse {
    0% { transform: scale(1); stroke-opacity: .9; }
    70%, 100% { transform: scale(3.2); stroke-opacity: 0; }
  }
  .callout path { animation: draw .5s var(--ease) backwards; }
  .callout text, .callout circle { animation: fade-in .4s ease-out .3s both; }

  .step--refine:not([hidden]) { animation: rise .45s var(--ease) both; }
  .match[data-state="match"] .match__body { animation: rise .45s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } }

  .chip, .flip, .lang__btn, .btn { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }

  .day, .time, .input, .opt__box, .opt__mark { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
  .booked:not([hidden]), .after:not([hidden]) { animation: rise .45s var(--ease) both; }
  .after:not([hidden]) { animation-delay: .15s; }
  .sms__stamp:not([hidden]), .sms__bubble:not([hidden]) { animation: rise .4s var(--ease) both; }
  #sms-confirm:not([hidden]) { animation-delay: .25s; }
  .sms__group:not([hidden]) .sms__bubble { animation-delay: .15s; }
  .sms__group:not([hidden]) .sms__chips { animation: fade-in .4s ease-out .5s both; }
  .nav__list a { transition: background-size .25s var(--ease); }
  .menu-btn path { transition: transform .25s var(--ease); }
  .faq__icon path, .faq__icon circle { transition: transform .25s var(--ease), stroke .2s ease; }
  .faq__item[open] .faq__a { animation: rise .35s var(--ease) both; }
  .ex-art .ex-f { transition: opacity .35s ease-in-out; }   /* short: two poses overlap only briefly */
  .pick__dot, .pick__ring { transition: fill .2s ease, stroke .2s ease, stroke-opacity .2s ease; }
  .ex-ctl__bar { transition: background-size .25s linear; }
  .ex-pause { transition: border-color .2s ease; }
  .ptab, .p-hint__link { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
  .lbar__fill { transition: background-color .2s ease; }
  .is-new.is-arriving { animation: rise .5s var(--ease) .25s both; }
  @media (max-width: 819px) {
    .site-header[data-menu="open"] .nav { animation: rise .25s var(--ease) both; }
    .nav__list a { transition: background-color .15s ease; }
  }
}
