.faq-page {
  --faq-ink: #17212b;
  --faq-muted: #5c6874;
  --faq-soft: #f4f8fb;
  --faq-line: rgba(18, 48, 74, 0.1);
  --faq-blue: #1f70b2;
  --faq-navy: #12304a;
  --faq-amber: #f4a51c;
  --faq-green: #2f9d78;
}

.faq-page .faq-category-nav {
  position: relative;
  top: auto;
  z-index: 1;
  border-bottom: 0;
  box-shadow: none;
}

.faq-category-nav .inner-anchor-nav__inner {
  justify-content: space-between;
}

.faq-category-nav .inner-anchor-nav__links::after {
  display: block;
}

.faq-category-nav .inner-anchor-nav__links button {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: var(--inner-anchor-height);
  padding: 0;
  color: rgba(31, 41, 51, 0.86);
  font-size: var(--inner-anchor-font-size);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-standard),
    font-size var(--duration-normal) var(--ease-standard);
}

.faq-category-nav .inner-anchor-nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: var(--inner-anchor-height);
  padding: 0;
  color: rgba(31, 41, 51, 0.86);
  font-size: var(--inner-anchor-font-size);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition:
    color var(--duration-fast) var(--ease-standard),
    font-size var(--duration-normal) var(--ease-standard);
}

.faq-category-nav .inner-anchor-nav__links a:hover,
.faq-category-nav .inner-anchor-nav__links a:focus-visible,
.faq-category-nav .inner-anchor-nav__links a.is-active,
.faq-category-nav .inner-anchor-nav__links a[aria-pressed="true"] {
  color: var(--faq-blue);
}

.faq-category-nav .inner-anchor-nav__links button:hover,
.faq-category-nav .inner-anchor-nav__links button:focus-visible,
.faq-category-nav .inner-anchor-nav__links button.is-active {
  color: var(--faq-blue);
}

.faq-category-nav .inner-anchor-nav__links button:focus-visible {
  outline: 2px solid rgba(31, 112, 178, 0.24);
  outline-offset: 6px;
}

.faq-content {
  background:
    radial-gradient(circle at 15% 8%, rgba(220, 240, 255, 0.64), rgba(220, 240, 255, 0) 34%),
    linear-gradient(180deg, #f7fbff 0%, #edf7ff 46%, #f8fbff 100%);
}

.faq-search {
  padding: clamp(38px, 4.4vw, 60px) 0 12px;
}

.faq-search__inner {
  display: grid;
  gap: 10px;
  width: calc(100% - (var(--page-gutter) * 2));
  margin: 0 auto;
}

.faq-search__count {
  margin: 0;
  color: rgba(35, 52, 71, 0.68);
  font-size: clamp(13px, 0.86vw, 15px);
  line-height: 1.6;
}

.faq-search__field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 16px 0 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 112, 178, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(18, 48, 74, 0.08);
}

.faq-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--faq-blue);
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-search__submit .iconify {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background: transparent;
  color: currentColor;
}

.faq-search__submit .iconify svg {
  display: block;
  width: 1em;
  height: 1em;
  background: transparent;
}

.faq-search__field input {
  min-width: 0;
  flex: 1 1 auto;
  height: 58px;
  appearance: none;
  -webkit-appearance: none;
  color: var(--faq-ink);
  font-size: clamp(14px, 0.96vw, 16px);
  background: transparent;
  border: 0;
  outline: 0;
}

.faq-search__field input::-webkit-search-decoration,
.faq-search__field input::-webkit-search-results-button,
.faq-search__field input::-webkit-search-results-decoration {
  display: none;
  appearance: none;
  -webkit-appearance: none;
}

.faq-search__field input::placeholder {
  color: rgba(91, 102, 115, 0.66);
}

.faq-search__field input::-webkit-search-cancel-button {
  appearance: none;
  -webkit-appearance: none;
}

.faq-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--faq-muted);
  background: rgba(18, 48, 74, 0.06);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}

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

.faq-search__clear:hover,
.faq-search__clear:focus-visible {
  color: var(--faq-blue);
  background: rgba(31, 112, 178, 0.12);
}

.faq-search__clear .iconify {
  width: 18px;
  height: 18px;
}

.faq-list-section {
  padding: 8px 0 clamp(58px, 6.4vw, 92px);
}

.faq-list-section__inner {
  width: calc(100% - (var(--page-gutter) * 2));
  margin: 0 auto;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(18, 48, 74, 0.09);
  border-radius: 8px;
  box-shadow: 0 0 0 rgba(18, 48, 74, 0);
  transition:
    border-color var(--duration-normal) var(--ease-standard),
    box-shadow var(--duration-normal) var(--ease-standard),
    transform var(--duration-normal) var(--ease-standard);
}

.faq-item:hover,
.faq-item:focus-within {
  border-color: rgba(31, 112, 178, 0.2);
  box-shadow: 0 22px 54px rgba(18, 48, 74, 0.09);
  transform: translateY(-1px);
}

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

.faq-item details {
  position: relative;
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr) auto;
  gap: clamp(12px, 1.6vw, 20px);
  align-items: center;
  min-height: 96px;
  padding: 24px clamp(24px, 3vw, 38px);
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 28px;
  padding: 0 10px;
  color: var(--faq-blue);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(31, 112, 178, 0.08);
  border-radius: 4px;
}

.faq-item:nth-child(3n + 2) .faq-item__category {
  color: var(--faq-green);
  background: rgba(47, 157, 120, 0.09);
}

.faq-item:nth-child(3n) .faq-item__category {
  color: #a87300;
  background: rgba(244, 165, 28, 0.14);
}

