/* ==========================================================================
   چرخ‌گِل — سیستم طراحی
   DNA: ادیتوریال، گرم، بافت کاغذی، حرکت کنترل‌شده، RTL-first
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* ---- رنگ‌ها ---- */
  --color-primary: #9C5A36;      /* گِل پخته */
  --color-primary-dark: #7A4226;
  --color-secondary: #4A2E20;    /* اسپرسو */
  --color-accent: #D9A066;       /* لعاب کهربایی */
  --color-glaze: #9AAE92;        /* سبز لعاب، فقط تزئینی */
  --color-background: #F6EFE4;   /* کرم کاغذی */
  --color-surface: #FCF8F1;
  --color-surface-2: #EDE1CC;
  --color-text: #2B1D15;
  --color-muted: #6F5A4B;        /* کنتراست ≥ ۶ روی کرم */
  --color-border: #DCCBB2;
  --color-success: #56733F;
  --color-warning: #B9782A;
  --color-danger: #9B2F24;
  --color-on-primary: #FFF8EE;

  /* ---- تایپوگرافی ---- */
  --font: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  --fs-display: clamp(2.6rem, 1.4rem + 5.4vw, 5.6rem);
  --fs-display-sm: clamp(2.2rem, 1.2rem + 3.6vw, 3.9rem);
  --fs-h2: clamp(1.9rem, 1.1rem + 2.6vw, 3.25rem);
  --fs-h3: clamp(1.2rem, 1rem + .6vw, 1.5rem);
  --fs-lead: clamp(1.02rem, .96rem + .3vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-micro: .78rem;
  --lh-tight: 1.2;
  --lh-body: 1.95;

  /* ---- فاصله‌ها و ابعاد ---- */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);

  /* ---- شکل و بافت ---- */
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 36px;
  --blob-a: 58% 42% 55% 45% / 52% 60% 40% 48%;
  --blob-b: 42% 58% 45% 55% / 60% 45% 55% 40%;
  --shadow-soft: 0 22px 44px -28px rgba(74, 46, 32, .45);
  --shadow-lift: 0 30px 60px -30px rgba(74, 46, 32, .55);
  --line: 1px solid var(--color-border);

  /* ---- حرکت ---- */
  --ease-standard: cubic-bezier(.2, .7, .2, 1);
  --ease-emphasis: cubic-bezier(.34, 1.3, .5, 1);
  --dur-fast: .2s;
  --dur-base: .45s;
  --dur-slow: .9s;

  /* ---- لایه‌ها ---- */
  --z-header: 50;
  --z-bar: 60;
  --z-drip: 70;
  --z-toast: 80;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  /* بافت کاغذ/گِل — بسیار ملایم، بدون مزاحمت */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .22  0 0 0 0 .14  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .3em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul.plain, ol.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .3em 0; color: var(--color-muted); }
ul.plain a { color: var(--color-text); }
em { font-style: normal; color: var(--color-primary); }
bdi { unicode-bidi: isolate; }
::selection { background: var(--color-accent); color: var(--color-secondary); }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100;
  background: var(--color-secondary); color: var(--color-on-primary);
  padding: .6rem 1rem; border-radius: 10px; transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-standard);
}
.skip-link:focus { transform: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; z-index: 1; }

/* ---------- Typography ---------- */
.display {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.display--sm { font-size: var(--fs-display-sm); }
.h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.18;
  text-wrap: balance;
}
.h3 { font-size: var(--fs-h3); font-weight: 800; line-height: var(--lh-tight); }
.lead { font-size: var(--fs-lead); color: var(--color-muted); max-width: 40em; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--fs-small); font-weight: 700; color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor;
}
.note, .small { font-size: var(--fs-small); }
.muted { color: var(--color-muted); }

