/* Product templates: keep current location stable across font swaps.
   A two-level trail takes two rows on narrow screens; the last separator
   has no purpose when the current page is on a separate row. */
@media (max-width: 479px) {
  .fc-page--product .fc-breadcrumb:has(> a:nth-of-type(2)) > [aria-current="page"] {
    flex-basis: 100%;
  }
  .fc-page--product .fc-breadcrumb:has(> a:nth-of-type(2)) > span[aria-hidden="true"]:nth-last-child(2) {
    display: none;
  }
}

/* Type curves are the same as the loaded Inter reference, without using
   the variable width of a fallback zero glyph to size the text column. */
.fc-page .fc-selection .catalogue-reference__note,
.retail-product .catalogue-reference__note {
  max-inline-size: 45.4em;
}

/* Keep confirmed two-line model headings stable even with the fallback face. */
@media (min-width: 1100px) {
  .fc-page--product .fc-hero:has(> :is([data-photo="motors-rtk-cylinder-cp.webp"], [data-photo="motors-rtk-valve-v2gbn-ce8a0ec6.webp"], [data-photo="screws-screw-xlrd.webp"], [data-photo="motors-rtk-ilt-shaft.webp"])) h1 .product-model-code {
    display: block;
  }
  .fc-page--product .fc-hero:has(> :is([data-photo="motors-rtk-cylinder-cp.webp"], [data-photo="motors-rtk-valve-v2gbn-ce8a0ec6.webp"])) .catalogue-reference__note > a {
    display: block;
    width: fit-content;
    max-width: 100%;
  }
  .fc-page--product .fc-hero:has(> [data-photo="motors-rtk-screw-motor.webp"]) h1 {
    max-inline-size: 13em;
  }
}

/* The approved desktop company view has two rows of related links. */
@media (min-width: 1280px) {
  .info-page:has(> .company-process) .info-page__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: start;
  }
  .info-page:has(> .company-process) .info-page__body {
    min-block-size: 4lh;
  }
}

/* At the start of the tablet two-column layout the company copy is seven lines. */
@media (min-width: 768px) and (max-width: 799px) {
  .info-page:has(> .company-process) .info-page__body {
    min-block-size: 7lh;
  }
}


@media (max-width: 479px) {
  .fc-page--product .fc-hero:has(> [data-photo="silo-vb4303-l-supplied.png"]) h1 .product-model-code {
    display: block;
  }
}

/* This family uses native retail breadcrumbs with a long parent and leaf.
   Reserve the second line on tablet instead of adding it after fonts load. */
@media (min-width: 768px) and (max-width: 899px) {
  .breadcrumbs__list:has(> li:nth-child(3) > a[href="/produkcziya/filtry-silosnoe-oborudovanie/"]) > .breadcrumbs__item:nth-child(n+4):last-child {
    flex-basis: 100%;
  }
  .breadcrumbs__list:has(> li:nth-child(3) > a[href="/produkcziya/filtry-silosnoe-oborudovanie/"]) > .breadcrumbs__item:nth-child(n+4):last-child::before {
    content: none;
  }
}

