/* EUPHORIA HAB — стиль v6: bento, Manrope, красный как единственный акцент */
:root {
  --bg: #F9F9FC;
  --card: #FFFFFF;
  --accent: #DF332A;
  --text: #1F2330;
  --muted: #6B7080;
  --placeholder: #EEEFF3;
  --radius: 16px;
  --gap: 20px;
  --section-gap: 48px;
  --shadow: 0 1px 3px rgba(31, 35, 48, 0.05);
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 { font-weight: 500; line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 6vw, 44px); }
h2 { font-size: clamp(22px, 4vw, 28px); }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Шапка */
.site-header { background: var(--card); border-bottom: 2px solid var(--accent); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { text-decoration: none; display: flex; align-items: baseline; gap: 8px; }
.logo-word { color: var(--accent); font-weight: 500; font-size: 22px; letter-spacing: 0.12em; }
.logo-sub { color: var(--muted); font-size: 13px; letter-spacing: 0.2em; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin: -10px; cursor: pointer; font: inherit; color: var(--text); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }
.nav-list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; font-size: 15px; padding: 6px 0; color: var(--muted); }
.nav-list a:hover { color: var(--text); }
.nav-list a[aria-current="page"] { color: var(--text); box-shadow: 0 2px 0 var(--accent); }

/* Секции */
main { padding: 40px 0 0; }
.section { margin-bottom: var(--section-gap); }
.section-title { display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ''; width: 4px; height: 24px; background: var(--accent); border-radius: 2px; flex: none; }
.lead { color: var(--muted); font-size: 17px; max-width: 640px; }
.hero { padding: 24px 0 8px; }
.hero h1 { max-width: 760px; }

/* Bento */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(12, 1fr); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; min-width: 0; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
a.card { text-decoration: none; display: block; transition: box-shadow .2s; }
a.card:hover { box-shadow: 0 4px 16px rgba(31, 35, 48, 0.08); }
.card p { font-size: 15px; color: var(--muted); margin-bottom: 0; }

.kpi-label { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.kpi-value { font-size: 38px; font-weight: 500; line-height: 1.1; }
.kpi-value.key { color: var(--accent); }
.progress { height: 6px; background: var(--placeholder); border-radius: 3px; margin-top: 16px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); width: 0; }

/* Заглушки */
.ph { background: var(--placeholder); color: var(--muted); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.ph-chart { min-height: 160px; display: flex; align-items: center; justify-content: center; text-align: center; }
.card .ph { margin-top: 12px; }

.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--placeholder); margin-bottom: 16px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--placeholder); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }

/* Подвал */
.site-footer { margin-top: var(--section-gap); padding: 32px 0; background: var(--card); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Мобильная адаптация */
@media (max-width: 900px) {
  .span-3 { grid-column: span 6; }
  .span-4 { grid-column: span 6; }
  .span-6, .span-8 { grid-column: span 12; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 2px solid var(--accent); padding: 8px var(--gutter) 16px; }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list a { display: block; padding: 12px 0; font-size: 17px; }
  main { padding-top: 24px; }
  .grid > * { grid-column: span 12 !important; }
  .card { padding: 20px; }
}
