/* JUST GRAPHICS — Business category and its two services (Commercial Vehicle Branding, Fleet Branding), Website Design System 1.0.
   No new components: this file only lays out approved ones (.pc-cards, .pc-strip, .ms-opt, .sv-pricing) for the Business pages.
   Loaded only by the three Business pages, so Personal Cars, Motorsport, PPF, Colour Change and Custom Design are not affected. */

.bz-page #choose,
.bz-page #projects,
.bz-page #pricing {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* ---------- category: two service cards instead of three, landscape media so two cards fill the row ---------- */
.bz-cards .pc-card__media {
  aspect-ratio: 4 / 3;
}

@media (min-width: 48rem) {
  .bz-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (min-width: 64rem) {
  .bz-cards > li:nth-child(2) {
    margin-top: 4rem;
  }
}

/* ---------- production facts and text-only process: the approved fact strip ---------- */
.bz-facts {
  margin-top: var(--space-6);
}

.bz-steps .pc-strip__k {
  font-variant-numeric: tabular-nums;
}

/* six steps (Fleet): three per row on desktop, rows divided like the strip itself */
@media (min-width: 64rem) {
  .bz-steps--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bz-steps--6 li:nth-child(3n + 1) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .bz-steps--6 li:nth-child(n + 4) {
    border-top: 1px solid var(--pc-line);
  }
}

/* ---------- Commercial pricing: four package cards (Motorsport price card), approvals below ---------- */
.bz-opts {
  display: grid;
  gap: var(--pc-gap);
  margin-top: var(--space-6);
}

@media (min-width: 48rem) {
  .bz-opts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 80rem) {
  .bz-opts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.bz-opts .ms-opt h3 {
  min-height: 2.5em;
}

.bz-page .sv-pricing .ms-opt__price {
  row-gap: 0.75rem;
}

.bz-opts .ms-opt__price b {
  font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3.2rem);
}

.bz-pricing__foot {
  display: grid;
  gap: var(--pc-gap);
  margin-top: var(--pc-gap);
}

@media (min-width: 48rem) {
  .bz-pricing__foot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.bz-pricing__notes p {
  margin: 0 0 var(--space-3);
  color: var(--pc-muted);
  font-size: 0.9rem;
}

.bz-pricing__notes .sv-opt__wa {
  margin-top: var(--space-4);
}

/* ---------- Fleet pricing: one card without an amount ---------- */
html:not(#pc):not(#pc-b) body .pc .bz-volume h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
}

/* ---------- Commercial, RU hero: «Брендинг / коммерческого / транспорта.» — one word per line, no breaks inside words.
   «КОММЕРЧЕСКОГО» is ≈ 11.6 em wide in Unbounded Black: on phones the size follows the column (100vw − 2 × 1rem gutter),
   on tablet and desktop it stays below the hero text column. Four ids outrank Type System 1.1 (three) and the approved page rules. */
html[lang="ru"]:not(#ts-a):not(#ts-b):not(#ts-c):not(#bz) body .pc .bz-hero--cvb h1 {
  font-size: calc((100vw - 2rem) / 12);
}

@media (min-width: 48rem) {
  html[lang="ru"]:not(#ts-a):not(#ts-b):not(#ts-c):not(#bz) body .pc .bz-hero--cvb h1 {
    font-size: min(5.2vw, 4.75rem);
  }
}

/* ---------- What we brand / What we handle: heading and list in two equal columns from 64rem, so a long RU word
   («ФУРГОНЫ.») stays inside the heading column at 1024 (same split as Custom Car Design's "What's included"). ---------- */
@media (min-width: 64rem) {
  .bz-page .sv-included__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
