
.page-faq {  min-width: 0;
}

.page-faq .site-header {
  height: 67px;
}

.page-faq .primary-nav__link.is-active {
  padding-inline: 2px;
  color: #49515e;
  background: transparent;
}

.page-faq .primary-nav__link:nth-child(6) {
  padding-inline: 14px;
  color: var(--color-primary);
  background: #f0f6ff;
}

.page-faq .site-header > .container,
.page-faq .site-footer > .container,
.faq-main > .container {
  width: min(calc(100% - 48px), 1216px);
}

.faq-hero {
  position: relative;
  display: grid;
  height: 479px;
  overflow: hidden;
  place-items: center;
  background: url("../images/faq/hero-bg@2x.png") center / cover no-repeat;
}

.faq-hero__copy {
  margin-top: -4px;
  text-align: center;
}

.faq-hero__copy h1 {
  margin: 0 0 22px;
  color: #2e3035;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 2.1px;
  line-height: 1.2;
  transform: translateX(1px);
}

.faq-hero__copy p {
  margin: 0;
  color: #606a77;
  font-size: 14px;
  line-height: 1.5;
}

.faq-main {
  height: 1092px;
  overflow: hidden;
  padding-top: 61px;
  background: #fff;
}

.faq-main__inner > h2 {
  margin: 0 0 34px;
  color: #303236;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 1.3px;
  line-height: 43px;
  text-align: center;
  transform: translate(2px, 1px);
}

.faq-categories {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
}

.faq-category {
  display: inline-flex;
  height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  color: #67717e;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 26px;
  box-shadow: 0 2px 6px rgba(29, 46, 68, 0.04);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.faq-category svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: #8c98a8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.faq-category__count {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding-inline: 5px;
  color: #a2abb7;
  background: #f6f8fb;
  border-radius: 12px;
  font-size: 13px;
}

.faq-category:hover,
.faq-category:focus-visible {
  color: #176bff;
  border-color: #b9d2ff;
}

.faq-category.is-active {
  color: #fff;
  background: #2468fc;
  border-color: #2468fc;
  box-shadow: 0 7px 15px rgba(36, 104, 252, 0.24);
}

.faq-category:first-child {
  padding-inline: 23px;
}

.faq-category.is-active svg {
  stroke: #fff;
}

.faq-category.is-active .faq-category__count {
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
}

.faq-stage {
  min-height: 780px;
}

.faq-panel[hidden] {
  display: none;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.faq-card {
  min-width: 0;
  min-height: 80px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(24, 39, 58, 0.07);
}

.faq-card h3 {
  margin: 0;
}

.faq-card button {
  display: grid;
  width: 100%;
  min-height: 78px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 0 25px;
  color: #3d444e;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.45;
  text-align: left;
}

.faq-card__number {
  color: #5b8cff;
  font-weight: 600;
  letter-spacing: 0;
  transform: translateY(1px);
}

.faq-card__question {
  min-width: 0;
  overflow-wrap: anywhere;
  transform: translateY(1px);
}

.faq-card button > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: #94a1b1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.faq-card button[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}

.faq-card__answer {
  padding: 0 25px 22px 62px;
  color: #707883;
  font-size: 14px;
  line-height: 1.75;
}

.faq-card__answer p {
  margin: 0;
}

.faq-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}

.faq-pagination button {
  display: inline-flex;
  width: 44px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0;
  color: #7c8796;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.faq-pagination button.is-current {
  color: #fff;
  background: #176bff;
  border-color: #176bff;
  box-shadow: 0 5px 12px rgba(23, 107, 255, 0.22);
}

.faq-pagination button.faq-pagination__wide {
  width: 108px;
}

.faq-pagination button:disabled {
  color: #c5cbd3;
  cursor: default;
}

@media (max-width: 1180px) {
  .faq-categories {
    gap: 10px;
  }

  .faq-category {
    gap: 7px;
    padding-inline: 14px;
    font-size: 14px;
  }

  .faq-category svg {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 980px) {
  .page-faq .site-header {
    height: var(--header-height);
  }

  .page-faq .site-header > .container,
  .page-faq .site-footer > .container,
  .faq-main > .container {
    width: min(calc(100% - 36px), var(--container-width));
  }

  .page-faq .primary-nav__link:nth-child(6) {
    padding-inline: 12px;
  }

  .faq-hero {
    height: 360px;
    background-position: 57% center;
  }

  .faq-hero__copy h1 {
    font-size: 44px;
  }

  .faq-main {
    height: auto;
    min-height: 760px;
    padding: 58px 0 72px;
    overflow: visible;
  }

  .faq-main__inner > h2 {
    margin-bottom: 28px;
  }

  .faq-categories {
    justify-content: flex-start;
    margin-bottom: 38px;
    padding: 3px 1px 10px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .faq-stage {
    min-height: 0;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-faq .site-header > .container,
  .page-faq .site-footer > .container,
  .faq-main > .container {
    width: min(calc(100% - 28px), var(--container-width));
  }

  .faq-hero {
    height: 300px;
    background-position: 62% center;
  }

  .faq-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(227, 239, 255, 0.14);
  }

  .faq-hero__copy {
    position: relative;
    z-index: 1;
    padding-inline: 20px;
  }

  .faq-hero__copy h1 {
    margin-bottom: 16px;
    font-size: 38px;
  }

  .faq-hero__copy p {
    font-size: 13px;
  }

  .faq-main {
    padding-top: 48px;
  }

  .faq-main__inner > h2 {
    font-size: 28px;
    line-height: 1.4;
  }

  .faq-category {
    height: 46px;
    padding-inline: 13px;
  }

  .faq-card {
    min-height: 72px;
    border-radius: 11px;
  }

  .faq-card button {
    min-height: 70px;
    gap: 7px;
    padding: 0 16px;
    font-size: 15px;
  }

  .faq-card button > svg {
    width: 18px;
    height: 18px;
  }

  .faq-card__answer {
    padding: 0 16px 18px 45px;
    font-size: 13px;
  }

  .faq-pagination {
    gap: 7px;
    margin-top: 34px;
  }

  .faq-pagination button {
    width: 38px;
    height: 42px;
    font-size: 14px;
  }

  .faq-pagination button.faq-pagination__wide {
    width: 82px;
  }
}

