@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --avis-red: #e30613;
  --avis-red-soft: #ff5b6f;
  --avis-blue: #0061b8;
  --ink-900: #07101b;
  --ink-800: #0b1625;
  --glass: rgba(255, 255, 255, 0.09);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.24);
  --text-main: #f4f8ff;
  --text-soft: #c7d4e8;
}

* {
  box-sizing: border-box;
}

.faq-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text-main);
  background: linear-gradient(155deg, var(--ink-900), #0a1a2d 58%, #071421);
  position: relative;
  overflow-x: hidden;
}

.faq-page::before,
.faq-page::after {
  content: "";
  position: fixed;
  inset: -18%;
  pointer-events: none;
  z-index: 0;
}

.faq-page::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(227, 6, 19, 0.3), transparent 42%),
    radial-gradient(circle at 80% 10%, rgba(0, 97, 184, 0.26), transparent 40%),
    radial-gradient(circle at 72% 76%, rgba(227, 6, 19, 0.18), transparent 38%);
  animation: bgDrift 16s ease-in-out infinite alternate;
}

.faq-page::after {
  background:
    repeating-linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 42px
    );
  opacity: 0.22;
  animation: gridShift 26s linear infinite;
}

.main-header {
  width: 100% !important;
  z-index: 40;
  position: sticky;
  top: 0;
}

.faq-container {
  position: relative;
  z-index: 5;
  width: min(1260px, 100%);
  margin-inline: auto;
  padding: 34px clamp(16px, 2.8vw, 34px) 78px;
}

.faq-intro {
  position: relative;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--glass-strong), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.23);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(20px, 4vw, 36px);
}

.faq-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    rgba(227, 6, 19, 0.15),
    transparent 34%,
    transparent 68%,
    rgba(0, 97, 184, 0.18)
  );
}

.faq-kicker {
  margin: 0;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--avis-red-soft);
}

.faq-intro h1 {
  margin: 12px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.faq-lead {
  margin: 14px 0 0;
  max-width: 780px;
  line-height: 1.72;
  color: var(--text-soft);
}

.faq-pillset {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-pill {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  color: #edf2ff;
}

.faq-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  align-items: start;
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease;
}

.faq:hover {
  transform: translateY(-7px) scale(1.008);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(227, 6, 19, 0.25);
}

.faq.active {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.31),
    0 0 0 1px rgba(227, 6, 19, 0.4),
    0 0 26px rgba(227, 6, 19, 0.25);
}

.faq-inner {
  background: linear-gradient(170deg, rgba(8, 17, 28, 0.58), rgba(6, 13, 23, 0.72));
}

.faq-header {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 15px 18px;
  user-select: none;
}

.faq-header:focus-visible {
  outline: 2px solid rgba(255, 91, 111, 0.9);
  outline-offset: -2px;
}

.faq-icon-side {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.26), rgba(0, 97, 184, 0.25));
  overflow: hidden;
}

.faq-icon-side::before {
  content: "\f043";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #ff5b6f;
  font-size: 1.26rem;
  filter: drop-shadow(0 0 9px rgba(255, 64, 85, 0.8));
  animation: pulseDrop 2.4s ease-in-out infinite;
}

.faq-icon-side::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  opacity: 0.52;
}

.faq-title {
  margin: 0;
  padding-right: 34px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.42;
  color: #f8fbff;
  position: relative;
}

.faq-title::after {
  content: "\2304";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #8eb9e8;
  font-size: 1.4rem;
  transition: transform 0.28s ease, color 0.28s ease;
}

.faq.active .faq-title::after {
  transform: translateY(-50%) rotate(180deg);
  color: var(--avis-red-soft);
}

.faq-text {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 22px;
  color: #d8e5f8;
  line-height: 1.72;
  opacity: 0;
  border-top: 1px solid transparent;
  transition:
    max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.3s ease,
    padding 0.3s ease,
    border-color 0.3s ease;
}

.faq.active .faq-text {
  opacity: 1;
  padding: 2px 22px 22px;
  border-color: rgba(255, 255, 255, 0.2);
}

@keyframes bgDrift {
  0% {
    transform: translate3d(-4%, -3%, 0) scale(1);
  }
  50% {
    transform: translate3d(4%, 2%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-2%, 4%, 0) scale(1.02);
  }
}

@keyframes gridShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-70px, -40px, 0);
  }
}

@keyframes pulseDrop {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.84;
  }
}

@media (max-width: 920px) {
  .faq-container {
    padding-top: 22px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .faq-header {
    padding: 14px;
  }

  .faq-icon-side {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .faq-text {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-page::before,
  .faq-page::after,
  .faq-icon-side::before {
    animation: none;
  }

  .faq,
  .faq-text,
  .faq-title::after {
    transition: none;
  }
}
