.faq {
  --faq-active-green: #6f9f22;
  padding: clamp(56px, 7vw, 88px) 0;
  overflow: clip;
  background:
    radial-gradient(circle at 82% 12%, rgba(193, 233, 104, 0.13), transparent 28%),
    var(--color-panel-warm);
}

.faq__layout {
  display: grid;
  grid-template-areas:
    "intro"
    "media"
    "list";
  gap: clamp(22px, 4vw, 36px);
}

.faq__intro {
  grid-area: intro;
  min-width: 0;
}

.faq__intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 11.2px;
  color: var(--color-brand-olive);
  font-size: 0.8208rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.faq__intro .eyebrow i {
  width: clamp(54px, 8vw, 94px);
  height: 1px;
  flex: 0 0 auto;
  background: var(--color-brand-lime);
}

.faq__intro h2 {
  max-width: 13ch;
  margin: 0 0 14px;
  color: var(--color-brand-olive-dark);
  font-family: var(--font-sans);
  font-size: clamp(2.55rem, 6vw, 4.35rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.faq__intro h2 em {
  display: block;
  color: #6f9f22;
  font-style: normal;
  font-weight: inherit;
}

.faq__description {
  max-width: 48ch;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.55;
}

.faq__media {
  position: relative;
  grid-area: media;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #e7eadf;
  box-shadow: 0 24px 60px rgba(38, 45, 28, 0.1);
  /* Expand the frame downward while preserving the subject's upper framing. */
  aspect-ratio: 15 / 17.6;
}

.faq__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transform: scale(1.05);
  transform-origin: center 24%;
}

.faq__list {
  grid-area: list;
  min-width: 0;
}

.faq-item + .faq-item {
  border-top: 1px solid rgba(72, 85, 43, 0.14);
}

.faq-item {
  border-radius: 10px;
  transition: background-color 260ms ease, box-shadow 260ms ease;
}

.faq-item.is-open {
  background: linear-gradient(90deg, rgba(193, 233, 104, 0.1), rgba(193, 233, 104, 0.025) 72%, transparent);
  box-shadow: inset 3px 0 0 rgba(121, 173, 20, 0.7);
}

.faq-item h3 {
  margin: 0;
  font: inherit;
}

.faq-item button {
  display: grid;
  width: 100%;
  min-height: 70px;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 16px;
  padding: 14px 10px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  font: inherit;
  font-size: clamp(0.96rem, 1.2vw, 1.04rem);
  font-weight: 710;
  line-height: 1.4;
  text-align: left;
  transition:
    color 220ms ease,
    min-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-block 320ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-left 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item button > span:last-child {
  grid-column: 1;
  grid-row: 1;
}

.faq-item button:hover {
  color: var(--color-brand-olive-dark);
}

.faq-item.is-open button {
  color: var(--faq-active-green);
  padding-left: 20px;
}

.faq-item__icon {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(193, 233, 104, 0.34);
  color: var(--color-brand-olive-dark);
  transition:
    background-color 260ms ease,
    color 260ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item__icon::before,
.faq-item__icon::after {
  position: absolute;
  top: 17px;
  left: 11px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item__icon::after {
  transform: rotate(90deg);
}

.faq-item.is-open .faq-item__icon {
  background: var(--faq-active-green);
  color: #fffdf8;
}

.faq-item.is-open .faq-item__icon::after {
  transform: rotate(0deg);
}

.faq-item__panel > div {
  overflow: hidden;
  transform: translateY(-6px);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item__panel p {
  max-width: 66ch;
  padding: 0 54px 22px 10px;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  transition: padding-left 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-item__panel p {
  padding-left: 20px;
}

.faq__list.is-enhanced .faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
}

.faq__list.is-enhanced .faq-item__panel[aria-hidden="false"] {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq__list.is-enhanced .faq-item__panel[aria-hidden="false"] > div {
  transform: translateY(0);
}

.faq__contact {
  display: grid;
  grid-area: contact;
  gap: 0;
  align-items: center;
  padding-top: 4px;
}

.faq__trust {
  display: flex;
  max-width: 38ch;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--color-brand-olive-dark);
  font-size: 0.78rem;
  line-height: 1.5;
}

.faq__trust span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: #6f9f22;
}

.faq__trust svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.faq__cta {
  min-height: 54px;
  gap: 10px;
  justify-content: center;
}

.faq__cta span {
  width: 23px;
  height: 23px;
}

.faq__cta svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (min-width: 620px) {
  .faq__contact {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 1000px) {
  .faq {
    padding: clamp(44px, 5vw, 68px) 0;
  }

  .faq__layout {
    grid-template-columns: minmax(220px, 0.72fr) minmax(220px, 0.78fr) minmax(380px, 1.35fr);
    grid-template-areas:
      "intro media list";
    grid-template-rows: auto;
    column-gap: clamp(24px, 3vw, 42px);
    row-gap: 24px;
    align-items: start;
  }

  .faq__intro h2 {
    font-size: clamp(2.7rem, 3.5vw, 3.45rem);
  }

  .faq__media {
    height: clamp(440px, 59.4vh, 528px);
    min-height: 0;
    align-self: start;
    aspect-ratio: auto;
  }

  .faq__image {
    object-position: center 20%;
    transform: scale(1.11) translateY(-2.4%);
    transform-origin: center 20%;
  }

  .faq__list {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-self: stretch;
  }

  .faq-item {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    transition: flex-grow 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .faq-item h3 {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
  }

  .faq-item.is-open {
    flex: 0 0 auto;
  }

  .faq-item.is-open h3 {
    flex: 0 0 auto;
  }

  .faq-item.is-open .faq-item__panel {
    flex: 0 0 auto;
  }

  .faq-item button {
    flex: 1 1 auto;
    min-height: 64px;
    padding-block: 11px;
  }

  .faq-item.is-open button {
    min-height: 54px;
    padding-block: 6px;
  }

  .faq__list:has(.faq-item.is-open) .faq-item:not(.is-open) button {
    min-height: 58px;
    padding-block: 8px;
  }

  .faq__contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-self: end;
    padding-top: 0;
  }
}

@media (max-width: 420px) {
  .faq__intro h2 {
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  .faq-item button {
    min-height: 66px;
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 11px;
    font-size: 0.92rem;
  }

  .faq-item__icon {
    width: 32px;
    height: 32px;
  }

  .faq-item__icon::before,
  .faq-item__icon::after {
    top: 15px;
    left: 9px;
  }

  .faq-item__panel p {
    padding-right: 42px;
  }

  .faq__cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item button,
  .faq-item__icon,
  .faq-item__icon::after,
  .faq-item__panel > div,
  .faq__list.is-enhanced .faq-item__panel {
    transition: none;
  }
}
