.nrg-faq-library,
.nrg-faq-library * { box-sizing: border-box; }

.nrg-faq-library {
  --nrg-faq-accent: #4c687e;
  --nrg-faq-heading: #111111;
  --nrg-faq-text: #526a7c;
  --nrg-faq-line: #d9dedf;
  --nrg-faq-card: #faf9f7;
  width: 100%;
  color: var(--nrg-faq-text);
  font-family: inherit;
}

.nrg-faq-search-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto 52px;
}

.nrg-faq-search-wrap svg {
  position: absolute;
  top: 50%;
  left: 22px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--nrg-faq-accent);
  stroke-width: 1.7;
  transform: translateY(-50%);
}

.nrg-faq-search {
  width: 100%;
  min-height: 58px;
  padding: 14px 22px 14px 56px;
  border: 1px solid var(--nrg-faq-line);
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: var(--nrg-faq-heading);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.nrg-faq-search:focus {
  border-color: var(--nrg-faq-accent);
  box-shadow: 0 0 0 3px rgba(76, 104, 126, .12);
}

.nrg-faq-layout {
  display: grid;
  grid-template-columns: minmax(245px, 27%) minmax(0, 1fr);
  gap: clamp(42px, 6vw, 84px);
  align-items: start;
}

.nrg-faq-sidebar { min-width: 0; }

.nrg-faq-nav-label {
  margin: 0 0 24px;
  color: var(--nrg-faq-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nrg-faq-tabs {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--nrg-faq-line);
}

.nrg-faq-tab {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--nrg-faq-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}

.nrg-faq-tab::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--nrg-faq-accent);
  content: '';
  opacity: 0;
  transform: scaleY(.3);
  transition: opacity .2s ease, transform .2s ease;
}

.nrg-faq-tab:hover,
.nrg-faq-tab:focus-visible,
.nrg-faq-tab.is-active { color: var(--nrg-faq-heading); }
.nrg-faq-tab.is-active { font-weight: 600; }
.nrg-faq-tab.is-active::before { opacity: 1; transform: scaleY(1); }

.nrg-faq-support-card {
  margin-top: 44px;
  padding: 30px 27px;
  border: 1px solid var(--nrg-faq-line);
  border-radius: 16px;
  background: var(--nrg-faq-card);
}

