/**
 * FAQ-секція: desktop з home.css + tablet/mobile з wf/css/wf-media.css.
 * Підключається ПІСЛЯ layout-base, щоб em-розміри Webflow не перебивались.
 */

/* —— Desktop —— */
html .section.faq {
  padding-top: 4.86111em;
  overflow: visible;
}

html .l-text.faq {
  color: #1c1c22;
  font-size: 1.38889em;
  font-weight: 700;
  line-height: 120%;
}

html .l-text.faq-top {
  color: #000;
  font-size: 1.38889em;
  font-weight: 500;
  line-height: 120%;
}

html .m-text.faq-bottom {
  color: #000;
  font-size: 1.1em;
  font-weight: 300;
}

html .s-text.faq-left {
  color: #383843;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
}

html .s-text.faq-pp {
  color: #383843;
  font-size: 1em;
  font-weight: 400;
}

html .h2.leader-sale.faq_title {
  max-width: 100%;
}

html .faq-main-wrapper {
  grid-column-gap: 4.86111em;
  grid-row-gap: 4.86111em;
  display: flex;
}

html .faq-left-side {
  background-color: #f6f6f6;
  border-radius: 1.04167em;
  flex-flow: column;
  flex: none;
  max-width: 29.1667em;
  padding: 1.04167em 1.04167em 2.77778em;
  display: flex;
  position: sticky;
  top: 12.5em;
  box-shadow: 0 0 1.5em #00000052;
}

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

html .faq-left-side-info-wrapper {
  grid-column-gap: 0.694444em;
  grid-row-gap: 0.694444em;
  flex-flow: column;
  max-width: 100%;
  margin-top: 2.08333em;
  display: flex;
}

html .faq-form-main-block {
  margin-top: 2.08333em;
  margin-bottom: 0;
}

html .faq-form {
  grid-column-gap: 1.04167em;
  grid-row-gap: 1.04167em;
  flex-flow: column;
  display: flex;
}

html .faq-form-text-field {
  color: #121323;
  border-radius: 0.277778em;
  height: 2.77778em;
  margin-bottom: 0;
  padding: 0 1.38889em;
  font-size: 1em;
  box-sizing: border-box;
}

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

html .faq-form-text-field:hover,
html .faq-form-text-field:focus {
  color: #121323;
}

html .primmary-button {
  grid-column-gap: 0.694444em;
  grid-row-gap: 0.694444em;
  background-color: #c61717;
  border-radius: 0.694444em;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1.73611em;
  padding: 1.38889em 1.73611em;
  display: flex;
}

html .section.faq .b-text,
html .faq-form .b-text {
  color: #fff;
  padding: 0;
  font-size: 1.2em;
  font-weight: 500;
  line-height: 125%;
}

html .faq-form-pp-wrapper {
  margin-top: 1.38889em;
}

html .faq-pp-link {
  color: #a51212;
  text-decoration: underline;
}

html .faq-right-side {
  flex: 1;
}

html .faq-items-wrapper {
  flex-flow: column;
  margin-top: 2.77778em;
  display: flex;
}

html .faq-item-wrapper {
  cursor: pointer;
  border-top: 0.0694445em solid #0000001a;
  flex-flow: column;
  padding-top: 1.5em;
  padding-bottom: 1.5em;
  display: flex;
}

