/* ==========================================================================
   Дарья — персональный фитнес-тренер, Нижнекамск
   Design system: "electric blue / frosted paper"
   --------------------------------------------------------------------------
   Light paper background, electric-blue wide italic display type,
   hand-written script accents, frosted-glass cards, round rotating badges.
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Primitives (shell, display, script, dots, label, buttons, strip, badge)
   4.  Reveal & motion
   5.  Navigation
   6.  Hero
   7.  Sections + prices
   8.  Work with me
   9.  Reviews
   10. FAQ
   11. Contact + footer
   12. Sticky bar, back-to-top, modal & form
   13. Responsive
   14. Reduced motion
   ========================================================================== */

/* ------------------------------------------------------------------ 1. TOKENS */
:root {
  --bg:        #ECEEF2;
  --bg-2:      #E3E6EC;
  --card:      #FFFFFF;
  --ink:       #0B0E17;
  --ink-2:     #1A1E2A;
  --muted:     #5D6475;
  --muted-2:   #646D80;
  --line:      #DCE0E7;

  /* theme-dependent surfaces (redefined for dark below) */
  --surface:      #FFFFFF;
  --surface-2:    #F7F8FB;
  --field-bg:     #F7F8FA;
  --on-ink:       #FFFFFF;
  --bg-rgb:       236, 238, 242;
  --glass-1:      rgba(255,255,255,.78);
  --glass-2:      rgba(255,255,255,.58);
  --glass-edge:   rgba(255,255,255,.9);
  --glass-hi:     #FFFFFF;
  --frost:        rgba(255,255,255,.7);
  --frost-strong: rgba(255,255,255,.86);
  --wash:         rgba(255,255,255,.8);
  --grid-line:    rgba(11,14,23,.045);
  --dot-idle:     rgba(11,14,23,.18);
  --overlay:      rgba(11,14,23,.45);
  --text-glow:    rgba(255,255,255,.7);
  --err:          #D1293F;
  --err-line:     #E5384F;
  --err-bg:       #FFF5F6;
  --hero-dark:
    linear-gradient(180deg, rgba(11,14,23,.62) 0%, rgba(11,14,23,.5) 30%, rgba(11,14,23,.55) 62%, #0B0E17 96%),
    url('../img/hero-bg.webp') center 30% / cover no-repeat;

  --blue:      #1C4DFF;
  --blue-hi:   #4A78FF;
  --blue-lo:   #0B30CF;
  --blue-ink:  #0A1C6E;
  --blue-soft: #E5ECFF;

  --grad-blue: linear-gradient(160deg, #3A6BFF 0%, #1C4DFF 45%, #0E35D8 100%);
  --grad-type: linear-gradient(180deg, #3B6CFF 0%, #1C4DFF 55%, #1238E0 100%);

  --r-xs:   10px;
  --r-sm:   14px;
  --r-md:   20px;
  --r-lg:   28px;
  --r-xl:   40px;
  --r-pill: 999px;

  --shell: 1200px;
  --gut:   clamp(16px, 4vw, 40px);
  --sec-y: clamp(72px, 10vw, 128px);

  --sh-1: 0 1px 2px rgba(14, 22, 48, .06), 0 2px 8px -2px rgba(14, 22, 48, .08);
  --sh-2: 0 2px 4px rgba(14, 22, 48, .04), 0 18px 40px -18px rgba(14, 22, 48, .22);
  --sh-3: 0 30px 80px -30px rgba(14, 22, 48, .35);
  --sh-blue: 0 18px 40px -14px rgba(28, 77, 255, .55);

  --ease:     cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font-d: 'Unbounded', system-ui, sans-serif;
  --font-b: 'Manrope', system-ui, sans-serif;
  --font-c: 'Oswald', 'Arial Narrow', sans-serif;
  --font-s: 'Caveat', 'Segoe Print', cursive;
}

:root { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0B0E17;
    --bg-2:      #121624;
    --card:      #171C2B;
    --ink:       #ECEEF2;
    --ink-2:     #D5D9E3;
    --muted:     #9AA1B2;
    --muted-2:   #A0A9BC;
    --line:      #262C3D;

    --blue:      #4A78FF;
    --blue-hi:   #7397FF;
    --blue-soft: #1A2547;
    --grad-type: linear-gradient(180deg, #A1BBFF 0%, #7397FF 100%);

    --surface:      #171C2B;
    --surface-2:    #121624;
    --field-bg:     #121624;
    --on-ink:       #0B0E17;
    --bg-rgb:       11, 14, 23;
    --glass-1:      rgba(23,28,43,.82);
    --glass-2:      rgba(23,28,43,.66);
    --glass-edge:   rgba(255,255,255,.08);
    --glass-hi:     rgba(255,255,255,.06);
    --frost:        rgba(23,28,43,.72);
    --frost-strong: rgba(23,28,43,.9);
    --wash:         rgba(255,255,255,.08);
    --grid-line:    rgba(255,255,255,.04);
    --dot-idle:     rgba(255,255,255,.22);
    --overlay:      rgba(0,0,0,.6);
    --text-glow:    rgba(0,0,0,.45);
    --err:          #FF6B7E;
    --err-line:     #FF5C70;
    --err-bg:       rgba(229,56,79,.12);

    --sh-1: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px -2px rgba(0,0,0,.45);
    --sh-2: 0 2px 4px rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.7);
    --sh-3: 0 30px 80px -30px rgba(0,0,0,.8);

    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:        #0B0E17;
  --bg-2:      #121624;
  --card:      #171C2B;
  --ink:       #ECEEF2;
  --ink-2:     #D5D9E3;
  --muted:     #9AA1B2;
  --muted-2:   #A0A9BC;
  --line:      #262C3D;

  --blue:      #4A78FF;
  --blue-hi:   #7397FF;
  --blue-soft: #1A2547;
  --grad-type: linear-gradient(180deg, #A1BBFF 0%, #7397FF 100%);

  --surface:      #171C2B;
  --surface-2:    #121624;
  --field-bg:     #121624;
  --on-ink:       #0B0E17;
  --bg-rgb:       11, 14, 23;
  --glass-1:      rgba(23,28,43,.82);
  --glass-2:      rgba(23,28,43,.66);
  --glass-edge:   rgba(255,255,255,.08);
  --glass-hi:     rgba(255,255,255,.06);
  --frost:        rgba(23,28,43,.72);
  --frost-strong: rgba(23,28,43,.9);
  --wash:         rgba(255,255,255,.08);
  --grid-line:    rgba(255,255,255,.04);
  --dot-idle:     rgba(255,255,255,.22);
  --overlay:      rgba(0,0,0,.6);
  --text-glow:    rgba(0,0,0,.45);
  --err:          #FF6B7E;
  --err-line:     #FF5C70;
  --err-bg:       rgba(229,56,79,.12);

  --sh-1: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px -2px rgba(0,0,0,.45);
  --sh-2: 0 2px 4px rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.7);
  --sh-3: 0 30px 80px -30px rgba(0,0,0,.8);

  color-scheme: dark;
}

/* ------------------------------------------------------------ 2. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
b, strong { font-weight: 700; }
i, em { font-style: normal; }
::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.skiplink {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--on-ink); font-weight: 700;
  transform: translateY(-160%); transition: transform .2s;
}
.skiplink:focus { transform: none; }

/* ------------------------------------------------------------- 3. PRIMITIVES */
.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* Wide italic display type — the signature of the page */
.display {
  font-family: var(--font-d);
  font-weight: 800;
  font-style: italic;
  font-synthesis: style;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .9;
  font-size: clamp(34px, 6.4vw, 72px);
  background: var(--grad-type);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: .1em .12em 0 0; /* room for the slanted last glyph and the breve of Й */
  margin-top: -.1em;
  text-wrap: balance;
}
.display--center { text-align: center; margin-inline: auto; }
.display--white { background: linear-gradient(180deg, #fff, #DCE5FF); -webkit-background-clip: text; background-clip: text; }

.script {
  font-family: var(--font-s);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.01em;
}

/* the little "•••" bullet that opens every lead */
.dots {
  display: inline-block;
  width: 22px; height: 6px;
  margin-right: 10px;
  vertical-align: .2em;
  background:
    radial-gradient(circle 3px at 3px 3px, var(--blue) 98%, transparent) 0 0 / 8px 6px repeat-x;
}
.dots--light { background-image: radial-gradient(circle 3px at 3px 3px, #fff 98%, transparent); opacity: .85; }

.label {
  display: inline-block;
  padding: .2em .55em .16em;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-c);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: 1;
  border-radius: 6px;
  transform: rotate(-2.5deg);
  box-shadow: var(--sh-2);
}

.lead {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.5;
}
.lead b { color: var(--ink); }
.lead--center { margin: 18px auto 0; text-align: center; }

.glass {
  background: linear-gradient(180deg, var(--glass-1), var(--glass-2));
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--sh-3), inset 0 1px 0 var(--glass-hi);
}

/* buttons */
.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s, color .2s, border-color .2s;
}
.btn:active { transform: translate(var(--mx), var(--my)) scale(.97); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--wide { width: 100%; }
.btn--primary { background: var(--grad-blue); color: #fff; box-shadow: var(--sh-blue), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn .ic { transition: transform .25s var(--ease); }
@media (hover: hover) {
  .btn--primary:hover { box-shadow: 0 22px 46px -14px rgba(28,77,255,.7), inset 0 1px 0 rgba(255,255,255,.3); }
  .btn--outline:hover { border-color: var(--ink); }
  .btn:hover .ic { transform: translateX(3px); }
}

/* solid ink strip with a long arrow */
.strip {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 46px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 8px;
  text-align: left;
  font-family: var(--font-c);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  text-transform: uppercase;
  box-shadow: var(--sh-2);
  transition: transform .25s var(--ease), background-color .2s;
}
.strip .ic { width: 38px; height: 18px; stroke-width: 1.6; transition: transform .3s var(--ease); }
@media (hover: hover) {
  .strip:hover { background: var(--ink-2); }
  .strip:hover .ic { transform: translateX(5px); }
}

/* round blue badge with rotating text ring */
.badge {
  --mx: 0px; --my: 0px;
  position: relative;
  flex: none;
  display: grid; place-items: center;
  width: 136px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #5B86FF 0%, var(--blue) 46%, var(--blue-lo) 100%);
  color: #fff;
  box-shadow: 0 20px 40px -12px rgba(28,77,255,.6), inset 0 2px 0 rgba(255,255,255,.25), inset 0 -6px 14px rgba(5,20,110,.35);
  transform: translate(var(--mx), var(--my));
  transition: transform .3s var(--ease), box-shadow .3s;
}
.badge__ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  fill: rgba(255,255,255,.38);
  font-family: var(--font-c);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .08em;
  animation: spin 18s linear infinite;
}
.badge__text {
  position: relative;
  font-family: var(--font-c);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.12;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: .02em;
}
@media (hover: hover) {
  .badge:hover { transform: translate(var(--mx), var(--my)) scale(1.05); box-shadow: 0 26px 50px -12px rgba(28,77,255,.75), inset 0 2px 0 rgba(255,255,255,.25), inset 0 -6px 14px rgba(5,20,110,.35); }
  .badge:hover .badge__ring { animation-duration: 6s; }
}
.badge:active { transform: translate(var(--mx), var(--my)) scale(.96); }
@keyframes spin { to { transform: rotate(360deg); } }

.cta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.round-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-1);
  transition: background-color .2s, color .2s, opacity .2s, transform .2s var(--ease);
}
.round-btn--prev .ic { transform: scaleX(-1); }
.round-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
@media (hover: hover) { .round-btn:not([aria-disabled="true"]):hover { background: var(--blue); color: #fff; } }
.round-btn:not([aria-disabled="true"]):active { transform: scale(.94); }

/* top progress bar */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }

/* ------------------------------------------------------ 4. REVEAL & MOTION */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.rv.is-in { opacity: 1; transform: none; }
.label.rv { transform: translateY(22px) rotate(-2.5deg); }
.label.rv.is-in { transform: rotate(-2.5deg); }

/* --------------------------------------------------------------- 5. NAV */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-top: env(safe-area-inset-top);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav--solid {
  background: rgba(var(--bg-rgb), .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(14,22,48,.06);
}
.nav__inner { display: flex; align-items: center; gap: 12px; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.brand__text i { font-size: 12px; color: var(--muted); }

.nav__links { display: none; gap: 4px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
@media (hover: hover) { .nav__links a:hover { background: var(--wash); color: var(--blue); } }

.nav__side { display: flex; align-items: center; gap: 8px; }
.nav__cta { display: none; }
.burger {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.burger .ic { width: 20px; height: 20px; }

/* theme toggle (nav + mobile panel) */
.themebtn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-1);
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.themebtn .ic { width: 20px; height: 20px; grid-area: 1 / 1; }
@media (hover: hover) { .themebtn:hover { color: var(--blue); } }
.themebtn:active { transform: scale(.94); }
.nav__theme {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-weight: 700;
  text-align: left;
}
.nav__theme .ic { width: 20px; height: 20px; color: var(--blue); }
.themebtn__sun, [data-theme-toggle][aria-pressed="true"] .themebtn__moon { display: none; }
[data-theme-toggle][aria-pressed="true"] .themebtn__sun { display: block; }

/* dark theme: keep the light hero photo from glaring */
:root[data-theme="dark"] .hero__bg { background: var(--hero-dark); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero__bg { background: var(--hero-dark); }
}

.nav__panel {
  max-height: calc(100dvh - 84px - env(safe-area-inset-top));
  overflow-y: auto;
  margin: 0 var(--gut) 12px;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-3);
  display: grid; gap: 2px;
  animation: drop .35s var(--ease-out);
}
.nav__panel[hidden] { display: none; }
.nav__panel a { padding: 14px 16px; border-radius: var(--r-sm); font-weight: 700; }
.nav__panel a:active { background: var(--bg); }
.nav__panel .btn { margin-top: 6px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* -------------------------------------------------------------- 6. HERO */
.hero {
  position: relative;
  padding: calc(88px + env(safe-area-inset-top)) 0 40px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb),.55) 0%, rgba(var(--bg-rgb),0) 30%, rgba(var(--bg-rgb),0) 62%, var(--bg) 96%),
    url('../img/hero-bg.webp') center 30% / cover no-repeat;
}

.hero__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }

.hero__head { position: relative; z-index: 1; }
.hero__titlebox { position: relative; }
.hero .label { font-size: clamp(20px, 5.6vw, 34px); margin-left: 2px; }
.hero__title {
  margin-top: 6px;
  font-size: clamp(44px, 14.2vw, 150px);
  line-height: .86;
}
.hero__title span { display: block; }
.hero__sub {
  max-width: 300px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-2);
}
.hero__sub b { color: var(--blue); font-weight: 800; }

.hero__media {
  position: relative; z-index: 2;
  margin-top: -18px;
  height: clamp(440px, 128vw, 560px);
}
.cutout { position: absolute; inset: 0; margin: 0; }
.cutout__img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: 50% 0;
  opacity: 0;
  transition: opacity .9s var(--ease-out);
  filter: drop-shadow(0 30px 40px rgba(14,22,48,.18));
}
.cutout.is-ready .cutout__img { opacity: 1; }
.cutout--hero { left: 8%; right: -6%; }

.hero__bolt {
  position: absolute; z-index: -1;
  width: clamp(70px, 20vw, 130px);
  right: 2%; top: 14%;
  transform: translateY(var(--py, 0)) rotate(12deg);
  filter: drop-shadow(0 18px 24px rgba(14,22,48,.18));
  opacity: .9;
}
.hero__sign {
  position: absolute; z-index: 3;
  left: 0; top: 22%;
  font-size: clamp(34px, 9vw, 58px);
  color: var(--ink);
  transform: rotate(-9deg);
  text-shadow: 0 2px 0 var(--text-glow);
}
.hero__handle {
  position: absolute; z-index: 3;
  right: 4%; top: 62%;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(11,14,23,.82);
  color: #fff;
  font-size: 13px; font-weight: 700;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero__card {
  position: relative; z-index: 4;
  margin-top: -150px;
  padding: 22px 16px 16px;
  border-radius: var(--r-lg);
}
.hero__kicker { font-size: 14px; font-weight: 700; text-align: center; color: var(--ink-2); }
.hero__motto {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  margin-top: 4px;
  font-family: var(--font-c);
  font-weight: 700;
  font-size: clamp(30px, 9.4vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--ink);
}
.hero__motto .amp {
  color: var(--blue);
  font-size: 1.5em;
  margin: -.2em -.04em 0;
  transform: rotate(-6deg);
}

.perks { display: grid; gap: 10px; margin-top: 16px; }
.perk {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-1);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}
.perk b { color: var(--blue); font-weight: 800; }
.perk__ic {
  display: grid; place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-ink);
}
.perk__ic .ic { width: 22px; height: 22px; }
.perk:nth-child(2) { transform: translateX(6px); }
.perk:nth-child(3) { transform: translateX(-4px); }

