/* =========================================================
   Feature/page styles ("Soft Linen Studio" look). Composes the
   primitives in components.css; tokens only, no raw colours.
   ========================================================= */

.opn-app { min-height: 100vh; display: flex; flex-direction: column; }
.opn-app main { flex: 1; }

/* ---------- Header ---------- */
.opn-header {
  position: sticky; top: 0; z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease);
}
/* The blurred backdrop lives on a pseudo-element, NOT on .opn-header itself:
   backdrop-filter on the header would create a containing block that traps the
   fixed-position mobile nav panel (clamping it to the header height). */
.opn-header::before {
  content: "";
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  z-index: -1;
}
.opn-header.scrolled { border-color: var(--line); }
.opn-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 0;
  gap: 20px;
}
.opn-logo {
  justify-self: start;
  background: transparent; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start;
  font-family: var(--font-serif);
  color: var(--ink);
  padding: 0;
}
.opn-logo .logo-line1 { font-size: 20px; font-style: italic; letter-spacing: 0.02em; line-height: 1; }
.opn-logo .logo-line2 { font-size: 11px; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.35em; margin-top: 3px; color: var(--ink-mute); }

.opn-nav { display: flex; gap: 28px; }
.opn-navlink {
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 0;
  position: relative;
  transition: color var(--dur-1);
}
/* The rule means one thing only — "you are here". Hover is carried by colour, so
   the mark never appears under two entries at once. Stops 0.22em short of the
   box: the trailing letter-space hangs past the last glyph. */
.opn-navlink::after {
  content: ''; position: absolute; bottom: 2px; left: 0;
  width: calc(100% - 0.22em); height: 1px; background: var(--ink);
  transform: scaleX(0);
}
.opn-navlink:hover, .opn-navlink:focus-visible, .opn-navlink.active { color: var(--ink); }
.opn-navlink.active::after {
  transform: scaleX(1);
  animation: navline-sweep var(--dur-2) var(--ease);
}
/* Turbo swaps the body on every visit, so this re-fires as each page lands. */
@keyframes navline-sweep { from { transform: scaleX(0); } }

.opn-header-end {
  justify-self: end;
  display: flex; align-items: center; gap: 18px;
}
.opn-langswitch {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-family: var(--font-sans);
  letter-spacing: 0.1em;
}
.opn-langswitch button,
.opn-langswitch a {
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-mute);
  /* ≥40px tap target */
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 4px 8px;
  text-decoration: none;
  transition: color var(--dur-1);
}
.opn-langswitch a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.opn-langswitch button.on,
.opn-langswitch a.on {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--ink);
}
.opn-langswitch span { color: var(--line); }

.cart-dot {
  position: absolute; top: -2px; right: -2px;
  background: var(--accent); color: var(--bg);
  font-size: 10px; font-family: var(--font-sans);
  min-width: 16px; height: 16px; border-radius: 10px;
  display: grid; place-items: center; padding: 0 4px;
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: 72vh;
}
.hero-left { padding: 20px 0; }
.hero-left .eyebrow { margin-bottom: 28px; }
.hero-title {
  font-size: clamp(3.5rem, 8.5vw, 8rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 36px;
  font-style: italic;
}
.hero-title .hero-line { display: block; }
.hero-title .hero-line:nth-child(2) { padding-left: 1.5em; font-style: normal; font-family: var(--font-serif); font-weight: 400; }
.hero-lede {
  max-width: 440px;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-right {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 72vh;
  min-height: 560px;
  position: relative;
}
.hero-photo { overflow: hidden; border-radius: var(--r-sm); }
.hero-photo.big { grid-row: span 2; }

.hero-marquee {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 28px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ink-soft);
  animation: marquee 30s linear infinite;
}
.marquee-track span { display: inline-block; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 140px) 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 60px);
  flex-wrap: wrap;
}
.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head h2 { margin: 12px 0 10px; max-width: 16ch; }
.section-head .eyebrow { margin-bottom: 8px; }
.section-head p { color: var(--ink-soft); max-width: 48ch; margin: 0; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px 32px;
}
.product-grid-wide { gap: 64px 32px; }
.product-card {
  position: relative;
  transition: transform var(--dur-3) var(--ease);
}
.product-card:hover { transform: translateY(-4px); }
.product-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.product-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  border-radius: var(--r-sm);
}
.product-photo > * { transition: transform var(--dur-4) var(--ease); }
.product-card:hover .product-photo > * { transform: scale(1.04); }
.product-meta {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 16px;
}
.product-name {
  font-size: var(--step-1);
  font-style: italic;
  font-weight: 400;
}
.product-price {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}
.product-add {
  margin-top: 6px;
  background: transparent; border: 0;
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute);
  /* Symmetric padding keeps the ~40px tap target now that no rule anchors it. */
  padding: 14px 0;
  cursor: pointer;
  transition: color var(--dur-1);
}
.product-add:hover { color: var(--ink); }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 32px;
  counter-reset: step;
}
.process-step { padding-top: 24px; border-top: 1px solid var(--line); }
.process-num {
  font-size: 48px;
  font-weight: 300;
  color: var(--ink-mute);
  line-height: 1;
  margin-bottom: 20px;
  font-style: italic;
}
.process-step h3 {
  font-size: var(--step-2);
  margin: 0 0 12px;
}
.process-step p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 28ch;
}

