h3 {
  font-weight: 600;
}

.how-to-use-toolbar {
  padding: clamp(12px, 2vw, 20px) clamp(16px, 3vw, 50px) 0;
  overflow: visible;
}

.how-to-use-toolbar-inner {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  overflow: visible;
  padding: clamp(12px, 2vw, 20px) 0px;
}

.how-to-use-search {
  position: relative;
  width: min(clamp(280px, 100%, 360px), 100%);
  overflow: visible;
}

.how-to-use-search input {
  width: 100%;
  height: 44px;
  border: 1px solid #d4d9e1;
  border-radius: 999px;
  padding: 0 44px 0 16px;
  font-size: 14px;
  color: #1b1f27;
  outline: none;
}

.how-to-use-search input:focus {
  border-color: #1d2530;
}

.how-to-use-search [data-search-toggle] {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #6c7482;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.how-to-use-search .icon {
  width: 18px;
  height: 18px;
}

.how-to-use-search .icon-clear {
  display: none;
}

.faq-search-popup {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 102;
  min-height: 52px;
  max-height: 280px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(186, 192, 204, 0.75);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
  overflow-x: hidden;
  overflow-y: auto;
}

.faq-search-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 6px;
}

.faq-search-results li {
  display: block;
}

.faq-search-item {
  display: block;
  width: 100%;
  min-height: 40px;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  color: #1f2632;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.faq-search-item:hover,
.faq-search-item:focus-visible {
  background: rgba(214, 48, 49, 0.1);
  color: #d63031;
  text-decoration: underline;
}

.faq-search-item-title {
  display: block;
}

.faq-search-item-snippet {
  display: block;
  margin-top: 2px;
  color: #687083;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.faq-search-item:hover .faq-search-item-snippet,
.faq-search-item:focus-visible .faq-search-item-snippet {
  color: #d63031;
}

.faq-content-match-highlight {
  background: rgba(214, 48, 49, 0.14);
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(214, 48, 49, 0.14);
  transition:
    background 0.5s ease,
    box-shadow 0.5s ease;
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(40px, 8vw, 100px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #d63031;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.2s ease;
  z-index: 200;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #b52425;
}

.back-to-top img {
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);
}

@media (max-width: 768px) {
  .back-to-top {
    width: 40px;
    height: 40px;
  }

  .back-to-top img {
    width: 16px;
    height: 16px;
  }
}

.faq-search-empty {
  color: #687083;
  font-size: 13px;
  line-height: 1.35;
  padding: 10px 12px;
}

.how-to-use-search.has-value .icon-search {
  display: none;
}

.how-to-use-search.has-value .icon-clear {
  display: block;
}

@media (max-width: 768px) {
  .how-to-use-toolbar {
    padding: 16px;
  }

  .how-to-use-search {
    width: 100%;
    max-width: 100%;
  }

  .faq-search-item {
    font-size: 13px;
    padding: 10px;
  }
}

.faq-topics-section {
  padding: clamp(16px, 1.8vw, 36px) clamp(16px, 3vw, 50px) 40px;
  position: relative;
}

.faq-menu-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: 1px solid #e3e5e8;
  border-radius: 10px;
  cursor: pointer;
  padding: 12px 14px;
  text-align: left;
}

.faq-menu-toggle-label {
  color: #d63031;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.faq-menu-toggle-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

.faq-menu-toggle.active .faq-menu-toggle-icon {
  transform: rotate(-90deg);
}

.faq-topics-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(460px, 3fr);
  gap: 36px;
  align-items: start;
}

.faq-topic-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.faq-topic-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-topic-group-title {
  margin: 0;
  color: #202532;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.faq-topic-group-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 18px;
}

.faq-topic-link {
  display: block;
  text-decoration: none;
  color: #151922;
  font-size: 16px;
  line-height: 1.28;
  font-weight: 400;
  border-radius: 10px;
  padding: 2px 0;
  margin-left: 0;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.faq-topic-link:hover,
.faq-topic-link:focus-visible {
  color: #d63031;
  text-decoration: underline;
}

.faq-topic-link.active {
  color: #d63031;
  font-weight: 600;
  text-decoration: underline;
}

.faq-topic-preview {
  /* background: #f1f2f4; */
  border-radius: 18px;
  padding: 26px 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 100%;
}

.faq-preview-arrow {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transform: rotate(180deg);
}

.faq-topic-preview h2 {
  margin: 0;
  color: #2d3040;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  font-weight: 600;
}

.faq-topic-preview p {
  margin: 0;
  color: #7a808a;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.35;
  font-weight: 400;
}

.faq-topic-preview ul {
  margin: 0;
  color: #7a808a;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.35;
  font-weight: 400;
}

@media (max-width: 1024px) {
  .how-to-use-toolbar {
    padding: 12px clamp(16px, 2vw, 20px) 0;
  }

  .faq-topics-section {
    padding: 20px clamp(16px, 2vw, 24px) 32px;
  }

  .faq-topics-layout {
    grid-template-columns: minmax(200px, 1fr) minmax(300px, 1.4fr);
    gap: 20px;
  }

  .faq-topic-link {
    font-size: 15px;
  }

  .faq-topic-group-title {
    font-size: 13px;
  }

  .faq-topic-preview {
    min-height: 180px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .how-to-use-toolbar {
    padding: 10px clamp(12px, 2vw, 16px) 0;
  }

  .how-to-use-toolbar-inner {
    justify-content: flex-end;
  }

  .how-to-use-search {
    width: 100%;
    max-width: none;
  }

  .how-to-use-search input {
    font-size: clamp(13px, 2vw, 14px);
    height: 40px;
    padding: 0 36px 0 12px;
  }

  .faq-topics-section {
    padding: 16px clamp(12px, 2vw, 16px) 20px;
  }

  .faq-menu-toggle {
    display: flex;
    position: relative;
    z-index: 99;
    margin-bottom: 38px;
  }

  .faq-topics-layout {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    position: relative;
  }

  .faq-topic-list {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 99;
    padding: 16px clamp(12px, 2vw, 20px);
    gap: 16px;
    max-height: min(60vh, 420px);
    overflow-y: auto;
    border: 1px solid #e3e5e8;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    margin-top: -30px;
  }

  .faq-topic-list.active {
    display: flex;
  }

  .faq-topics-layout::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 97;
    display: none;
    cursor: pointer;
  }

  .faq-topics-layout.menu-open::before {
    display: block;
  }

  .faq-topic-group {
    gap: 10px;
  }

  .faq-topic-group-items {
    gap: 8px;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
  }

  .faq-topic-link {
    font-size: 14px;
    line-height: 1.4;
    padding: 6px 0;
  }

  .faq-topic-group-title {
    font-size: 12px;
    margin: 0 0 8px 0;
  }

  .faq-topic-preview {
    min-height: auto;
    padding: clamp(12px, 2vw, 16px);
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
  }

  .faq-topic-preview h2 {
    font-size: clamp(22px, 4vw, 32px);
  }

  .faq-preview-arrow {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .how-to-use-toolbar {
    padding: 8px clamp(10px, 1vw, 12px) 0;
  }

  .how-to-use-search input {
    height: 36px;
    font-size: 12px;
    padding: 0 32px 0 10px;
  }

  .faq-topics-section {
    padding: 12px clamp(10px, 1vw, 12px) 12px;
  }

  .faq-menu-toggle {
    padding: 10px 12px;
    margin-bottom: 30px;
  }

  .faq-menu-toggle-label {
    font-size: 13px;
  }

  .faq-menu-toggle-icon {
    width: 14px;
    height: 14px;
  }

  .faq-topic-list {
    padding: 14px clamp(10px, 1vw, 14px);
    margin-top: -24px;
  }

  .faq-topics-layout {
    gap: 0;
  }

  .faq-topic-group-title {
    font-size: 14px;
    margin: 0 0 4px 0;
  }

  .faq-topic-link {
    font-size: 14px;
    line-height: 1.2;
    padding: 3px 0;
  }

  .faq-topic-group-items {
    gap: 4px;
    padding-left: 8px;
  }

  .faq-topic-preview {
    padding: 10px;
    width: 100%;
    max-width: 100%;
  }

  .faq-topic-preview h2 {
    font-size: clamp(18px, 4vw, 24px);
  }

  .faq-preview-arrow {
    width: 16px;
    height: 16px;
  }
}
