/**
 * Legacy LP product pages (decor-wrap pattern, e.g. /printer-a200).
 * Loaded after styles.css — overrides LP grid that depends on data-media-source.
 * Reference breakpoints: 1100px / 720px (/strujnye-printery).
 */

.container--u-i02dh9ez8:has(.decor-wrap),
.section--u-i7sbdubrk:has(.decor-wrap) .container--u-i02dh9ez8 {
  width: 100%;
  max-width: 1400px;
  box-sizing: border-box;
}

.container--u-i02dh9ez8:has(.decor-wrap) .content--u-iqk0s3a32,
.container--u-i02dh9ez8:has(.decor-wrap) .lpc-content-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.container--u-i02dh9ez8:has(.decor-wrap) .lpc-content-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 0 100px;
}

.decor-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  box-sizing: border-box;
}

.decor-wrap .lpc-wrap,
.decor-wrap .lpc-block,
.decor-wrap .lp-block-bg,
.decor-wrap .lpc-elements-headline__wrap,
.decor-wrap .lpc-elements-text-3__inner,
.decor-wrap .lpc-elements-text-3__wrap,
.decor-wrap .lpc-elements-text-1__container,
.decor-wrap .lpc-text-sticky-1__container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* LP grid fallback — col-12 must always span full width (headline blocks) */
.decor-wrap .lpc-row {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.decor-wrap [class*="lpc-col-12"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 0 0 100% !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.decor-wrap .lpc-elements-headline [class*="lpc-col-"],
.decor-wrap .lpc-elements-headline .lpc-row {
  margin-bottom: 0 !important;
}

.decor-wrap img,
.decor-wrap video,
.decor-wrap iframe,
.decor-wrap .lpc-block__video-inner,
.decor-wrap .lp-video-block-wrappper {
  max-width: 100%;
  height: auto;
}

/* Headline — main mobile bug fix (oversized clipped text on /printer-a200) */
.decor-wrap .lpc-elements-headline__title,
.decor-wrap .lpc-elements-headline .lp-header-title-2,
.decor-wrap .lpc-elements-headline .lpc-elements-headline__title.lp-header-title-2,
.decor-wrap [id^="_lp_block_"][data-block-layout="129707"] .lpc-elements-headline__title {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  font-size: clamp(18px, 5vw, 28px) !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  text-align: left !important;
  text-align-last: left !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto;
  box-sizing: border-box !important;
}

.decor-wrap .lp-header-title-2,
.decor-wrap .lpc-text-sticky-1__title {
  font-size: clamp(18px, 4.5vw, 32px) !important;
  line-height: 1.3 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.decor-wrap .lp-header-text-1,
.decor-wrap .lpc-elements-text-1__text,
.decor-wrap .lpc-elements-text-3__text,
.decor-wrap .lpc-text-sticky-1__text {
  font-size: clamp(15px, 2.5vw, 16px) !important;
  line-height: 1.65 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.container--u-i02dh9ez8:has(.decor-wrap) .div--u-iiknz6uyu {
  align-items: flex-start !important;
  text-align: left;
  width: 100%;
}

.container--u-i02dh9ez8:has(.decor-wrap) .mosaic-crumbs--u-ieguybj3m {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}

.container--u-i02dh9ez8:has(.decor-wrap) .page-title--u-iby14ne4d {
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.15;
  text-wrap: balance;
  width: 100%;
}

/* ── Tablet (≤1100px) — stack multi-column LP blocks ── */
@media (max-width: 1100px) {
  .decor-wrap [class*="lpc-col-6"],
  .decor-wrap [class*="lpc-col-8"],
  .decor-wrap [class*="lpc-col-4"],
  .decor-wrap [class*="lpc-col-3"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .decor-wrap .lpc-elements-text-3 .lpc-elements-text-3__photos._left,
  .decor-wrap .lpc-elements-text-3 .lpc-elements-text-3__photos._right {
    float: none !important;
    margin: 0 auto 20px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .decor-wrap .lpc-elements-text-3__photo-wrap {
    width: 100%;
    justify-content: center;
  }

  .decor-wrap .lpc-elements-text-3__photo,
  .decor-wrap .lpc-elements-text-3__photo img {
    max-width: 100%;
    width: auto;
    height: auto;
  }

  .decor-wrap .lpc-text-sticky-1__row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .decor-wrap .lpc-text-sticky-1__photos-wrap {
    order: 1 !important;
    position: static !important;
    width: 100% !important;
    margin-bottom: 16px !important;
  }

  .decor-wrap .lpc-text-sticky-1__body-wrap,
  .decor-wrap .lpc-text-sticky-1__body-small {
    order: 2 !important;
    position: static !important;
    width: 100% !important;
  }

  .decor-wrap .lpc-sticky-style {
    position: static !important;
    top: auto !important;
  }

  .decor-wrap .lpc-text-sticky-1__photo {
    position: relative !important;
    inset: auto !important;
  }

  .decor-wrap .lpc-text-sticky-1__photos .lpc-block__img-inner {
    position: relative !important;
    padding-bottom: 0 !important;
    height: auto !important;
  }

  .decor-wrap .lpc-product-7__row {
    flex-direction: column !important;
  }

  .decor-wrap .lpc-product-7__images,
  .decor-wrap .lpc-product-7__info {
    width: 100% !important;
    max-width: 100% !important;
  }

  .decor-wrap .lpc-video-2__row,
  .decor-wrap .lpc-video-2__videos {
    flex-direction: column !important;
  }

  .decor-wrap .lpc-video-2__videos-item {
    width: 100% !important;
    max-width: 100% !important;
  }

  .decor-wrap .lpc-elements-photo-2__photos-item {
    width: 100% !important;
    max-width: 100% !important;
  }

  .decor-wrap .lpc-elements-photo-1__photos._four,
  .decor-wrap .lpc-elements-photo-1__row._four {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 !important;
    width: 100% !important;
  }

  .decor-wrap .lpc-elements-photo-1__photos-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .decor-wrap .lpc-gallery-1__carousel .splide__list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px;
  }

  .decor-wrap .lpc-numbered-list__inner {
    flex-direction: column !important;
  }
}

/* ── Mobile (≤720px) ── */
@media (max-width: 720px) {
  .container--u-i02dh9ez8:has(.decor-wrap) .lpc-content-wrapper {
    padding: 24px 12px 40px;
  }

  .section--u-i7sbdubrk:has(.decor-wrap) {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .container--u-i02dh9ez8:has(.decor-wrap) {
    padding-top: 16px !important;
    padding-bottom: 32px !important;
  }

  .container--u-i02dh9ez8:has(.decor-wrap) .mosaic-crumbs--u-ieguybj3m {
    font-size: 12px;
    margin-bottom: 12px !important;
  }

  .container--u-i02dh9ez8:has(.decor-wrap) .page-title--u-iby14ne4d {
    margin-bottom: 8px;
  }

  .decor-wrap .lpc-elements-headline._headline_2 {
    padding: 16px 0 8px;
  }

  .decor-wrap .lpc-elements-headline__title,
  .decor-wrap .lpc-elements-headline .lp-header-title-2 {
    font-size: clamp(17px, 4.8vw, 24px) !important;
  }

  .decor-wrap .lpc-elements-text-3__text-wrap {
    padding: 0 !important;
  }

  .decor-wrap .lpc-elements-text-3 {
    padding: 8px 0 20px;
  }

  .decor-wrap .lpc-elements-photo-1__photos._four,
  .decor-wrap .lpc-elements-photo-1__row._four {
    grid-template-columns: 1fr !important;
  }

  .decor-wrap .lpc-elements-photo-1__photos-item[class*="lpc-col-6"] {
    width: calc(50% - 8px) !important;
    flex: 0 0 calc(50% - 8px) !important;
  }

  .decor-wrap .lpc-gallery-1__carousel .splide__list {
    grid-template-columns: 1fr !important;
  }

  .decor-wrap .lpc-numbered-list__body {
    padding-left: 0 !important;
  }

  .decor-wrap .lpc-product-7__options-left,
  .decor-wrap .lpc-product-7__options-right {
    width: 100% !important;
  }

  .decor-wrap .lpc-product-7__options-item {
    flex-direction: column !important;
    gap: 4px;
  }

  .decor-wrap table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .decor-wrap .splide__arrow--prev {
    left: 0 !important;
  }

  .decor-wrap .splide__arrow--next {
    right: 0 !important;
  }
}
