/* Block 14: frequently asked questions. */
.gd37-faq {
  --faq-paper: var(--gd37-paper, #fffdf8);
  --faq-ink: var(--gd37-ink, #14584e);
  --faq-green: var(--gd37-green, #71c43a);
  --faq-blue: var(--gd37-blue, #2bb5cf);
  --faq-orange: var(--gd37-orange-strong, #ff861c);
  position: relative;
  overflow: hidden;
  color: var(--faq-ink);
  background: var(--faq-paper);
}

.gd37-faq__top-wave,
.gd37-faq__bottom-wave {
  position: absolute;
  right: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.gd37-faq__top-wave {
  top: 0;
  height: 106px;
}

.gd37-faq__bottom-wave {
  bottom: 0;
  z-index: 1;
  height: 65px;
}

.gd37-faq__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 365px) minmax(0, 837px);
  gap: clamp(55px, 5.8vw, 84px);
  padding-top: 137px;
  padding-bottom: 85px;
}

.gd37-faq__intro { min-width: 0; }

.gd37-faq__kicker {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 28px;
  font-family: "Noto Sans", sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.gd37-faq__kicker span {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--faq-green);
}

.gd37-faq__title {
  margin: 0;
  font-family: "Adigiana 2", cursive;
  font-size: clamp(48px, 4.1vw, 59px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: 0;
}

.gd37-faq__title span { display: block; }
.gd37-faq__title span:last-child { color: var(--faq-orange); }

.gd37-faq__title-line {
  display: block;
  width: 320px;
  max-width: 90%;
  height: 22px;
  margin-top: 7px;
}

.gd37-faq__lead { margin: 15px 0 0 6px; }

.gd37-faq__lead strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
}

.gd37-faq__lead p {
  margin: 7px 0 0;
  color: #5d817a;
  font-size: 15px;
  line-height: 1.45;
}

.gd37-faq__question-mark {
  display: block;
  width: 300px;
  height: auto;
  margin: -4px 0 0 7px;
}

.gd37-faq__ask { margin: -4px 0 0 6px; }

.gd37-faq__ask p {
  margin: 0 0 20px;
  font-family: "Adigiana 2", cursive;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.1;
}

.gd37-page .gd37-faq__ask a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #ed6f0b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.gd37-faq__ask a svg {
  width: 57px;
  height: 20px;
  transition: transform .2s ease;
}

.gd37-page .gd37-faq__ask a:hover svg,
.gd37-page .gd37-faq__ask a:focus-visible svg { transform: translateX(5px); }

.gd37-faq__list {
  display: grid;
  align-content: start;
  gap: 15px;
  margin-top: -26px;
}

.gd37-faq-item {
  --faq-item-color: var(--faq-green);
  --faq-item-tint: #eff8ea;
  overflow: hidden;
  border: 2px solid #d9e7d5;
  border-radius: 28px 27px 27px 29px / 27px 25px 29px 28px;
  background: rgba(255, 255, 255, .72);
  transition: border-color .2s ease, background-color .2s ease;
}

.gd37-faq-item--blue {
  --faq-item-color: #12a8c7;
  --faq-item-tint: #eef8fb;
}

.gd37-faq-item--orange {
  --faq-item-color: #e97808;
  --faq-item-tint: #fff6e5;
}

.gd37-faq-item[open] {
  border-color: #82ce63;
  border-radius: 39px 37px 43px 36px / 42px 36px 39px 36px;
  background: #edf7e8;
}

.gd37-faq-item summary {
  display: grid;
  min-height: 69px;
  grid-template-columns: 48px minmax(0, 1fr) 42px;
  align-items: center;
  padding: 11px 31px 11px 43px;
  cursor: pointer;
  list-style: none;
}

.gd37-faq-item summary::-webkit-details-marker { display: none; }

.gd37-faq-item[open] summary {
  align-items: start;
  padding-top: 28px;
  padding-bottom: 0;
}

.gd37-faq-item__number {
  padding-top: 1px;
  color: var(--faq-item-color);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.gd37-faq-item__question {
  min-width: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.gd37-faq-item__toggle {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--faq-item-tint);
}

.gd37-faq-item[open] .gd37-faq-item__toggle {
  border: 2px solid var(--faq-item-color);
  background: #fff;
}

.gd37-faq-item__toggle::before,
.gd37-faq-item__toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--faq-item-color);
  content: "";
  transform: translate(-50%, -50%);
}

.gd37-faq-item__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.gd37-faq-item[open] .gd37-faq-item__toggle::after { display: none; }

.gd37-faq-item__answer {
  padding: 32px 80px 31px 91px;
}

.gd37-faq-item__answer p {
  max-width: 650px;
  margin: 0;
  color: #49766f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.gd37-faq__bottom-accent {
  position: absolute;
  right: 67px;
  bottom: 18px;
  z-index: 3;
  width: 255px;
  height: 45px;
  pointer-events: none;
}

.gd37-faq__bottom-accent path:first-of-type { stroke: var(--faq-blue); }
.gd37-faq__bottom-accent path:last-of-type { stroke: var(--faq-orange); }

@media (max-width: 1100px) {
  .gd37-faq__inner {
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.45fr);
    gap: 38px;
  }

  .gd37-faq__lead strong br { display: none; }

  .gd37-faq-item summary { padding-inline: 27px; }
  .gd37-faq-item__answer { padding-right: 62px; padding-left: 75px; }
}

@media (max-width: 820px) {
  .gd37-faq__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 112px;
    padding-bottom: 95px;
  }

  .gd37-faq__intro { position: relative; }
  .gd37-faq__title { font-size: clamp(45px, 9vw, 57px); }
  .gd37-faq__title-line { width: 300px; }

  .gd37-faq__lead {
    max-width: 440px;
    margin-top: 19px;
  }

  .gd37-faq__question-mark {
    position: absolute;
    right: 0;
    bottom: -11px;
    width: 205px;
    opacity: .8;
  }

  .gd37-faq__ask {
    position: relative;
    z-index: 1;
    margin-top: 35px;
  }

  .gd37-faq__list { margin-top: 0; }
}

