.page-faq {
  --faq-side-w: 280px;
  --faq-radius: 20px;
}

.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 24px) 0 44px;
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(255, 107, 53, .18), transparent),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 215, 0, .1), transparent),
    var(--navy);
  color: #fff;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 62%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 107, 53, .16) 0%, transparent 70%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

@media (min-width: 1024px) {
  .page-faq .faq-hero {
    margin-top: calc(-1 * var(--header-h-desktop));
    padding: calc(var(--header-h-desktop) + 36px) 0 64px;
  }
}

.page-faq .faq-hero-inner {
  position: relative;
  z-index: 1;
}

.page-faq .faq-breadcrumbs .breadcrumb-link {
  color: rgba(255, 255, 255, .72);
}

.page-faq .faq-breadcrumbs .breadcrumb-link:hover {
  color: #fff;
}

.page-faq .faq-breadcrumbs .breadcrumb-current {
  color: var(--gold);
}

.page-faq .faq-hero-kick {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
  color: var(--gold);
}

.page-faq .faq-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 26px;
}

.page-faq .faq-hero-content h1 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.18;
  margin: 14px 0 16px;
  color: #fff;
  letter-spacing: .01em;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .page-faq .faq-hero-content h1 {
    font-size: 38px;
  }
}

@media (min-width: 1200px) {
  .page-faq .faq-hero-content h1 {
    font-size: 44px;
  }
}

.page-faq .faq-hero-desc {
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 20px;
  max-width: 62ch;
}

.page-faq .faq-hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.page-faq .faq-keyword {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--pill);
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  letter-spacing: .02em;
}

.page-faq .faq-hero-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.page-faq .faq-hero-stat-num {
  font-size: 28px;
  font-weight: 600;
  color: var(--orange);
  line-height: 1;
}

.page-faq .faq-hero-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
}

.page-faq .faq-hero-stat-divider {
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  opacity: .7;
}

.page-faq .faq-hero-figure {
  margin: 0;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 107, 53, .8), rgba(255, 215, 0, .7));
  border-radius: var(--radius-lg);
  transform: rotate(1.2deg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}

.page-faq .faq-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 8px);
  object-fit: cover;
}

.page-faq .faq-filter-wrap {
  padding-top: 32px;
}

.page-faq .faq-filter-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-faq .faq-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 12px;
  margin: 0 -12px 28px;
  scrollbar-width: thin;
}

@media (min-width: 1024px) {
  .page-faq .faq-filter-bar {
    display: none;
  }
}

.page-faq .faq-filter-label {
  flex: 0 0 auto;
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--pill);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.page-faq .faq-filter-label:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.page-faq .faq-filter-input:focus-visible ~ .faq-filter-bar .faq-filter-label {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.page-faq #filter-all:checked ~ .faq-filter-bar label[for="filter-all"],
.page-faq #filter-basics:checked ~ .faq-filter-bar label[for="filter-basics"],
.page-faq #filter-data:checked ~ .faq-filter-bar label[for="filter-data"],
.page-faq #filter-features:checked ~ .faq-filter-bar label[for="filter-features"],
.page-faq #filter-support:checked ~ .faq-filter-bar label[for="filter-support"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 1024px) {
  .page-faq .faq-layout {
    grid-template-columns: var(--faq-side-w) 1fr;
    gap: 56px;
  }
}

.page-faq .faq-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .page-faq .faq-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-h-desktop) + 28px);
  }
}

.page-faq .faq-side-block {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.page-faq .faq-side-title {
  display: block;
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.page-faq .faq-side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background .2s ease, color .2s ease;
}

.page-faq .faq-side-link + .faq-side-link {
  margin-top: 2px;
}

.page-faq .faq-side-link:hover {
  background: rgba(255, 107, 53, .08);
  color: var(--orange);
}

.page-faq .faq-side-index {
  font-size: 12px;
  color: var(--muted);
  width: 24px;
  flex: 0 0 auto;
}

.page-faq .faq-side-name {
  flex: 1;
}

.page-faq .faq-side-count {
  font-size: 12px;
  color: var(--muted);
}

.page-faq .faq-filter-input:focus-visible ~ .faq-layout .faq-side-link {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.page-faq #filter-all:checked ~ .faq-layout .faq-side-link[for="filter-all"],
.page-faq #filter-basics:checked ~ .faq-layout .faq-side-link[for="filter-basics"],
.page-faq #filter-data:checked ~ .faq-layout .faq-side-link[for="filter-data"],
.page-faq #filter-features:checked ~ .faq-layout .faq-side-link[for="filter-features"],
.page-faq #filter-support:checked ~ .faq-layout .faq-side-link[for="filter-support"] {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 31, 68, .16);
}

.page-faq #filter-all:checked ~ .faq-layout .faq-side-link[for="filter-all"] .faq-side-index,
.page-faq #filter-basics:checked ~ .faq-layout .faq-side-link[for="filter-basics"] .faq-side-index,
.page-faq #filter-data:checked ~ .faq-layout .faq-side-link[for="filter-data"] .faq-side-index,
.page-faq #filter-features:checked ~ .faq-layout .faq-side-link[for="filter-features"] .faq-side-index,
.page-faq #filter-support:checked ~ .faq-layout .faq-side-link[for="filter-support"] .faq-side-index {
  color: var(--gold);
}

.page-faq .faq-side-help {
  margin-top: 14px;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-faq .faq-side-help::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(255, 107, 53, .5), transparent 70%);
  pointer-events: none;
}

