/* Maison Lea Pilates — Blush Ballet
   Palette: shell #FAF3F0 · blush #EFD3CF · rose #D89A9E · mauve #9C5B63 · cocoa #3A2629
   Type: Cormorant Garamond (display) + Manrope (body), both with Cyrillic */

/* Metric-matched fallbacks: text keeps its width while the web fonts load, so nothing jumps */
@font-face { font-family: "Yeseva Fallback"; src: local("Georgia"); size-adjust: 112.5%; }
@font-face { font-family: "Nunito Fallback"; src: local("Arial"); size-adjust: 102.3%; }

:root {
  --shell: #FAF3F0;
  --blush: #EFD3CF;
  --rose: #D89A9E;
  --mauve: #9C5B63;
  --cocoa: #3A2629;
  --white: #FFFDFC;
  --muted: #705559;
  --line: #E8D6D2;

  --display: "Yeseva One", "Yeseva Fallback", Georgia, serif;
  --body: "Nunito", "Nunito Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 18px 40px -24px rgba(58, 38, 41, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--shell);
  color: var(--cocoa);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; font-synthesis: none; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--mauve); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mauve); }
.lead { font-size: 18px; color: var(--muted); max-width: 56ch; }
.h-xl { font-size: clamp(38px, 6vw, 68px); }
.h-lg { font-size: clamp(32px, 4.4vw, 50px); }
.h-md { font-size: clamp(26px, 3vw, 36px); }
.italic { color: var(--mauve); }
.center { text-align: center; }
.stack { display: grid; gap: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--body);
  padding: 15px 26px; border-radius: 999px;
  background: var(--mauve); color: var(--white);
  border: 1px solid var(--mauve); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--cocoa); border-color: var(--cocoa); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--cocoa); border-color: var(--cocoa); }
.btn--ghost:hover { background: var(--cocoa); color: var(--white); }
.btn--light { background: var(--white); color: var(--cocoa); border-color: var(--white); }
.btn--light:hover { background: var(--blush); border-color: var(--blush); color: var(--cocoa); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* Photo placeholders — swap each <div class="ph"> for <img> when real photos arrive */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(255,255,255,.65), transparent 55%),
    radial-gradient(90% 80% at 85% 90%, rgba(156,91,99,.35), transparent 60%),
    var(--blush);
  min-height: 160px;
}
.ph:nth-of-type(3n+2) { background-color: #E7C2BE; }
.ph:nth-of-type(3n) { background-color: #F3DFD9; }
.ph > span {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cocoa); opacity: .55;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(img) { background: var(--blush); }
.lightbox .ph { background: transparent; aspect-ratio: auto; height: min(86vh, 900px); }
.lightbox .ph img { object-fit: contain; }

/* ---------- Header (Frontify: floating pill groups) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 14px var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  pointer-events: none;
  min-height: 94px; /* reserve space before main.js injects the nav */
}
.pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  background: rgba(255, 253, 252, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 6px; box-shadow: var(--shadow);
}
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 6px 12px 6px 8px; font-family: var(--display); font-size: 22px; font-weight: 400; letter-spacing: .02em;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 9px 14px; border-radius: 10px; transition: background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--blush); }
.pill .ig {
  position: relative; isolation: isolate; overflow: hidden;
  font-size: 14px; font-weight: 500; text-decoration: none; padding: 9px 12px; border-radius: 10px;
  transition: color .35s ease;
}
/* Instagram gradient fades in on hover (a gradient can't transition, so it lives on a layer) */
.pill .ig::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  opacity: 0; transition: opacity .35s ease;
}
.pill .ig:hover, .pill .ig:focus-visible { color: #fff; }
.pill .ig:hover::before, .pill .ig:focus-visible::before { opacity: 1; }
.pill .btn { padding: 11px 18px; font-size: 14px; border-radius: 11px; }
.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font: 600 14px var(--body); color: var(--cocoa); padding: 9px 12px; border-radius: 10px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .pill .ig { display: none; }
  .nav-open .nav-links {
    display: grid; position: absolute; left: var(--gutter); right: var(--gutter); top: 76px;
    background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow);
  }
  .nav-open .nav-links a { padding: 14px 16px; font-size: 16px; }
}

