.page-faq-template {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #eef2ff;
  --ink: #10233e;
  --ink-2: #44556f;
  --line: #dbe4f0;
  --primary: #10233e;
  --accent: #6f6bff;
  --accent-2: #8b5cf6;
  --shadow: 0 20px 60px rgba(16,35,62,.08);
  --shadow-sm: 0 4px 12px rgba(16,35,62,.04);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1200px;
}

.page-faq-template .container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.page-faq-template a {
  text-decoration: none;
  color: inherit;
  transition: color .18s ease;
}

.page-faq-template h1,
.page-faq-template h2,
.page-faq-template h3,
.page-faq-template h4 {
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.03em;
}

.page-faq-template .wp-block-group,
.page-faq-template .wp-block-columns,
.page-faq-template .wp-block-buttons,
.page-faq-template .wp-block-image {
  margin-bottom: 0;
}

.page-faq-template .section {
  padding: 76px 0;
  position: relative;
}

.page-faq-template .section.soft {
  background: var(--bg-soft);
  position: relative;
}

.page-faq-template .section.soft::before,
.page-faq-template .section.soft::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.page-faq-template .section.soft::before {
  top: 0;
}

.page-faq-template .section.soft::after {
  bottom: 0;
}

.page-faq-template .page-hero {
  padding: 62px 0 24px;
  background: var(--bg);
}

.page-faq-template .page-hero h1 {
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: -.04em;
  margin: 18px 0 14px;
  color: var(--ink);
  max-width: 980px;
}

.page-faq-template .page-hero p.lead {
  font-size: 20px;
  color: var(--ink-2);
  max-width: 760px;
  margin-bottom: 0;
  line-height: 1.5;
}

.page-faq-template .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.page-faq-template .btn,
.page-faq-template .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: .18s ease;
  cursor: pointer;
}

.page-faq-template .btn-primary {
  background: var(--primary);
  color: #fff;
}

.page-faq-template .btn-primary:hover {
  transform: translateY(-1px);
}

.page-faq-template .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: .18s ease;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.page-faq-template .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-faq-template .wp-block-button.btn,
.page-faq-template .wp-block-button.btn-primary,
.page-faq-template .wp-block-button.btn-secondary {
  margin: 0;
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-faq-template .wp-block-button.btn .wp-block-button__link,
.page-faq-template .wp-block-button.btn-primary .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: .18s ease;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

.page-faq-template .wp-block-button.btn-secondary .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: .18s ease;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.page-faq-template .wp-block-button.btn-secondary .wp-block-button__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-faq-template .hero-actions,
.page-faq-template .wp-block-buttons.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.page-faq-template .section-head {
  max-width: 740px;
  margin-bottom: 26px;
}

.page-faq-template .section h2 {
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 10px 0 12px;
  color: var(--ink);
}

.page-faq-template .section p.sub,
.page-faq-template p.sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0;
}

.page-faq-template .wp-block-columns.card-grid {
  display: grid;
  margin-bottom: 0;
}

.page-faq-template .wp-block-column {
  min-width: 0;
}

.page-faq-template .card-grid {
  display: grid;
  gap: 18px;
}

.page-faq-template .card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.page-faq-template .card,
.page-faq-template .wp-block-column.card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 34px rgba(16,35,62,.04);
  height: 100%;
}

.page-faq-template .card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.page-faq-template .card p {
  color: var(--ink-2);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.faq-page {
  background: var(--bg);
}

.faq-page__hero {
  padding-bottom: 18px;
}

.faq-page__topics-grid {
  align-items: stretch;
}

.faq-page__topic-card {
  height: 100%;
}

.faq-page__faq-shell {
  max-width: 920px;
}

.faq-page__section-head {
  margin-bottom: 24px;
}

.faq-page__list {
  gap: 12px;
}

.faq-page__item {
  border-radius: 20px;
}

.faq-page__question {
  padding: 22px 24px;
  font-size: 18px;
}

.faq-page__answer p {
  padding: 0 24px 22px;
  font-size: 16px;
}

.faq-page__actions {
  margin-top: 24px;
}

@media (max-width: 840px) {
  .page-faq-template .section {
    padding: 56px 0;
  }

  .page-faq-template .page-hero h1 {
    font-size: 44px;
  }

  .page-faq-template .section h2 {
    font-size: 34px;
  }

  .page-faq-template .card-grid.three,
  .page-faq-template .wp-block-columns.card-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-faq-template .container {
    width: calc(100% - 32px);
  }

  .page-faq-template .page-hero h1 {
    font-size: 32px;
  }

  .page-faq-template .page-hero p.lead,
  .page-faq-template .section p.sub,
  .page-faq-template p.sub,
  .faq-page__question,
  .faq-page__answer p {
    font-size: 17px;
  }

  .page-faq-template .hero-actions,
  .page-faq-template .wp-block-buttons.hero-actions {
    flex-direction: column;
  }

  .page-faq-template .hero-actions .btn-primary,
  .page-faq-template .hero-actions .btn-secondary,
  .page-faq-template .wp-block-button.btn-primary .wp-block-button__link,
  .page-faq-template .wp-block-button.btn-secondary .wp-block-button__link {
    width: 100%;
    justify-content: center;
  }
}