/* ---------- Buttons: گِل‌گونه ---------- */
.btn {
  --btn-bg: var(--color-primary);
  --btn-fg: var(--color-on-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.7rem;
  border: 0; cursor: pointer; text-decoration: none;
  font-weight: 800; font-size: 1rem; line-height: 1;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--blob-a);
  transition:
    border-radius .7s var(--ease-emphasis),
    transform var(--dur-fast) var(--ease-standard),
    background-color var(--dur-fast), box-shadow var(--dur-base);
  box-shadow: 0 14px 26px -18px rgba(74, 46, 32, .7), inset 0 -4px 0 rgba(0,0,0,.12);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { border-radius: var(--blob-b); transform: translateY(-2px); background: var(--color-primary-dark); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { min-height: 60px; padding: 0 2.2rem; font-size: 1.05rem; }
.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--color-primary);
  box-shadow: inset 0 0 0 1.5px var(--color-primary);
  border-radius: var(--blob-b);
}
.btn--outline:hover { background: rgba(156, 90, 54, .08); box-shadow: inset 0 0 0 1.5px var(--color-primary-dark); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--color-secondary);
  box-shadow: none; border-radius: 999px; padding: 0 .9rem;
  text-decoration: underline; text-underline-offset: .35em;
}
.btn--ghost:hover { background: rgba(74, 46, 32, .06); transform: none; }
.btn--light {
  --btn-bg: var(--color-on-primary); --btn-fg: var(--color-secondary);
}
.btn--light:hover { background: #fff; }
.btn--outline-light {
  --btn-bg: transparent; --btn-fg: var(--color-on-primary);
  box-shadow: inset 0 0 0 1.5px rgba(255, 248, 238, .75); border-radius: var(--blob-b);
}
.btn--outline-light:hover { background: rgba(255,248,238,.1); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; border-radius: var(--blob-a); }

.icon-btn {
  position: relative;
  width: 46px; height: 46px; display: inline-grid; place-items: center;
  border: 0; border-radius: var(--blob-a); background: var(--color-surface);
  color: var(--color-secondary); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--color-border);
  transition: border-radius .6s var(--ease-emphasis), transform var(--dur-fast), background-color var(--dur-fast);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { border-radius: var(--blob-b); background: #fff; transform: translateY(-1px); }

.badge, .mini-badge {
  position: absolute; top: -6px; inset-inline-end: -6px;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--color-primary); color: var(--color-on-primary);
  font-size: .72rem; font-weight: 800; line-height: 22px; text-align: center;
  box-shadow: 0 0 0 3px var(--color-background);
}
.badge[hidden], .mini-badge[hidden] { display: none; }

/* ---------- Drip (قطره‌ی گِل) ---------- */
.drip-group { position: absolute; width: 0; height: 0; pointer-events: none; z-index: var(--z-drip); }
.drip {
  position: absolute; left: -6px; top: 0; width: 12px; height: 16px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #D59A6E, var(--color-primary) 60%, #6E3A20);
  transform-origin: 50% 0;
  animation: drip-fall .85s var(--ease-standard) forwards;
}
.drip-splash {
  position: absolute; left: -14px; top: 40px; width: 28px; height: 8px; border-radius: 50%;
  border: 2px solid var(--color-primary); opacity: 0;
  animation: drip-splash .6s var(--ease-standard) .6s forwards;
}
@keyframes drip-fall {
  0%   { transform: translateY(-8px) scale(.4, .6); opacity: 0; }
  15%  { opacity: 1; transform: translateY(0) scale(1, 1.25); }
  60%  { transform: translateY(26px) scale(.92, 1.3); opacity: 1; }
  100% { transform: translateY(40px) scale(.7, .9); opacity: 0; }
}
@keyframes drip-splash {
  0%   { transform: scale(.2); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(246, 239, 228, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.site-header.is-scrolled { border-color: var(--color-border); box-shadow: 0 10px 30px -26px rgba(74,46,32,.6); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--color-secondary); }
.brand__mark { width: 40px; height: 40px; color: var(--color-primary); }
.brand__text { display: grid; line-height: 1.1; }
.brand__text strong { font-size: 1.2rem; font-weight: 900; }
.brand__text small { font-size: .72rem; letter-spacing: .08em; color: var(--color-muted); font-weight: 600; }

.primary-nav { margin-inline-start: auto; }
.primary-nav ul { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--color-secondary);
  padding: .4rem 0; position: relative;
}
.primary-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--color-primary); transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-base) var(--ease-standard);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-cta { margin-inline-start: var(--space-2); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: var(--blob-a);
  background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); cursor: pointer;
  position: relative;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px; border-radius: 2px;
  background: var(--color-secondary); transform: translateX(-50%); transition: transform var(--dur-base), opacity var(--dur-fast);
}
.menu-toggle__bars { top: 50%; margin-top: -1px; }
.menu-toggle__bars::before { top: -6px; left: 0; transform: none; }
.menu-toggle__bars::after { top: 6px; left: 0; transform: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero: صحنه‌ی زنده‌ی سفالگری ---------- */
.hero { position: relative; z-index: 1; padding-block: clamp(2rem, 1.2rem + 3vw, 4.5rem) var(--section-y); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset-inline-end: -12%; top: -14%;
  width: min(760px, 72vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(236, 196, 140, .32), rgba(236, 196, 140, 0));
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  grid-template-areas: "head scene" "actions scene" "facts scene";
  column-gap: clamp(2rem, 1rem + 4vw, 5rem);
  row-gap: var(--space-5);
  align-items: center;
}
.hero__head { grid-area: head; align-self: end; }
.hero__head .display { margin-bottom: var(--space-5); }
.hero__head .display em { position: relative; white-space: nowrap; }
.hero__head .display em::after {
  content: ""; position: absolute; inset-inline: -4%; bottom: .08em; height: .22em; z-index: -1;
  background: rgba(217, 160, 102, .45); border-radius: 60% 40% 55% 45% / 70% 50% 50% 30%;
}
.hero__head .lead { margin-bottom: var(--space-2); }
.hero__actions { grid-area: actions; align-self: start; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__facts {
  grid-area: facts; align-self: start;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4);
  padding-top: var(--space-5); border-top: var(--line); margin: 0; padding-inline-start: 0;
}
.hero__facts li { display: grid; gap: .15rem; list-style: none; }
.hero__facts strong { font-size: 1rem; font-weight: 800; color: var(--color-secondary); line-height: 1.4; }
.hero__facts span { font-size: var(--fs-small); color: var(--color-muted); line-height: 1.6; }

.hero__scene { grid-area: scene; margin: 0; position: relative; }
.scene {
  position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 560px; margin-inline: auto;
  border-radius: 240px 240px 34px 34px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 55% at 66% 16%, rgba(255, 248, 232, .95) 0%, rgba(255, 248, 232, 0) 70%),
    linear-gradient(180deg, #F3E6D0 0%, #E6CFAE 58%, #CDAE84 100%);
  box-shadow: var(--shadow-lift);
}
.scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 90% at 50% 42%, rgba(0,0,0,0) 56%, rgba(74, 46, 32, .24) 100%);
}
.scene__poster, .scene__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.scene__poster { transition: opacity .8s var(--ease-standard); }
.scene--live .scene__poster { opacity: 0; }
.scene__canvas { opacity: 1; }
.scene__toggle {
  position: absolute; z-index: 2; bottom: var(--space-4); inset-inline-start: var(--space-4);
  min-height: 40px; padding: 0 .95rem; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(252, 248, 241, .92); color: var(--color-secondary); font-weight: 800; font-size: .84rem;
  box-shadow: var(--shadow-soft); transition: transform var(--dur-fast), background-color var(--dur-fast);
}
.scene__toggle:hover { transform: translateY(-1px); background: #fff; }
.scene__toggle[hidden] { display: none; }
.hero__note {
  position: absolute; inset-inline-end: -2%; bottom: -1.4rem; z-index: 2;
  padding: .45rem 1rem; background: var(--color-surface); color: var(--color-primary);
  font-weight: 800; font-size: .95rem; transform: rotate(-3deg);
  border-radius: 14px 22px 12px 24px; box-shadow: var(--shadow-soft);
  background-image: linear-gradient(transparent 70%, rgba(217, 160, 102, .35) 70%);
}

/* ---------- Clay buttons: بافت گِل و قطره ---------- */
.btn--clay { position: relative; isolation: isolate; }
.btn--clay::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .9  0 0 0 0 .8  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .22; mix-blend-mode: soft-light;
}
.btn--clay { box-shadow: 0 14px 26px -18px rgba(74, 46, 32, .7), inset 0 2px 0 rgba(255, 232, 205, .22), inset 0 -4px 0 rgba(0, 0, 0, .14); }
.btn--clay:active { box-shadow: 0 6px 12px -10px rgba(74, 46, 32, .7), inset 0 3px 6px rgba(0, 0, 0, .18); }
.btn--clay:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }

.arch {
  position: relative; overflow: hidden; margin: 0;
  border-radius: 220px 220px 32px 32px;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
  background: var(--color-surface-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--tall { aspect-ratio: 2 / 3; }

/* ---------- Shape your own ---------- */
.shape__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head stage" "controls stage";
  column-gap: clamp(2rem, 1rem + 4vw, 5rem); row-gap: var(--space-6); align-items: center;
}
.shape__head { grid-area: head; align-self: end; display: grid; gap: 0; }
.shape__head .lead { margin-top: var(--space-4); }
.shape__stage {
  grid-area: stage; margin: 0; position: relative; width: 100%; max-width: 460px; justify-self: center;
  aspect-ratio: 4 / 5; border-radius: 200px 200px 30px 30px; overflow: hidden;
  background: radial-gradient(80% 60% at 60% 18%, #FFF8EC 0%, #EFDFC6 60%, #D6B98F 100%);
  box-shadow: var(--shadow-lift); cursor: grab; touch-action: pan-y;
}
.shape__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.shape__summary {
  position: absolute; inset-inline: var(--space-4); bottom: var(--space-4); text-align: center;
  padding: .5rem .9rem; border-radius: 999px; background: rgba(252, 248, 241, .9);
  font-size: .85rem; font-weight: 800; color: var(--color-secondary); box-shadow: var(--shadow-soft);
}
.shape__controls { grid-area: controls; display: grid; gap: var(--space-2); align-content: start; }
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt legend { font-size: .9rem; font-weight: 800; color: var(--color-secondary); margin-bottom: var(--space-2); padding: 0; }
.opt__row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt [role="radio"] {
  min-height: 44px; padding: 0 1.05rem; display: inline-flex; align-items: center; gap: 2px;
  border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-surface);
  color: var(--color-secondary); font-weight: 700; font-size: .92rem; cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), border-radius .5s var(--ease-emphasis), transform var(--dur-fast);
}
.opt [role="radio"]:hover { border-color: var(--color-primary); border-radius: var(--blob-b); transform: translateY(-1px); }
.opt [role="radio"][aria-checked="true"] {
  background: var(--color-secondary); border-color: var(--color-secondary); color: var(--color-on-primary); border-radius: var(--blob-a);
}
.opt .sw { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); margin-inline-end: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.shape__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-3); }
.shape__hint { font-size: var(--fs-micro); color: var(--color-muted); }

/* ---------- Routes (A–E) ---------- */
.routes { background: var(--color-surface); }
.routes__head { display: grid; gap: var(--space-3); margin-bottom: var(--space-7); }
.routes__rail {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-5); align-items: start;
}
.route:nth-child(even) { margin-top: var(--space-7); }
.route a { display: grid; gap: var(--space-2); text-decoration: none; min-width: 0; }
.route figure { margin: 0 0 var(--space-2); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 200px 200px 22px 22px; background: var(--color-surface-2); }
.route img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-standard); }
.route a:hover img { transform: scale(1.05); }
.route__no { font-size: 1.4rem; font-weight: 900; color: var(--color-accent); line-height: 1; }
.route h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.45; color: var(--color-secondary); }
.route p { font-size: var(--fs-small); color: var(--color-muted); line-height: 1.8; }
.route a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 6px; border-radius: 12px; }

/* ---------- Band (marquee) ---------- */
.band {
  position: relative; z-index: 1; overflow: hidden;
  background: var(--color-secondary); color: var(--color-background);
  padding-block: clamp(1.1rem, 1rem + .6vw, 1.6rem);
  border-radius: 40px 40px 0 0 / 22px 22px 0 0;
  margin-top: calc(var(--section-y) * -.1);
}
.band__track { display: flex; width: max-content; gap: 1.6rem; align-items: center; animation: marquee 36s linear infinite; }
.band__track span { font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); font-weight: 800; white-space: nowrap; }
.band__track i { font-style: normal; color: var(--color-accent); font-size: .6em; }
.band:hover .band__track { animation-play-state: paused; }

