/* CC #24385 item_154 (Ivan card 25fe9893): the 'Bento+' homepage. Loaded only by index.html (build.cjs homeBento),
   scoped under body.hb so no other page changes. Type: Bricolage Grotesque for display, Inter (shop.css) for text.
   Accent stays the shop's --accent; motion: transform/opacity only, reduced-motion respected. */
@font-face { font-family: 'Bricolage Grotesque'; src: url(fonts/bricolagegrotesque.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
body.hb { --hb-bg: #eceef1; --hb-card: #fff; --hb-ink: #0f1113; --hb-mute: #62676f; --hb-r: 26px; background: var(--hb-bg); }
.hb .hb-disp { font-family: 'Bricolage Grotesque', var(--font); font-weight: 800; letter-spacing: -.04em; }
.hb-wrap { max-width: 1320px; margin: 0 auto; padding: calc(80px + var(--safe-t, 0px)) 10px 110px; }
.hb-t { background: var(--hb-card); border-radius: var(--hb-r); overflow: hidden; position: relative; display: block; }
.hb-t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-photo img, .hb-wall img { position: absolute; inset: 0; }
.hb .btn svg { width: 20px; height: 20px; flex: none; }
.hb-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hb-hero { grid-column: span 2; background: var(--hb-ink); color: #fff; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.hb-k { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: #b9bec6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; }
.hb-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hb-hero h1 { font-size: clamp(46px, 13vw, 96px); line-height: .9; margin: 16px 0 0; }
.hb-hero h1 span { color: var(--accent); }
.hb-hero p { color: #b9bec6; font-size: 16px; max-width: 30em; margin: 16px 0 0; }
.hb-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hb-ctas .btn { flex: 1 1 auto; white-space: nowrap; }
.hb .hb-ghost { background: rgba(255,255,255,.12); color: #fff; }
.hb .hb-dark { background: var(--hb-ink); color: #fff; }
.hb-photo { grid-column: span 2; aspect-ratio: 1 / 1; background: #f3f1ec; }
.hb-glass { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: rgba(255,255,255,.58); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); border: 1px solid rgba(255,255,255,.75); font-size: 14px; color: var(--hb-ink); }
.hb-glass b { display: block; }
.hb-go { background: var(--hb-ink); color: #fff; border-radius: 11px; padding: 9px 14px; font-weight: 600; white-space: nowrap; }
.hb-trust { padding: 14px 14px 16px; display: grid; grid-template-rows: auto 1fr auto; gap: 4px; color: var(--hb-ink); transition: transform .2s ease-out; }
.hb-trust img { width: 76px; height: 76px; object-fit: contain; margin: -4px 0 2px -6px; }
.hb-trust b { font-size: 24px; line-height: 1; }
.hb-trust span { color: var(--hb-mute); font-size: 13px; }
.hb-trust.hb-o { background: linear-gradient(160deg, #fff 55%, #fff1e8); }
.hb-sec { margin: 40px 4px 14px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
/* shop.css Kompakt sets h2 { font-size: 22px !important } for every page; the home display type overrides it here only */
.hb h2.hb-disp { font-size: clamp(34px, 8vw, 56px) !important; line-height: .95 !important; margin: 0; }
.hb-wrap section { padding: 0; }
.hb .btn { height: 50px; padding: 0 22px; white-space: nowrap; }
.hb-sec a { color: var(--hb-mute); white-space: nowrap; }
.hb-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -10px 14px; padding: 0 10px 2px; scrollbar-width: none; }
.hb-chips::-webkit-scrollbar { display: none; }
.hb-chips a { font: 700 15px 'Bricolage Grotesque', var(--font); padding: 9px 18px; border-radius: 999px; background: #fff; white-space: nowrap; }
.hb-chips a.on { background: var(--hb-ink); color: #fff; }
.hb .hb-grid { gap: 10px; }
.hb .hb-grid .card { border-radius: 22px; box-shadow: none; }
.hb-edge { position: relative; margin-top: 40px; border-radius: 24px; overflow: hidden; height: 520px; }
.hb-edge > img { width: 100%; height: 100%; object-fit: cover; }
.hb-ov { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.75); border-radius: 22px; padding: 22px; color: var(--hb-ink); }
.hb .hb-ov h2.hb-disp { font-size: clamp(28px, 6vw, 46px) !important; }
.hb-ov ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.hb-ov li::before { content: "→ "; color: var(--accent); font-weight: 700; }
.hb-b2 { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.hb-wall { aspect-ratio: 4 / 3; }
.hb-sz { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; color: var(--hb-ink); }
.hb-sz p { color: var(--hb-mute); margin: 8px 0 0; }
.hb-rows { display: grid; gap: 10px; }
.hb-rows a { display: flex; justify-content: space-between; align-items: center; background: var(--hb-bg); border-radius: 15px; padding: 14px 18px; }
.hb-rows b { font: 800 22px 'Bricolage Grotesque', var(--font); }
.hb-rows span { color: var(--hb-mute); font-size: 14px; }
.hb-own { background: var(--accent); display: grid; grid-template-columns: 1fr; color: #1b0a00; }
.hb-own img { aspect-ratio: 4 / 3; }
.hb-x { padding: 28px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hb .hb-own h2.hb-disp { font-size: clamp(44px, 10vw, 84px) !important; color: #1b0a00; }
.hb-own p { font-size: 18px; margin: 12px 0 22px; }
.hb-steps { display: grid; gap: 10px; }
.hb-steps .hb-t { padding: 22px; }
.hb-steps b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: 10px; }
.hb-steps h3 { font-size: 19px; margin: 0 0 6px; }
.hb-steps p { margin: 0; color: var(--hb-mute); }
.hb-faq { display: grid; gap: 10px; }
.hb-faq details { background: var(--hb-card); border-radius: 20px; padding: 18px 22px; }
.hb-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font-weight: 650; }
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.hb-faq details[open] summary::after { content: "–"; }
.hb-faq p { color: var(--hb-mute); margin: 8px 0 0; }
.hb-wrap .hb-close { margin-top: 40px; background: var(--hb-ink); color: #fff; border-radius: 24px; padding: 36px 24px; display: grid; gap: 24px; }
.hb .hb-close h2.hb-disp { font-size: clamp(44px, 10vw, 84px) !important; margin-bottom: 24px; }
.hb-close .hero-assure { display: grid; gap: 10px; color: #b9bec6; font-weight: 500; }
.hb-close h2 + p { color: #d6d9de; margin: -8px 0 24px; max-width: 40ch; font-size: 17px; line-height: 1.5; }
.hb-close .hero-assure li::before { color: var(--accent); }
@media (hover: hover) { .hb-trust:hover { transform: translateY(-3px); } }
@media (min-width: 760px) {
  .hb-wrap { padding: calc(84px + var(--safe-t, 0px)) 20px 64px; }
  .hb-bento { grid-template-columns: repeat(12, 1fr); gap: 14px; }
  .hb-hero { grid-column: span 7; min-height: 600px; padding: 48px; }
  .hb-hero p { font-size: 18px; }
  .hb-ctas .btn { flex: 0 0 auto; }
  .hb-photo { grid-column: span 5; aspect-ratio: auto; min-height: 600px; }
  .hb-trust { grid-column: span 3; padding: 22px 22px 24px; }
  .hb-trust img { width: 112px; height: 112px; }
  .hb-trust b { font-size: 34px; }
  .hb-trust span { font-size: 14px; }
  .hb-sec { margin: 64px 4px 20px; }
  .hb-chips { flex-wrap: wrap; overflow: visible; margin: 0 0 18px; padding: 0; }
  .hb .hb-grid { gap: 14px; }
  .hb-edge { height: 640px; margin-top: 64px; border-radius: 32px; }
  .hb-ov { left: auto; right: 28px; bottom: 28px; max-width: 460px; padding: 30px; }
  .hb-b2 { grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 14px; }
  .hb-wall { grid-column: span 7; aspect-ratio: auto; min-height: 440px; }
  .hb-sz { grid-column: span 5; padding: 34px; }
  .hb-own { grid-column: span 12; grid-template-columns: 1.05fr 1fr; min-height: 420px; }
  .hb-own img { aspect-ratio: auto; height: 100%; min-height: 420px; }
  .hb-x { padding: 48px; }
  .hb-steps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hb-faq { grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .hb-wrap .hb-close { margin-top: 64px; padding: 72px; border-radius: 32px; grid-template-columns: 1.3fr 1fr; align-items: center; }
}
/* CC #24385 item_154 after-grade 02.11: on the phone the fixed tab bar covered the hero card's caption + 'Ansehen' on the first screen; the caption sits at the top of the photo there */
@media (max-width: 759px) { .hb-glass { top: 12px; bottom: auto; } }
@media (prefers-reduced-motion: reduce) { .hb-trust { transition: none; } .hb-trust:hover { transform: none; } }
/* ── CC #24385 item_157 (Ivan 02.11 17:21Z): the stage — a turnable 3D board with the printed back, a motif row, an own-photo row ── */
.hb-stage { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: radial-gradient(120% 90% at 50% 12%, #fbf8f3 0%, #efe8de 60%, #e4dacc 100%); }
.hs-view { position: relative; flex: 1 1 auto; min-height: 340px; aspect-ratio: 1 / 1.02; display: grid; place-items: center; perspective: 1600px; perspective-origin: 50% 40%;
  touch-action: pan-y pinch-zoom; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hb-stage.is-turning .hs-view { cursor: grabbing; }
.hs-view img, .hs-slab, .hs-slab * { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.hs-slab { position: relative; width: 58%; aspect-ratio: 420 / 594; transform-style: preserve-3d; transform: rotateX(6deg) rotateY(-24deg); will-change: transform; --t: 8px; }
.hs-slab > * { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hs-front { inset: 0; transform: translateZ(calc(var(--t) / 2)); overflow: hidden; background: #e6d6bd; }
.hs-front img, .hs-front canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .18s ease; }
.hs-own { opacity: 0; }
.hb-stage.own-on .hs-own { opacity: 1; } .hb-stage.own-on .hs-face { opacity: 0; }
.hb-stage.is-swapping .hs-face { opacity: 0; }
.hs-sheen { position: absolute; inset: -60%; mix-blend-mode: soft-light; background: linear-gradient(115deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 58%); will-change: transform; }
.hs-back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: #d6b98f; overflow: hidden; }
.hs-back img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-e { display: none; background-color: #3d2618; }
.hb-stage.is-3d .hs-e { display: block; }
.hs-e-l, .hs-e-r { top: 0; height: 100%; width: var(--t); left: calc(50% - var(--t) / 2); background: #3d2618 url(/img/studio/ply-dark-v.jpg) 0 0 / 100% auto repeat-y; }
.hs-e-t, .hs-e-b { left: 0; width: 100%; height: var(--t); top: calc(50% - var(--t) / 2); background: #3d2618 url(/img/studio/ply-dark-h.jpg) 0 0 / auto 100% repeat-x; }
.hs-e-r { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.9); }
.hs-e-l { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.72); }
.hs-e-t { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); filter: brightness(1.06); }
.hs-e-b { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); filter: brightness(.66); }
.hs-shadow { position: absolute; left: 50%; top: 50%; width: 58%; aspect-ratio: 420 / 594; translate: -50% -50%; border-radius: 4px; background: rgba(48,30,16,.40); filter: blur(16px); pointer-events: none; will-change: transform; transform: translate(10px, 24px) scale(.95); }
.hs-hint { position: absolute; left: 50%; bottom: 6px; translate: -50% 0; font: 500 12px/1 var(--font, system-ui); color: rgba(22,24,27,.62); padding: 7px 11px; border-radius: 999px;
  background: rgba(255,253,249,.7); border: 1px solid rgba(0,0,0,.06); transition: opacity .4s; pointer-events: none; opacity: 0; }
.hb-stage.is-3d .hs-hint { opacity: 1; } .hb-stage.was-turned .hs-hint, .hb-stage.is-turning .hs-hint { opacity: 0; }
.hs-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.86); border: 1px solid rgba(0,0,0,.05); }
.hs-cap b { display: block; font-size: 15px; } .hs-cap span span { font-size: 14px; color: #4a4f57; }
.hs-motifs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.hs-motifs::-webkit-scrollbar { display: none; }
.hs-motifs button { flex: 0 0 auto; width: 46px; aspect-ratio: 420 / 594; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #e6d6bd; cursor: pointer; box-shadow: 0 2px 6px rgba(40,25,10,.18); transition: transform .2s, border-color .2s; }
.hs-motifs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-motifs button[aria-pressed="true"] { border-color: var(--accent); transform: translateY(-2px); }
.hs-motifs button:focus-visible { outline: 2px solid var(--hb-ink, #16181b); outline-offset: 2px; }
.hs-ownrow { display: grid; gap: 8px; }
.hs-pick { width: 100%; justify-content: center; background: var(--hb-ink, #16181b); color: #fff; }
.hb-stage.is-loading .hs-pick { opacity: .6; pointer-events: none; }
.hs-buy { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.hs-buy[hidden] { display: none; }
.hs-sizes { display: flex; gap: 4px; }
.hs-sizes button { min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(0,0,0,.12); background: #fff; font-weight: 600; cursor: pointer; }
.hs-sizes button[aria-pressed="true"] { background: var(--hb-ink, #16181b); color: #fff; border-color: transparent; }
.hs-buy [data-hs-add] { justify-content: center; }
.hs-buy a, .hs-quality { grid-column: 1 / -1; font-size: 13px; }
.hs-buy a { color: #4a4f57; text-decoration: underline; }
.hs-quality.q-good { color: #2f6b45; } .hs-quality.q-ok { color: #8a6a1f; } .hs-quality.q-low { color: #a33b2b; }
@media (min-width: 760px) {
  .hb-stage { grid-column: span 5; min-height: 600px; padding: 16px; }
  .hs-view { aspect-ratio: auto; min-height: 380px; }
  .hs-motifs button { width: 52px; }
}
@media (prefers-reduced-motion: reduce) { .hs-front img, .hs-front canvas { transition: none; } }
/* CC #24385 item_157 (Ivan 02.11 19:18Z, iPhone: "по краях трішечки пікселить"): a 3D-transformed layer's own outer edge is not
   antialiased in WebKit/Blink, only edges inside its texture are. A transparent outline grows each face's layer by 1 px without
   moving anything, so the visible edge is drawn inside the texture and filtered. */
.hs-slab > * { outline: 1px solid transparent; }
/* CC #24385 item_157 (Ivan 19:27Z): the WebGL board (home-stage.js) replaces the CSS slab where WebGL2 runs; the CSS slab is the fallback */
.hs-gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hb-stage.gl-on .hs-slab { visibility: hidden; }
/* runtime gate RT-OVERLAY (02.11 1912/1930 FAIL on / only): the sheen layer (inset -60%) reads as content past the 390 px viewport;
   the WebGL board lights the wood itself, so the CSS fallback goes without the sheen */
.hs-sheen { display: none; }
