.faq-section {
  padding: 5rem 0 6rem;
  background-color: #f8f9fa;
}

.faq-section__header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.faq-section__header h1 {
  margin-bottom: 0.75rem;
}

.faq-section__intro {
  color: #6c757d;
  line-height: 1.7;
  margin-bottom: 0;
}

.faq-search {
  max-width: 560px;
  margin: 0 auto 3rem;
  position: relative;
}

.faq-search__input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  border: 1px solid #dee2e6;
  border-radius: 50px;
  font-size: 1rem;
  line-height: 1.5;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-search__input:focus {
  outline: none;
  border-color: #606060;
  box-shadow: 0 0 0 3px rgba(96, 96, 96, 0.15);
}

.faq-search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  pointer-events: none;
}

.faq-category {
  margin-bottom: 2.5rem;
}

.faq-category:last-child {
  margin-bottom: 0;
}

.faq-category__title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(96, 96, 96, 0.35);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: #ced4da;
}

.faq-item.is-open {
  border-color: rgba(96, 96, 96, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.faq-item.is-hidden {
  display: none;
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  color: #212529;
  cursor: pointer;
}

.faq-item__trigger:hover,
.faq-item__trigger:focus {
  color: #606060;
}

.faq-item__trigger:focus {
  outline: none;
}

.faq-item__trigger:focus-visible {
  outline: 2px solid #606060;
  outline-offset: -2px;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.faq-item.is-open .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  overflow: hidden;
}

.faq-item__content {
  padding: 0 1.25rem 1.25rem;
  color: #495057;
  line-height: 1.75;
}

.faq-item__content p:last-child,
.faq-item__content ul:last-child,
.faq-item__content ol:last-child {
  margin-bottom: 0;
}

.faq-item__content ul,
.faq-item__content ol {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}

.faq-item__content li + li {
  margin-top: 0.5rem;
}

.faq-category.is-hidden {
  display: none;
}

.faq-no-results {
  text-align: center;
  color: #6c757d;
  padding: 2rem 1rem;
}

.faq-no-results[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .faq-section {
    padding: 3.5rem 0 4rem;
  }

  .faq-section__header {
    margin-bottom: 2rem;
    text-align: left;
  }

  .faq-search {
    margin-bottom: 2rem;
  }

  .faq-category__title {
    font-size: 1.2rem;
  }

  .faq-item__trigger {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .faq-item__content {
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__panel,
  .faq-item__icon::before,
  .faq-item__icon::after {
    transition: none;
  }
}