/* ---------- Hero (ClassPass split + collage) ---------- */
.hero { padding-block: clamp(24px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.hero .wrap { max-width: 1680px; padding-inline: clamp(16px, 4vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.hero-meta b { color: var(--cocoa); font-weight: 600; }
.collage {
  display: grid; gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(6, clamp(48px, 7vw, 82px));
}
.collage .ph { min-height: 0; }
.collage .c1 { grid-column: 1; grid-row: 1 / 4; }
.collage .c2 { grid-column: 1; grid-row: 4 / 7; }
.collage .c3 { grid-column: 2; grid-row: 1 / 3; }
.collage .c4 { grid-column: 2; grid-row: 3 / 7; }
.collage .c5 { grid-column: 3; grid-row: 1 / 5; }
.collage .c6 { grid-column: 3; grid-row: 5 / 7; }
.next-class {
  grid-column: 2 / 4; grid-row: 5 / 7; align-self: end; justify-self: end;
  position: relative; z-index: 2; margin: 0 -10px -18px 0;
  background: var(--white); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; width: min(320px, 100%);
}
.next-class .time { grid-row: 1 / 3; font-family: var(--display); font-size: 30px; font-weight: 400; color: var(--mauve); line-height: 1; }
.next-class .t { font-weight: 600; font-size: 14px; }
.next-class .s { font-size: 12px; color: var(--muted); }
.next-class .btn { grid-row: 1 / 3; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .next-class { grid-column: 1 / 4; justify-self: stretch; width: auto; margin: 0; }
}

/* ---------- About (Epidemic Sound alternating rows) ---------- */
.about-rows { display: grid; gap: clamp(48px, 7vw, 96px); }
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-row .ph { aspect-ratio: 5 / 4; }
.about-row:nth-child(even) .about-text { order: 2; }
.about-text { display: grid; gap: 16px; }
.about-text p { color: var(--muted); max-width: 52ch; }
.text-link { font-weight: 600; color: var(--mauve); text-decoration: none; border-bottom: 1px solid currentColor; justify-self: start; }
@media (max-width: 760px) {
  .about-row { grid-template-columns: 1fr; }
  .about-row:nth-child(even) .about-text { order: 0; }
}

/* ---------- Classes (ClassPass image-card mosaic + side text) ---------- */
.classes { background: var(--white); }
.classes-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.class-cards { columns: 3 180px; column-gap: 14px; }
.class-card {
  break-inside: avoid; margin-bottom: 14px; display: block; text-decoration: none;
  background: var(--shell); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.class-card .ph { border-radius: 0; }
.class-card .lbl { padding: 12px 14px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; }
.class-card .lbl small { font-weight: 500; color: var(--muted); }
/* light lift on hover. The cards are also scroll-reveal items, and .motion .reveal sets its own
   transition, so the lift needs a rule at least as specific to keep its easing */
.class-card, .motion .class-card.reveal {
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .9s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--delay, 0s), var(--delay, 0s), 0s;
}
@media (hover: hover) { .class-card:hover { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .class-card:hover { transform: none; } }
.class-card:focus-visible { outline: 2px solid var(--mauve); outline-offset: 3px; }
.class-side { display: grid; gap: 22px; }
.class-side dl { margin: 0; display: grid; gap: 16px; }
.class-side dt { font-weight: 700; }
.class-side dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .classes-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials (Miro 2-col photo + quote) ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 64px); margin-top: 48px; }
.testi { display: grid; gap: 18px; }
.testi-photo { position: relative; max-width: 300px; }
.testi-photo .ph { aspect-ratio: 4 / 3; }
.testi-tag {
  position: absolute; top: -16px; right: -40px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px 16px; font-family: var(--display); font-size: 20px; font-weight: 400; font-synthesis: none; color: var(--mauve);
}
.testi blockquote { margin: 0; font-size: 17px; max-width: 46ch; }
.testi cite { font-style: normal; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .testi-grid { grid-template-columns: 1fr; } .testi-tag { right: -8px; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--mauve); color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.cta-band p { opacity: .85; margin-top: 10px; }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; } }

/* Liquid silk: WebGL canvas behind, dark wash on the text side, soft text shadow */
.cta-band:has(.liquid-bg) {
  position: relative; overflow: hidden; isolation: isolate;
  background: #1E0F12;
  box-shadow: 0 30px 70px -34px rgba(30, 15, 18, .8);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to right, rgba(30, 15, 18, .6), rgba(30, 15, 18, .35) 45%, rgba(30, 15, 18, 0) 80%);
}
.cta-band > div:not(.liquid-bg) { text-shadow: 0 2px 18px rgba(30, 15, 18, .55), 0 1px 3px rgba(30, 15, 18, .4); }
.liquid-bg {
  position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60% 55% at 25% 30%, rgba(216, 154, 158, .28), transparent 70%),
    radial-gradient(55% 50% at 78% 60%, rgba(156, 91, 99, .8), transparent 70%),
    #1E0F12;
}
.liquid-bg canvas { display: block; width: 100%; height: 100%; }
.liquid-bg.is-static canvas { display: none; }
@media (max-width: 700px) {
  .cta-band::before { background: linear-gradient(rgba(30, 15, 18, .55), rgba(30, 15, 18, .35) 55%, rgba(30, 15, 18, .1)); }
}

/* ---------- Page intro ---------- */
.page-intro { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); display: grid; gap: 16px; justify-items: center; text-align: center; }
.page-intro .h-xl { line-height: 1.12; }

/* ---------- Schedule (MasterClass tabs + image cards) ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; justify-content: center; scrollbar-width: none; }
.day {
  flex: none; display: grid; justify-items: center; gap: 2px;
  min-width: 64px; padding: 10px 12px; border-radius: 14px; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); font: inherit; color: var(--cocoa);
}
.day .dn { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.day .dd { font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.day[aria-selected="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--white); }
.day[aria-selected="true"] .dn { color: var(--blush); }
.tod { display: flex; justify-content: center; gap: clamp(18px, 4vw, 40px); margin-top: 28px; }
.tod button {
  background: none; border: 0; cursor: pointer; padding: 6px 2px;
  font-family: var(--display); font-size: clamp(22px, 3vw, 30px); font-weight: 400; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tod button[aria-selected="true"] { color: var(--cocoa); border-color: var(--rose); }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 36px; }

/* ---------- Schedule: softer switching between days and parts of the day ---------- */
.day { transition: background .35s ease, border-color .35s ease, color .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.day .dn { transition: color .35s ease; }
.day:active { transform: scale(.96); }
@media (hover: hover) { .day:not([aria-selected="true"]):hover { border-color: var(--rose); transform: translateY(-2px); } }
.days { scroll-behavior: smooth; }
/* phones: the strip fades at its edges, a hint that it scrolls */
@media (max-width: 640px) {
  .days { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); padding-inline: 6px; }
}
.tod { position: relative; }
.tod button { border-bottom-color: transparent !important; transition: color .35s ease; }
@media (hover: hover) { .tod button:hover { color: var(--cocoa); } }
.tod-bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0; border-radius: 2px; background: var(--rose);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), width .45s cubic-bezier(.2, .7, .2, 1);
}
#slots { transition: height .4s cubic-bezier(.2, .7, .2, 1); }
#slots[style*="height"] { overflow: clip; overflow-clip-margin: 24px; } /* while the height eases, new cards stay inside */
#slots.is-out > * { opacity: 0; translate: 0 -6px; transition: opacity .16s ease, translate .16s ease; }
#slots .slot, #slots .empty { animation: slot-in .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes slot-in { from { opacity: 0; translate: 0 14px; } }
@media (prefers-reduced-motion: reduce) {
  .day, .tod-bar, #slots { transition: none; }
  #slots .slot, #slots .empty { animation: none; }
}
.slot { display: grid; gap: 14px; }
.slot .ph { aspect-ratio: 16 / 9; }
/* slot card (ClassPass-style row): time column | class details | button */
.slot-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 18px; align-items: center; }
.slot-time { display: grid; gap: 2px; padding-right: 18px; border-right: 1px solid var(--line); align-self: stretch; align-content: center; }
.slot-time b { font-family: var(--display); font-size: 26px; font-weight: 400; color: var(--mauve); line-height: 1; font-variant-numeric: tabular-nums; }
.slot-time small { font-size: 13px; color: var(--muted); }
.slot-main { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.slot h3 { font-size: 24px; line-height: 1.1; }
.slot .info { margin: 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 8px; }
.slot .info span + span::before { content: "·"; margin-right: 8px; }
.slot .spots { font-weight: 600; color: var(--mauve); }
.slot .spots.full { color: var(--muted); }
.slot .slot-main .spots { justify-self: start; }
.slot .btn { grid-column: 3; grid-row: 1; }
.slot .btn[disabled] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; transform: none; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; grid-column: 1 / -1; }
@media (max-width: 700px) { .slots { grid-template-columns: 1fr; } }

