﻿/* FAQ page styles. */

.dw-page-hero--faq {
  --dw-faq-hero-visual-top: 0px;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(33rem, 50vw, 37rem);
  padding: calc(92px + var(--space-2xl)) 0 clamp(2.35rem, 5vw, 3.6rem);
  background: #fff;
  text-align: left;
}

.dw-page-hero--faq::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.995) 34%, rgba(255, 255, 255, 0.95) 46%, rgba(255, 255, 255, 0.72) 58%, rgba(255, 255, 255, 0.16) 74%, rgba(255, 255, 255, 0) 88%),
    radial-gradient(circle at 84% 22%, rgba(190, 210, 255, 0.16) 0%, rgba(190, 210, 255, 0.06) 18%, rgba(190, 210, 255, 0) 40%);
}

.dw-page-hero--faq .dw-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(calc(100% - 2.5rem), 96rem);
  min-height: clamp(19rem, 23vw, 24rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.dw-page-hero--faq .dw-page-hero__visual {
  top: var(--dw-faq-hero-visual-top);
  right: 0;
  bottom: 0;
  left: auto;
  width: clamp(32rem, 59vw, 82rem);
  margin: 0;
}

.dw-page-hero--faq .dw-page-hero__visual img {
  object-fit: contain;
  object-position: right center;
}

.dw-page-hero--faq h1 {
  max-width: 10.2ch;
  margin: 0 0 0.95rem;
  font-size: clamp(3.2rem, 5.8vw, 4.85rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.dw-page-hero--faq p {
  max-width: 34rem;
  margin: 0;
  color: rgba(17, 26, 51, 0.72);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.56;
}


.page-faq .dw-section--faq-listing {
  padding-bottom: var(--space-3xl);
}

.page-faq .dw-section--faq-cta {
  padding-top: 0;
}

.page-faq .dw-section--faq-cta .dw-home-faq__cta {
  margin-top: 0;
}

.page-faq .dw-faq-search {
  max-width: 920px;
  margin: 0 auto 1.35rem;
  padding: clamp(1.15rem, 2.8vw, 1.55rem);
  border: 1px solid rgba(47, 116, 255, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(65, 209, 255, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(47, 116, 255, 0.06) 0%, rgba(255, 255, 255, 0.98) 46%, rgba(244, 247, 255, 0.96) 100%);
  box-shadow:
    0 18px 42px rgba(16, 26, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.page-faq .dw-faq-search__label {
  display: block;
  margin: 0 0 0.7rem;
  color: var(--color-primary);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
}

.page-faq .dw-faq-search__field {
  position: relative;
}

.page-faq .dw-faq-search__icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 0.98rem;
  height: 0.98rem;
  border: 2px solid rgba(17, 26, 51, 0.54);
  border-radius: 50%;
  transform: translateY(-55%);
  pointer-events: none;
}

.page-faq .dw-faq-search__icon::after {
  content: "";
  position: absolute;
  right: -0.34rem;
  bottom: -0.18rem;
  width: 0.54rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(17, 26, 51, 0.54);
  transform: rotate(45deg);
  transform-origin: center;
}

.page-faq .dw-faq-search__input {
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1.1rem 0.95rem 3rem;
  border: 1px solid rgba(17, 26, 51, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.page-faq .dw-faq-search__input::placeholder {
  color: var(--color-text-muted);
}

.page-faq .dw-faq-search__input:hover {
  border-color: rgba(47, 116, 255, 0.22);
}

.page-faq .dw-faq-search__input:focus {
  outline: none;
  border-color: rgba(47, 116, 255, 0.46);
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(47, 116, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.page-faq .dw-faq-search__hint {
  margin: 0.8rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-faq .dw-faq-search__empty {
  max-width: 920px;
  margin: 0 auto 1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(17, 26, 51, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px rgba(16, 26, 55, 0.07);
  text-align: center;
}

.page-faq .dw-faq-search__empty[hidden] {
  display: none !important;
}

.page-faq .dw-faq-search__empty h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.12rem;
}

.page-faq .dw-faq-search__empty p {
  margin: 0.55rem auto 0;
  max-width: 34rem;
  color: var(--color-text-light);
}

.page-faq .dw-faq-search__term {
  color: var(--color-accent);
  font-weight: 700;
}

@media (max-width: 640px) {
  .page-faq .dw-faq-search {
    padding: 1rem;
    border-radius: 22px;
  }

  .page-faq .dw-faq-search__input {
    min-height: 52px;
    padding-left: 2.85rem;
    border-radius: 16px;
  }

  .page-faq .dw-faq-search__empty {
    padding: 1.2rem 1.1rem;
    border-radius: 20px;
  }
}

@media (max-width: 720px) {

  .dw-page-hero--faq {
    --dw-faq-hero-visual-top: 82px;
    display: grid;
    align-items: start;
    min-height: clamp(43rem, 156vw, 48rem);
    padding: calc(92px + 0.65rem) 0 0.95rem;
    background: linear-gradient(180deg, #fff 0%, #f4f8ff 100%);
    text-align: center;
  }

  .dw-page-hero--faq::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 24%, rgba(255, 255, 255, 0.62) 42%, rgba(255, 255, 255, 0.2) 64%, rgba(255, 255, 255, 0.03) 100%),
      radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 26%, rgba(255, 255, 255, 0) 54%);
  }

  .dw-page-hero--faq .dw-container {
    max-width: min(calc(100% - 2rem), 26rem);
    min-height: auto;
    justify-content: flex-start;
    align-items: center;
  }

  .dw-page-hero--faq .dw-page-hero__visual {
    position: absolute;
    top: calc(var(--dw-faq-hero-visual-top) - 20px);
    right: auto;
    bottom: -1.2rem;
    left: 50%;
    width: 720px;
    height: auto;
    margin: 0;
    transform: translateX(-50%);
  }

  .dw-page-hero--faq .dw-page-hero__visual img {
    object-fit: cover;
    object-position: 54% 94%;
  }

  .dw-page-hero--faq h1 {
    max-width: 10.8ch;
    padding-top: 20px;
    margin-bottom: 0.65rem;
    font-size: clamp(2.3rem, 9.2vw, 3.25rem);
  }

  .dw-page-hero--faq p {
    max-width: 22.5rem;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .page-faq .dw-page-hero--faq + .dw-section {
    padding-top: 1.6rem;
  }

  .dw-page-hero__highlight {
    max-width: min(100%, 20.75rem);
    gap: 0.6rem;
    padding: 0.82rem 1rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 560px) {

  .dw-page-hero--faq {
    --dw-faq-hero-visual-top: 82px;
    min-height: 40.5rem;
    padding: calc(92px + 0.55rem) 0 0.75rem;
  }

  .dw-page-hero--faq .dw-container {
    max-width: min(calc(100% - 1.5rem), 20.5rem);
  }

  .dw-page-hero--faq .dw-page-hero__visual {
    top: var(--dw-faq-hero-visual-top);
    right: auto;
    bottom: -1.45rem;
    left: 50%;
    width: 560px;
    height: auto;
    margin: 0;
    transform: translateX(-50%);
  }

  .dw-page-hero--faq .dw-page-hero__visual img {
    object-position: 54.5% 98%;
  }

  .dw-page-hero--faq h1 {
    max-width: 10.15ch;
    padding-top: 20px;
    font-size: clamp(1.9rem, 8.2vw, 2.4rem);
  }

  .dw-page-hero--faq p {
    max-width: 17.8rem;
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .page-faq .dw-page-hero--faq + .dw-section {
    padding-top: 1.5rem;
  }

}

@media (min-width: 721px) {
  .dw-page-hero--faq {
    --dw-faq-desktop-visual-shift: 48px;
    --dw-faq-desktop-visual-drop: clamp(18px, calc(48px - 1.8vw), 28px);
    --dw-faq-desktop-seam-offset: calc(var(--dw-faq-desktop-visual-shift) + 3.25rem);
    --dw-faq-copy-overlap: clamp(2.5rem, 3.4vw, 4.25rem);
    --dw-faq-desktop-side-feather: clamp(16px, 3%, 24px);
    display: grid;
    grid-template-columns: minmax(1rem, 1fr) minmax(0, clamp(15.75rem, 33vw, 33rem)) minmax(0, clamp(21.75rem, 45vw, 44rem)) minmax(1rem, 1fr);
    column-gap: 0;
    align-items: start;
    min-height: 0;
    padding: 0;
    background: #f9fafe;
    text-align: left;
  }

  .dw-page-hero--faq::before {
    content: none;
  }

  .dw-page-hero--faq::after {
    content: "";
    grid-column: 3 / -1;
    grid-row: 1;
    justify-self: stretch;
    align-self: stretch;
    background: linear-gradient(90deg, #f9fafe 0, #f9fafe var(--dw-faq-desktop-seam-offset), #f8f8fe var(--dw-faq-desktop-seam-offset), #f8f8fe 100%);
    z-index: 0;
    pointer-events: none;
  }

  .dw-page-hero--faq .dw-container {
    position: relative;
    z-index: 2;
    grid-column: 2 / 3;
    grid-row: 1;
    width: calc(100% + var(--dw-faq-copy-overlap));
    max-width: none;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    align-self: stretch;
    margin-right: calc(-1 * var(--dw-faq-copy-overlap));
    padding: clamp(4.5rem, calc(6.8rem - 2.3vw), 5.5rem) 0 clamp(2rem, 3.4vw, 3.5rem);
  }

  .dw-page-hero--faq .dw-page-hero__visual {
    position: relative;
    grid-column: 3 / 4;
    grid-row: 1;
    inset: auto;
    justify-self: stretch;
    align-self: start;
    width: 100%;
    max-width: clamp(21.75rem, 45vw, 44rem);
    margin: 0;
    line-height: 0;
    transform: translate(var(--dw-faq-desktop-visual-shift), var(--dw-faq-desktop-visual-drop));
    z-index: 1;
    background: linear-gradient(90deg, #f9fafe 0%, #f9fafe 31%, #f9f9fe 56%, #f8f8fe 77%, #f8f8fe 100%);
  }

  .dw-page-hero--faq .dw-page-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
    object-position: center top;
    transform: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--dw-faq-desktop-side-feather), #000 calc(100% - var(--dw-faq-desktop-side-feather)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--dw-faq-desktop-side-feather), #000 calc(100% - var(--dw-faq-desktop-side-feather)), transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  .dw-page-hero--faq h1 {
    max-width: 9.9ch;
    padding-top: 0.22em;
    margin: 0 0 0.85rem;
    font-size: clamp(2.45rem, 4.2vw, 5.15rem);
  }

  .dw-page-hero--faq p {
    max-width: 33.5rem;
    margin: 0;
    font-size: clamp(0.98rem, 0.72rem + 0.48vw, 1.22rem);
    line-height: 1.54;
  }

  .page-faq .dw-page-hero--faq + .dw-section {
    padding-top: 1.15rem;
  }
}

@media (max-width: 720px) {
  .dw-page-hero--faq {
    --dw-faq-mobile-text-overlap: clamp(24px, 7vw, 45px);
    --dw-faq-mobile-top-feather: clamp(16px, 4.75%, 24px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    min-height: 0;
    padding: calc(92px + 0.6rem) 0 0;
    background: #f7f6fe;
    text-align: center;
  }

  .dw-page-hero--faq::before {
    content: none;
    background: none;
  }

  .dw-page-hero--faq .dw-container {
    position: relative;
    z-index: 2;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: min(calc(100% - 1.5rem), 23rem);
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto calc(-1 * var(--dw-faq-mobile-text-overlap));
  }

  .dw-page-hero--faq .dw-page-hero__visual {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    inset: auto;
    width: 100%;
    height: clamp(12.75rem, 62.8vw, 28.25rem);
    max-width: none;
    margin: 0;
    transform: none;
    justify-self: stretch;
    align-self: stretch;
    overflow: hidden;
    line-height: 0;
    background: #f7f6fe;
    z-index: 1;
  }

  .dw-page-hero--faq .dw-page-hero__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 var(--dw-faq-mobile-top-feather), #000 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 var(--dw-faq-mobile-top-feather), #000 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  .dw-page-hero--faq h1 {
    max-width: 10.05ch;
    padding-top: 0;
    margin-bottom: 0.65rem;
    font-size: clamp(2rem, 8.4vw, 3rem);
  }

  .dw-page-hero--faq p {
    max-width: 20rem;
    font-size: 0.93rem;
    line-height: 1.44;
  }

  .page-faq .dw-page-hero--faq + .dw-section {
    padding-top: 1.5rem;
  }
}