/* ---------- Lessons teaser ---------- */
.section-lessons-teaser { padding: clamp(64px, 10vw, 140px) 0; }
.lessons-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.teaser-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-sm);
}
.teaser-copy h2 { margin: 14px 0 18px; }
.teaser-copy p { color: var(--ink-soft); max-width: 44ch; margin-bottom: 32px; }
.teaser-list { margin: 32px 0 40px; border-top: 1px solid var(--line); }
.teaser-row {
  display: flex; align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-1);
}
.teaser-row .serif { font-style: italic; }
.dot-leader {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
  margin: 0 12px;
}
.teaser-row .price {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.teaser-duration { color: var(--ink-mute); }
.teaser-duration::after { content: " · "; }

/* ---------- IG grid ---------- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ig-tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
  border-radius: var(--r-sm);
  position: relative;
}
/* No hover lift: on this site a growing tile means "clickable" (.product-card),
   and these are decorative — matches .about-grid. */

/* ---------- Newsletter ---------- */
.section-newsletter { background: var(--bg-alt); }
.section-newsletter .wrap-narrow { text-align: center; }
.section-newsletter h2 { margin: 14px 0 16px; }
.section-newsletter p { color: var(--ink-soft); margin-bottom: 36px; }
.newsletter-form {
  display: flex; gap: 12px; max-width: 480px; margin: 0 auto;
  padding-bottom: 8px; border-bottom: 1px solid var(--ink);
}
.newsletter-form input {
  flex: 1; border: 0; background: transparent;
  font-family: var(--font-serif); font-style: italic;
  font-size: var(--step-1);
  color: var(--ink);
  padding: 12px 0;
  outline: none;
}
.newsletter-form input::placeholder { color: var(--ink-mute); }
.newsletter-form .btn { padding: 10px 20px; font-size: 11px; white-space: nowrap; }

/* The single row can't hold an email field plus a long CTA on a small phone —
   "Подписаться" pushes the button past the viewport. Stack instead. */
@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; align-items: stretch; gap: 16px; border-bottom: 0; }
  /* flex:1 measures the main axis — in a column that collapses the field to 0. */
  .newsletter-form input { flex: 0 0 auto; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
  .newsletter-form .btn { width: 100%; min-height: 44px; }
}

/* ---------- Shop toolbar ---------- */
.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.shop-filters, .shop-sort { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* Outlined chips (matching .badge--outline) so the whole set reads as one control
   whether it sits on one row or wraps — not scattered text with only the active
   one visibly a button. */
.filter-pill, .sort-btn {
  background: transparent;
  border: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--dur-1), background var(--dur-1), border-color var(--dur-1);
}
.filter-pill:hover, .sort-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.filter-pill.active, .sort-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.shop-sort .small { margin-right: 4px; white-space: nowrap; }

/* Phones: stack the two groups, each a tidy full-width row of chips. */
@media (max-width: 640px) {
  .shop-toolbar { gap: 18px; margin-bottom: 40px; }
  .shop-filters, .shop-sort { width: 100%; }
}