.hero__card .cta-row { margin-top: 16px; }
.hero__card .strip { font-size: 13px; padding: 0 12px; gap: 10px; flex: 1; min-width: 0; }
.hero__card .strip span { line-height: 1.12; padding-block: 8px; }
.hero__card .strip .ic { width: 30px; }
.hero__card .badge { width: 112px; margin: -40px -6px -10px 0; }
.hero__card .badge__text { font-size: 11.5px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.hero__stats > div {
  padding: 14px 12px;
  border-radius: var(--r-sm);
  background: var(--frost);
  box-shadow: var(--sh-1);
}
.hero__stats dt {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-d);
  font-style: italic;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.03em;
  color: var(--blue);
}
.hero__stats dt .ic { width: 16px; height: 16px; color: var(--blue); }
.hero__stats dd { margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--muted); }

/* ----------------------------------------------------- 7. SECTIONS + PRICES */
.sec { position: relative; padding: var(--sec-y) 0 0; }
#formats { padding-top: clamp(40px, 6vw, 72px); }

.sec--grid {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
}

.panel {
  position: relative;
  padding: 36px 16px 20px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--sh-2), inset 0 1px 0 var(--glass-hi);
}

.pricing { display: grid; gap: 28px; margin-top: 28px; }
.pricegroup__title {
  display: flex; align-items: center; gap: 8px;
  padding: 0 4px 10px;
  font-size: 13px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.pricegroup__title .ic { width: 16px; height: 16px; color: var(--blue); }

.pricerow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
}
.pricerow:last-child { border-bottom: 1px solid var(--line); }
.pricerow__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pricerow__main b { font-size: 15px; font-weight: 800; line-height: 1.3; }
.pricerow__main i { font-size: 13px; color: var(--muted); line-height: 1.4; }
.pricerow__price { display: grid; flex: none; text-align: right; }
.pricebox { display: flex; flex-direction: column; align-items: flex-end; }
.pricebox b {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.03em;
  color: var(--blue);
  white-space: nowrap;
}
.pricebox i { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.price-course b { text-decoration: underline; text-underline-offset: .2em; }

.cta-row--panel { margin: 22px -16px -20px; justify-content: flex-end; }
.cta-row--panel .badge { width: 120px; margin: -6px 8px -28px 0; }
.cta-row--panel .badge__text { font-size: 12px; }

/* --------------------------------------------------------------- NUTRITION */
.nutrition {
  padding: clamp(16px, 4.5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(145deg, var(--blue-soft), var(--surface-2) 54%);
}
.nutrition__intro { margin: 8px 0 clamp(24px, 4vw, 42px); }
.nutrition__intro h2 {
  font-family: var(--font-d);
  font-size: clamp(32px, 7vw, 86px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.nutrition__intro em {
  color: var(--blue);
  font-family: var(--font-s);
  font-size: 1.36em;
  letter-spacing: -.035em;
}
.nutrition__intro p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: clamp(16px, 2.3vw, 22px);
  font-weight: 700;
  text-wrap: pretty;
}
.nutrition__grid { display: grid; gap: clamp(12px, 2vw, 24px); }
.nutrition-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-2);
}
.nutrition-card__art {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4.5vw, 56px) 16px;
  background:
    radial-gradient(circle at 77% 16%, #f8f4d8 0 9%, transparent 9.3%),
    radial-gradient(ellipse at 25% 95%, #fbf4d9 0 23%, transparent 23.3%),
    linear-gradient(145deg, #c6dcb8, #eaf0d9);
}
.nutrition-card--recipes .nutrition-card__art {
  background:
    radial-gradient(circle at 21% 18%, #fff4c2 0 8%, transparent 8.3%),
    radial-gradient(ellipse at 89% 99%, #f9ebac 0 27%, transparent 27.3%),
    linear-gradient(145deg, #fff2cc, #e8c46a);
}
.nutrition-card__art img {
  width: clamp(144px, 24vw, 220px);
  height: auto;
  border-radius: 3px 9px 9px 3px;
  box-shadow: 2px 3px #e6e3ce, 5px 6px #b3baa0, 16px 22px 30px #2f3b2852;
  transform: rotate(-6deg);
}
.nutrition-card--recipes .nutrition-card__art img { transform: rotate(6deg); }
.nutrition-card__body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: clamp(18px, 3vw, 32px);
}
.nutrition-card__meta { color: var(--muted); font-size: 13px; font-weight: 800; }
.nutrition-card h3 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.nutrition-card__body > p:not(.nutrition-card__meta) { color: var(--ink-2); }
.nutrition-card__order { justify-self: start; margin-top: 8px; }

@media (min-width: 680px) {
  .nutrition__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ----------------------------------------------------------- 8. WORK WITH ME */
#work .display { margin-bottom: 26px; }

.work {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 18px 14px 14px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 70% at 50% 30%, #4B7BFF 0%, transparent 60%),
    radial-gradient(60% 50% at 85% 90%, rgba(255,111,203,.4) 0%, transparent 70%),
    var(--grad-blue);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--sh-3);
}
.work::after { /* fine diagonal sheen */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%);
}
.work__photo {
  grid-column: 1 / -1;
  position: relative;
  height: 400px;
  margin: 0 -14px;
}
.work__photo img {
  position: absolute; left: 50%; top: 0;
  height: 100%; width: auto; max-width: none;
  transform: translateX(-50%);
  object-fit: cover;
  /* full-frame photo: feather the edges into the blue panel */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 72%, transparent 100%);
  mask-composite: intersect;
}

.work__s {
  position: absolute; z-index: 2;
  color: #fff;
  font-size: 26px;
  text-shadow: 0 2px 12px rgba(5,15,80,.35);
  pointer-events: none;
}
.work__s--1 { left: 16px; top: 22px; transform: rotate(-8deg); }
.work__s--2 { right: 12px; top: 120px; transform: rotate(14deg); text-align: center; font-size: 24px; }
.work__s--3 { left: 14px; top: 290px; transform: rotate(-6deg); font-size: 34px; }
.work__s--4 { right: 14px; top: 340px; transform: rotate(12deg); text-align: center; font-size: 22px; }

.wcard {
  position: relative; z-index: 3;
  padding: 14px 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.wcard h3 { margin-top: 8px; font-size: 14px; font-weight: 800; line-height: 1.25; }
.wcard p { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.86); }

/* ------------------------------------------------------------- 8b. IN THE GYM */
.gymhead { text-align: center; }
.gymhead__pre {
  position: relative; z-index: 1;
  display: inline-block;
  margin-bottom: -.18em;
  font-size: clamp(30px, 7vw, 52px);
  color: var(--ink);
  transform: rotate(-4deg);
}
.gymhead__pre.rv { transform: translateY(22px) rotate(-4deg); }
.gymhead__pre.rv.is-in { transform: rotate(-4deg); }

/* bento of real photos: tall frames span two rows, the rest fill in */
.gym {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 168px;
  grid-auto-flow: dense;
  gap: 10px;
  margin-top: 28px;
}
.gym__item {
  position: relative;
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  background: var(--blue-ink);
  box-shadow: var(--sh-2);
}
.gym__item--tall { grid-row: span 2; }
.gym__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transition: transform .8s var(--ease-out);
}
.gym__item::after { /* blue floor glow so captions always read */
  content: ''; position: absolute; inset: 45% 0 0; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(10,28,110,.7));
  pointer-events: none;
}
.gym__item figcaption {
  position: absolute; z-index: 2;
  left: 10px; right: 10px; bottom: 10px;
  color: #fff;
  font-family: var(--font-c);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .01em;
}
@media (hover: hover) {
  .gym__item:hover img { transform: scale(1.04); }
}
.gym__cta { display: flex; justify-content: center; margin-top: 24px; }

/* --------------------------------------------------------------- 9. REVIEWS */
#reviews { overflow: hidden; padding-bottom: 8px; }

.revhead { position: relative; }
.revhead__pre {
  position: relative; z-index: 1;
  display: block;
  margin-left: 8%;
  margin-bottom: -.32em;
  font-size: clamp(44px, 11vw, 96px);
  color: var(--ink);
  transform: rotate(-5deg);
  transform-origin: left bottom;
}
.revhead__pre.rv { transform: translateY(22px) rotate(-5deg); }
.revhead__pre.rv.is-in { transform: rotate(-5deg); }
.revhead__title {
  font-size: clamp(36px, 15.2vw, 200px);
  line-height: .8;
  white-space: nowrap;
  text-wrap: nowrap;
}
.revhead__side {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 22px;
}
.rating {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--sh-1);
  font-size: 14px;
}
.rating b { font-family: var(--font-d); font-style: italic; font-weight: 800; color: var(--blue); }
.rating .ic { width: 16px; height: 16px; color: #FFB800; }
.rating i { color: var(--muted); font-weight: 600; }
.rev-nav { display: flex; gap: 8px; }
.rev-nav .round-btn { width: 44px; height: 44px; }

.reviews { margin-top: 26px; }
.reviews__track {
  --review-width: min(82vw, 340px);
  --review-gutter: var(--gut);
  position: relative;
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--review-gutter);
  padding: 10px calc(100% - var(--review-gutter) - var(--review-width)) 30px var(--review-gutter);
  scrollbar-width: none;
  cursor: grab;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reviews__track.is-dragging * { user-select: none; pointer-events: none; }
.reviews__track:focus-visible { outline-offset: -4px; }

/* align the first card with the shell on wide screens */
@media (min-width: 1280px) {
  .reviews__track { --review-gutter: calc((100vw - var(--shell)) / 2); }
}

.review {
  position: relative;
  flex: none;
  display: flex; flex-direction: column; gap: 14px;
  width: var(--review-width);
  padding: 26px 22px 24px;
  border-radius: var(--r-lg);
  background: var(--grad-blue);
  color: #fff;
  scroll-snap-align: start;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 50px -24px rgba(28,77,255,.75), inset 0 1px 0 rgba(255,255,255,.25);
}
.review::before { /* faint bolt watermark */
  content: ''; position: absolute; z-index: -1;
  right: -30px; top: -20px;
  width: 170px; height: 220px;
  background: rgba(255,255,255,.07);
  clip-path: polygon(62% 3%, 14% 55%, 46% 55%, 34% 97%, 88% 38%, 55% 38%, 68% 3%);
}
.review p { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.92); }
.review__top { display: flex; align-items: center; gap: 12px; }
.review__ava {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-weight: 800; font-size: 14px;
}
.review__who { display: flex; flex-direction: column; line-height: 1.25; }
.review__who b { font-size: 16px; }
.review__who time { font-size: 13px; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }
.stars { display: flex; gap: 2px; margin-top: auto; color: #FFD24A; }
.stars .ic { width: 17px; height: 17px; }

.review--intro { background: linear-gradient(160deg, #2D5DFF 0%, #1238E0 100%); justify-content: space-between; }
.review--intro p { font-size: 16px; font-weight: 500; }
.review__more {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 15px;
}
.review__more .ic { width: 40px; height: 20px; stroke-width: 1.6; transition: transform .3s var(--ease); }
@media (hover: hover) { .review__more:hover .ic { transform: translateX(5px); } }

.reviews__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding-inline: var(--gut); }
.reviews__dots button {
  display: grid; place-items: center;
  width: 24px; height: 24px;
}
.reviews__dots button::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  background: var(--dot-idle);
  transition: width .35s var(--ease), background-color .3s;
}
.reviews__dots button.is-active::before { width: 18px; background: var(--blue); }

/* ------------------------------------------------------------------ 10. FAQ */
.sec--faq { padding-bottom: 40px; }
.sec--faq .display { margin-bottom: 30px; }

.faq { display: grid; gap: 10px; max-width: 780px; margin-inline: auto; }
.faq__item {
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-1);
  transition: box-shadow .3s;
}
.faq__item.is-open { box-shadow: var(--sh-2); }
.faq__q {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 12px 12px 20px;
  text-align: left;
  font-size: 15px; font-weight: 500;
  line-height: 1.35;
}
.faq__text { flex: 1; }
.faq__text b { font-weight: 800; }
.faq__hint {
  display: none;
  width: 52px;
  font-size: 9.5px; line-height: 1.1;
  text-align: right;
  color: var(--muted-2);
}
.faq__sign {
  display: grid; place-items: center;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 8px 16px -8px rgba(28,77,255,.8);
  transition: transform .4s var(--ease), background .3s;
}
.faq__sign .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.faq__item.is-open .faq__sign { transform: rotate(135deg); background: var(--ink); color: var(--on-ink); box-shadow: none; }
.faq__item.is-open .faq__hint { visibility: hidden; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a p { padding: 0 20px 20px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 640px; }

/* ------------------------------------------------------- 11. CONTACT + FOOTER */
.contact {
  position: relative;
  margin-top: 80px;
  padding: 0 0 calc(24px + var(--stickybar-h, 64px) + 10px + env(safe-area-inset-bottom));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background:
    radial-gradient(80% 60% at 50% 0%, #4B7BFF 0%, transparent 70%),
    radial-gradient(50% 40% at 10% 100%, rgba(255,111,203,.25) 0%, transparent 70%),
    var(--grad-blue);
  color: #fff;
  isolation: isolate;
}
.contact__sparks { /* scattered light streaks, like sparks off a grinder */
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(60deg, transparent 49%, rgba(255,255,255,.9) 50%, transparent 52%) 3% 30% / 34px 34px no-repeat,
    linear-gradient(-50deg, transparent 49%, rgba(255,255,255,.8) 50%, transparent 52%) 97% 18% / 28px 28px no-repeat,
    linear-gradient(35deg, transparent 49%, rgba(255,111,203,.95) 50%, transparent 52%) 95% 62% / 26px 26px no-repeat,
    linear-gradient(-70deg, transparent 49%, rgba(255,255,255,.85) 50%, transparent 52%) 4% 76% / 30px 30px no-repeat,
    linear-gradient(20deg, transparent 49%, rgba(255,255,255,.7) 50%, transparent 52%) 94% 86% / 22px 22px no-repeat,
    linear-gradient(-30deg, transparent 49%, rgba(255,111,203,.9) 50%, transparent 52%) 4% 50% / 20px 20px no-repeat,
    linear-gradient(75deg, transparent 49%, rgba(255,255,255,.8) 50%, transparent 52%) 88% 4% / 20px 20px no-repeat;
}
.contact__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact__ava {
  display: block;
  width: 132px; height: 132px;
  margin-top: -66px;
  border-radius: 50%;
  border: 5px solid var(--bg);
  background: var(--blue-soft);
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.contact__ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.contact .display { margin-top: 26px; font-size: clamp(46px, 13vw, 110px); }
.contact__sub { margin-top: 12px; color: rgba(255,255,255,.8); font-weight: 600; }

.contact__links { display: grid; gap: 12px; width: min(100%, 420px); margin-top: 30px; }
.contact__link {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #23262F 0%, #0B0E17 100%);
  color: #fff;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 16px 30px -14px rgba(5,10,40,.7), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.contact__link .ic { width: 18px; height: 18px; }
@media (hover: hover) { .contact__link:hover { transform: translateY(-2px); box-shadow: 0 22px 36px -14px rgba(5,10,40,.8), inset 0 1px 0 rgba(255,255,255,.12); } }
.contact__link:active { transform: scale(.98); }

.contact__facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  margin-top: 26px;
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.85);
}
.contact__facts li { display: inline-flex; align-items: center; gap: 6px; }
.contact__facts .ic { width: 16px; height: 16px; }
.contact__facts a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }

.contact__sign {
  margin-top: 40px;
  font-size: clamp(28px, 7vw, 44px);
  transform: rotate(-3deg);
}
.contact__sign.rv { transform: translateY(22px) rotate(-3deg); }
.contact__sign.rv.is-in { transform: rotate(-3deg); }

.footer { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.18); }
.footer__legal {
  display: grid; gap: 8px;
  padding-top: 20px;
  font-size: 11.5px; line-height: 1.5;
  color: rgba(255,255,255,.6);
  text-align: center;
}
.footer__legal p { max-width: 900px; margin-inline: auto; }
.contact__note { display: block; width: 100%; margin-top: 2px; font-size: 11.5px; color: rgba(255,255,255,.7); text-align: center; }

