/* Публичный дашборд Pilya AI — читабельная типографика + стекло Bizzup */
:root {
  --bz-accent: #5929e2;
  --bz-accent-purple: #875cff;
  --bz-accent-green: #c9ff57;
  --bz-accent-blue: #5988ff;
  --glass-bg: rgba(16, 18, 32, 0.72);
  --glass-border: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.96);
  --text-secondary: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.72);
  --mesh-1: #1a0f2e;
  --mesh-2: #0d1a2e;
  --mesh-3: #152238;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Manrope', var(--font-body);
  --readable-width: 42rem;
  --text-shadow-hero: 0 1px 2px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: #0a0c14;
  background-image: linear-gradient(
      165deg,
      rgba(10, 12, 20, 0.88) 0%,
      rgba(20, 14, 40, 0.82) 45%,
      rgba(10, 12, 22, 0.9) 100%
    ),
    radial-gradient(1200px 800px at 70% 10%, rgba(89, 41, 226, 0.22) 0%, transparent 55%),
    url('bg-decor-02.png');
  background-size: auto, auto, cover;
  background-position: 0 0, 0 0, 50% 40%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body {
    background-attachment: scroll;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--bz-accent);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  padding: 1.25rem 1.5rem 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-card {
  padding: 1.35rem 1.45rem;
}

.glass-panel {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.glass-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.45rem;
  margin-top: 0.75rem;
}

.glass-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
}
.glass-nav a:hover,
.glass-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.glass-nav a.is-active {
  color: #fff;
  border-color: color-mix(in srgb, var(--bz-accent-purple) 55%, transparent);
  background: color-mix(in srgb, var(--bz-accent) 38%, transparent);
}

.hero-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-shadow: var(--text-shadow-hero);
}

.hero-note {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: var(--readable-width);
  text-shadow: var(--text-shadow-hero);
}

.hero-lead {
  margin: 0 0 0.85rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: var(--readable-width);
}

.hero-lead-tight {
  margin-top: 0.5rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.lead-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  max-width: var(--readable-width);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}
.lead-list li {
  margin-bottom: 0.45rem;
}
.lead-list li:last-child {
  margin-bottom: 0;
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
  line-height: 1.45;
}
.meta-bar strong {
  color: var(--text);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.2rem;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--bz-accent) 0%, var(--bz-accent-purple) 100%);
  color: #fff;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--bz-accent) 40%, transparent);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--bz-accent-green);
  outline-offset: 2px;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: var(--glass-border);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem 2.75rem;
}

section.panel {
  display: none;
  margin-top: 1.15rem;
  animation: fadeIn 0.35s ease;
}
section.panel.is-visible {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  section.panel {
    animation: none;
  }
}

.grid-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.kpi {
  padding: 1.1rem 1.05rem;
}
.kpi-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bz-accent-green);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.kpi-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  line-height: 1.35;
}
.kpi-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.45;
}

.human-metrics {
  padding: 1.05rem 1.15rem;
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
  line-height: 1.55;
}
.human-metrics .human-metrics-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.human-metrics > p {
  margin: 0;
  color: var(--text);
  max-width: var(--readable-width);
}
.human-metrics .human-metrics-muted {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: var(--readable-width);
}

.chart-wrap {
  padding: 1.15rem 1.2rem;
  margin-bottom: 1.1rem;
  min-height: 280px;
}
.chart-wrap h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.chart-lead {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 38rem;
}
.chart-lead strong {
  color: #fff;
  font-weight: 600;
}

.chart-canvas-wrap {
  height: 300px;
  position: relative;
}
.chart-canvas-wrap--short {
  height: 280px;
}
.chart-canvas-wrap--tall {
  height: 320px;
}

.read-guide {
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.read-guide-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.read-guide-intro {
  margin: 0 0 1.15rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: var(--readable-width);
}
.read-guide-dl {
  margin: 0;
}
.read-guide-dl dt {
  margin: 1.1rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.read-guide-dl dt:first-child {
  margin-top: 0;
}
.read-guide-dl dd {
  margin: 0.4rem 0 0;
  padding: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: var(--readable-width);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
}

.roadmap-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.roadmap-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.3rem 0;
}

.roadmap-list li strong {
  font-weight: 700;
}

.disclaimer {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding: 0.9rem 1.05rem;
  margin-top: 1.1rem;
  border-left: 4px solid var(--bz-accent-blue);
  background: rgba(89, 136, 255, 0.06);
  border-radius: 0 12px 12px 0;
  max-width: 48rem;
}

.alert {
  padding: 1.05rem 1.15rem;
  border-radius: 12px;
  background: rgba(180, 60, 60, 0.32);
  border: 1px solid rgba(255, 140, 140, 0.4);
  color: #ffe8e8;
  margin-bottom: 1rem;
  font-size: 0.98rem;
  line-height: 1.5;
}

.roadmap-card {
  padding: 1.15rem 1.25rem;
}
.roadmap-heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.roadmap-intro {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: var(--readable-width);
}

.roadmap-step {
  padding: 0.9rem 1.05rem;
  margin-bottom: 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
}
.roadmap-step strong {
  font-family: var(--font-heading);
  color: var(--bz-accent-green);
  font-weight: 700;
}
.roadmap-step span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.bench-box {
  margin-top: 1rem;
  padding: 1.1rem 1.15rem;
}
.bench-box h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}
.bench-box ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.58;
  max-width: var(--readable-width);
}

footer.site-footer {
  max-width: 1200px;
  margin: 2.25rem auto 1.25rem;
  padding: 0 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
footer.site-footer p {
  margin: 0;
  max-width: 36rem;
}
footer.site-footer code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

@media print {
  body {
    background: #fff;
    color: #111;
    background-image: none;
    font-size: 12pt;
  }
  .glass-panel,
  .glass-nav,
  .chart-wrap,
  .kpi {
    background: #f5f5f8;
    border: 1px solid #ccc;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .glass-nav {
    display: none;
  }
  section.panel {
    display: block !important;
    page-break-inside: avoid;
  }
  .cta-row,
  .btn {
    display: none;
  }
  .hero-lead,
  .hero-note,
  .meta-bar,
  .kpi-hint,
  .chart-lead,
  .read-guide-intro,
  .read-guide-dl dd {
    color: #333;
  }
  .kpi-value {
    color: #2d1a6e;
  }
}
