.tas-faq {
  --tas-content-gutter: 20px;
  padding: clamp(28px, 5vw, 40px) 0 clamp(36px, 6vw, 48px);
  background: var(--background-color);
}

.tas-faq__inner {
  width: min(100% - calc(var(--tas-content-gutter) * 2), var(--layout-max-width));
  margin: 0 auto;
}

.tas-faq .tas-section-head {
  margin-bottom: clamp(28px, 4vw, 36px);
}

.tas-faq__list {
  display: grid;
  gap: 12px;
}

.tas-faq__item {
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.tas-faq__question {
  margin: 0;
}

.tas-faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: clamp(16px, 2.5vw, 20px) clamp(16px, 2.5vw, 22px);
  border: 0;
  background: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tas-faq__question-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--primary);
}

.tas-faq__chevron {
  position: relative;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.tas-faq__chevron::before,
.tas-faq__chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.tas-faq__item.is-open .tas-faq__chevron::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.tas-faq__item.is-open .tas-faq__trigger {
  background: rgba(1, 40, 32, 0.04);
}

.tas-faq__item.is-open .tas-faq__question-text {
  color: var(--primary);
}

.tas-faq__trigger:hover {
  background: rgba(1, 40, 32, 0.03);
}

.tas-faq__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.tas-faq__panel {
  border-top: 1px solid var(--border-light);
}

.tas-faq__answer {
  padding: 10px clamp(16px, 2.5vw, 10px) 10px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.tas-faq__answer p {
  margin: 0 0 0.75em;
}

.tas-faq__answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .tas-faq {
    --tas-content-gutter: 16px;
    padding: 24px 0 32px;
  }

  .tas-faq__list {
    gap: 10px;
  }

  .tas-faq__trigger {
    gap: 12px;
    padding: 14px 16px;
  }

  .tas-faq__question-text {
    font-size: 0.875rem;
  }

  .tas-faq__answer {
    padding: 0 16px 16px;
    font-size: 0.875rem;
    line-height: 1.65;
  }
}

@media (max-width: 479px) {
  .tas-faq {
    --tas-content-gutter: 14px;
  }
}