/* ---------- Promise ---------- */
.promise__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6) var(--space-5);
  align-items: start;
}
.promise__title { grid-column: 1 / span 7; display: grid; gap: var(--space-4); align-content: start; padding-top: var(--space-5); }
.promise__media { grid-column: 9 / span 4; grid-row: 1 / span 2; margin: 0; }
.promise__media img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 46% 54% 40% 60% / 22% 22% 78% 78%;
  box-shadow: var(--shadow-soft);
}
.promise__points { grid-column: 1 / span 7; list-style: none; margin-top: var(--space-6); }
.promise__points li {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-5);
  padding-block: var(--space-5); border-top: var(--line);
}
.promise__points li:last-child { border-bottom: var(--line); }
.promise__points .num {
  font-size: 2.2rem; font-weight: 900; line-height: 1; color: var(--color-accent);
  font-variant-numeric: tabular-nums; min-width: 2ch;
}
.promise__points h3 { font-size: var(--fs-h3); font-weight: 800; margin-bottom: .3em; }
.promise__points p { color: var(--color-muted); }

/* ---------- Process ---------- */
.process { background: var(--color-surface); }
.process::before, .process::after {
  content: ""; position: absolute; inset-inline: 0; height: 60px; background: inherit; pointer-events: none;
}
.process::before { top: -30px; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: var(--color-background); }
.process::after { bottom: -30px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--color-background); }
.process__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: start; }
.process__media { position: sticky; top: 120px; }
.process__body .h2 { margin-bottom: var(--space-4); }
.process__body .lead { margin-bottom: var(--space-6); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.steps li {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-5);
  padding-block: var(--space-5); border-top: 1px dashed var(--color-border);
  transition: transform var(--dur-base) var(--ease-standard);
}
.steps li:last-child { border-bottom: 1px dashed var(--color-border); }
.steps__num {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: var(--blob-a); background: var(--color-primary); color: var(--color-on-primary);
  font-weight: 900; font-size: 1.2rem; box-shadow: 0 12px 22px -16px rgba(74,46,32,.8);
}
.steps li:nth-child(even) .steps__num { border-radius: var(--blob-b); background: var(--color-secondary); }
.steps h3 { font-size: var(--fs-h3); font-weight: 800; margin-bottom: .25em; }
.steps p { color: var(--color-muted); }

/* ---------- Courses ---------- */
.courses__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: start; }
.courses__head { position: sticky; top: 110px; display: grid; gap: var(--space-5); align-content: start; }
.courses__head .h2 { font-size: clamp(1.8rem, 1rem + 2.2vw, 2.9rem); }
.segmented {
  display: inline-grid; grid-template-columns: 1fr 1fr; width: fit-content; padding: 5px; gap: 4px;
  background: var(--color-surface-2); border-radius: 999px;
}
.segmented button {
  min-width: 140px; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--color-secondary); font-weight: 800;
  transition: background-color var(--dur-base), color var(--dur-base), border-radius .6s var(--ease-emphasis);
}
.segmented button[aria-selected="true"] { background: var(--color-secondary); color: var(--color-on-primary); border-radius: var(--blob-a); }
.notice {
  display: grid; gap: .35rem; padding: var(--space-5);
  background: var(--color-surface); border-inline-start: 4px solid var(--color-accent);
  border-radius: 6px 22px 22px 6px; font-size: var(--fs-small); color: var(--color-muted);
}
.notice strong { color: var(--color-secondary); font-size: 1rem; }
.notice a { color: var(--color-primary); font-weight: 800; justify-self: start; }

.course-list { display: grid; gap: 0; border-top: 2px solid var(--color-secondary); }
.course {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4) var(--space-5); align-items: center;
  padding-block: var(--space-6); border-bottom: var(--line);
  transition: padding-inline-start var(--dur-base) var(--ease-standard);
}
.course:hover { padding-inline-start: var(--space-3); }
.course__index { font-size: 1.05rem; font-weight: 900; color: var(--color-accent); font-variant-numeric: tabular-nums; align-self: start; padding-top: .3em; }
.course__title { font-size: var(--fs-h3); font-weight: 800; line-height: 1.35; margin-bottom: .35em; }
.course__desc { font-size: var(--fs-small); color: var(--color-muted); margin-bottom: var(--space-3); }
.course__meta { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.course__meta li {
  font-size: var(--fs-micro); font-weight: 700; padding: .3em .85em; border-radius: 999px;
  background: var(--color-surface-2); color: var(--color-secondary);
}
.course__aside { display: grid; justify-items: end; gap: var(--space-3); text-align: end; min-width: 170px; }
.course__price { font-weight: 900; font-size: 1.05rem; color: var(--color-secondary); line-height: 1.3; }
.course__price small { display: block; font-weight: 600; font-size: var(--fs-micro); color: var(--color-muted); }
.seats { width: 150px; display: grid; gap: 4px; font-size: var(--fs-micro); color: var(--color-muted); }
.seats__bar { height: 8px; border-radius: 999px; background: var(--color-surface-2); overflow: hidden; }
.seats__bar i { display: block; height: 100%; border-radius: inherit; background: var(--color-primary); transition: width var(--dur-slow) var(--ease-standard); }
.seats--low .seats__bar i { background: var(--color-warning); }
.seats--full { color: var(--color-danger); font-weight: 700; }
.course .btn { min-height: 46px; }

/* ---------- Break (parallax) ---------- */
.break { position: relative; z-index: 1; padding: 0 var(--gutter) var(--section-y); }
.break__frame {
  position: relative; overflow: hidden; height: clamp(360px, 60vh, 620px);
  border-radius: 280px 280px var(--radius-lg) var(--radius-lg);
  max-width: var(--container); margin-inline: auto; background: var(--color-secondary);
}
.break__img {
  position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover;
  will-change: transform;
}
.break__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(43,29,21,.82) 0%, rgba(43,29,21,.25) 55%, rgba(43,29,21,.1) 100%);
}
.break__quote {
  position: absolute; z-index: 1; inset-inline: clamp(1.5rem, 4vw, 4rem); bottom: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 18ch; color: var(--color-on-primary);
}
.break__quote p { font-size: clamp(1.8rem, 1rem + 3vw, 3.4rem); font-weight: 900; line-height: 1.3; }
.break__quote span { color: var(--color-accent); }