/* ------------------------------------------ 12. STICKY BAR / TOTOP / MODAL */
.stickybar {
  position: fixed; z-index: 90;
  left: 10px; right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: var(--r-md);
  background: var(--frost-strong);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--sh-3);
  transform: translateY(140%);
  transition: transform .45s var(--ease);
}
.stickybar.is-shown { transform: none; }
.stickybar[hidden], .totop[hidden] { display: none; }
.stickybar__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.stickybar__text b { font-size: 14px; font-weight: 800; }
.stickybar__text i { font-size: 12.5px; color: var(--muted); }

.totop {
  position: fixed; z-index: 89;
  right: 14px;
  bottom: calc(var(--stickybar-h, 64px) + 22px + env(safe-area-inset-bottom));
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink); color: var(--on-ink);
  box-shadow: var(--sh-2);
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s var(--ease);
}
.totop.is-shown { opacity: 1; transform: none; }
.totop .ic { transform: rotate(180deg); }

.modal { position: fixed; inset: 0; z-index: 150; display: grid; grid-template-columns: minmax(0, 1fr); place-items: end center; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__box {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--card);
  box-shadow: var(--sh-3);
  transform: translateY(40px); opacity: 0;
  transition: transform .4s var(--ease), opacity .3s;
}
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg);
}
.modal__close .ic { width: 18px; height: 18px; }
.modal__title { font-size: clamp(22px, 6vw, 34px); padding-right: 44px; line-height: .95; }
.modal__sub { margin-top: 12px; font-size: 14.5px; color: var(--muted); }

