/* ==========================================================================
   Бу — landing page styles. Mobile-first, no build step.
   Palette taken from the БуБаБу logo and the product photographs.
   ========================================================================== */

@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../fonts/Unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../fonts/Unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/Onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/Onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --cream: #FDF4ED;        /* exact background of the studio photo */
  --paper: #FFFBF7;
  --ink: #3A1F17;
  --ink-soft: #6B4A3F;
  --brown: #45231A;        /* logo outline */
  --blue: #1AA6D8;         /* the toy */
  --blue-deep: #0A6A8F;
  --blue-soft: #E3F3FA;
  --yellow: #FDC93A;
  --yellow-soft: #FFF1C9;
  --pink: #F05A78;
  --pink-soft: #FDE4E9;
  --error: #B0213E;
  --line: #E7D6CB;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 22px;
  --radius-lg: 32px;
  --outline: 2.5px solid var(--brown);
  --shadow-pop: 5px 5px 0 var(--brown);
  --wrap: 1200px;
  --gutter: clamp(1.1rem, 4.5vw, 2.5rem);
  --section: clamp(4rem, 10vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--blue-deep); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; color: #fff; }

.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-deep); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2.5px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--yellow); }

.display {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.06;
}
.display--sm { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }

/* ---------- Buttons ---------- */
.btn {
  --sh: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.15; text-align: center; text-decoration: none;
  color: var(--ink); background: var(--paper);
  border: var(--outline); border-radius: 999px;
  box-shadow: var(--sh) var(--sh) 0 var(--brown);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: calc(var(--sh) + 1px) calc(var(--sh) + 1px) 0 var(--brown); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--brown); }