/* ---------- Shop ---------- */
.shop__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: var(--space-5) var(--space-7); align-items: end; margin-bottom: var(--space-7); }
.shop__head .h2 { margin-top: 0; }
.shop__toolbar {
  display: grid; grid-template-columns: minmax(220px, 1.2fr) auto auto auto; gap: var(--space-4); align-items: center;
  padding: var(--space-4); background: var(--color-surface); border-radius: var(--radius-md);
  border: var(--line);
}
.search { position: relative; }
.search input {
  width: 100%; min-height: 50px; padding: 0 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--color-border); background: var(--color-background);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.search input::placeholder { color: #9A8373; }
.search input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(156,90,54,.15); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 42px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--color-border); cursor: pointer;
  background: transparent; color: var(--color-secondary); font-weight: 700; font-size: .92rem;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), border-radius .5s var(--ease-emphasis);
}
.chip:hover { border-color: var(--color-primary); border-radius: var(--blob-b); }
.chip[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); border-radius: var(--blob-a); }
.chip--sm { min-height: 38px; font-size: .85rem; padding: 0 .85rem; }
.sort { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); font-weight: 700; color: var(--color-muted); }
.sort select {
  min-height: 44px; padding: 0 .8rem; border-radius: 999px; border: 1.5px solid var(--color-border);
  background: var(--color-background); cursor: pointer;
}
.shop__count { margin: var(--space-5) 0 var(--space-4); font-size: var(--fs-small); color: var(--color-muted); font-weight: 700; }

.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
.product {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3);
  background: transparent; min-width: 0;
}
.product--feature { grid-column: span 2; flex-direction: row; gap: var(--space-5); align-items: stretch; }
.product__media {
  position: relative; margin: 0; overflow: hidden; border-radius: 24px 24px 24px 24px;
  aspect-ratio: 4 / 3; background: var(--color-surface-2);
}
.product--feature .product__media { flex: 0 0 52%; aspect-ratio: auto; border-radius: 28px 120px 28px 28px; min-height: 280px; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-standard); }
.product:hover .product__media img { transform: scale(1.04); }
.product__tag {
  position: absolute; top: var(--space-3); inset-inline-start: var(--space-3);
  padding: .3em .8em; border-radius: 999px; font-size: var(--fs-micro); font-weight: 800;
  background: rgba(252, 248, 241, .94); color: var(--color-secondary);
}
.product__tag--off { background: var(--color-primary); color: var(--color-on-primary); }
.product__wish {
  position: absolute; top: var(--space-3); inset-inline-end: var(--space-3);
  width: 42px; height: 42px; border: 0; border-radius: var(--blob-a); cursor: pointer;
  background: rgba(252, 248, 241, .94); color: var(--color-secondary);
  display: grid; place-items: center; transition: transform var(--dur-fast), border-radius .5s var(--ease-emphasis), color var(--dur-fast);
}
.product__wish svg { width: 20px; height: 20px; }
.product__wish:hover { transform: scale(1.06); border-radius: var(--blob-b); }
.product__wish[aria-pressed="true"] { color: var(--color-primary); }
.product__wish[aria-pressed="true"] svg path { fill: currentColor; }
.product__body { display: grid; gap: .45rem; align-content: start; flex: 1; }
.product__cat { font-size: var(--fs-micro); font-weight: 700; color: var(--color-primary); }
.product__name { font-size: 1.12rem; font-weight: 800; line-height: 1.45; }
.product__name button {
  all: unset; cursor: pointer; border-radius: 4px;
}
.product__name button:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.product__name button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.product__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-small); color: var(--color-muted); }
.product__meta span + span::before { content: "·"; margin-inline-end: 10px; color: var(--color-accent); }
.product__rating { font-size: var(--fs-small); color: var(--color-muted); display: flex; align-items: center; gap: 6px; }
.product__rating b { color: var(--color-secondary); }
.product__desc { font-size: var(--fs-small); color: var(--color-muted); display: none; }
.product--feature .product__desc { display: block; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: auto; padding-top: var(--space-2); flex-wrap: wrap; }
.price { display: grid; line-height: 1.2; }
.price strong { font-size: 1.12rem; font-weight: 900; color: var(--color-secondary); }
.price s { font-size: var(--fs-micro); color: var(--color-muted); }
.product__add { min-height: 46px; padding: 0 1.1rem; font-size: .92rem; }
.product__add[aria-pressed="true"], .product__add.is-added { background: var(--color-success); }
.product__add.is-added { border-radius: var(--blob-b); }
.empty { text-align: center; padding: var(--space-8) 0; color: var(--color-muted); display: grid; gap: var(--space-4); justify-items: center; }
.empty[hidden] { display: none; }

