:root {
  --app-surface: #141519;
  --app-selected: #16333b;
}

body { padding-bottom: 66px; }
.wrap { width: min(100% - 2rem, 66rem); }
header { background: var(--app-surface); }
.nav { min-height: 74px; }
.brand { font-size: 1.1rem; }
.hero {
  margin-block: clamp(1rem, 4vw, 3rem) 0;
  padding: clamp(1.15rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: radial-gradient(ellipse at top right, #173f48, transparent 68%), var(--panel);
}
.hero-grid { gap: clamp(1.4rem, 4vw, 3rem); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.85rem); max-width: 13ch; }
.hero h1 span { color: var(--accent); }
.hero .eyebrow { color: var(--accent); }
.hero-media { aspect-ratio: 1; }
.section { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.soft { border-block: 1px solid var(--line); }
.steps li::before { content: none; }
.steps li { border-top: 3px solid #347280; }
.durations .featured { background: var(--app-selected); }
.coaching-options {
  display: grid;
  gap: 1rem;
}
.coaching-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .8rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}
.coaching-option h3, .coaching-option p { margin: 0; }
.coaching-price strong {
  color: var(--accent);
  font-size: 1.75rem;
}
.coaching-option .button { margin-top: auto; }
@media (min-width: 700px) {
  .coaching-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.eyebrow { font-size: .875rem; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.rating { margin-bottom: 0; }
.rating span { color: var(--accent); letter-spacing: .12em; margin-right: .4em; }
.rating strong { color: var(--ink); }
.secondary { background: var(--app-selected); color: var(--accent); border-color: #347280; }
.secondary:hover { color: #092229; }
.reviews { display: grid; gap: .9rem; margin-top: 1.4rem; }
.reviews figure {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}
.reviews blockquote { margin: 0; font-size: 1.1rem; }
.reviews figcaption { color: var(--muted); font-size: .875rem; }
summary { color: var(--accent); }
.dialog-head button { border: 1px solid var(--line); border-radius: 10px; }

@media (min-width: 700px) {
  body { padding-bottom: 0; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 700px) and (max-width: 899px) {
  header nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
}
@media (max-width: 699px) {
  header nav {
    position: fixed;
    z-index: 3;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .16rem;
    padding: .35rem .32rem calc(.35rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--app-surface);
  }
  header nav a {
    display: grid;
    place-items: center;
    min-height: 46px;
    padding: .25rem .1rem;
    color: var(--muted);
    font-weight: 650;
    text-align: center;
    border-radius: 10px;
  }
  header nav a:hover, header nav a:focus-visible, header nav a[aria-current] {
    background: var(--app-selected);
    color: var(--accent);
  }
  .nav .book { display: none; }
  .hero-media { aspect-ratio: 5 / 4; }
}
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 699px) { body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); } }
}

@media (min-width: 700px) {
  .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 950px) {
  .testimonials { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.65rem, 2vw, 1rem);
}
.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.gallery-grid a {
  display: block;
  border-radius: 16px;
  cursor: zoom-in;
}
.gallery-grid a:hover img { border-color: var(--accent); }
.gallery-viewer {
  width: min(96vw, 48rem);
  max-height: 96dvh;
  padding: clamp(.6rem, 2vw, 1rem);
}
.gallery-viewer .dialog-head h2 { font-size: 1.35rem; }
.gallery-viewer .dialog-head button { width: auto; padding: .35rem .75rem; font: inherit; }
.gallery-stage {
  display: grid;
  place-items: center;
  touch-action: pan-y pinch-zoom;
  background: var(--deep);
  border-radius: 12px;
}
.gallery-stage img {
  display: block;
  width: 100%;
  height: min(70vh, 52rem);
  height: min(72dvh, 52rem);
  object-fit: contain;
  user-select: none;
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .7rem;
}
.gallery-controls p { margin: 0; font-size: .875rem; }
.gallery-controls .button { cursor: pointer; }
@media (min-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  header nav { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  header nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 900px) and (max-width: 1050px) {
  header nav { gap: .5rem 1rem; flex-wrap: wrap; }
}