/* ---------- Lessons ---------- */
.lessons-list { padding: clamp(40px, 6vw, 80px) 0; display: flex; flex-direction: column; gap: clamp(40px, 6vw, 80px); }
.lesson-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.lesson-card:last-of-type { border-bottom: 0; }
.lesson-card:nth-child(even) { grid-template-columns: 1.3fr 1fr; }
.lesson-card:nth-child(even) .lesson-photo { order: 2; }
.lesson-photo {
  aspect-ratio: 5/4;
  overflow: hidden;
  border-radius: var(--r-sm);
}
.lesson-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px; margin-bottom: 16px;
}
.lesson-head h2 { font-style: italic; font-size: var(--step-3); margin: 0; }
.lesson-price { font-size: var(--step-2); color: var(--ink-soft); white-space: nowrap; }
.lesson-body p { color: var(--ink-soft); max-width: 48ch; margin: 0 0 24px; }
.lesson-specs {
  display: grid; grid-template-columns: repeat(3, auto); gap: 24px 40px;
  margin: 0 0 28px; padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* The labels are translated, and Russian's ("Размер группы") won't fit three
   across a 320px card — drop to two columns before they overflow. */
@media (max-width: 560px) {
  .lesson-specs { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
}
.lesson-specs dt {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 6px;
}
.lesson-specs dd { margin: 0; font-family: var(--font-serif); font-size: var(--step-1); font-style: italic; }
.lesson-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

.lesson-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0 0 20px; padding: 0;
}

/* ---------- Sumup embed ---------- */
.sumup-embed-section { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.sumup-embed-section h3 { margin: 10px 0 8px; font-style: italic; }
.sumup-embed-section .muted { margin-bottom: 40px; max-width: 56ch; }

.mock-cal { max-width: 560px; }
.mock-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mock-cal-head h4 { font-size: var(--step-2); font-style: italic; margin: 6px 0 0; }
/* ---------- Cart qty stepper ---------- */
.cart-qty { margin: 6px 0 4px; }
.cart-qty .stepper__value { color: var(--ink-mute); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .opn-navlink.active::after, .opn-mobile-link.active::before { animation: none; }
}

.modal-steps {
  display: flex; padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  gap: 8px;
  flex-wrap: wrap;
}
.msx {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 10px 6px 6px;
}
.msx-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-alt); color: var(--ink-mute);
  font-size: 11px;
}
.msx.on { color: var(--ink); }
.msx.on .msx-num { background: var(--ink); color: var(--bg); }
.msx.done .msx-num { background: var(--sage); color: var(--bg); }

.bk-step h4 { margin: 0 0 20px; font-style: italic; }
.bk-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.bk-date {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 6px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-md); cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--dur-1);
}
.bk-date:hover { border-color: var(--ink); }
.bk-date.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bk-dow { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: inherit; opacity: 0.7; }
.bk-dnum { font-family: var(--font-serif); font-size: 24px; font-style: italic; line-height: 1; }
.bk-dmon { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }

.bk-counter { display: flex; align-items: center; gap: 32px; padding: 20px 0; }
.bk-big { font-size: 48px; font-style: italic; }

.bk-summary { display: grid; gap: 12px; margin: 0; }
.bk-summary > div { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.bk-summary dt { color: var(--ink-soft); margin: 0; }
.bk-summary dd { margin: 0; font-family: var(--font-serif); }
.bk-summary hr { margin: 8px 0; }
.bk-row-total dd { font-size: var(--step-2); }

/* ---------- About ---------- */
.about-hero { padding: clamp(60px, 9vw, 120px) 0; }
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.about-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-sm);
}
.about-copy h1 {
  font-size: var(--display-1);
  font-style: italic;
  margin: 16px 0 32px;
  line-height: 0.95;
}
.about-body p {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 1em;
  max-width: 48ch;
}
.about-grid {
  padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 12vw, 140px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.about-grid > * {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--r-sm);
}

