/* Публичный сайт apex — светлая палитра (без красного/жёлтого/оранжевого) */
:root {
  --ps-bg: #f7f9fc;
  --ps-surface: #ffffff;
  --ps-text: #1a2b4a;
  --ps-muted: #5a6d8c;
  --ps-accent: #3d9b8c;
  --ps-accent-2: #6b8cff;
  --ps-lavender: #e8e4ff;
  --ps-mint: #d4f4ef;
  --ps-sky: #d9ecff;
  --ps-radius: 16px;
  --ps-shadow: 0 8px 32px rgba(26, 43, 74, 0.08);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

.public-site {
  min-height: 100vh;
  background: var(--ps-bg);
  color: var(--ps-text);
  line-height: 1.55;
}

.public-site a {
  color: var(--ps-accent-2);
  text-decoration: none;
}
.public-site a:hover {
  text-decoration: underline;
}

.ps-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.ps-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 140, 255, 0.15);
}
.ps-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ps-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ps-text);
  text-decoration: none;
}
.ps-brand:hover {
  text-decoration: none;
  color: var(--ps-accent);
}
.ps-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.ps-nav a {
  font-size: 0.88rem;
  color: var(--ps-muted);
  font-weight: 500;
}
.ps-nav a:hover {
  color: var(--ps-accent);
}
.ps-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ps-accent), #2d7a6e);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(61, 155, 140, 0.35);
}
.ps-cta:hover {
  filter: brightness(1.05);
}
.ps-cta-secondary {
  background: var(--ps-surface);
  color: var(--ps-accent-2) !important;
  border: 2px solid rgba(107, 140, 255, 0.35);
  box-shadow: none;
}

.ps-hero {
  padding: 48px 0 32px;
  text-align: center;
}
.ps-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(120deg, #1a2b4a, #3d9b8c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ps-hero p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--ps-muted);
  font-size: 1.05rem;
}
.ps-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.ps-card {
  background: var(--ps-surface);
  border-radius: var(--ps-radius);
  padding: 22px;
  box-shadow: var(--ps-shadow);
  border: 1px solid rgba(107, 140, 255, 0.12);
}
.ps-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.ps-card p {
  font-size: 0.9rem;
  color: var(--ps-muted);
}

.ps-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 40px 0 16px;
}
.ps-footnote {
  font-size: 0.82rem;
  color: var(--ps-muted);
  margin-top: 8px;
}

.ps-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ps-news-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(107, 140, 255, 0.1);
}
.ps-news-list a {
  font-weight: 600;
  color: var(--ps-text);
}
.ps-news-list a:hover {
  color: var(--ps-accent);
}
.ps-news-meta {
  font-size: 0.78rem;
  color: var(--ps-muted);
  margin-top: 4px;
}

.ps-footer {
  margin-top: 48px;
  padding: 28px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ps-muted);
  border-top: 1px solid rgba(107, 140, 255, 0.12);
}

.ps-banner-logged {
  background: var(--ps-mint);
  border: 1px solid rgba(61, 155, 140, 0.25);
  border-radius: var(--ps-radius);
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.ps-prose {
  max-width: 720px;
}
.ps-prose-wide {
  max-width: 42rem;
}
.ps-long-read {
  margin: 2.5rem 0 2.5rem;
  padding: 28px 24px;
  background: var(--ps-surface);
  border-radius: var(--ps-radius);
  border: 1px solid rgba(107, 140, 255, 0.12);
  box-shadow: var(--ps-shadow);
}
.ps-long-read .ps-section-title {
  margin-top: 0;
}
.ps-long-read .ps-prose p {
  margin-bottom: 1.05em;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ps-text);
}
.ps-long-read .ps-prose p:last-child {
  margin-bottom: 0;
}
.ps-prose h2 {
  margin-top: 1.4em;
  font-size: 1.2rem;
}
.ps-prose ul {
  padding-left: 1.2em;
}

@media (max-width: 640px) {
  .ps-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ps-nav {
    width: 100%;
  }
}
