/* ═══════════════════════════════════════════════
   PAGES — Projects Page · Policy/Questions Page
   ═══════════════════════════════════════════════ */

.projects-page,
.questions-page {
  display: none;
  margin-top: 20px;
}

body.projects-view .projects-page {
  display: block;
  animation: view-enter var(--motion-medium) var(--motion-ease) both;
}

body.questions-view .questions-page {
  display: block;
  animation: view-enter var(--motion-medium) var(--motion-ease) both;
}

/* ─── Back Button ────────────────────────────────────── */
.projects-page__back,
.questions-page__back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 24px;
  margin: 0 0 20px;
  padding: 0;
  color: #000000;
  font-family: var(--font-system);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.projects-page__back span,
.questions-page__back span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.projects-page__back:hover span,
.questions-page__back:hover span {
  transform: translateX(-3px);
}

/* ─── Projects Page ──────────────────────────────────── */
.projects-page__banner {
  width: 100%;
  aspect-ratio: 1636 / 276;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(113, 110, 255, 0.08), rgba(113, 110, 255, 0.02)),
    url("../product.png") center / 100% 100% no-repeat,
    #716eff;
  border-radius: 20px;
}

.projects-page__banner-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 52px;
  text-align: center;
}

.projects-page__banner-title {
  margin: 0;
  color: #fff;
  font-family: "Unbounded", "Montserrat", Arial, sans-serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.projects-page__banner-tools {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-family: "SF Pro Display", var(--font-system);
  font-size: 17px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 0;
}

/* Ромб-разделитель: квадрат 8×8, повёрнутый на 45° */
.projects-page__banner-tools span {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0;
  transform: rotate(45deg);
}

.projects-page__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 51px;
}

.projects-page__grid::before {
  position: absolute;
  top: -26px;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: rgba(0, 0, 0, 0.1);
}

/* ─── Questions / Policy Page ────────────────────────── */
.questions-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 25px;
  align-items: start;
}

.questions-page__content {
  display: grid;
  gap: 25px;
  min-width: 0;
}

.policy-card {
  min-height: 129px;
  padding: 25px;
  color: #000000;
  background: #ffffff;
  border-radius: 20px;
}

.policy-card h2 {
  margin: 0 0 18px;
  color: #000000;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 0;
}

.policy-card p,
.policy-card li {
  margin: 0;
  color: #000000;
  font-family: var(--font-system);
  font-size: 17px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: 0;
}

.policy-card p + p {
  margin-top: 4px;
}

.policy-card ul {
  margin: 4px 0;
  padding-left: 24px;
}

/* ─── Table of Contents ──────────────────────────────── */
.questions-toc {
  position: sticky;
  top: 96px;
  width: 430px;
  height: 495px;
  padding: 26px;
  overflow: hidden;
  color: #000000;
  background: #ffffff;
  border-radius: 20px;
}

.questions-toc h2 {
  margin: 0 0 33px;
  padding-bottom: 17px;
  color: #000000;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.questions-toc nav {
  display: grid;
  gap: 25px;
}

.questions-toc a {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  width: 378px;
  height: 24px;
  padding: 0;
  column-gap: 23px;
  color: #000000;
  font-family: var(--font-system);
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.questions-toc a::before {
  position: absolute;
  inset: -13px;
  z-index: -1;
  content: "";
  background: transparent;
  border-radius: 10px;
  transition: background-color 180ms ease;
}

.questions-toc a:hover,
.questions-toc a.is-active {
  color: #000000;
}

.questions-toc a:hover::before,
.questions-toc a.is-active::before {
  background: #f0f0f0;
}

.questions-toc a:hover {
  transform: translateX(2px);
}

.questions-toc__icon {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}
