:root,
:root[data-theme="light"] {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f5f5f5;
  --text: #111111;
  --muted: #595959;
  --border: #d6d6d6;
  --accent: #002fa7;
  --success: #176b35;
  --warning: #805400;
  --danger: #b42323;
  --focus: #002fa7;
  --button: #000000;
  --button-text: #ffffff;
  --input-border: #767676;
  --line: var(--border);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--background);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #000000;
  --surface: #141414;
  --text: #f5f5f5;
  --muted: #b0b0b0;
  --border: #383838;
  --accent: #8aacff;
  --success: #80da9b;
  --warning: #f3c466;
  --danger: #ff9090;
  --focus: #8aacff;
  --button: #ffffff;
  --button-text: #000000;
  --input-border: #929292;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
img {
  max-width: 100%;
  filter: none;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 24px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 16px;
}
h3 {
  font-size: 18px;
}
p {
  line-height: 1.6;
}
a {
  color: inherit;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--accent);
}
button,
.button {
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  border: 1px solid var(--button);
  border-radius: 8px;
  color: var(--button-text);
  background: var(--button);
  padding: 12px 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  justify-content: center;
}
button:hover,
.button:hover {
  border-color: var(--accent);
  color: var(--button-text);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.button-secondary,
.logout {
  background: var(--background);
  color: var(--text);
  border-color: var(--input-border);
}
.button-secondary:hover,
.logout:hover {
  color: var(--text);
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: var(--background);
  font: inherit;
}
input[type="checkbox"] {
  width: 44px;
  height: 44px;
  accent-color: var(--accent);
}
label,
.field {
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
form {
  margin: 24px 0;
}
fieldset {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}
li {
  overflow-wrap: anywhere;
  margin: 12px 0;
}
[role="alert"] {
  border-left: 3px solid var(--danger);
  padding: 12px;
  color: var(--danger);
}
[role="status"],
.muted {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  gap: 16px 32px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 20px;
  gap: 12px;
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
  padding: 4px;
}
.theme-switch {
  min-width: 140px;
  font-size: 12px;
  gap: 4px;
}
.theme-switch select {
  font-size: 14px;
  padding: 8px;
  min-height: 44px;
}
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 24px 32px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10;
  background: var(--background);
  padding: 12px;
}
.skip-link:focus {
  top: 8px;
}
.public-main {
  max-width: 1440px;
  margin: auto;
  padding: 48px 32px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 24px;
}
.hero h1 {
  font-size: clamp(60px, 8vw, 120px);
  letter-spacing: -0.065em;
}
.hero p {
  max-width: 460px;
  font-size: 20px;
}
.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}
.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}
.public-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 24px;
}
.public-grid section {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: none;
  padding: 24px 0;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
}
.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-success {
  color: var(--success);
}
.status-warning {
  color: var(--warning);
}
.status-danger {
  color: var(--danger);
}
.empty-state {
  padding: 24px 0;
}
.empty-state h2 {
  font-size: 20px;
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: min(560px, calc(100% - 32px));
  padding: 24px;
}
dialog::backdrop {
  background: #0009;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table caption {
  text-align: left;
  font-weight: 650;
  padding: 16px 0;
}
.data-table th,
.data-table td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 16px 12px;
  overflow-wrap: anywhere;
}
.data-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 767px) {
  .site-header,
  .site-footer {
    padding: 16px;
  }
  .public-main {
    padding: 32px 16px;
  }
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 12px;
  }
  .site-header .brand {
    font-size: 17px;
    gap: 8px;
  }
  .site-header .theme-switch {
    width: 140px;
    grid-column: 2;
    grid-row: 1;
  }
  .site-header > .muted,
  .site-header nav {
    grid-column: 1 / -1;
  }
  .hero,
  .public-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero h1 {
    font-size: 64px;
  }
  .hero p {
    font-size: 18px;
  }
  section {
    padding: 16px;
  }
  .site-header nav {
    order: 3;
    width: 100%;
  }
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }
  .data-table caption {
    display: block;
    width: 100%;
  }
  .data-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .data-table td {
    border: 0;
    padding: 6px 0;
  }
  .data-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
/* Public compositions share the T04 monochrome / blue tokens. */
.club-site .site-header nav {
  flex-basis: 100%;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.club-site figure {
  margin: 0;
}
.club-site figcaption {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0;
}
.club-site .hero {
  padding: 24px 0 56px;
  border-bottom: 1px solid var(--border);
}
.club-site .hero-description {
  font-size: 16px;
  color: var(--muted);
}
.text-cta {
  margin: 12px 16px;
}
.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 64px 0 24px;
}
.section-heading h2 {
  margin: 0;
}
.editorial {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding: 40px 0;
}
.prose {
  white-space: normal;
  max-width: 75ch;
}
.page-lead {
  max-width: 760px;
  font-size: 20px;
  margin-bottom: 40px;
}
.direction-grid,
.coach-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.direction-grid article {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.folio {
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.06em;
  display: block;
  margin-bottom: 32px;
}
.coach-card img {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.coach-card h2 {
  font-size: 22px;
  margin: 20px 0 8px;
}
.price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.price-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 8px;
}
.price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.event-list article {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.event-list p {
  color: var(--muted);
  margin: 8px 0;
}
.public-faq {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.public-faq summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  font-size: 18px;
  font-weight: 650;
}
.trial-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}
.trial-layout aside {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.trial-layout aside h2 {
  margin-top: 24px;
}
.trial-form .field {
  margin-bottom: 24px;
}
.checkbox-field {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.contact-phone {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 650;
}
@media (max-width: 1023px) {
  .direction-grid,
  .coach-grid,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .editorial,
  .trial-layout,
  .event-list article,
  .price-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .coach-grid,
  .direction-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    margin-top: 40px;
  }
  .club-site .hero {
    padding-top: 0;
  }
  .text-cta {
    margin-left: 0;
  }
}
.content-editor-controls {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}
.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}
.content-tariff-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.photo-editor {
  border-top: 1px solid var(--border);
  margin: 24px 0;
  padding-top: 24px;
}
.photo-editor figure {
  margin: 16px 0;
}
.photo-editor form {
  display: grid;
  gap: 16px;
}
.legal-text {
  max-width: 85ch;
  white-space: normal;
  line-height: 1.8;
}
@media (max-width: 767px) {
  .content-editor-controls {
    grid-template-columns: 1fr;
  }
}
