/*
 * ============================================================
 * MP PRODUCT LAYOUT
 * Test pełnej karty produktu – NID 124.
 *
 * Wersja scalona po akceptacji wizualnej V1–V7.
 * ============================================================
 */

.mp-product-v1 {
  background: #fff;
  color: #0b192c;
}

.mp-product-v1,
.mp-product-v1 * {
  box-sizing: border-box;
}

.mp-product-v1 .node__content {
  margin: 0;
}

.mp-product-v1__inner {
  width: calc(100% - clamp(160px, 15vw, 320px));
  max-width: 1600px;
  margin: 0 auto;
  padding: 36px 0 80px;
}


/* ============================================================
 * BREADCRUMB + H1
 * ============================================================ */

.mp-product-v1__breadcrumb {
  margin-bottom: 22px !important;
}

.mp-product-v1__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 40px;

  margin-bottom: 26px;
}

.mp-product-v1__heading {
  min-width: 0;
}

.mp-product-v1__header h1 {
  max-width: 1120px;

  margin: 0;

  color: #0b192c;

  font-size: clamp(34px, 2.8vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.025em;
}


/* ============================================================
 * HERO
 * ============================================================ */

.mp-product-v1__hero {
  display: grid;

  grid-template-columns:
    minmax(0, 1.48fr)
    minmax(350px, .72fr);

  gap: clamp(34px, 4vw, 64px);

  align-items: start;

  padding-bottom: 26px;

  border-bottom: 1px solid #dce2e5;
}


/* ============================================================
 * GALERIA – LEWA KOLUMNA
 * ============================================================ */

.mp-product-v1__media {
  min-width: 0;
  width: 100%;
}

.mp-product-v1__main-image {
  position: relative;

  overflow: hidden;

  min-height: 0;

  aspect-ratio: 1.68 / 1;

  background: #f2f4f5;

  cursor: zoom-in;
}

.mp-product-v1__main-image > .field__item,
.mp-product-v1__main-image > div {
  width: 100%;
  height: 100%;
}

.mp-product-v1__main-image img {
  display: block;

  width: 100%;
  height: 100%;

  aspect-ratio: 1.68 / 1;

  object-fit: cover;
  object-position: center center;

  transition: transform .35s ease;
}

.mp-product-v1__main-image:hover img {
  transform: scale(1.015);
}

.mp-product-v1__zoom {
  position: absolute;

  right: 18px;
  bottom: 18px;

  display: inline-flex;
  align-items: center;

  min-height: 38px;

  padding: 0 15px;

  background: rgba(7, 27, 44, .91);
  color: #fff;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
}


/* Miniatury. */

.mp-product-v1__thumbs {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 9px;

  margin-top: 9px;
}

.mp-product-v1__thumb {
  display: block;

  min-width: 0;

  overflow: hidden;

  aspect-ratio: 4 / 3;

  border: 1px solid #dce2e5;

  background: #f2f4f5;
}

.mp-product-v1__thumb:hover,
.mp-product-v1__thumb:focus-visible {
  border-color: #1597a6;
}

.mp-product-v1__thumb img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* ============================================================
 * PRAWA KOLUMNA
 * ============================================================ */

.mp-product-v1__summary {
  position: static;

  min-width: 0;
}

.mp-product-v1__lead {
  padding-bottom: 20px;

  border-bottom: 1px solid #dce2e5;

  color: #2e3b46;

  font-size: 16.5px;
  line-height: 1.54;
}

.mp-product-v1__lead p:first-child {
  margin-top: 0;
}

.mp-product-v1__lead p:last-child {
  margin-bottom: 0;
}

.mp-product-v1__lead strong {
  color: #0b192c;
  font-weight: 600;
}


/* ============================================================
 * CTA + KARTA KATALOGOWA
 * ============================================================ */

.mp-product-v1__actions {
  display: grid;

  grid-template-columns:
    minmax(0, .82fr)
    minmax(0, 1.18fr);

  align-items: stretch;

  gap: 10px;

  margin-top: 18px;
}

.mp-product-v1__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 44px;

  padding: 0 15px;

  background: #f6c400;
  color: #071b2c !important;

  font-size: 13px;
  line-height: 1.15;
  font-weight: 800;

  text-decoration: none !important;

  transition:
    background-color .2s ease,
    transform .2s ease;
}

.mp-product-v1__cta:hover,
.mp-product-v1__cta:focus-visible {
  background: #d9ae00;

  transform: translateY(-1px);
}

.mp-product-v1__cta span {
  font-size: 20px;
  font-weight: 400;
}


/* Karta katalogowa. */

.mp-product-v1__download {
  min-width: 0;

  margin: 0;
}

