/* UP Reformer Studio
   Barvy: křída (podklad), smrk (text a tlačítka), javor (dřevo rámu),
   pružiny (náročnost lekcí: žlutá, zelená, modrá, červená).
   Písmo: Archivo. Rozšířené = nálada a nadpisy, normální = text, zúžené = data v rozvrhu. */

:root {
  --paper: #eceee8;
  --paper-2: #e1e6df;
  --surface: #fbfcf9;
  --ink: #17322b;
  --ink-2: #44594f;
  --ink-3: #586a63;
  --line: #c9d1c8;
  --line-strong: #a7b3a9;
  --javor: #c99257;
  --javor-light: #ecdcc0;
  --javor-dark: #8a5a2b;
  --metal: #9ba7a1;
  --sp-intro: #d9a520;
  --sp-flow: #3e8e5e;
  --sp-control: #2f66ae;
  --sp-sculpt: #c2412b;
  --warn: #b23a25;
  --focus: #2f66ae;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 72px;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
  font-weight: 620;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.28rem;
  font-stretch: 112%;
  font-weight: 620;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
summary,
select,
label.check,
[role="button"] {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-s);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Tlačítka ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-weight: 560;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.btn-lg {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 1.05rem;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: #0f2520;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--paper-2);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-quiet:hover {
  border-color: var(--ink);
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
}

.btn-light:hover {
  background: #fff;
}

.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}