/* ---------- Instructors (Podia rounded cards) ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.member { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.member .ph { aspect-ratio: 1 / 1; border-radius: 0; }
.member-body { padding: 16px 18px 20px; display: grid; gap: 4px; }
.member-body b { font-size: 16px; }
.member-body span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Pricing (Framer: 3 cards, middle filled) ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; align-items: stretch; }
.price {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; display: grid; gap: 18px; align-content: start;
}
.price .name { font-weight: 700; }
.price .amount { font-family: var(--display); font-size: 48px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.price .amount small { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--muted); }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.price li { display: flex; gap: 10px; }
.price li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--rose); }
.price .btn { justify-content: center; margin-top: auto; }
.price--feat { background: var(--mauve); border-color: var(--mauve); color: var(--white); }
.price--feat .amount small, .price--feat .note { color: #FFF4F1; }
.price--feat li::before { background: var(--blush); }
.price .note { font-size: 13px; color: var(--muted); }
.badge { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--blush); color: var(--cocoa); padding: 5px 10px; border-radius: 999px; }
.single-prices { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 15px; color: var(--muted); }
.single-prices b { color: var(--cocoa); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ (OpenPhone chevron rows) ---------- */
.faq { max-width: 860px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px;
  transition: color .25s;
}
.faq summary:hover, .faq details.is-open summary { color: var(--mauve); }
.faq summary::-webkit-details-marker { display: none; }
/* chevron in a soft circle; rotates without shifting */
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background:
    linear-gradient(var(--mauve), var(--mauve)) center / 12px 2px no-repeat,
    linear-gradient(var(--mauve), var(--mauve)) center / 2px 12px no-repeat,
    var(--white);
  border: 1px solid var(--line);
  transition: transform .45s cubic-bezier(.65, 0, .35, 1), background-color .25s, border-color .25s;
}
.faq summary:hover::after { border-color: var(--rose); }
.faq details.is-open summary::after {
  transform: rotate(135deg); border-color: var(--mauve);
  background:
    linear-gradient(var(--white), var(--white)) center / 12px 2px no-repeat,
    linear-gradient(var(--white), var(--white)) center / 2px 12px no-repeat,
    var(--mauve);
}
.faq .faq-body { overflow: hidden; }
.faq details p {
  padding: 0 52px 24px 4px; color: var(--muted); max-width: 68ch;
  opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.faq details.is-open p { opacity: 1; transform: none; transition-delay: .08s; }

/* ---------- Gallery (Retool scattered strip + grid) ---------- */
.scatter { position: relative; display: flex; justify-content: center; align-items: center; padding-block: 30px 50px; overflow: hidden; }
.scatter .ph { flex: none; width: clamp(150px, 26vw, 320px); aspect-ratio: 4 / 3; box-shadow: var(--shadow); border: 4px solid var(--white); }
.scatter .ph:nth-child(1) { transform: translateY(-26px) rotate(-3deg); margin-right: -30px; }
.scatter .ph:nth-child(2) { transform: translateY(18px) rotate(1.5deg); z-index: 2; width: clamp(180px, 32vw, 400px); }
.scatter .ph:nth-child(3) { transform: translateY(-16px) rotate(3deg); margin-left: -30px; }
.scatter .ph:nth-child(4) { transform: translateY(30px) rotate(-2deg); margin-left: -20px; }
.gallery-grid { columns: 3 240px; column-gap: 14px; }
.gallery-grid button {
  all: unset; display: block; width: 100%; margin-bottom: 14px; cursor: zoom-in; break-inside: avoid; border-radius: var(--radius);
}
.gallery-grid button:focus-visible { outline: 2px solid var(--mauve); outline-offset: 3px; }
.gallery-grid .ph { transition: transform .3s; }
.gallery-grid button:hover .ph { transform: scale(.985); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: 600 14px var(--body); color: var(--cocoa); cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
}
.filters button[aria-pressed="true"] { background: var(--cocoa); color: var(--white); border-color: var(--cocoa); }

/* ---------- Contact (Fiasco: info grid + form card) ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
.info-grid h2, .info-grid h3 { font-size: 22px; font-weight: 400; color: var(--mauve); margin-bottom: 10px; }
.info-grid p, .info-grid a { font-size: 15px; }
.info-grid a { text-decoration: none; border-bottom: 1px solid var(--rose); }
.form-card { background: var(--cocoa); color: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); display: grid; gap: 22px; }
.form-card h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 400; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fields .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.field input, .field select, .field textarea {
  font: 15px var(--body); color: inherit; width: 100%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 12px 14px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select option { color: var(--cocoa); }

/* ---------- Pretty select (assets/select.js) ---------- */
.sel { position: relative; }
.sel-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.sel-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer;
  font: 15px var(--body); color: inherit;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.sel-btn:hover { background: rgba(255,255,255,.12); }
.sel-btn:focus-visible, .sel.is-open .sel-btn { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(216, 154, 158, .25); }
.sel-btn svg { width: 18px; height: 18px; flex: none; opacity: .75; transition: rotate .3s cubic-bezier(.2, .7, .2, 1); }
.sel.is-open .sel-btn svg { rotate: 180deg; }
.sel-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  width: max(100%, min(270px, calc(100vw - 32px)));
  max-height: 280px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); color: var(--cocoa); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 50px -18px rgba(30, 18, 20, .55), 0 2px 8px rgba(30, 18, 20, .08);
  opacity: 0; translate: 0 -6px; scale: .98; transform-origin: 50% 0;
  transition: opacity .18s ease, translate .25s cubic-bezier(.2, .7, .2, 1), scale .25s cubic-bezier(.2, .7, .2, 1);
}
.sel.is-up .sel-list { top: auto; bottom: calc(100% + 8px); transform-origin: 50% 100%; translate: 0 6px; }
.sel.is-open .sel-list { opacity: 1; translate: 0 0; scale: 1; }
.sel-list:focus { outline: none; }
.sel-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; border-radius: 10px; font-size: 15px; cursor: pointer; transition: background .15s, color .15s;
}
.sel-list li + li { margin-top: 2px; }
.sel-list li svg { width: 17px; height: 17px; flex: none; color: var(--mauve); opacity: 0; scale: .6; transition: opacity .2s, scale .25s cubic-bezier(.34, 1.56, .64, 1); }
.sel-list li.is-active { background: var(--shell); }
.sel-list li[aria-selected="true"] { color: var(--mauve); font-weight: 600; background: rgba(239, 211, 207, .45); }
.sel-list li[aria-selected="true"] svg { opacity: 1; scale: 1; }
.sel-list li[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
/* light forms (booking card, modal) */
.bk-card .sel-btn, .modal .sel-btn { background: var(--white); border-color: var(--line); color: var(--cocoa); }
@media (prefers-reduced-motion: reduce) { .sel-list, .sel-btn svg { transition: none; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; opacity: .85; }
.check input { margin-top: 3px; accent-color: var(--rose); }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-msg { font-size: 14px; color: var(--blush); }
.map-link { margin-top: 36px; display: grid; gap: 12px; }
.map-link .ph { aspect-ratio: 16 / 7; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .fields, .info-grid { grid-template-columns: 1fr; } }

/* ---------- Booking modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(58, 38, 41, .55); }
.modal[hidden] { display: none; }
.modal-card {
  background: var(--shell); border-radius: var(--radius-lg); width: min(520px, 100%); max-height: 92vh; overflow: auto;
  padding: clamp(22px, 4vw, 34px); display: grid; gap: 20px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.5);
}
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.modal-close { background: var(--white); border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 18px; color: var(--cocoa); flex: none; }
.booking-summary { background: var(--white); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.booking-summary b { color: var(--cocoa); font-size: 16px; }
.modal .field input { background: var(--white); border-color: var(--line); color: var(--cocoa); }
.modal .check { opacity: 1; color: var(--muted); }
.modal .done { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 10px 0; }
.modal .done .mark { width: 56px; height: 56px; border-radius: 50%; background: var(--mauve); color: var(--white); display: grid; place-items: center; font-size: 26px; }

/* ---------- Booking card (date pills + time grid) ---------- */
.bk-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 6vw, 80px);
  align-items: start; padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px);
}
.bk-intro { display: grid; gap: 18px; align-content: center; }
.bk-perks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.bk-perks li { display: flex; gap: 12px; align-items: center; }
.bk-perks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); flex: none; }
@media (max-width: 900px) {
  .bk-split { grid-template-columns: 1fr; }
  /* stacked above the booking card: centre the intro */
  .bk-intro { justify-items: center; text-align: center; }
  .bk-intro .lead { margin-inline: auto; }
  .bk-perks { justify-items: center; }
}

