:root {
  --bg: #f6f6f1;
  --surface: #ffffff;
  --soft: #e8e8e0;
  --ink: #050505;
  --ink-soft: #2d3138;
  --muted: #696a64;
  --line: rgba(5, 5, 5, .12);
  --shadow: 0 24px 60px rgba(5, 5, 5, .08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: "Lustria", Georgia, serif;
  background: var(--bg);
  color: var(--ink);
}

a { color: inherit; }

.site-header {
  background: rgba(246, 246, 241, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}

.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .85rem 1.25rem;
}

.brand a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.home-link {
  min-height: 42px;
  border: 1px solid var(--ink);
  padding: .75rem 1rem;
  color: var(--ink);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .3rem 1rem;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: .65rem 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover { border-color: var(--ink); }

.main-nav .language-link {
  border: 1px solid var(--ink);
  padding: .65rem .85rem;
  background: transparent;
  color: var(--ink);
}

.page-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 5rem 1.25rem;
  text-align: center;
  background:
    linear-gradient(rgba(246,246,241,.86), rgba(246,246,241,.92)),
    radial-gradient(circle at 50% 0%, var(--soft), transparent 58%);
  border: 1px solid var(--line);
}

.hero__content {
  max-width: 1040px;
  margin: auto;
}

.hero-logo {
  display: block;
  width: min(460px, 78vw);
  height: auto;
  margin: 0 auto 1.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto 2rem;
  max-width: 1040px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(.95rem, 3.4vw, 2.55rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
}

.button {
  min-height: 48px;
  border: 1px solid var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.45rem;
  cursor: pointer;
  font-family: inherit;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.button:hover { transform: translateY(-1px); }

.button--primary {
  background: var(--ink);
  color: var(--bg);
}

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

.button.is-disabled,
.button--secondary.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

.section-block {
  margin-top: 1rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-heading {
  display: grid;
  gap: .75rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: 3.1rem;
  font-weight: 400;
  line-height: 1;
}

.step-grid,
.class-grid,
.coach-grid {
  display: grid;
  gap: 1rem;
}

.step-grid,
.class-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coach-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card,
.class-card,
.coach-card {
  min-height: 220px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: var(--bg);
}

.step-card span {
  display: block;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .18em;
}

.step-card h3,
.class-card h3,
.coach-card h3 {
  margin: 0 0 .8rem;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.1;
}

.step-card p,
.class-card p,
.coach-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.classes-section {
  background: var(--ink);
  color: var(--bg);
}

.classes-section .eyebrow,
.classes-section p {
  color: rgba(246, 246, 241, .72);
}

.classes-section .class-card {
  background: transparent;
  border-color: rgba(246, 246, 241, .22);
}

.coaches-section {
  background: var(--soft);
}

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.feature-panel,
.auth-form,
.page-section,
.dashboard-card,
.membership-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-panel {
  min-height: 300px;
  padding: 2.5rem;
}

.feature-panel--dark {
  background: var(--ink);
  color: var(--bg);
}

.feature-panel--dark .eyebrow,
.feature-panel--dark ul { color: rgba(246, 246, 241, .72); }

.features h2,
.auth-form h1,
.page-section h1,
.membership-card h2 {
  margin: 0 0 1rem;
  font-weight: 400;
}

.features h2,
.page-section h1,
.auth-form h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.features ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.features li + li { margin-top: .85rem; }

.auth-form,
.page-section {
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 760px;
  margin: 2rem auto;
}

.page-section { max-width: 1180px; }

.membership-page {
  display: grid;
  gap: 1.25rem;
}

.membership-notice {
  display: grid;
  gap: .5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--soft);
}

.membership-notice p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.membership-groups {
  display: grid;
  gap: 1.25rem;
}

.membership-group {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.membership-group__heading {
  display: grid;
  gap: .4rem;
  margin-bottom: 1rem;
}

.membership-group__heading h2 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1;
}

.terms-content {
  display: grid;
  gap: 1.15rem;
}

.terms-content h2 {
  margin: 0;
  font-weight: 400;
  font-size: 1.45rem;
}

.terms-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.terms-acceptance {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.admin-page {
  display: grid;
  gap: 1.25rem;
}

.admin-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stat-grid .dashboard-card h2 {
  margin: .35rem 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
}

.admin-table-section {
  display: grid;
  gap: .75rem;
}

.admin-table-section h2 {
  margin: 0;
  font-weight: 400;
  font-size: 2rem;
}

.admin-table-section p {
  margin: 0;
  color: var(--muted);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.billing-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  align-items: end;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--soft);
}

.billing-filters label,
.billing-row-form {
  color: var(--muted);
  font-size: .92rem;
}

.billing-filters input,
.billing-filters select,
.billing-row-form input,
.billing-row-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: .65rem .75rem;
  font-family: inherit;
}

.billing-note {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg);
}

.billing-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.billing-row-form {
  display: grid;
  min-width: 620px;
  grid-template-columns: 150px 140px 1fr auto;
  gap: .5rem;
}

.billing-table td {
  vertical-align: top;
}

.reservation-page {
  display: grid;
  gap: 1.25rem;
}

.booking-hero {
  display: grid;
  gap: .75rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--surface);
}