.page-faq .faq-side-help-tag {
  display: inline-block;
  background: var(--orange);
  border-radius: var(--pill);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.page-faq .faq-side-help-title {
  font-family: var(--font-headline);
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: #fff;
}

.page-faq .faq-side-help p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .78);
  margin: 0 0 16px;
}

.page-faq .faq-side-help .data {
  color: var(--gold);
  word-break: break-all;
}

.page-faq .faq-side-help-btn {
  width: 100%;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.page-faq .faq-section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.page-faq .faq-section + .faq-section {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.page-faq .faq-section-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.page-faq .faq-section-index {
  font-family: var(--font-headline);
  font-size: 54px;
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--orange);
  flex: 0 0 auto;
}

.page-faq .faq-section-meta {
  padding-top: 4px;
}

.page-faq .faq-section-title {
  font-family: var(--font-headline);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin: 6px 0 4px;
  letter-spacing: .02em;
}

.page-faq .faq-section-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

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

.page-faq .faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--faq-radius);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.page-faq .faq-item[open] {
  border-color: rgba(255, 107, 53, .45);
  box-shadow: 0 12px 32px rgba(10, 31, 68, .08);
}

.page-faq .faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
}

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

.page-faq .faq-item summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
  border-radius: var(--faq-radius);
}

.page-faq .faq-q-num {
  flex: 0 0 auto;
  min-width: 42px;
  text-align: center;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 6px;
  border-radius: var(--pill);
  letter-spacing: .04em;
  transition: background .25s ease;
}

.page-faq .faq-item[open] .faq-q-num {
  background: var(--orange);
}

.page-faq .faq-q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.page-faq .faq-item[open] .faq-q-text {
  color: var(--navy);
}

.page-faq .faq-q-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 2px solid var(--border);
  border-radius: 50%;
  transition: background .25s ease, border-color .25s ease;
}

.page-faq .faq-q-toggle::before,
.page-faq .faq-q-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--orange);
  border-radius: 2px;
  transition: opacity .2s ease;
}

.page-faq .faq-q-toggle::before {
  width: 10px;
  height: 2px;
}

.page-faq .faq-q-toggle::after {
  width: 2px;
  height: 10px;
}

.page-faq .faq-item[open] .faq-q-toggle {
  background: var(--orange);
  border-color: var(--orange);
}

.page-faq .faq-item[open] .faq-q-toggle::before {
  background: #fff;
}

.page-faq .faq-item[open] .faq-q-toggle::after {
  opacity: 0;
}

.page-faq .faq-a {
  padding: 18px 20px 22px;
  border-top: 1px dashed var(--border);
  background: linear-gradient(180deg, rgba(245, 247, 250, .4), transparent);
}

@media (min-width: 640px) {
  .page-faq .faq-a {
    padding-left: 76px;
    padding-right: 28px;
  }
}

.page-faq .faq-a p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  margin: 0 0 12px;
}

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

.page-faq .faq-a a {
  color: var(--orange);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-faq .faq-a a:hover {
  color: var(--navy);
}

.page-faq #filter-all:checked ~ .faq-layout .faq-section {
  display: block;
}

.page-faq #filter-basics:checked ~ .faq-layout .faq-section[data-faq-cat="basics"],
.page-faq #filter-data:checked ~ .faq-layout .faq-section[data-faq-cat="data"],
.page-faq #filter-features:checked ~ .faq-layout .faq-section[data-faq-cat="features"],
.page-faq #filter-support:checked ~ .faq-layout .faq-section[data-faq-cat="support"] {
  display: block;
}

.page-faq #filter-basics:checked ~ .faq-layout .faq-section:not([data-faq-cat="basics"]),
.page-faq #filter-data:checked ~ .faq-layout .faq-section:not([data-faq-cat="data"]),
.page-faq #filter-features:checked ~ .faq-layout .faq-section:not([data-faq-cat="features"]),
.page-faq #filter-support:checked ~ .faq-layout .faq-section:not([data-faq-cat="support"]) {
  display: none;
}

.page-faq .faq-support {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.page-faq .faq-support::before {
  content: "";
  position: absolute;
  right: -5%;
  top: -30px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 107, 53, .32), transparent 70%);
  pointer-events: none;
}

.page-faq .faq-support::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

.page-faq .faq-support-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .page-faq .faq-support-inner {
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
  }
}

.page-faq .faq-support-content .label-tag {
  background: rgba(255, 107, 53, .2);
  border-color: rgba(255, 107, 53, .45);
  color: var(--orange);
}

.page-faq .faq-support-title {
  font-family: var(--font-headline);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin: 12px 0 12px;
  line-height: 1.2;
}

.page-faq .faq-support-lead {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .78);
  margin: 0 0 22px;
  max-width: 62ch;
}

.page-faq .faq-support-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .page-faq .faq-support-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-faq .faq-support-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 14px 16px;
}

.page-faq .faq-support-card .data {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.page-faq .faq-support-card-value {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  word-break: break-all;
}

.page-faq .faq-support-cards .faq-support-card:last-child {
  grid-column: 1 / -1;
}

.page-faq .faq-support-content .button-primary {
  display: inline-flex;
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.page-faq .faq-support-content .button-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.page-faq .faq-support-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.page-faq .faq-support-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-q-toggle,
  .page-faq .faq-q-toggle::before,
  .page-faq .faq-q-toggle::after,
  .page-faq .faq-filter-label,
  .page-faq .faq-side-link,
  .page-faq .faq-hero-figure {
    transition: none;
    animation: none;
  }
}
