.active-page {
  color: var(--text-strong) !important;
}

.faq-hero {
  padding: 76px 0 46px;
}

.faq-hero-inner {
  max-width: 880px;
}

.faq-hero h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(50px, 6.2vw, 78px);
  line-height: 0.98;
}

.faq-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.62;
}

.faq-section {
  padding: 24px 0 78px;
}

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

.faq-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.faq-sidebar a {
  padding: 10px 11px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.faq-sidebar a:hover {
  background: var(--surface-soft);
  color: var(--text-strong);
}

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

.faq-group {
  scroll-margin-top: 100px;
  padding: 0 0 52px;
}

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

.faq-group-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.faq-group-heading > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: var(--surface-deep);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.faq-group-heading h2 {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.faq-item {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(214, 235, 227, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 24px rgba(18, 63, 52, 0.045);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  padding: 18px 20px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 730;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

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

.faq-item[open] summary {
  padding-bottom: 11px;
}

.faq-plus {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  background: var(--surface-soft);
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--accent-dark);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease;
}

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

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

.faq-answer {
  max-width: 790px;
  padding: 0 64px 20px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.faq-bottom-section {
  padding: 0 0 72px;
}

.faq-bottom-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(238, 250, 245, 0.95), rgba(255, 255, 255, 0.88));
  box-shadow: var(--shadow-soft);
}

.faq-bottom-card h2 {
  max-width: 660px;
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 44px);
}

.faq-bottom-card p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.faq-bottom-card .cta {
  flex: 0 0 auto;
}

html[data-lang="hy"] .faq-group-heading h2,
html[data-lang="ru"] .faq-group-heading h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

@media (max-width: 960px) {
  .faq-hero {
    padding-top: 58px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-sidebar {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
  }

  .faq-sidebar::-webkit-scrollbar {
    display: none;
  }

  .faq-sidebar a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .faq-hero {
    padding: 44px 0 28px;
  }

  .faq-hero h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .faq-hero p {
    font-size: 17px;
  }

  .faq-section {
    padding: 18px 0 56px;
  }

  .faq-group {
    padding-bottom: 40px;
  }

  .faq-group-heading {
    margin-bottom: 13px;
  }

  .faq-group-heading h2 {
    font-size: 24px;
  }

  .faq-item summary {
    min-height: 60px;
    gap: 16px;
    padding: 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 52px 17px 16px;
    font-size: 14px;
  }

  .faq-bottom-section {
    padding-bottom: 54px;
  }

  .faq-bottom-card {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
    padding: 27px 20px;
  }

  .faq-bottom-card .cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-plus::before,
  .faq-plus::after {
    transition: none;
  }
}


.faq-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 700px) {
  .faq-bottom-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
}
