.page-faq {
  --faq-border: rgba(176, 196, 222, 0.18);
  --faq-card-bg: rgba(30, 58, 95, 0.38);
  --faq-card-bg-hover: rgba(30, 58, 95, 0.55);
  position: relative;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(30, 58, 95, 0.6), transparent 65%),
    var(--sky-deep);
  color: var(--cloud);
  padding-bottom: 96px;
}

.page-faq .breadcrumb {
  margin-top: 28px;
  margin-bottom: 36px;
  font-size: 14px;
}

.page-faq .breadcrumb__link {
  color: var(--moon-blue);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.page-faq .breadcrumb__link:hover {
  color: var(--star-gold);
}

.page-faq .breadcrumb__sep {
  margin: 0 10px;
  color: rgba(176, 196, 222, 0.5);
}

.page-faq .breadcrumb__current {
  color: var(--star-gold);
}

.page-faq .page-heading {
  position: relative;
  margin-bottom: 52px;
  padding-left: 18px;
}

.page-faq .page-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: var(--gold-grad);
}

.page-faq .page-heading__index {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--flame-red);
  letter-spacing: 0.12em;
}

.page-faq .section-label {
  display: inline-block;
  margin-left: 10px;
}

.page-faq .page-heading__title {
  margin: 14px 0 12px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-faq .page-heading__desc {
  max-width: 640px;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--moon-blue);
}

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px 0;
  align-items: start;
}

.faq-aside__inner {
  padding: 20px;
  border: 1px solid var(--faq-border);
  border-top: 3px solid var(--star-gold);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(30, 58, 95, 0.58), rgba(10, 25, 48, 0.92));
}

.faq-aside__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: 22px;
  border-radius: 8px;
  border: 1px solid rgba(176, 196, 222, 0.16);
}

.faq-toc__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--star-gold);
}

.faq-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-toc__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 4px;
  color: var(--moon-blue);
  text-decoration: none;
  border-bottom: 1px dashed rgba(176, 196, 222, 0.14);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.faq-toc__link:hover,
.faq-toc__link.is-active {
  color: var(--star-gold);
  padding-left: 10px;
}

.faq-toc__num {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--star-gold);
}

.faq-toc__text {
  font-size: 15px;
  font-weight: 500;
}

.faq-aside__btn {
  display: flex;
  width: 100%;
  margin-top: 20px;
  justify-content: center;
}

.faq-main {
  min-width: 0;
}

.faq-section {
  margin-bottom: 52px;
  padding-bottom: 40px;
  border-bottom: 1px dashed rgba(176, 196, 222, 0.22);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.faq-section__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.faq-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--star-gold);
  background: linear-gradient(135deg, rgba(245, 179, 0, 0.18), rgba(245, 179, 0, 0.05));
  border: 1px solid rgba(245, 179, 0, 0.35);
}

.faq-section__desc {
  max-width: 620px;
  margin: 0 0 22px;
  padding-left: 52px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--moon-blue);
}

.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--faq-border);
  border-left: 3px solid var(--star-gold);
  border-radius: 10px;
  background: var(--faq-card-bg);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-item:hover {
  background: var(--faq-card-bg-hover);
}

.faq-item[open] {
  border-left-color: var(--flame-red);
  background: var(--faq-card-bg-hover);
  box-shadow: 0 10px 28px rgba(10, 25, 48, 0.35);
}

.faq-item__q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 18px 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--cloud);
  list-style: none;
  user-select: none;
  transition: color 0.3s var(--ease);
}

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

.faq-item__q:hover {
  color: var(--star-gold);
}

.faq-item[open] .faq-item__q {
  font-weight: 700;
  color: var(--star-gold);
}

.faq-item__num {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--star-gold);
  border: 1px solid rgba(245, 179, 0, 0.45);
  border-radius: 5px;
  letter-spacing: 0.05em;
}

.faq-item__text {
  flex: 1;
}

.faq-item__toggle {
  flex-shrink: 0;
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(176, 196, 222, 0.3);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: var(--star-gold);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.faq-item__toggle::before {
  top: 9px;
  left: 5px;
  width: 10px;
  height: 2px;
}

.faq-item__toggle::after {
  top: 5px;
  left: 9px;
  width: 2px;
  height: 10px;
}

.faq-item[open] .faq-item__toggle {
  transform: rotate(180deg);
  border-color: var(--star-gold);
}

.faq-item[open] .faq-item__toggle::after {
  transform: scaleY(0);
}

.faq-item__a {
  padding: 14px 20px 22px 56px;
  border-top: 1px dashed rgba(176, 196, 222, 0.14);
  color: var(--moon-blue);
  font-size: 14px;
  line-height: 1.8;
  animation: faqFadeUp 0.35s var(--ease);
}

.faq-item__a p {
  margin: 0;
}

.faq-item__a a {
  color: var(--star-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 179, 0, 0.45);
}

.faq-postcard {
  margin-top: 48px;
  padding: 12px;
  border: 1px solid var(--faq-border);
  border-radius: var(--radius);
  background: rgba(30, 58, 95, 0.3);
}

.faq-postcard__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.faq-postcard__caption {
  margin: 10px 4px 4px;
  font-size: 13px;
  color: var(--moon-blue);
  text-align: right;
}

@keyframes faqFadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1025px) {
  .page-faq {
    padding-bottom: 140px;
  }

  .page-faq .page-heading {
    padding-left: 0;
  }

  .page-faq .page-heading::before {
    left: -28px;
  }

  .page-faq .page-heading__title {
    max-width: 760px;
    font-size: 52px;
  }

  .faq-wrap {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 0 72px;
  }

  .faq-aside__inner {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    padding: 24px;
  }

  .faq-section {
    margin-bottom: 64px;
    padding-bottom: 52px;
  }

  .faq-section__title {
    font-size: 30px;
  }
}
