:root {
  --red: #900000;
  --red-bright: #c01818;
  --black: #050505;
  --ink: #171717;
  --muted: #6e6e6e;
  --line: #dedede;
  --paper: #ffffff;
  --soft: #f5f2f2;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: inherit;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 10px clamp(18px, 4vw, 48px);
  background: rgba(5, 5, 5, 0.96);
  color: #fff;
  border-bottom: 4px solid var(--red);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 132px;
}

.brand img {
  width: min(190px, 42vw);
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a,
.bottom-nav a {
  text-decoration: none;
  font-weight: 800;
}

.main-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
}

.main-nav a.active,
.main-nav a:hover {
  color: #fff;
  background: var(--red);
}

.menu-button {
  display: none;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font-weight: 800;
}

.menu-button span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

main {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.page {
  display: none;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) clamp(18px, 4vw, 42px);
}

.page.active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: clamp(26px, 5vw, 56px);
  min-height: min(670px, calc(100vh - 118px));
}

.hero h1,
.section-head h1 {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero p,
.section-head p,
.band p,
.notice p {
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-copy {
  max-width: 680px;
}

.hero-logo {
  display: grid;
  place-items: center;
  background: var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  padding: 24px;
}

.hero-logo img {
  width: 100%;
  max-width: 430px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

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

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.primary:hover {
  background: var(--red-bright);
}

.button.secondary {
  background: var(--black);
  color: #fff;
}

.feature-grid,
.course-list,
.teacher-list,
.contact-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.feature-grid article,
.course-card,
.teacher-list article,
.contact-block,
.notice,
.booking-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.feature-grid article,
.course-card,
.teacher-list article,
.contact-block,
.notice {
  padding: 20px;
}

h1,
h2 {
  letter-spacing: 0;
}

h2 {
  margin: 0 0 8px;
  line-height: 1.16;
}

p {
  margin: 0 0 12px;
}

.feature-grid p,
.course-card p,
.teacher-list p,
.contact-block p {
  color: var(--muted);
  line-height: 1.55;
}

.band {
  margin-top: 34px;
  padding: clamp(28px, 6vw, 48px);
  background: var(--black);
  color: #fff;
  border-radius: var(--radius);
}

.band .eyebrow {
  color: #ffb3b3;
}

.band h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  text-transform: uppercase;
}

.section-head {
  max-width: 780px;
  margin-bottom: 26px;
}

.section-head h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}

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

.course-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.course-card dl {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.course-card dl div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
  font-weight: 850;
}

.program {
  margin-top: 26px;
  padding: 26px 0;
}

.program ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.program li {
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.program li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

.schedule {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1.25fr;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  line-height: 1.42;
}

.schedule-row:first-child {
  border-top: 0;
}

.schedule-head {
  background: var(--black);
  color: #fff;
  font-weight: 900;
}

.notice {
  margin-top: 24px;
  background: var(--soft);
}

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

.teacher-list article {
  border-left: 5px solid var(--red);
}

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

.contact-block a:not(.button) {
  display: block;
  margin: 8px 0;
  color: var(--red);
  font-weight: 900;
}

.contact-block .button {
  margin-top: 10px;
  width: 100%;
}

.booking-form {
  padding: clamp(18px, 4vw, 28px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #2b2b2b;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 118px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(144, 0, 0, 0.18);
  border-color: var(--red);
}

.privacy {
  grid-template-columns: 22px 1fr;
  align-items: start;
  font-weight: 700;
  line-height: 1.45;
}

.privacy input {
  min-height: 22px;
  height: 22px;
  margin-top: 1px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit-button {
  width: 100%;
}

.form-status {
  margin: 16px 0 0;
  min-height: 24px;
  font-weight: 850;
}

.form-status.success {
  color: #126b25;
}

.form-status.error {
  color: var(--red);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  min-height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(5, 5, 5, 0.98);
  border-top: 3px solid var(--red);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 8px 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.bottom-nav a.active {
  color: #fff;
  background: var(--red);
}

@media (max-width: 900px) {
  .app-header {
    min-height: 68px;
  }

  .menu-button {
    display: inline-grid;
    grid-template-columns: 16px auto;
  }

  .menu-button span:nth-child(2),
  .menu-button span:nth-child(3) {
    grid-column: 1;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    padding: 12px 18px 16px;
    background: var(--black);
    border-bottom: 3px solid var(--red);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-logo {
    aspect-ratio: 16 / 10;
    order: -1;
  }

  .feature-grid,
  .course-list,
  .teacher-list,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    background: #fff;
  }

  .app-header {
    padding-inline: 14px;
  }

  .brand img {
    width: 168px;
  }

  .page {
    padding-inline: 16px;
  }

  .hero h1,
  .section-head h1 {
    line-height: 1.02;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .feature-grid,
  .course-list,
  .teacher-list,
  .contact-grid,
  .form-grid,
  .program ul {
    grid-template-columns: 1fr;
  }

  .schedule {
    border: 0;
    display: grid;
    gap: 12px;
  }

  .schedule-head {
    display: none;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .schedule-row span:first-child {
    color: var(--red);
    font-weight: 900;
  }

  .bottom-nav {
    display: grid;
  }
}
