:root {
  --cp-ink: #172033;
  --cp-muted: #5d6678;
  --cp-paper: #f7f8fc;
  --cp-line: #dfe4ef;
  --cp-accent: #3f51b5;
  --cp-accent-deep: #293a99;
  --cp-accent-soft: #edf0ff;
  --cp-gold: #b88a35;
}

body.partnership-page,
body.legal-page {
  color: var(--cp-ink);
  background: #fff;
}

.partnership-page .cp-hero .row,
.partnership-page .cp-section .row,
.legal-page .legal-content .row { margin-left: 0; margin-right: 0; }

body.site-way {
  --cp-accent: #5a4bb7;
  --cp-accent-deep: #362a83;
  --cp-accent-soft: #f1efff;
  --cp-gold: #a87935;
}

.cp-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(23, 32, 51, .08);
  backdrop-filter: blur(16px);
}

.cp-nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cp-brand img { max-height: 42px; width: auto; }
.cp-links { display: flex; align-items: center; justify-content: flex-end; gap: 22px; flex-wrap: wrap; }
.cp-links a { color: var(--cp-ink); font-size: .94rem; font-weight: 600; text-decoration: none; }
.cp-links a:hover, .cp-links a[aria-current="page"] { color: var(--cp-accent); }

.cp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--cp-accent);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(63, 81, 181, .22);
  transition: transform .2s ease, background .2s ease;
}

.cp-button:hover { transform: translateY(-2px); background: var(--cp-accent-deep); }
.cp-button-light { background: #fff; color: var(--cp-accent-deep) !important; box-shadow: none; }
.cp-button-outline { background: transparent; color: var(--cp-accent) !important; border: 1px solid var(--cp-accent); box-shadow: none; }

.cp-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 76px;
  background:
    radial-gradient(circle at 88% 18%, rgba(184, 138, 53, .23), transparent 28%),
    linear-gradient(135deg, #f7f8ff 0%, #ffffff 52%, var(--cp-accent-soft) 100%);
}

.site-way .cp-hero {
  background:
    radial-gradient(circle at 12% 8%, rgba(168, 121, 53, .2), transparent 27%),
    linear-gradient(145deg, #fff 0%, #f5f2ff 53%, #eeeafd 100%);
}

.cp-kicker {
  color: var(--cp-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cp-hero h1 { max-width: 760px; font-size: clamp(2.65rem, 6vw, 5.25rem); line-height: .98; letter-spacing: -.045em; }
.cp-hero .cp-lead { max-width: 710px; color: var(--cp-muted); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.7; }
.cp-trust-row { display: flex; gap: 22px; flex-wrap: wrap; color: var(--cp-muted); font-size: .92rem; }
.cp-trust-row span::before { content: "\2713"; color: var(--cp-accent); font-weight: 800; margin-right: 7px; }

.cp-product-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(63, 81, 181, .16);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 70px rgba(37, 46, 87, .14);
}

.cp-price { font-size: clamp(2.45rem, 5vw, 4.1rem); line-height: 1; letter-spacing: -.04em; font-weight: 800; }
.cp-price-note { color: var(--cp-muted); font-size: .9rem; }
.cp-divider { height: 1px; background: var(--cp-line); margin: 24px 0; }
.cp-fine { color: var(--cp-muted); font-size: .84rem; line-height: 1.55; }

.cp-section { padding: 88px 0; }
.cp-section-soft { background: var(--cp-paper); }
.cp-section-dark { color: #fff; background: var(--cp-ink); }
.site-way .cp-section-dark { background: #261f52; }
.cp-section h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.035em; }
.cp-section-intro { max-width: 760px; color: var(--cp-muted); font-size: 1.08rem; line-height: 1.75; }
.cp-section-dark h2,
.cp-section-dark h3,
.cp-section-dark .cp-kicker,
.cp-section-dark .cp-section-intro,
.cp-section-dark .cp-step p { color: #fff !important; }

.cp-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cp-card {
  height: 100%;
  padding: 26px;
  border: 1px solid var(--cp-line);
  border-radius: 18px;
  background: #fff;
}
.cp-card h3 { font-size: 1.08rem; }
.cp-card p { color: var(--cp-muted); font-size: .93rem; line-height: 1.62; margin-bottom: 0; }
.cp-card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--cp-accent-soft); color: var(--cp-accent); font-weight: 800; }

.cp-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.cp-step { position: relative; padding: 25px 20px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); }
.cp-step-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--cp-accent-deep); font-weight: 800; }
.cp-step h3 { font-size: 1rem; }
.cp-step p { color: rgba(255,255,255,.72); font-size: .88rem; line-height: 1.58; margin-bottom: 0; }

