:root {
  --ink: #111315;
  --paper: #f5f3ed;
  --lime: #c7f04a;
  --coral: #ff6a4a;
  --blue: #2f6fbb;
  --muted: #64676a;
  --line: #dbd8cf;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
img { display: block; width: 100%; object-fit: cover; }
img.image-fallback {
  background:
    linear-gradient(135deg, rgba(199, 240, 74, .9), rgba(47, 111, 187, .88)),
    repeating-linear-gradient(45deg, rgba(17, 19, 21, .14) 0 12px, transparent 12px 24px);
}
a { color: inherit; text-decoration: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(245, 243, 237, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.logo { font-weight: 900; font-size: 1.25rem; }
nav { display: flex; gap: 1rem; color: var(--muted); font-weight: 800; }
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: end;
  padding: clamp(1rem, 4vw, 3.5rem);
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  height: 100%;
  filter: saturate(.95) brightness(.72);
}
.hero-panel {
  position: relative;
  max-width: 780px;
  color: white;
  padding-bottom: clamp(1rem, 5vw, 4rem);
}
.hero-panel p, .heading p, .trainers p:first-child {
  margin: 0 0 .6rem;
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--lime);
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: .98; }
h1 { font-size: clamp(3rem, 9vw, 8.5rem); max-width: 10ch; }
.hero-panel a, button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  border: 0;
  border-radius: 6px;
  padding: .85rem 1.1rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.section { padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 4vw, 3.5rem); }
.heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.heading h2, .trainers h2 { font-size: clamp(2rem, 5vw, 5rem); max-width: 11ch; }
.class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.class-grid article, .plan article {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
  background: white;
}
.class-grid span {
  display: inline-flex;
  border-radius: 999px;
  padding: .35rem .6rem;
  background: var(--coral);
  color: white;
  font-size: .75rem;
  font-weight: 900;
}
.class-grid h3 { margin-top: 1.2rem; font-size: 2rem; }
.class-grid p, .trainers p:last-child, .plan p { color: var(--muted); line-height: 1.6; }
.trainers {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, .8fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  background: #111315;
  color: white;
}
.trainers img { aspect-ratio: 4 / 3; border-radius: 8px; }
.controls { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; }
button.goal { background: white; border: 1px solid var(--line); }
button.goal.active { background: var(--blue); color: white; border-color: var(--blue); }
.plan {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.plan strong { display: block; margin-bottom: .6rem; color: var(--blue); }
footer { padding: 1.5rem; text-align: center; color: var(--muted); }
@media (max-width: 780px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  nav { flex-wrap: wrap; }
  .hero { min-height: 78vh; }
  .heading { display: block; }
  .class-grid, .trainers, .plan { grid-template-columns: 1fr; }
  .class-grid article, .plan article { min-height: auto; }
}