.btn--primary { background: var(--yellow); }
.btn--primary:hover { background: #FFD45C; }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 44px; padding: .55rem 1.05rem; font-size: .85rem; --sh: 3px; }
.btn--lg { min-height: 58px; padding: 1rem 2rem; font-size: 1.1rem; --sh: 5px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: progress; transform: none; }

.linklike { background: none; border: 0; padding: .4rem 0; color: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: block; flex: none; margin-right: auto; padding: .25rem 0; }
.brand img { width: 92px; height: auto; }
.site-header .btn--sm { white-space: nowrap; }
@media (max-width: 400px) { .site-header .btn--sm { font-size: .74rem; padding: .5rem .8rem; } .brand img { width: 80px; } }
.site-nav { display: none; gap: .4rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 999px;
}
.site-nav a:hover { background: var(--yellow-soft); }
@media (min-width: 820px) {
  .site-nav { display: flex; }
  .brand img { width: 128px; }
  .site-header__inner { min-height: 80px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(1.25rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5rem); }
.hero__grid { display: grid; grid-template-areas: "text" "media" "cta"; gap: 1rem; }
.hero__text { grid-area: text; }
.hero__media { grid-area: media; display: flex; justify-content: center; }
.hero__cta { grid-area: cta; }
.hero__title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(1.75rem, 7.6vw, 4.9rem); line-height: 1.04; margin: 0; text-wrap: balance; overflow-wrap: break-word;
}
.hero__name { color: var(--blue); display: inline-block; }
.marker {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em;
}
.hero__media img { width: auto; max-width: 100%; max-height: 44svh; object-fit: contain; }
.hero__lead { font-size: clamp(1.15rem, 2.6vw, 1.45rem); line-height: 1.45; max-width: 32ch; margin-bottom: 1.5rem; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }

.limited {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0;
  font-weight: 600; font-size: .98rem; color: var(--ink);
}
.limited__dot { width: .7rem; height: .7rem; flex: none; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
.limited--big { font-size: 1.1rem; padding: .7rem 1.1rem; background: var(--paper); border: var(--outline); border-radius: 999px; }

@media (max-width: 959px) {
  .hero__actions .btn { width: 100%; max-width: 420px; }
  .hero__cta { text-align: left; }
}
@media (min-width: 960px) {
  .hero { padding-top: 2rem; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas: "text media" "cta media";
    grid-template-rows: auto 1fr; column-gap: clamp(2rem, 5vw, 5rem); align-items: end;
  }
  .hero__text { align-self: end; padding-top: 3rem; }
  .hero__cta { align-self: start; padding-top: 1.75rem; }
  .hero__media img { max-height: min(80vh, 760px); }
}

/* ---------- Story ---------- */
.story { background: var(--blue-soft); padding: var(--section) 0; }
.story__grid { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.story__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 42%;
  border: var(--outline); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--brown);
  transform: rotate(-1.5deg); background: #d9cfc6;
}
.story__body { font-size: clamp(1.1rem, 2.1vw, 1.3rem); line-height: 1.6; max-width: 40ch; }
.story__moments { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.story__moments li {
  padding: .45rem 1rem; border: 2px solid var(--brown); border-radius: 999px; font-weight: 600; font-size: .95rem; background: var(--paper);
}
.story__moments li:nth-child(1) { background: var(--yellow-soft); }
.story__moments li:nth-child(2) { background: var(--pink-soft); }
@media (min-width: 960px) {
  .story__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  .story__media { max-width: 480px; }
}

/* ---------- Makers ---------- */
.makers { background: var(--brown); color: var(--cream); padding: var(--section) 0; }
.makers a { color: var(--yellow); }
.makers__head { max-width: 880px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.makers__head .display { color: #fff; }
.makers__lead { font-size: clamp(1.1rem, 2.1vw, 1.32rem); line-height: 1.6; color: #F6E6DA; }
.makers__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.makers__list { list-style: none; display: grid; gap: 0; }
.maker { position: relative; padding: 1.6rem 0 1.6rem 4.2rem; border-top: 1px solid rgba(253, 244, 237, .22); }
.maker:last-child { border-bottom: 1px solid rgba(253, 244, 237, .22); }
.maker__num { position: absolute; left: 0; top: 1.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--yellow); }
.maker__role { margin: 0 0 .25rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9FDDF4; }
.maker__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: #fff; margin: 0 0 .3rem; }
.maker__desc { margin: 0; color: #EAD7CB; }
.makers__media img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 45%;
  border-radius: var(--radius-lg); border: 2.5px solid var(--cream); transform: rotate(1.5deg); background: #5a4038;
}
@media (min-width: 960px) {
  .makers__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); }
}

/* ---------- Materials ---------- */
.materials { padding: var(--section) 0; }
.materials__head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.materials__head p { font-size: clamp(1.1rem, 2vw, 1.25rem); }
.features { list-style: none; display: grid; gap: 1.1rem; }
.feature {
  border: var(--outline); border-radius: var(--radius); padding: 1.75rem 1.6rem 1.6rem; background: var(--paper);
  box-shadow: var(--shadow-pop);
}
.feature--blue { background: var(--blue-soft); }
.feature--yellow { background: var(--yellow-soft); }
.feature--pink { background: var(--pink-soft); }
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin: 1rem 0 .4rem; }
.feature p { margin: 0; color: var(--ink-soft); }
.feature__icon { width: 52px; height: 52px; fill: none; stroke: var(--brown); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

/* ---------- Gallery ---------- */
.gallery { padding: 0 0 var(--section); }
.gallery__grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.5rem; }
.gallery__item--main { grid-column: 1 / -1; }
.gallery__btn {
  display: block; width: 100%; padding: 0; border: var(--outline); border-radius: var(--radius); overflow: hidden;
  background: var(--cream); cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease;
}
.gallery__btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.gallery__btn img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; }
.gallery__item--main .gallery__btn img { aspect-ratio: 4 / 5; object-fit: contain; }
@media (min-width: 760px) {
  .gallery__grid { grid-template-columns: 1.25fr 1fr 1fr; gap: 1.25rem; align-items: stretch; }
  .gallery__item--main { grid-column: auto; }
  .gallery__btn, .gallery__btn img { height: 100%; }
  .gallery__btn img, .gallery__item--main .gallery__btn img { aspect-ratio: auto; min-height: 420px; }
}

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(30, 15, 10, .92); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__img { max-width: min(92vw, 1100px); max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 14px; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.35);
  color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox :focus-visible { outline-color: var(--yellow); }

/* ---------- Preorder ---------- */
.preorder { background: var(--yellow-soft); padding: var(--section) 0; border-top: var(--outline); border-bottom: var(--outline); }
.preorder__head { text-align: center; max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); display: flex; flex-direction: column; align-items: center; }
.preorder__head .eyebrow::after { content: ""; width: 1.6rem; height: 2.5px; background: currentColor; border-radius: 2px; }
.preorder__grid { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 960px) { .preorder__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem; } }

.summary { background: var(--paper); border: var(--outline); border-radius: var(--radius); padding: 1.6rem; }
.summary__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin: 0 0 1rem; }
.summary__title + .steps { margin-bottom: 1.25rem; }
.summary__list { margin: 0 0 1.75rem; display: grid; gap: 0; }
.summary__list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.summary__list dt { color: var(--ink-soft); font-size: .95rem; }
.summary__list dd { margin: 0; font-weight: 600; }
.summary__list small { display: block; font-weight: 400; color: var(--ink-soft); }
.steps { list-style: none; counter-reset: s; display: grid; gap: .75rem; }
.steps li { counter-increment: s; position: relative; padding-left: 2.6rem; min-height: 1.9rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem;
}
.summary__note { margin: 0; padding: .9rem 1rem; background: var(--blue-soft); border-radius: 14px; font-size: .95rem; }

