.atr-faq {
  padding: var(--atr-section-space-y) 0;
  background: #ffffff;
  color: #202020;
}

.atr-faq__container {
  width: 100%;
  margin: 0 auto;
  padding-left: clamp(18px, 4vw, 64px);
  padding-right: clamp(18px, 4vw, 64px);
}

@media (min-width: 1000px) {
  .atr-faq__container {
    padding-left: 42px;
    padding-right: 42px;
  }
}

.atr-faq__header {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
}

.atr-faq__layout {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}

@media (min-width: 1000px) {
  .atr-faq__layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    align-items: start;
  }

  .atr-faq__items {
    order: 1;
  }

  .atr-faq__header {
    order: 2;
    position: sticky;
    top: clamp(96px, 10vw, 132px);
  }
}

.atr-faq--headline-separated .atr-faq__layout {
  grid-template-columns: 1fr;
}

.atr-faq--headline-separated .atr-faq__header {
  order: 1;
  position: static;
  align-items: center;
  text-align: center;
  margin: 0 0 clamp(28px, 4vw, 44px);
  width: min(100%, clamp(476px, 47.6vw, 731px));
  margin-left: auto;
  margin-right: auto;
}

.atr-faq--headline-separated .atr-faq__title,
.atr-faq--headline-separated .atr-faq__body {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.atr-faq--headline-separated .atr-faq__items {
  order: 2;
  width: min(100%, clamp(760px, 82vw, 1120px));
  margin-left: auto;
  margin-right: auto;
}

.atr-faq__eyebrow {
  margin: 0;
  font-size: 14px;
  color: #202020;
}

@media (min-width: 1000px) {
  .atr-faq__eyebrow {
    font-size: 15.4px;
  }
}

.atr-faq__title {
  margin: 0;
  max-width: min(100%, clamp(520px, 64vw, 980px));
  font-size: var(--atr-section-title-size);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #202020;
}

.atr-faq__highlight {
  color: #d7261e;
}

.atr-faq__body {
  margin: 0;
  max-width: min(100%, clamp(520px, 54vw, 860px));
  font-size: clamp(0.85rem, 0.935vw, 1.0625rem);
  line-height: 1.6;
  color: #3a3a3a;
}

.atr-faq__items {
  display: grid;
  gap: 12px;
}

.atr-faq__item {
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.atr-faq__item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.atr-faq__trigger {
  width: 100%;
  padding: clamp(18px, 2.4vw, 28px) clamp(16px, 2vw, 24px);
  border: 0;
  border-radius: 7px;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.24s ease,
    box-shadow 0.34s ease;
}

.atr-faq__trigger:hover,
.atr-faq__trigger:focus,
.atr-faq__trigger:active {
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.atr-faq__question {
  font-size: clamp(1.04rem, 0.98rem + 0.26vw, 1.16rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #202020;
  transition: color 0.24s ease;
}

.atr-faq__icon {
  position: relative;
  width: 20px;
  height: 20px;
  color: #d7261e;
  flex: 0 0 20px;
  transition: color 0.24s ease;
}

.atr-faq__icon::before,
.atr-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.atr-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.atr-faq__item.is-active .atr-faq__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.4);
}

.atr-faq__item.is-active .atr-faq__trigger,
.atr-faq__item.is-active .atr-faq__trigger:hover,
.atr-faq__item.is-active .atr-faq__trigger:focus,
.atr-faq__item.is-active .atr-faq__trigger:active {
  background-color: #d7261e;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(215, 38, 30, 0.2);
}

.atr-faq__item.is-active .atr-faq__question,
.atr-faq__item.is-active .atr-faq__icon {
  color: #ffffff;
}

.atr-faq__panel {
  height: 0;
  overflow: hidden;
  transition: height 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.atr-faq__panel[hidden] {
  display: block;
}

.atr-faq__panel-inner {
  padding:
    clamp(18px, 2.4vw, 28px)
    clamp(16px, 2vw, 24px)
    clamp(22px, 3vw, 32px);
}

.atr-faq__answer {
  margin: 0;
  max-width: min(100%, clamp(540px, 60vw, 900px));
  font-size: clamp(0.85rem, 0.935vw, 1.0625rem);
  line-height: 1.52;
  letter-spacing: -0.012em;
  color: #3a3a3a;
}

@media (prefers-reduced-motion: reduce) {
  .atr-faq__trigger,
  .atr-faq__question,
  .atr-faq__icon,
  .atr-faq__icon::before,
  .atr-faq__icon::after,
  .atr-faq__panel {
    transition: none !important;
  }
}