/* ---------- Stories ---------- */
.stories { background: var(--color-surface-2); overflow: hidden; }
.stories__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 2rem + 3vw, 5rem); align-items: center; }
.stories__head .h2 { margin-bottom: var(--space-4); }
.stories__head .note { margin-top: var(--space-5); }
.quotes { position: relative; min-height: 300px; display: grid; gap: var(--space-5); }
.quotes__track { position: relative; display: grid; }
.quote {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(16px);
  transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard), visibility var(--dur-base);
  background: var(--color-surface); padding: clamp(1.6rem, 1rem + 2vw, 3rem); border-radius: 60px 14px 60px 14px;
  box-shadow: var(--shadow-soft);
}
.quote.is-active { opacity: 1; visibility: visible; transform: none; }
.quote blockquote { margin: 0; font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem); font-weight: 700; line-height: 1.8; color: var(--color-secondary); }
.quote blockquote::before { content: "“"; display: block; font-size: 4.5rem; line-height: .5; color: var(--color-accent); font-weight: 900; margin-bottom: .2em; }
.quote figcaption { margin-top: var(--space-5); display: grid; gap: 2px; font-size: var(--fs-small); color: var(--color-muted); }
.quote figcaption strong { color: var(--color-text); font-weight: 800; }
.quotes__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.dots { display: flex; gap: 10px; }
.dots button {
  width: 12px; height: 12px; padding: 0; border: 0; border-radius: var(--blob-a); cursor: pointer;
  background: var(--color-border); transition: width var(--dur-base) var(--ease-emphasis), background-color var(--dur-fast);
}
.dots button[aria-current="true"] { width: 34px; background: var(--color-primary); border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 2rem + 3vw, 5rem); align-items: start; }
.faq__head { position: sticky; top: 120px; display: grid; gap: var(--space-4); align-content: start; }
.faq__head .lead { font-size: var(--fs-body); }
.faq__list { border-top: 2px solid var(--color-secondary); }
.faq__list details { border-bottom: var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) 0; font-size: 1.1rem; font-weight: 800; color: var(--color-secondary);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: var(--blob-a);
  background: var(--color-surface-2); color: var(--color-primary); font-size: 1.4rem; line-height: 1; font-weight: 500;
  transition: transform var(--dur-base) var(--ease-emphasis), background-color var(--dur-fast);
}
.faq__list details[open] summary::after { transform: rotate(45deg); background: var(--color-primary); color: var(--color-on-primary); }
.faq__list details p { padding: 0 0 var(--space-5); color: var(--color-muted); max-width: 60ch; }
.faq__list summary:focus-visible { outline-offset: -2px; }

/* ---------- Final CTA ---------- */
.final {
  position: relative; z-index: 1; padding: var(--section-y) var(--gutter);
  background: var(--color-primary); color: var(--color-on-primary); overflow: hidden;
}
.final::before {
  content: ""; position: absolute; width: min(640px, 90vw); aspect-ratio: 1; inset-inline-end: -18%; top: -36%;
  background: radial-gradient(circle at 40% 40%, rgba(217,160,102,.55), rgba(217,160,102,0) 65%);
  border-radius: var(--blob-a); pointer-events: none;
}
.final::after {
  content: ""; position: absolute; width: min(420px, 70vw); aspect-ratio: 1; inset-inline-start: -10%; bottom: -40%;
  background: rgba(74,46,32,.35); border-radius: var(--blob-b); pointer-events: none;
}
.final__inner { position: relative; z-index: 1; display: grid; gap: var(--space-5); justify-items: start; max-width: 880px; }
.final .display { color: var(--color-on-primary); }
.final em { color: var(--color-accent); }
.final .lead { color: rgba(255, 248, 238, .86); }
.final__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; background: var(--color-secondary); color: rgba(255,248,238,.8); padding-top: var(--space-8); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 1fr; gap: var(--space-7); padding-bottom: var(--space-7); }
.footer__brand { font-size: 2rem; font-weight: 900; color: var(--color-on-primary); line-height: 1.1; }
.footer__tag { margin-top: .4em; color: var(--color-accent); font-weight: 700; }
.footer__title { font-size: .95rem; font-weight: 800; color: var(--color-on-primary); margin-bottom: var(--space-3); }
.site-footer ul.plain li { color: rgba(255,248,238,.72); font-size: var(--fs-small); }
.site-footer ul.plain a { color: var(--color-on-primary); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--dur-fast); }
.site-footer ul.plain a:hover { border-color: var(--color-accent); }
.footer__legal { margin-top: var(--space-4); font-size: var(--fs-micro); color: rgba(255,248,238,.6); line-height: 1.8; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
  padding-block: var(--space-5); border-top: 1px solid rgba(255,248,238,.14); font-size: var(--fs-micro); color: rgba(255,248,238,.6);
  padding-bottom: calc(var(--space-5) + 80px);
}

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Dialogs ---------- */
dialog { color: var(--color-text); }
dialog::backdrop { background: rgba(43, 29, 21, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal {
  width: min(640px, calc(100vw - 24px)); max-height: min(92dvh, 900px); padding: 0;
  border: 0; border-radius: 30px 30px 30px 30px; background: var(--color-background);
  box-shadow: var(--shadow-lift); overflow: visible;
}
.modal[open] { animation: modal-in .45s var(--ease-standard); }
.modal__body { padding: clamp(1.4rem, 1rem + 1vw, 2.2rem); max-height: min(92dvh, 900px); overflow: auto; border-radius: inherit; }
.modal--wide { width: min(980px, calc(100vw - 24px)); }
.modal__body--split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.modal__close { position: absolute; top: var(--space-4); inset-inline-end: var(--space-4); z-index: 2; background: var(--color-surface); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.modal__head .eyebrow { margin-bottom: var(--space-2); }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); padding-top: var(--space-5); border-top: var(--line); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-4); }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .coupon label, .sort label { font-size: var(--fs-small); font-weight: 800; color: var(--color-secondary); }
.field input, .field select, .field textarea, .coupon input, .sort select {
  width: 100%; min-height: 50px; padding: .6rem 1rem; border-radius: 16px;
  border: 1.5px solid var(--color-border); background: var(--color-surface); transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .coupon input:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(156,90,54,.14);
}
.field input[aria-invalid="true"] { border-color: var(--color-danger); }
.error { min-height: 0; font-size: var(--fs-micro); color: var(--color-danger); font-weight: 700; }
.error:empty { display: none; }
.city-block {
  margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border-radius: 20px;
  background: rgba(185,120,42,.12); border: 1px solid rgba(185,120,42,.35); display: grid; gap: var(--space-3);
}
.city-block[hidden] { display: none; }
.city-block p { font-size: var(--fs-small); }
.success { display: grid; justify-items: start; gap: var(--space-3); padding-block: var(--space-4); }
.success[hidden] { display: none; }
.success:focus { outline: none; }
.success__mark {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--blob-a);
  background: var(--color-success); color: #fff; font-size: 1.8rem; font-weight: 900; margin-bottom: var(--space-2);
}
.pay { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.pay legend { font-size: var(--fs-small); font-weight: 800; color: var(--color-secondary); margin-bottom: var(--space-2); }
.pay__opt {
  display: flex; align-items: center; gap: var(--space-3); padding: .9rem 1rem; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--color-border); background: var(--color-surface);
}
.pay__opt:has(input:checked) { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(156,90,54,.12); }
.pay__opt input { accent-color: var(--color-primary); width: 18px; height: 18px; }
.total-line { font-size: var(--fs-small); color: var(--color-muted); }
.total-line strong { color: var(--color-secondary); font-size: 1.15rem; }

