/* Întrebări frecvente: page-specific layout on top of despre.css. */
.faq-page { padding-bottom: 6rem; }
.faq-page ::selection { background: #b2f182; color: #24292e; }

.faq-hero { max-width: 50rem; padding: 3rem 0 4rem; }
.faq-hero h1 { margin: 0 0 1.5rem; text-wrap: balance; }
.faq-hero a, .faq-row a, .faq-rail-help a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #8ddf64;
  text-decoration-thickness: .2em;
  text-underline-offset: .18em;
}
.faq-page a:focus-visible { outline: 2px solid #1f7a30; outline-offset: 3px; border-radius: .25rem; }

.faq-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

/* Contents rail: sticky on wide screens, a plain list on narrow ones. */
.faq-rail { position: sticky; top: 2rem; }
.faq-rail-title { margin: 0 0 .75rem; font-size: 1rem; font-weight: 500; color: #586069; }
.faq-rail-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #dde1e4; }
.faq-rail-list li { border-bottom: 1px solid #dde1e4; }
.faq-rail-list a {
  color: #24292e;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem .25rem;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.3;
  transition: color .2s cubic-bezier(.16, 1, .3, 1);
}
.faq-rail-list a:hover { color: #1f7a30; }
.faq-rail-list a[aria-current] { color: #1f7a30; box-shadow: inset 0 -.2rem 0 #8ddf64; }
.faq-rail-list a[aria-current] .faq-rail-count { color: inherit; }
.faq-rail-count { color: #586069; font-weight: 400; font-variant-numeric: tabular-nums; }
.faq-rail-help { margin-top: 2rem; color: #586069; line-height: 1.5; }
.faq-rail-help p { margin: 0; }
.faq-rail-help a { font-weight: 500; color: #24292e !important; white-space: nowrap; }

/* Groups: one panel per group, questions as hairline-divided rows. */
.faq-groups { display: grid; gap: 4rem; }
.faq-group-title { margin: 0 0 1.25rem; font-size: 2rem; line-height: 1.2; scroll-margin-top: 2rem; }
.faq-panel {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 1rem;
  padding: 0 2rem;
  box-shadow: 0 .75rem 2rem -1.25rem rgba(36, 41, 46, .18);
}
.faq-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: .5rem 2.5rem;
  padding: 1.75rem 0;
}
.faq-row + .faq-row { border-top: 1px solid #e1e4e8; }
.faq-row h3 { margin: 0; font-size: 1.1875rem; font-weight: 500; line-height: 1.35; text-wrap: balance; }
.faq-row p { margin: 0; max-width: 65ch; line-height: 1.6; color: #24292e; }

@media screen and (max-width: 1199px) {
  .faq-row { grid-template-columns: 1fr; }
}
@media screen and (max-width: 991px) {
  .faq-layout { grid-template-columns: 1fr; gap: 3rem; }
  .faq-rail { position: static; }
  .faq-rail-help { display: none; }
  .faq-hero { padding-bottom: 2.5rem; }
}
@media screen and (max-width: 767px) {
  .faq-hero { padding-top: 2rem; }
  .faq-panel { padding: 0 1.25rem; border-radius: .75rem; }
  .faq-row { padding: 1.25rem 0; }
  .faq-groups { gap: 3rem; }
  .faq-group-title { font-size: 1.625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-rail-list a { transition: none; }
}
