/**
 * Будинок Затишку — home page ("Home Experimental" design).
 *
 * The page opens on a full-viewport muted looping video; the global header
 * rides transparently over it, slides away as the video scrolls out, then
 * drops back in as a compact cream bar. Everything below the hero is the
 * cream canvas: category circles, collections mosaic, shop-the-look
 * collage, individual-projects CTA, service cards, manufacturer logo wall,
 * recently viewed, articles.
 *
 * The header/utility-bar/catnav overrides that only apply while the video
 * hero is on the page live in chrome.css (they restyle global chrome, so
 * they belong next to it), keyed off body.bz-home-hero.
 */

/* ============================================================
   Full-bleed video hero
   ============================================================ */

/* The hero must start at y=0 of the document: on the home page the header
   is taken out of flow (chrome.css) and the utility bar / catnav are
   hidden, so the only thing left to neutralise is the grid's own top
   spacing. */
body.bz-home-hero .site-grid { margin-top: 0; padding-top: 0; row-gap: 0; }
body.bz-home-hero .container-component { padding-top: 0; margin-top: 0; }
body.bz-home-hero .container-component > main { margin-top: 0; }
/* .bz-vhero escapes its container with 100vw + a negative margin; on a page
   with a scrollbar 100vw is wider than the content box, so clip the
   overflow it would otherwise create. */
body.bz-home-hero { overflow-x: hidden; }

/* The hero is never left half-scrolled: once the visitor stops scrolling
   inside it, home.js settles the page either fully past the video or back
   to the top, depending on how far they got. That's done in JS rather than
   with CSS scroll-snap because the cut-over point is a specific fraction of
   the hero (browser proximity snapping picks its own), and it runs on
   scroll-END so it never intercepts the scroll itself. */

.bz-vhero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 100vh;
  /* svh keeps the hero exactly one screen tall on mobile browsers whose
     toolbars shrink the viewport mid-scroll (vh there is the *large*
     viewport, which would push the CTAs under the chrome). */
  height: 100svh;
  overflow: hidden;
  background: #1c150f;
  display: block;
  /* The hero's type and spacing follow the window HEIGHT as well as its width
     (owner, 2026-10-31): in a short window the copy block, anchored to the
     bottom, used to grow upwards until the eyebrow was off-screen and the
     slogan sat under the fixed header. --bz-h is one percent of the height
     the hero really has (svh where known, so a phone toolbar does not matter);
     every size below is min(width-based, height-based), so a tall window looks
     as before and a short one scales the whole block down. --bz-hero-pb is the
     gap under the buttons; the scroll hint uses the same value. */
  --bz-h: 1vh;
  --bz-hero-pb: clamp(24px, calc(var(--bz-h) * 5), 64px);
}
@supports (height: 1svh) { .bz-vhero { --bz-h: 1svh; } }

.bz-vhero__media { position: absolute; inset: 0; overflow: hidden; }
/* The poster <img> sits under the video (painted first: positioned, z-index auto, earlier in the
   DOM) and shows until the clip has a frame; the video is transparent before that. */
.bz-vhero__poster,
.bz-vhero__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bz-vhero__video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bz-vhero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 21, 15, .55) 0%, rgba(28, 21, 15, .25) 42%, rgba(28, 21, 15, .78) 100%);
}

/* Slogan banner, top-right over the video. Sits clear of the fixed
   header rather than at the literal corner, which the header occupies. */
.bz-vhero__slogan-wrap {
  position: absolute;
  top: clamp(86px, 11vh, 132px);
  right: var(--bz-gutter);
  z-index: 4;
}
.bz-vhero__slogan {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  text-align: right;
  max-width: min(42vw, 440px);
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(28, 21, 15, .38);
  border: 1px solid rgba(255, 253, 249, .26);
  backdrop-filter: blur(10px);
}
.bz-vhero__slogan-main {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(16px, 1.7vw, 25px);
  line-height: 1.25;
  color: var(--c-card);
}
/* Hidden for the tail of each loop of the clip, then faded back in when it
   restarts — see the clip-fade section of home.js. This is the hero's ONLY
   fade: the scroll-driven one that used to dissolve the whole copy block on
   its way out was removed (owner, 2026-07-29) as two overlapping motions
   reading as a glitch. Still applied to the inner elements rather than their
   wrappers, so nothing here depends on that having been the case. */