.mp-product-v1__download .field,
.mp-product-v1__download .field__item {
  width: 100%;
  height: 100%;

  margin: 0;
}

.mp-product-v1__download .file {
  display: block;

  width: 100%;
  height: 100%;

  padding-left: 0 !important;

  background: none !important;
  background-image: none !important;
}

.mp-product-v1__download .file::before,
.mp-product-v1__download .file::after,
.mp-product-v1__download img,
.mp-product-v1__download svg,
.mp-product-v1__download .file-icon {
  display: none !important;

  content: none !important;
}

.mp-product-v1__download a {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  height: 100%;

  min-height: 44px;

  margin: 0;
  padding: 0 15px;

  border: 1px solid #cfd7db;

  background: #fff;
  color: #0b192c !important;

  font-size: 0 !important;
  line-height: 1.2;
  font-weight: 800;

  text-align: left;
  text-decoration: none !important;
}

.mp-product-v1__download a::before {
  content: "KARTA KATALOGOWA";

  display: block;

  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 800;

  white-space: normal;
  overflow-wrap: normal;
}

.mp-product-v1__download a::after {
  content: "→";

  display: block;

  margin-left: 18px;

  font-size: 18px;
  line-height: 1;
  font-weight: 400;

  transition: transform .18s ease;
}

.mp-product-v1__download a:hover,
.mp-product-v1__download a:focus-visible {
  border-color: #1597a6;

  background: #f7fafb;

  color: #087d88 !important;
}

.mp-product-v1__download a:hover::after,
.mp-product-v1__download a:focus-visible::after {
  transform: translateX(3px);
}


/* ============================================================
 * CECHY
 *
 * Są pod CTA, więc ich liczba nie przesuwa głównych akcji.
 * ============================================================ */

.mp-product-v1__features {
  margin-top: 22px;

  padding: 18px 0 4px;

  border-top: 1px solid #dce2e5;

  color: #364550;

  font-size: 14px;
  line-height: 1.5;
}

.mp-product-v1__features p:first-child {
  margin-top: 0;
}

.mp-product-v1__features p {
  margin-bottom: 10px;
}

.mp-product-v1__features strong {
  color: #0b192c;
}

.mp-product-v1__features ul {
  margin: 8px 0 0;
  padding: 0;

  list-style: none;
}

.mp-product-v1__features li {
  position: relative;

  margin: 0;

  padding: 6px 0 6px 22px;

  border-bottom: 1px solid #edf0f2;
}

.mp-product-v1__features li::before {
  content: "";

  position: absolute;

  top: 14px;
  left: 2px;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #1597a6;
}


/* ============================================================
 * SZCZEGÓŁY PRODUKTU
 * ============================================================ */

.mp-product-v1__description {
  display: block;

  margin-top: 28px;
  padding: 0;

  border: 1px solid #d9e0e3;

  background: #fff;
}

.mp-product-v1__section-heading {
  max-width: none;

  margin: 0;
  padding: 30px 36px 28px;

  border-bottom: 1px solid #d9e0e3;
}

.mp-product-v1__section-heading span {
  display: block;

  margin-bottom: 8px;

  color: #4f8a98;

  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;

  letter-spacing: .08em;
  text-transform: uppercase;
}

.mp-product-v1__section-heading h2 {
  max-width: none;

  margin: 0;

  color: #0b192c;

  font-size: clamp(27px, 2vw, 34px);
  line-height: 1.15;
}


/* Treść BODY – wraz z tekstem SEO. */

.mp-product-v1__body {
  max-width: none;

  margin: 0;
  padding: 12px 36px 38px;

  color: #3b4853;

  font-size: 16px;
  line-height: 1.7;
}

.mp-product-v1__body > p {
  max-width: 1120px;

  margin-bottom: 18px;
}

.mp-product-v1__body > *:first-child {
  margin-top: 0;
}

.mp-product-v1__body > *:last-child {
  margin-bottom: 0;
}


/* Prawidłowe H2/H3/H4 w BODY. */

.mp-product-v1__body > h2,
.mp-product-v1__body > h3,
.mp-product-v1__body > h4 {
  position: relative;

  max-width: none;

  margin: 34px -36px 20px;
  padding: 28px 36px 0;

  border-top: 1px solid #dfe5e8;

  color: #0b192c;
}

.mp-product-v1__body > h2 {
  font-size: 25px;
  line-height: 1.25;
}

.mp-product-v1__body > h3 {
  font-size: 20px;
  line-height: 1.3;
}

.mp-product-v1__body > h4 {
  font-size: 17px;
}


/*
 * Starsze treści CMS mają część śródtytułów zapisanych jako:
 * <p><strong>...</strong></p>
 */

