.faq-shell {
  padding: 0;
}

.faq-shell__header {
  margin: 0 auto 1.75rem;
  max-width: 720px;
}

.faq-shell__title {
  color: #212529;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.faq-shell__intro {
  color: #6c757d;
  font-size: 1rem;
  line-height: 1.65;
}

.faq-list {
  margin: 0 auto;
  max-width: 860px;
}

.faq-item + .faq-item {
  margin-top: 0.75rem;
}

.faq-item {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(33, 37, 41, 0.04);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
  border-color: #dfe3e6;
  box-shadow: 0 8px 20px rgba(33, 37, 41, 0.06);
}

.faq-item.is-open {
  border-color: #d7dce1;
  box-shadow: 0 10px 24px rgba(33, 37, 41, 0.07);
}

.faq-item__toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #212529;
  cursor: pointer;
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  text-align: left;
  width: 100%;
}

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

.faq-item__toggle:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.18);
}

.faq-item__index {
  color: #6c757d;
  flex: 0 0 32px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.faq-item__question {
  flex: 1 1 auto;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.faq-item__icon {
  border: 1px solid #dee2e6;
  border-radius: 999px;
  flex: 0 0 32px;
  height: 32px;
  position: relative;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.faq-item__icon::before,
.faq-item__icon::after {
  background-color: #6c757d;
  border-radius: 99px;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-item__icon::before {
  height: 2px;
  width: 14px;
}

.faq-item__icon::after {
  height: 14px;
  width: 2px;
}

.faq-item.is-open .faq-item__icon {
  background-color: #f8f9fa;
  border-color: #ced4da;
  transform: rotate(180deg);
}

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

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0.55;
  transition: grid-template-rows 0.3s ease, opacity 0.25s ease;
}

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

.faq-item__panel-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-item__answer {
  border-top: 1px solid #f1f3f5;
  line-height: 1.8;
  padding: 0 1.1rem 1rem 3rem;
}

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

.faq-empty {
  background-color: #fff;
  border: 1px dashed #dee2e6;
  border-radius: 16px;
  margin: 0 auto;
  max-width: 560px;
  padding: 2rem 1.25rem;
}

.faq-empty__icon {
  color: #adb5bd;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.faq-empty__text {
  color: #6c757d;
}

@media (max-width: 767.98px) {
  .faq-shell__header {
    margin-bottom: 1.25rem;
  }

  .faq-item__toggle {
    gap: 0.75rem;
    padding: 1rem;
  }

  .faq-item__index {
    flex-basis: 28px;
    font-size: 0.88rem;
  }

  .faq-item__icon {
    flex-basis: 30px;
    height: 30px;
  }

  .faq-item__answer {
    padding: 0 1rem 1rem 1rem;
  }
}

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