.form { display: grid; gap: 18px; margin-top: 22px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; }
.field[hidden] { display: none; }
.field legend, .field label { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.field legend { margin-bottom: 8px; }
.field__opt { font-weight: 600; color: var(--muted-2); }
.field input:not([type="radio"]), .field textarea, .form-picker summary {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--field-bg);
  font-size: 16px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:not([type="radio"]):focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(28,77,255,.14);
}
.field.has-error input { border-color: var(--err-line); background: var(--err-bg); }
.field__error { font-size: 13px; font-weight: 700; color: var(--err); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip input:checked + span { background: var(--blue-lo); border-color: var(--blue-lo); color: #fff; }
.chip input:focus-visible + span { outline: 2.5px solid var(--blue); outline-offset: 2px; }

.form-picker { position: relative; }
.form-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
}
.form-picker summary::-webkit-details-marker { display: none; }
.form-picker summary .ic { color: var(--blue); }
.form-picker[open] summary { border-color: var(--blue); }
.form-picker[open] summary .ic { transform: rotate(180deg); }
.form-picker__options {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 6px) 0 auto;
  display: grid;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--sh-3);
}
.form-picker__options label { position: relative; cursor: pointer; }
.form-picker__options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form-picker__options span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--r-xs);
  font-size: 14px;
  font-weight: 700;
}
.form-picker__options .ic { color: var(--blue); visibility: hidden; }
.form-picker__options input:checked + span { background: var(--blue-soft); color: var(--ink); }
.form-picker__options input:checked + span .ic { visibility: visible; }
.form-picker__options input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: -2px; }
@media (hover: hover) {
  .form-picker__options label:hover span { background: var(--blue-soft); }
}