.booking-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: .95;
}

.booking-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.booking-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--bg);
}

.booking-stepper span {
  padding: 1rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .16em;
}

.booking-stepper span:last-child {
  border-right: 0;
}

.booking-stepper .is-active {
  background: var(--ink);
  color: var(--bg);
}

.booking-flow,
.reservation-current {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--surface);
}

.calendar-widget,
.time-widget {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calendar-widget__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.calendar-widget__header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
}

.calendar-widget__header p {
  margin: 0;
  color: var(--muted);
}

.calendar-widget__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .75rem;
}

.calendar-day-name {
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .16em;
}

.calendar-cell {
  position: relative;
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--bg);
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.calendar-cell:hover {
  transform: translateY(-2px);
  background: var(--soft);
}

.calendar-cell span,
.calendar-cell small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .12em;
}

.calendar-cell strong {
  font-size: 2.5rem;
  font-weight: 400;
}

.calendar-cell em {
  position: absolute;
  top: .8rem;
  right: .8rem;
  border: 1px solid currentColor;
  padding: .18rem .45rem;
  font-style: normal;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.calendar-cell.is-selected {
  background: var(--ink);
  color: var(--bg);
}

.calendar-cell.is-selected span,
.calendar-cell.is-selected small {
  color: rgba(246, 246, 241, .72);
}

.calendar-cell.is-closed {
  opacity: .45;
}

.time-widget__empty {
  border: 1px solid var(--line);
  padding: 1.25rem;
  background: var(--bg);
  color: var(--muted);
}

.time-slot-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.time-slot {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg);
  min-height: 250px;
}

.time-slot a:not(.button) {
  display: grid;
  gap: .6rem;
  color: inherit;
  text-decoration: none;
}

.time-slot span,
.time-slot small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .12em;
}

.time-slot strong {
  font-size: 2.15rem;
  font-weight: 400;
}

.time-slot p {
  margin: 0;
  color: var(--muted);
}

.slot-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .4rem;
}

.slot-meta small {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  padding: .45rem .65rem;
}

.time-slot.is-selected {
  border-color: var(--ink);
  background: var(--soft);
}

.reservation-page a[href*="reserve.php?date="]:not(.calendar-cell):not(.button),
.reservation-page a[href*="select_mat.php?date="]:not(.button) {
  text-decoration: none;
}

.reservation-current h2 {
  margin: 0;
  font-weight: 400;
  font-size: 2rem;
}

.reservation-list {
  display: grid;
  gap: .75rem;
}

.reservation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--bg);
}

.reservation-item p {
  margin: .35rem 0 0;
  color: var(--muted);
}

.cancel-locked {
  border: 1px solid var(--line);
  padding: .85rem 1rem;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .12em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .75rem;
}

.calendar-day {
  min-height: 128px;
  display: grid;
  align-content: space-between;
  gap: .5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--bg);
  text-decoration: none;
}

.calendar-day span,
.calendar-day small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .12em;
}

