/* Shared type and spacing for the active site. The homepage is the mobile reference.
   Loaded last: !important is limited to these cross-template design tokens because
   older artboard styles include repeated IDs and inline font declarations. */
body.mp-standard {
  --site-font: Inter, Arial, sans-serif;
  --site-display: Oswald, Arial, sans-serif;
  --site-h1: clamp(56px, 5vw, 96px);
  --site-h2: clamp(40px, 4.167vw, 80px);
  --site-h3: 22px;
  --site-copy: 16px;
  --site-caption: 12px;
  --site-section: clamp(64px, 5vw, 96px);
  --site-gap: 32px;
  font-family: var(--site-font);
  font-weight: 400;
}

body.mp-standard h1:not(.g7-lead) {
  font-family: var(--site-display) !important;
  font-size: var(--site-h1) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -.02em !important;
}
body.mp-standard h1:not(.g7-lead) :where(em, span:not(.hero-small)) {
  font: inherit !important;
  letter-spacing: inherit !important;
}
body.mp-standard :is(.hero h1>.hero-small, .hero-craft h1>span, .tint-test h1>span) {
  font: 500 .42em/1.3 var(--site-display) !important;
  letter-spacing: 0 !important;
}
body.mp-standard:is(.tint-test, .detailing-test) h1>span {
  font: 500 .42em/1.3 var(--site-display) !important;
  letter-spacing: 0 !important;
}
body.mp-standard h2:not(:where(.benefit-grid *, dialog *)) {
  font: 700 var(--site-h2)/1.16 var(--site-display) !important;
  letter-spacing: -.02em !important;
}
body.mp-standard h2:not(:where(.benefit-grid *, dialog *)) :is(span, em, i, b) {
  font: inherit !important;
  letter-spacing: inherit !important;
}
body.mp-standard :is(h3, .benefit-grid h2):not(:where(footer *, dialog *)) {
  font: 600 var(--site-h3)/1.3 var(--site-font) !important;
  letter-spacing: 0 !important;
  overflow-wrap: normal;
}
body.mp-standard :is(p, li, dt, dd, summary, input, textarea, select):not(:where(.mp-hero *, .hero-intent *, .handwriting)) {
  font-family: var(--site-font) !important;
}
body.mp-standard :is(
  .section-heading>p, .package-heading>p, .hub-price-heading>p, .hub-intro>p:last-child,
  .hero-copy>p, p.hero-copy, .process-heading>p, .process-steps p, .quality-steps p,
  .faq-list details>p, .hub-faq details p, .material-intro, .brand-description p,
  .contact-copy>p:not(.eyebrow), .contact-content>p:not(.eyebrow), .contact-shell>p:not(.eyebrow),
  .mp-callback-copy>p:not(.mp-kicker), .plv-lead, .plv-description, .plv-note,
  .pkv2__lead, .pl6__lead, .process-copy>p:not(.eyebrow), .story-copy>p:not(.story-kicker),
  .pc__lead, .pc-shag>p:not(.pc-shag__nomer), .v16-faq__punkt>p, .fn__lead,
  .hub-visit>div>p:not(.mp-kicker), .hub-visit li>p, .hub-ad-price p,
  .file-grid p, .material-points p, .process-grid p, .fleet-list p, .care-list p,
  .service-card p, .scope-copy p, .coating-points p, .task-copy p, .studio-steps p,
  .section__lead, .sd__text, .pain__text, .tcard__text, .tl__d, .lhero__lead,
  .case-intro, .case-description, .case-story p, .case-process p, .case-lead,
  .security__sub, .section__sub, .pain__a, .fullband__text, .zones__sub, .projects__lead,
  .studio__text, .faq__sub, .acc__text, .pricing__foot, .geroj__lid, .sekciya__lid,
  .sek-verh__lid, .ppf-detail__copy>p, .zona-karta__telo>p, .ppf-craft__copy>p,
  .studiya__copy>p, .garant>p, .faq-spisok p, .ppf-materials__copy>p:not(.ppf-materials__terms),
  .ppf-page .intro-copy>p, .ppf-page .part-copy, .section-intro, .finish-copy p
) {
  font: 400 var(--site-copy)/1.55 var(--site-font) !important;
  letter-spacing: 0 !important;
}
body.mp-standard :is(.faq-list, .hub-faq, .faq) summary {
  font-family: var(--site-font) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}