.bz-vhero__eyebrow,
.bz-vhero__slogan,
.bz-vhero__title,
.bz-vhero__kw { transition: opacity .7s ease; }
.bz-vhero__eyebrow.is-clip-out,
.bz-vhero__slogan.is-clip-out,
.bz-vhero__title.is-clip-out,
.bz-vhero__kw.is-clip-out { opacity: 0; }

.bz-vhero__slogan-sub {
  font-size: clamp(10px, .95vw, 13px);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-pillow);
}

.bz-vhero__copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 var(--bz-gutter) var(--bz-hero-pb);
}
/* Same dark glass treatment as the slogan and scroll-hint pills. A pale
   tint on a light wash was close to invisible over bright footage — the
   video's own brightness varies frame to frame, so the overlay chrome
   carries its own contrast rather than relying on the scrim. */
.bz-vhero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(28, 21, 15, .42);
  border: 1px solid rgba(255, 253, 249, .3);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: clamp(6px, calc(var(--bz-h) * 1), 9px) 18px;
  font-size: clamp(9px, min(.85vw, calc(var(--bz-h) * 1.4)), 12px);
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--c-card);
}
/* The slogan in display type; a <div>, not a heading (the H1 below it is). */
.bz-vhero__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(26px, min(6vw, calc(var(--bz-h) * 10)), 86px);
  line-height: 1.05;
  color: var(--c-card);
  margin: clamp(8px, calc(var(--bz-h) * 2.4), 22px) 0 0;
  max-width: 16ch;
}
/* The keyword H1: a subtitle under the slogan, in the heading face. */
.bz-vhero__copy h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(12px, min(1.75vw, calc(var(--bz-h) * 2.9)), 26px);
  line-height: 1.3;
  color: var(--c-card);
  margin: clamp(6px, calc(var(--bz-h) * 1.8), 16px) 0 0;
  max-width: 56ch;
}
.bz-vhero__copy p {
  font-size: clamp(11px, min(1.4vw, calc(var(--bz-h) * 2.3)), 20px);
  line-height: 1.5;
  color: rgba(255, 253, 249, .86);
  margin: clamp(6px, calc(var(--bz-h) * 1.6), 14px) 0 0;
  max-width: 52ch;
}
.bz-vhero__ctas { display: flex; gap: 13px; margin-top: clamp(12px, calc(var(--bz-h) * 2.9), 26px); flex-wrap: wrap; }
.bz-vhero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-ginger);
  color: var(--c-card);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(11px, min(1.05vw, calc(var(--bz-h) * 1.7)), 15px);
  padding: clamp(9px, calc(var(--bz-h) * 1.8), 16px) clamp(20px, calc(var(--bz-h) * 3.6), 32px);
  border: 1.5px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.bz-vhero__cta:hover { background: #d0731a; color: var(--c-card); }
.bz-vhero__cta--ghost {
  background: none;
  border-color: rgba(255, 253, 249, .62);
  color: var(--c-card);
}
.bz-vhero__cta--ghost:hover { background: rgba(255, 253, 249, .14); color: var(--c-card); }

/* Absolute inside .bz-vhero__copy (its containing block), so it sits over
   the video without joining the copy's flex column.

   Bare text with a bobbing arrow, exactly as the design draws it — no
   pill, no border, no blur (owner, 2026-07-29). It carried a glass pill
   for a while, on the reasoning that plain small text at the frame's edge
   reads as decoration; the design's own answer to that is the motion, not
   a container, and the pill competed with the eyebrow and slogan pills for
   the same visual weight.

   Sits on the CTA row's own line, mirrored to the right edge: the offsets
   below are deliberately the SAME clamp()s as .bz-vhero__copy's padding —
   `bottom` matches its padding-bottom, so the hint's bottom edge lands on
   the buttons' bottom edge, and `right` matches its padding-left, so its
   inset from the right equals the buttons' inset from the left. Because
   .bz-vhero__copy is the containing block (and has no border), these
   resolve against the viewport edges just as its padding does. Keep the
   three values in sync if the padding moves. */
.bz-vhero__hint {
  position: absolute;
  right: var(--bz-gutter);
  bottom: var(--bz-hero-pb);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  padding: 0;
  color: rgba(255, 253, 249, .85);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  cursor: pointer;
  transition: color .2s ease;
}
.bz-vhero__hint:hover { color: var(--c-card); }
.bz-vhero__hint-arrow { font-size: 18px; line-height: 1; animation: bzHintBob 1.8s ease-in-out infinite; }
.bz-vhero__hint-mobile { display: none; }
@keyframes bzHintBob {
  0%, 100% { transform: translateY(0); opacity: .85; }
  50%      { transform: translateY(7px); opacity: 1; }
}
@keyframes bzHintBobUp {
  0%, 100% { transform: translateY(0); opacity: .85; }
  50%      { transform: translateY(-7px); opacity: 1; }
}

/* Motion-sensitive visitors get the poster frame and a static hero. */
@media (prefers-reduced-motion: reduce) {
  .bz-vhero__hint-arrow { animation: none; }
}

/* ============================================================
   Section furniture (shared by every block below the hero)
   ============================================================ */

.bz-section { padding: var(--space-6) 0; }

/* Height of the fixed chrome once the landing has handed over — the utility
   bar plus the compact header. Measured on the real page in that exact
   state, not guessed: 34 + 60. Anything that has to sit clear of the header
   keys off this, so it must stay the TRUE height — landingY() in home.js
   adds its own 1px of overlap rather than padding this number out. */
body.bz-home-hero { --bz-chrome-h: 94px; }

/* The header is fixed on this page, so an in-page anchor (the hero's
   "Колекції для натхнення" button) would otherwise land with the section
   heading tucked underneath it. */
body.bz-home-hero .bz-section[id] { scroll-margin-top: var(--bz-chrome-h); }

/* The hero's own settle does NOT get its clearance from padding here, and
   deliberately so — this was tried twice and reverted both times. Padding
   lives at the top of the section, which for the whole trip down is in the
   middle of the viewport, nowhere near the bar meant to be filling it: the
   video leaves and a tall empty band crosses the screen before the heading
   shows up. It only lines up behind the bar at the final resting position.
   home.js's landingY() stops the scroll a chrome's height short instead, so
   the content sits hard up under the bar the whole way and no space is
   reserved in the layout at all. */
.bz-section__title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.bz-section__title h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.2;
}
.bz-section__eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #b5713f;
  margin-bottom: 6px;
}
.bz-section__title .bz-btn--link,
.bz-section__link {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--c-stock);
  text-decoration: none;
  white-space: nowrap;
}
.bz-section__link:hover { color: var(--c-ginger); }

