:root {
  color-scheme: dark;
  --black: #000000;
  --white: #ffffff;
  --blue: #0066cc;
  --gray: #afafaf;
  --line: #262626;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 0 20px;
}

.masthead {
  min-height: 43vh;
  padding: 28px 0 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--white);
}

.brand {
  width: fit-content;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.location-label {
  margin: auto 0 20px;
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.5rem, 12vw, 5.8rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
}

h2,
h3,
p {
  margin-top: 0;
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-item h2 {
  margin: 0;
}

.accordion-trigger {
  width: 100%;
  min-height: 76px;
  padding: 20px 0;
  border: 0;
  background: transparent;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font-size: clamp(1rem, 4.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.number {
  display: inline-block;
  width: 32px;
  color: var(--blue);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  vertical-align: 0.15em;
}

.symbol {
  flex: none;
  color: var(--blue);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}

.accordion-trigger:focus-visible,
.text-link:focus-visible,
.brand:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.accordion-panel {
  padding: 0 0 32px 32px;
}

.accordion-panel[hidden] {
  display: none;
}

.panel-note,
.prose p {
  max-width: 560px;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.58;
}

.schedule-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}

.schedule-tab {
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.schedule-tab.is-active {
  border-bottom-color: var(--blue);
  color: var(--white);
}

.schedule-tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.prose p strong,
.address strong {
  color: var(--white);
}

.schedule-group {
  margin-top: 24px;
}

.schedule-group[hidden] {
  display: none;
}

.schedule-group h3 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.class-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.class-row time {
  color: var(--gray);
  font-size: 0.84rem;
  line-height: 1.4;
}

.class-row strong,
.class-row span {
  display: block;
}

.class-row strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.class-row span {
  margin-top: 4px;
  color: var(--gray);
  font-size: 0.8rem;
  line-height: 1.35;
}

.price-block {
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 2px solid var(--blue);
}

.price-block span,
.price-block strong,
.price-block small {
  display: block;
}

.price-block span {
  color: var(--gray);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.price-block strong {
  margin: 7px 0 4px;
  font-size: clamp(1.45rem, 6vw, 2rem);
  letter-spacing: -0.03em;
}

.price-block small {
  color: var(--gray);
  font-size: 0.82rem;
}

.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-underline-offset: 5px;
  text-decoration-color: var(--blue);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

footer {
  min-height: 150px;
  padding: 44px 0 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: var(--gray);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

footer a {
  text-underline-offset: 4px;
}

@media (min-width: 720px) {
  .page-shell {
    padding: 0 34px;
  }

  .masthead {
    min-height: 520px;
    padding-top: 36px;
    padding-bottom: 68px;
  }

  .accordion-trigger {
    min-height: 92px;
  }

  .accordion-panel {
    padding-right: 30px;
    padding-bottom: 44px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .accordion-panel:not([hidden]) {
    animation: reveal 180ms ease-out;
  }

  @keyframes reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