body.mp-standard :is(.button, .mp-action, .btn, .text-link) {
  font-family: var(--site-font) !important;
  font-weight: 600 !important;
}
body.mp-standard :is(p.hero-promise, .hero-copy>.hero-promise),
body.mp-standard .hero-lead>strong { font: 600 var(--site-h3)/1.3 var(--site-font) !important; }
body.mp-standard :is(footer, .site-footer) :is(p, a, span) { font-family: var(--site-font); }
body.mp-standard :is(footer, .site-footer) h3 { font: 600 14px/1.4 var(--site-font); }
body.mp-standard .ppf-page .film-picker-row,
body.mp-standard .ppf-page .film-tabs { flex-wrap: wrap; }
body.mp-standard .ppf-page .film-tabs { min-width: 0; }
body.mp-standard .ppf-page .intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  height: auto;
  min-height: 0;
  padding-block: 32px;
}
body.mp-standard .ppf-page .intro-copy { grid-column: 1; grid-row: 1; position: relative; min-width: 0; max-width: none; width: auto; }
body.mp-standard .ppf-page .intro-car { grid-column: 2; grid-row: 1; position: relative; inset: auto; width: 100%; height: auto; }
body.mp-standard .ppf-page .intro-script { display: none; }

@media (max-width: 767px) {
  body.mp-standard {
    --site-gutter: 10px;
    --site-h1: clamp(40px, 11.3vw, 48px);
    --site-h2: clamp(30px, 8.2vw, 36px);
    --site-h3: 18px;
    --site-copy: 14px;
    --site-section: 40px;
    --site-gap: 24px;
  }

  /* A full-width section or its container owns the gutter, never both. */
  body.mp-standard :is(.shell, .hub-shell, .case-container, .ppf-page, main>.wrap, section>.wrap),
  body.mp-standard.mp-legacy .container {
    width: calc(100% - 2 * var(--site-gutter));
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
  }
  body.mp-standard :is(.shell .shell, .hub-shell .hub-shell, .case-container .case-container) {
    width: 100%;
    margin-inline: 0;
  }
  body.mp-standard :is(.section, .hub-price-section, .hub-faq, .hub-visit) {
    padding-block: var(--site-section);
  }
  body.mp-standard #request.mp-callback {
    padding: var(--site-section) var(--site-gutter);
  }
  body.mp-standard #request .mp-callback-inner { gap: var(--site-gap); }
  body.mp-standard #request #mp-request-title { margin-bottom: 12px; }
  body.mp-standard #request .mp-callback-copy>p { margin-bottom: 16px; }
  body.mp-standard .mp-callback-contact { margin-top: 20px; }
  body.mp-standard .mp-kicker { margin-bottom: 16px !important; }

  body.mp-standard :is(.section-heading, .package-heading, .catalog-heading, .hub-price-heading) {
    gap: 12px;
    margin-bottom: var(--site-gap);
  }
  body.mp-standard :is(.section-heading, .package-heading, .catalog-heading, .hub-price-heading)>p {
    margin-top: 12px;
    max-width: none;
  }
  body.mp-standard :is(.price-layout, .faq-layout, .process-layout, .format-layout,
      .artwork-layout, .material-layout, .fleet-layout, .care-layout, .shade-layout,
      .quality-stage, .finish-studio, .task-layout, .coating-layout, .studio-layout,
      .materials-layout, .contact-layout, .hub-visit, .hub-faq) {
    gap: var(--site-gap);
  }
  body.mp-standard :is(.process-heading, .contact-copy, .contact-content, .contact-shell, .faq-layout, .quality-copy) h2 {
    margin-top: 0;
    margin-bottom: 12px;
  }
  body.mp-standard :is(.process-heading>p, .contact-copy>p:not(.eyebrow), .contact-content>p:not(.eyebrow), .contact-shell>p:not(.eyebrow)) {
    margin-top: 12px;
  }
  body.mp-standard :is(.process-steps li, .quality-steps li) { padding-block: 20px; }
  body.mp-standard :is(.process-steps, .quality-steps) h3 { margin-bottom: 8px; }
  body.mp-standard :is(.process-grid, .file-grid, .fleet-list, .care-list, .studio-steps) {
    gap: 16px;
  }
  body.mp-standard :is(.process-grid, .file-grid, .fleet-list, .care-list) :is(article, li) {
    min-height: 0;
    height: auto;
  }
  body.mp-standard :is(.process-grid, .file-grid, .fleet-list, .care-list) h3 { margin-top: 12px; }
  body.mp-standard :is(.process-grid, .file-grid, .fleet-list, .care-list) p { margin-top: 8px; }
  body.mp-standard :is(.benefits) { padding-block: 24px; }
  body.mp-standard .benefit-grid { gap: 20px; }
  body.mp-standard .benefit-grid article { padding: 0; margin: 0; gap: 16px; }
  body.mp-standard .benefit-grid article>div { min-width: 0; }
  body.mp-standard .benefit-grid h2 { margin-bottom: 6px; }
  body.mp-standard .benefit-grid p { font: 400 14px/1.55 var(--site-font); }

  body.mp-standard :is(.contact-section) { padding-block: var(--site-section); }
  body.mp-standard .contact-location { margin-top: 0; }
  body.mp-standard .page-footer,
  body.mp-standard .mp-simple-footer { padding-inline: var(--site-gutter); }
  body.mp-standard :is(p.lead, p.studio-lead, .quality-copy>p:not(.eyebrow), .palette-section .section-heading>p) {
    font: 400 var(--site-copy)/1.55 var(--site-font) !important;
  }
  body.mp-standard :is(.preview-note, .fineprint, .samples-note, .table-note, .visual-note,
      .package-price-note, .material-limit, .catalog-footnote p, .catalog-subheading p,
      .catalog-included p, .works-bottom p, .works-note p, .price-foot p, .hub-price-note p,
      .shade-bottom p, .price-note, .snoska, .ppf-estimate__note, .ppf-materials__terms) {
    font: 400 var(--site-caption)/1.5 var(--site-font) !important;
  }
  body.mp-standard :is(.task-answer>p, .front-note p, .catalog-detail-content>p) {
    font: 400 var(--site-copy)/1.55 var(--site-font) !important;
  }
  body.mp-standard :is(.section-heading>p, .package-heading>p) { text-align: left; }

  /* Let the media occupy a real row instead of reserving space with a 300px margin. */
  body.mp-standard:is(.tint-test, .detailing-test, .branding-test) .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    padding-bottom: 24px;
  }
  body.mp-standard:is(.tint-test, .detailing-test, .branding-test) .hero-shell { display: contents; }
  body.mp-standard:is(.tint-test, .detailing-test, .branding-test) .hero-shell>* {
    position: relative;
    width: calc(100% - 2 * var(--site-gutter));
    max-width: none;
    margin-inline: var(--site-gutter);
    order: 5;
  }
  body.mp-standard:is(.tint-test, .detailing-test, .branding-test) .hero .breadcrumbs { order: 0; }
  body.mp-standard:is(.tint-test, .detailing-test, .branding-test) .hero .hero-kicker { order: 1; margin-top: 20px; margin-bottom: 16px; }
  body.mp-standard:is(.tint-test, .detailing-test, .branding-test) .hero h1 { order: 2; }
  body.mp-standard:is(.tint-test, .detailing-test, .branding-test) .hero-shell>p.hero-promise { order: 3; margin-top: 16px; }
  body.mp-standard:is(.tint-test, .detailing-test, .branding-test) .hero :is(.hero-media, .hero-visual) {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 0;
    margin: 20px 0 0;
    z-index: 0;
    opacity: 1;
    order: 4;
  }
  body.mp-standard:is(.tint-test, .detailing-test, .branding-test) .hero-shade { display: none; }
  body.mp-standard:is(.tint-test, .detailing-test, .branding-test) .hero .hero-copy { margin-top: 20px; }
  body.mp-standard:is(.tint-test, .detailing-test, .branding-test) .hero .hero-actions { order: 6; margin-top: 20px; }
  body.mp-standard:is(.tint-test, .detailing-test, .branding-test) .hero .hero-bottom { order: 7; margin-top: 24px; padding-block: 20px 0; }

  /* The colour preview flows with its controls, without desktop spacer heights. */
  body.mp-standard.color-test .hero { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0; }
  body.mp-standard.color-test .hero-copy { margin-inline: var(--site-gutter); order: 0; }
  body.mp-standard.color-test .hero-visual {
    position: relative; inset: auto; transform: none; width: 100%; height: auto;
    min-height: 0; aspect-ratio: 16/10; margin: 16px 0 0; z-index: 0; order: 1;
  }
  body.mp-standard.color-test .hero-color-rail,
  body.mp-standard.color-test .hero-summary {
    position: relative; inset: auto; width: calc(100% - 2 * var(--site-gutter));
    margin: 24px var(--site-gutter) 0;
  }
  body.mp-standard.color-test .hero-color-rail { order: 2; }
  body.mp-standard.color-test .hero-color-note { padding-right: 115px; min-height: 44px; margin-bottom: 12px; }
  body.mp-standard.color-test #hero-spin { top: -7px; }
  body.mp-standard.color-test .hero-summary { order: 3; }
  body.mp-standard.color-test .hero-bottom {
    position: relative; inset: auto; order: 4; width: calc(100% - 2 * var(--site-gutter));
    margin: 24px var(--site-gutter) 0; padding-block: 20px;
  }
  body.mp-standard.color-test .palette-heading .handwriting { margin-top: 8px; }
  body.mp-standard.color-test .color-stage { min-height: 0; gap: var(--site-gap); }
  body.mp-standard.color-test .color-car-wrap { height: auto; min-height: 0; aspect-ratio: auto; overflow: hidden; }
  body.mp-standard.color-test .color-car-wrap #color-car {
    position: relative; inset: auto; display: block; width: 100%; height: auto;
    aspect-ratio: 1.6; object-fit: contain; transform: none;
  }
  body.mp-standard.color-test .color-car-wrap #color-car-previous { inset: 0 auto auto 0; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: contain; }
  body.mp-standard.color-test .compare-tools { position: relative; inset: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
  body.mp-standard.color-test #compare-color { min-height: 44px; padding: 10px 14px; flex-shrink: 0; font-size: 12px; white-space: nowrap; }
  body.mp-standard.color-test #compare-caption { flex: 1; min-width: 120px; font-size: 11px; line-height: 1.45; }
  body.mp-standard.color-test .color-car-wrap::before,
  body.mp-standard.color-test .color-car-wrap::after { display: none; }
  body.mp-standard.color-test .materials-section { padding-block: var(--site-section); }
  body.mp-standard.color-test .contact-section { padding-inline: var(--site-gutter); gap: var(--site-gap); }
  body.mp-standard.color-test .contact-content { width: 100%; margin: 0; }
  body.mp-standard.color-test .contact-address { margin-top: 0; padding-top: 20px; }
  body.mp-standard.color-test .catalog-comparison { margin-top: 32px; }
  body.mp-standard.color-test .catalog-details { margin-top: 32px; }
  body.mp-standard.color-test .vehicle-card { padding: 20px 16px; }
  body.mp-standard.color-test .vehicle-art { height: 190px; }
  body.mp-standard.color-test .catalog-cars { gap: 16px; }
  body.mp-standard.color-test .catalog-cars .vehicle-pick { padding: 0; }
  body.mp-standard.color-test .catalog-cars .vehicle-art { height: 180px; margin-block: 8px; }
  body.mp-standard.color-test .vehicle-price { height: auto; padding-block: 12px; }
  body.mp-standard.color-test .catalog-cars .vehicle-price strong { font: 600 30px/1.2 var(--site-font); letter-spacing: -.03em; }
  body.mp-standard.color-test .catalog-cars .vehicle-price strong.tbd { font-size: 18px; letter-spacing: 0; }
  body.mp-standard.color-test .catalog-cars .vehicle-price>span { font-size: 20px; }
  body.mp-standard.color-test .catalog-cars .vehicle-cta { padding: 14px 16px; }
  body.mp-standard.color-test .catalog-subheading { display: block; margin-bottom: 20px; }
  body.mp-standard.color-test .catalog-subheading p { margin-top: 12px; }
  body.mp-standard.color-test .catalog-table-wrap { overflow: visible; border: 0; background: transparent; }
  body.mp-standard.color-test .catalog-table { display: block; min-width: 0; width: 100%; }
  body.mp-standard.color-test .catalog-table colgroup { display: none; }
  body.mp-standard.color-test .catalog-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body.mp-standard.color-test .catalog-table tbody { display: grid; gap: 12px; }
  body.mp-standard.color-test .catalog-table tr { display: block; border: 1px solid #dce3e9; border-radius: 8px; overflow: hidden; }
  body.mp-standard.color-test .catalog-table tbody th { display: flex; align-items: center; gap: 14px; padding: 16px; width: 100%; background: #eaf0f5; border: 0; }
  body.mp-standard.color-test .catalog-table tbody th img { position: static; transform: none; margin: 0; flex-shrink: 0; }
  body.mp-standard.color-test .catalog-table tbody th span { max-width: none; }
  body.mp-standard.color-test .catalog-table td { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 0; border-top: 1px solid #e4e9ef; font-size: 16px; white-space: nowrap; }
  body.mp-standard.color-test .catalog-table td::before { font-size: 12px; color: #64747f; font-weight: 400; }
  body.mp-standard.color-test .catalog-table td:nth-child(2)::before { content: 'KPMF'; }
  body.mp-standard.color-test .catalog-table td:nth-child(3)::before { content: 'Oracal'; }
  body.mp-standard.color-test .catalog-table td:nth-child(4)::before { content: 'Avery'; }

  body.mp-standard.ppf-test .material-copy { padding: var(--site-section) var(--site-gutter); }
  body.mp-standard.tint-test .materials-section { padding-block: var(--site-section); }
  body.mp-standard.service-hub .hub-hero { padding-block: 32px var(--site-section); }
  body.mp-standard.service-hub .hub-price-content { padding-bottom: 0; }
  body.mp-standard .hub-contact-grid article { padding-block: 24px; }
  body.mp-standard .hub-contact-grid h2 { font-size: var(--site-h2); }

  body.mp-standard.mp-legacy :is(.section, .studio, .proc, .proof) { padding-block: var(--site-section); }
  body.mp-standard.ppf-editorial .sekciya { padding-block: var(--site-section) 0; }
  body.mp-standard.ppf-editorial .ppf-estimate { padding: 24px 16px; }
  body.mp-standard.ppf-editorial :is(.ppf-detail__copy, .ppf-craft__copy) { padding-block: var(--site-section); }
  body.mp-standard .ppf-page .section-block { margin-top: var(--site-section); }
  body.mp-standard .ppf-page .individual { margin-inline: 0; padding: 24px 16px; }
  body.mp-standard.ppf-editorial .ppf-gallery-actions { flex-wrap: wrap; }
  body.mp-standard .ppf-page .comparison-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
  body.mp-standard .ppf-page .comparison-scroll>.table-wrap { min-width: 700px; overflow: visible; }
  body.mp-standard .ppf-page .comparison-cars { min-width: 700px; grid-template-columns: 32% repeat(4,minmax(0,1fr)); gap: 0; margin-inline: 0; }
  body.mp-standard .ppf-page .comparison-cars>span { display: block; }
  body.mp-standard :is(.comparison-scroll, .package-comparison-scroll)::before {
    content: 'Листайте таблицу вправо, чтобы сравнить комплексы →';
    display: block; position: sticky; left: 0; width: fit-content; max-width: calc(100vw - 20px);
    margin-bottom: 12px; font: 400 12px/1.5 var(--site-font); color: #64747f;
  }
  body.mp-standard .ppf-page .intro { grid-template-columns: minmax(0,1fr); gap: 20px; padding-block: 20px; }
  body.mp-standard .ppf-page .intro-car { grid-column: 1; grid-row: 2; max-height: 240px; object-fit: contain; }
  body.mp-standard .site-footer { padding-inline: 0; }
  body.mp-standard .site-footer .fn__in { padding-inline: var(--site-gutter); }
  body.mp-standard.mp-legacy .trust__grid { gap: 12px; }
  body.mp-standard.mp-legacy .tcard {
    display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 6px 14px;
    min-height: 0; height: auto; padding: 20px 16px; align-content: start;
  }
  body.mp-standard.mp-legacy .tcard__ic { grid-column: 1; grid-row: 1 / 3; width: 40px; height: 40px; margin: 0; }
  body.mp-standard.mp-legacy .tcard__title { grid-column: 2; margin: 0; }
  body.mp-standard.mp-legacy .tcard__text { grid-column: 2; margin: 0; }

  /* Dialog headings have their own scale and must leave space for the close button. */
  body.mp-standard dialog:not(.mp-quiz) h2 {
    font: 600 24px/1.2 var(--site-display) !important;
    padding-right: 44px;
    letter-spacing: -.02em !important;
  }
  body.mp-standard .video-dialog { padding: 20px 16px; }
  body.mp-standard .video-dialog video { max-height: calc(100dvh - 170px); }
}