/* ============================================================
   Categories — circles, six across, full container width
   ============================================================ */

.bz-circles {
  display: grid;
  grid-template-columns: repeat(var(--bz-circles-count, 6), minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 30px);
  text-align: center;
}
.bz-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, .8vw, 14px);
  text-decoration: none;
  color: inherit;
}
.bz-circle__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-card);
  border: 4px solid var(--c-card);
  box-shadow: 0 4px 16px rgba(58, 44, 32, .14);
  display: block;
  transition: box-shadow .35s ease, transform .35s cubic-bezier(.22, .61, .36, 1);
}
.bz-circle__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  transform: scale(1);
}
.bz-circle:hover .bz-circle__media,
.bz-circle:focus-visible .bz-circle__media { box-shadow: 0 12px 30px rgba(58, 44, 32, .22); }
.bz-circle:hover .bz-circle__media img,
.bz-circle:focus-visible .bz-circle__media img { transform: scale(1.1); }
.bz-circle__name { font-weight: 700; color: var(--c-coffee); font-size: clamp(13px, 1.05vw, 17px); }
.bz-circle__count { color: var(--c-muted); font-size: clamp(11px, .85vw, 13.5px); }

/* Staggered reveal as the circles scroll into view (home.js adds
   .is-revealed once each one crosses the viewport edge). */
.bz-reveal { opacity: 0; transform: translateY(26px); }
.bz-reveal.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.22, .7, .2, 1), transform .7s cubic-bezier(.22, .7, .2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .bz-reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Collections mosaic
   ============================================================ */

.bz-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(140px, 13vw, 210px);
  gap: var(--space-3);
}
.bz-mosaic__tile {
  position: relative;
  grid-column: span 1;
  grid-row: span 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--c-pillow);
  text-decoration: none;
  display: block;
}
.bz-mosaic__tile--wide { grid-column: span 2; grid-row: span 2; }
.bz-mosaic__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.bz-mosaic__tile:hover .bz-mosaic__bg { transform: scale(1.06); }
.bz-mosaic__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 45, 40, 0) 45%, rgba(42, 45, 40, .82) 100%);
}
.bz-mosaic__copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
}
.bz-mosaic__name { font-family: var(--font-heading); font-weight: 600; font-size: 17px; color: var(--c-card); display: block; }
.bz-mosaic__tile--wide .bz-mosaic__name { font-size: clamp(19px, 1.8vw, 26px); }
.bz-mosaic__count { font-size: 11px; color: var(--c-line); display: block; }
.bz-mosaic__tile--wide .bz-mosaic__count { font-size: 12.5px; }
.bz-mosaic__arrow { color: var(--c-ginger); font-weight: 800; font-size: 17px; flex: none; }