.faq-item summary strong {
  min-width: 0;
  color: var(--faq-ink);
  font-size: clamp(16px, 1vw, 18px);
  font-weight: 700;
  line-height: 1.42;
}

.faq-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--faq-blue);
  background: rgba(31, 112, 178, 0.08);
  border-radius: 50%;
  transition:
    color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.faq-item__icon .iconify {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.faq-item details.is-open .faq-item__icon {
  color: #ffffff;
  background: var(--faq-blue);
  transform: rotate(45deg);
}

.faq-item__answer {
  overflow: hidden;
  max-height: 0;
  padding: 0 clamp(24px, 3vw, 38px);
  opacity: 0;
  transition:
    max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-bottom 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
  will-change: max-height, opacity;
}

.faq-item details.is-open .faq-item__answer {
  max-height: 260px;
  padding-bottom: 28px;
  opacity: 1;
}

.faq-item__answer p,
.faq-item__answer p:last-child {
  max-width: none;
  margin: 0;
  color: var(--faq-muted);
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.76;
}

.faq-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 240px;
  margin-top: 14px;
  padding: 46px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed rgba(31, 112, 178, 0.26);
  border-radius: 8px;
}

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

.faq-empty .iconify {
  width: 42px;
  height: 42px;
  color: var(--faq-blue);
}

.faq-empty strong {
  color: var(--faq-ink);
  font-size: 20px;
}

.faq-empty p {
  margin: 0;
  color: var(--faq-muted);
  font-size: 15px;
  line-height: 1.7;
}

@media (min-width: 1181px) {
  .faq-page .faq-category-nav .inner-anchor-nav__inner,
  .faq-page .faq-search__inner,
  .faq-page .faq-list-section__inner {
    width: calc(100% - (var(--page-gutter) * 2));
    max-width: none;
    padding-left: var(--inner-page-align-offset);
    padding-right: var(--inner-page-align-offset);
  }
}

@media (max-width: 860px) {
  .faq-search {
    padding: 34px 0 10px;
  }

  .faq-search__inner {
    width: 100%;
    padding: 0 20px;
  }

  .faq-list-section {
    padding: 8px 0 58px;
  }

  .faq-list-section__inner {
    width: 100%;
    padding: 0 20px;
  }

  .faq-item summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    min-height: auto;
    padding: 22px 22px 18px;
  }

  .faq-item__category {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: fit-content;
  }

  .faq-item__answer {
    padding-right: 22px;
    padding-left: 22px;
  }

  .faq-item details.is-open .faq-item__answer {
    padding-bottom: 24px;
  }

  .faq-item__answer p,
  .faq-item__answer p:last-child {
    margin-left: 0;
    font-size: 14px;
    line-height: 1.68;
  }
}

@media (max-width: 760px) {
  .faq-page .faq-category-nav {
    --inner-anchor-font-size: 12px;
    --inner-anchor-line-width: 42px;
  }

  .faq-page .faq-category-nav.is-stuck {
    --inner-anchor-font-size: 12px;
    --inner-anchor-line-width: 40px;
  }

  .faq-page .faq-category-nav .inner-anchor-nav__inner {
    overflow-x: auto;
    padding: 0 18px;
  }

  .faq-page .faq-category-nav .inner-anchor-nav__links {
    gap: 18px;
  }

  .faq-page .faq-category-nav .inner-anchor-nav__links a {
    font-size: 12px;
  }

  .faq-search__inner {
    width: 100%;
    padding: 0 18px;
  }

  .faq-search {
    padding-top: 30px;
    padding-bottom: 8px;
  }

  .faq-search__count {
    font-size: 12px;
    line-height: 1.5;
  }

  .faq-search__field {
    gap: 8px;
    min-height: 50px;
    padding: 0 10px 0 12px;
  }

  .faq-search__submit,
  .faq-search__submit .iconify {
    width: 18px;
    height: 18px;
  }

  .faq-search__field input {
    height: 48px;
    font-size: 12px;
  }

  .faq-search__clear {
    width: 30px;
    height: 30px;
  }

  .faq-list-section {
    padding: 8px 0 52px;
  }

  .faq-list-section__inner {
    padding: 0 18px;
  }

  .faq-list {
    gap: 12px;
  }

  .faq-item summary {
    gap: 6px 12px;
    padding: 24px 18px 10px;
  }

  .faq-item__category {
    min-height: 24px;
    padding: 0 8px;
    font-size: 12px;
  }

  .faq-item summary strong {
    font-size: 14px;
    line-height: 1.42;
  }

  .faq-item__icon {
    align-self: center;
    width: 30px;
    height: 30px;
  }

  .faq-item__icon .iconify {
    width: 13px;
    height: 13px;
    font-size: 13px;
  }

  .faq-item__answer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .faq-item details.is-open .faq-item__answer {
    padding-bottom: 26px;
  }

  .faq-item__answer p,
  .faq-item__answer p:last-child {
    font-size: 12px;
    line-height: 1.62;
  }
}

@media (max-width: 480px) {
  .faq-search {
    padding-top: 28px;
  }

  .faq-search__inner,
  .faq-list-section__inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .faq-page .faq-category-nav .inner-anchor-nav__inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .faq-page .faq-category-nav .inner-anchor-nav__links {
    gap: 16px;
  }

  .faq-list-section {
    padding-bottom: 48px;
  }

  .faq-item summary {
    gap: 6px 10px;
    padding: 22px 16px 10px;
  }

  .faq-item__answer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .faq-item details.is-open .faq-item__answer {
    padding-bottom: 24px;
  }
}