.calendar-day strong {
  font-size: 2.1rem;
  font-weight: 400;
}

.calendar-day.is-selected {
  background: var(--ink);
  color: var(--bg);
}

.calendar-day.is-selected span,
.calendar-day.is-selected small {
  color: rgba(246, 246, 241, .72);
}

.calendar-day.is-closed {
  opacity: .55;
}

.slot-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.slot-card {
  min-height: 170px;
  display: grid;
  align-content: start;
  gap: .65rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg);
  text-decoration: none;
}

.slot-card span,
.slot-card small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .12em;
}

.slot-card strong {
  font-size: 2rem;
  font-weight: 400;
}

.slot-card p {
  margin: 0;
  color: var(--muted);
}

.slot-card.is-selected {
  background: var(--ink);
  color: var(--bg);
}

.slot-card.is-selected p,
.slot-card.is-selected span,
.slot-card.is-selected small {
  color: rgba(246, 246, 241, .72);
}

.schedule-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.schedule-day {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.schedule-day h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 400;
}

.schedule-slots {
  display: grid;
  gap: .5rem;
}

.slot-button {
  border: 1px solid var(--line);
  padding: .75rem;
  text-decoration: none;
  background: var(--bg);
}

.slot-button.is-selected {
  background: var(--ink);
  color: var(--bg);
}

.mat-section {
  display: grid;
  gap: 1rem;
}

.mat-booking-form {
  display: grid;
  gap: 1rem;
}

.studio-map {
  position: relative;
  display: grid;
  grid-template-columns: .55fr .18fr 1.55fr .5fr .5fr .5fr 1.55fr .18fr .38fr;
  grid-template-rows: .36fr repeat(6, 1fr) .36fr;
  column-gap: .85rem;
  row-gap: .95rem;
  min-height: 760px;
  padding: 3.85rem 1.35rem 2.35rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle, rgba(5,5,5,.18) 1.5px, transparent 2px) 0 0 / 28px 28px,
    #fbf8ec;
}

.studio-map-large {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.studio-map-scroll {
  width: 100%;
}

.mat-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
}

.studio-label,
.studio-mirror {
  color: var(--ink);
  font-size: 1.2rem;
}

.studio-window {
  position: absolute;
  top: .75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.55rem;
}

.studio-entry {
  position: absolute;
  top: .35rem;
  right: .3rem;
  max-width: 150px;
  text-align: center;
  font-size: 1.55rem;
  line-height: 1.2;
}

.studio-window-line {
  grid-column: 3 / 7;
  grid-row: 1;
  align-self: end;
  justify-self: center;
  width: 78%;
  height: 7px;
  background: #c8c58d;
}

.studio-wc {
  grid-column: 1;
  grid-row: 2 / 4;
  display: grid;
  place-items: center;
  background: #d8d8d5;
  color: var(--ink);
  font-size: 1.55rem;
}

.studio-mirror {
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #c8c58d;
  writing-mode: vertical-rl;
  font-size: 1.45rem;
}

.mirror-left {
  grid-column: 1;
  grid-row: 5 / 8;
}

.mirror-top-left {
  grid-column: 2;
  grid-row: 2 / 4;
}

.mirror-right {
  grid-column: 8;
  grid-row: 1 / 8;
}

.mirror-bottom {
  grid-column: 2 / 8;
  grid-row: 8;
  writing-mode: horizontal-tb;
  transform: rotate(180deg);
  justify-self: center;
  width: 95%;
}

.mat {
  display: grid;
  place-items: center;
  min-height: 82px;
  border: 1px solid transparent;
  background: #e3e3d2;
  cursor: pointer;
  text-align: center;
}

.mat input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mat span {
  display: block;
  color: var(--ink);
  font-size: 1.45rem;
}

.mat small {
  color: var(--muted);
}

.mat.is-available:hover {
  border-color: var(--ink);
  background: var(--soft);
}

.mat.is-selected,
.mat:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.mat.is-selected span,
.mat.is-selected small,
.mat:has(input:checked) span,
.mat:has(input:checked) small {
  color: var(--bg);
}

