.page-faq {
  --faq-line: rgba(168, 176, 186, 0.28);
  --faq-panel-shadow: 0 16px 40px rgba(3, 8, 18, 0.45);
  position: relative;
  padding: 40px max(6%, 20px) 72px;
  background:
    linear-gradient(135deg, rgba(255, 92, 31, 0.08) 0%, transparent 30%),
    var(--c-space);
  color: var(--c-rice);
}

.page-faq > .breadcrumbs,
.page-faq > .faq-hero,
.page-faq > .faq-hot,
.page-faq > .faq-topic,
.page-faq > .faq-context {
  max-width: 1180px;
  margin-inline: auto;
}

.page-faq .faq-hero {
  padding-top: 28px;
}

.page-faq .faq-hero__lead {
  margin: 16px 0 0;
  max-width: 780px;
  color: var(--c-rock);
  font-size: var(--fs-base);
  line-height: 1.75;
}

.page-faq .faq-hero__lead strong {
  color: var(--c-rice);
  font-weight: 700;
}

.page-faq .faq-hero__grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.page-faq .faq-hero__media {
  background: var(--c-ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

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

.page-faq .faq-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--faq-line);
  border: 1px solid var(--faq-line);
}

.page-faq .faq-stat {
  background: var(--c-ink);
  padding: 16px 14px;
  min-height: 86px;
}

.page-faq .faq-stat dt {
  margin-bottom: 6px;
  color: var(--c-rock);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
}

.page-faq .faq-stat dd {
  margin: 0;
  color: var(--c-neon);
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.2;
}

.page-faq .faq-stat--plain dd {
  color: var(--c-rice);
}

.page-faq .faq-console {
  margin-top: 24px;
  border: 1px solid var(--faq-line);
  background: var(--c-ink);
}

.page-faq .faq-console__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px dashed rgba(198, 255, 77, 0.3);
}

.page-faq .faq-console__prompt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--c-rock);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.page-faq .faq-console__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-neon);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.page-faq .faq-console__live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-neon);
  animation: faq-live-pulse 0.64s ease-in-out infinite alternate;
}

@keyframes faq-live-pulse {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-console__live::before {
    animation: none;
  }
}

.page-faq .faq-console__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
}

.page-faq .faq-console__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  color: var(--c-rice);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.page-faq .faq-console__nav a:hover,
.page-faq .faq-console__nav a:focus-visible {
  border-color: var(--c-orange);
  color: var(--c-orange);
  background: rgba(255, 92, 31, 0.08);
}

.page-faq .faq-hot {
  margin-top: 64px;
}

.page-faq .faq-hot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.page-faq .faq-hot-card {
  --faq-topic-color: var(--c-rock);
  position: relative;
  display: block;
  padding: 20px 18px 18px;
  background: var(--c-rice);
  color: var(--c-space);
  text-decoration: none;
  border-top: 4px solid var(--faq-topic-color);
  box-shadow: var(--faq-panel-shadow);
  transition: transform 0.3s ease, outline-color 0.3s ease;
}

.page-faq .faq-hot-card--live {
  --faq-topic-color: var(--c-orange);
}

.page-faq .faq-hot-card--table {
  --faq-topic-color: var(--c-moss);
}

.page-faq .faq-hot-card--fav {
  --faq-topic-color: var(--c-terracotta);
}

.page-faq .faq-hot-card--feedback {
  --faq-topic-color: var(--c-neon);
  background: var(--c-ink);
  color: var(--c-rice);
}

.page-faq .faq-hot-card--feedback .faq-hot-card__desc {
  color: var(--c-rock);
}

.page-faq .faq-hot-card--feedback .faq-hot-card__tag {
  color: var(--c-neon);
}

.page-faq .faq-hot-card:hover,
.page-faq .faq-hot-card:focus-visible {
  outline: 2px solid var(--faq-topic-color);
  outline-offset: 4px;
  transform: translateY(-2px);
}

.page-faq .faq-hot-card__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faq-topic-color);
}

.page-faq .faq-hot-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: var(--fs-md);
  line-height: 1.35;
}

.page-faq .faq-hot-card__desc {
  display: block;
  color: #5a6672;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.page-faq .faq-topic {
  --faq-topic-color: var(--c-rock);
  display: grid;
  gap: 18px;
  margin-top: 64px;
}

.page-faq .faq-topic--live {
  --faq-topic-color: var(--c-orange);
}

.page-faq .faq-topic--table {
  --faq-topic-color: var(--c-moss);
}

.page-faq .faq-topic--fav {
  --faq-topic-color: var(--c-terracotta);
}

.page-faq .faq-topic--feedback {
  --faq-topic-color: var(--c-neon);
}

.page-faq .faq-topic__head {
  padding-left: 16px;
  border-left: 3px solid var(--faq-topic-color);
}

.page-faq .faq-topic__head h2 {
  margin: 8px 0;
  color: var(--c-rice);
  font-size: var(--fs-lg);
  line-height: 1.2;
}

.page-faq .faq-topic__head p {
  margin: 0;
  max-width: 620px;
  color: var(--c-rock);
  font-size: var(--fs-sm);
  line-height: 1.75;
}

.page-faq .faq-panel {
  background: var(--c-rice);
  color: var(--c-space);
  border-left: 4px solid var(--faq-topic-color);
  box-shadow: var(--faq-panel-shadow);
  min-width: 0;
}

.page-faq .faq-item {
  border-bottom: 1px solid var(--faq-line);
}

.page-faq .faq-item:last-child {
  border-bottom: 0;
}

.page-faq .faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  color: var(--c-space);
  font-weight: 700;
  font-size: var(--fs-base);
  transition: background-color 0.3s ease;
}

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

.page-faq .faq-item summary:hover {
  background: rgba(217, 125, 74, 0.08);
}

.page-faq .faq-item__q {
  flex: 0 0 auto;
  padding: 1px 6px;
  border: 1px solid var(--faq-topic-color);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-space);
}

.page-faq .faq-item__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-faq .faq-item__mark {
  flex: 0 0 auto;
  position: relative;
  width: 24px;
  height: 24px;
}

.page-faq .faq-item__mark::before,
.page-faq .faq-item__mark::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 2px;
  background: var(--faq-topic-color);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.page-faq .faq-item__mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.page-faq .faq-item[open] .faq-item__mark::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.page-faq .faq-item__body {
  padding: 2px 18px 22px 60px;
}

.page-faq .faq-item__body p {
  margin: 0;
  max-width: 660px;
  color: #3c4652;
  font-size: var(--fs-sm);
  line-height: 1.75;
}

.page-faq .faq-flow-wrap {
  display: grid;
  gap: 20px;
  margin-top: 28px;
  align-items: center;
}

.page-faq .faq-flow {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.page-faq .faq-flow::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-orange), var(--c-neon), var(--c-rock));
}

.page-faq .faq-flow__step {
  position: relative;
  padding: 0 0 30px 48px;
}

.page-faq .faq-flow__step:last-child {
  padding-bottom: 0;
}

.page-faq .faq-flow__num {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--c-rock);
  background: var(--c-space);
  color: var(--c-rice);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.page-faq .faq-flow__step--ok .faq-flow__num {
  border-color: var(--c-moss);
  color: var(--c-moss);
}

.page-faq .faq-flow__step--active .faq-flow__num {
  border-color: var(--c-orange);
  color: var(--c-orange);
}

.page-faq .faq-flow__step--active .faq-flow__num::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--c-orange);
  border-radius: 50%;
  opacity: 0.5;
}

.page-faq .faq-flow__step h3 {
  margin: 0 0 6px;
  font-size: var(--fs-base);
  color: var(--c-rice);
}

.page-faq .faq-flow__step p {
  margin: 0;
  max-width: 400px;
  color: var(--c-rock);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.page-faq .faq-flow-aside img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 6px;
}

.page-faq .faq-feedback-card {
  display: grid;
  gap: 24px;
  margin-top: 28px;
  padding: 24px;
  background: var(--c-ink);
  border-left: 5px solid var(--c-neon);
}

.page-faq .faq-countdown {
  position: relative;
  width: min(200px, 70vw);
  margin: 0 auto;
}

.page-faq .faq-countdown__svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-faq .faq-countdown__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-faq .faq-countdown__label strong {
  color: var(--c-rice);
  font-family: var(--font-mono);
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
}

.page-faq .faq-countdown__label small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.page-faq .faq-countdown__label span {
  margin-top: 8px;
  color: var(--c-rock);
  font-size: var(--fs-xs);
}

.page-faq .faq-feedback-card__content {
  display: grid;
  gap: 16px;
}

.page-faq .faq-feedback-card__content p {
  margin: 0;
  color: var(--c-rock);
  font-size: var(--fs-sm);
  line-height: 1.75;
}

.page-faq .faq-feedback-card__content img {
  display: block;
  width: 100%;
  height: auto;
}

.page-faq .faq-feedback-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-faq .faq-context {
  margin-top: 88px;
  padding: 28px 24px;
  background: var(--c-ink);
  border-top: 3px solid var(--c-orange);
}

.page-faq .faq-context h2 {
  margin: 0 0 10px;
  color: var(--c-rice);
  font-size: var(--fs-md);
}

.page-faq .faq-context > p {
  margin: 0 0 18px;
  max-width: 720px;
  color: var(--c-rock);
  font-size: var(--fs-sm);
  line-height: 1.75;
}

.page-faq .faq-context__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.page-faq .faq-context__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--faq-line);
  color: var(--c-rice);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.page-faq .faq-context__links a:hover,
.page-faq .faq-context__links a:focus-visible {
  border-color: var(--c-orange);
  color: var(--c-orange);
}

.page-faq .faq-context__contact {
  display: grid;
  gap: 6px;
  font-style: normal;
  color: var(--c-rock);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.page-faq .faq-context__contact span {
  overflow-wrap: anywhere;
}

.page-faq .faq-context__contact a {
  color: var(--c-neon);
  text-decoration: none;
}

.page-faq .faq-context__contact a:hover {
  text-decoration: underline;
}

@media (min-width: 720px) {
  .page-faq {
    padding: 56px max(4%, 28px) 96px;
  }

  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .page-faq .faq-hot {
    margin-top: 88px;
  }

  .page-faq .faq-hot__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .page-faq .faq-topic {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px 42px;
    margin-top: 88px;
  }

  .page-faq .faq-topic__head {
    grid-column: 1;
    grid-row: 1;
  }

  .page-faq .faq-panel {
    grid-column: 2;
    grid-row: 1;
  }

  .page-faq .faq-feedback-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .page-faq .faq-countdown {
    margin: 0;
  }
}

@media (min-width: 840px) {
  .page-faq .faq-flow-wrap {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (min-width: 980px) {
  .page-faq .faq-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .page-faq .faq-flow::before {
    left: 8%;
    right: 8%;
    top: 50%;
    bottom: auto;
    height: 2px;
    width: auto;
    background: linear-gradient(90deg, var(--c-orange), var(--c-neon));
  }

  .page-faq .faq-flow__step {
    padding: 52px 18px 0;
  }

  .page-faq .faq-flow__num {
    left: 0;
    top: 0;
  }
}
