.faq-page {
  --faq-ink: #f3f4f6;
  --faq-body: #e0e2e6;
  --faq-muted: #a9adb5;
  --faq-surface: rgba(255, 255, 255, 0.035);
  --faq-surface-hover: rgba(255, 255, 255, 0.065);
  --faq-line: rgba(211, 216, 224, 0.2);
  --faq-accent: #ff741f;
  --faq-accent-light: #ff9b55;
  clear: both;
  width: 100%;
  color: var(--faq-body);
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
}

#content.faq-page {
  overflow: visible;
  padding: 0;
  background:
    radial-gradient(ellipse at 72% 6%, rgba(39, 42, 49, 0.38), transparent 48%),
    linear-gradient(145deg, #111216 0%, #191b20 52%, #111216 100%);
  color: var(--faq-body);
}

#content.faq-page p {
  line-height: 1.55;
}

.faq-page *,
.faq-page *::before,
.faq-page *::after {
  box-sizing: border-box;
}

.faq-page :focus-visible {
  outline: 3px solid var(--faq-accent-light);
  outline-offset: 3px;
}

.faq-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.faq-hero {
  color: #fff;
  background-color: #111419;
  background-image:
    linear-gradient(90deg, rgba(12, 15, 20, 0.94) 0%, rgba(12, 15, 20, 0.84) 52%, rgba(12, 15, 20, 0.72) 100%),
    url("../images/background/info_2019.jpg");
  background-position: center 45%;
  background-size: cover;
  border-bottom: 2px solid var(--faq-accent);
}

.faq-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 28px;
  min-height: 150px;
  padding-block: 22px;
}

.faq-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.faq-hero__brand {
  display: block;
  justify-self: end;
}

.faq-hero__brand img {
  display: block;
  width: 176px;
  height: 106px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.92;
}

.faq-content {
  padding-block: 30px 56px;
}

.faq-parental {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--faq-line);
}

.faq-parental h2 {
  margin: 0 0 7px;
  color: var(--faq-ink);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
}

.faq-parental p {
  max-width: 78ch;
  margin: 0;
  color: var(--faq-body);
  font-size: 0.92rem;
  line-height: 1.55;
}

.faq-parental__actions {
  margin-top: 8px;
}

.faq-parental__actions a {
  color: var(--faq-accent-light);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms ease-out;
}

.faq-parental__actions a:hover {
  color: #ffc095;
}

.faq-directory {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  gap: 42px;
  margin-top: 36px;
}

.faq-categories {
  position: sticky;
  top: 20px;
  min-width: 0;
}

.faq-categories h2 {
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--faq-line);
  color: var(--faq-ink);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.35;
}

.faq-categories ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-categories button {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--faq-muted);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.faq-categories button:hover {
  color: #fff;
  background: var(--faq-surface-hover);
}

.faq-categories button.is-active {
  border-left-color: var(--faq-accent);
  background: var(--faq-surface);
  color: var(--faq-ink);
  font-weight: 700;
}

.faq-list {
  min-width: 0;
  border-top: 1px solid var(--faq-line);
}

.faq-item {
  border-bottom: 1px solid var(--faq-line);
  background: rgba(255, 255, 255, 0.012);
}

.faq-item[hidden] {
  display: none !important;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 16px 12px;
  color: var(--faq-ink);
  cursor: pointer;
  list-style: none;
  transition: background-color 150ms ease-out;
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.faq-item__chevron {
  flex: 0 0 auto;
  color: var(--faq-accent);
  font-size: 23px;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-width: 78ch;
  padding: 0 42px 19px 12px;
  color: var(--faq-body);
  font-size: 0.94rem;
  line-height: 1.6;
  white-space: pre-line;
}

.faq-item__answer a {
  color: var(--faq-accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-item__answer a:hover {
  color: #ffc095;
}

@media (max-width: 900px) {
  .faq-directory {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .faq-shell {
    width: calc(100% - 36px);
  }

  .faq-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding-block: 22px 16px;
  }

  .faq-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
  }

  .faq-hero__brand {
    justify-self: start;
  }

  .faq-hero__brand img {
    width: 132px;
    height: 78px;
  }

  .faq-content {
    padding-block: 24px 44px;
  }

  .faq-parental h2 {
    font-size: 1.08rem;
  }

  .faq-directory {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 28px;
  }

  .faq-categories {
    position: static;
  }

  .faq-categories ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
  }

  .faq-categories button {
    height: 100%;
    min-height: 44px;
    padding-inline: 10px;
    font-size: 0.9rem;
  }

  .faq-item summary {
    min-height: 58px;
    gap: 12px;
    padding: 14px 10px;
  }

  .faq-item summary h3 {
    font-size: 1rem;
  }

  .faq-item__answer {
    padding-right: 22px;
    padding-bottom: 16px;
    font-size: 0.94rem;
  }
}

@media (max-width: 420px) {
  .faq-shell {
    width: calc(100% - 28px);
  }

  .faq-item summary h3 {
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__chevron,
  .faq-item summary,
  .faq-parental__actions a {
    transition: none;
  }
}