.bk-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 3.4vw, 30px); display: grid; gap: 18px; box-shadow: var(--shadow);
}
.bk-title { font-size: clamp(26px, 3vw, 32px); font-weight: 400; }
.bk-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }

.bk-days {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: -4px; padding: 4px;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.bk-days::-webkit-scrollbar { display: none; }
.bk-day {
  flex: 0 0 56px; scroll-snap-align: start; display: grid; gap: 2px; justify-items: center;
  padding: 10px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--shell);
  font-family: var(--body); color: var(--cocoa); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.bk-day span { font-size: 11px; color: var(--muted); }
.bk-day b { font-size: 17px; font-weight: 600; }
.bk-day:hover { border-color: var(--rose); }
.bk-day[aria-selected="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--white); }
.bk-day[aria-selected="true"] span { color: var(--blush); }

.bk-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 8px; height: 300px; overflow-y: auto; padding: 2px; }
.bk-slot {
  display: grid; gap: 1px; justify-items: center; text-align: center;
  padding: 12px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--shell);
  font-family: var(--body); color: var(--cocoa); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.bk-slot b { font-size: 16px; font-weight: 600; }
.bk-slot span { font-size: 12px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-slot small { font-size: 11px; color: var(--mauve); font-weight: 600; }
.bk-slot:hover:not([disabled]) { border-color: var(--rose); transform: translateY(-1px); }
.bk-slot[aria-selected="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--white); }
.bk-slot[aria-selected="true"] span, .bk-slot[aria-selected="true"] small { color: var(--blush); }
.bk-slot[disabled] { opacity: .45; cursor: not-allowed; }
.bk-slot[disabled] b { text-decoration: line-through; }
.bk-empty { display: grid; place-items: center; height: 300px; text-align: center; color: var(--muted); font-size: 14px; }

.bk-progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bk-progress i { display: block; height: 100%; background: var(--mauve); border-radius: inherit; transition: width .3s; }
.bk-none {
  justify-self: center; font-size: 14px; font-weight: 500; text-decoration: none;
  padding: 10px 20px; border-radius: 999px; background: var(--shell); border: 1px solid var(--line);
}
.bk-none:hover { background: var(--blush); }

.bk-fields { display: grid; gap: 12px; }
.bk-card .booking-summary { background: var(--shell); border: 1px solid var(--line); }
.bk-card .field input { background: var(--shell); border-color: var(--line); color: var(--cocoa); }
.bk-card .check { opacity: 1; color: var(--muted); }
.bk-msg { font-size: 14px; color: var(--mauve); min-height: 1.2em; }

.bk-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.bk-back { background: none; border: 0; font: 500 15px var(--body); color: var(--cocoa); cursor: pointer; padding: 10px 4px; }
.bk-back[hidden] { display: block; visibility: hidden; }
.bk-back:hover { color: var(--mauve); }
.bk-go {
  min-width: 0; display: inline-flex; align-items: center; padding: 14px 22px; border-radius: 999px;
  background: var(--cocoa); color: var(--white); border: 1px solid var(--cocoa);
  font: 600 14px/1 var(--body); cursor: pointer; transition: background .2s, transform .2s;
}
.bk-go span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-go:hover:not([disabled]) { background: var(--mauve); border-color: var(--mauve); transform: translateY(-1px); }
.bk-go[disabled] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.bk-done { text-align: center; justify-items: center; padding-block: 40px; }
.bk-done .mark { width: 56px; height: 56px; border-radius: 50%; background: var(--mauve); color: var(--white); display: grid; place-items: center; font-size: 26px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(30, 18, 20, .85); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox .ph { width: min(900px, 100%); aspect-ratio: 4 / 3; }

/* ---------- Footer (Norma minimal) ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 28px; margin-top: clamp(40px, 6vw, 80px); }
.footer-top { display: grid; grid-template-columns: 1.4fr auto auto; gap: 40px 64px; }
.footer-brand { display: grid; gap: 8px; align-content: start; }
/* big round logo on the left, name + text + newsletter stacked beside it */
.footer-logo {
  grid-column: 1; grid-row: 1 / span 4; align-self: start;
  width: clamp(104px, 11vw, 160px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow);
}
.footer-brand > :not(.footer-logo) { grid-column: 2; }
.footer-brand .name { font-family: var(--display); font-size: 30px; font-weight: 400; }
.footer-brand p { color: var(--muted); font-size: 15px; }
.join { margin-top: 14px; display: flex; max-width: 340px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.join input { flex: 1; min-width: 0; border: 0; background: none; font: 14px var(--body); padding: 8px 14px; color: var(--cocoa); }
.join input:focus { outline: none; }
.join:focus-within { border-color: var(--mauve); }
.join button { border: 0; border-radius: 999px; background: var(--cocoa); color: var(--white); font: 600 13px var(--body); padding: 9px 18px; cursor: pointer; }
.join-msg { font-size: 13px; color: var(--mauve); min-height: 1.4em; }
.footer-col h2 { font-family: var(--body); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--muted); }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--cocoa); }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Page transitions ---------- */
/* Browsers with cross-document View Transitions: header stays put, content cross-fades and drifts up */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: page-out .28s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: page-in .5s cubic-bezier(.2, .7, .2, 1) .08s both; }
::view-transition-group(site-header) { animation-duration: 0s; }
@keyframes page-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } }

/* Fallback (other browsers, file://): main.js adds .no-vt and .is-leaving */
.no-vt main, .no-vt .site-footer { animation: page-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.no-vt.is-leaving main, .no-vt.is-leaving .site-footer { animation: page-out .24s cubic-bezier(.4, 0, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .no-vt main, .no-vt .site-footer { animation: none !important; }
}

/* ---------- Motion: scroll reveal, word reveal, parallax ----------
   main.js adds .motion to <html> only when JS runs and motion is allowed,
   so without JS (or with reduced motion) everything is simply visible. */
.motion .reveal {
  opacity: 0; translate: 0 14px;
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delay, 0s);
}
.motion .reveal.is-visible { opacity: 1; translate: 0 0; }
/* hero collage photos: fade + settle from a slight zoom (their frames carry the depth parallax) */
.motion .reveal-zoom { opacity: 0; scale: 1.08; transition: opacity 1s ease, scale 1.4s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.motion .reveal-zoom.is-visible { opacity: 1; scale: 1; }

.motion .split .w {
  display: inline-block; opacity: 0; translate: 0 .5em; filter: blur(6px);
  transition: opacity .8s ease, translate .9s cubic-bezier(.2, .7, .2, 1), filter .8s ease;
  transition-delay: calc(var(--i, 0) * 60ms);
}
.motion .split.is-visible .w { opacity: 1; translate: 0 0; filter: blur(0); }

/* parallax photos: the image is a bit larger than its frame and drifts inside it */
.motion [data-parallax] img { transform: translate3d(0, var(--py, 0px), 0) scale(1.12); will-change: transform; }

/* hero background "Horizon" (Mobbin ref: Superpower): warm glow behind the collage,
   and a curved horizon in the page colour that melts into the next section */
.hero { position: relative; isolation: isolate; overflow-x: clip; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.hero::before { inset: 0; background: radial-gradient(60% 70% at 70% 45%, #F3D3CC 0%, #F8E6E1 45%, var(--shell) 75%); }
.hero::after {
  left: -20%; right: -20%; bottom: -62%; height: 80%; border-radius: 50%;
  background: var(--shell); box-shadow: 0 -30px 80px rgba(216, 154, 158, .25);
}
@media (max-width: 860px) {
  .hero::before { background: radial-gradient(90% 55% at 50% 70%, #F3D3CC 0%, #F8E6E1 45%, var(--shell) 80%); }
  .hero::after { bottom: -72%; }
}
/* collage stays straight (no tilt) but each photo floats at its own depth:
   per-tile perspective scales it around its own centre, closer tiles get bigger/softer
   shadows and sit on top, a glossy edge catches the light */
.collage { position: relative; --k: 1; }
.collage > * { transform: perspective(900px) translateZ(calc(var(--z, 0px) * var(--k))); }
.collage .ph {
  box-shadow:
    0 2px 4px rgba(58, 38, 41, .08),
    0 calc(10px + var(--d, 0) * 26px) calc(24px + var(--d, 0) * 40px) calc(-8px - var(--d, 0) * 8px) rgba(58, 38, 41, calc(.22 + var(--d, 0) * .18)),
    0 calc(24px + var(--d, 0) * 50px) calc(60px + var(--d, 0) * 50px) -30px rgba(156, 91, 99, .35);
}
.collage .ph::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 38%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 -18px 30px -18px rgba(58, 38, 41, .25);
}
.collage .c3 { --z: 0px;  --d: 0;   z-index: 1; }
.collage .c5 { --z: 6px;  --d: .2;  z-index: 2; }
.collage .c1 { --z: 12px; --d: .45; z-index: 3; }
.collage .c4 { --z: 18px; --d: .65; z-index: 4; }
.collage .c2 { --z: 24px; --d: .85; z-index: 5; }
.collage .c6 { --z: 30px; --d: 1;   z-index: 6; }
.collage .next-class {
  --z: 70px; z-index: 7;
  box-shadow: 0 2px 6px rgba(58, 38, 41, .08), 0 40px 70px -24px rgba(58, 38, 41, .45), 0 18px 30px -18px rgba(156, 91, 99, .35);
}
@media (max-width: 860px) { .collage { --k: .5; } }

/* CTA band opens as a widening circle while it scrolls in */
.motion .cta-band { clip-path: circle(var(--cta-r, 12%) at 50% 55%); }
.motion .cta-band > :not(.liquid-bg) { opacity: var(--cta-o, 0); translate: 0 calc((1 - var(--cta-o, 0)) * 12px); }


/* ==========================================================================
   Responsive polish — mobile/tablet refinements (Mobbin refs: Cash App menu,
   Lloyds/Bumble swipe cards, Shopify stacked plans, Fresha bottom sheet)
   ========================================================================== */

/* Global fixes */
figure { margin: 0; }
.next-class .time { grid-column: 1; grid-row: 1 / 3; }
.next-class .t, .next-class .s { grid-column: 2; min-width: 0; }
.next-class .btn { grid-column: 3; grid-row: 1 / 3; }
.price--feat .note { color: #FFF4F1; }
.brand, .pill .btn, .menu-toggle { white-space: nowrap; }

/* Day tabs: centred when they fit, scrollable from the first day when they don't */
.days { justify-content: flex-start; }
.days > :first-child { margin-left: auto; }
.days > :last-child { margin-right: auto; }

/* Hamburger icon */
.menu-toggle { align-items: center; gap: 8px; }
.menu-ico { position: relative; width: 18px; height: 12px; display: inline-block; }
.menu-ico::before, .menu-ico::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s cubic-bezier(.65, 0, .35, 1), top .3s cubic-bezier(.65, 0, .35, 1);
}
.menu-ico::before { top: 1px; }
.menu-ico::after { top: 9px; }
.nav-open .menu-ico::before { top: 5px; transform: rotate(45deg); }
.nav-open .menu-ico::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .site-header { min-height: 80px; padding-block: 12px; }
  .menu-toggle { display: inline-flex; }

  /* Full-width menu sheet with large serif rows + chevrons */
  .nav-open .nav-links {
    position: fixed; top: 84px; left: var(--gutter); right: var(--gutter);
    max-height: calc(100dvh - 100px); overflow-y: auto;
    padding: 8px 8px 12px; gap: 0; border-radius: 22px;
    animation: menu-in .32s cubic-bezier(.2, .7, .2, 1) both;
  }
  .nav-open .nav-links li + li { border-top: 1px solid var(--line); }
  .nav-open .nav-links a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 14px; font-family: var(--display); font-size: 26px; font-weight: 400; border-radius: 14px;
  }
  .nav-open .nav-links a::after {
    content: ""; width: 9px; height: 9px; flex: none; margin-right: 4px;
    border-top: 2px solid var(--rose); border-right: 2px solid var(--rose); transform: rotate(45deg);
  }
  .nav-open .nav-links a[aria-current="page"] { background: var(--shell); color: var(--mauve); }
  .nav-extra { display: grid; gap: 8px; padding: 14px 14px 4px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
  .nav-extra a { font-family: var(--body) !important; font-size: 15px !important; padding: 0 !important; display: inline !important; color: var(--cocoa); }
  .nav-extra a::after { display: none !important; }
  .nav-scrim { position: fixed; inset: 0; z-index: -1; background: rgba(58, 38, 41, .28); pointer-events: auto; animation: fade-in .25s both; }

  .bk-split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 901px) { .nav-extra, .nav-scrim { display: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 860px) {
  .hero-grid, .classes-grid { grid-template-columns: minmax(0, 1fr); }

  /* Collage: taller tiles, next-class card tucked under it */
  .collage { grid-template-rows: repeat(6, clamp(52px, 15vw, 96px)) auto; }
  .next-class { grid-column: 1 / -1; grid-row: 7; justify-self: center; width: calc(100% - 24px); margin: -44px 0 0; }

  /* Classes: copy first, cards as a swipeable rail */
  .class-side { order: -1; }
  .class-cards {
    columns: auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .class-cards::-webkit-scrollbar { display: none; }
  .class-card { flex: 0 0 min(64%, 260px); margin: 0; scroll-snap-align: start; }
  .class-card .ph { aspect-ratio: 4 / 5 !important; }

  /* Pricing: most popular plan first */
  .price--feat { order: -1; }
}

@media (max-width: 760px) {
  .about-row { grid-template-columns: minmax(0, 1fr); }

  /* Testimonials: swipeable cards */
  .testi-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 32px;
    margin-inline: calc(var(--gutter) * -1); padding: 20px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .testi-grid::-webkit-scrollbar { display: none; }
  .testi {
    flex: 0 0 min(84%, 340px); scroll-snap-align: start; align-content: start;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 16px 20px;
  }
  .testi-photo { max-width: none; }
  .testi-tag { top: -14px; right: 10px; font-size: 17px; padding: 7px 13px; }
  .testi blockquote { font-size: 16px; }
  .rail-hint { display: block; }

  .team-grid { gap: 12px; }
  .member-body { padding: 12px 14px 16px; }
}
.rail-hint { display: none; text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

@media (max-width: 700px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; gap: 22px; padding: 44px 24px 36px; }
  .cta-band > div:not(.liquid-bg) { display: grid; gap: 10px; justify-items: center; }
  /* two lines whenever they fit: no ch cap, balanced wrap, size scales with the card */
  .cta-band h2 { font-size: clamp(23px, 7.4vw, 36px); line-height: 1.1; text-wrap: balance; max-width: none; }
  .cta-band p { margin-top: 0; max-width: 28ch; font-size: 15px; line-height: 1.55; }
  .cta-band .btn { justify-self: stretch; justify-content: center; }

  /* slot card on phones: time | details, then a full-width "Запази" under them */
  .slot { gap: 12px; }
  .slot .ph { aspect-ratio: 2 / 1; }
  .slot-body { grid-template-columns: auto minmax(0, 1fr); gap: 14px 14px; align-items: start; }
  .slot-time { padding-right: 14px; align-content: start; }
  .slot-time b { font-size: 24px; }
  .slot h3 { font-size: 21px; }
  .slot .info { font-size: 13.5px; }
  .slot .btn { grid-column: 1 / -1; grid-row: 2; justify-content: center; padding-block: 12px; }

  /* Gallery: two columns, filters as a scroll row */
  .gallery-grid { columns: 2; column-gap: 10px; }
  .gallery-grid button { margin-bottom: 10px; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .filters > :first-child { margin-left: auto; }
  .filters > :last-child { margin-right: auto; }

  /* Booking modal becomes a bottom sheet */
  .modal { place-items: end stretch; padding: 0; }
  .modal-card { width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; padding-bottom: max(22px, env(safe-area-inset-bottom)); animation: sheet-up .38s cubic-bezier(.2, .7, .2, 1) both; }
  .modal-card::before { content: ""; justify-self: center; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: -8px 0 -6px; }

  .page-intro { padding-block: 28px 40px; }
  .section { padding-block: 64px; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

@media (max-width: 480px) {
  .brand { font-size: 19px; padding: 4px 8px 4px 4px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .pill { padding: 5px; border-radius: 14px; }
  .pill .btn { padding: 10px 14px; font-size: 13.5px; }
  .menu-toggle { padding: 9px 10px; }
  .menu-txt { display: none; }

  .hero-copy { gap: 20px; }
  .hero-copy .actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-meta { gap: 6px 16px; font-size: 13.5px; }
  .lead { font-size: 17px; }

  .bk-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-foot { flex-wrap: wrap; }
  .bk-go { flex: 1; justify-content: center; }

  .price { padding: 26px 22px; }
  .price .amount { font-size: 48px; }
  .faq summary { font-size: 16px; padding-block: 18px; }
  .faq details p { padding-right: 4px; }

  .footer-top { gap: 32px 20px; }
  .join { max-width: none; }
}

@media (max-width: 360px) {
  .brand-text { display: none; }
  .day { min-width: 56px; padding-inline: 8px; }
}
.nav-scrim { display: none; }
@media (max-width: 900px) { .nav-open .nav-scrim { display: block; } }
@media (max-width: 760px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer-brand { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(18px, 2.4vw, 32px); }
/* phones: logo + name side by side, text and newsletter full width below */
@media (max-width: 480px) {
  .footer-logo { grid-row: 1; width: 84px; }
  .footer-brand > .name { align-self: center; }
  .footer-brand > :is(p, .join) { grid-column: 1 / -1; }
  .footer-brand .join { max-width: none; }
}
.join input { width: 100%; }
/* aspect-ratio + min-height would otherwise force a min-width wider than the column */
.ph:has(img) { min-height: 0; }
@media (max-width: 900px) { .menu-toggle { margin-left: 2px; } }
/* backdrop-filter makes the pill the containing block of the fixed menu — drop it while open */
@media (max-width: 900px) {
  .nav-open .pill { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .nav-open .nav-links { overflow-x: hidden; }
}
@media (min-width: 861px) { .next-class { width: min(360px, 100%); } .next-class .t { white-space: nowrap; } }
@media (max-width: 480px) { .next-class .time { font-size: 26px; } }

/* New pages (legal, blog, intro offer) — mobile */
@media (max-width: 600px) {
  body .legal-doc table, body .legal-doc tbody, body .legal-doc tr, body .legal-doc td { display: block; width: 100%; }
  body .legal-doc table { background: none; border-radius: 0; }
  body .legal-doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body .legal-doc tr { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin-bottom: 10px; }
  body .legal-doc td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 8px 0; }
  body .legal-doc tr td:last-child { border-bottom: 0; }
  body .legal-doc td::before { content: attr(data-label); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
  body .legal-doc td:first-child { font-weight: 700; }

  body .blog-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 20px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  body .blog-tabs::-webkit-scrollbar { display: none; }
  body .blog-tabs button { flex: none; }

  body .offer-card .btn { padding-inline: 22px; letter-spacing: .03em; white-space: nowrap; font-size: 13px; }
}


/* Instructor bento: bigger headings, text that fills its tile, no holes on phones */
body .bento { grid-auto-rows: minmax(150px, auto); }
body .bento .tile { padding: clamp(20px, 2.4vw, 28px); gap: 12px; overflow: visible; }
body .bento .tile h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; }
body .bento .tile p, body .bento .tile li { font-size: clamp(15px, 1.4vw, 16.5px); line-height: 1.6; }
/* "За мен": the big text tile reads like an intro, first paragraph as a lead */
body .bento .tile.wide.tall { align-content: center; gap: 16px; }
body .bento .tile.wide.tall p { font-size: clamp(16px, 1.6vw, 18.5px); }
body .bento .tile.wide.tall p:first-of-type { color: var(--cocoa); font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; }
/* "Моите класове": rows spread over the full tile height */
body .bento .tile.tall:not(.wide) { grid-template-rows: auto 1fr; }
body .bento .coach-classes { align-content: space-evenly; gap: 4px; }
body .coach-classes li { font-size: 14.5px; padding-block: 6px; flex-wrap: wrap; gap: 2px 8px; }
body .coach-classes li span { font-weight: 700; white-space: nowrap; }
/* Сертификати / CTA / quote */
body .bento .tile.rose { align-content: center; }
body .bento .tile.rose ul { gap: 8px; }
body .bento .tile.dark { align-content: center; gap: 18px; }
body .bento .tile.dark p { font-family: var(--display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; color: var(--white); }
body .bento .tile.wide[style*="align-content"] h2 { font-size: clamp(26px, 2.8vw, 34px) !important; }

body .bento .tile.tall:not(.wide) .coach-classes li { flex-direction: column; align-items: flex-start; }
@media (max-width: 760px) { body .bento .tile.wide.tall { grid-row: auto; align-content: start; } }
/* Desktop bento on 6 columns: schedule + photo get more room, certificates / CTA stay compact */
@media (min-width: 761px) {
  body .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body .bento > .big, body .bento > .tile.wide.tall { grid-column: span 3; }
  body .bento > .tile.tall:not(.wide), body .bento > .tall:not(.tile) { grid-column: span 2; grid-row: span 2; }
  body .bento > .tile.rose.wide, body .bento > .tile.dark.wide { grid-column: span 2; }
  body .bento > .wide:not(.tile), body .bento > .tile.wide:not(.rose):not(.dark):not(.tall) { grid-column: span 3; }

  body .bento .tile.rose, body .bento .tile.dark { padding: 18px 20px; gap: 8px; }
  body .bento .tile.rose h2 { font-size: clamp(20px, 1.9vw, 24px); }
  body .bento .tile.rose li { font-size: 13.5px; line-height: 1.45; }
  body .bento .tile.rose ul { gap: 4px; }
  body .bento .tile.dark { gap: 12px; }
  body .bento .tile.dark p { font-size: clamp(20px, 1.9vw, 24px); }

  body .bento .tile.tall:not(.wide) .coach-classes li { flex-direction: row; align-items: baseline; justify-content: space-between; }
}
/* Phones: one column, every photo full width, tiles sized by their text */
@media (max-width: 600px) {
  body .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 12px; }
  body .bento > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  body .bento > :not(.tile) { height: 240px; }
  body .bento > .big { height: 360px; }
  body .bento .tile.wide.tall { align-content: start; }
  body .bento .coach-classes { gap: 0; }
  body .bento .tile.tall:not(.wide) { text-align: center; justify-items: center; }
  body .bento .tile.tall:not(.wide) .coach-classes { width: 100%; }
  body .bento .tile.tall:not(.wide) .coach-classes li { align-items: center; text-align: center; }
}
body .v-steps { padding-left: 0; }

/* ---------- Design audit fixes (2026-10-08) ---------- */
/* Tap targets: inline text links keep their look but get a 44px-tall hit area */
.text-link, .hero-meta a, a.back { position: relative; }
.text-link::after, .hero-meta a::after, a.back::after { content: ""; position: absolute; inset: -12px -6px; }
.menu-toggle { min-height: 40px; }
/* Legal tables on phones: the visually hidden header row still widened the page */
@media (max-width: 600px) { body .legal-doc thead { display: none; } }

/* Google Maps button — Google brand colours */
.btn--gmaps { background: #fff; color: #3C4043; border: 1px solid #DADCE0; gap: 10px; }
.btn--gmaps:hover { background: #fff; color: #202124; border-color: #4285F4; box-shadow: 0 6px 18px -8px rgba(66, 133, 244, .55); }
.btn--gmaps .gpin { width: 16px; height: 22px; flex: none; }
.btn--gmaps .gword b { font-weight: 700; }

/* ---------- Contact form v2 (guided: topic → reply channel → details) ---------- */
.cf { gap: 26px; }
.cf-head { display: grid; gap: 8px; }
.cf-sub { font-size: 14px; color: var(--blush); opacity: .9; }
.cf-sub a { color: var(--white); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rose); }
.cf-block { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.cf-legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font-size: 15px; font-weight: 700; }
.cf-step { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--rose); color: var(--cocoa); flex: none; }

.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip { position: relative; cursor: pointer; }
.cf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cf-chip span {
  display: block; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.22); color: var(--blush); transition: background .2s, color .2s, border-color .2s;
}
.cf-chip:hover span { border-color: var(--rose); color: var(--white); }
.cf-chip input:checked + span { background: var(--blush); border-color: var(--blush); color: var(--cocoa); }
.cf-chip input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.cf-hint { font-size: 13.5px; line-height: 1.55; color: var(--blush); background: rgba(255,255,255,.06); border-left: 2px solid var(--rose); padding: 10px 14px; border-radius: 0 10px 10px 0; }
.cf-hint a { color: var(--white); font-weight: 600; }

.cf-seg { display: inline-grid; grid-auto-flow: column; justify-self: start; background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px; gap: 2px; }
.cf-seg label { position: relative; cursor: pointer; }
.cf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.cf-seg span { display: block; padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--blush); transition: background .2s, color .2s; }
.cf-seg input:checked + span { background: var(--white); color: var(--cocoa); }
.cf-seg input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }

.cf .field label { font-size: 13px; letter-spacing: .02em; }
.cf-opt { font-weight: 500; opacity: .6; }
.cf .field input, .cf .field textarea { transition: border-color .2s, background .2s, box-shadow .2s; }
.cf .field input::placeholder, .cf .field textarea::placeholder { color: rgba(255,255,255,.38); }
.cf .field input:focus, .cf .field textarea:focus { outline: none; border-color: var(--rose); background: rgba(255,255,255,.12); box-shadow: 0 0 0 3px rgba(216,154,158,.25); }
.cf .field.is-error input, .cf .field.is-error textarea { border-color: #F2A7A0; }
.cf .field.is-ok input { border-color: rgba(168,214,180,.7); }
.cf-err { font-size: 12.5px; color: #FFC2BC; min-height: 0; }
.cf-err:empty { display: none; }
.cf-under { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cf-count { margin-left: auto; font-size: 12px; opacity: .55; font-variant-numeric: tabular-nums; }

.cf-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.55; cursor: pointer; color: var(--blush); }
.cf-consent input { position: absolute; opacity: 0; pointer-events: none; }
.cf-consent a { color: var(--white); }
.cf-box { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.4); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.cf-box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--cocoa); border-bottom: 2px solid var(--cocoa); transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .15s; }
.cf-consent input:checked + .cf-box { background: var(--blush); border-color: var(--blush); }
.cf-consent input:checked + .cf-box::after { transform: rotate(-45deg) scale(1); }
.cf-consent input:focus-visible + .cf-box { outline: 2px solid var(--rose); outline-offset: 2px; }

.cf-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  font: 700 16px var(--body); padding: 17px 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--blush); color: var(--cocoa); transition: background .2s, transform .2s;
}
.cf-submit svg { width: 20px; height: 20px; transition: transform .25s; }
.cf-submit:hover { background: var(--white); }
.cf-submit:hover svg { transform: translateX(4px); }
.cf-submit:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.cf-submit.is-busy { opacity: .7; cursor: progress; }
.cf-note { font-size: 12px; opacity: .6; text-align: center; margin-top: -12px; }
.cf .form-msg:empty { display: none; }

.cf-done { display: grid; gap: 14px; justify-items: start; padding: 12px 0; outline: none; }
.cf-done .mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--blush); color: var(--cocoa); }
.cf-done p { color: var(--blush); max-width: 44ch; }
.cf-done b { color: var(--white); }
.cf-next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.cf-link { color: var(--white); font-weight: 600; font-size: 14px; }
@media (max-width: 480px) { .cf-seg { justify-self: stretch; } .cf-seg span { text-align: center; } }
.cf [hidden] { display: none !important; }
.cf .field { align-content: start; }

/* Contact form v3 — compact */
.cf { gap: 18px; }
.cf-head { gap: 4px; }
.cf .fields { gap: 12px; }
.cf .field textarea { min-height: 96px; }
.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
.cf-foot .cf-consent { flex: 1 1 220px; }
.cf-foot .cf-submit { width: auto; padding: 14px 28px; flex: none; }
#err-ok { margin-top: -8px; }
@media (max-width: 480px) { .cf-foot .cf-submit { width: 100%; } }
.cf .cf-chips { gap: 6px; } .cf .cf-chip span { padding: 8px 13px; font-size: 13px; }

/* Booking terms checkbox — text and link stay one block */
.check--terms { align-items: flex-start; gap: 12px; line-height: 1.5; cursor: pointer; }
.check--terms input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--mauve); cursor: pointer; }
.check--terms > span { flex: 1; min-width: 0; }
.check--terms a { color: var(--mauve); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.check--terms small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* Contact info — centred on phones */
@media (max-width: 480px) {
  .info-grid { text-align: center; justify-items: center; gap: 30px; }
  .info-grid h2, .info-grid h3 { margin-bottom: 8px; }
  .info-grid a { display: inline-block; }
}
/* phones and small tablets: map button and the form intro (title, note, topics) centred; fields stay left for easy filling */
@media (max-width: 760px) {
  .map-link { justify-items: center; }
  .map-link .ph { justify-self: stretch; }
  .map-link .btn { justify-self: center !important; }
  .cf-head { text-align: center; justify-items: center; }
  .cf .cf-chips { justify-content: center; }
}
