/* Extensions to the retained Mastery visual system: same palette, fonts, radii and motion. */
.brand {
  letter-spacing: 0.13em;
  gap: 10px;
  line-height: 1.1;
  flex-shrink: 0;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand small {
  display: block;
  font: 500 8px var(--font-b);
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 5px;
}
.site-header__bar {
  gap: 10px;
}
.nav {
  gap: 0;
}
.nav a:not(.btn) {
  padding: 10px 12px;
  letter-spacing: 0.14em;
}
.nav .btn {
  letter-spacing: 0.08em;
  padding-inline: 18px;
}
.hero__bg {
  background:
    radial-gradient(
      ellipse at 50% 45%,
      rgb(var(--bg-rgb) / 0.57),
      rgb(var(--bg-rgb) / 0.2) 80%
    ),
    linear-gradient(
      180deg,
      rgb(var(--bg-rgb) / 0.15),
      rgb(var(--bg-rgb) / 0.9)
    ),
    url(./hero.png) center/cover;
}
.hero h1 {
  max-width: 16em;
  font-size: calc(clamp(2.1rem, 4.5vw, 4.4rem) * var(--hs, 1));
}
.hero__text {
  padding-bottom: 105px;
}
.hero .lead {
  max-width: 34em;
}
.hero-caption {
  position: absolute;
  right: 24px;
  bottom: 28px;
  font: 500 9px var(--font-b);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero .peaks {
  opacity: 0.2;
}
.hero__stats {
  margin-top: 50px;
}
.micro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.ccard {
  min-height: 420px;
}
.ccard__lvl {
  letter-spacing: 0.1em;
  font-size: 10px;
}
.ccard__price {
  font-size: 14px;
}
.ccard__top {
  flex-wrap: wrap;
}
.bento .ccard:first-child {
  min-height: 520px;
}
.pricing-note {
  text-align: center;
  margin-top: 28px;
}
.zone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
}
.zone-grid .stair {
  min-height: calc(230px + var(--i) * 28px);
  padding: 26px;
}
.zone-grid .stair__letter {
  font-size: 7rem;
  letter-spacing: -0.1em;
  right: 20px;
  top: 10px;
}
.zone-grid .stair__name {
  font-size: 19px;
}
.zone-grid .stair__en {
  max-width: 16em;
  font-size: 14px;
}
.zone-grid .stair__n {
  margin-bottom: 14px;
}
.zone-grid .stair__count {
  margin-top: 24px;
  color: var(--accent);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 34px 28px;
  background: linear-gradient(155deg, var(--surface), transparent);
}
.price-card > .eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
}
.price-card h3 {
  font-size: 1.05rem;
  min-height: 2.5em;
}
.price-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
}
.price-card > p:nth-of-type(2) {
  min-height: 3.4em;
}
.price-card__value {
  font: 800 64px/1.1 var(--font-h);
  color: white;
  letter-spacing: -0.05em;
  margin-top: 24px;
}
.price-card__value b {
  font-weight: 800;
}
.price-card__value > span {
  font-size: 26px;
  color: var(--accent);
  letter-spacing: 0;
}
.price-card__period {
  min-height: 2em;
  margin-top: 8px !important;
  font-size: 13px !important;
}
.price-card .checks {
  margin: 24px 0 32px;
  font-size: 14px;
  gap: 14px;
}
.price-card > .btn {
  margin-top: auto;
  padding-inline: 16px;
  letter-spacing: 0.08em;
  font-size: 11px;
  width: 100%;
}
.price-card--featured {
  border-color: var(--accent);
  background: linear-gradient(
    160deg,
    rgb(var(--accent-rgb) / 0.13),
    rgb(var(--accent-rgb) / 0.015)
  );
  box-shadow: 0 24px 80px rgb(var(--accent-rgb) / 0.06);
}
.price-card__flag {
  position: absolute;
  top: -14px;
  right: 22px;
  border-radius: var(--pill);
  background: var(--accent);
  padding: 6px 15px;
  color: var(--ink);
  font: 600 10px var(--font-b);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trainer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.trainer-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  overflow: hidden;
  text-decoration: none;
  background: var(--surface);
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.trainer-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}
.trainer-card > .photo {
  min-height: 350px;
}
.trainer-card > .photo img {
  object-position: center top;
}
.trainer-card > div:last-child {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trainer-card .eyebrow {
  font-size: 9px;
  letter-spacing: 0.18em;
}
.trainer-card .eyebrow::before {
  width: 20px;
}
.trainer-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}
.trainer-card h3 {
  font-size: 1.25rem;
}
.trainer-card .link-arrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-top: 12px;
}
.hours-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.hours-panel h2 {
  margin-bottom: 24px;
}
.hours-panel p {
  color: var(--muted);
}
.opening-hours > div {
  padding: 24px 0;
  border-bottom: 1px solid var(--stroke);
}
.opening-hours > div:first-child {
  padding-top: 0;
}
.opening-hours span {
  display: block;
  font: 500 11px var(--font-b);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.opening-hours strong {
  display: block;
  font: 800 clamp(1.8rem, 3vw, 2.8rem)/1.4 var(--font-h);
  margin-top: 10px;
  white-space: nowrap;
}
.opening-hours small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 20px;
}
.detail-head {
  padding-top: calc(var(--nav-h) + 65px);
  padding-bottom: 80px;
}
.detail-head .chero {
  gap: 48px;
}
.detail-head .course-facts {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.detail-head .chero > .photo {
  height: 560px;
  aspect-ratio: 4/5;
}
.detail-head .chero > .photo img {
  object-position: center;
}
.detail-head h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  overflow-wrap: break-word;
}
.detail-head .lead {
  margin-top: 24px;
}
.detail-head .course-facts {
  margin-top: 32px;
}
.detail-head .btn {
  font-size: 11px;
  letter-spacing: 0.1em;
  padding-inline: 22px;
}
.detail-head .button-group {
  gap: 12px;
}
.aside .btn {
  width: 100%;
  padding-inline: 16px;
  font-size: 11px;
  letter-spacing: 0.09em;
}
.aside h3 {
  line-height: 1.4;
}
.reading {
  max-width: 820px;
  margin: auto;
}
.reading > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.reading .notice {
  font-size: 15px;
}
.faq-list {
  max-width: 900px;
}
.pricing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}
.pricing-toolbar .eyebrow {
  margin: 0;
}
.tariff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.tariff {
  padding: 30px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.tariff h3 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 28px;
}
.tariff dl {
  margin: 0;
}
.tariff dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--stroke);
  font-size: 15px;
}
.tariff dl > div:last-child {
  border: 0;
}
.tariff dt {
  color: var(--text-secondary);
}
.tariff dd {
  margin: 0;
  white-space: nowrap;
  color: white;
  font-weight: 600;
}
.schedule-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}
.schedule-tools .field {
  min-width: min(100%, 330px);
}
.day-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.day-filters .chip {
  font-size: 12px;
  padding-inline: 14px;
}
.schedule {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  overflow: hidden;
  align-items: stretch;
}
.schedule__day {
  min-width: 0;
  border-right: 1px solid var(--stroke);
  background: var(--surface);
}
.schedule__day:last-child {
  border: 0;
}
.schedule__day > h2 {
  font: 600 10px var(--font-b);
  letter-spacing: 0.08em;
  padding: 20px 12px;
  margin: 0;
  border-bottom: 1px solid var(--stroke);
  min-height: 72px;
}
.schedule__day > h2 > span {
  display: block;
  font: 800 24px var(--font-h);
  color: var(--accent);
  margin-bottom: 8px;
}
.schedule__day > div {
  padding: 8px;
}
.schedule__class {
  padding: 16px 8px;
  border-bottom: 1px solid var(--stroke);
}
.schedule__class:last-child {
  border: 0;
}
.schedule__class time {
  display: block;
  color: var(--accent);
  font: 800 20px var(--font-h);
  margin-bottom: 16px;
}
.schedule__title {
  display: block;
  font: 600 11px/1.45 var(--font-h);
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: break-word;
}
.schedule__title:hover {
  color: var(--accent);
}
.schedule__class p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 12px 0 18px;
}
.schedule__book {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font: 600 10px var(--font-b);
  text-decoration: none;
  color: var(--accent);
  padding-block: 8px;
  letter-spacing: 0.02em;
}
.schedule.schedule--list {
  display: block;
  border: 0;
  border-radius: 0;
  background: none;
}
.schedule.schedule--list .schedule__day {
  border: 0;
  background: none;
  margin-bottom: 36px;
}
.schedule.schedule--list .schedule__day > h2 {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  font: 600 16px var(--font-h);
  color: var(--white);
  min-height: 0;
}
.schedule.schedule--list .schedule__day > h2 > span {
  font-size: 16px;
  margin: 0;
}
.schedule.schedule--list .schedule__day > div {
  padding: 0;
}
.schedule.schedule--list .schedule__class {
  display: grid;
  grid-template-columns: 90px 1fr 220px 110px;
  gap: 24px;
  align-items: center;
  padding: 22px 20px;
  background: var(--surface);
  margin-top: 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
}
.schedule.schedule--list .schedule__class time,
.schedule.schedule--list .schedule__class p {
  margin: 0;
}
.schedule.schedule--list .schedule__title {
  font-size: 14px;
}
.schedule.schedule--list .schedule__book {
  font-size: 12px;
  min-height: 44px;
  align-items: center;
}
.schedule.schedule--filtered:not(.schedule--list) {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.fitness-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.gallery-button {
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: left;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  font: 600 15px var(--font-b);
}
.gallery-button:hover {
  border-color: var(--accent);
}
.gallery-button > .photo {
  aspect-ratio: 16/10;
}
.gallery-button > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}
.gallery-button b {
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
}
.wide-photo {
  aspect-ratio: 16/7;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
}
.wide-photo img {
  object-position: center;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.contact-item {
  border-top: 1px solid var(--stroke);
  padding: 20px 0;
}
.contact-item > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.contact-item > strong {
  display: block;
  font-size: 17px;
  line-height: 1.7;
  margin-top: 10px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.contact-item > small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.location-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 32px;
  background:
    radial-gradient(
      ellipse at 70% 30%,
      rgb(var(--accent-rgb) / 0.1),
      transparent 70%
    ),
    repeating-linear-gradient(
      35deg,
      transparent,
      transparent 40px,
      rgb(var(--white-rgb) / 0.03) 41px,
      transparent 43px
    );
}
.location-pin {
  display: block;
  color: var(--accent);
  font-size: 50px;
}
.location-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0 0;
}
.form-heading {
  font-size: 1.35rem;
}
.contact-layout .form {
  margin-top: 30px;
}
.form select option,
.schedule-tools select option {
  background: var(--bg2);
  color: white;
}
.form > .btn {
  font-size: 11px;
  letter-spacing: 0.1em;
  padding-inline: 20px;
  width: 100%;
}
.booking-context {
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  background: rgb(var(--accent-rgb) / 0.08);
  padding: 18px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--accent-light);
}
.demo-index {
  position: fixed;
  z-index: 50;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-radius: var(--pill);
  background: rgb(var(--bg2-rgb) / 0.92);
  border: 1px solid rgb(var(--accent-rgb) / 0.5);
  backdrop-filter: blur(10px);
  padding: 0 16px;
  color: var(--accent);
  text-decoration: none;
  font: 600 11px var(--font-b);
  box-shadow: 0 4px 20px rgb(var(--ink-rgb) / 0.33333);
}
.lightbox {
  width: min(1100px, 96vw);
  max-width: 96vw;
  max-height: 94vh;
  background: var(--bg2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  color: var(--text);
  padding: 56px 20px 20px;
}
.lightbox::backdrop {
  background: rgb(var(--ink-rgb) / 0.9);
  backdrop-filter: blur(8px);
}
.lightbox img {
  max-height: 72vh;
  width: 100%;
  object-fit: contain;
}
.lightbox p {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.lightbox__close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--accent);
  background: var(--surface);
  font-size: 26px;
  cursor: pointer;
}
.pages-group {
  margin-bottom: 56px;
}
.pages-group h2 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 24px;
}
.page-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.page-links a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: 15px;
}
.page-links a:hover {
  border-color: var(--accent);
}
.page-links span {
  font: 600 11px var(--font-b);
  color: var(--muted);
}
.page-links b {
  margin-left: auto;
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
}
.site-footer__bottom a {
  white-space: nowrap;
}
.site-footer {
  padding-bottom: 85px;
}
.site-footer .brand {
  font-size: 14px;
}
.site-footer .brand img {
  width: 32px;
  height: 32px;
}
.site-footer .micro {
  font-size: 12px;
}
.site-footer strong {
  color: var(--text);
  font-weight: 500;
}
.course-facts b {
  line-height: 1.6;
}
.ccard:focus-visible {
  outline-offset: 5px;
}
@media (max-width: 1200px) and (min-width: 901px) {
  .nav a:not(.btn) {
    font-size: 10px;
    padding-inline: 9px;
  }
  .nav .btn {
    font-size: 10px;
    padding-inline: 12px;
  }
  .brand {
    font-size: 12px;
  }
  .brand small {
    font-size: 7px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 1000px) {
  .schedule {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 0;
    border-radius: 0;
    gap: 12px;
  }
  .schedule__day {
    border: 1px solid var(--stroke) !important;
    border-radius: var(--r-md);
    overflow: hidden;
  }
  .schedule__title {
    font-size: 12px;
  }
  .schedule__class p {
    font-size: 12px;
  }
  .schedule__book {
    font-size: 12px;
  }
  .trainer-card {
    grid-template-columns: 1fr;
  }
  .trainer-card > .photo {
    min-height: 0;
    height: 330px;
  }
  .trainer-card > div:last-child {
    padding: 28px;
  }
  .zone-grid {
    grid-template-columns: 1fr 1fr;
  }
  .zone-grid .stair {
    min-height: 260px;
  }
  .contact-layout {
    gap: 36px;
  }
  .opening-hours strong {
    font-size: 2rem;
  }
}
@media (max-width: 900px) {
  .nav a:not(.btn) {
    padding: 16px 0;
    letter-spacing: 0;
  }
  .nav .btn {
    padding-inline: 18px;
    letter-spacing: 0.08em;
  }
  .hero__text {
    padding-bottom: 85px;
  }
  .hero__grid {
    min-height: 70vh;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 7vw, 3.6rem);
  }
  .hero-caption {
    display: none;
  }
  .detail-head .chero > .photo {
    height: auto;
    max-height: 430px;
    aspect-ratio: 16/11;
  }
  .detail-head .chero {
    gap: 32px;
  }
  .hours-panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .opening-hours strong {
    font-size: 2.5rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .price-grid {
    gap: 14px;
  }
  .price-card {
    padding: 30px 20px;
  }
  .price-card__value {
    font-size: 50px;
  }
  .price-card .checks {
    font-size: 13px;
  }
  .price-card > .btn {
    font-size: 10px;
    padding-inline: 10px;
    letter-spacing: 0.03em;
  }
  .price-card > .eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  .price-card .eyebrow::before {
    width: 16px;
  }
  .schedule.schedule--list .schedule__class {
    grid-template-columns: 70px 1fr 160px;
    gap: 16px;
  }
  .schedule.schedule--list .schedule__book {
    grid-column: 2/-1;
  }
  .schedule-tools {
    align-items: center;
  }
  .hero .peaks {
    width: 150%;
    opacity: 0.16;
  }
}
@media (max-width: 700px) {
  .section {
    padding: 72px 0;
  }
  .page-head {
    padding-top: calc(var(--nav-h) + 36px);
  }
  .detail-head {
    padding-bottom: 45px;
  }
  .hero__stats {
    gap: 28px;
  }
  .hero__stats b {
    font-size: 28px;
  }
  .hero__stats div {
    font-size: 9px;
  }
  .hero__text {
    padding-top: 24px;
  }
  .price-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .price-card {
    padding: 32px;
  }
  .price-card h3 {
    min-height: 0;
    font-size: 1.25rem;
  }
  .price-card > p:nth-of-type(2) {
    min-height: 0;
  }
  .price-card__value {
    font-size: 64px;
    margin-top: 12px;
  }
  .price-card > .btn {
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  .price-card .checks {
    font-size: 15px;
  }
  .price-card > .eyebrow {
    font-size: 11px;
  }
  .trainer-grid {
    gap: 20px;
  }
  .trainer-card > .photo {
    height: 260px;
  }
  .trainer-card > div:last-child {
    padding: 22px 18px;
  }
  .trainer-card h3 {
    font-size: 1.05rem;
  }
  .trainer-card .eyebrow {
    letter-spacing: 0.1em;
  }
  .trainer-card .eyebrow::before {
    width: 12px;
  }
  .trainer-card .link-arrow {
    font-size: 9px;
  }
  .zone-grid .stair {
    padding: 24px;
  }
  .zone-grid .stair__letter {
    font-size: 5.5rem;
  }
  .zone-grid .stair__name {
    font-size: 16px;
  }
  .zone-grid .stair__en {
    font-size: 13px;
  }
  .tariff-grid {
    grid-template-columns: 1fr;
  }
  .tariff {
    padding: 26px;
  }
  .pricing-toolbar {
    flex-wrap: wrap;
  }
  .schedule-tools {
    flex-wrap: wrap;
  }
  .schedule-tools .field {
    width: 100%;
  }
  .schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .schedule.schedule--list .schedule__day {
    border: 0 !important;
  }
  .schedule.schedule--list .schedule__class {
    grid-template-columns: 62px 1fr;
    gap: 12px;
    padding: 18px;
  }
  .schedule.schedule--list .schedule__class p {
    grid-column: 2;
  }
  .schedule.schedule--list .schedule__book {
    grid-column: 2;
  }
  .schedule.schedule--list .schedule__title {
    font-size: 13px;
  }
  .fitness-gallery {
    gap: 16px;
  }
  .gallery-button > span {
    padding: 16px;
    font-size: 12px;
  }
  .gallery-button > .photo {
    aspect-ratio: 4/3;
  }
  .page-links {
    grid-template-columns: 1fr;
  }
  .contact-layout .box {
    padding: 24px;
  }
  .opening-hours strong {
    font-size: 2.2rem;
  }
  .demo-index {
    left: 12px;
    bottom: 12px;
    font-size: 10px;
    min-height: 40px;
    padding-inline: 14px;
  }
  .seg button {
    padding-inline: 18px;
  }
  .wide-photo {
    aspect-ratio: 16/10;
  }
  .course-layout {
    gap: 32px;
  }
  .page-head h1 {
    font-size: clamp(1.9rem, 6.8vw, 3rem);
  }
  .site-footer .brand {
    font-size: 14px;
  }
}
@media (max-width: 420px) {
  .container {
    padding-inline: 20px;
  }
  .brand {
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .brand small {
    font-size: 7px;
  }
  .hero .btn {
    width: 100%;
    max-width: 320px;
    font-size: 11px;
  }
  .hero__stats {
    gap: 22px;
  }
  .hero__stats b {
    font-size: 24px;
  }
  .hero .lead {
    font-size: 16px;
  }
  .hero__text {
    padding-bottom: 60px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .zone-grid {
    gap: 12px;
  }
  .zone-grid .stair {
    padding: 18px;
    min-height: 255px;
  }
  .zone-grid .stair__letter {
    font-size: 4.5rem;
    right: 14px;
  }
  .zone-grid .stair__name {
    font-size: 14px;
  }
  .trainer-grid {
    grid-template-columns: 1fr;
  }
  .trainer-card {
    grid-template-columns: 1fr 1fr;
  }
  .trainer-card > .photo {
    height: 290px;
  }
  .trainer-card > div:last-child {
    padding: 20px 14px;
  }
  .trainer-card .eyebrow {
    font-size: 8px;
    gap: 6px;
  }
  .trainer-card h3 {
    font-size: 1rem;
  }
  .tariff dl > div {
    font-size: 14px;
  }
  .fitness-gallery {
    grid-template-columns: 1fr;
  }
  .price-card {
    padding: 30px 24px;
  }
  .contact-layout .box {
    padding: 22px;
  }
  .detail-head .btn {
    width: 100%;
  }
  .schedule {
    grid-template-columns: 1fr 1fr;
  }
  .schedule__day > h2 {
    font-size: 10px;
  }
  .schedule__day > div {
    padding: 6px;
  }
  .schedule__class {
    padding: 16px 6px;
  }
  .schedule__title {
    font-size: 11px;
  }
  .schedule__book {
    font-size: 11px;
  }
  .schedule__class p {
    font-size: 11px;
  }
  .opening-hours strong {
    font-size: 1.85rem;
  }
  .demo-bar {
    font-size: 10px;
    letter-spacing: 0.02em;
    padding-inline: 12px;
    line-height: 1.6;
  }
  .form > .btn {
    white-space: normal;
    line-height: 1.5;
    padding-block: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg,
  .peaks,
  .ticker__track {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Keep the wordmark legible on mobile, independently of the original mountain logo. */
.brand span {
  display: block;
}
@media (max-width: 700px) {
  .hero__stats div:last-child {
    flex-basis: 100%;
  }
  .hero__stats {
    row-gap: 24px;
  }
}
@media (max-width: 620px) {
  [data-class-filters] {
    display: grid;
  }
}
/* Explicit track and card widths avoid aspect-ratio minimums on very narrow screens. */
.grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bento {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
}
.ccard {
  width: 100%;
  min-width: 0;
}
.ccard__lvl {
  white-space: normal;
  line-height: 1.5;
}
.ccard__go {
  flex-shrink: 0;
}
@media (max-width: 960px) {
  .grid,
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .grid,
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .ccard {
    min-height: 390px;
    aspect-ratio: 4/5;
  }
  .bento .ccard:first-child {
    min-height: 420px;
  }
  .btn {
    max-width: 100%;
    white-space: normal;
    line-height: 1.5;
    text-align: center;
    padding-block: 14px;
  }
  .cta-band .button-group > .btn {
    width: 100%;
  }
  .course-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .schedule-tools > .seg {
    flex-shrink: 0;
  }
  .price-card > .btn {
    min-height: 54px;
  }
  .hero .btn {
    padding-block: 14px;
  }
}
/* Approved BASE FITNESS lockup, including its original transparent margins. */
.brand img.brand__image {
  display: block;
  width: 220px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.site-footer .brand img.brand__image {
  width: 240px;
  height: auto;
}
@media (max-width: 1200px) and (min-width: 901px) {
  .brand img.brand__image {
    width: 190px;
  }
}
@media (max-width: 480px) {
  .brand img.brand__image {
    width: 185px;
  }
  .site-header__bar {
    padding-left: 10px;
  }
}
@media (max-width: 350px) {
  .brand img.brand__image {
    width: 160px;
  }
}
/* Theme-preview navigation: one example of each page layout. */
.template-menu {
  position: relative;
  flex-shrink: 0;
}
.template-menu__toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--pill);
  color: var(--text);
  background: transparent;
  font: 500 12px var(--font-b);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.template-menu__toggle:hover,
.template-menu__toggle[aria-expanded="true"] {
  color: var(--accent);
  background: var(--surface-2);
}
.template-menu__toggle span {
  font-size: 18px;
  line-height: 1;
}
.template-menu__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 280px;
  max-height: 75vh;
  overflow-y: auto;
  z-index: 8;
  padding: 16px 12px;
  background: var(--surface-raised);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  box-shadow: 0 20px 55px rgb(var(--ink-rgb) / 0.6);
}
.template-menu__dropdown::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 16px;
}
.template-menu__group {
  margin: 8px 12px;
  color: var(--muted);
  font: 500 10px var(--font-b);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.template-menu__group:not(:first-child) {
  border-top: 1px solid var(--stroke);
  padding-top: 18px;
  margin-top: 14px;
}
.nav .template-menu__dropdown a:not(.btn) {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.nav .template-menu__dropdown a:not(.btn):hover {
  color: var(--accent);
  background: var(--surface-2);
}
@media (min-width: 901px) and (max-width: 1200px) {
  .template-menu__toggle {
    font-size: 10px;
    padding-inline: 9px;
  }
  .nav > a:not(.btn) {
    padding-inline: 8px;
  }
  .nav .btn {
    padding-inline: 12px;
    font-size: 10px;
  }
  .brand img.brand__image {
    width: 170px;
  }
}
@media (max-width: 900px) {
  .nav {
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 110px;
  }
  .nav > a:not(.btn) {
    padding-block: 12px;
  }
  .template-menu {
    width: 100%;
  }
  .template-menu__toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--stroke);
    font: 800 clamp(1.7rem, 8vw, 2.6rem)/1.1 var(--font-h);
    letter-spacing: 0;
    color: var(--white);
  }
  .template-menu__toggle:hover,
  .template-menu__toggle[aria-expanded="true"] {
    background: transparent;
    color: var(--accent);
  }
  .template-menu__toggle span {
    font-size: 26px;
  }
  .template-menu__dropdown {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--surface);
    box-shadow: none;
  }
  .template-menu__dropdown::before {
    display: none;
  }
  .nav .template-menu__dropdown a:not(.btn) {
    counter-increment: none;
    display: block;
    opacity: 1;
    transform: none;
    transition: none;
    border: 0;
    padding: 12px;
    font: 500 14px/1.4 var(--font-b);
    letter-spacing: 0;
    text-transform: none;
  }
  .nav .template-menu__dropdown a:not(.btn)::before {
    content: none;
  }
  .template-menu__group {
    line-height: 1.5;
  }
  .nav .btn {
    flex-shrink: 0;
  }
  .nav__foot {
    flex-shrink: 0;
  }
}
/* Navigation is a list; Pages is an ordinary list link with a nested submenu. */
.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list > li {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.nav__list > li > a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav .template-menu__toggle:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.template-menu__dropdown {
  list-style: none;
  margin: 0;
}
.template-menu__dropdown > li {
  list-style: none;
}
.nav .template-menu__dropdown a:not(.btn) {
  width: 100%;
}
.nav__list > .template-menu {
  position: relative;
}
.template-menu__dropdown .template-menu__group {
  margin: 8px 12px;
  padding: 0;
}
.template-menu__dropdown .template-menu__group:not(:first-child) {
  padding-top: 18px;
  margin-top: 14px;
}
.nav .template-menu__toggle:not(.btn)::before {
  content: none;
}
@media (min-width: 901px) and (max-width: 1200px) {
  .nav__list > li > a:not(.btn) {
    font-size: 10px;
    padding-inline: 8px;
  }
}
@media (max-width: 900px) {
  .nav__list {
    display: block;
    width: 100%;
    flex-shrink: 0;
    counter-reset: n;
  }
  .nav__list > li > a:not(.btn) {
    padding: 12px 0;
  }
  .nav__list > .template-menu {
    width: 100%;
  }
  .nav .template-menu__toggle:not(.btn) {
    width: 100%;
    font: 800 clamp(1.7rem, 8vw, 2.6rem)/1.1 var(--font-h);
    letter-spacing: 0;
    padding: 12px 0;
    border-radius: 0;
  }
  .nav .template-menu__dropdown {
    position: static;
    width: 100%;
    margin: 12px 0;
    padding: 12px;
  }
  .nav .template-menu__dropdown a:not(.btn) {
    padding: 12px;
    font: 500 14px/1.4 var(--font-b);
    letter-spacing: 0;
    text-transform: none;
    opacity: 1;
    transform: none;
    border: 0;
    counter-increment: none;
  }
  .nav__list > .nav__cta > .btn {
    width: 100%;
    margin: 28px 0 0;
  }
  .template-menu__dropdown .template-menu__group {
    margin: 8px 12px;
    padding: 0;
  }
  .template-menu__dropdown .template-menu__group:not(:first-child) {
    padding-top: 18px;
  }
}
@media (max-width: 900px) {
  .nav .template-menu__toggle:not(.btn) {
    justify-content: flex-start;
  }
  .nav .template-menu__toggle:not(.btn)::before {
    content: "0" counter(n);
    font: 500 12px var(--font-b);
    letter-spacing: 0.3em;
    color: var(--accent);
  }
  .nav .template-menu__toggle > span {
    margin-left: auto;
  }
}
/* Same header logo size across desktop widths, matching the <=1200px layout. */
@media (min-width: 901px) {
  .site-header .brand img.brand__image {
    width: 170px;
    height: auto;
  }
}
/* Draw the chevron geometrically so font metrics cannot shift it below the label. */
.nav .template-menu__toggle > span {
  display: block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  font-size: 0;
  line-height: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  position: relative;
  top: -2px;
}
@media (min-width: 901px) and (max-width: 1200px) {
  .nav .template-menu__toggle > span {
    width: 6px;
    height: 6px;
    border-width: 1.5px;
    top: -1.5px;
  }
}
/* The overlay background stays full-screen; only the area below the logo scrolls. */
.nav__scroll {
  display: contents;
}
@media (max-width: 900px) {
  .nav {
    padding: 0;
    overflow: hidden;
  }
  .nav__scroll {
    display: block;
    position: absolute;
    top: var(--menu-top, 110px);
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 28px 36px;
    scrollbar-gutter: stable;
  }
  .nav__list {
    min-height: 0;
  }
  .nav__scroll .nav__foot {
    padding-bottom: 8px;
  }
}

/* All directional arrows share one SVG path and a fixed 2px stroke. */
.icon-arrow {
  display: inline-block;
  flex: 0 0 auto;
  width: var(--arrow-size, 20px);
  height: var(--arrow-size, 20px);
  vertical-align: middle;
  color: inherit;
  overflow: visible;
  transition: transform 0.25s var(--ease);
}
.btn--arrow,
.link-arrow {
  --arrow-size: 18px;
}
.btn--arrow:hover > .icon-arrow,
.link-arrow:hover > .icon-arrow,
.ccard:hover .icon-arrow,
.round-link:hover > .icon-arrow {
  transform: translateX(3px);
}
.ccard:hover .ccard__go,
.round-link:hover {
  transform: none;
}
.stair__count {
  display: flex;
  align-items: center;
  gap: 8px;
  --arrow-size: 16px;
}
.tile::after {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--accent);
  mask: url("./arrow.svg") center / contain no-repeat;
  -webkit-mask: url("./arrow.svg") center / contain no-repeat;
}
.nav .template-menu__toggle > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  top: 0;
  transform: rotate(90deg);
  --arrow-size: 18px;
}
@media (min-width: 901px) and (max-width: 1200px) {
  .nav .template-menu__toggle > span {
    width: 16px;
    height: 16px;
    --arrow-size: 16px;
  }
}

/* Dropdown chevrons are navigation indicators, separate from action arrows. */
.nav .template-menu__toggle > span {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  top: -2px;
}
@media (min-width: 901px) and (max-width: 1200px) {
  .nav .template-menu__toggle > span {
    width: 6px;
    height: 6px;
    border-width: 1.5px;
    top: -1.5px;
  }
}

/* Keep select chevrons 20px away from the right border. */
.field select:focus,
.field select,
select.select,
#schedule-class {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23EDEFF2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px 8px;
}

/* Webbeb attribution links. */
.demo-bar__link,
.site-footer__credit {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-bar__link:hover {
  text-decoration-thickness: 2px;
}