.mat.is-occupied {
  background: #1f1f1f;
  cursor: not-allowed;
}

.mat.is-occupied span,
.mat.is-occupied small {
  color: var(--bg);
}

.mat-1 { grid-column: 3 / 5; grid-row: 2; }
.mat-2 { grid-column: 3 / 5; grid-row: 3; }
.mat-3 { grid-column: 5 / 7; grid-row: 5 / 7; }
.mat-4 { grid-column: 2 / 5; grid-row: 5; }
.mat-5 { grid-column: 2 / 5; grid-row: 6; }
.mat-6 { grid-column: 7 / 8; grid-row: 2; }
.mat-7 { grid-column: 7 / 8; grid-row: 3; }
.mat-8 { grid-column: 7 / 8; grid-row: 4; }
.mat-9 { grid-column: 7 / 8; grid-row: 5; }
.mat-10 { grid-column: 7 / 8; grid-row: 6; }

.mat-3 span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.mat-3 small {
  display: none;
}

.admin-cancel-form {
  display: grid;
  gap: .5rem;
  min-width: 280px;
}

.admin-cancel-form input {
  width: 100%;
  border: 1px solid var(--line);
  padding: .75rem;
  background: var(--bg);
  font: inherit;
}

.admin-reservation-table td {
  vertical-align: top;
}

.selected-mat-status {
  margin: 0;
  border: 1px solid var(--line);
  padding: 1rem;
  background: var(--surface);
  text-align: center;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .14em;
}