.order-form {
  background: #fff; border: var(--outline); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--brown);
  padding: clamp(1.25rem, 4vw, 2.5rem); display: grid; gap: 1.1rem;
}
.field { display: grid; gap: .35rem; min-width: 0; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row--city { grid-template-columns: 1fr 11rem; }
}
.field label, .check label { font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: .92em; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: .75rem 1rem; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--paper); border: 2px solid #CDB5A8; border-radius: 14px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 4px rgba(26, 166, 216, .25); background: #fff; }
.field [aria-invalid="true"], .check [aria-invalid="true"] { border-color: var(--error); }
.field__hint { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.field__error { margin: 0; font-size: .92rem; font-weight: 600; color: var(--error); }
.field__error::before { content: "! "; }

.qty { display: grid; grid-template-columns: 48px 1fr 48px; border: 2px solid #CDB5A8; border-radius: 14px; overflow: hidden; background: var(--paper); }
.qty:focus-within { border-color: var(--blue-deep); box-shadow: 0 0 0 4px rgba(26, 166, 216, .25); }
.qty input { border: 0 !important; border-radius: 0; text-align: center; box-shadow: none !important; padding: .5rem 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__btn { border: 0; background: var(--yellow-soft); font-size: 1.4rem; font-weight: 700; cursor: pointer; min-height: 48px; }
.qty__btn:hover { background: var(--yellow); }

.total {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .8rem; padding: 1rem 1.1rem;
  background: var(--cream); border-radius: 14px; border: 2px dashed var(--line);
}
.total strong { font-family: var(--font-display); font-size: 1.45rem; margin-left: auto; }
.total small { flex-basis: 100%; text-align: right; color: var(--ink-soft); }

.check { display: grid; grid-template-columns: 28px 1fr; gap: .25rem .75rem; align-items: start; }
.check input { width: 24px; height: 24px; margin: .15rem 0 0; accent-color: var(--blue-deep); cursor: pointer; }
.check label { font-weight: 400; cursor: pointer; }
.check .field__error { grid-column: 2; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin: 0; text-align: center; font-size: .92rem; color: var(--ink-soft); }
.alert { padding: 1rem 1.1rem; border-radius: 14px; font-weight: 600; }
.alert--error { background: #FDE4E9; color: var(--error); border: 2px solid var(--error); }
.alert:focus { outline: none; }

.closed {
  max-width: 640px; margin: 0 auto; text-align: center; background: var(--paper); border: var(--outline);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 5vw, 3rem); box-shadow: var(--shadow-pop);
}
.closed__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.6rem); }
.closed p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { padding: var(--section) 0; }
.faq__list { margin-top: 1.5rem; border-top: 2px solid var(--brown); }
.faq__item { border-bottom: 2px solid var(--brown); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px; padding: .9rem 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 2.2vw, 1.2rem);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--brown);
  display: grid; place-items: center; font-size: 1.3rem; transition: transform .2s, background-color .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq__answer { padding: 0 3rem 1.4rem 0; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #F6E6DA; padding: clamp(3rem, 7vw, 4.5rem) 0 1.5rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); } }
.site-footer__brand img { width: 150px; margin-bottom: 1rem; }
.site-footer__title { font-family: var(--font-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer__links { list-style: none; display: grid; gap: .2rem; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(253, 244, 237, .2); font-size: .92rem; }
.site-footer__base p { margin: 0; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--cream) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { min-height: 52px; }
@media (min-width: 820px) { .sticky-cta { display: none !important; } }

/* ---------- Consent ---------- */
.consent {
  position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem; max-width: 520px; margin-left: auto;
  background: var(--paper); border: var(--outline); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-pop);
}
.consent p { margin: 0 0 1rem; font-size: .95rem; }
.consent__actions { display: flex; gap: .75rem; justify-content: flex-end; }

/* ---------- Content pages ---------- */
.legal, .thanks { padding: clamp(2.5rem, 7vw, 5rem) 0 var(--section); }
.prose h2 { font-family: var(--font-display); font-size: 1.25rem; margin-top: 2rem; }
.prose ul { padding-left: 1.3rem; margin-bottom: 1em; }
.legal__updated { color: var(--ink-soft); font-size: .92rem; margin-top: 2rem; }
.thanks__card { background: #fff; border: var(--outline); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--brown); padding: clamp(1.5rem, 5vw, 3rem); }
.thanks__card:focus { outline: none; }
.thanks__ref { font-size: 1.2rem; padding: .8rem 1rem; background: var(--yellow-soft); border-radius: 14px; display: inline-block; }
.thanks__ref strong { font-family: var(--font-display); letter-spacing: .04em; }

/* ---------- Motion (only when the user allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
  .reveal-ready .story__media.is-visible img { transform: rotate(-1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