/* Dark promo tile — copy only, no photo. */
.bz-mosaic__tile--promo {
  grid-column: span 2;
  background: var(--c-coffee);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: var(--space-5);
}
.bz-mosaic__promo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: .14em;
  color: var(--c-card);
}
.bz-mosaic__promo-text { font-size: 12.5px; color: #c8bfae; max-width: 340px; line-height: 1.5; }
.bz-mosaic__promo-cta { color: var(--c-ginger); font-weight: 800; font-size: 14px; }

/* ============================================================
   Individual projects CTA
   ============================================================ */

.bz-projects {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4);
}
.bz-projects__card {
  background: var(--c-coffee);
  border-radius: 18px;
  padding: clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}
.bz-projects__eyebrow { font-size: 11px; font-weight: 800; color: #f3c88f; letter-spacing: .12em; }
.bz-projects__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--c-card);
  line-height: 1.25;
  margin: 0;
}
.bz-projects__text { font-size: 13.5px; color: #c8bfae; line-height: 1.55; }
.bz-projects__btn {
  align-self: flex-start;
  background: var(--c-ginger);
  color: var(--c-card);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: 12px;
  margin-top: var(--space-1);
  cursor: pointer;
  text-decoration: none;
}
.bz-projects__btn:hover { background: #d0731a; color: var(--c-card); }
/* Right-hand panel: three real numbers rather than a stock photo. */
.bz-projects__stats {
  border-radius: 18px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  overflow: hidden;
  min-height: 230px;
}
.bz-projects__stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--c-line);
}
.bz-projects__stat:last-child { border-bottom: none; }
.bz-projects__stat b {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--c-coffee);
  line-height: 1.1;
}
.bz-projects__stat span { font-size: 12.5px; color: var(--c-muted); }

/* ============================================================
   Service cards (delivery / instalments / warranty / assembly)
   ============================================================ */