/* Model identifiers are a single unit, including a suffix or a hyphen. */
@media (min-width: 1100px) {
  .fc-page--product .fc-heading h1 .product-model-code {
    white-space: nowrap;
  }
  .fc-page--product .fc-hero:has(> [data-photo="motors-rtk-pinch-vm.webp"]) h1 .product-model-code {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 819px) {
  /* The model identifier occupies line two at the start of the tablet grid. */
  .fc-page--product .fc-hero:has(> [data-photo="screws-screw-rm30.webp"]) h1 .product-model-code {
    display: block;
  }

  /* Keep the technical link on its own readable line, as in loaded Inter. */
  .fc-page--product .fc-hero:has(> :is(
    [data-photo="screws-screw-rm30.webp"],
    [data-photo="screws-screw-hs2.webp"],
    [data-photo="vibration-vib-ru-60-3-59dc85.webp"]
  )) .catalogue-reference__note > a {
    display: block;
    width: fit-content;
    max-width: 100%;
  }
  .fc-page--product .fc-hero:has(> [data-photo="screws-screw-hs2.webp"]) .fc-body {
    min-block-size: 4lh;
  }
  .fc-page--product .fc-hero:has(> [data-photo="vibration-vib-ru-60-3-59dc85.webp"]) h1 {
    max-inline-size: 12.8em;
  }
}

/* The MP spare-parts sheets use the same font-independent measures as the catalogue. */
.mref h1 {
  max-inline-size: 15.77em;
}
.mref p {
  max-inline-size: 48.58em;
}
@media (max-width: 400px) {
  .mref .mref-crumb[aria-label="Хлебные крошки"]:has(> a:nth-of-type(2)) > [aria-current="page"] {
    flex-basis: 100%;
  }
  .mref .mref-crumb[aria-label="Хлебные крошки"]:has(> a:nth-of-type(2) ~ [aria-current="page"]) > span:nth-last-child(2) {
    display: none;
  }
  .mref header > p.mref-kicker {
    max-inline-size: 23em;
  }
}
@media (min-width: 761px) and (max-width: 800px) {
  /* This sheet's factory finding and reference each need their full text block. */
  .mref #table-10A.mref-explain > div > p:first-of-type {
    min-block-size: 8lh;
  }
  .mref #table-10A.mref-explain > div > p:last-of-type {
    min-block-size: 3lh;
  }
}

/* Final repeat check: keep functional product sections in place from first paint. */
@media (max-width: 430px) {
  .retail-product__identity h1 .sol-mao-variant-name {
    display: block;
  }
}

@media (min-width: 1100px) {
  .fc-page--product .fc-hero:has(> [data-photo="screws-screw-xuh.webp"]) h1 .product-model-code {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 819px) {
  /* These reducers have a five-line description in the approved tablet grid. */
  .fc-page--product .fc-hero:has(> :is(
    [data-photo="screws-screw-rm10.webp"],
    [data-photo="screws-screw-rm20.webp"],
    [data-photo="screws-screw-m43.webp"],
    [data-photo="screws-screw-m45.webp"],
    [data-photo="screws-screw-m47.webp"],
    [data-photo="screws-screw-m49.webp"]
  )) .fc-selection .fc-body {
    min-block-size: 5lh;
  }

  .fc-page--product .fc-hero:has(> [data-photo="vibration-vib-sk-5f496d.webp"]) .fc-selection .fc-body {
    min-block-size: 4lh;
  }
  .fc-page--product .fc-hero:has(> :is(
    [data-photo="vibration-vib-sk-5f496d.webp"],
    [data-photo="vibration-vib-oli-ot-adb9b7.webp"]
  )) .catalogue-reference__note {
    min-block-size: 5lh;
  }
  .fc-page .fc-hero:has(> :is(
    [data-photo="vibration-vib-sk-5f496d.webp"],
    [data-photo="vibration-vib-oli-ot-adb9b7.webp"],
    [data-photo="motors-rtk-filter-timer.webp"],
    [data-photo="root-oli-i100.webp"]
  )) .catalogue-reference__note > a {
    display: block;
    width: fit-content;
    max-width: 100%;
  }
}

/* Keep the model and its qualifier together on a second line at wide desktop. */
@media (min-width: 1280px) {
  .fc-page--product .fc-hero:has(> :is(
    [data-photo="vibration-vib-kemp-63e8b2.webp"],
    [data-photo="vibration-vib-ru-1800-3-8cdb0f.webp"],
    [data-photo="vibration-vib-ru-2400-15-02f688.webp"],
    [data-photo="vibration-vib-exact-3000-15-670885.webp"],
    [data-photo="vibration-vib-ru-3800-15-5e4081.webp"]
  )) h1 {
    max-inline-size: 12.6em;
  }
  .fc-page--product .fc-hero:has(> :is(
    [data-photo="vibration-vib-ru-1800-3-8cdb0f.webp"],
    [data-photo="vibration-vib-ru-2400-15-02f688.webp"],
    [data-photo="vibration-vib-exact-3000-15-670885.webp"],
    [data-photo="vibration-vib-ru-3800-15-5e4081.webp"]
  )) .catalogue-reference__note > a {
    display: block;
    width: fit-content;
    max-width: 100%;
  }
}
