:root {
  --faq-bg: rgba(13, 19, 27, 0.85);
  --faq-border: rgba(255, 255, 255, 0.12);
  --faq-accent: #ffffff;
  --faq-text: #ffffff;
  --faq-muted: rgba(255, 255, 255, 0.6);
  --faq-hover-bg: rgba(255, 255, 255, 0.05);
  --faq-active-bg: rgba(255, 255, 255, 0.08);
  --faq-radius: 12px;
  --faq-transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== SEO H1 ===================== */
.seo-h1 {
  font-family: Karla, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 0 0 12px 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

@media (min-width: 600px) {
  .seo-h1 {
    font-size: 2.4rem;
  }
}

@media (min-width: 960px) {
  .seo-h1 {
    font-size: 2.8rem;
  }
}

.seo-h1-subtitle {
  font-family: Karla, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--faq-muted);
  text-align: center;
  margin: 0 auto 40px auto;
  max-width: 620px;
  line-height: 1.6;
}

/* ===================== FAQ SECTION ===================== */
.faq-section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  margin-top: 64px;
  padding: 56px 24px 48px 24px;
  background: linear-gradient(180deg, rgba(13, 19, 27, 0) 0%, rgba(13, 19, 27, 0.7) 100%);
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

/* ===================== FAQ ACCORDION ===================== */
.faq-list {
  list-style: none;
  margin: 0 0 40px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--faq-bg);
  border: 1px solid var(--faq-border);
  border-radius: var(--faq-radius);
  overflow: hidden;
  transition: border-color var(--faq-transition), box-shadow var(--faq-transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.faq-item.faq-open {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(13, 19, 27, 0.95);
}

.faq-question {
  font-family: Karla, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--faq-text);
  margin: 0;
  width: 100%;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  text-align: left;
  transition: background var(--faq-transition);
  line-height: 1.4;
}

.faq-question:hover {
  background: var(--faq-hover-bg);
}

.faq-open .faq-question {
  background: var(--faq-active-bg);
}

.faq-question-text {
  flex: 1;
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--faq-transition), border-color var(--faq-transition), background var(--faq-transition);
  background: rgba(255, 255, 255, 0.04);
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  transition: transform var(--faq-transition);
  display: block;
}

.faq-open .faq-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  transform: rotate(180deg);
}

/* ===================== FAQ ANSWER ===================== */
.faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-open .faq-answer-wrapper {
  max-height: 600px;
}

.faq-answer {
  font-family: Karla, sans-serif;
  font-size: 0.97rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  padding: 0 22px 20px 22px;
  line-height: 1.7;
}

.faq-answer a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: text-decoration-color 0.2s ease;
}

.faq-answer a:hover {
  text-decoration-color: #ffffff;
}

/* ===================== FAQ FOOTER LINKS ===================== */
.faq-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}

.faq-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Karla, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 8px 24px;
  background: transparent;
  text-decoration: none;
  transition: background var(--faq-transition), border-color var(--faq-transition), box-shadow var(--faq-transition);
  cursor: pointer;
}

.faq-link-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.faq-link-btn.faq-link-btn--primary {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}

.faq-link-btn.faq-link-btn--primary:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ===================== PAGE LAYOUT (faq/about) ===================== */
.subpage-root {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  background-color: #0d131b;
  font-family: Karla, sans-serif;
  color: #ffffff;
  position: relative;
}

.subpage-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background-image: url("../bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  pointer-events: none;
}

.subpage-wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 64px 24px;
  box-sizing: border-box;
}

/* ===================== SUBPAGE HEADER ===================== */
.subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0 32px 0;
  border-bottom: 1px solid var(--faq-border);
  margin-bottom: 48px;
}

.subpage-logo {
  height: 48px;
  width: auto;
  display: block;
}

.subpage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ===================== SUBPAGE CONTENT ===================== */
.subpage-hero {
  text-align: center;
  margin-bottom: 52px;
}

.subpage-h1 {
  font-family: Karla, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px 0;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

@media (min-width: 600px) {
  .subpage-h1 {
    font-size: 2.5rem;
  }
}

.subpage-lead {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--faq-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

.subpage-card {
  background: var(--faq-bg);
  border: 1px solid var(--faq-border);
  border-radius: var(--faq-radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

@media (max-width: 599px) {
  .subpage-card {
    padding: 20px 16px;
  }
}

.subpage-card-title {
  font-family: Karla, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.subpage-card-text {
  font-family: Karla, sans-serif;
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.7;
}

.subpage-card-text + .subpage-card-text {
  margin-top: 10px;
}

.subpage-section-title {
  font-family: Karla, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 48px 0 20px 0;
  line-height: 1.25;
}

/* ===================== SUBPAGE FAQ ACCORDION ===================== */
.subpage-faq-list {
  list-style: none;
  margin: 0 0 40px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* reuse .faq-item, .faq-question, .faq-answer-wrapper, .faq-answer, .faq-icon on subpages */

/* ===================== SUBPAGE FOOTER LINKS ===================== */
.subpage-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--faq-border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

/* ===================== INTERNAL LINK BUTTONS ===================== */
.int-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Karla, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 9px 26px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.int-link-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.int-link-btn--solid {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.int-link-btn--solid:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===================== DIVIDER ===================== */
.faq-divider {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 2px;
  margin: 20px auto 32px auto;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 599px) {
  .faq-section {
    padding: 40px 14px 36px 14px;
    margin-top: 40px;
  }

  .seo-h1 {
    font-size: 1.55rem;
  }

  .faq-question {
    padding: 15px 16px;
    font-size: 0.97rem;
  }

  .faq-answer {
    padding: 0 16px 16px 16px;
    font-size: 0.93rem;
  }

  .subpage-wrap {
    padding: 24px 14px 48px 14px;
  }

  .subpage-h1 {
    font-size: 1.6rem;
  }

  .subpage-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-footer-links,
  .subpage-footer {
    flex-direction: column;
    align-items: center;
  }

  .int-link-btn,
  .faq-link-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 959px) {
  .faq-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .subpage-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}