/* Mebora — демо-сайт магазину меблів. Палітра: теплий білий, дуб, один акцент — глибока теракота. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-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: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../fonts/cormorant-italic-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../fonts/cormorant-italic-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 {
  --bg: #f5f0e8;
  --paper: #fbf8f3;
  --sand: #ece4d8;
  --sand-2: #e2d7c7;
  --oak: #b98b5c;
  --ink: #29231e;
  --ink-2: #4a4038;
  --muted: #7a6f64;
  --line: rgba(41, 35, 30, .12);
  --line-2: rgba(41, 35, 30, .22);
  --accent: #a3482a;          /* теракота — єдиний акцент */
  --accent-deep: #85391f;
  --accent-soft: #e7b9a4;
  --glass: rgba(251, 248, 243, .8);
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --pad: clamp(16px, 4.4vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { font: 600 11.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.h2 { font: 300 clamp(36px, 4.6vw, 70px)/1 var(--sans); letter-spacing: -.035em; margin: 14px 0 0; }
.h2 em, h1 em { font: italic 500 1.12em/0.9 var(--serif); letter-spacing: -.01em; color: var(--accent); }
.lead { font-size: clamp(16px, 1.2vw, 18px); color: var(--muted); max-width: 56ch; margin: 20px 0 0; }
.demo { display: inline-block; font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.badge--accent { color: var(--accent-deep); box-shadow: inset 0 0 0 1px rgba(163,72,42,.35); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 24px; font: 600 14.5px/1 var(--sans); letter-spacing: .005em; text-decoration: none; transition: background .3s var(--ease), color .3s, transform .3s var(--ease), box-shadow .3s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--sm svg { width: 14px; height: 14px; }
.btn--wide { width: 100%; }
.btn.is-done { background: var(--ink); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; gap: 30px; padding: 16px var(--pad); color: var(--ink); transition: background .4s, padding .4s, box-shadow .4s; }
.hdr.is-solid { background: rgba(245, 240, 232, .86); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); padding-top: 11px; padding-bottom: 11px; box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1 var(--sans); letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.logo svg { width: 28px; height: 28px; color: var(--accent); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font: 500 14px/1 var(--sans); text-decoration: none; opacity: .78; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.hdr__cart { display: inline-flex; align-items: center; gap: 9px; border: 0; padding: 10px 14px 10px 14px; border-radius: 999px; background: rgba(251, 248, 243, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); font: 600 13.5px/1 var(--sans); transition: box-shadow .3s; }
.hdr__cart:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.hdr__cart svg { width: 19px; height: 19px; }
.hdr__cart b { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--sand); font-size: 12px; transition: background .3s, color .3s; }
.hdr__cart.has b, .mini.has .mini__ic b { background: var(--accent); color: #fff; }
.hdr__cart.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.08); } }
@media (max-width: 980px) { .nav { display: none; } .hdr__cart { margin-left: auto; } }
@media (max-width: 760px) { .hdr__cart .lbl { display: none; } .logo { font-size: 20px; } .hdr { padding-top: 12px; padding-bottom: 12px; } }

html:not(.js) .hdr { background: rgba(245, 240, 232, .94); box-shadow: 0 1px 0 var(--line); }

/* ---------- film ---------- */
.film { position: relative; background: var(--bg); }
.film__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film__stage { position: absolute; inset: 0; overflow: hidden; background: #d9cfc1; }
.film__poster, .film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film__poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.film__canvas { opacity: 0; transition: opacity .5s; }
.film__canvas.is-on { opacity: 1; }
.film__veil { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(247,243,236,.9) 0%, rgba(247,243,236,.74) 27%, rgba(247,243,236,.22) 47%, rgba(247,243,236,0) 60%);
  opacity: var(--veil, 1); }
.film__veil::after { content: ''; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(rgba(245,240,232,.55), rgba(245,240,232,0)); }

.intro { position: absolute; left: var(--pad); top: 50%; transform: translateY(-48%); z-index: 3; max-width: 640px; pointer-events: none; }
.intro .eyebrow { color: var(--accent-deep); }
.intro h1 { font: 300 clamp(48px, 6vw, 100px)/.96 var(--sans); letter-spacing: -.045em; margin: 18px 0 0; }
.intro h1 em { display: inline-block; padding-right: .04em; }
.intro p { font-size: clamp(16px, 1.25vw, 18.5px); max-width: 44ch; margin: 26px 0 0; color: var(--ink-2); }
.intro .hint { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; font: 600 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.intro .hint i { display: block; width: 1px; height: 38px; background: linear-gradient(var(--ink-2), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1 } 70% { transform: scaleY(1); opacity: 1 } 100% { transform: scaleY(1); opacity: 0 } }

.glass { background: var(--glass); backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 50px -24px rgba(60, 40, 24, .35); }
.cap, .tot { background: var(--glass); backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 0 0 1px rgba(255,255,255,.35), 0 18px 50px -24px rgba(60, 40, 24, .4); border-radius: 18px; }
.cap { position: absolute; left: var(--pad); bottom: 32px; z-index: 4; width: min(430px, calc(100% - 2 * var(--pad))); padding: 20px 22px 18px; --co: 1; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.cap.swap > * { animation: capin .5s var(--ease) both; }
.cap.swap > :nth-child(2) { animation-delay: .04s; }
.cap.swap > :nth-child(3) { animation-delay: .08s; }
@keyframes capin { from { opacity: 0; transform: translateY(8px); } }
.cap__num { font: 600 11px/1.3 var(--sans); letter-spacing: .2em; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.cap__title { font: 400 30px/1.05 var(--sans); letter-spacing: -.03em; margin: 8px 0 0; }
.cap__text { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin: 8px 0 0; }
.cap__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cap__meta { font-size: 13px; color: var(--muted); }
.cap__meta b { color: var(--ink); font-weight: 700; font-size: 15px; margin-right: 6px; }

.tot { position: absolute; right: var(--pad); bottom: 32px; z-index: 4; width: 300px; padding: 18px 20px 20px; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.tot__head { display: flex; justify-content: space-between; align-items: baseline; font: 600 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tot__head .demo { font-size: 9.5px; letter-spacing: .1em; }
.tot__sum { margin-top: 8px; }
.tot__sum b { display: block; font: 300 40px/1 var(--sans); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.tot__sum span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.tot__bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; }
.tot__bar li { height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.tot__bar li i { display: block; height: 100%; width: calc(var(--f, 0) * 100%); background: var(--accent); }
.tot__all { width: 100%; margin-top: 16px; max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), padding .5s var(--ease), opacity .4s, background .3s; }
.tot.is-full .tot__all { max-height: 60px; padding-top: 14px; padding-bottom: 14px; opacity: 1; }
.film.is-intro .cap, .film.is-intro .tot { opacity: 0; transform: translateY(14px); pointer-events: none; }

/* hotspots */
.hs { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hs__dot { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 0; padding: 0; border-radius: 50%; background: rgba(251,248,243,.92); box-shadow: 0 6px 20px -6px rgba(40,25,15,.45), 0 0 0 1px rgba(255,255,255,.7); pointer-events: auto; display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .45s var(--ease), transform .55s cubic-bezier(.3,1.6,.5,1); }
.hs__dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transition: transform .3s var(--ease); }
.hs__dot::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid rgba(251,248,243,.85); animation: ring 2.4s var(--ease) infinite; }
.hs__dot.is-on { opacity: 1; transform: scale(1); }
.hs__dot:hover::before, .hs__dot[aria-expanded="true"]::before { transform: scale(1.35); }
.hs__dot span { position: absolute; left: 44px; top: 50%; transform: translateY(-50%); padding: 7px 11px; border-radius: 999px; background: rgba(251,248,243,.94); font: 600 12.5px/1 var(--sans); white-space: nowrap; opacity: 0; transition: opacity .25s; pointer-events: none; box-shadow: 0 6px 18px -8px rgba(40,25,15,.4); }
.hs__dot:hover span, .hs__dot:focus-visible span { opacity: 1; }
@keyframes ring { 0% { transform: scale(.7); opacity: .9 } 80%, 100% { transform: scale(1.35); opacity: 0 } }

/* product popover on a hotspot */
.pop { position: absolute; z-index: 6; width: 300px; border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 70px -30px rgba(40,25,15,.55), 0 0 0 1px var(--line); transform-origin: var(--ox, 0) var(--oy, 0); animation: popin .4s var(--ease); }
.pop[hidden] { display: none; }
@keyframes popin { from { opacity: 0; transform: scale(.94) translateY(6px); } }
.pop__x { position: absolute; right: 10px; top: 10px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(251,248,243,.9); display: grid; place-items: center; }
.pop__x svg { width: 16px; height: 16px; }
.pop__img { aspect-ratio: 720 / 564; background: var(--sand); }
.pop__img img { width: 100%; height: 100%; object-fit: cover; }
.pop__body { padding: 16px 18px 18px; }
.pop h3 { font: 500 20px/1.15 var(--sans); letter-spacing: -.02em; margin: 0; }
.pop p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.pop dl { display: flex; gap: 22px; margin: 12px 0 14px; }
.pop dt { font: 600 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pop dd { margin: 4px 0 0; font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.pop .btn { width: 100%; }
.pop small { display: block; margin-top: 8px; text-align: center; font-size: 11px; color: var(--muted); letter-spacing: .06em; }

/* mobile: кадр зверху, підписи нижче на папері */
@media (max-width: 760px) and (orientation: portrait) {
  .film__sticky { background: var(--paper); }
  .film__stage { bottom: auto; height: 54svh; }
  .film__veil { background: linear-gradient(rgba(245,240,232,.45), rgba(245,240,232,0) 22%); }
  .film__veil::after { display: none; }
  .intro { top: calc(54svh + 18px); transform: none; right: var(--pad); }
  .intro h1 { font-size: 40px; margin-top: 10px; }
  .intro p { font-size: 15px; margin-top: 12px; }
  .intro .hint { margin-top: 14px; }
  .cap { left: var(--pad); right: var(--pad); width: auto; top: calc(54svh + 14px); bottom: auto; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
  .cap__title { font-size: 26px; }
  .cap__text { font-size: 14px; }
  .cap__row { margin-top: 10px; padding-top: 10px; }
  .tot { left: var(--pad); right: var(--pad); width: auto; bottom: 14px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; border-radius: 16px; background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 0 0 1px var(--line); }
  .tot__head { grid-column: 1; }
  .tot__head .demo { display: none; }
  .tot__sum { grid-column: 1; margin-top: 4px; display: flex; align-items: baseline; gap: 10px; }
  .tot__sum b { font-size: 26px; display: inline; white-space: nowrap; flex: none; }
  .tot__sum span { display: inline; margin: 0; font-size: 12px; white-space: nowrap; }
  .tot__bar { grid-column: 1 / -1; margin-top: 10px; }
  .tot__all { grid-column: 1 / -1; width: 100%; margin-top: 0; }
  .tot.is-full .tot__all { padding: 12px 16px; margin-top: 10px; }
  .hs__dot { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  .hs__dot span { display: none; }
  .pop { position: fixed; left: 10px !important; right: 10px; top: auto !important; bottom: 10px; width: auto; display: grid; grid-template-columns: 120px 1fr; z-index: 80; }
  .pop__img { aspect-ratio: auto; }
  .pop__body { padding: 14px 14px 14px; }
  .pop h3 { font-size: 17px; padding-right: 30px; }
  .pop dl { margin: 8px 0 10px; gap: 16px; }
  .pop small { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) { .cap__text { display: none; } .tot__bar { display: none; } }

/* статична версія */
.film-static { display: none; padding: 120px 0 70px; }
.fs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.fs figure { margin: 0; }
.fs img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.fs figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.fs__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 24px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: p; }
.fs__list li { padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.fs__list li b { display: block; font-weight: 600; }
.fs__list li span { color: var(--muted); }
.fs__sum { margin-top: 24px; font-size: 18px; }
@media (max-width: 760px) { .fs { grid-template-columns: 1fr; } .fs__list { grid-template-columns: 1fr 1fr; } }
html.rm .film, html:not(.js) .film { display: none; }
html.rm .film-static, html:not(.js) .film-static { display: block; }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 10vw, 140px) 0; }
.sec__head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin-bottom: clamp(32px, 4.5vw, 56px); }
@media (max-width: 760px) { .sec__head { grid-template-columns: 1fr; } .sec__head .badge { justify-self: start; } }

/* fabric configurator */
.fab { background: var(--paper); }
.fab__grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(300px, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.fab__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; background: var(--sand); --cx: 380; --cy: 290; --cw: 1400; --ch: 875; }
.fab__frame { position: absolute; width: calc(2048 / var(--cw) * 100%); height: calc(1152 / var(--ch) * 100%); left: calc(var(--cx) / var(--cw) * -100%); top: calc(var(--cy) / var(--ch) * -100%); }
.fab__base { position: absolute; inset: 0; width: 100%; height: 100%; }
.fab__layers img { position: absolute; left: calc(680 / 2048 * 100%); top: calc(600 / 1152 * 100%); width: calc(816 / 2048 * 100%); height: calc(320 / 1152 * 100%); opacity: 0; transition: opacity .9s var(--ease); }
.fab__layers img.is-on { opacity: 1; }
.fab__chip { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px -14px rgba(40,25,15,.4); }
.fab__chipimg { width: 64px; height: 64px; border-radius: 10px; background-size: 260%; background-position: center; transition: background-image .4s; }
.fab__chip b { display: block; font: 600 14px/1.2 var(--sans); }
.fab__chip small { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.fab__opts { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.fopt { position: relative; display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .3s, background .3s; }
.fopt:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fopt:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
.fopt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.fopt__sw { width: 76px; height: 76px; border-radius: 10px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.fopt b { display: block; font: 600 15.5px/1.25 var(--sans); }
.fopt small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.fopt em { font-style: normal; font: 600 13px/1 var(--sans); color: var(--accent-deep); white-space: nowrap; }
.fab__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.fab__label { display: block; font-size: 13px; color: var(--muted); }
.fab__price { display: inline-block; font: 300 34px/1.1 var(--sans); letter-spacing: -.03em; margin-right: 10px; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) { .fab__grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .fab__view { aspect-ratio: 4 / 3; --cx: 600; --cy: 430; --cw: 960; --ch: 720; }
  .fab__chip { left: 10px; bottom: 10px; padding: 6px 12px 6px 6px; }
  .fab__chipimg { width: 46px; height: 46px; }
  .fopt { grid-template-columns: 60px 1fr auto; gap: 12px; }
  .fopt__sw { width: 60px; height: 60px; }
  .fopt small { display: none; }
}

/* door check */
.door { background: var(--bg); }
.door__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.door__viz { border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(10px, 2vw, 24px); }
.door__viz svg { width: 100%; height: auto; display: block; }
.door__viz text { font-family: var(--sans); }
.door__form { display: grid; gap: 8px; }
.field { padding: 14px 0; border-bottom: 1px solid var(--line); }
.field__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.field__label { display: block; font: 600 11.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field > .field__label { margin-bottom: 10px; }
.field__val { display: flex; align-items: baseline; gap: 6px; font: 300 32px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.field__val small { font: 500 14px var(--sans); color: var(--muted); }
.num { width: 3.2ch; border: 0; padding: 0; background: none; font: inherit; letter-spacing: inherit; text-align: right; color: var(--ink); -moz-appearance: textfield; border-bottom: 1px dashed var(--line-2); }
.num::-webkit-outer-spin-button, .num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num:focus { outline: none; border-bottom-color: var(--accent); }
.select { position: relative; }
.select::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { width: 100%; appearance: none; -webkit-appearance: none; border: 0; border-radius: 12px; padding: 14px 40px 14px 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 15px/1.2 var(--sans); }
.select select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.select--sm select { padding: 10px 36px 10px 14px; font-size: 13.5px; border-radius: 999px; background: transparent; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p, 30%), var(--line-2) var(--p, 30%)); }
.range::-moz-range-track { height: 3px; border-radius: 3px; background: var(--line-2); }
.range::-moz-range-progress { height: 3px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 4px 10px -2px rgba(40,25,15,.3); }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 4px 10px -2px rgba(40,25,15,.3); }
.range__ticks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.verdict { margin-top: 12px; padding: 18px 20px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; transition: background .4s, box-shadow .4s; }
.verdict__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.verdict__ic svg { width: 20px; height: 20px; }
.verdict b { display: block; font: 600 17px/1.3 var(--sans); }
.verdict p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.verdict.is-no { background: #f8ece6; box-shadow: inset 0 0 0 1px rgba(163,72,42,.3); }
.verdict.is-no .verdict__ic { background: var(--accent); }
.door__fine { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 900px) { .door__grid { grid-template-columns: 1fr; } }

/* catalog */
.cat { background: var(--paper); }
.cat__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; padding: 10px 16px; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); font: 600 13px/1 var(--sans); transition: background .25s, color .25s, box-shadow .25s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip sup { font-size: 10px; margin-left: 3px; opacity: .6; }
.cat__tools { display: flex; gap: 10px; align-items: center; }
.chip--toggle[aria-pressed="true"] { background: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.card { position: relative; display: flex; flex-direction: column; border-radius: 16px; background: var(--bg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.card:hover { box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -28px rgba(40,25,15,.4); }
.card.is-hidden { display: none; }
.card__img { aspect-ratio: 720 / 564; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__tag { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(251,248,243,.92); font: 600 11px/1 var(--sans); letter-spacing: .04em; color: var(--accent-deep); }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card h3 { font: 600 16px/1.25 var(--sans); margin: 0; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.card__price { font: 600 17px/1 var(--sans); font-variant-numeric: tabular-nums; }
.add { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background .25s, transform .25s var(--ease); flex: none; }
.add:hover { background: var(--accent); }
.add:active { transform: scale(.92); }
.add svg { width: 18px; height: 18px; }
.add.is-done { background: var(--accent); }
.empty { display: none; padding: 30px 0; color: var(--muted); }
.empty.is-on { display: block; }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .card__body { padding: 10px 12px 12px; } .card h3 { font-size: 14.5px; } .card p { font-size: 12px; } .card__price { font-size: 15px; } .add { width: 36px; height: 36px; } .cat__tools { width: 100%; justify-content: space-between; } .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad); scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; } .chip { white-space: nowrap; } }

/* delivery + AR */
.deliv__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; }
.dcard, .ar { border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(22px, 3vw, 36px); }
.dcard__ic { width: 34px; height: 34px; color: var(--accent); }
.dcard h3, .ar h3 { font: 400 28px/1.1 var(--sans); letter-spacing: -.03em; margin: 16px 0 6px; }
.dlist { list-style: none; margin: 18px 0 0; padding: 0; }
.dlist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.dlist b { font-weight: 600; font-size: 15px; }
.dlist span { grid-column: 1; font-size: 13.5px; color: var(--muted); }
.dlist em { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.fine { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.ar { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; overflow: hidden; background: linear-gradient(135deg, var(--sand) 0%, var(--paper) 70%); }
.ar__phone { width: 210px; padding: 9px; border-radius: 36px; background: #1f1a16; box-shadow: 0 30px 60px -30px rgba(40,25,15,.6), inset 0 0 0 1.5px #3a322b; }
.ar__screen { position: relative; aspect-ratio: 520 / 1024; border-radius: 28px; overflow: hidden; background: #cfc4b5; }
.ar__screen > img { width: 100%; height: 100%; object-fit: cover; }
.ar__ring { position: absolute; left: 50%; top: 77%; width: 62%; aspect-ratio: 3.2; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 0 0 6px rgba(255,255,255,.18); animation: arring 2.6s var(--ease) infinite; }
@keyframes arring { 50% { box-shadow: 0 0 0 12px rgba(255,255,255,.06); } }
.ar__ui { position: absolute; left: 10px; right: 10px; top: 12px; display: flex; justify-content: center; }
.ar__ui span { padding: 7px 11px; border-radius: 999px; background: rgba(30,25,20,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font: 600 10.5px/1 var(--sans); white-space: nowrap; }
.ar__btn { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 11.5px/1 var(--sans); white-space: nowrap; }
.ar__txt p { color: var(--ink-2); margin: 0; font-size: 15px; }
@media (max-width: 980px) { .deliv__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ar { grid-template-columns: 1fr; justify-items: center; text-align: left; } .ar__phone { width: 190px; } .ar__txt { justify-self: stretch; } }

.foot { background: var(--ink); color: rgba(255,255,255,.62); font-size: 13.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; padding-top: 34px; padding-bottom: 34px; }
.foot .logo { color: #fff; }
.foot p { margin: 0; max-width: 60ch; }
.foot__by a { color: #fff; }

/* mini cart */
.mini { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: flex; align-items: center; gap: 12px; border: 0; padding: 8px 8px 8px 10px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 20px 44px -18px rgba(30,20,12,.7); transform: translateY(120%); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.mini.is-on { transform: none; opacity: 1; }
.mini__ic { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); }
.mini__ic svg { width: 20px; height: 20px; }
.mini__ic b { position: absolute; right: -3px; top: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 11px/19px var(--sans); text-align: center; }
.mini__t { display: grid; text-align: left; line-height: 1.2; }
.mini__t small { font-size: 11.5px; color: rgba(255,255,255,.66); }
.mini__t small::after { content: ' · доставка перевізником'; }
.mini__t b { font: 600 16px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.mini__go { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.mini__go svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .mini { left: 10px; right: 10px; bottom: 10px; } .mini__t { flex: 1; } .mini__t small::after { content: ''; } }

.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(30,22,16,.4); opacity: 0; transition: opacity .4s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--paper); transform: translateX(100%); transition: transform .5s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font: 400 28px/1 var(--sans); letter-spacing: -.03em; margin: 0; }
.x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sand); display: grid; place-items: center; }
.x svg { width: 18px; height: 18px; }
.drawer__list { flex: 1; overflow-y: auto; padding: 6px 22px; }
.line { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 74px; height: 58px; object-fit: cover; border-radius: 8px; background: var(--sand); }
.line b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.line small { display: block; font-size: 12px; color: var(--muted); }
.line__q { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.line__q button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--sand); display: grid; place-items: center; }
.line__q button svg { width: 13px; height: 13px; }
.line__q span { min-width: 18px; text-align: center; font-weight: 600; font-size: 14px; }
.line__p { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.drawer__empty { padding: 40px 0; text-align: center; color: var(--muted); }
.drawer__foot { padding: 14px 22px 20px; border-top: 1px solid var(--line); background: var(--bg); }
.ship { margin: 0 0 10px; padding: 0; border: 0; display: grid; gap: 6px; }
.ship legend { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ship label { position: relative; display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 13.5px; }
.ship label:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--accent); }
.ship input { accent-color: var(--accent); margin: 0; }
.ship b { font-weight: 600; display: block; line-height: 1.2; }
.ship small { color: var(--muted); font-size: 11.5px; }
.ship em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.totals { display: grid; gap: 4px; margin: 12px 0 14px; font-size: 13.5px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { margin-top: 6px; font: 600 20px/1.2 var(--sans); }
.drawer__fine { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; }
@media (max-height: 760px) { .ship small { display: none; } .ship label { padding: 7px 12px; } }

.toast { position: fixed; left: 50%; top: 84px; z-index: 95; transform: translate(-50%, -20px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 13.5px/1.2 var(--sans); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
html.rm .rv, html:not(.js) .rv { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }
