/* Стили подстраниц. Базовые токены (цвета, шрифт, фон, nav, кнопки)
   берутся из theme.css — здесь только специфика внутренних страниц. */

/* ---------- Обёртка страницы ---------- */
.page {
  width: min(1100px, 88%);
  margin: 0 auto;
  padding: 60px 0 100px;
}

/* ---------- Шапка страницы ---------- */
.page-heading {
  margin-bottom: 54px;
  text-align: center;
}

.page-heading .eyebrow {
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid rgba(208, 178, 240, .22);
  border-radius: 999px;
  background: rgba(208, 178, 240, .06);
  color: #d9b4ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 22px 0 18px;
  font-family: var(--font-body);
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.page-heading p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

/* ---------- Сетка карточек ---------- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.content-card {
  overflow: hidden;
  border: 1px solid rgba(208, 178, 240, .18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .025);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.content-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #24202e;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

.content-card:hover img {
  transform: scale(1.035);
}

.card-text {
  padding: 24px;
}

.card-text h2 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.card-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- Текстовые панели ---------- */
.text-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(25px, 5vw, 55px);
  border: 1px solid rgba(208, 178, 240, .2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(131, 93, 163, .10), transparent 60%),
    rgba(255, 255, 255, .025);
  text-align: center;
}

.text-panel h2 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -.02em;
}

.text-panel p {
  color: var(--muted);
  line-height: 2;
}

.text-panel button,
.text-panel .btn {
  margin-top: 20px;
}

/* ---------- Ссылка «назад» ---------- */
.back-link {
  display: inline-block;
  margin-top: 48px;
  color: #d9a5f0;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: color .2s ease;
}

.back-link:hover {
  color: #f0b9d5;
  text-decoration: underline;
}

.page > .back-link {
  display: block;
}

/* ---------- Адаптив ---------- */
@media (max-width: 650px) {
  .page {
    padding-top: 40px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}
