/* Artykuły Leanpassion zachowują układ modułów z publikacji źródłowej. */
.lp-case {
  --case-width: min(90%, 1140px);
  --case-text: #554c47;
  color: var(--case-text);
  overflow-wrap: break-word;
}

.lp-case :is(.module-wrapper, .pagewidth) {
  width: var(--case-width);
  margin-inline: auto;
}

.lp-case :is(.numbers, .three_cols, .photo_quote, .t-p-t, .txt-editor, .s-i, .quotes-video, .section_newsletter, .footer-cta) {
  font-size: 1rem;
  line-height: 1.75;
}

.lp-case :is(.desc, .content__desc, .txt-editor__cols, .s-i__desc) ul { list-style: disc outside; }
.lp-case :is(.desc, .content__desc, .txt-editor__cols, .s-i__desc) ol { list-style: decimal outside; }
.lp-case :is(.desc, .content__desc, .txt-editor__cols, .s-i__desc) li { padding-block: 10px; }
.lp-case :is(.desc, .content__desc, .txt-editor__cols, .s-i__desc) :is(ul, ol) :is(ul, ol) { padding-inline-start: 1.5em; }
.lp-case :is(.desc, .content__desc, .txt-editor__cols, .s-i__desc, .wpcf7-list-item-label) a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: .15em;
}
.lp-case :is(.desc, .content__desc, .txt-editor__cols) pre {
  margin: 1em 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.lp-case :is(.numbers__wrapper, .three_cols__wrapper) { padding-inline: 20px; }
.lp-case .numbers__slider { position: relative; margin-block: 15px; }
.lp-case .numbers .swiper-wrapper { display: flex; align-items: flex-start; }
.lp-case .numbers__slide {
  min-width: 0;
  flex: 1 1 0;
  text-align: center;
}
.lp-case .numbers__slide + .numbers__slide { border-inline-start: 1px solid var(--line); }
.lp-case .numbers__slide .slide-wrapper { padding-inline: 20px; }
.lp-case .numbers__slide .number { color: var(--wine); font-size: 1.75rem; font-weight: 700; line-height: 1.6; }
.lp-case :is(.swiper-button-prev, .swiper-button-next, .quotes-video__mobile-navigation) { display: none; }

.lp-case .three_cols { margin: 144px 0 100px; }
.lp-case :is(.numbers, .txt-editor) + .three_cols { margin-top: 60px; }
.lp-case .three_cols__wrapper { display: flex; flex-wrap: wrap; justify-content: space-between; }
.lp-case .three_cols__tile { flex: 0 0 27%; min-width: 0; }
.lp-case .three_cols__tile .tile-wrapper { padding: 24px 20px 24px 24px; }
.lp-case :is(.three_cols__tile, .s-i__slide) .icon img {
  width: auto;
  max-width: min(80px, 100%);
  height: auto;
  max-height: 80px;
  margin-inline: auto;
}
.lp-case .tile-link:is([href=""], :not([href])) { display: none; }
.lp-case :is(.three_cols__tile .title, .t-p-t__row .content__title, .s-i__slide .title) {
  color: var(--ink);
  font: 700 1.25rem/1.8 Barlow, Arial, sans-serif;
  letter-spacing: normal;
}
.lp-case .three_cols__tile .title { position: relative; margin: 24px 0 25px; }
.lp-case .three_cols__tile .title::after {
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 56px;
  height: 2px;
  background: var(--wine);
  content: "";
}
.lp-case .three_cols__tile .desc { margin-top: 25px; }

.lp-case .photo_quote { padding-top: 30px; }
.lp-case .photo_quote__wrapper, .lp-case .photo_quote__slide { position: relative; }
.lp-case .photo_quote :is(.image, .video) {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 100 / 41.3;
  margin-top: -120px;
  top: 40px;
  border-radius: 24px;
}
.lp-case .photo_quote :is(.image img, video), .lp-case .quotes-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-case .photo_quote__slide .slide-wrapper {
  position: relative;
  width: 93%;
  margin: 0 auto 64px;
  padding: 24px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 24px 64px -22px rgb(42 37 35 / 18%);
}
.lp-case .photo_quote .desc { padding-bottom: 24px; }
.lp-case .photo_quote blockquote { margin: 1em 40px; }
.lp-case .photo_quote .author { border-top: 1px solid var(--line); padding-top: 23px; }
.lp-case .photo_quote .author-row .quote:not(:empty) { padding-bottom: 16px; }
.lp-case .photo_quote .author .content { text-align: right; }
.lp-case .photo_quote .name { font-size: .9375rem; font-weight: 700; color: var(--ink); margin: 12px 0 3px; }
.lp-case .photo_quote .position { font-size: .875rem; line-height: 1.35; }
.lp-case .video-button { display: none; } /* Sterowanie odtwarzaczem zapewnia natywny element video. */

.lp-case .t-p-t { padding-top: 83px; }
.lp-case .t-p-t__title {
  margin: 0 auto 30px;
  text-align: center;
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.lp-case .t-p-t__subtitle { max-width: 71%; margin-inline: auto; text-align: center; }
.lp-case .t-p-t__row { display: flex; justify-content: space-between; padding-block: 83px; }
.lp-case .t-p-t__row:last-child { padding-bottom: 52px; }
.lp-case .t-p-t__row .content { flex: 0 0 39%; min-width: 0; }
.lp-case .t-p-t__row:nth-child(even) .content { order: 2; flex-basis: 43.5%; }
.lp-case .t-p-t__row .content__icon img { max-height: 80px; width: auto; }
.lp-case .t-p-t__row .content__title { margin: 8px 0 16px; }
.lp-case .t-p-t__row .content__desc { margin-bottom: 40px; }
.lp-case .t-p-t__row .img-wrapper { flex: 0 0 50%; min-width: 0; }
.lp-case .t-p-t__row .img-wrapper__img { max-width: 60%; margin: 14px 0 0 auto; }
.lp-case .t-p-t__row:nth-child(even) .img-wrapper__img { margin-inline: 0 auto; }
.lp-case .t-p-t__row .img-wrapper__img img { height: auto; }
.lp-case .rtecenter { text-align: center; }

.lp-case .txt-editor { padding-block: 20px; }
.lp-case :is(.txt-editor__title, .s-i__title, .quotes-video__title) {
  color: var(--ink);
  font-size: clamp(2.09375rem, 3.125vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .016em;
  line-height: 1.22;
  text-transform: uppercase;
}
.lp-case .txt-editor__desc {
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.32;
  text-transform: uppercase;
}
.lp-case :is(.txt-editor__desc, .s-i__title.no-subtitle, .quotes-video__title):not(:empty)::after {
  display: block;
  width: min(173px, 100%);
  height: 3px;
  margin-top: 10px;
  background: var(--wine);
  content: "";
}
.lp-case :is(.txt-editor__cols, .s-i__desc) { color: var(--ink); font-size: 1rem; line-height: 1.93; }
.lp-case .txt-editor__cols { margin-top: 30px; }
.lp-case .txt-editor__cols :is(ul, ol) { padding-inline-start: 20px; }
.lp-case .txt-editor p { padding-block: 10px; }
.lp-case .txt-editor :is(h1, h2) { margin-top: 30px; font-size: 2.5rem; line-height: 1.15; }
.lp-case .txt-editor :is(h3, h4, h5, h6) { margin: 0; font-size: 1.5rem; line-height: 1.5; font-weight: 700; }
.lp-case .txt-editor img { height: auto; }
.lp-case .spacer { padding-top: 50px; }

.lp-case .s-i { padding-top: 30px; }
.lp-case .s-i__wrapper { padding-inline: 16px; }
.lp-case .s-i__desc { padding-top: 19px; }
.lp-case .s-i__slider { margin-inline: 50px; padding: 30px 0; }
.lp-case .s-i__slider .swiper-wrapper { display: flex; }
.lp-case .s-i__slide { flex: 1 1 0; min-width: 0; margin-bottom: 20px; }
.lp-case .s-i__slide .slide-wrapper { margin-inline: 10px; padding-inline: 20px; }
.lp-case .s-i__slider[data-count="5"] .s-i__slide { flex: 0 0 20%; }
.lp-case .s-i__slide .title { margin: 10px 0 8px; }
.lp-case .s-i__slider-mobile { display: none; }

.lp-case .quotes-video { margin: 60px 0 0; }
.lp-case .quotes-video__title { margin: 0 0 30px; }
.lp-case .quotes-video__slide { position: relative; }
.lp-case .quotes-video .video { position: relative; max-width: calc(100% - 50px); margin: auto; aspect-ratio: 16/9; overflow: hidden; border-radius: 24px; }
.lp-case .quotes-video .company-logo { position: absolute; right: 40px; top: 20px; z-index: 2; }
.lp-case .quotes-video__textbox { display: none; }
.lp-case .quotes-video__slide .slide-wrapper {
  width: calc(100% - 50px);
  margin: 25px auto 64px;
  padding: 24px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 8px 32px rgb(42 37 35 / 10%);
}
.lp-case .quotes-video .author { margin-top: 14px; }
.lp-case .quotes-video .name { font-weight: 700; }
.lp-case .quotes-video .position { font-size: .875rem; }
.lp-case .steps-inline__wrapper { padding-inline: 20px; }

.lp-case .section_newsletter { padding: 50px 0 60px; }
.lp-case .newsletter {
  position: relative;
  max-width: 815px;
  margin: 110px auto;
  padding: 48px 40px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 24px 64px -22px rgb(42 37 35 / 18%);
}
.lp-case .newsletter__icon {
  width: 88px;
  height: 88px;
  margin: -110px auto 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card) url("../../assets/opisy-projektow/call-3.png") center no-repeat;
}
.lp-case .form__row { display: flex; margin: 0 -12px 24px; padding-inline: 15px; }
.lp-case .form__input-wrapper { flex: 1 1 0; min-width: 0; padding-inline: 12px; }
.lp-case .wpcf7 .form__input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 5px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.lp-case .wpcf7 .form__input:focus { border-color: var(--wine); }
.lp-case .wpcf7 .form__input:user-invalid { border-color: var(--brand); }
.lp-case .wpcf7 .wpcf7-response-output:empty { display: none; }
.lp-case .wpcf7 .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.lp-case .wpcf7-acceptance label { cursor: pointer; }
.lp-case .wpcf7-acceptance input { accent-color: var(--wine); margin-inline: 0 6px; }
.lp-case .wpcf7-list-item-label { font-size: 1rem; line-height: 1.75; }
.lp-case .form__row_submit { justify-content: center; margin: 48px 0 0; }
.lp-case .wpcf7 .wpcf7-response-output { margin-top: 20px; text-align: center; }
.lp-case :is(.wpcf7-submit, .footer-cta__link) {
  display: inline-block;
  border: 0;
  border-radius: 2px;
  padding: 10px 34px;
  background: var(--wine);
  color: var(--paper);
  font: 500 1rem/1.5 Barlow, Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}
.lp-case :is(.wpcf7-submit, .footer-cta__link):hover { background: var(--brand); }
.lp-case .footer-cta { padding-top: 73px; color: var(--paper); background: var(--night); text-align: center; }
.lp-case .footer-cta__title { max-width: 75%; margin: 0 auto 16px; font-size: 2.5rem; line-height: 1.2; }
.lp-case .footer-cta__desc { max-width: 75%; margin: 31px auto 40px; padding-bottom: 30px; color: var(--on-dark); }
.lp-case .footer-cta__link { margin-bottom: 43px; }
.lp-case .footer-cta__shape svg { margin-inline: auto; }

@media (min-width: 1280px) {
  .lp-case :is(.txt-editor__cols, .s-i__desc) { font-size: 1.0625rem; }
  .lp-case .s-i__slider { padding-top: 80px; }
  .lp-case .s-i__slide .slide-wrapper { padding-inline: 10px; }
  .lp-case .section_newsletter { padding-top: 100px; }
  .lp-case .quotes-video { margin-bottom: 50px; }
  .lp-case .quotes-video .video { aspect-ratio: 2/1; }
  .lp-case .quotes-video__textbox {
    display: block;
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    padding: 48px 30px 60px;
    background: linear-gradient(transparent, rgb(32 28 27 / 88%));
    color: white;
    pointer-events: none;
  }
  .lp-case .quotes-video__textbox .name { font-size: 1.375rem; }
  .lp-case .quotes-video__textbox .quote { margin-top: 20px; }
  .lp-case .quotes-video__slide:has(.quotes-video__textbox) .slide-wrapper { display: none; }
  .lp-case .quotes-video .video:has(video:playing) .quotes-video__textbox { display: none; }
}

@media (max-width: 1023px) {
  .lp-case .three_cols { margin: 60px 0; }
  .lp-case .three_cols__tile { flex-basis: 33%; margin-bottom: 30px; }
  .lp-case .photo_quote { padding: 0; }
  .lp-case .photo_quote :is(.image, .video) { margin-top: -80px; }
  .lp-case .t-p-t__row .img-wrapper__img { max-width: 75%; }
}

@media (max-width: 767px) {
  .lp-case .three_cols__tile { flex-basis: 100%; }
  .lp-case .numbers .swiper-wrapper {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .lp-case .numbers__slide { flex: 0 0 100%; scroll-snap-align: start; }
  .lp-case .numbers__slide:has(.number:empty):has(.desc:empty) { display: none; }
  .lp-case .numbers__slide + .numbers__slide { border: 0; }
  .lp-case .numbers__slide .slide-wrapper { padding: 25px 22px; }
  .lp-case .numbers__slider:has(.numbers__slide:nth-child(2)) :is(.swiper-button-prev, .swiper-button-next) {
    display: grid;
    place-items: center;
    position: absolute;
    top: calc(50% - 22px);
    width: 32px;
    height: 44px;
    color: var(--wine);
    cursor: pointer;
  }
  .lp-case .numbers .swiper-button-prev { left: -16px; }
  .lp-case .numbers .swiper-button-next { right: -16px; }
  .lp-case .numbers :is(.swiper-button-prev, .swiper-button-next)::before {
    content: "";
    width: 9px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
  }
  .lp-case .numbers .swiper-button-prev::before { transform: rotate(135deg); }
  .lp-case .numbers__slider :is(.swiper-button-disabled, [disabled], [aria-disabled="true"]) { visibility: hidden; }
  .lp-case .photo_quote :is(.image, .video) { aspect-ratio: 100 / 55.5; }
  .lp-case .photo_quote__slide .slide-wrapper { margin-bottom: 35px; }
  .lp-case .t-p-t { padding-top: 60px; }
  .lp-case .t-p-t__title, .lp-case .footer-cta__title { font-size: 2rem; }
  .lp-case .t-p-t__subtitle { max-width: none; }
  .lp-case .t-p-t__row, .lp-case .t-p-t__row:last-child { display: block; padding-block: 33px; }
  .lp-case .t-p-t__row .content__desc { margin-bottom: 32px; }
  .lp-case .t-p-t__row:nth-child(even) .content__icon img { margin-left: auto; }
  .lp-case .t-p-t__row .img-wrapper__img, .lp-case .t-p-t__row:nth-child(even) .img-wrapper__img { margin: 0; }
  .lp-case .txt-editor { padding: 10px 0 0; }
  .lp-case .spacer { padding-top: 30px; }
  .lp-case .s-i__slider { display: none; }
  .lp-case .s-i__slider-mobile { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; padding-block: 30px; }
  .lp-case .s-i__slide { margin: 0; }
  .lp-case .s-i__slide .slide-wrapper { height: 100%; margin: 0; background: var(--card); padding: 20px; border-radius: 24px; }
  .lp-case .quotes-video__slide .slide-wrapper, .lp-case .quotes-video .video { width: 100%; max-width: 100%; }
  .lp-case .quotes-video__slide .slide-wrapper { margin: 20px auto 25px; }
  .lp-case .section_newsletter { padding-bottom: 25px; }
  .lp-case .newsletter { margin: 0; padding: 0; background: transparent; box-shadow: none; }
  .lp-case .newsletter__icon { display: none; }
  .lp-case .form__row { flex-direction: column; margin: 0; padding-inline: 0; }
  .lp-case .form__input-wrapper { margin-bottom: 12px; }
  .lp-case .wpcf7 .form__input { padding-inline: 15px; }
  .lp-case .form__row_submit { margin: 48px 0 40px; align-items: center; }
  .lp-case .footer-cta { padding-top: 46px; }
  .lp-case .footer-cta__title { max-width: 100%; margin-bottom: 29px; }
  .lp-case .footer-cta__desc { max-width: 100%; margin: 0 0 16px; }
  .lp-case .footer-cta__link { margin-bottom: 18px; }
}

@media (max-width: 575px) {
  .lp-case .photo_quote :is(.image, .video) { margin-top: -40px; }
}