.nrg-faq-support-card h3 {
  margin: 0 0 16px;
  color: var(--nrg-faq-heading);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(25px, 2vw, 31px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
}

.nrg-faq-support-card p {
  margin: 0 0 24px;
  color: var(--nrg-faq-text);
  font-size: 15px;
  line-height: 1.7;
}

.nrg-faq-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  margin-top: 11px;
  padding: 10px 18px;
  border: 1px solid var(--nrg-faq-accent);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.nrg-faq-button:hover { transform: translateY(-2px); }
.nrg-faq-button-primary { background: var(--nrg-faq-accent); color: #fff; }
.nrg-faq-button-primary:hover { color: #fff; filter: brightness(.93); }
.nrg-faq-button-secondary { background: transparent; color: var(--nrg-faq-heading); border-color: var(--nrg-faq-line); }
.nrg-faq-button-secondary:hover { background: #fff; color: var(--nrg-faq-heading); }

.nrg-faq-group { margin: 0 0 64px; }
.nrg-faq-group[hidden], .nrg-faq-item[hidden] { display: none !important; }

.nrg-faq-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 27px;
  border-bottom: 1px solid var(--nrg-faq-line);
}

.nrg-faq-group-title { display: flex; align-items: baseline; gap: 18px; }
.nrg-faq-group-title span {
  color: #8ea0ab;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  font-style: italic;
}

.nrg-faq-group-title h2 {
  margin: 0;
  color: var(--nrg-faq-heading);
  font-family: inherit;
  font-size: clamp(22px, 2.1vw, 27px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.nrg-faq-count {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef1f2;
  color: var(--nrg-faq-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}
.nrg-faq-count b { font: inherit; }

.nrg-faq-item { border-bottom: 1px solid var(--nrg-faq-line); }
.nrg-faq-item.is-open { border-left: 3px solid var(--nrg-faq-accent); }
.nrg-faq-question-heading { margin: 0; font-family: inherit; }

.nrg-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 84px;
  margin: 0;
  padding: 21px 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--nrg-faq-heading);
  font-family: inherit;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.nrg-faq-question i {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--nrg-faq-line);
  border-radius: 50%;
  background: #fff;
  transition: background-color .2s ease, border-color .2s ease;
}

.nrg-faq-question i::before,
.nrg-faq-question i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--nrg-faq-accent);
  content: '';
  transform: translate(-50%, -50%);
}
.nrg-faq-question i::after { transform: translate(-50%, -50%) rotate(90deg); }

.nrg-faq-item.is-open .nrg-faq-question { color: var(--nrg-faq-accent); }
.nrg-faq-item.is-open .nrg-faq-question i { border-color: var(--nrg-faq-accent); background: var(--nrg-faq-accent); }
.nrg-faq-item.is-open .nrg-faq-question i::before { background: #fff; }
.nrg-faq-item.is-open .nrg-faq-question i::after { opacity: 0; }

.nrg-faq-answer { overflow: hidden; }
.nrg-faq-answer-inner {
  padding: 0 84px 30px 29px;
  color: var(--nrg-faq-text);
  font-size: 16px;
  line-height: 1.75;
}
.nrg-faq-answer-inner > :first-child { margin-top: 0; }
.nrg-faq-answer-inner > :last-child { margin-bottom: 0; }
.nrg-faq-answer-inner ul, .nrg-faq-answer-inner ol { padding-left: 24px; }

.nrg-faq-empty {
  margin: 0;
  padding: 38px;
  border: 1px solid var(--nrg-faq-line);
  border-radius: 14px;
  color: var(--nrg-faq-text);
  text-align: center;
}

@media (min-width: 901px) {
  .nrg-faq-sidebar { position: sticky; top: 120px; }
}

@media (max-width: 900px) {
  .nrg-faq-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 38px; }
  .nrg-faq-nav-label { margin-bottom: 15px; }
  .nrg-faq-tabs {
    flex-direction: row;
    gap: 9px;
    padding: 3px 2px 10px;
    border: 0;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .nrg-faq-tabs::-webkit-scrollbar { display: none; }
  .nrg-faq-tab {
    flex: 0 0 auto;
    width: auto;
    padding: 10px 16px;
    border: 1px solid var(--nrg-faq-line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    scroll-snap-align: start;
  }
  .nrg-faq-tab::before { display: none; }
  .nrg-faq-tab.is-active { border-color: var(--nrg-faq-accent); background: var(--nrg-faq-accent); color: #fff; }
  .nrg-faq-support-card { display: none; }
}

@media (max-width: 600px) {
  .nrg-faq-search-wrap { margin-bottom: 34px; }
  .nrg-faq-search { min-height: 52px; padding-left: 50px; font-size: 14px; }
  .nrg-faq-group { margin-bottom: 44px; }
  .nrg-faq-group-header { align-items: flex-end; padding-bottom: 20px; }
  .nrg-faq-group-title { gap: 10px; }
  .nrg-faq-group-title h2 { font-size: 20px; }
  .nrg-faq-count { padding: 7px 9px; font-size: 8px; letter-spacing: .13em; }
  .nrg-faq-question { min-height: 74px; padding: 18px 10px; font-size: 16px; }
  .nrg-faq-item.is-open .nrg-faq-question { padding-left: 16px; }
  .nrg-faq-question i { flex-basis: 36px; width: 36px; height: 36px; }
  .nrg-faq-answer-inner { padding: 0 18px 24px 16px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .nrg-faq-library * { scroll-behavior: auto !important; transition: none !important; }
}
