/* =========================================================
   FAQ PAGE — тёмная тема
   ========================================================= */

:root {
  --faq-red:    #E00001;
  --faq-red-dk: #c20001;
  --faq-bg:     #0a0a0a;
  --faq-card:   #141414;
  --faq-border: rgba(255,255,255,.07);
  --faq-text:   #c8c8c8;
  --faq-white:  #ffffff;
}

/* ── Hero ── */
.faq-hero {
  padding: 120px 20px 60px;
  background: linear-gradient(160deg, #0a0a0a 60%, #1a0000 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.faq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(224,0,1,.13) 0%, transparent 70%);
  pointer-events: none;
}
.faq-hero__inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

/* breadcrumb */
.faq-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  margin-bottom: 24px;
}
.faq-breadcrumb a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .2s;
}
.faq-breadcrumb a:hover { color: var(--faq-red); }
.faq-breadcrumb span { color: rgba(255,255,255,.25); }
.faq-breadcrumb span:last-child { color: rgba(255,255,255,.6); }

.faq-hero__title {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  color: var(--faq-white);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -.5px;
}
.faq-hero__title span { color: var(--faq-red); }

.faq-hero__sub {
  font-size: 16px;
  color: var(--faq-text);
  margin: 0;
  line-height: 1.6;
}

/* ── Section wrapper ── */
.faq-section {
  background: var(--faq-bg);
  padding: 60px 20px 100px;
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

/* ── Accordion ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 60px;
}

.faq-item {
  background: var(--faq-card);
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .25s;
}
.faq-item.is-open,
.faq-item:hover {
  border-color: rgba(224, 0, 1, .35);
}

/* Question button */
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--faq-white);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  font-family: inherit;
  transition: color .2s;
}
.faq-item__q:hover { color: var(--faq-red); }
.faq-item.is-open .faq-item__q { color: var(--faq-red); }

/* Chevron icon */
.faq-item__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,.3);
  transition: transform .3s ease, color .2s;
}
.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg);
  color: var(--faq-red);
}

/* Answer panel */
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item__a > * {
  padding: 0 24px;
  margin: 0 0 16px;
  color: var(--faq-text);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item__a > *:first-child { padding-top: 0; margin-top: -4px; }
.faq-item__a > *:last-child  { padding-bottom: 24px; }

.faq-item__a ul,
.faq-item__a ol {
  padding: 0 24px 0 44px;
  margin: 0 0 16px;
}
.faq-item__a li {
  color: var(--faq-text);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
}
.faq-item__a li:last-child { margin-bottom: 0; }

.faq-item__a strong {
  color: var(--faq-white);
  font-weight: 600;
}

.faq-item__a a {
  color: var(--faq-red);
  text-decoration: none;
}
.faq-item__a a:hover { text-decoration: underline; }

/* ── Остались вопросы? ── */
.faq-more {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #1a0000 0%, #140000 100%);
  border: 1px solid rgba(224,0,1,.3);
  border-radius: 16px;
  padding: 32px 36px;
}

.faq-more__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--faq-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.faq-more__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.faq-more__text strong {
  color: var(--faq-white);
  font-size: 17px;
  font-weight: 700;
}
.faq-more__text span {
  color: var(--faq-text);
  font-size: 14px;
  line-height: 1.5;
}

.faq-more__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Buttons ── */
.faq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  border: 2px solid transparent;
}

.faq-btn--primary {
  background: var(--faq-red);
  color: #fff;
  border-color: var(--faq-red);
}
.faq-btn--primary:hover {
  background: var(--faq-red-dk);
  border-color: var(--faq-red-dk);
  box-shadow: 0 0 18px rgba(224,0,1,.45);
  color: #fff;
}

.faq-btn--outline {
  background: transparent;
  color: var(--faq-white);
  border-color: rgba(255,255,255,.25);
}
.faq-btn--outline:hover {
  border-color: var(--faq-red);
  color: var(--faq-red);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .faq-hero {
    padding: 100px 16px 48px;
  }
  .faq-section {
    padding: 40px 16px 72px;
  }
  .faq-item__q {
    font-size: 15px;
    padding: 18px 18px;
  }
  .faq-item__a > * {
    padding: 0 18px;
    font-size: 14px;
  }
  .faq-item__a ul,
  .faq-item__a ol {
    padding: 0 18px 0 34px;
    font-size: 14px;
  }
  .faq-item__a > *:last-child { padding-bottom: 18px; }
  .faq-more {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 18px;
  }
  .faq-more__actions {
    flex-direction: column;
    width: 100%;
  }
  .faq-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .faq-hero__sub {
    font-size: 14px;
  }
}

/* ── SEO text ── */
.faq-section--seo { background: var(--faq-bg); padding: 0 0 80px; }
.faq-seo-text {
  margin: 0 auto;
  padding-top: 48px;
  border-top: 1px solid var(--faq-border);
  max-width: 800px;
}
.faq-seo-text h2 {
  font-family: 'Circe', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--faq-white);
  margin: 0 0 20px;
}
.faq-seo-text p {
  font-size: 15px;
  color: var(--faq-text);
  line-height: 1.8;
  margin: 0 0 14px;
}
.faq-seo-text p:last-child { margin-bottom: 0; }
.faq-seo-text a { color: var(--faq-red); text-decoration: none; }
.faq-seo-text a:hover { text-decoration: underline; }
.faq-seo-text strong { color: var(--faq-white); }