.bz-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}
.bz-service {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: var(--space-4) var(--space-5);
}
a.bz-service--link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.bz-service--link:hover, a.bz-service--link:focus-visible { border-color: var(--c-text); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.bz-service b { display: block; font-weight: 700; font-size: 14px; color: var(--c-text); }
.bz-service span { display: block; font-size: 12px; color: var(--c-muted); margin-top: 3px; line-height: 1.45; }

/* ============================================================
   Manufacturers — logo wall
   ============================================================ */

.bz-logowall {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-auto-rows: clamp(58px, 5vw, 90px);
  /* dense: the wall mixes 1×1, 2×1, 1×2 and 2×2 cells, and without dense
     packing the odd spans leave holes wherever the next logo doesn't fit
     the remaining gap. */
  grid-auto-flow: row dense;
  gap: 10px;
}
.bz-logowall__cell {
  background: var(--c-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.bz-logowall__cell:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.bz-logowall__cell img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
/* Short catalogue: no mixed cell sizes, just an even wall that always fills
   its last row (see the count check in the home page override). */
.bz-logowall--even {
  grid-template-columns: repeat(auto-fill, minmax(clamp(110px, 9vw, 170px), 1fr));
}
.bz-logowall__cell--2x2 { grid-column: span 2; grid-row: span 2; }
.bz-logowall__cell--2x1 { grid-column: span 2; }
.bz-logowall__cell--1x2 { grid-row: span 2; }

/* ============================================================
   Recent articles
   ============================================================ */

.bz-articles-home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.bz-article-card {
  display: flex;
  flex-direction: column;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s ease;
}
.bz-article-card:hover { box-shadow: var(--shadow-card); }
.bz-article-card__media { aspect-ratio: 16 / 9; background: var(--c-bg); display: block; }
.bz-article-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-article-card__body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 5px; }
.bz-article-card__meta {
  font-size: 10px;
  font-weight: 800;
  color: var(--c-ginger);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bz-article-card__title { font-weight: 700; font-size: 14px; color: var(--c-text); line-height: 1.4; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1199px) {
  .bz-circles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bz-logowall { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  /* SHORTER chrome at this width, not taller. Two mobile-only changes on
     2026-07-29 cut it from 147px to 58px, and this number has to be
     re-measured whenever either of them moves — it is what stops the
     landing scroll short, so when it is wrong the video keeps a strip on
     screen and "Оберіть кімнату" is pushed that far down the viewport:
       - the utility bar no longer shows on phones at all, so it
         contributes 0 instead of 34 (--bz-utility-h measures to 0 and the
         header stacks from the very top);
       - the header search is hidden until asked for, so the header no
         longer wraps it onto a second row — 58 instead of 113.
     Measured on the real page in the stuck state at 375px, header bottom
     edge = 58.0. landingY() adds its own 1px of overlap, so this stays the
     TRUE height and must not be padded out here. */
  body.bz-home-hero { --bz-chrome-h: 58px; }
  .bz-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 128px; }
  .bz-mosaic__tile--wide { grid-column: span 2; grid-row: span 2; }
  .bz-mosaic__tile--promo { grid-column: span 2; grid-row: span 1; }
  .bz-projects { grid-template-columns: 1fr; }
  .bz-projects__stats { min-height: 0; grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .bz-projects__stat { border-bottom: none; border-right: 1px solid var(--c-line); text-align: center; align-items: center; }
  .bz-projects__stat:last-child { border-right: none; }
  .bz-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bz-logowall { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 52px; gap: 7px; }
  .bz-logowall__cell { border-radius: 9px; padding: 7px; }
  /* Mixed spans stop reading as a wall once the grid narrows — even it out. */
  .bz-logowall__cell--1x2 { grid-row: span 1; }
  .bz-logowall__cell--2x2 { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 767px) {
  .bz-section { padding: var(--space-5) 0; }
  .bz-circles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 9px; }
  .bz-circle__media { border-width: 3px; box-shadow: 0 3px 10px rgba(58, 44, 32, .15); }
  .bz-circle__name { font-size: 12px; }
  .bz-circle__count { font-size: 10px; }
  /* Breathing room only. This used to be 34px + the 56px of fixed bottom
     nav that sat on top of the hero at this width; the nav is now held
     back until the landing is swiped out (see chrome.css), so that 56px
     is the hero's again and the copy block drops into it. */
  .bz-vhero__copy { padding-bottom: 26px; align-items: stretch; }
  /* The eyebrow spells out the full "N років · N фабрик · 100 тис …"
     line, which is far too long for one phone-width row — let it wrap
     inside its pill instead of overflowing. */
  .bz-vhero__eyebrow {
    align-self: stretch;
    justify-content: center;
    text-align: center;
    font-size: 9px;
    line-height: 1.5;
    padding: 8px 14px;
    border-radius: 14px;
  }
  .bz-vhero__slogan-wrap {
    top: 64px;
    right: 14px;
    max-width: 64vw;
  }
  .bz-vhero__slogan {
    padding: 11px 14px;
    border-radius: 13px;
    gap: 3px;
  }
  .bz-vhero__slogan-main { font-size: 15px; }
  .bz-vhero__slogan-sub { font-size: 9px; }
  /* Same rule as on desktop: the sizes follow the height too (a short phone,
     iPhone SE at 667px, or a phone turned sideways), so the block never
     climbs under the slogan pill or the header. */
  .bz-vhero__title { font-size: clamp(22px, min(10.5vw, calc(var(--bz-h) * 5)), 44px); margin-top: clamp(6px, calc(var(--bz-h) * 1.6), 14px); max-width: 14ch; }
  .bz-vhero__copy h1 { font-size: clamp(11px, min(15.5px, calc(var(--bz-h) * 2.2)), 15.5px); margin-top: clamp(5px, calc(var(--bz-h) * 1.2), 10px); max-width: 34ch; }
  .bz-vhero__copy p { font-size: clamp(10.5px, min(13.5px, calc(var(--bz-h) * 1.8)), 13.5px); margin-top: clamp(5px, calc(var(--bz-h) * 1.2), 10px); max-width: 34ch; }
  .bz-vhero__ctas { flex-direction: column; align-self: stretch; gap: 8px; margin-top: clamp(10px, calc(var(--bz-h) * 2.1), 18px); }
  .bz-vhero__cta { width: 100%; padding: clamp(9px, calc(var(--bz-h) * 1.8), 15px) 0; border-radius: 13px; }
  /* On a phone the hint belongs under the buttons, not pinned to a corner
     where the thumb never looks. */
  .bz-vhero__hint {
    position: static;
    align-self: center;
    flex-direction: column;
    gap: 3px;
    margin-top: 16px;
  }
  .bz-vhero__hint-arrow { font-size: 20px; }
  /* Swiping up is what scrolls down on a phone — say that, and bob the
     arrow along the gesture rather than the page direction. */
  .bz-vhero__hint-desktop { display: none; }
  .bz-vhero__hint-mobile { display: inline; }
  .bz-vhero__hint-arrow { animation-name: bzHintBobUp; }
  /* The headline stays put on a phone: the hero is mostly type at this
     width, so dropping it for the tail of every loop leaves the copy
     block looking half-empty. The keyword H1 (.bz-vhero__kw) follows
     the headline, so it stays too. The slogan pill AND the stat line
     (.bz-vhero__eyebrow, "18 років · 27 фабрик · ...") clear the frame
     together for the tail of each loop (owner, 2026-11-17; before that
     the eyebrow stayed, owner 2026-09-04). home.js still adds
     .is-clip-out to all of them — the clip-fade targets are one shared
     list — so this neutralises it per-element rather than opting out,
     which also means nothing can be left stuck faded if the
     breakpoint is crossed mid-fade. */
  .bz-vhero__title.is-clip-out,
  .bz-vhero__kw.is-clip-out { opacity: 1; }
  .bz-mosaic { grid-auto-rows: 118px; gap: 9px; }
  .bz-mosaic__copy { padding: 12px 14px; }
  .bz-mosaic__name { font-size: 14px; }
  .bz-mosaic__tile--wide .bz-mosaic__name { font-size: 17px; }
  .bz-services { gap: 9px; }
  .bz-service { padding: 12px 13px; border-radius: 12px; }
  .bz-service b { font-size: 12.5px; }
  .bz-service span { font-size: 10.5px; }
  .bz-projects__stats { grid-template-columns: 1fr; }
  .bz-projects__stat { border-right: none; border-bottom: 1px solid var(--c-line); }
  .bz-projects__stat:last-child { border-bottom: none; }
  .bz-projects__btn { align-self: stretch; text-align: center; }
  /* Articles become a compact list, matching the phone frame in the design. */
  .bz-articles-home { grid-template-columns: 1fr; gap: 7px; }
  .bz-article-card { flex-direction: row; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; }
  .bz-article-card__media { width: 56px; height: 56px; aspect-ratio: auto; flex: none; border-radius: 8px; overflow: hidden; }
  .bz-article-card__body { padding: 0; gap: 3px; }
  .bz-article-card__title { font-size: 12px; }
}

@media (max-width: 479px) {
  .bz-logowall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* The text about the shop under the home page content (Custom modules in the position home-seo-text): a reading column. */
.bz-hometext__inner { max-width: 860px; font-size: 15px; line-height: 1.65; color: var(--c-text); }
.bz-hometext__inner h2 { font-family: var(--font-heading); margin: var(--space-5) 0 var(--space-3); }
.bz-hometext__inner > :first-child h2, .bz-hometext__inner h2:first-child { margin-top: 0; }
.bz-hometext__inner p, .bz-hometext__inner ul { margin: 0 0 var(--space-3); }
.bz-hometext__inner ul { padding-left: 20px; }
.bz-hometext__inner li { margin-bottom: var(--space-2); }
.bz-hometext__inner a { color: var(--c-ginger); }

/* A very short window (owner, 2026-10-31): the sizes above have reached their
   floors, so what is left is dropping the one optional line. The paragraph under
   the headline goes first; on a phone turned sideways the scroll hint goes too
   and the two buttons share one row. Nothing may end up under the fixed header. */
@media (max-height: 400px) {
  .bz-vhero__copy p { display: none; }
}
@media (max-width: 767px) and (max-height: 500px) {
  .bz-vhero__copy { padding-bottom: 14px; }
  .bz-vhero__copy p,
  .bz-vhero__hint { display: none; }
  .bz-vhero__ctas { flex-direction: row; margin-top: 10px; }
  .bz-vhero__cta { width: auto; flex: 1 1 0; padding: 10px 0; }
}