.mp-product-v1__body > p:has(> strong:only-child) {
  max-width: none;

  margin: 34px -36px 18px;
  padding: 27px 36px 0;

  border-top: 1px solid #dfe5e8;

  color: #0b192c;

  font-size: 18px;
  line-height: 1.35;
}

.mp-product-v1__body > p:has(> strong:only-child):first-child {
  margin-top: 12px;
  padding-top: 14px;

  border-top: 0;
}


/* Listy techniczne. */

.mp-product-v1__body > ul,
.mp-product-v1__body > ol {
  max-width: 1080px;

  margin: 18px 0 28px;
  padding: 20px 26px 20px 48px;

  border-left: 3px solid #4f8a98;

  background: #f6f8f9;
}

.mp-product-v1__body > ul li,
.mp-product-v1__body > ol li {
  margin: 0 0 8px;
}

.mp-product-v1__body > ul li:last-child,
.mp-product-v1__body > ol li:last-child {
  margin-bottom: 0;
}

.mp-product-v1__body
> p:has(> strong:only-child)
+ ul,

.mp-product-v1__body
> p:has(> strong:only-child)
+ ol {
  margin-top: 8px;
}

.mp-product-v1__body strong {
  color: #263441;
}

.mp-product-v1__body a {
  color: #087d88;

  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.mp-product-v1__body a:hover,
.mp-product-v1__body a:focus-visible {
  color: #0b192c;
}


/* ============================================================
 * POZOSTAŁE POLA
 * ============================================================ */

.mp-product-v1__other-fields:empty {
  display: none;
}


/* ============================================================
 * DOLNE LINKOWANIE PRODUKTOWE
 * ============================================================ */

.mp-product-v1__related {
  margin-top: 54px;
  padding: 30px 0 4px;

  border-top: 1px solid #d9e0e3;
}

.mp-product-v1__related-heading {
  margin-bottom: 18px;
}

.mp-product-v1__related-heading > span {
  display: block;

  margin-bottom: 7px;

  color: #53636d;

  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;

  letter-spacing: .08em;
  text-transform: uppercase;
}

.mp-product-v1__related-heading h2 {
  margin: 0;

  color: #0b192c;

  font-size: 24px;
  line-height: 1.2;
}

.mp-product-v1__related-links {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;
}

.mp-product-v1__related-links > a {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 54px;

  padding: 0 20px;

  background: #4f8996;
  color: #fff !important;

  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;

  text-decoration: none !important;

  transition:
    background-color .18s ease,
    transform .18s ease;
}

.mp-product-v1__related-links > a:hover,
.mp-product-v1__related-links > a:focus-visible {
  background: #0b192c;

  transform: translateY(-1px);
}

.mp-product-v1__related-links > a > span:last-child {
  margin-left: 20px;

  font-size: 18px;
  font-weight: 400;
}


/* ============================================================
 * RESET STAREGO LAYOUTU
 * ============================================================ */

.node--type-oferta.mp-product-v1
.node__content > .content {
  display: none !important;
}

.node--type-oferta.mp-product-v1
.node__content {
  width: 100% !important;
  max-width: none !important;

  padding: 0 !important;

  background: #fff !important;
}

.node--type-oferta.mp-product-v1
.node__content::before {
  content: none !important;
}


/* ============================================================
 * DESKTOP
 * ============================================================ */

@media (min-width: 1181px) {

  .mp-product-v1__inner {
    padding-top: 30px;
  }

  .mp-product-v1__breadcrumb {
    margin-bottom: 16px !important;
  }

  .mp-product-v1__header {
    margin-bottom: 20px;
  }

  .mp-product-v1__header h1 {
    font-size: clamp(34px, 2.55vw, 44px);
  }

  .mp-product-v1__hero {
    gap: clamp(34px, 3.6vw, 56px);
  }


  /*
   * Zaakceptowane duże zdjęcie.
   * NIE ZMIENIAĆ szerokości bez ponownej akceptacji.
   */

  .mp-product-v1__main-image {
    width: 93%;
    height: clamp(390px, 43vh, 435px);

    margin-right: auto;
    margin-left: 0;

    aspect-ratio: auto;
  }

  .mp-product-v1__main-image img {
    width: 100%;
    height: 100%;

    aspect-ratio: auto;

    object-fit: cover;
  }


  /*
   * 5 zaakceptowanych miniaturek.
   * Cały pasek ma dokładnie szerokość dużego zdjęcia.
   */

  .mp-product-v1__thumbs {
    display: grid;

    width: 93%;

    grid-template-columns:
      repeat(5, minmax(0, 1fr));

    gap: 7px;

    margin-top: 8px;
    margin-right: auto;
    margin-left: 0;
  }

  .mp-product-v1__thumb {
    width: 100%;
    height: 68px;

    min-width: 0;

    aspect-ratio: auto;
  }


  /* Zwarty tekst prawej kolumny. */

  .mp-product-v1__lead {
    padding-bottom: 17px;

    font-size: 16px;
    line-height: 1.48;
  }

  .mp-product-v1__features {
    padding-top: 18px;

    font-size: 13.5px;
    line-height: 1.44;
  }

  .mp-product-v1__features p {
    margin-top: 0;
    margin-bottom: 7px;
  }

  .mp-product-v1__features ul {
    margin-top: 6px;
  }

  .mp-product-v1__features li {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .mp-product-v1__features li::before {
    top: 13px;
  }

}


/* ============================================================
 * TABLET
 * ============================================================ */

@media (max-width: 1180px) {

  .mp-product-v1__inner {
    width: calc(100% - 72px);
  }

  .mp-product-v1__hero {
    grid-template-columns:
      minmax(0, 1.15fr)
      minmax(320px, .85fr);

    gap: 32px;
  }

  .mp-product-v1__main-image {
    width: 100%;

    aspect-ratio: 3 / 2;
  }

  .mp-product-v1__main-image img {
    height: 100%;

    aspect-ratio: 3 / 2;
  }

  .mp-product-v1__thumbs {
    width: 100%;
  }

}


/* 5 miniaturek na średnim ekranie. */

@media (min-width: 901px) and (max-width: 1180px) {

  .mp-product-v1__thumbs {
    grid-template-columns:
      repeat(5, minmax(0, 1fr));
  }

}


/* ============================================================
 * MAŁY TABLET
 * ============================================================ */

@media (max-width: 900px) {

  .mp-product-v1__inner {
    width: calc(100% - 40px);

    padding-top: 30px;
  }

  .mp-product-v1__hero {
    grid-template-columns: 1fr;
  }

  .mp-product-v1__actions {
    grid-template-columns: 1fr;
  }

  .mp-product-v1__description {
    margin-top: 42px;
  }

  .mp-product-v1__section-heading {
    padding: 26px 24px 22px;
  }

  .mp-product-v1__body {
    padding: 10px 24px 30px;
  }

  .mp-product-v1__body > h2,
  .mp-product-v1__body > h3,
  .mp-product-v1__body > h4,
  .mp-product-v1__body > p:has(> strong:only-child) {
    margin-right: -24px;
    margin-left: -24px;

    padding-right: 24px;
    padding-left: 24px;
  }

  .mp-product-v1__related-links {
    grid-template-columns: 1fr;

    gap: 10px;
  }

}


/* ============================================================
 * TELEFON
 * ============================================================ */

@media (max-width: 640px) {

  .mp-product-v1__inner {
    width: calc(100% - 30px);

    padding-bottom: 54px;
  }

  .mp-product-v1__header {
    margin-bottom: 24px;
  }

  .mp-product-v1__header h1 {
    font-size: 32px;
  }

  .mp-product-v1__main-image {
    min-height: 0;
  }

  .mp-product-v1__main-image img {
    height: auto;

    aspect-ratio: 3 / 2;
  }

  .mp-product-v1__thumbs {
    display: grid;

    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 6px;
  }

  .mp-product-v1__thumb {
    width: auto;
    height: auto;

    aspect-ratio: 4 / 3;
  }

  .mp-product-v1__description {
    margin-top: 38px;
  }

}

/*
 * ============================================================
 * MP GLOBAL PRODUCT HERO FIX 1
 *
 * Po przejściu z testowego NID 124 na globalny node--oferta
 * kotwiczymy zaakceptowane proporcje galerii.
 *
 * - duże zdjęcie: zaakceptowane 93% / max 435 px
 * - miniatury: 5 sztuk, widoczne bezpośrednio pod zdjęciem
 * - prawa kolumna: bezpieczny prawy margines
 * ============================================================
 */

@media (min-width: 1181px) {

  /*
   * Kontener całej karty pozostaje wycentrowany.
   */

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__inner {
    width: calc(100% - clamp(160px, 15vw, 320px)) !important;
    max-width: 1600px !important;

    margin-right: auto !important;
    margin-left: auto !important;
  }


  /*
   * Hero – zaakceptowany podział lewej i prawej kolumny.
   */

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__hero {
    grid-template-columns:
      minmax(0, 1.48fr)
      minmax(350px, .72fr) !important;

    gap: clamp(34px, 3.6vw, 56px) !important;
  }


  /*
   * GALERIA.
   * Przywracamy dokładnie zaakceptowany rozmiar dużego zdjęcia.
   */

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__media {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
  }

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__main-image {
    display: block !important;

    width: 93% !important;
    height: clamp(390px, 43vh, 435px) !important;
    min-height: 0 !important;

    margin-right: auto !important;
    margin-left: 0 !important;

    aspect-ratio: auto !important;
  }

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__main-image > .field__item,
  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__main-image > div {
    width: 100% !important;
    height: 100% !important;
  }

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__main-image img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    aspect-ratio: auto !important;

    object-fit: cover !important;
    object-position: center center !important;
  }


  /*
   * MINIATURY.
   * Dokładnie 5, bezpośrednio pod dużym zdjęciem.
   * Pasek ma identyczną szerokość jak duże zdjęcie.
   */

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__thumbs {
    display: grid !important;

    width: 93% !important;
    max-width: 93% !important;

    grid-template-columns:
      repeat(5, minmax(0, 1fr)) !important;

    gap: 7px !important;

    margin-top: 8px !important;
    margin-right: auto !important;
    margin-left: 0 !important;

    padding: 0 !important;
  }

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__thumb {
    display: block !important;

    width: 100% !important;
    height: 68px !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    aspect-ratio: auto !important;

    overflow: hidden !important;
  }

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__thumb img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;
  }


  /*
   * PRAWA KOLUMNA.
   * Niewielki bufor od prawej strony – bez zmiany
   * zaakceptowanych proporcji całego hero.
   */

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__summary {
    min-width: 0 !important;

    padding-right: 18px !important;
  }

}