@media (max-width: 600px) {
  .gd37-faq__top-wave { height: 73px; }

  .gd37-faq__inner {
    gap: 33px;
    padding-top: 91px;
    padding-bottom: 75px;
  }

  .gd37-faq__kicker {
    gap: 11px;
    margin-bottom: 18px;
    font-size: 9px;
  }

  .gd37-faq__kicker span {
    flex-basis: 10px;
    width: 10px;
    height: 10px;
  }

  .gd37-faq__title {
    font-size: 43px;
    line-height: .98;
  }

  .gd37-faq__title-line {
    width: 250px;
    height: 17px;
    margin-top: 4px;
  }

  .gd37-faq__lead {
    max-width: 100%;
    margin-left: 0;
    padding-right: 0;
  }

  .gd37-faq__lead strong {
    font-size: 15px;
    line-height: 1.5;
  }

  .gd37-faq__lead p { font-size: 13px; }
  .gd37-faq__question-mark { display: none; }
  .gd37-faq__ask { margin: 27px 0 0; }
  .gd37-faq__ask p { margin-bottom: 15px; font-size: 21px; }

  .gd37-faq__list { gap: 10px; }

  .gd37-faq-item {
    border-radius: 22px 20px 21px 23px / 21px 20px 23px 22px;
  }

  .gd37-faq-item[open] {
    border-radius: 27px 25px 29px 24px / 28px 25px 27px 25px;
  }

  .gd37-faq-item summary,
  .gd37-faq-item[open] summary {
    min-height: 62px;
    grid-template-columns: 33px minmax(0, 1fr) 34px;
    gap: 5px;
    padding: 13px 15px 13px 18px;
    align-items: center;
  }

  .gd37-faq-item[open] summary {
    align-items: start;
    padding-top: 19px;
    padding-bottom: 0;
  }

  .gd37-faq-item__number { padding-top: 3px; font-size: 10px; }

  .gd37-faq-item__question {
    font-size: 15px;
    line-height: 1.35;
  }

  .gd37-faq-item__toggle {
    width: 34px;
    height: 34px;
  }

  .gd37-faq-item__toggle::before,
  .gd37-faq-item__toggle::after { width: 14px; height: 2px; }

  .gd37-faq-item__answer { padding: 12px 20px 22px 56px; }

  .gd37-faq-item__answer p {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
  }

  .gd37-faq__bottom-accent { display: none; }
  .gd37-faq__bottom-wave { height: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  .gd37-faq__ask a svg { transition: none; }
}