.auth-form form label {
  display: block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .95rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  margin-top: .5rem;
  font-family: inherit;
  font-size: 1rem;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.alert {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.alert--error { background: #fff4f1; color: #7a1706; }
.alert--success { background: #f0f8ee; color: #153d20; }

.membership-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  margin-top: 2rem;
}

.membership-card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.6rem;
}

.membership-card p { color: var(--muted); line-height: 1.65; }

.membership-card form {
  margin-top: auto;
}

.membership-type {
  margin: 0 0 1rem;
  color: var(--ink);
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .18em;
}

.membership-price {
  margin: auto 0 1rem;
  color: var(--ink);
  font-size: 2rem;
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.dashboard-card { padding: 1.5rem; }

.membership-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.membership-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.payment-table th,
.payment-table td {
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  text-align: left;
}

.payment-table th {
  background: var(--soft);
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .08em;
}

.payment-table tr:nth-child(even) { background: rgba(232, 232, 224, .5); }

.site-footer {
  padding: 2.25rem 1.25rem;
  background: var(--soft);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p { margin: 0; color: var(--muted); }

.footer-link,
.footer-address {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.social-links {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.social-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

@media (max-width: 768px) {
  .site-header__inner {
    align-items: center;
    flex-direction: column;
  }

  .main-nav { justify-content: center; }

  .page-content { padding-top: 1rem; }

  .hero {
    min-height: 58vh;
    padding: 3.5rem 1rem;
  }

  .features,
  .dashboard-grid,
  .admin-stat-grid,
  .step-grid,
  .class-grid,
  .coach-grid,
  .membership-grid {
    grid-template-columns: 1fr;
  }

  .billing-filters {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-widget__header {
    align-items: start;
    flex-direction: column;
  }

  .calendar-widget__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-day-name {
    display: none;
  }

  .calendar-cell {
    min-height: 118px;
  }

  .booking-stepper {
    grid-template-columns: 1fr;
  }

  .booking-stepper span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .booking-stepper span:last-child {
    border-bottom: 0;
  }

  .calendar-day {
    min-height: 110px;
  }

  .reservation-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-map-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    margin-inline: -1rem;
    padding: 0 1rem 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .studio-map {
    width: 820px;
    min-width: 820px;
    min-height: 640px;
    padding: 3.4rem 1rem 2rem;
    scroll-snap-align: start;
  }

  .studio-label,
  .studio-mirror {
    font-size: 1rem;
  }

  .studio-entry,
  .studio-window {
    font-size: 1.15rem;
  }

  .studio-wc {
    font-size: 1.2rem;
  }

  .mat {
    min-height: 72px;
  }

  .mat span {
    font-size: 1.12rem;
  }

  .mat small {
    font-size: .78rem;
  }

  .account-payment-table,
  .account-payment-table thead,
  .account-payment-table tbody,
  .account-payment-table tr,
  .account-payment-table th,
  .account-payment-table td {
    display: block;
  }

  .account-payment-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .account-payment-table thead {
    display: none;
  }

  .account-payment-table tr {
    margin-top: 1rem;
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .account-payment-table td {
    display: grid;
    grid-template-columns: minmax(110px, .8fr) 1fr;
    gap: .75rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: .85rem;
  }

  .account-payment-table td:last-child {
    border-bottom: 0;
  }

  .account-payment-table td::before {
    content: attr(data-label);
    color: var(--muted);
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .1em;
  }

  .section-heading h2 {
    font-size: 2.25rem;
  }

  .feature-panel { padding: 1.6rem; }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .membership-card {
    min-height: auto;
  }

  .social-links { justify-content: center; }
}

@media (min-width: 769px) and (max-width: 1080px) {
  .step-grid,
  .class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .mat-booking-form {
    gap: .85rem;
  }

  .studio-map-scroll {
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }

  .studio-map {
    display: block;
    width: min(100%, 430px);
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1.16;
    margin-inline: auto;
    padding: 0;
  }

  .studio-label,
  .studio-window-line,
  .studio-wc,
  .studio-mirror,
  .mat {
    position: absolute;
  }

  .studio-window {
    top: 2.5%;
    left: 50%;
    width: 54%;
    transform: translateX(-50%);
    text-align: center;
    font-size: clamp(.9rem, 4vw, 1.2rem);
  }

  .studio-entry {
    top: 1.5%;
    right: 1%;
    width: 24%;
    max-width: none;
    font-size: clamp(.82rem, 3.8vw, 1.05rem);
  }

  .studio-window-line {
    top: 8%;
    left: 31%;
    width: 36%;
    height: 5px;
  }

  .studio-wc {
    left: 3%;
    top: 12%;
    width: 13%;
    height: 31%;
    font-size: clamp(.9rem, 4vw, 1.15rem);
  }

  .studio-mirror {
    display: grid;
    place-items: center;
    min-height: 0;
    font-size: clamp(.78rem, 3.7vw, 1rem);
    writing-mode: vertical-rl;
  }

  .mirror-top-left {
    left: 18%;
    top: 12%;
    width: 2%;
    height: 31%;
  }

  .mirror-left {
    left: 3%;
    top: 48%;
    width: 2%;
    height: 43%;
  }

  .mirror-right {
    left: 89%;
    top: 8%;
    width: 2%;
    height: 83%;
  }

  .mirror-bottom {
    left: 12%;
    top: 92%;
    width: 76%;
    height: 5px;
    transform: rotate(180deg);
    writing-mode: horizontal-tb;
  }

  .mat {
    min-height: 0;
    gap: .12rem;
    padding: .25rem;
  }

  .mat span {
    font-size: clamp(.82rem, 4vw, 1.05rem);
  }

  .mat small {
    font-size: clamp(.62rem, 3vw, .76rem);
  }

  .mat-1,
  .mat-2 {
    left: 25%;
    width: 29%;
    height: 9.5%;
  }

  .mat-1 { top: 18%; }
  .mat-2 { top: 33%; }

  .mat-4,
  .mat-5 {
    left: 10%;
    width: 30%;
    height: 9.5%;
  }

  .mat-4 { top: 63%; }
  .mat-5 { top: 78%; }

  .mat-3 {
    left: 45%;
    top: 63%;
    width: 12%;
    height: 25%;
  }

  .mat-6,
  .mat-7,
  .mat-8,
  .mat-9,
  .mat-10 {
    left: 63%;
    width: 28%;
    height: 9.5%;
  }

  .mat-6 { top: 18%; }
  .mat-7 { top: 33%; }
  .mat-8 { top: 49%; }
  .mat-9 { top: 64%; }
  .mat-10 { top: 79%; }
}