/*
 * Tablet / mobile – bez wymuszania desktopowych wymiarów.
 */

@media (max-width: 1180px) {

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__summary {
    padding-right: 0 !important;
  }

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__main-image {
    width: 100% !important;
  }

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__thumbs {
    width: 100% !important;
    max-width: 100% !important;
  }

}



/*
 * ============================================================
 * MP GLOBAL PRODUCT ACTION BOUNDS FIX 1
 *
 * Akcje nie mogą wyjść poza prawą krawędź kolumny.
 * ============================================================
 */

.mp-product-v1__actions {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  box-sizing: border-box;
}

.mp-product-v1__actions > * {
  min-width: 0;
  max-width: 100%;

  box-sizing: border-box;
}

.mp-product-v1__download {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mp-product-v1__download .field,
.mp-product-v1__download .field__item,
.mp-product-v1__download .file {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  box-sizing: border-box;
}

.mp-product-v1__download a {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  box-sizing: border-box;

  overflow: hidden;
}

.mp-product-v1__download a::before {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
}


/*
 * ============================================================
 * MP PRODUCT MISSING FIELDS
 *
 * Odporność globalnego layoutu na:
 * - brak galerii,
 * - brak PDF,
 * - brak leadu / cech / body.
 * ============================================================
 */


/* Produkt bez galerii nie zostawia pustej lewej kolumny. */

.node--type-oferta.node--view-mode-full.mp-product-v1
.mp-product-v1__hero--no-gallery {
  grid-template-columns: minmax(0, 760px) !important;

  justify-content: start;
}

.node--type-oferta.node--view-mode-full.mp-product-v1
.mp-product-v1__hero--no-gallery
.mp-product-v1__media {
  display: none !important;
}

.node--type-oferta.node--view-mode-full.mp-product-v1
.mp-product-v1__hero--no-gallery
.mp-product-v1__summary {
  width: 100%;
  max-width: 760px;

  padding-right: 0 !important;
}


/*
 * Jeżeli nie ma PDF, żółte CTA nie zajmuje tylko
 * połowy pustego dwukolumnowego rzędu.
 */

.mp-product-v1__actions--single {
  grid-template-columns: minmax(200px, 300px);
}


/* Brak miniaturek = brak pustego paska. */

.mp-product-v1__thumbs:empty {
  display: none !important;
}


/* Mobile. */

@media (max-width: 900px) {

  .mp-product-v1__hero--no-gallery {
    grid-template-columns: 1fr !important;
  }

  .mp-product-v1__actions--single {
    grid-template-columns: 1fr;
  }

}


/*
 * ============================================================
 * MP PRODUCT DOWNLOAD LANGUAGE
 *
 * Etykieta przycisku karty katalogowej jest generowana
 * przez pseudoelement CSS.
 * ============================================================
 */

html[lang^="pl"] .mp-product-v1__download a::before {
  content: "KARTA KATALOGOWA";
}

html[lang^="en"] .mp-product-v1__download a::before {
  content: "PRODUCT SHEET";
}



/*
 * ============================================================
 * MP PRODUCT MOBILE THUMBS 1
 *
 * Mobile:
 * maksymalnie 5 miniaturek galerii w jednym równym rzędzie.
 * Bez zawijania 3 + 2.
 *
 * Desktop pozostaje bez zmian.
 * ============================================================
 */

@media all and (max-width: 767px) {

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__thumbs {
    display: grid !important;

    grid-template-columns:
      repeat(5, minmax(0, 1fr)) !important;

    gap: 5px !important;

    width: 100% !important;

    margin-top: 5px !important;
  }

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__thumb {
    display: block !important;

    width: auto !important;
    min-width: 0 !important;
    height: 58px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
  }

  .node--type-oferta.node--view-mode-full.mp-product-v1
  .mp-product-v1__thumb img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    object-fit: cover !important;
    object-position: center !important;
  }

}



