/* Loaded LAST after Webflow + /css/app/* (main.css тощо). Next-патчі міграції.
   База 1vw / хедер / слайдери вже в main.css — тут лише дельти для App Router. */

html body,
html body.body {
  margin: 0;
  font-size: 1vw !important;
  font-family: Inter, Arial, sans-serif;
}

@media screen and (min-width: 1440px) {
  html body,
  html body.body {
    font-size: 14.4px !important;
  }
}

html h1,
html h2,
html .h1,
html .h2 {
  font-family: 'Inter accent', Inter, sans-serif;
}

html a {
  text-decoration: none;
  color: inherit;
}

.header-section .header-navlink,
.header-section .header-phone-text {
  color: #fff;
}

.container,
.container-new,
.navbar-container,
.w-layout-blockcontainer.container-new,
.container-new.w-container,
.w-layout-blockcontainer.container-new.w-container {
  max-width: 1440px !important;
  width: 100%;
}

.w-layout-blockcontainer.container-new,
.container-new.w-container {
  margin-left: auto;
  margin-right: auto;
}

.faq-bottom-wrapper,
.faq-space {
  height: 0;
}

.leader-cl {
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.leader-cl::-webkit-scrollbar {
  display: none;
}

[data-text='text-3-lines'],
.text_with_dots_1 {
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.effect-zoom-hover:hover > div,
.effect-zoom-hover:hover > img {
  transform: scale(1.02);
}

.effect-zoom-hover > div,
.effect-zoom-hover > img {
  transition: 0.3s;
}

/* Інлайн-стилі з wf/index.html: позиціонування фото, hover і кнопка кошика. */
.leader-card-img-wrapper .w-embed {
  position: absolute;
  inset: 0;
}

.product-image {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image.is-second {
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}

.leader-ci .add-to-cart-new {
  opacity: 0;
  transition: 0.2s;
}

@media (min-width: 992px) {
  .leader-card-wrapper:hover .product-image.is-second {
    opacity: 1;
  }

  .leader-ci:hover .add-to-cart-new {
    opacity: 1;
  }
}

.leader-card-discount-wrapper:has([discount='percent']:empty),
.leader-card-discount-wrapper:has([discount='percentage']:empty) {
  display: none !important;
}

html .leader-card-discount-wrapper {
  background-color: #c61717;
}

html .leader-card-discount-wrapper .xxs-text {
  color: #fff;
}

/* CLS: aspect-ratio без фіксованої ширини — розміри лишає home.css / wf-media. */
html .prod-rew-img,
html .prod-rew-img.product,
html .star-icon.product {
  aspect-ratio: 1;
  object-fit: contain;
}

html .faq-left-side-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

html .faq-top-close-img {
  aspect-ratio: 1;
  object-fit: contain;
}

html .header-new-dropdown-icon {
  width: 1.5em;
  height: 1.5em;
  aspect-ratio: 1;
  object-fit: contain;
  flex-shrink: 0;
}

html .actions-cell > .image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html .leader-card-wrapper.is-info .image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FAQ inputs: лише контраст кольору (розміри — у FAQSection.css). */
html .faq-form-text-field,
html .faq-form-text-field:hover,
html .faq-form-text-field:focus {
  color: #121323;
}

html .faq-form-text-field::placeholder {
  color: #4a4a55;
  opacity: 1;
}

/* Мобільні/планшетні колекції: нативний горизонтальний скрол (Swiper off <768). */
@media screen and (max-width: 767px) {
  html .section.leader .catalog-show-desktop,
  html .section.info .catalog-show-desktop {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  html .section.leader .leader-main-wrapper.slider,
  html .section.info .leader-main-wrapper.slider {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  html .section.leader .leader-clw.swiper,
  html .section.info .leader-clw.swiper {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    touch-action: pan-x pan-y !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  html .section.leader .leader-clw.swiper::-webkit-scrollbar,
  html .section.info .leader-clw.swiper::-webkit-scrollbar {
    display: none;
  }

  html .section.leader .leader-clw.swiper .leader-cl.swiper-wrapper,
  html .section.info .leader-clw.swiper .leader-cl.swiper-wrapper {
    transform: none !important;
    transition: none !important;
    overflow: visible !important;
    width: max-content !important;
    touch-action: pan-x pan-y !important;
  }

  html .section.leader .leader-ci.swiper-slide,
  html .section.info .leader-ci.swiper-slide {
    flex: 0 0 auto;
  }

  html .section.leader .leader-ci .add-to-cart-new {
    opacity: 1;
  }

  html .leader-slider-button {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
}

/* SEO-блок головної: h1/h2 з wf/index.html (home.css + site.css). */
html .section.leader.txt {
  padding-top: 0;
  padding-bottom: 1.54167em;
}

html .container.leader.txt {
  padding-left: 12em;
  padding-right: 12em;
}

html .heading-14 {
  color: var(--heading);
  text-align: center;
}

html .heading-15 {
  font-family: Inter, Arial, sans-serif;
  color: #616161;
  text-align: center;
  font-size: 24px;
  font-weight: 400;
}

@media screen and (max-width: 991px) {
  html .heading-14 {
    font-size: 28px;
    line-height: 32px;
  }

  html .heading-15 {
    font-size: 18px;
    line-height: 24px;
  }
}

@media screen and (max-width: 767px) {
  html .section.leader.txt {
    padding-top: 0;
  }

  html .container.leader.txt {
    padding-left: 4em;
    padding-right: 4em;
  }
}

@media screen and (max-width: 479px) {
  html .heading-14 {
    font-size: 20px;
    line-height: 28px;
  }

  html .heading-15 {
    font-size: 14px;
    line-height: 20px;
  }
}

/* Блок «Корисна інформація» — деталі в InfoSection.css (після layout-base). */
html .section.info {
  padding: 60px 0;
  background: #fff;
}

html .section.info .info-block {
  height: auto;
}

html .section.info .h2.leader-sale.pc {
  font-size: 2.5em;
}

html .section.info .br {
  display: inline;
}

html .section.info .hide-on-mobile {
  display: inline;
}

@media screen and (max-width: 767px) {
  html .section.info {
    padding: 40px 0;
  }

  html .section.info .hide-on-mobile {
    display: none;
  }

  html .section.info .br {
    display: block;
  }
}

@media screen and (max-width: 479px) {
  html .section.info {
    padding: 30px 0;
  }
}

/* Блок акцій — Webflow: 1 рядок, широкий лівий (span 2) + 2 квадрати */
html .section.actions-new {
  padding: 60px 0;
}

html .actions-grid {
  display: grid;
  box-sizing: border-box;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  grid-auto-flow: row;
  grid-auto-columns: 1fr;
  grid-column-gap: 1.38889em;
  grid-row-gap: 1.38889em;
  align-items: stretch;
  height: auto;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

html .actions-grid > #w-node-f8de5c08-ba39-b264-e845-70c768e4fc36-ce892b4e,
html .actions-grid > .actions-cell:first-child {
  grid-area: span 1 / span 2;
  grid-column: span 2;
  grid-row: span 1;
  aspect-ratio: auto;
  min-height: 0;
}

html .actions-grid > #w-node-_7e0038e5-6247-7180-1790-e8a7721640e5-ce892b4e,
html .actions-grid > #w-node-_4a31f6f5-c365-3ca7-277c-0c247d75cfb9-ce892b4e {
  grid-area: span 1 / span 1;
  grid-column: span 1;
  grid-row: span 1;
}

html .actions-cell {
  position: relative;
  display: block;
  border-radius: 1.38889em;
  overflow: hidden;
  cursor: pointer;
  min-height: 0;
  min-width: 0;
}

html .actions-cell.is-shadow {
  aspect-ratio: 1;
  box-shadow: 0 2px 5px #0003;
}

html .actions-cell .image-cover,
html .actions-cell > .image-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

html .modal-box {
  display: flex;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: flex-start;
  padding: 5em 20px;
  overflow-y: auto;
  position: fixed;
  inset: 0;
}

html .modal {
  background: #fff;
  border-radius: 10px;
  flex: 1;
  max-width: 49em;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 3em;
  position: relative;
}

html .modal-close {
  color: #fff;
  cursor: pointer;
  background-color: #c61717;
  border-radius: 0.347222em;
  width: 3em;
  height: 3em;
  padding: 0.5em;
  position: absolute;
  inset: 2em 2em auto auto;
}

html .h2-5.project_popup {
  color: #171717;
  text-transform: uppercase;
  font-size: 2.77778em;
  margin: 0 0 20px;
}

html .m-text.popup-project {
  color: #383843;
  font-weight: 400;
}

html .project-popup-line {
  background-color: #0003;
  height: 0.0694445em;
  margin: 30px 0;
}

html .actions-img {
  aspect-ratio: 1;
  border-radius: 0.694444em;
  width: 100%;
  height: 100%;
  margin-bottom: 30px;
}

html .project-info-wrapper.w-richtext {
  margin-top: 3.81944em;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

html .project-info-wrapper.w-richtext h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

html .project-info-wrapper.w-richtext p {
  margin-bottom: 12px;
}

html .project-info-wrapper.w-richtext strong {
  color: #b31218;
  font-weight: 600;
}

/* 480–767: як на leader-tools / ≤479 — широкий банер зверху, під ним 2 квадрати */
@media screen and (max-width: 767px) {
  html .section.actions-new {
    padding: 40px 0;
  }

  html .actions-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-flow: row;
    grid-column-gap: 1.38889em;
    grid-row-gap: 1.38889em;
  }

  html .actions-grid > #w-node-f8de5c08-ba39-b264-e845-70c768e4fc36-ce892b4e,
  html .actions-grid > .actions-cell:first-child {
    grid-column: 1 / -1 !important;
    grid-row: auto;
    grid-area: auto;
    aspect-ratio: 2 / 1;
    width: 100%;
  }

  html .actions-grid > #w-node-_7e0038e5-6247-7180-1790-e8a7721640e5-ce892b4e,
  html .actions-grid > #w-node-_4a31f6f5-c365-3ca7-277c-0c247d75cfb9-ce892b4e,
  html .actions-grid > .actions-cell.is-shadow {
    grid-column: auto;
    grid-area: auto;
    aspect-ratio: 1;
  }

  html .modal {
    padding: 30px 20px;
  }

  html .h2-5.project_popup {
    font-size: 24px;
  }
}

/* ≤479: ті самі пропорції, більші em-відступи з Webflow */
@media screen and (max-width: 479px) {
  html .actions-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-flow: row;
    grid-column-gap: 2.66667em;
    grid-row-gap: 2.66667em;
    padding-top: 1.5em;
    padding-bottom: 1.5em;
  }

  html .actions-grid > #w-node-f8de5c08-ba39-b264-e845-70c768e4fc36-ce892b4e,
  html .actions-grid > .actions-cell:first-child {
    grid-column: 1 / -1 !important;
    grid-row: auto;
    grid-area: auto;
    aspect-ratio: 2 / 1;
    width: 100%;
  }

  html .actions-grid > #w-node-_7e0038e5-6247-7180-1790-e8a7721640e5-ce892b4e,
  html .actions-grid > #w-node-_4a31f6f5-c365-3ca7-277c-0c247d75cfb9-ce892b4e,
  html .actions-grid > .actions-cell.is-shadow {
    grid-column: auto;
    grid-area: auto;
    aspect-ratio: 1;
  }

  html .modal {
    padding: 30px 20px;
    max-width: none;
    margin-left: 5em;
    margin-right: 5em;
  }

  html .modal-close {
    border-radius: 7px;
    width: 10em;
    height: 10em;
    padding: 1em;
  }

  html .h2-5.project_popup {
    font-size: 20px;
    width: 80%;
  }

  html .m-text.popup-project {
    font-size: 14px;
  }

  html .actions-img {
    border-radius: 2.66667em;
  }

  html .project-info-wrapper {
    margin-bottom: 2em;
  }
}

/* Product page: Webflow export ховає `.dop-cards` назавжди — у Vite блок заповнюється динамічно. */
html section.dop-cards[data-additional-products] {
  display: block;
}

html .wrapper_shapka:not(.swiper-visual-mask) {
  display: block;
}

/* Product video block — стилі з embed у wf/product/template.html */
html .ss-product-video-wrapper .video-block,
html .ss-product-video-wrapper .code-embed-5,
html .ss-product-video-wrapper .video-wrapper {
  width: 100%;
  height: 100%;
  min-height: inherit;
}

html .ss-product-video-wrapper .code-embed-5 {
  display: block;
  min-height: 35em;
}

html .ss-product-video-wrapper .video-wrapper {
  position: relative;
  min-height: 34em;
}

html iframe#obzoriframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 34em;
  border: 0;
}

html .leader-yt-facade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

html .leader-yt-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html .leader-yt-facade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

html .leader-yt-facade-play {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
  transition: transform 0.15s ease;
}

html .leader-yt-facade:hover .leader-yt-facade-play,
html .leader-yt-facade:focus-visible .leader-yt-facade-play {
  transform: scale(1.08);
}

@media (max-width: 991px) {
  html .ss-product-video-wrapper .code-embed-5,
  html .ss-product-video-wrapper .video-wrapper,
  html iframe#obzoriframe {
    min-height: 47em;
  }
}

/* WCAG 2.1 AA: непрозорий текст ≥ 4.5:1. Альфа-кольори (#00000080, #ffffff80) Chrome
   часто змішує з білим body і рахує як недостатній контраст. */
html .xs-text-new.articul,
html .xs-text-new.fs-prod-rew,
html .xs-text-new.fs-prod-rew.vidguk_main {
  color: #4a4a4a;
}

html .prod-plus-wrapper,
html .xs-text-new.plus {
  color: #1f5c18;
}

@media screen and (max-width: 467px) {
  html .header-new-dropdown-icon {
    width: 10em;
    height: 10em;
  }
}