.form__note { font-size: 12px; color: var(--muted-2); text-align: center; }
.field__hint { font-size: 12.5px; color: var(--muted); }

.done__badge {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 16px;
  border-radius: 50%;
  background: var(--grad-blue); color: #fff;
  box-shadow: var(--sh-blue);
}
.done__badge .ic { width: 26px; height: 26px; stroke-width: 2.6; }
.done__preview {
  margin-top: 18px; padding: 16px;
  border-radius: var(--r-sm);
  background: var(--bg);
  font-family: var(--font-b);
  font-size: 13.5px; line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink-2);
}
.done__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
.linkbtn {
  display: block; margin: 16px auto 0;
  font-size: 14px; font-weight: 700;
  color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ------------------------------------------------------------ 13. RESPONSIVE */
@media (min-width: 420px) {
  .hero__card { padding: 24px 20px 18px; }
  .hero__card .strip { font-size: 14px; }
}

@media (min-width: 600px) {
  .hero__media { height: 640px; }
  .cutout--hero { left: 18%; right: 4%; }
  .hero__sign { left: 6%; }
  .hero__card { max-width: 520px; margin-inline: auto; }
  .hero__stats { max-width: 520px; width: 100%; margin-inline: auto; }

  .panel { padding: 48px 32px 28px; }
  .cta-row--panel { margin: 26px -32px -28px; }

  .work { grid-template-columns: repeat(4, 1fr); padding: 24px; gap: 12px; }
  .work__photo { height: 520px; margin: 0 -24px; }
  .work__s { font-size: 34px; }
  .work__s--1 { left: 40px; top: 50px; }

  .gym { grid-auto-rows: 250px; gap: 14px; }
  .work__s--2 { right: 40px; top: 150px; font-size: 32px; }
  .work__s--3 { left: 40px; top: 380px; font-size: 44px; }
  .work__s--4 { right: 40px; top: 420px; font-size: 30px; }

  .revhead__side { justify-content: flex-start; }
  .rev-nav { margin-left: auto; }

  .faq__hint { display: block; }

  .contact__links { grid-template-columns: repeat(3, 1fr); width: min(100%, 640px); }

  .modal { place-items: center; }
  .modal__box { border-radius: var(--r-lg); padding: 36px 32px 30px; max-height: calc(100dvh - 48px); }
  .done__actions { grid-template-columns: 1fr 1fr; }
  .totop { bottom: 22px; }
}

@media (min-width: 1024px) {
  .nav__inner { height: 80px; }
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .burger { display: none; }
  .nav__panel { display: none !important; }

  /* prices: two columns */
  .panel { padding: 64px 56px 40px; }
  .pricing { grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; }
  .cta-row--panel { margin: 30px -56px -40px; }
  .cta-row--panel .badge { width: 144px; margin: -30px 40px -50px 0; }
  .cta-row--panel .badge__text { font-size: 13.5px; }

  /* work: photo in the middle, cards on both sides */
  #work .display { margin-bottom: 36px; }
  .work {
    grid-template-columns: 300px 1fr 300px;
    grid-template-rows: 1fr 1fr;
    gap: 24px 0;
    min-height: 720px;
    padding: 48px;
  }
  .work__photo {
    grid-column: 2; grid-row: 1 / span 2;
    height: auto;
    margin: -48px 0 -48px;
  }
  .work__photo img { top: 30px; height: calc(100% + 10px); }
  .wcard { padding: 22px 22px 24px; border-radius: var(--r-lg); }
  .wcard h3 { font-size: 18px; }
  .wcard p { font-size: 14.5px; }
  .wcard--1 { grid-column: 1; grid-row: 1; align-self: start; margin-top: 60px; }
  .wcard--3 { grid-column: 1; grid-row: 2; align-self: end; }
  .wcard--2 { grid-column: 3; grid-row: 1; align-self: start; margin-top: 120px; }
  .wcard--4 { grid-column: 3; grid-row: 2; align-self: end; }
  .work__s { font-size: 44px; }
  .work__s--1 { left: 56px; top: 24px; }
  .work__s--2 { right: 60px; top: 18px; font-size: 38px; }
  .work__s--3 { left: 330px; top: 470px; font-size: 56px; }
  .work__s--4 { right: 372px; top: 548px; font-size: 40px; }

  /* in the gym: 4-column bento, two rows */
  .gym { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 290px; gap: 16px; margin-top: 40px; }
  .gym__item { border-radius: var(--r-lg); }
  .gym__item figcaption { left: 20px; right: 20px; bottom: 18px; font-size: 17px; }
  .gym__cta { margin-top: 32px; }
  .gym__cta .strip { min-height: 54px; padding: 0 24px; font-size: 16px; }

  /* reviews */
  .revhead__pre { margin-left: 4%; }
  .revhead__side { position: absolute; right: 0; bottom: calc(100% - 60px); margin: 0; }
  .reviews__track { --review-width: 380px; }
  .review { padding: 30px 28px 28px; }

  .faq__q { min-height: 72px; padding: 14px 14px 14px 26px; font-size: 16px; }
  .faq__a p { padding: 0 26px 24px; }

  .contact { margin-top: 110px; padding-bottom: 28px; }
  .contact__ava { width: 160px; height: 160px; margin-top: -80px; }

  .stickybar { display: none; }
}

@media (min-width: 1240px) {
  /* hero: centered poster composition */
  .hero { padding: 104px 0 24px; }
  .hero__stage {
    grid-template-columns: minmax(0, 1fr) 460px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    min-height: 860px;
  }
  .hero__head { grid-column: 1 / -1; grid-row: 1; display: flex; justify-content: center; }
  .hero__titlebox { display: inline-block; }
  .hero .label { font-size: 40px; position: relative; z-index: 3; }
  .hero__title { font-size: clamp(120px, 12.4vw, 160px); margin-top: 8px; }
  .hero__titlebox { position: static; }
  .hero__sub {
    position: absolute; z-index: 3;
    right: 0; top: 372px;
    width: 230px;
    margin: 0;
    font-size: 16px;
  }

  .hero__media {
    grid-column: 2; grid-row: 1 / span 2;
    margin: 190px -120px 0;
    height: auto;
    min-height: 760px;
  }
  /* the photo is waist-up: drop it so the face only clips the foot of "ТРЕНЕР" */
  .cutout--hero { left: 0; right: 0; top: 120px; bottom: -120px; }
  .hero__sign { left: auto; right: 64%; top: 19%; font-size: 60px; white-space: nowrap; transform: rotate(-7deg); }
  .hero__sign br { display: none; }
  .hero__handle { right: 18%; top: 54%; }
  .hero__bolt { right: -6%; top: 6%; width: 140px; }

  .hero__card {
    grid-column: 1; grid-row: 2;
    align-self: end;
    width: min(500px, calc(100% + 90px + var(--gut) - 8px)); max-width: none;
    margin: 0 -90px 40px 0;
    justify-self: end;
  }
  .hero__card .strip { font-size: 14px; }
  .hero__card .badge { width: 128px; margin: -48px -18px -24px 0; }
  .hero__card .badge__text { font-size: 12.5px; }

  .hero__stats {
    grid-column: 3; grid-row: 2;
    align-self: end;
    grid-template-columns: 1fr;
    width: 230px; justify-self: end;
    margin: 0 0 40px;
  }
  .hero__stats > div { background: var(--frost); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .hero__stats dt { font-size: 26px; }
  .hero__stats dd { font-size: 13px; }
}

/* --------------------------------------------------------- 14. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}