/* ---------- Quick view ---------- */
.qv__media { border-radius: 30px 30px 30px 110px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--color-surface-2); }
.qv__media img { width: 100%; height: 100%; object-fit: cover; }
.qv__body { display: grid; gap: var(--space-4); align-content: start; }
.qv__body .h2 { font-size: clamp(1.5rem, 1rem + 1.2vw, 2.1rem); }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-3); margin: 0; }
.spec div { padding: var(--space-3); border-radius: 16px; background: var(--color-surface); }
.spec dt { font-size: var(--fs-micro); color: var(--color-muted); font-weight: 700; }
.spec dd { margin: 2px 0 0; font-weight: 800; color: var(--color-secondary); }
.qv__outcomes { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.qv__outcomes li { position: relative; padding-inline-start: 1.4em; color: var(--color-muted); font-size: var(--fs-small); }
.qv__outcomes li::before { content: ""; position: absolute; inset-inline-start: 0; top: .65em; width: 8px; height: 8px; border-radius: var(--blob-a); background: var(--color-accent); }
.qv__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.qv__crumbs { font-size: var(--fs-micro); color: var(--color-muted); }
.qv__crumbs a { color: var(--color-muted); }

/* ---------- Drawer (cart) ---------- */
.drawer {
  position: fixed; inset: 0 auto 0 0; margin: 0; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  border: 0; padding: 0; background: var(--color-background); box-shadow: var(--shadow-lift);
  inset-inline-start: auto; inset-inline-end: 0;
}
.drawer[open] { animation: drawer-in .5s var(--ease-standard); }
.drawer__inner { height: 100%; display: flex; flex-direction: column; padding: var(--space-5); }
.drawer__items { flex: 1; overflow: auto; display: grid; align-content: start; gap: var(--space-4); padding-inline-end: 2px; }
.drawer__foot { border-top: var(--line); padding-top: var(--space-4); display: grid; gap: var(--space-3); }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.cart-empty { text-align: center; padding: var(--space-8) var(--space-4); color: var(--color-muted); display: grid; gap: var(--space-4); justify-items: center; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr; gap: var(--space-3); padding: var(--space-3); border-radius: 22px; background: var(--color-surface);
}
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 18px 18px 18px 46px; }
.cart-item__name { font-weight: 800; font-size: .95rem; line-height: 1.5; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; margin-top: 6px; }
.qty { display: inline-flex; align-items: center; gap: 2px; background: var(--color-background); border-radius: 999px; padding: 2px; }
.qty button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--color-surface); cursor: pointer; font-weight: 800; color: var(--color-secondary); }
.qty button:hover { background: var(--color-surface-2); }
.qty output { min-width: 2.2em; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-item__remove { border: 0; background: none; color: var(--color-muted); text-decoration: underline; cursor: pointer; font-size: var(--fs-micro); padding: 6px; }
.cart-item__remove:hover { color: var(--color-danger); }
.coupon { display: grid; gap: 6px; }
.coupon__row { display: flex; gap: var(--space-2); }
.coupon input { min-height: 44px; }
.totals { margin: 0; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; font-size: var(--fs-small); color: var(--color-muted); margin: 0; }
.totals dd { margin: 0; font-weight: 800; color: var(--color-secondary); }
.totals__grand { padding-top: var(--space-2); border-top: var(--line); font-size: 1rem; }
.totals__grand dt, .totals__grand dd { color: var(--color-secondary); font-weight: 900; font-size: 1.05rem; }
.totals dd { font-variant-numeric: tabular-nums; }

/* ---------- Wishlist ---------- */
.wish-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.wish-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3); background: var(--color-surface); border-radius: 20px; }
.wish-list img { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; }
.wish-list strong { font-size: .95rem; line-height: 1.5; display: block; }
.wish-list small { color: var(--color-muted); }
.wish-list__actions { display: flex; gap: 6px; flex-direction: column; align-items: flex-end; }
.wish-empty { color: var(--color-muted); text-align: center; padding: var(--space-6) 0; }