html .faq-top-wrapper {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

html .faq-top-close-wrapper {
  background-color: #c61717;
  border-radius: 69.4444em;
  justify-content: center;
  align-items: center;
  width: 3.47222em;
  height: 3.47222em;
  display: flex;
  flex-shrink: 0;
}

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

html .faq-bottom-wrapper {
  max-width: 55em;
  transition: height 0.2s;
  position: relative;
  overflow: hidden;
}

html .faq-space {
  height: 2.08333em;
  transition: height 0.2s;
}

html .faq-left-side-main {
  position: relative;
}

/* —— ≤991 tablet: 2 колонки в 1 ряд —— */
@media screen and (max-width: 991px) and (min-width: 768px) {
  html .faq-main-wrapper {
    flex-flow: row !important;
    align-items: flex-start;
    grid-column-gap: 2.5em;
    grid-row-gap: 2.5em;
  }

  html .faq-left-side-main {
    flex: 0 0 auto;
    width: min(29.1667em, 38%);
    max-width: 38%;
  }

  html .faq-left-side {
    max-width: 100%;
    width: 100%;
    position: static;
    top: auto;
  }

  html .faq-right-side {
    flex: 1 1 0;
    min-width: 0;
  }

  html .h2.leader-sale.faq_title {
    max-width: 100%;
    font-size: 1.8em;
  }

  html .s-text.faq-left {
    font-size: 14px;
  }

  html .s-text.faq-pp {
    font-size: 12px;
  }

  html .l-text.faq {
    font-size: 1.25em;
  }

  html .l-text.faq-top {
    font-size: 1.15em;
  }
}

/*
 * 480–767 (як leader-tools ~509): desktop-пропорції —
 * форма max 29.1667em зліва, FAQ справа, без bump шрифтів.
 */
@media screen and (max-width: 767px) and (min-width: 480px) {
  html .section.faq {
    padding-top: 2em;
  }

  html .faq-main-wrapper {
    flex-flow: row !important;
    align-items: flex-start;
    grid-column-gap: 4.86111em;
    grid-row-gap: 4.86111em;
  }

  html .faq-left-side-main {
    order: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }

  html .faq-left-side {
    max-width: 29.1667em !important;
    width: 29.1667em;
    position: static;
    top: auto;
  }

  html .faq-left-side-img {
    aspect-ratio: auto;
    height: auto;
  }

  html .faq-right-side {
    order: 0;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
  }

  /* Як на проді: лишаємо desktop em, лише дрібний опис форми */
  html .s-text.faq-left {
    font-size: 6px;
  }

  html .h2.leader-sale.faq_title {
    max-width: 100%;
    font-size: 2.6em;
  }
}

/* —— Phone ≤479 (wf-media.css): колонка, форма знизу —— */
@media screen and (max-width: 479px) {
  html .section.faq {
    padding-top: 16em;
  }

  html .h2.leader-sale.faq_title {
    max-width: 100%;
  }

  html .l-text.faq {
    opacity: 1;
    font-size: 5em;
  }

  html .l-text.faq-top {
    font-size: 4.5em;
    font-weight: 500;
  }

  html .m-text.faq-bottom {
    font-size: 3.2em;
  }

  html .s-text.faq-left {
    font-size: 3.4em;
  }

  html .s-text.faq-pp {
    font-size: 3em;
  }

  html .faq-main-wrapper {
    grid-column-gap: 16em;
    grid-row-gap: 16em;
    flex-flow: column !important;
    align-items: stretch;
  }

  html .faq-right-side {
    order: 1;
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  html .faq-left-side-main {
    order: 2;
    width: 100% !important;
    max-width: 100% !important;
    flex: none;
    position: static;
  }

  html .faq-left-side {
    border-radius: 4em;
    max-width: 100% !important;
    width: 100%;
    padding: 2.66667em 2.66667em 8em;
    position: static;
  }

  html .faq-left-side-img {
    border-radius: 2.66667em;
  }

  html .faq-left-side-info-wrapper {
    grid-column-gap: 2.66667em;
    grid-row-gap: 2.66667em;
    max-width: none;
    margin-top: 8em;
  }

  html .faq-form-main-block {
    margin-top: 8em;
  }

  html .faq-form {
    grid-column-gap: 4em;
    grid-row-gap: 4em;
  }

  html .primmary-button {
    grid-column-gap: 2.66667em;
    grid-row-gap: 2.66667em;
    border-radius: 2.66667em;
    margin-top: 6.66667em;
    padding-top: 4.53333em;
    padding-bottom: 4.53333em;
  }

  html .section.faq .b-text,
  html .faq-form .b-text {
    color: #fff;
    font-size: 4.8em;
  }

  html .faq-form-text-field,
  html .faq-form-text-field.payment_popup {
    height: 3em;
    font-size: 4em;
  }

  html .faq-form-pp-wrapper {
    margin-top: 5.33333em;
  }

  html .faq-items-wrapper {
    margin-top: 10.6667em;
  }

  html .faq-item-wrapper {
    border-top-width: 0.266667em;
    padding-top: 8em;
    padding-bottom: 8em;
  }

  html .faq-top-wrapper {
    grid-column-gap: 4em;
    grid-row-gap: 4em;
  }

  html .faq-top-close-wrapper {
    flex: none;
    width: 12em;
    height: 12em;
  }

  html .faq-top-close-img {
    width: 6.66667em;
    height: 6.66667em;
  }

  html .faq-bottom-wrapper {
    max-width: none;
  }

  html .faq-space {
    height: 5.33333em;
  }

  html .faq-left-side-main {
    order: 0;
    position: static;
  }
}
