/* ==========================================================================
   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;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.faq-section__head {
  flex: 0 0 auto;
  width: 100%;
  max-width: 695px;
  text-align: left;
}

.faq-section__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  gap: 0;
  width: 695px;
  max-width: 100%;
  height: 144px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  font-family: 'Gilroy-ExtraBoldItalic', var(--display);
  font-weight: 800;
  font-style: normal;
  font-size: 54px;
  line-height: 72px;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: left;
  color: #00274e;
  background: transparent;
}

.faq-section__title-line {
  display: block;
  width: auto;
  max-width: 100%;
  height: 72px;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: inherit;
  color: inherit;
  white-space: nowrap;
}

.faq-section__lead {
  margin: 0 0 22px;
  max-width: 480px;
  font-family: 'Gilroy-Medium', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0;
  text-align: left;
  color: #040a10;
}

.faq-section__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 284px;
  height: 72px;
  padding: 20px 30px;
  box-sizing: border-box;
  border: 1px solid rgba(11, 27, 52, .08);
  border-radius: 50px;
  background: #fab72a;
  color: var(--navy);
  font-family: 'Baloo Chettan', var(--display);
  font-weight: 400;
  font-size: 20px;
  line-height: 26px;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: none;
  align-self: flex-start;
}

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

.faq-section__btn .ic,
.faq-section__btn-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #00274e;
}

.faq-section__van {
  flex: 0 0 auto;
  margin: 0;
  margin-top: auto;
  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: 'Gilroy-SemiBold', var(--display);
  font-weight: 400;
  color: var(--navy);
  font-size: 22px;
  line-height: 32px;
  letter-spacing: 0;
}

.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-family: 'Gilroy-Medium', var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0;
}

/* Small desktop — scale van to fit 1440px layout */
@media (min-width: 1101px) and (max-width: 1440px) {
  .faq-section {
    --faq-van-w: clamp(520px, 44vw, 640px);
    --faq-van-h: calc(var(--faq-van-w) * 363 / 844);
    height: auto;
    min-height: clamp(720px, 62vw, 870px);
  }

  .faq-section__grid {
    gap: clamp(28px, 3vw, 48px);
    height: auto;
    min-height: clamp(720px, 62vw, 870px);
  }

  .faq-section__van {
    width: var(--faq-van-w);
    height: var(--faq-van-h);
    max-width: 100%;
  }

  .faq-section__van img {
    width: var(--faq-van-w);
    height: var(--faq-van-h);
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .faq-section {
    --faq-m-side: 20px;
    height: auto;
    min-height: 0;
    overflow: hidden;
    padding-top: 50px;
  }

  .faq-section .container {
    width: 100%;
    max-width: none;
    padding: 0 var(--faq-m-side);
  }

  .faq-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "list"
      "btn"
      "van";
    gap: 20px;
    height: auto;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .faq-section__aside {
    display: contents;
  }

  .faq-section__head {
    grid-area: head;
    max-width: none;
    text-align: center;
  }

  .faq-section__title {
    align-items: center;
    align-self: center;
    width: 100%;
    height: auto;
    margin: 0 0 16px;
    font-family: 'Gilroy-ExtraBoldItalic', var(--display);
    font-weight: 800;
    font-style: normal;
    font-size: 30px;
    line-height: 40px;
    letter-spacing: 0;
    text-align: center;
  }

  .faq-section__title-line {
    height: auto;
    font-family: inherit;
    font-weight: inherit;
    font-style: inherit;
    font-size: 30px;
    line-height: 40px;
    text-align: center;
    white-space: normal;
  }

  .faq-section__lead {
    max-width: none;
    margin: 0 auto 4px;
    padding: 0 4px;
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    color: #040a10;
  }

  .faq-list {
    grid-area: list;
    gap: 12px;
    width: 100%;
  }

  .faq-section__btn {
    grid-area: btn;
    justify-self: center;
    width: min(100%, 284px);
    height: 72px;
    margin: 8px auto 0;
    align-self: center;
  }

  .faq-section__van {
    grid-area: van;
    width: 100%;
    max-width: 430px;
    height: auto;
    margin: 12px 0 0;
    padding: 0;
    align-self: center;
    justify-self: center;
  }

  .faq-section {
    --faq-van-w: 100%;
    --faq-van-h: auto;
  }

  .faq-section__van img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    object-position: bottom center;
  }

  .faq-q {
    padding: 16px 18px;
    font-family: 'Gilroy-SemiBold', var(--display);
    font-weight: 400;
    font-size: clamp(16px, 4vw, 22px);
    line-height: 32px;
    letter-spacing: 0;
  }

  .faq-item.open .faq-a div {
    padding: 0 18px 16px;
    font-family: 'Gilroy-Medium', var(--font);
    font-weight: 400;
    font-size: clamp(14px, 3.5vw, 18px);
    line-height: 28px;
    letter-spacing: 0;
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .faq-section__title {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 16px;
    text-align: left;
    align-items: flex-start;
    align-self: flex-start;
    font-family: 'Gilroy-ExtraBoldItalic', var(--display);
    font-weight: 800;
    font-style: normal;
    font-size: 54px;
    line-height: 72px;
    letter-spacing: 0;
    color: #00274e;
  }

  .faq-section__title-line {
    height: 72px;
    font-family: inherit;
    font-weight: inherit;
    font-style: inherit;
    font-size: 54px;
    line-height: 72px;
  }

  .faq-section__lead {
    max-width: 100%;
    font-family: 'Gilroy-Medium', sans-serif;
    font-size: 18px;
    line-height: 28px;
    text-align: left;
    color: #040a10;
  }

  .faq-section {
    --faq-h: auto;
    height: auto;
    min-height: 0;
  }

  .faq-section__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "list"
      "btn"
      "van";
    height: auto;
    min-height: 0;
    gap: 28px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .faq-section__aside {
    display: contents;
  }

  .faq-section__head {
    grid-area: head;
    max-width: none;
  }

  .faq-list {
    grid-area: list;
    grid-column: 1;
    height: auto;
    width: 100%;
  }

  .faq-section__btn {
    grid-area: btn;
    justify-self: center;
    align-self: center;
    margin-top: 4px;
  }

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

  .faq-section__van {
    grid-area: van;
    width: min(100%, 560px);
    height: auto;
    margin: 8px auto 0;
    margin-left: auto;
    align-self: center;
    justify-self: center;
  }

  .faq-section__van img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    object-position: bottom center;
  }
}

@media (max-width: 600px) {
  .faq-section__grid {
    padding-bottom: 0;
  }

  .faq-q {
    padding: 16px 18px;
    font-family: 'Gilroy-SemiBold', var(--display);
    font-weight: 400;
    font-size: clamp(15px, 1.2vw, 22px);
    line-height: 32px;
    letter-spacing: 0;
  }
}
