﻿:root {
  --pp-ink: #0e1528;
  --pp-muted: #5a6684;
  --pp-card: #ffffff;
  --pp-card-soft: #f4f6ff;
  --pp-border: #dfe5ff;
  --pp-border-strong: #bfc9ff;
  --pp-accent: #5b6cff;
  --pp-accent-dark: #2130b0;
  --pp-ghost: #e8ebff;
  --pp-shadow: 0 22px 52px rgba(15, 30, 90, 0.16);
  --pp-radius: 20px;
  --pp-radius-lg: 28px;
  --pp-container: 1200px;
}

.pp {
  color: var(--pp-ink);
  line-height: 1.7;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6ff 65%, #eef0ff 100%);
}

.pp__container {
  max-width: var(--pp-container);
  margin: 0 auto;
  padding: 0 28px;
}

.pp__hero {
  position: relative;
  padding: 108px 0 78px;
  overflow: hidden;
}

.pp__ambient {
  position: absolute;
  inset: 18% -24% auto -22%;
  height: 140%;
  background:
    radial-gradient(40% 46% at 16% 12%, rgba(91, 108, 255, 0.26), transparent 65%),
    radial-gradient(35% 36% at 82% 30%, rgba(255, 190, 220, 0.18), transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.pp__hero > .pp__container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 42px;
}

.pp__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  color: var(--pp-muted);
  box-shadow: 0 12px 34px rgba(10, 22, 70, 0.12);
}

.pp__breadcrumb a {
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.pp__breadcrumb a:hover {
  opacity: 1;
}

.pp__breadcrumb .current {
  color: var(--pp-ink);
}

.pp__hero-copy {
  max-width: min(90vw, 760px);
  display: grid;
  gap: 18px;
}

.pp__title {
  margin: 0;
  font-size: clamp(42px, 4.4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pp__lead {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 20px);
  color: var(--pp-muted);
}

.pp__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 22px;
  border-radius: var(--pp-radius-lg);
  border: 1px solid var(--pp-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(17, 32, 88, 0.1);
  font-weight: 600;
}

.pp__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--pp-card-soft);
  border-radius: 999px;
  border: 1px solid rgba(91, 108, 255, 0.14);
  color: var(--pp-muted);
  font-size: 14px;
}

.pp__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pp__highlight {
  display: grid;
  gap: 12px;
  padding: 26px 24px;
  border-radius: var(--pp-radius);
  border: 1px solid rgba(91, 108, 255, 0.14);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 44px rgba(20, 36, 104, 0.1);
}

.pp__highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(91, 108, 255, 0.18), rgba(91, 108, 255, 0.05));
  border: 1px solid rgba(91, 108, 255, 0.24);
  font-weight: 700;
  color: var(--pp-accent-dark);
  font-size: 18px;
}

.pp__highlight-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.pp__highlight p {
  margin: 0;
  color: var(--pp-muted);
}

.pp__content {
  padding: 82px 0 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 248, 255, 0.98) 100%);
}

.pp__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 36px;
  align-items: start;
}

.pp__sidebar {
  display: grid;
  gap: 24px;
}

.pp__main {
  display: grid;
  gap: 26px;
}

.pp__card {
  background: var(--pp-card);
  border-radius: var(--pp-radius);
  border: 1px solid var(--pp-border);
  padding: 30px 32px;
  box-shadow: var(--pp-shadow);
}

.pp__card--main {
  display: grid;
  gap: 18px;
}

.pp__card--sidebar {
  display: grid;
  gap: 16px;
  box-shadow: 0 18px 36px rgba(17, 32, 88, 0.12);
}

.pp__card--cta {
  background: linear-gradient(135deg, rgba(91, 108, 255, 0.12), rgba(91, 108, 255, 0.04));
}

.pp__card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--pp-ink);
}

.pp__toc {
  display: block;
}

.pp__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: pp-toc;
}

.pp__toc-list li {
  counter-increment: pp-toc;
}

.pp__toc-list a {
  position: relative;
  display: block;
  padding: 10px 14px 10px 36px;
  border-radius: 14px;
  color: var(--pp-muted);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pp__toc-list a::before {
  content: counter(pp-toc, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  color: rgba(33, 48, 176, 0.65);
}

.pp__toc-list a:hover {
  background: rgba(91, 108, 255, 0.08);
  color: var(--pp-ink);
}

.pp__toc-list a.is-active {
  background: rgba(91, 108, 255, 0.12);
  border-color: rgba(91, 108, 255, 0.26);
  color: var(--pp-ink);
}

.pp__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pp__links a {
  color: var(--pp-accent-dark);
  text-decoration: none;
  font-weight: 600;
}

.pp__links a:hover {
  text-decoration: underline;
}

.pp__support-window {
  margin: 0;
  font-size: 14px;
  color: var(--pp-muted);
}

.pp__section-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--pp-ink);
}

.pp__section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--pp-card-soft);
  border: 1px solid rgba(91, 108, 255, 0.3);
  font-size: 15px;
  font-weight: 700;
  color: var(--pp-accent-dark);
}

.pp__list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: var(--pp-muted);
}

.pp__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.pp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  border: 1px solid transparent;
}

.pp__btn--primary {
  background: linear-gradient(120deg, #5b6cff 0%, #7384ff 100%);
  color: #fff;
  box-shadow: 0 16px 38px rgba(72, 88, 200, 0.28);
}

.pp__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(52, 68, 172, 0.32);
}

.pp__btn--ghost {
  background: var(--pp-ghost);
  color: var(--pp-accent-dark);
  border-color: rgba(91, 108, 255, 0.22);
  box-shadow: none;
}

.pp__btn--ghost:hover {
  background: rgba(91, 108, 255, 0.16);
}

[data-pp-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-pp-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .pp__layout {
    grid-template-columns: 100%;
  }

  .pp__sidebar {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .pp__card--sidebar {
    padding: 26px;
  }
}

@media (max-width: 960px) {
  .pp__hero {
    padding: 90px 0 64px;
  }

  .pp__meta {
    padding: 18px;
  }

  .pp__highlights {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 720px) {
  .pp__container {
    padding: 0 20px;
  }

  .pp__breadcrumb {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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

  .pp__card {
    padding: 24px;
  }

  .pp__section-title {
    font-size: 20px;
  }

  .pp__section-index {
    width: 40px;
    height: 40px;
  }

  .pp__ctas {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-pp-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pp__btn,
  .pp__breadcrumb a {
    transition: none;
  }
}