/* ---------- Contact ---------- */
.contact-grid {
  padding: clamp(60px, 9vw, 100px) 0 clamp(80px, 12vw, 140px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-event { max-width: 560px; }
.contact-event .lede { margin-bottom: 16px; }
.contact-event strong { color: var(--ink); font-weight: 500; }
.contact-event-date {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 8px;
}
.contact-event .muted { margin: 0; }

.contact-info { display: flex; flex-direction: column; gap: 40px; }
.info-row .eyebrow { margin-bottom: 10px; }
/* These two ARE the contact page's call to action, so they opt back in to the
   underline the global reset drops — as plain text they read as unclickable. */
.info-row .big {
  font-size: var(--step-2);
  font-style: italic;
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color var(--dur-1), text-decoration-color var(--dur-1);
}
.info-row .big:hover { color: var(--accent-deep); text-decoration-color: currentColor; }
.info-row p { margin: 8px 0 0; color: var(--ink-mute); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Cart drawer + cart lines ---------- */
/* `contain` keeps a flick at the end of the list from chaining out to the page. */
.cart-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.cart-list li {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 16px; padding: 20px 28px; align-items: center;
  border-bottom: 1px solid var(--line);
}
.cart-thumb { aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); }
.cart-info .serif { font-style: italic; font-size: 16px; }
.cart-info .small { font-size: 12px; margin-top: 2px; }
.cart-info .link-quiet { margin-top: 8px; display: block; }
.cart-price { font-family: var(--font-serif); font-size: 15px; }
.cart-foot { padding: 24px 28px; border-top: 1px solid var(--line); }
.cart-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--font-serif); font-size: var(--step-1); }
.payments-note { margin: 10px 0 0; }

/* ---------- Footer ---------- */
.opn-footer { padding: clamp(60px, 9vw, 100px) 0 40px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand h3 { font-style: italic; font-size: var(--step-3); margin: 0 0 16px; line-height: 0.95; }
.footer-brand h3 em { font-family: var(--font-serif); font-size: 0.7em; color: var(--ink-mute); }
.footer-brand p { max-width: 28ch; color: var(--ink-mute); margin: 0; font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .eyebrow { margin-bottom: 8px; }
.footer-col button, .footer-col a, .footer-col span {
  background: transparent; border: 0; cursor: pointer;
  text-align: left; padding: 0;
  font-family: var(--font-serif); font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--dur-1);
}
.footer-col button:hover, .footer-col a:hover { color: var(--ink); }
.footer-col span { cursor: default; }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-mute);
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  flex-wrap: wrap; gap: 16px;
}
.footer-instagram {
  color: var(--ink-mute);
  text-decoration: none;
  transition: color var(--dur-1);
}
.footer-instagram:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { height: 60vh; }
  .lessons-teaser-grid { grid-template-columns: 1fr; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .lesson-card, .lesson-card:nth-child(even) { grid-template-columns: 1fr; }
  .lesson-card:nth-child(even) .lesson-photo { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .opn-nav { display: none; }
  .cart-qty .stepper__value { min-width: 56px; }
  /* Remove is destructive and was left out of the tap-target pass above —
     grow the hit area only, so it keeps reading as a quiet text link. */
  .cart-info .link-quiet { padding: 12px 0; margin-top: 2px; }
}

/* ---------- Clay photo (procedural SVG / uploaded photo) ---------- */
/* Sizing lives here rather than inline so the strict CSP can drop
   'unsafe-inline' for style-src. The bg1→bg2 gradient is baked into the SVG. */
.clay-photo { width: 100%; height: 100%; overflow: hidden; position: relative; }
.clay-photo__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clay-photo__svg { display: block; width: 100%; height: 100%; }
/* The placeholder ships alongside every real photo, dormant until that photo fails to load. */
.clay-photo__img + .clay-photo__svg { display: none; }
.clay-photo--failed .clay-photo__img { display: none; }
.clay-photo--failed .clay-photo__svg { display: block; }

/* ---------- Cart page ---------- */
.cart-page { padding: 40px 0 120px; max-width: 680px; }
.cart-stock-note { margin-left: 8px; }

/* ---------- Lessons availability list ---------- */
.lesson-slots { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lesson-slot-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}

/* ---------- Order / booking confirmation pages ---------- */
.confirm-page { padding: 120px 0 160px; max-width: 640px; text-align: center; }
.confirm-page .eyebrow { margin-bottom: 12px; }
.confirm-title { font-size: var(--display-1); font-style: italic; line-height: 1; }
.confirm-lede { margin: 32px auto 40px; max-width: 48ch; }
.confirm-actions { margin-top: 40px; }
.order-summary-card { text-align: left; margin: 40px 0; }
.booking-summary__lesson {
  font-family: var(--font-serif); font-style: italic;
  font-size: var(--step-2); margin: 0 0 8px;
}
.payment-lesson-name {
  font-family: var(--font-serif); font-style: italic; margin-bottom: 4px;
}

/* ---------- Mobile nav ---------- */

.opn-hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
}