.icon-btn:hover:not(:disabled) {
  border-color: var(--ink);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.text-btn {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 560;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.text-btn:hover {
  text-decoration-thickness: 2.5px;
}

/* ---------- Pružiny (náročnost) ---------- */

.springs {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  vertical-align: middle;
}

.spring {
  width: 18px;
  height: 8px;
  color: var(--line-strong);
}

.spring.is-on {
  color: var(--c, var(--ink));
}

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 238, 232, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.brand-up {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.brand-word {
  font-stretch: 100%;
  font-weight: 420;
  font-size: 1.15rem;
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
}

.main-nav a:hover {
  background: var(--paper-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-btn {
  max-width: 200px;
}

.account-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-btn {
  display: none;
}

.mobile-nav {
  display: grid;
  padding: 8px var(--pad) 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.15rem;
  font-stretch: 112%;
  font-weight: 560;
}

@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .menu-btn {
    display: inline-grid;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 64px;
  }
  .account-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .account-btn {
    width: 44px;
    padding: 0;
    border-radius: 50%;
  }
  .header-cta {
    padding-inline: 14px;
  }
  .header-actions {
    gap: 8px;
  }
}

/* ---------- Úvod ---------- */

.hero {
  padding-block: clamp(28px, 5vw, 64px) clamp(56px, 7vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "copy photo"
    "next photo";
  gap: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 64px);
}

.hero-copy {
  grid-area: copy;
}

.hero h1 {
  font-weight: 640;
}

.hero-line {
  display: block;
  font-size: clamp(2.6rem, 6.6vw, 5.6rem);
  font-stretch: 125%;
  line-height: 0.98;
  letter-spacing: -0.025em;
  animation: stretch 1.6s var(--ease) 0.15s both;
}

.hero-line + .hero-line {
  animation-delay: 0.3s;
}

@keyframes stretch {
  from {
    font-stretch: 68%;
  }
  to {
    font-stretch: 125%;
  }
}

.hero-place {
  display: block;
  margin-top: 0.7em;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-stretch: 100%;
  font-weight: 460;
  letter-spacing: 0;
  color: var(--ink-2);
}

.hero-lead {
  max-width: 54ch;
  margin-top: 22px;
  font-size: 1.12rem;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-photo {
  grid-area: photo;
  margin: 0;
  min-height: 560px;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--javor-light);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 50%;
}

.next-up {
  grid-area: next;
  align-self: end;
}

.next-up h2 {
  font-size: 1.05rem;
  font-stretch: 100%;
  font-weight: 620;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.next-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
}

.next-list li {
  border-bottom: 1px solid var(--line);
}

.next-item {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 4px;
  border: 0;
  background: none;
  text-align: left;
}

.next-item:hover .next-cta {
  text-decoration-thickness: 2.5px;
}

.next-when {
  font-stretch: 88%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.next-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 560;
}

.next-name small {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-3);
}

.next-cta {
  font-weight: 560;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.next-empty {
  padding: 14px 4px;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "photo"
      "next";
  }
  .hero-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .next-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }
  .next-when {
    grid-column: 1;
  }
  .next-name {
    grid-column: 1;
  }
  .next-cta {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* ---------- Sekce ---------- */

.section {
  padding-block: var(--section);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head p {
  max-width: 62ch;
  font-size: 1.1rem;
  color: var(--ink-2);
}

/* ---------- Co je reformer ---------- */

.reformer {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.reformer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.reformer-copy {
  display: grid;
  gap: 18px;
}

.reformer-copy p {
  max-width: 52ch;
  font-size: 1.1rem;
  color: var(--ink-2);
}

.diagram {
  margin: 0;
}

.diagram svg {
  width: 100%;
  height: auto;
}

.dg-floor {
  stroke: var(--line-strong);
  stroke-width: 2;
}

.dg-leg {
  fill: var(--javor-dark);
}

.dg-frame {
  fill: var(--javor);
  stroke: var(--javor-dark);
  stroke-width: 2;
}

.dg-rail,
.dg-metal {
  fill: var(--metal);
}

.dg-metal-line {
  stroke: var(--metal);
  stroke-width: 8;
  stroke-linecap: round;
  fill: none;
}

.dg-pad {
  fill: var(--ink);
}

.dg-spring {
  fill: none;
  stroke: var(--c);
  stroke-width: 2.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.dg-carriage {
  fill: var(--ink);
}

.dg-carriage-soft {
  fill: var(--ink-2);
}

.dg-pulley {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 3;
}

.dg-rope {
  stroke: var(--ink);
  stroke-width: 2;
  fill: none;
}

.dg-strap {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
}

.dg-key line {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.dg-key circle {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 2;
}

.dg-key text {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
}

.diagram-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: part;
}

.diagram-key li {
  position: relative;
  padding-left: 38px;
  font-size: 0.97rem;
  color: var(--ink-2);
  counter-increment: part;
}

.diagram-key li::before {
  content: counter(part);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.diagram-key strong {
  color: var(--ink);
  font-weight: 620;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: clamp(48px, 6vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}

.benefits li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 18px;
  border-top: 1.5px solid var(--ink);
}

.benefits h3 {
  font-size: 1.15rem;
}

.benefits p {
  color: var(--ink-2);
}

@media (max-width: 960px) {
  .reformer-grid {
    grid-template-columns: 1fr;
  }
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .diagram-key,
  .benefits {
    grid-template-columns: 1fr;
  }
}

/* ---------- Lekce ---------- */

.lesson-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--ink);
}

.lesson {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 150px auto;
  gap: 16px 40px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.lesson-meter {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.lesson-meter .spring {
  width: 26px;
  height: 11px;
}

.lesson-level {
  font-size: 0.88rem;
  color: var(--ink-3);
}

.lesson-main {
  display: grid;
  gap: 8px;
  max-width: 60ch;
}

.lesson-main h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-stretch: 125%;
}

.lesson-kicker {
  font-weight: 560;
  color: var(--ink);
}

.lesson-main p:last-child {
  color: var(--ink-2);
}

.lesson-facts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-top: 6px;
}

.lesson-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dotted var(--line-strong);
  padding-bottom: 4px;
}

.lesson-facts dt {
  color: var(--ink-3);
}

.lesson-facts dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1080px) {
  .lesson {
    grid-template-columns: 150px minmax(0, 1fr) 150px;
  }
  .lesson .btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .lesson {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .lesson-meter {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
  }
  .lesson-facts {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 160px);
    gap: 20px;
  }
  .lesson .btn {
    grid-column: 1;
  }
}

/* ---------- Poprvé ---------- */

.first {
  background: var(--javor-light);
}

.first-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.first-photo {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.first-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.first-copy {
  display: grid;
  gap: 32px;
  justify-items: start;
}

.steps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px 18px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 2.6rem;
  font-stretch: 125%;
  font-weight: 300;
  line-height: 1;
  color: var(--javor-dark);
}

.steps h3 {
  font-size: 1.2rem;
}

.steps p {
  color: var(--ink-2);
  max-width: 52ch;
}

@media (max-width: 860px) {
  .first-grid {
    grid-template-columns: 1fr;
  }
  .first-photo {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Rozvrh ---------- */

.schedule {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.sched-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 16px 0;
  margin-bottom: 22px;
  border-block: 1px solid var(--line);
}

.week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.week-label {
  min-width: 11.5em;
  text-align: center;
  font-stretch: 112%;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.chips {
  display: flex;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 0.93rem;
  font-weight: 520;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1.5px var(--surface);
}

.select select {
  min-height: 38px;
  padding: 6px 34px 6px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317322b' stroke-width='1.8'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  appearance: none;
  font-size: 0.93rem;
}

.select select:hover {
  border-color: var(--ink);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.day-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 2px 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  font-size: 1rem;
  font-stretch: 100%;
  letter-spacing: 0;
}

.day-name {
  font-weight: 700;
}

.day-date {
  font-weight: 400;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.day-today {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--javor-light);
  color: var(--javor-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

.day-slots {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.day-empty {
  padding: 10px 2px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.slot {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: inset 4px 0 0 var(--c);
  text-align: left;
  transition: border-color 0.15s;
}

.slot:hover:not(:disabled) {
  border-color: var(--ink);
}

.slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.slot-time {
  font-stretch: 82%;
  font-weight: 650;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

.slot .spring {
  width: 12px;
  height: 6px;
}

.slot .springs {
  gap: 1px;
}

.slot-name {
  font-weight: 620;
  font-size: 0.98rem;
  line-height: 1.25;
}

.slot-coach {
  font-size: 0.86rem;
  color: var(--ink-2);
}

.slot-status {
  margin-top: 4px;
  font-size: 0.84rem;
  font-weight: 520;
  color: var(--ink-2);
}

.slot.is-low .slot-status {
  color: var(--warn);
  font-weight: 650;
}

.slot.is-full {
  background: var(--paper);
}

.slot.is-wait {
  background: var(--paper);
  border-style: dashed;
  border-color: var(--ink);
}

.slot.is-mine {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.slot.is-mine .slot-coach,
.slot.is-mine .slot-status {
  color: #d3ddd8;
}

.slot.is-mine .spring {
  color: rgba(255, 255, 255, 0.28);
}

.slot.is-mine .spring.is-on {
  color: var(--c);
}

.slot.is-past,
.slot.is-cancelled {
  background: transparent;
  box-shadow: inset 4px 0 0 var(--line);
  color: var(--ink-3);
  cursor: default;
}

.slot.is-past .slot-coach,
.slot.is-past .slot-status,
.slot.is-cancelled .slot-coach,
.slot.is-cancelled .slot-status {
  color: var(--ink-3);
}

.slot.is-cancelled .slot-name,
.slot.is-cancelled .slot-time {
  text-decoration: line-through;
}

.daystrip {
  display: none;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-swatch {
  width: 22px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
}

.legend-low {
  border-color: var(--warn);
  box-shadow: inset 0 -3px 0 var(--warn);
}

.legend-full {
  background: var(--paper);
}

.legend-mine {
  background: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 1180px) {
  .sched-bar {
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .sched-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .week-nav {
    justify-content: space-between;
  }
  .week-label {
    flex: 1;
    min-width: 0;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .chips {
    grid-column: 1 / -1;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--pad));
    padding: 2px var(--pad) 6px;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
  .select select {
    width: 100%;
  }
  .check {
    grid-column: 1 / -1;
  }
  .daystrip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 18px;
  }
  .ds-day {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 8px 0 7px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-m);
    background: #fff;
    font-variant-numeric: tabular-nums;
  }
  .ds-name {
    font-size: 0.8rem;
    font-weight: 600;
  }
  .ds-date {
    font-size: 1.05rem;
    font-weight: 650;
    font-stretch: 90%;
  }
  .ds-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sp-flow);
  }
  .ds-dot.is-none {
    background: transparent;
  }
  .ds-day.is-today .ds-name {
    color: var(--javor-dark);
  }
  .ds-day[aria-pressed="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
  }
  .ds-day[aria-pressed="true"] .ds-name {
    color: var(--paper);
  }
  .week {
    display: block;
  }
  .day {
    display: none;
  }
  .day.is-selected {
    display: block;
  }
  .slot {
    grid-template-columns: 6.6em minmax(0, 1fr) auto;
    grid-template-areas:
      "time name springs"
      "time coach coach"
      "time status status";
    column-gap: 12px;
    padding: 14px 14px 14px 16px;
  }
  .slot-top {
    display: contents;
  }
  .slot-time {
    grid-area: time;
    font-size: 1.1rem;
  }
  .slot .springs {
    grid-area: springs;
  }
  .slot-name {
    grid-area: name;
    font-size: 1.05rem;
  }
  .slot-coach {
    grid-area: coach;
  }
  .slot-status {
    grid-area: status;
    margin-top: 2px;
  }
}

/* ---------- Ceník ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Karty sdílejí řádky, aby ceny a tlačítka byly ve stejné výšce. */
.pass {
  display: grid;
  grid-row: span 7;
  grid-template-rows: subgrid;
  row-gap: 10px;
  align-content: start;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.pass-kind {
  font-size: 0.92rem;
  font-weight: 560;
  color: var(--javor-dark);
}

.pass h3 {
  font-size: 1.6rem;
  font-stretch: 125%;
}

.pass-title {
  display: grid;
  gap: 4px;
  align-content: start;
}

.pass-sub {
  color: var(--ink-2);
}

.pass-desc {
  color: var(--ink-2);
}

.pass-holes {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.pass-holes span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper-2);
  box-shadow: inset 0 1.5px 2px rgba(23, 50, 43, 0.35);
}

.pass-price {
  font-size: 2.5rem;
  font-stretch: 125%;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ticks {
  display: grid;
  gap: 8px;
  margin: 8px 0 22px;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 28px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.pass .btn {
  align-self: end;
}

.pass-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pass-featured .pass-kind {
  color: var(--javor-light);
}

.pass-featured .pass-desc,
.pass-featured .pass-sub {
  color: #cfdad5;
}

.pass-featured .pass-holes span {
  background: var(--paper);
  box-shadow: inset 0 1.5px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 960px) {
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .pass-desc {
    min-height: 0;
  }
}

/* ---------- Lektorky ---------- */

.team {
  padding-top: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.coach {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
}

.coach img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-l);
  margin-bottom: 12px;
  background: var(--paper-2);
}

.coach h3 {
  font-size: 1.5rem;
  font-stretch: 125%;
}

.coach-role {
  font-weight: 560;
}

.coach p:not(.coach-role) {
  color: var(--ink-2);
}

.coach-cert {
  font-size: 0.92rem;
}

.coach .text-btn {
  margin-top: 6px;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .coach img {
    aspect-ratio: 3 / 2;
  }
}

/* ---------- Časté otázky ---------- */

.faq {
  background: var(--paper-2);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px clamp(32px, 5vw, 80px);
  align-items: start;
}

.faq-list {
  border-top: 1.5px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 2px;
  font-size: 1.12rem;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 64ch;
  padding: 0 2px 22px;
  color: var(--ink-2);
}

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

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.contact-info address {
  font-style: normal;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-stretch: 112%;
  font-weight: 560;
  line-height: 1.3;
  margin-top: 8px;
}

.contact-info p {
  color: var(--ink-2);
  max-width: 44ch;
}

.contact-links {
  display: grid;
  gap: 4px;
}

.contact-links a {
  color: var(--ink);
  font-weight: 560;
  font-size: 1.1rem;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-form > p {
  color: var(--ink-2);
  margin-top: -6px;
}

.contact-form .btn {
  justify-self: start;
}

.form-done {
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: var(--paper-2);
  font-weight: 520;
}

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

/* ---------- Formuláře ---------- */

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 560;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
}

.field textarea {
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--ink-2);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--ink);
}

.field [aria-invalid="true"] {
  border-color: var(--warn);
}

.field-error {
  font-size: 0.88rem;
  color: var(--warn);
  font-weight: 520;
}

.field-error:empty {
  display: none;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ink);
}

/* ---------- Patička ---------- */

.site-footer {
  padding-block: 48px 40px;
  background: var(--ink);
  color: #d3ddd8;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 40px;
  align-items: baseline;
}

.footer-brand {
  color: var(--paper);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: #d3ddd8;
}

.demo-note {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  color: #aebdb6;
}

.demo-note .text-btn {
  color: var(--paper);
}

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    flex-wrap: wrap;
  }
}

/* ---------- Panel rezervace ---------- */

.drawer-root {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.drawer-root[hidden] {
  display: none;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 50, 43, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(540px, 100%);
  background: var(--paper);
  box-shadow: -24px 0 64px rgba(23, 50, 43, 0.22);
  transform: translateX(104%);
  transition: transform 0.32s var(--ease);
}

.drawer-root.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer-root.is-open .drawer {
  transform: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 14px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  font-size: 1.35rem;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}

.drawer-head h2:focus {
  outline: none;
}

.drawer-steps {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 12px 24px;
  list-style: none;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  counter-reset: dstep;
}

.drawer-steps:empty {
  display: none;
}

.drawer-steps li {
  flex: 1;
  display: grid;
  gap: 6px;
  color: var(--ink-3);
  counter-increment: dstep;
}

.drawer-steps li::before {
  content: "";
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}

.drawer-steps li.is-done::before,
.drawer-steps li[aria-current="step"]::before {
  background: var(--ink);
}

.drawer-steps li[aria-current="step"] {
  color: var(--ink);
  font-weight: 620;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  display: grid;
  gap: 22px;
  align-content: start;
}

@media (max-width: 640px) {
  .drawer {
    top: auto;
    height: min(94dvh, 100%);
    width: 100%;
    border-radius: 20px 20px 0 0;
    transform: translateY(104%);
  }
  .drawer-body {
    padding: 20px;
  }
  .drawer-head {
    padding-left: 20px;
  }
  .drawer-steps {
    padding-inline: 20px;
  }
}

/* Detail lekce v panelu */

.bk-lesson {
  display: grid;
  gap: 10px;
  padding: 18px 18px 18px 22px;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 5px 0 0 var(--c);
}

.bk-when {
  font-weight: 560;
  color: var(--ink-2);
}

.bk-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.7rem;
  font-stretch: 125%;
}

.bk-name .spring {
  width: 20px;
  height: 9px;
}

.bk-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
}

.bk-mini {
  padding: 12px 16px;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 4px 0 0 var(--c);
  color: var(--ink-2);
}

.bk-mini strong {
  margin-right: 6px;
  color: var(--ink);
}

.bk-facts div {
  display: grid;
}

.bk-facts dt {
  font-size: 0.82rem;
  color: var(--ink-3);
}

.bk-facts dd {
  margin: 0;
  font-weight: 600;
}

.bk-desc {
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* Lektorka v panelu rezervace */
.bk-coach {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
}

.bk-coach img {
  width: 96px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--paper-2);
}

.bk-coach-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bk-coach-lead {
  font-size: 0.82rem;
  color: var(--ink-3);
}

.bk-coach h4 {
  font-size: 1.25rem;
  font-stretch: 112%;
  font-weight: 620;
}

.bk-coach-role {
  font-weight: 560;
  font-size: 0.95rem;
}

.bk-coach-bio {
  margin-top: 4px;
  font-size: 0.93rem;
  color: var(--ink-2);
}

.bk-coach-cert {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--ink-3);
}

@media (max-width: 400px) {
  .bk-coach {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }
  .bk-coach img {
    width: 76px;
    height: 96px;
  }
}

.notice {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: var(--javor-light);
}

.notice h3 {
  font-size: 1.05rem;
  font-stretch: 100%;
}

.notice p {
  font-size: 0.97rem;
}

.notice-quiet {
  background: var(--paper-2);
}

/* Plánek sálu */

.plan-wrap {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.plan-wrap legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 620;
  font-stretch: 112%;
}

.plan-hint {
  font-size: 0.93rem;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.plan {
  padding: 12px 14px 14px;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
}

.plan-front {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-bottom: 14px;
  border-bottom: 4px double var(--line-strong);
  font-size: 0.85rem;
  color: var(--ink-3);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 10px;
}

.machine {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px 2px 4px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.machine svg {
  width: 100%;
  max-width: 54px;
  height: auto;
  overflow: visible;
}

.machine:hover:not(:disabled) {
  border-color: var(--line-strong);
}

.machine[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--paper);
}

.m-frame {
  fill: var(--javor-light);
  stroke: var(--javor);
  stroke-width: 2;
}

.m-rail {
  stroke: var(--metal);
  stroke-width: 2;
}

.m-bar {
  fill: var(--ink);
}

.m-carriage {
  transition: transform 0.5s var(--ease);
}

.m-seat {
  fill: var(--ink-2);
}

.m-rest {
  fill: var(--ink);
}

.m-person {
  fill: var(--javor-dark);
  opacity: 0;
}

.machine[aria-pressed="true"] .m-carriage {
  transform: translateY(24px);
}

.machine[aria-pressed="true"] .m-seat {
  fill: var(--ink);
}

.machine[aria-pressed="true"] .m-frame {
  stroke: var(--ink);
  stroke-width: 2.5;
}

.machine:disabled {
  cursor: not-allowed;
  color: var(--ink-3);
}

.machine:disabled .m-frame {
  fill: var(--paper-2);
  stroke: var(--line-strong);
}

.machine:disabled .m-seat,
.machine:disabled .m-rest,
.machine:disabled .m-bar {
  fill: var(--line-strong);
}

.machine:disabled .m-person {
  opacity: 1;
}

.plan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.plan-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.plan-legend i {
  width: 12px;
  height: 18px;
  border-radius: 3px;
  border: 1.5px solid var(--javor);
  background: var(--javor-light);
}

.plan-legend i.is-taken {
  border-color: var(--line-strong);
  background: var(--paper-2);
}

.plan-legend i.is-mine {
  border-color: var(--ink);
  background: var(--ink);
}

.plan-note {
  margin-top: 10px;
  font-size: 0.93rem;
  font-weight: 520;
}

.bk-actions {
  display: grid;
  gap: 10px;
}

.bk-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Přihlášení */

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 12px;
  background: var(--paper-2);
}

.seg button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-weight: 560;
}

.seg button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 50, 43, 0.18);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 0.93rem;
}

/* Platba */

.summary {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
}

.summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.summary dt {
  color: var(--ink-3);
}

.summary dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.summary .summary-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.summary .summary-total dd {
  font-size: 1.2rem;
}

.pay-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.pay-options legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 620;
  font-stretch: 112%;
}

.pay-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: #fff;
}

