.faq-groups {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-search {
  margin: 0 0 20px;
}

.faq-search__field {
  position: relative;
}

.faq-search__field::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 18px;
  width: 15px;
  height: 15px;
  border: 2px solid #67b6c1;
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.faq-search__field::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 31px;
  width: 8px;
  height: 2px;
  background: #67b6c1;
  transform: translateY(5px) rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

.faq-search__input {
  width: 100%;
  min-height: 52px;
  padding: 12px 46px 12px 50px;
  border: 2px solid #cfe4e7;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-search__input:focus {
  border-color: #67b6c1;
  box-shadow: 0 0 0 3px rgba(103, 182, 193, 0.18);
}

.faq-search__input::placeholder {
  color: #777;
}

.faq-search__status {
  margin: 8px 2px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}

.faq-search__empty {
  margin: 16px 0 0;
  padding: 18px;
  border-radius: 8px;
  background: #f4f4f4;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  color: #555;
}

.faq-category {
  margin-top: 14px;
  border: 1px solid #cfe4e7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.faq-category:first-of-type {
  margin-top: 0;
}

.faq-category__summary,
.faq-question__summary {
  position: relative;
  list-style: none;
  cursor: pointer;
}

.faq-category__summary::-webkit-details-marker,
.faq-question__summary::-webkit-details-marker {
  display: none;
}

.faq-category__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 58px 16px 18px;
  background: #67b6c1;
  color: #fff;
}

.faq-category__title {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.faq-category__count {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}

.faq-category__summary::before,
.faq-category__summary::after,
.faq-question__summary::before,
.faq-question__summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  width: 18px;
  height: 3px;
  transform: translateY(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-category__summary::before,
.faq-category__summary::after {
  background: #fff;
}

.faq-question__summary::before,
.faq-question__summary::after {
  background: #222;
}

.faq-category__summary::after,
.faq-question__summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-category[open] > .faq-category__summary::after,
.faq-question[open] > .faq-question__summary::after {
  opacity: 0;
  transform: translateY(-50%) rotate(180deg);
}

.faq-category[open] > .faq-category__summary::before,
.faq-question[open] > .faq-question__summary::before {
  transform: translateY(-50%) rotate(180deg);
}

.faq-category__content {
  padding: 6px 16px 16px;
  background: #fff;
}

.faq-question {
  border-bottom: 1px solid #e7e7e7;
}

.faq-question:last-child {
  border-bottom: 0;
}

.faq-question__summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 52px 16px 8px;
}

.faq-question__title {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: #111;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.faq-badge--q {
  background: #67b6c1;
  color: #fff;
}

.faq-badge--a {
  background: #f0a45d;
  color: #fff;
}

.faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  padding: 16px;
  background: #f4f4f4;
}

.faq-answer__content {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #222;
}

.faq-answer__content p {
  margin: 0 0 0.9em;
}

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

.faq-answer__content ul,
.faq-answer__content ol {
  margin: 0.6em 0;
  padding-left: 1.5em;
}

.faq-answer__content a:link,
.faq-answer__content a:visited {
  color: #245daf;
  text-decoration: underline;
}

.faq-answer__content a:hover {
  opacity: 0.7;
}

.faq-highlight {
  padding: 0 0.12em;
  border-radius: 0.2em;
  background: #fff1a8;
  color: #222;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@media screen and (max-width: 768px) {
  .faq-search {
    margin-bottom: 14px;
  }

  .faq-search__input {
    min-height: 48px;
    padding: 10px 42px 10px 46px;
    font-size: 16px;
  }

  .faq-search__field::before {
    left: 15px;
  }

  .faq-search__field::after {
    left: 28px;
  }

  .faq-category {
    margin-top: 10px;
    border-radius: 6px;
  }

  .faq-category__summary {
    padding: 14px 52px 14px 14px;
  }

  .faq-category__title {
    font-size: 16px;
  }

  .faq-category__content {
    padding: 4px 10px 12px;
  }

  .faq-question__summary {
    gap: 9px;
    padding: 13px 44px 13px 4px;
  }

  .faq-question__title {
    font-size: 14px;
    line-height: 1.65;
  }

  .faq-badge {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .faq-answer {
    gap: 9px;
    margin-bottom: 10px;
    padding: 13px 10px;
  }

  .faq-answer__content {
    font-size: 13px;
    line-height: 1.8;
  }
}