/* ============================================================
 * MP SERVICE V1 — PRODUCT-LIKE LAYOUT
 *
 * Pojedyncza usługa korzysta z tej samej szerokości
 * i języka wizualnego co nowa karta produktu.
 * ============================================================ */

.node--type-usluga.node--view-mode-full.mp-service-v1 {
  margin-top: 0 !important;
  padding: 0 !important;

  border-top: 0 !important;

  background: #fff !important;
  color: #0b192c;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__inner {

  width:
    calc(100% - clamp(160px, 15vw, 320px)) !important;

  max-width: 1600px !important;

  margin:
    0 auto !important;

  padding:
    36px 0 80px !important;

  background:
    #fff !important;

  border-radius:
    0 !important;

  box-shadow:
    none !important;
}


/* ------------------------------------------------------------
 * HEADER + POWRÓT
 * ------------------------------------------------------------ */

.node--type-usluga.node--view-mode-full
.mp-service-v1__header {

  margin: 0 0 26px !important;

  padding:
    0 !important;

  border: 0 !important;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__backnav {

  display: block;

  margin:
    0 0 22px !important;

  padding:
    0 !important;
}


/*
 * Powrót zaczyna się dokładnie na lewej osi
 * szerokiego kontenera strony.
 */
.node--type-usluga.node--view-mode-full
.mp-service-v1__backnav a.back {

  display:
    inline-flex !important;

  align-items:
    center;

  gap:
    9px;

  margin:
    0 !important;

  padding:
    0 !important;

  color:
    #087d88 !important;

  font-size:
    14px !important;

  line-height:
    1.3;

  font-weight:
    800 !important;

  text-decoration:
    none !important;

  opacity:
    1 !important;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__backnav a.back::before {

  content:
    "←" !important;

  position:
    static !important;

  display:
    inline-block !important;

  width:
    auto !important;

  height:
    auto !important;

  background:
    none !important;

  color:
    currentColor;

  font-size:
    20px;

  line-height:
    1;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__backnav a.back:hover,
.node--type-usluga.node--view-mode-full
.mp-service-v1__backnav a.back:focus-visible {

  color:
    #0b192c !important;
}


/* ------------------------------------------------------------
 * H1 — jak produkt
 * ------------------------------------------------------------ */

.node--type-usluga.node--view-mode-full
.mp-service-v1__header h1 {

  max-width:
    1120px;

  margin:
    0 !important;

  color:
    #0b192c;

  font-size:
    clamp(34px, 2.8vw, 48px) !important;

  line-height:
    1.08 !important;

  font-weight:
    700 !important;

  letter-spacing:
    -.025em;
}


/* ------------------------------------------------------------
 * RAMKA TREŚCI
 * ------------------------------------------------------------ */

.node--type-usluga.node--view-mode-full
.mp-service-v1__content {

  margin:
    0 !important;

  padding:
    clamp(24px, 2.7vw, 42px) !important;

  border:
    1px solid #dce2e5;

  background:
    #fff;
}


/*
 * Nie pozwalamy starym regułom usługi przywrócić
 * cienia i starej karty 920 px.
 */
.node--type-usluga.node--view-mode-full
.mp-service-v1__inner {

  -webkit-box-shadow:
    none !important;

  -moz-box-shadow:
    none !important;

  box-shadow:
    none !important;
}


/* ------------------------------------------------------------
 * MOBILE / TABLET
 * ------------------------------------------------------------ */

@media all and (max-width: 900px) {

  .node--type-usluga.node--view-mode-full
  .mp-service-v1__inner {

    width:
      calc(100% - 48px) !important;

    padding:
      28px 0 60px !important;
  }

}


@media all and (max-width: 640px) {

  .node--type-usluga.node--view-mode-full
  .mp-service-v1__inner {

    width:
      calc(100% - 28px) !important;

    padding:
      22px 0 48px !important;
  }


  .node--type-usluga.node--view-mode-full
  .mp-service-v1__header {

    margin-bottom:
      18px !important;
  }


  .node--type-usluga.node--view-mode-full
  .mp-service-v1__header h1 {

    font-size:
      30px !important;
  }


  .node--type-usluga.node--view-mode-full
  .mp-service-v1__content {

    padding:
      20px 16px 28px !important;
  }

}


/* === END MP SERVICE V1 === */



/* ============================================================
 * MP SERVICE CONTENT V1
 *
 * Czytelniejsza hierarchia długich opisów usług.
 * Dotyczy wyłącznie content.body pojedynczej usługi.
 * ============================================================ */


/* ------------------------------------------------------------
 * GŁÓWNA SZEROKOŚĆ TEKSTU
 * ------------------------------------------------------------ */

.node--type-usluga.node--view-mode-full
.mp-service-v1__body {

  max-width:
    1100px;

  margin:
    0;

  color:
    #364550;

  font-size:
    16px;

  line-height:
    1.68;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__body
.field--name-body {

  margin:
    0;
}


/* ------------------------------------------------------------
 * LEAD — pierwszy akapit
 * ------------------------------------------------------------ */

.node--type-usluga.node--view-mode-full
.mp-service-v1__body
.field--name-body > p:first-child {

  max-width:
    980px;

  margin:
    0 0 30px;

  color:
    #253642;

  font-size:
    19px;

  line-height:
    1.58;

  font-weight:
    400;
}


/* ------------------------------------------------------------
 * ZWYKŁE AKAPITY
 * ------------------------------------------------------------ */

.node--type-usluga.node--view-mode-full
.mp-service-v1__body p {

  max-width:
    920px;

  margin:
    0 0 18px;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__body strong {

  color:
    #0b192c;

  font-weight:
    700;
}


/* ------------------------------------------------------------
 * H2 — GŁÓWNE SEKCJE
 * ------------------------------------------------------------ */

.node--type-usluga.node--view-mode-full
.mp-service-v1__body h2 {

  display:
    flex;

  align-items:
    center;

  gap:
    13px;

  max-width:
    1000px;

  margin:
    46px 0 22px;

  padding:
    30px 0 0;

  border-top:
    1px solid #dce2e5;

  color:
    #0b192c;

  font-size:
    clamp(25px, 2vw, 32px);

  line-height:
    1.18;

  font-weight:
    700;

  letter-spacing:
    -.018em;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__body h2::before {

  content:
    "";

  flex:
    0 0 30px;

  width:
    30px;

  height:
    3px;

  background:
    #1597a6;
}


/* Pierwsze H2 bez zbędnej linii u góry. */

.node--type-usluga.node--view-mode-full
.mp-service-v1__body
.field--name-body > h2:first-child {

  margin-top:
    0;

  padding-top:
    0;

  border-top:
    0;
}


/* ------------------------------------------------------------
 * H3 — PODSEKCJE
 * ------------------------------------------------------------ */

.node--type-usluga.node--view-mode-full
.mp-service-v1__body h3 {

  max-width:
    960px;

  margin:
    30px 0 15px;

  padding:
    2px 0 2px 13px;

  border-left:
    3px solid #1597a6;

  color:
    #0b192c;

  font-size:
    20px;

  line-height:
    1.3;

  font-weight:
    700;
}


/* ------------------------------------------------------------
 * LISTY — WYRÓŻNIKI
 * ------------------------------------------------------------ */

.node--type-usluga.node--view-mode-full
.mp-service-v1__body ul {

  display:
    grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    10px 12px;

  max-width:
    1050px;

  margin:
    22px 0 32px;

  padding:
    0;

  list-style:
    none;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__body ul > li {

  position:
    relative;

  min-height:
    58px;

  margin:
    0;

  padding:
    14px 16px 14px 42px;

  border:
    1px solid #dce2e5;

  border-left:
    3px solid #1597a6;

  background:
    #f7f9fa;

  color:
    #34444f;

  line-height:
    1.45;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__body ul > li::before {

  content:
    "✓";

  position:
    absolute;

  top:
    14px;

  left:
    17px;

  color:
    #087d88;

  font-size:
    15px;

  line-height:
    1;

  font-weight:
    900;
}


/* ------------------------------------------------------------
 * LISTA NUMEROWANA — PROCES / ETAPY
 * ------------------------------------------------------------ */

.node--type-usluga.node--view-mode-full
.mp-service-v1__body ol {

  display:
    grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    12px;

  max-width:
    1050px;

  margin:
    22px 0 32px;

  padding:
    0;

  counter-reset:
    mp-service-step;

  list-style:
    none;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__body ol > li {

  position:
    relative;

  min-height:
    72px;

  margin:
    0;

  padding:
    16px 17px 16px 57px;

  border:
    1px solid #dce2e5;

  background:
    #fff;

  counter-increment:
    mp-service-step;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__body ol > li::before {

  content:
    counter(mp-service-step);

  position:
    absolute;

  top:
    15px;

  left:
    16px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  width:
    27px;

  height:
    27px;

  background:
    #0b192c;

  color:
    #fff;

  font-size:
    12px;

  line-height:
    1;

  font-weight:
    800;
}


/* ------------------------------------------------------------
 * CYTAT / WAŻNA INFORMACJA
 * ------------------------------------------------------------ */

.node--type-usluga.node--view-mode-full
.mp-service-v1__body blockquote {

  max-width:
    950px;

  margin:
    30px 0;

  padding:
    20px 24px;

  border:
    0;

  border-left:
    4px solid #c49a4a;

  background:
    #f7f6f2;

  color:
    #273641;

  font-size:
    17px;

  line-height:
    1.55;
}


/* ------------------------------------------------------------
 * LINKI
 * ------------------------------------------------------------ */

.node--type-usluga.node--view-mode-full
.mp-service-v1__body a {

  color:
    #087d88;

  font-weight:
    700;

  text-decoration:
    underline;

  text-decoration-thickness:
    1px;

  text-underline-offset:
    3px;
}


/* ------------------------------------------------------------
 * TABELE
 * ------------------------------------------------------------ */

.node--type-usluga.node--view-mode-full
.mp-service-v1__body table {

  width:
    100%;

  max-width:
    1050px;

  margin:
    28px 0;

  border-collapse:
    collapse;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__body th,
.node--type-usluga.node--view-mode-full
.mp-service-v1__body td {

  padding:
    11px 13px;

  border:
    1px solid #dce2e5;

  text-align:
    left;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__body th {

  background:
    #f2f5f6;

  color:
    #0b192c;

  font-weight:
    700;
}


/* ------------------------------------------------------------
 * MOBILE
 * ------------------------------------------------------------ */

@media all and (max-width: 760px) {

  .node--type-usluga.node--view-mode-full
  .mp-service-v1__body {

    font-size:
      15.5px;

    line-height:
      1.62;
  }


  .node--type-usluga.node--view-mode-full
  .mp-service-v1__body
  .field--name-body > p:first-child {

    font-size:
      17px;

    line-height:
      1.55;
  }


  .node--type-usluga.node--view-mode-full
  .mp-service-v1__body h2 {

    margin-top:
      36px;

    padding-top:
      24px;

    font-size:
      24px;
  }


  .node--type-usluga.node--view-mode-full
  .mp-service-v1__body h2::before {

    flex-basis:
      22px;

    width:
      22px;
  }


  .node--type-usluga.node--view-mode-full
  .mp-service-v1__body ul,

  .node--type-usluga.node--view-mode-full
  .mp-service-v1__body ol {

    grid-template-columns:
      1fr;
  }

}


/* === END MP SERVICE CONTENT V1 === */



/* ============================================================
 * MP SERVICE HERO IMAGE V1
 * ============================================================ */

.node--type-usluga.node--view-mode-full
.mp-service-v1__content
> .field--name-field-image {

  width: 100%;

  margin:
    0 0 34px;

  overflow:
    hidden;

  aspect-ratio:
    16 / 7;

  background:
    #eef1f2;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__content
> .field--name-field-image
.field__item {

  width:
    100%;

  height:
    100%;
}


.node--type-usluga.node--view-mode-full
.mp-service-v1__content
> .field--name-field-image img {

  display:
    block;

  width:
    100% !important;

  height:
    100% !important;

  max-width:
    none !important;

  object-fit:
    cover;

  object-position:
    center;

  image-rendering:
    auto;
}


@media all and (max-width: 760px) {

  .node--type-usluga.node--view-mode-full
  .mp-service-v1__content
  > .field--name-field-image {

    margin-bottom:
      25px;

    aspect-ratio:
      16 / 9;
  }

}


/* === END MP SERVICE HERO IMAGE V1 === */



/* ============================================================
 * MP SERVICE HERO — FINAL BALANCE
 * ============================================================ */

@media all and (min-width: 761px) {

  .node--type-usluga.node--view-mode-full
  .mp-service-v1__content
  > .field--name-field-image {

    height:
      clamp(340px, 25vw, 415px) !important;

    max-height:
      415px !important;

    aspect-ratio:
      auto !important;
  }


  .node--type-usluga.node--view-mode-full
  .mp-service-v1__content
  > .field--name-field-image img {

    width:
      100% !important;

    height:
      100% !important;

    object-fit:
      cover !important;

    object-position:
      center center;
  }

}


/* === END MP SERVICE HERO FINAL BALANCE === */