.pay-option:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.pay-option input {
  grid-row: span 2;
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.po-title {
  font-weight: 620;
}

.po-meta {
  grid-column: 2;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.po-price {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.fine {
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* Hotovo */

.done {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.done-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}

.done-mark .icon {
  width: 28px;
  height: 28px;
}

.done h3 {
  font-size: 1.7rem;
  font-stretch: 125%;
}

.done > p {
  color: var(--ink-2);
}

.codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 4px 0;
}

.codes div {
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
}

.codes dt {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.codes dd {
  margin: 2px 0 0;
  font-size: 1.5rem;
  font-weight: 650;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
}

/* Můj účet */

.acc-who {
  display: grid;
  gap: 2px;
}

.acc-who strong {
  font-size: 1.25rem;
  font-stretch: 112%;
}

.acc-who span {
  color: var(--ink-2);
}

.acc-block {
  display: grid;
  gap: 12px;
}

.acc-block h3 {
  font-size: 1.1rem;
  font-stretch: 100%;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
}

.acc-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acc-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px 12px 18px;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 4px 0 0 var(--c, var(--line));
}

.acc-when {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.acc-meta {
  grid-column: 1;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.acc-item .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.acc-item.is-old {
  box-shadow: inset 4px 0 0 var(--line);
  color: var(--ink-3);
}

.acc-empty {
  color: var(--ink-2);
}

.acc-pass {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: var(--ink);
  color: var(--paper);
}

.acc-pass .pass-holes span.is-used {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}

.acc-pass .pass-holes span {
  background: var(--paper);
}

.acc-history summary {
  font-weight: 560;
  padding: 6px 0;
}

.acc-history .acc-list {
  margin-top: 10px;
}

/* ---------- Potvrzení a oznámení ---------- */

.confirm {
  width: min(440px, calc(100% - 32px));
  padding: 26px;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(23, 50, 43, 0.3);
}

.confirm::backdrop {
  background: rgba(23, 50, 43, 0.45);
}

.confirm h2 {
  font-size: 1.4rem;
  font-stretch: 112%;
  margin-bottom: 10px;
}

.confirm p {
  color: var(--ink-2);
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 520;
  box-shadow: 0 12px 32px rgba(23, 50, 43, 0.3);
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  transition:
    transform 0.3s var(--ease),
    visibility 0s linear 0.3s;
  pointer-events: none;
}

.toast.is-shown {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform 0.3s var(--ease);
}

/* ---------- Mobil: sady karet a hustší sekce ---------- */

.carousel-nav {
  display: none;
}

@media (max-width: 720px) {
  :root {
    --section: 56px;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 22px;
  }

  .section-head p {
    font-size: 1rem;
  }

  /* Sada karet, která se posouvá do strany. Další karta kousek vykukuje. */
  [data-carousel] {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 84%;
    gap: 12px;
    max-width: none;
    margin: 0 calc(-1 * var(--pad));
    padding: 2px var(--pad) 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  [data-carousel]::-webkit-scrollbar {
    display: none;
  }

  [data-carousel] > * {
    scroll-snap-align: start;
    min-width: 0;
  }

  .carousel-nav {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 10px;
  }

  .carousel-dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
  }

  .carousel-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--line-strong);
    transition:
      width 0.2s var(--ease),
      background-color 0.2s;
  }

  .carousel-dot[aria-current="true"]::before {
    width: 22px;
    background: var(--ink);
  }

  /* Co je reformer: popisky stroje ve dvou sloupcích, výhody jako sada karet */
  .reformer-grid {
    gap: 22px;
  }

  .reformer-copy {
    gap: 12px;
  }

  .reformer-copy p {
    font-size: 1rem;
  }

  .diagram-key {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
    padding: 14px 14px 14px 12px;
    border-radius: var(--radius-m);
    background: var(--paper);
  }

  .diagram-key li {
    padding-left: 32px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .diagram-key li::before {
    width: 22px;
    height: 22px;
    font-size: 0.78rem;
  }

  .benefits {
    grid-auto-columns: 72%;
    margin-top: 28px;
  }

  .benefits li {
    padding: 16px;
    border-top: 0;
    border-radius: var(--radius-m);
    background: var(--paper);
    box-shadow: inset 0 3px 0 var(--ink);
  }

  /* Lekce: každá lekce jako karta */
  .lesson-list {
    border-top: 0;
  }

  .lesson {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    gap: 12px;
    padding: 20px 18px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--surface);
    box-shadow: inset 0 4px 0 var(--c);
  }

  .lesson-meter {
    padding-top: 0;
  }

  .lesson-main p:last-child {
    font-size: 0.95rem;
  }

  .lesson-facts {
    grid-auto-columns: minmax(0, 1fr);
    gap: 14px;
    padding-top: 0;
  }

  .lesson .btn {
    justify-self: stretch;
  }

  /* Poprvé: nižší fotka a hustší kroky */
  .first-grid {
    gap: 24px;
  }

  .first-photo {
    aspect-ratio: 2 / 1;
  }

  .first-copy {
    gap: 20px;
  }

  .steps {
    gap: 14px;
  }

  .steps li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 12px;
  }

  .steps li::before {
    font-size: 1.8rem;
  }

  .steps h3 {
    font-size: 1.08rem;
  }

  .steps p {
    font-size: 0.95rem;
  }

  /* Ceník a lektorky jako sady karet */
  .price-grid {
    grid-auto-columns: 86%;
  }

  .pass {
    padding: 22px 20px 20px;
  }

  .pass-price {
    font-size: 2.1rem;
  }

  .ticks {
    margin-bottom: 14px;
  }

  .team-grid {
    grid-auto-columns: 78%;
    gap: 14px;
  }

  .coach img {
    aspect-ratio: 4 / 3;
    margin-bottom: 6px;
  }

  .coach p:not(.coach-role) {
    font-size: 0.95rem;
  }

  /* Časté otázky a kontakt */
  .faq summary {
    padding: 16px 2px;
    font-size: 1.02rem;
  }

  .contact-grid {
    gap: 32px;
  }

  .contact-info {
    gap: 12px;
  }
}

/* ---------- Omezený pohyb ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
