/* JUST GRAPHICS — service page template (reference: PPF), Website Design System 1.0.
   Built from approved components: .pc-hero / .pc-head / .pc-strip / .pc-faq / .pc-cta (Personal Cars),
   .ms-extra / .ms-stages / .ms-opt (Motorsport). This file only lays them out for a service page:
   four real projects in a row, a checklist for "What's included", four process stages and one price card near the end. */

/* VIEW PRICING / VIEW PROJECTS land below the overlay header */
.sv-page #pricing,
.sv-page #projects {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* ---------- what PPF does: three short benefits under the intro ---------- */
.sv-strip {
  margin-top: var(--space-6);
}

/* ---------- our work: four real projects, 4:5 ---------- */
.sv-work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--pc-gap);
}

/* the Personal Cars mosaic spans (span 3, full-width last tile) do not apply here */
.sv-work .pc-shot,
.sv-work .pc-shot:last-child {
  grid-column: auto;
}

.sv-work .pc-shot__img,
.sv-work .pc-shot:last-child .pc-shot__img {
  aspect-ratio: 4 / 5;
}

.sv-work .pc-shot__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-shot--mercedes .pc-shot__img img {
  object-position: 40% 50%;
}

@media (min-width: 64rem) {
  .sv-work {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- materials: the approved photo + list block, without a CTA ---------- */
.sv-materials .ms-extra__list li {
  padding-inline-end: var(--space-4);
}

/* ---------- what's included: heading beside a checklist ---------- */
.sv-included__grid {
  display: grid;
  gap: var(--space-6) var(--space-8);
}

.sv-included__p {
  max-width: 26rem;
  margin: var(--space-4) 0 0;
  color: var(--pc-muted);
}

.sv-checks {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--pc-line);
  list-style: none;
}

.sv-checks li {
  position: relative;
  padding: var(--space-4) 0;
  padding-inline-start: 1.8rem;
  border-bottom: 1px solid var(--pc-line);
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}

.sv-checks li::before {
  position: absolute;
  inset-inline-start: 0;
  color: var(--jg-lime);
  content: "✓";
}

@media (min-width: 48rem) {
  .sv-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--pc-gap);
  }
}

@media (min-width: 64rem) {
  .sv-included__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }
}

/* ---------- process: four stages ---------- */
@media (min-width: 64rem) {
  .sv-stages {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- pricing: heading beside one price card ---------- */
.sv-pricing__grid {
  display: grid;
  gap: var(--space-6) var(--space-8);
}

.sv-opt__note {
  margin: var(--space-2) 0 0;
  color: var(--pc-muted);
  font-size: 0.9rem;
}

@media (min-width: 64rem) {
  .sv-pricing__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

/* EN "PROTECTION." is the longest single word in a hero H1 so far: keep it inside the phone width */
@media (max-width: 47.99rem) {
  html[lang^="en"]:not(#pc):not(#pc-b) body .pc .sv-hero h1 {
    font-size: 10.6vw;
  }
}

/* three projects: phone — the first one large, then a pair; desktop — three in a row */
.sv-work--3 .pc-shot:first-child {
  grid-column: 1 / -1;
}

@media (min-width: 64rem) {
  .sv-work--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sv-work--3 .pc-shot:first-child {
    grid-column: auto;
  }
}

/* phone: narrow pair of cards — tag above the title so both captions line up */
@media (max-width: 47.99rem) {
  .sv-work .pc-shot figcaption {
    display: block;
  }

  .sv-work .pc-shot figcaption span {
    display: block;
    margin-bottom: 0.25rem;
  }
}

/* process with three stages (other services): three columns on desktop */
@media (min-width: 64rem) {
  .sv-stages--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* two confirmed projects: a pair, kept narrower on desktop so 4:5 cards do not get oversized */
@media (min-width: 64rem) {
  .sv-work--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 56rem;
  }
}

/* our work led by one project (Custom Design: Corvette C8): phone — lead full width, then a pair;
   desktop — the lead twice as wide, spanning both rows beside the other two */
@media (min-width: 64rem) {
  .sv-work--lead {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .sv-work--lead .pc-shot:first-child {
    display: flex;
    flex-direction: column;
    grid-row: span 2;
  }

  .sv-work--lead .pc-shot:first-child .pc-shot__img {
    flex: 1;
    aspect-ratio: auto;
    min-height: 0;
  }
}

/* what's included with a short explanation under each item */
.sv-checks li b {
  display: block;
  color: #fff;
  font-weight: 700;
}

.sv-checks li span {
  display: block;
  margin-top: 0.2rem;
  color: var(--pc-muted);
  font-size: 0.92rem;
}

/* price card where the starting price is the main signal of the block */
.sv-opt--lead .ms-opt__price b {
  font-size: clamp(3.2rem, 2rem + 4vw, 5.6rem);
}

.sv-opt--lead .ms-opt__price small {
  color: #fff;
  font-size: 0.8rem;
}

.sv-opt__wa {
  margin: var(--space-4) 0 0;
}

/* RU «ИНДИВИДУАЛЬНЫЙ ДИЗАЙН» (13 em on one line). Tablet and desktop: one line sized to the hero width.
   Phone: the standard RU hero size; the word breaks at its soft hyphen (ИНДИВИ- / ДУАЛЬНЫЙ / ДИЗАЙН.) */
@media (min-width: 48rem) {
  html[lang="ru"]:not(#pc):not(#pc-b) body .pc .sv-hero--long h1 {
    font-size: min(6.5vw, 6rem);
  }
}

/* RU «ИНДИВИДУАЛЬНЫЙ ДИЗАЙН»: the breve of Unbounded «Й» reaches 0.99 em above the baseline (caps 0.75 em) and «Д» drops
   0.15 em below it. Line height 1.15 keeps ≈ 0.16 em of clear space between the breve and the line above (0.9 overlapped). */
html[lang="ru"]:not(#pc):not(#pc-b) body .pc .sv-hero--long h1 {
  line-height: 1.15;
}
