.gym {
  --gym-lime: #c6f24e;
  --gym-dark: #11140f;
  --gym-paper: #f5f5f0;
  --gym-ink: #171a13;
  --gym-muted: #505547;
  --gym-rule: #d6d9cc;
  background: var(--gym-paper);
  color: var(--gym-ink);
}

.gym-wrap {
  width: min(100% - 2 * clamp(20px, 5vw, 76px), 1240px);
  margin-inline: auto;
}

.gym-intro { background: var(--gym-dark); color: #f4f6ed; }

.gym-crumb {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 24px;
  font-size: .875rem;
  color: #c0c7b5;
}

.gym-crumb a { text-decoration: underline; text-underline-offset: .2em; }
.gym-crumb [aria-current] { color: #f4f6ed; }

.gym-lead {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(410px, 51vw, 690px);
  overflow: hidden;
  margin-block: 22px;
  border: 1px solid #3d4730;
  border-radius: clamp(18px, 3vw, 36px);
  background: #131710;
}

.gym-lead-copy {
  padding: clamp(28px, 5vw, 76px);
  width: min(52%, 630px);
}

.gym-hero {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 25%;
}

.gym-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 51%; }

.gym-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #131710, #131710ed 8%, #13171081 30%, transparent 53%);
}

.gym-label {
  color: var(--gym-lime);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gym h1 {
  margin-block: .12em;
  font-size: clamp(3.65rem, 11vw, 9.5rem);
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.075em;
}

.gym-subtitle {
  font-size: clamp(1.8rem, 3.8vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.gym-subtitle em { color: var(--gym-lime); }

.gym-copy {
  max-width: 39ch;
  margin-top: 18px;
  color: #d0d5c7;
  font-size: 1rem;
  line-height: 1.6;
}

.gym-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 24px;
  padding-inline: 18px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--gym-lime);
  color: var(--gym-dark);
  font-size: .9375rem;
  font-weight: 700;
}

.gym-jump:hover { background: #daf997; }

.gym figure { margin: 0; }
.gym-layout img {
  width: 100%;
  height: auto;
}

.gym-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding-block: 23px 30px;
  border-top: 1px solid #3a4133;
}

.gym-facts dt { color: #bbc3b0; font-size: .875rem; }
.gym-facts dd { margin: 5px 0 0; font-weight: 600; }

.gym-section {
  padding-block: clamp(44px, 7vw, 96px);
  border-bottom: 1px solid var(--gym-rule);
  scroll-margin-top: 24px;
}

.gym-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: end;
  gap: 18px clamp(24px, 5vw, 78px);
  margin-bottom: 26px;
}

.gym h2 {
  font-size: clamp(2.25rem, 5.5vw, 4.75rem);
  font-weight: 500;
  line-height: 1;
  text-wrap: balance;
}

.gym h2 em { color: #4b6017; }

.gym-section-head p {
  max-width: 52ch;
  color: var(--gym-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.gym-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 70px);
}

.gym-context p,
.gym-layout-copy > p:last-child {
  color: var(--gym-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.gym-layout-copy > p:last-child { margin-top: 18px; }

.gym-section .gym-label {
  margin-bottom: 10px;
  color: #4b6017;
}

.gym-booking-board, .gym-membership-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
}

.gym-booking-photo, .gym-screen-pair, .gym-poster {
  border-radius: clamp(16px, 2.4vw, 32px);
  overflow: hidden;
}

.gym-booking-photo { min-height: 100%; background: #161a13; }
.gym-booking-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }

.gym-screen-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: clamp(10px, 2.2vw, 30px);
  padding: clamp(18px, 4vw, 60px);
  color: #171a13;
  background: radial-gradient(ellipse at 50% 28%, #f1f8c2, #c9e580);
}

.gym-screen-pair a {
  display: block;
  overflow: hidden;
  border: 4px solid #141710;
  border-radius: clamp(13px, 2vw, 25px);
  background: #131710;
  box-shadow: 0 18px 26px #283e2340;
}

.gym-screen-pair a:hover { outline: 2px solid #3a5317; outline-offset: 4px; }
.gym-screen-pair img { width: 100%; height: auto; }
.gym-screen-pair figcaption { margin-top: 14px; font-size: .9375rem; font-weight: 700; text-align: center; }

.gym-membership-board { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.gym-membership-screens {
  align-items: end;
  color: #f4f6ed;
  background: radial-gradient(ellipse at 24% 23%, #3a4624, #161a13 70%);
}
.gym-membership-screens figure { width: min(100%, 218px); margin-inline: auto; }
.gym-membership-screens figure + figure { width: min(100%, 190px); }
.gym-membership-screens a { border-color: #41493b; box-shadow: 0 20px 28px #080a07a8; }
.gym-membership-screens a:hover { outline-color: var(--gym-lime); }
.gym-poster { position: relative; min-height: 0; background: #202815; }
.gym-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 43% 50%; }
.gym-poster figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(20px, 2.7vw, 40px);
  color: var(--gym-lime);
  background: linear-gradient(transparent, #10130c 92%);
  font-size: clamp(2rem, 4.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
}

.gym-plan-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.gym-plan-types li {
  padding: 14px clamp(10px, 2vw, 24px);
  border-top: 3px solid var(--plan-accent);
  border-radius: 2px 2px 10px 10px;
  background: #e9ede3;
  font-size: .9375rem;
  font-weight: 700;
}

.gym-layout {
  position: relative;
  overflow: hidden;
  border-radius: clamp(16px, 2.4vw, 32px);
  background: #e7f2d2;
}

.gym-layout-copy {
  position: absolute;
  inset: 0 0 0 60%;
  display: grid;
  align-content: center;
  padding: clamp(20px, 3vw, 44px);
}

.gym-layout-copy h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); }

.gym-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gym-palette li {
  min-height: clamp(122px, 15vw, 210px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: clamp(14px, 2vw, 24px);
  border-radius: 12px;
  background: var(--swatch);
  color: var(--swatch-ink);
  font-size: .9375rem;
  font-weight: 700;
}

.gym-palette code { font-size: .875rem; }

.gym-more { padding-block: clamp(44px, 6vw, 80px); }
.gym-more h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.gym-more ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gym-more a { display: block; padding: 18px; border: 1px solid var(--gym-rule); border-radius: 8px; font-weight: 700; }
.gym-more a:hover { border-color: #4b6017; }
.gym-more span { display: block; margin-top: 4px; color: var(--gym-muted); font-size: .875rem; font-weight: 400; }

@media (max-width: 760px) {
  .gym-section-head, .gym-context, .gym-booking-board { grid-template-columns: 1fr; }
  .gym-lead { display: flex; flex-direction: column-reverse; min-height: auto; align-items: stretch; }
  .gym-lead-copy { width: auto; }
  .gym-hero { position: relative; inset: auto; }
  .gym-hero img { height: auto; aspect-ratio: 4 / 3; }
  .gym-hero::after { background: linear-gradient(0deg, #131710, transparent 23%); }
  .gym-booking-photo img { height: auto; }
  .gym-screen-pair { padding-inline: clamp(18px, 10vw, 60px); }
  .gym-membership-board { grid-template-columns: minmax(0, 1fr); }
  .gym-poster { aspect-ratio: 4 / 3; }
  .gym-poster img { object-position: 50% 43%; }
  .gym-layout figure { overflow: hidden; }
  .gym-layout img { max-width: none; width: 160%; }
  .gym-layout-copy { position: static; padding-top: 8px; }
  .gym-facts { grid-template-columns: 1fr 1fr; }
  .gym-section-head h2 { text-wrap: initial; }
}

@media (max-width: 560px) {
  .gym-palette, .gym-plan-types { grid-template-columns: 1fr 1fr; }
  .gym-more ul { grid-template-columns: 1fr; }
}
