:root {
  --ph-ink: #172037;
  --ph-muted: #6c7690;
  --ph-line: #e7eaf2;
  --ph-surface: #ffffff;
  --ph-soft: #f5f6fa;
  --ph-purple: #6654e8;
  --ph-purple-dark: #3e367f;
  --ph-green: #2fad7b;
  --ph-shadow: 0 18px 48px rgba(24, 32, 55, 0.08);
}

html { scroll-behavior: smooth; }
body { color: var(--ph-ink); background: #f7f8fb; }
.public-help { min-height: 100vh; color: var(--ph-ink); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 15px; }
.public-help [hidden] { display: none !important; }
.ph-container { width: min(1480px, calc(100% - 64px)); margin: 0 auto; }
.ph-label { display: inline-block; margin-bottom: 8px; color: var(--ph-purple); font-size: 12px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.public-help a:focus-visible,
.public-help button:focus-visible,
.public-help summary:focus-visible,
.public-help input:focus-visible { outline: 3px solid rgba(102, 84, 232, 0.34); outline-offset: 3px; }

.ph-navbar { position: fixed; z-index: 1000; top: 0; right: 0; left: 0; height: 76px; border-bottom: 1px solid rgba(226, 229, 238, 0.85); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); }
.ph-navbar__inner { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.ph-logo { display: inline-flex; align-items: center; }
.ph-navbar__menu { display: flex; flex: 1; align-items: center; justify-content: flex-end; }
.ph-navbar__links { display: flex; align-items: center; gap: 35px; margin: 0 auto; }
.ph-navbar__links a { position: relative; padding: 27px 0 24px; color: #626d84; font-size: 14px; font-weight: 650; }
.ph-navbar__links a:hover,
.ph-navbar__links a.is-active { color: var(--ph-purple); }
.ph-navbar__links a.is-active::after { content: ""; position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; border-radius: 2px; background: var(--ph-purple); }
.ph-navbar__actions { display: flex; align-items: center; gap: 12px; }
.ph-login-link { padding: 10px 12px; color: #59647c; font-size: 13px; font-weight: 700; }
.ph-nav-button,
.ph-primary-button,
.ph-secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 17px; border-radius: 10px; font-size: 13px; font-weight: 800; }
.ph-nav-button,
.ph-primary-button { color: #fff; background: var(--ph-purple); box-shadow: 0 9px 20px rgba(101, 84, 232, 0.2); }
.ph-nav-button:hover,
.ph-primary-button:hover { color: #fff; background: #5746d6; }
.ph-secondary-button { border: 1px solid #d8dbe5; color: #475169; background: #fff; }
.ph-secondary-button:hover { border-color: #b9b0f5; color: var(--ph-purple); }
.ph-menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--ph-line); border-radius: 10px; color: var(--ph-ink); background: #fff; font-size: 22px; }

.ph-hero { position: relative; padding: 154px 0 74px; overflow: hidden; color: #fff; background: linear-gradient(122deg, #272c4b 0%, #443a90 52%, #735fee 100%); }
.ph-hero__shape { position: absolute; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 50%; }
.ph-hero__shape--one { width: 500px; height: 500px; right: -170px; top: -260px; }
.ph-hero__shape--two { width: 260px; height: 260px; left: -110px; bottom: -170px; }
.ph-hero__content { position: relative; z-index: 1; max-width: 940px; text-align: center; }
.ph-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: rgba(255, 255, 255, 0.72); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.ph-eyebrow i { font-size: 17px; }
.ph-hero h1 { margin: 0; color: #fff; font-size: clamp(39px, 5vw, 62px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.ph-hero__content > p { max-width: 780px; margin: 19px auto 28px; color: rgba(255, 255, 255, 0.74); font-size: 16px; line-height: 1.75; }
.ph-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; align-items: center; max-width: 780px; min-height: 64px; margin: 0 auto; padding: 8px 11px 8px 19px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 15px; background: #fff; box-shadow: 0 19px 42px rgba(22, 18, 59, 0.24); text-align: left; }
.ph-search > i { color: var(--ph-purple); font-size: 22px; }
.ph-search input { width: 100%; border: 0; outline: 0; color: var(--ph-ink); background: transparent; font-size: 14px; }
.ph-search input::placeholder { color: #929aac; }
.ph-search kbd { padding: 6px 10px; border: 1px solid #dfe2ea; border-radius: 7px; color: #737c90; background: #f5f6f9; box-shadow: none; font-size: 11px; }
.ph-hero__meta { display: flex; justify-content: center; gap: 30px; margin-top: 18px; color: rgba(255, 255, 255, 0.68); font-size: 12px; }
.ph-hero__meta strong { margin-right: 3px; color: #fff; }

.ph-quick { padding-top: 55px; }
.ph-heading,
.ph-articles__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 19px; }
.ph-heading h2,
.ph-articles__header h2,
.ph-cta h2 { margin: 0; color: var(--ph-ink); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.ph-heading > p { margin: 0; color: var(--ph-muted); font-size: 13px; }
.ph-quick__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.ph-quick-card { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 3px 15px; align-items: center; min-height: 115px; padding: 21px; border: 1px solid var(--ph-line); border-radius: 17px; color: var(--ph-ink); background: #fff; box-shadow: 0 10px 28px rgba(25, 32, 58, 0.045); transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.ph-quick-card:hover { transform: translateY(-2px); border-color: #b9b0f5; color: var(--ph-ink); box-shadow: 0 15px 32px rgba(64, 52, 145, 0.1); }
.ph-quick-card__icon { display: grid; grid-row: 1 / 3; place-items: center; width: 54px; height: 54px; border-radius: 14px; color: var(--ph-purple); background: #ece9ff; font-size: 24px; }
.ph-quick-card strong { align-self: end; font-size: 16px; }
.ph-quick-card small { align-self: start; color: var(--ph-muted); font-size: 12px; }
.ph-quick-card > i { grid-column: 3; grid-row: 1 / 3; color: #9ba2b3; }

.ph-knowledge { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 25px; align-items: start; padding-top: 55px; padding-bottom: 70px; }
.ph-categories { position: sticky; top: 96px; padding: 21px; border: 1px solid var(--ph-line); border-radius: 17px; background: #fff; box-shadow: 0 12px 32px rgba(25, 32, 58, 0.05); }
.ph-categories__title { padding: 2px 5px 16px; border-bottom: 1px solid var(--ph-line); }
.ph-categories__title strong { display: block; font-size: 16px; }
.ph-categories nav { display: grid; gap: 4px; padding: 12px 0; }
.ph-category { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; width: 100%; padding: 10px 9px; border: 0; border-radius: 9px; color: #606a80; text-align: left; background: transparent; font-size: 13px; }
.ph-category i { font-size: 17px; }
.ph-category small { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #8c94a7; background: #f1f2f6; font-size: 10px; }
.ph-category:hover { color: var(--ph-purple); background: #f7f5ff; }
.ph-category.is-active { color: var(--ph-purple-dark); background: #efedff; font-weight: 800; }
.ph-category.is-active small { color: var(--ph-purple); background: #fff; }
.ph-categories__contact { margin-top: 7px; padding: 18px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #34315f, #6654e8); }
.ph-categories__contact > i { font-size: 23px; }
.ph-categories__contact strong { display: block; margin-top: 10px; font-size: 14px; }
.ph-categories__contact p { margin: 6px 0 11px; color: rgba(255, 255, 255, 0.74); font-size: 12px; line-height: 1.5; }
.ph-categories__contact a { color: #fff; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.ph-articles { min-width: 0; }
.ph-articles__header { padding: 2px 3px; }
.ph-articles__header > span { padding: 7px 12px; border-radius: 999px; color: var(--ph-purple); background: #ece9ff; font-size: 11px; font-weight: 800; }
.ph-topic { margin-bottom: 18px; overflow: hidden; border: 1px solid var(--ph-line); border-radius: 17px; background: #fff; box-shadow: 0 12px 32px rgba(25, 32, 58, 0.045); }
.ph-topic > header { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 19px 22px; background: #f7f8fb; }
.ph-topic > header > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--ph-purple); background: #e9e6ff; font-size: 19px; }
.ph-topic > header h3 { margin: 0; color: var(--ph-ink); font-size: 18px; font-weight: 800; }
.ph-topic > header p { margin: 3px 0 0; color: var(--ph-muted); font-size: 12px; }
.ph-topic > header > small { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #7e879a; background: #fff; font-size: 10px; font-weight: 800; }
.ph-article { border-top: 1px solid var(--ph-line); }
.ph-article:first-child { border-top: 0; }
.ph-article summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 65px; padding: 14px 19px 14px 22px; cursor: pointer; list-style: none; }
.ph-article summary::-webkit-details-marker { display: none; }
.ph-article summary:hover { background: #fbfbfd; }
.ph-article[open] summary { background: #faf9ff; }
.ph-article summary strong { color: #343d53; font-size: 14px; line-height: 1.45; }
.ph-article summary > span:last-child { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: #7d8699; background: #f1f2f6; transition: transform 160ms ease, color 160ms ease, background 160ms ease; }
.ph-article[open] summary > span:last-child { transform: rotate(180deg); color: #fff; background: var(--ph-purple); }
.ph-pill { padding: 5px 8px; border-radius: 999px; color: var(--ph-purple); background: #ece9ff; font-size: 10px; font-weight: 800; white-space: nowrap; }
.ph-article > div { padding: 1px 62px 21px 22px; color: var(--ph-muted); font-size: 13px; line-height: 1.72; }
.ph-article > div p { max-width: 940px; margin: 0; }
.ph-inline-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ph-purple); font-weight: 800; }
.ph-inline-link:hover { color: var(--ph-purple-dark); }
.ph-empty { padding: 60px 25px; border: 1px dashed #d8dbe6; border-radius: 17px; text-align: center; background: #fafbfc; }
.ph-empty > i { display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 14px; border-radius: 15px; color: var(--ph-purple); background: #ece9ff; font-size: 25px; }
.ph-empty h3 { margin: 0; font-size: 18px; }
.ph-empty p { margin: 7px 0 16px; color: var(--ph-muted); font-size: 13px; }
.ph-empty button { padding: 9px 14px; border: 0; border-radius: 9px; color: #fff; background: var(--ph-purple); font-size: 12px; font-weight: 800; }

.ph-cta { padding: 62px 0; color: #fff; background: linear-gradient(120deg, #292d4c 0%, #443a91 58%, #715eea 100%); }
.ph-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ph-cta .ph-label { color: rgba(255, 255, 255, 0.67); }
.ph-cta h2 { color: #fff; font-size: 32px; }
.ph-cta p { max-width: 700px; margin: 10px 0 0; color: rgba(255, 255, 255, 0.74); font-size: 14px; }
.ph-cta__actions { display: flex; gap: 11px; flex: 0 0 auto; }
.ph-cta .ph-primary-button { color: var(--ph-purple-dark); background: #fff; box-shadow: none; }
.ph-cta .ph-primary-button:hover { color: var(--ph-purple); background: #f4f1ff; }
.ph-cta .ph-secondary-button { border-color: rgba(255, 255, 255, 0.28); color: #fff; background: transparent; }

.ph-footer { padding: 50px 0 20px; background: #fff; }
.ph-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 35px; }
.ph-footer__brand p { max-width: 390px; margin: 16px 0 0; color: var(--ph-muted); font-size: 12px; line-height: 1.65; }
.ph-footer__top > div:not(.ph-footer__brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.ph-footer__top strong { margin-bottom: 4px; color: var(--ph-ink); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.ph-footer__top a { color: var(--ph-muted); font-size: 12px; }
.ph-footer__top a:hover { color: var(--ph-purple); }
.ph-footer__bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--ph-line); color: #9299aa; font-size: 11px; }
.ph-footer__bottom a { color: var(--ph-purple); }
.ph-back-to-top { position: fixed; z-index: 900; right: 24px; bottom: 24px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: #fff; background: var(--ph-purple); box-shadow: 0 10px 24px rgba(101, 84, 232, 0.25); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 160ms ease, transform 160ms ease; }
.ph-back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.ph-back-to-top:hover { color: #fff; }

@media (max-width: 1100px) {
  .ph-container { width: min(100% - 40px, 1480px); }
  .ph-knowledge { grid-template-columns: 235px minmax(0, 1fr); }
  .ph-navbar__links { gap: 22px; }
}

@media (max-width: 900px) {
  .ph-menu-toggle { display: inline-grid; place-items: center; }
  .ph-navbar__menu { position: absolute; top: 76px; right: 0; left: 0; display: none; padding: 16px 20px 22px; border-bottom: 1px solid var(--ph-line); background: #fff; box-shadow: 0 18px 30px rgba(25, 32, 58, 0.08); }
  .ph-navbar__menu.is-open { display: block; }
  .ph-navbar__links,
  .ph-navbar__actions { align-items: stretch; flex-direction: column; gap: 3px; }
  .ph-navbar__links a { padding: 10px 5px; }
  .ph-navbar__links a.is-active::after { display: none; }
  .ph-navbar__actions { margin-top: 10px; }
  .ph-login-link { text-align: center; }
  .ph-quick__grid { grid-template-columns: 1fr; }
  .ph-knowledge { display: block; }
  .ph-categories { position: static; margin-bottom: 25px; }
  .ph-categories nav { display: flex; margin-right: -4px; overflow-x: auto; }
  .ph-category { min-width: 165px; }
  .ph-categories__contact { display: none; }
  .ph-cta__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767px) {
  .ph-container { width: min(100% - 28px, 1480px); }
  .ph-hero { padding: 125px 0 55px; }
  .ph-hero h1 { font-size: 37px; }
  .ph-hero__content > p { font-size: 14px; }
  .ph-search { min-height: 56px; padding-left: 15px; }
  .ph-search input { font-size: 12px; }
  .ph-search kbd { display: none; }
  .ph-hero__meta { flex-direction: column; gap: 4px; }
  .ph-quick { padding-top: 38px; }
  .ph-heading > p { display: none; }
  .ph-heading h2,
  .ph-articles__header h2 { font-size: 24px; }
  .ph-knowledge { padding-top: 38px; padding-bottom: 45px; }
  .ph-topic > header { padding: 16px; }
  .ph-topic > header p { display: none; }
  .ph-article summary { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 14px 14px 17px; }
  .ph-pill { display: none; }
  .ph-article > div { padding: 1px 17px 20px; }
  .ph-cta { padding: 45px 0; }
  .ph-cta h2 { font-size: 27px; }
  .ph-cta__actions { width: 100%; flex-direction: column; }
  .ph-footer__top { grid-template-columns: 1fr 1fr; gap: 32px 25px; }
  .ph-footer__brand { grid-column: 1 / -1; }
  .ph-footer__bottom { gap: 8px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ph-quick-card,
  .ph-article summary > span:last-child,
  .ph-back-to-top { transition: none; }
}