.opn-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur-1), opacity var(--dur-1);
}

.opn-mobile-scrim,
.opn-mobile-panel {
  display: none;
}

@media (max-width: 900px) {
  /* Column, or the three bars lay out in a row and read as one line. The gap
     plus the 1.5px bar height is the 6px the X transforms below translate by. */
  .opn-hamburger {
    display: inline-flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4.5px;
  }

  .opn-header-inner {
    grid-template-columns: auto 1fr;
    padding: 14px 0;
  }

  .opn-header-end { gap: 10px; }

  .opn-mobile-scrim {
    display: block;
    position: fixed; inset: 0; z-index: var(--z-overlay);
    background: var(--scrim);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-2);
  }

  .opn-mobile-panel {
    display: flex;
    flex-direction: column;
    position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-panel);
    width: min(360px, 85vw);
    background: var(--bg);
    padding: 24px 28px 40px;
    /* Short viewports (landscape phones) push the foot past the fold — the panel scrolls itself rather than stranding the links. */
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform var(--dur-3) var(--ease);
    box-shadow: var(--shadow-2);
  }

  .opn-header.is-open .opn-mobile-scrim { opacity: 1; pointer-events: auto; }
  .opn-header.is-open .opn-mobile-panel { transform: translateX(0); }

  .opn-mobile-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
  }

  .opn-mobile-nav { display: flex; flex-direction: column; gap: 4px; }

  .opn-mobile-link {
    display: block;
    padding: 16px 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--step-2);
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
  }

  /* A leading rule, not an underline: every row already has a bottom hairline. */
  .opn-mobile-link.active { color: var(--ink); }
  .opn-mobile-link.active::before {
    content: ''; display: inline-block; vertical-align: middle;
    width: 20px; height: 1px; margin-right: 10px;
    background: var(--ink);
    animation: navline-sweep var(--dur-2) var(--ease);
  }

  .opn-mobile-foot {
    margin-top: auto;
    display: flex; flex-direction: column; gap: 16px;
  }

  /* When the header is open, rotate the hamburger lines into an X */
  .opn-header.is-open .opn-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .opn-header.is-open .opn-hamburger span:nth-child(2) { opacity: 0; }
  .opn-header.is-open .opn-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

@media (max-width: 900px) {
  .page-home .hero-ctas .btn, .page-home .hero-ctas a { width: 100%; justify-content: center; }
}

/* Small phones: the cart line-item grid (thumb / info / price) is cramped — the
   .wrap gutter + 80px thumb leave too little for the qty row. Tighten padding,
   shrink the thumb, and narrow the qty value so −/value/+ stay on one line. */
@media (max-width: 480px) {
  .cart-list li { padding: 16px; gap: 12px; grid-template-columns: 56px 1fr auto; }
  .cart-qty .stepper__value { min-width: 32px; }
}

/* ---------- Payment widget, checkout, product detail ---------- */

.payment-wrap {
  padding: 40px 0 120px;
  max-width: 720px;
}

.payment-card__eyebrow {
  margin-bottom: 10px;
}

.payment-card__summary {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-2);
  margin: 20px 0 24px;
}

.payment-fake-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-mount {
  min-height: 320px;
}

.payment-secure {
  margin-top: 24px;
}

.payment-fallback-link {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

/* ---- Checkout form page ---- */

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) {
  .checkout-form-grid { grid-template-columns: 1fr; }
}

.checkout-step-title {
  font-style: italic;
  margin: 0 0 20px;
}

.checkout-step-title--spaced { margin: 40px 0 20px; }

/* ---- Product detail page ---- */

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start; /* image top-aligns with the title, not floating centred */
}
@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
}

.product-detail-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
}

/* ---- Product gallery ---- */

.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-gallery__thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--dur-1), border-color var(--dur-1);
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
  opacity: 1;
  border-color: var(--ink);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-title {
  font-size: var(--display-2);
  font-style: italic;
}

.product-detail-price {
  font-size: var(--step-2);
  margin: 24px 0;
}

.product-detail-body {
  color: var(--ink-soft);
  max-width: 48ch;
  line-height: 1.6;
}

.product-detail-actions {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-add-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