/* ---------- Toast ---------- */
.toast-root { position: fixed; bottom: var(--space-5); inset-inline: 0; z-index: var(--z-toast); display: grid; justify-items: center; gap: var(--space-2); pointer-events: none; }
.toast {
  padding: .85rem 1.3rem; border-radius: 999px; background: var(--color-secondary); color: var(--color-on-primary);
  font-weight: 700; font-size: .92rem; box-shadow: var(--shadow-lift);
  animation: toast-in .45s var(--ease-emphasis);
  transition: opacity .35s, transform .35s;
}
.toast.is-out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }

/* ---------- Reveal (فقط وقتی JS فعال است) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-standard), transform .9s var(--ease-standard); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .steps li[data-reveal] { transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  .primary-nav ul { gap: var(--space-4); }
  .header-cta { display: none; }
  .shop__toolbar { grid-template-columns: 1fr 1fr; }
  .shop__toolbar .search { grid-column: 1 / -1; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .primary-nav {
    position: absolute; top: 100%; inset-inline: 0; margin: 0;
    background: var(--color-background); border-bottom: var(--line);
    box-shadow: 0 30px 40px -30px rgba(74,46,32,.5);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height var(--dur-base) var(--ease-standard), visibility var(--dur-base);
  }
  .primary-nav.is-open { max-height: 420px; visibility: visible; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: var(--space-2) var(--gutter) var(--space-4); }
  .primary-nav a { display: block; padding: .9rem 0; border-bottom: var(--line); font-size: 1.05rem; }
  .primary-nav a::after { display: none; }
  .site-header { position: sticky; }
  .header-actions .btn { display: none; }

  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "head" "scene" "actions" "facts"; }
  .hero__scene { width: min(100%, 460px); margin-inline: auto; }
  .hero__note { inset-inline-end: 0; bottom: -1rem; }
  .shape__grid { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "controls"; }
  .routes__rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 42%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-4); }
  .route { scroll-snap-align: start; }
  .route:nth-child(even) { margin-top: 0; }

  .promise__title, .promise__points { grid-column: 1 / -1; }
  .promise__media { grid-column: 1 / -1; grid-row: auto; max-width: 420px; margin-inline: auto; width: 100%; }

  .process__grid, .courses__grid, .stories__grid, .faq__grid, .shop__head { grid-template-columns: 1fr; }
  .process__media, .courses__head, .faq__head { position: static; }
  .process__media { max-width: 440px; }
  .courses__head { margin-bottom: var(--space-4); }
  .product--feature { grid-column: span 2; }
  .modal__body--split { grid-template-columns: 1fr; }
  .qv__media { aspect-ratio: 16 / 11; border-radius: 28px 28px 28px 80px; }
}

@media (max-width: 820px) {
  :root { --section-y: clamp(3.6rem, 2rem + 8vw, 5.5rem); }
  body { padding-bottom: 84px; }
  .hero__facts { grid-template-columns: 1fr; gap: var(--space-3); }
  .course { grid-template-columns: 1fr; gap: var(--space-3); }
  .course:hover { padding-inline-start: 0; }
  .course__index { display: none; }
  .course__aside { justify-items: start; text-align: start; min-width: 0; grid-template-columns: 1fr auto; align-items: center; }
  .seats { width: auto; min-width: 150px; }
  .course__aside .btn { grid-column: 1 / -1; justify-self: stretch; }

  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; position: fixed; z-index: var(--z-bar);
    inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 6px; border-radius: 26px 22px 30px 24px; background: rgba(74,46,32,.96); color: var(--color-on-primary);
    box-shadow: var(--shadow-lift); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .mobile-bar a, .mobile-bar button {
    position: relative; display: grid; justify-items: center; gap: 2px; min-height: 56px; border: 0; background: transparent;
    color: inherit; text-decoration: none; font-size: .78rem; font-weight: 700; cursor: pointer; border-radius: 18px;
  }
  .mobile-bar svg { width: 22px; height: 22px; }
  .mobile-bar a:hover, .mobile-bar button:hover { background: rgba(255,248,238,.08); }
  .mini-badge { top: 4px; inset-inline-end: calc(50% - 22px); }

  .shop__toolbar { grid-template-columns: 1fr; padding: var(--space-3); }
  .sort { justify-content: space-between; }
  .products { grid-template-columns: 1fr; }
  .product--feature { grid-column: auto; flex-direction: column; }
  .product--feature .product__media { flex: none; min-height: 0; aspect-ratio: 4 / 3; border-radius: 24px 24px 24px 24px; }
  .product__desc { display: none !important; }

  .break__frame { border-radius: 160px 160px 28px 28px; height: 58vh; min-height: 360px; }

  .fields { grid-template-columns: 1fr; }
  .modal { width: calc(100vw - 16px); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer__bottom { padding-bottom: calc(var(--space-5) + 84px); }
  .drawer { width: 100vw; }
  .toast-root { bottom: 96px; }
  .quote { border-radius: 40px 12px 40px 12px; }
}

@media (max-width: 380px) {
  .brand__text strong { font-size: 1.05rem; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .wheel-spin, .band__track { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .break__img { transform: none !important; }
  .drip-group { display: none; }
}
