/* БлагоГрад — страница FAQ 2026 */

.bg-faq-page .bg-page-hero {
  margin-bottom: 0;
}

.bg-faq-page .bg-page-hero__title,
.bg-faq-page .bg-page-hero__text {
  color: #fff;
}

.bg-faq-page .bg-page-hero__overlay {
  background: linear-gradient(
    100deg,
    rgba(30, 30, 30, 0.55) 0%,
    rgba(30, 30, 30, 0.22) 50%,
    transparent 72%
  );
}

.bg-faq-hero-lead {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  max-width: 560px;
}

.bg-faq-hero-desc {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

/* Поиск на странице FAQ */
.bg-faq-search {
  display: flex;
  max-width: 520px;
  margin-top: 8px;
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.bg-faq-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: 0;
  font: inherit;
  font-size: 15px;
}

.bg-faq-search button {
  flex-shrink: 0;
  width: 52px;
  border: 0;
  background: var(--bg-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-faq-search button img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Контент */
.bg-faq-body {
  padding: 48px 0 56px;
}

/* Табы с иконками */
.bg-faq-tabs--icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 8px;
}

.bg-faq-tabs--icons button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 128px;
  max-width: 150px;
  flex: 1 1 128px;
  padding: 16px 12px 20px;
  border: 1px solid var(--bg-border);
  border-radius: 14px;
  background: var(--bg-white);
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  color: var(--bg-muted);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.bg-faq-tabs--icons button img {
  width: 28px;
  height: 28px;
  opacity: 0.75;
}

.bg-faq-tabs--icons button.is-active {
  background: var(--bg-section);
  border-color: var(--bg-accent);
  color: var(--bg-text);
  font-weight: 600;
}

.bg-faq-tabs--icons button.is-active img {
  opacity: 1;
}

.bg-faq-tabs--icons button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--bg-section);
  border-right: 1px solid var(--bg-accent);
  border-bottom: 1px solid var(--bg-accent);
  transform: rotate(45deg);
}

.bg-faq-panel__title {
  margin: 0 0 20px;
  font-family: var(--bg-font-heading);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
}

.bg-faq-panel.is-hidden {
  display: none !important;
}

.bg-faq-accordion .bg-accordion__item.is-hidden {
  display: none;
}

.bg-faq-accordion .bg-accordion__panel {
  color: var(--bg-muted);
  line-height: 1.6;
}

/* Сайдбар */
.bg-faq-sidebar .bg-sidebar-card {
  background: var(--bg-section);
  border: 1px solid var(--bg-border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
}

.bg-faq-sidebar .bg-sidebar-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.bg-faq-sidebar .bg-sidebar-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bg-muted);
}

.bg-faq-popular {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: faq-pop;
}

.bg-faq-popular li {
  counter-increment: faq-pop;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-border);
}

.bg-faq-popular li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.bg-faq-popular a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bg-text);
  text-decoration: none;
  line-height: 1.4;
}

.bg-faq-popular a::before {
  content: counter(faq-pop, decimal-leading-zero);
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--bg-accent);
}

.bg-faq-popular a:hover {
  color: var(--bg-accent);
}

.bg-faq-catalog {
  display: grid;
  grid-template-columns: 1fr minmax(80px, 100px);
  gap: 16px;
  align-items: end;
}

.bg-faq-catalog__cover {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: var(--bg-white) center/cover no-repeat #ddd;
  box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.12);
  transform: perspective(400px) rotateY(-8deg);
}

.bg-faq-catalog__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-accent);
  text-decoration: none;
}

.bg-faq-catalog__link:hover {
  text-decoration: underline;
}

/* Преимущества */
.bg-faq-trust {
  background: var(--bg-section);
  border-top: 1px solid var(--bg-border);
}

.bg-faq-trust .bg-features-bar__item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bg-text);
  font-size: 15px;
}

@media (max-width: 900px) {
  .bg-faq-tabs--icons button {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 100px;
  }

  .bg-faq-catalog {
    grid-template-columns: 1fr;
  }

  .bg-faq-catalog__cover {
    max-width: 140px;
    justify-self: end;
  }
}

@media (max-width: 600px) {
  .bg-faq-tabs--icons button {
    flex: 1 1 calc(50% - 8px);
  }
}