.cp-economics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cp-economic { padding: 28px; border-radius: 18px; background: #fff; border: 1px solid var(--cp-line); }
.cp-economic strong { display: block; color: var(--cp-accent); font-size: 1.8rem; line-height: 1.1; }
.cp-economic span { color: var(--cp-muted); font-size: .92rem; line-height: 1.55; }

.cp-publication-panel { padding: 34px; border-radius: 24px; background: linear-gradient(145deg, var(--cp-accent-soft), #fff); border: 1px solid rgba(63,81,181,.14); }
.cp-book-image { max-height: 390px; width: auto; max-width: 100%; filter: drop-shadow(0 22px 22px rgba(23,32,51,.2)); }
.cp-publication-list { list-style: none; padding: 0; margin: 0; }
.cp-publication-list li { padding: 13px 0; border-bottom: 1px solid var(--cp-line); }
.cp-publication-list li:last-child { border-bottom: 0; }

.cp-recognition-list { columns: 2; column-gap: 40px; padding-left: 1.2rem; }
.cp-recognition-list li { margin-bottom: 12px; break-inside: avoid; }

.cp-faq { max-width: 900px; margin: 0 auto; }
.cp-faq details { border-bottom: 1px solid var(--cp-line); padding: 19px 0; }
.cp-faq summary { cursor: pointer; font-weight: 700; font-size: 1.04rem; }
.cp-faq details p { color: var(--cp-muted); line-height: 1.7; margin: 13px 0 0; }

.cp-callout { padding: 38px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--cp-accent-deep), var(--cp-accent)); }
.cp-callout h2,
.cp-callout .cp-kicker,
.cp-callout p { color: #fff !important; }

.cp-footer { padding: 58px 0 28px; color: rgba(255,255,255,.77); background: #11182a; }
.site-way .cp-footer { background: #1c1738; }
.cp-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.cp-footer a:hover { color: #fff; }
.cp-footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.cp-footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: .86rem; }

.legal-hero { padding: 72px 0 48px; background: var(--cp-accent-soft); }
.legal-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.04em; }
.legal-content { max-width: 900px; margin: 0 auto; padding: 66px 0 88px; }
.legal-content h2 { margin-top: 2.2rem; font-size: 1.42rem; }
.legal-content h3 { margin-top: 1.65rem; font-size: 1.08rem; }
.legal-content p, .legal-content li { color: #3f4859; line-height: 1.72; }
.legal-content .legal-note { padding: 18px 20px; border-left: 4px solid var(--cp-accent); background: var(--cp-accent-soft); }
.legal-meta { color: var(--cp-muted); }
.legal-toc { padding: 24px; border: 1px solid var(--cp-line); border-radius: 16px; background: var(--cp-paper); }
.legal-toc a { color: var(--cp-accent); text-decoration: none; }

@media (max-width: 991.98px) {
  .cp-nav-inner { align-items: flex-start; flex-direction: column; padding-top: 16px; padding-bottom: 16px; }
  .cp-links { justify-content: flex-start; gap: 12px 18px; }
  .cp-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .cp-hero { padding: 64px 0 56px; }
  .cp-section { padding: 64px 0; }
  .cp-card-grid, .cp-steps, .cp-economics { grid-template-columns: 1fr; }
  .cp-product-card, .cp-callout, .cp-publication-panel { padding: 26px; }
  .cp-recognition-list { columns: 1; }
  .cp-links .cp-button { width: 100%; }
}
