/* ==========================================================================
   FAQ section
   ========================================================================== */

.faq-section {
  --faq-h: 870px;
  --faq-blue: #1b49c1;
  --faq-bg: #eef3f9;
  --faq-yellow: #f9b83d;
  --faq-van-w: 844px;
  --faq-van-h: 363px;
  background: var(--faq-bg);
  height: var(--faq-h);
  min-height: var(--faq-h);
  padding: 0;
  overflow: visible;
}

.faq-section__grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(440px, 1.12fr);
  grid-template-rows: 1fr;
  gap: 48px;
  align-items: stretch;
  height: var(--faq-h);
  min-height: var(--faq-h);
  padding-top: 56px;
  padding-bottom: 56px;
  box-sizing: border-box;
}

.faq-section__aside {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.faq-section__head {
  flex: 0 0 auto;
  max-width: 420px;
}

.faq-section__title {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--faq-blue);
}

.faq-section__title-line {
  display: block;
}

.faq-section__lead {
  margin: 0 0 22px;
  max-width: 380px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-section__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 50px;
  background: var(--faq-yellow);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 2px 10px rgba(249, 184, 61, .35);
}

.faq-section__btn:hover {
  background: #e8a50f;
}

.faq-section__btn .ic {
  width: 18px;
  height: 18px;
  color: var(--navy);
}

.faq-section__van {
  flex: 0 0 auto;
  margin: 0;
  margin-left: calc(-1 * ((100vw - min(100vw, var(--container))) / 2 + 18px));
  width: var(--faq-van-w);
  height: var(--faq-van-h);
  max-width: none;
  line-height: 0;
  align-self: flex-start;
  pointer-events: none;
}

.faq-section__van img {
  width: var(--faq-van-w);
  height: var(--faq-van-h);
  max-width: none;
  object-fit: contain;
  object-position: bottom left;
  display: block;
}

.faq-list {
  grid-column: 2;
  display: grid;
  gap: 14px;
  align-content: start;
  align-self: stretch;
  height: 100%;
  min-height: 0;
}

.faq-item {
  background: #fff;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(11, 27, 52, .08);
  transition: background .2s, box-shadow .2s;
}

.faq-item.open {
  background: var(--faq-blue);
  box-shadow: 0 4px 18px rgba(27, 73, 193, .28);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
}

.faq-q__text {
  flex: 1;
  min-width: 0;
}

.faq-item.open .faq-q {
  color: #fff;
  padding-bottom: 10px;
}

.faq-q .pm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transition: background .2s, color .2s;
}

.faq-item.open .faq-q .pm {
  background: #fff;
  color: var(--faq-blue);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-item.open .faq-a div {
  padding: 0 22px 20px;
  color: rgba(255, 255, 255, .92);
  font-size: .95rem;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .faq-section {
    --faq-h: auto;
    height: auto;
    min-height: 0;
  }

  .faq-section__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
    gap: 28px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .faq-section__aside {
    height: auto;
    gap: 28px;
  }

  .faq-section__head {
    max-width: none;
  }

  .faq-list {
    grid-column: 1;
    height: auto;
  }

  .faq-section {
    --faq-van-w: min(844px, 100%);
    --faq-van-h: calc(var(--faq-van-w) * 363 / 844);
  }

  .faq-section__van {
    width: var(--faq-van-w);
    height: var(--faq-van-h);
    margin-left: calc(-1 * ((100vw - min(100vw, var(--container))) / 2 + 18px));
    align-self: flex-start;
  }

  .faq-section__van img {
    width: var(--faq-van-w);
    height: var(--faq-van-h);
    object-position: bottom center;
  }
}

@media (max-width: 600px) {
  .faq-section__title {
    font-size: 1.5rem;
  }

  .faq-section__head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .faq-section__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .faq-section__btn {
    margin: 0 auto;
  }

  .faq-q {
    padding: 16px 18px;
    font-size: .92rem;
  }
}
