/* PromiseWatch KZ · Stylesheet v3 · 2026 */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&family=Plus+Jakarta+Sans:wght@600;700;800;900&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Brand */
  --primary:        #0B7285;
  --primary-hover:  #085F70;
  --primary-light:  #E8F6F9;
  --primary-mid:    #5BAFC1;
  --primary-border: #A9D9E4;

  --gold:           #A07828;
  --gold-hover:     #8A6520;
  --gold-light:     #FDF4E3;
  --gold-mid:       #D4A554;
  --gold-border:    #E8C97A;

  /* Structure */
  --navy:           #0A1929;
  --navy-mid:       #112135;
  --navy-surface:   #1A3148;

  /* Backgrounds */
  --bg:             #EFF3F8;
  --bg-alt:         #F5F7FA;
  --white:          #FFFFFF;
  --surface:        #FFFFFF;
  --surface-2:      #F7F9FC;
  --surface-3:      #F0F3F7;

  /* Text */
  --text:           #111827;
  --text-2:         #374151;
  --text-3:         #6B7280;
  --text-4:         #9CA3AF;
  --text-5:         #D1D5DB;

  /* Borders */
  --border:         #D9E1EC;
  --border-2:       #E8EDF5;
  --border-3:       #F1F5F9;

  /* Radius */
  --r-xs:  4px;
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 28px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(10,25,41,.04);
  --sh-sm: 0 2px 8px rgba(10,25,41,.06), 0 1px 2px rgba(10,25,41,.03);
  --sh:    0 4px 16px rgba(10,25,41,.07), 0 2px 4px rgba(10,25,41,.04);
  --sh-md: 0 8px 28px rgba(10,25,41,.09), 0 4px 8px rgba(10,25,41,.04);
  --sh-lg: 0 20px 56px rgba(10,25,41,.12), 0 8px 16px rgba(10,25,41,.06);
  --sh-inset: inset 0 1px 0 rgba(255,255,255,.06);

  /* Status */
  --done:         #059669; --done-bg:       #ECFDF5; --done-border:       #A7F3D0;
  --partial:      #D97706; --partial-bg:    #FFFBEB; --partial-border:    #FDE68A;
  --inprogress:   #1D4ED8; --inprogress-bg: #EFF6FF; --inprogress-border: #BFDBFE;
  --failed:       #DC2626; --failed-bg:     #FEF2F2; --failed-border:     #FECACA;
  --nodata:       #6B7280; --nodata-bg:     #F3F4F6; --nodata-border:     #D1D5DB;
  --worse:        #7C3AED; --worse-bg:      #F5F3FF; --worse-border:      #DDD6FE;

  /* Motion */
  --t:      0.16s ease;
  --t-slow: 0.28s ease;
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
h1 { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; font-size: clamp(1.875rem, 5vw, 3rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; }
h2 { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; font-size: clamp(1.3rem, 3vw, 1.875rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.025em; }
h3 { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
h4 { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
p { color: var(--text-2); }
.overline {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.82;
}
.section-header__left .overline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.section-header__left .overline::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1.5px;
  background: var(--gold-mid);
  border-radius: 2px;
  opacity: 0.65;
}

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container       { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--mid  { max-width: 960px;  margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 840px; margin: 0 auto; padding: 0 24px; }
.section         { padding: 64px 0; }
.section--sm     { padding: 40px 0; }
.section--lg     { padding: 88px 0; }

/* ─── NAV ────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-2);
  box-shadow: 0 1px 0 rgba(160,120,40,.08);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.nav__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__logo-mark {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: none;
}
.nav__logo-text { font-size: 0.875rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1.2; }
.nav__logo-sub  { font-size: 0.625rem; font-weight: 500; color: var(--text-4); letter-spacing: 0.03em; display: block; }
.nav__links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav__link {
  padding: 6px 13px; border-radius: var(--r-sm);
  font-size: 0.8125rem; font-weight: 500; color: var(--text-3);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav__link:hover { color: var(--primary); background: var(--primary-light); }
.nav__link.active { color: var(--primary); font-weight: 600; background: var(--primary-light); }
.nav__right { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.nav__divider { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px;
  background: var(--primary); color: white;
  border-radius: var(--r-sm); font-size: 0.8125rem; font-weight: 600;
  transition: background var(--t), transform var(--t);
}
.nav__cta:hover { background: var(--primary-hover); transform: translateY(-1px); }
.nav__burger {
  display: none; width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm); transition: background var(--t);
}
.nav__burger:hover { background: var(--surface-2); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 80px 0 72px;
  position: relative; overflow: hidden;
  border-top: 2px solid rgba(160,120,40,.35);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 72% 44%, rgba(11,114,133,.26) 0%, transparent 44%),
    radial-gradient(circle at 24% 62%, rgba(11,114,133,.14) 0%, transparent 48%),
    radial-gradient(circle at 92% 4%,  rgba(160,120,40,.18) 0%, transparent 38%),
    radial-gradient(circle at 8%  80%, rgba(11,114,133,.07) 0%, transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(160,120,40,.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}
/* Subtle dot grid — civic-tech texture */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.038) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
/* Kazakh geometric medallion */
.hero__ornament {
  position: absolute; right: -4%; top: -8%; bottom: -8%;
  width: 52%; opacity: 0.064; pointer-events: none;
  display: flex; align-items: center; justify-content: flex-end;
  z-index: 1;
}
.hero__ornament svg { width: 100%; height: 100%; }

/* Two-column hero layout */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 292px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__content { /* natural flow */ }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 9px;
  background: rgba(160,120,40,.13);
  border: 1px solid rgba(160,120,40,.3);
  border-radius: 20px;
  color: #D4A554;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__eyebrow-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-mid);
  box-shadow: 0 0 0 0 rgba(212,165,84,.4);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,165,84,.4); }
  50% { box-shadow: 0 0 0 5px rgba(212,165,84,0); }
}
.hero h1 { color: #fff; max-width: 600px; margin-bottom: 18px; font-size: clamp(2rem, 4.8vw, 3.25rem); }
.hero h1 em { font-style: normal; color: var(--gold-mid); position: relative; }
.hero h1 em::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-mid), transparent);
  border-radius: 2px;
  opacity: 0.5;
}
.hero__sub {
  color: rgba(255,255,255,.52); font-size: 1rem; max-width: 460px;
  margin-bottom: 36px; line-height: 1.78;
}
.hero__stats {
  display: flex; gap: 0; margin-bottom: 36px;
  border: 1px solid rgba(255,255,255,.1);
  border-top: 1px solid rgba(212,165,84,.22);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden; max-width: 400px;
}
.hero__stat { flex: 1; padding: 16px 20px; position: relative; }
.hero__stat + .hero__stat::before {
  content: ''; position: absolute; left: 0; top: 18%; height: 64%;
  width: 1px; background: rgba(255,255,255,.1);
}
.hero__stat-num {
  font-size: 1.75rem; font-weight: 900; color: #fff;
  line-height: 1; letter-spacing: -0.045em; margin-bottom: 4px;
}
.hero__stat-num em { font-style: normal; color: var(--gold-mid); }
.hero__stat-label { font-size: 0.625rem; color: rgba(255,255,255,.38); font-weight: 600; line-height: 1.45; text-transform: uppercase; letter-spacing: 0.05em; }
.hero__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ─── HERO SCORE CARD ────────────────────────────────────────── */
.hero-score-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: 22px 20px 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.18), 0 1px 4px rgba(0,0,0,.12);
  animation: scoreCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.hero-score-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 4%, rgba(212,165,84,.55) 28%, var(--gold-mid) 50%, rgba(212,165,84,.55) 72%, transparent 96%);
}
.hero-score-card::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle at 100% 100%, rgba(11,114,133,.22) 0%, transparent 65%);
  pointer-events: none;
}
.hero-score__eyebrow {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 14px;
  opacity: 0.85;
}
.hero-score__chart-wrap {
  position: relative;
  width: 152px;
  height: 152px;
  margin: 0 auto 18px;
}
.hero-score__chart-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.hero-score__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.hero-score__pct {
  font-size: 2rem; font-weight: 900; color: white;
  letter-spacing: -0.045em; line-height: 1;
}
.hero-score__pct-sub {
  font-size: 0.5625rem; color: rgba(255,255,255,.32);
  font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  margin-top: 4px;
}
.hero-score__legend {
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 14px;
}
.hero-score__item {
  display: flex; align-items: center; gap: 8px;
}
.hero-score__item-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.hero-score__item-label {
  font-size: 0.6875rem; color: rgba(255,255,255,.48);
  flex: 1; white-space: nowrap;
}
.hero-score__item-bar-wrap {
  width: 48px; height: 2.5px;
  background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden;
  flex-shrink: 0;
}
.hero-score__item-bar { height: 100%; border-radius: 99px; }
.hero-score__item-count {
  font-size: 0.75rem; font-weight: 700;
  color: rgba(255,255,255,.78);
  min-width: 16px; text-align: right;
}
.hero-score__footer {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 0.5875rem; color: rgba(255,255,255,.25);
  text-align: center; letter-spacing: 0.03em;
  position: relative; z-index: 1;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 600; transition: all var(--t);
  white-space: nowrap; cursor: pointer;
}
.btn--primary { background: var(--gold-mid); color: var(--navy); }
.btn--primary:hover { background: var(--gold); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(160,120,40,.35); }
.btn--ghost { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.12); }
.btn--ghost:hover { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 4px 16px rgba(0,0,0,.16); }
.btn--outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary-border); }
.btn--outline:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(11,114,133,.12); }
.btn--sm { padding: 7px 14px; font-size: 0.8125rem; }
.btn--danger { background: var(--failed); color: white; }
.btn--danger:hover { background: #B91C1C; }
.btn--success { background: var(--done); color: white; }

/* ─── SUMMARY STRIP ──────────────────────────────────────────── */
.summary {
  background: var(--white);
  border-bottom: 1px solid var(--border-2);
  padding: 20px 0;
}
.summary__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.summary__total { flex-shrink: 0; }
.summary__total-num { font-size: 1.5rem; font-weight: 900; color: var(--primary); letter-spacing: -0.04em; line-height: 1; }
.summary__total-label { font-size: 0.6875rem; color: var(--text-4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.summary__divider { width: 1px; height: 36px; background: var(--border-2); flex-shrink: 0; }
.summary__statuses { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.summary__item { display: flex; align-items: center; gap: 7px; }
.summary__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.summary__count { font-size: 1.125rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.summary__desc { font-size: 0.75rem; color: var(--text-4); font-weight: 500; }
.summary__bar { flex: 1; min-width: 180px; }
.summary__bar-label { font-size: 0.6875rem; color: var(--text-4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.summary__bar-track { height: 5px; background: var(--border-3); border-radius: 99px; overflow: hidden; display: flex; gap: 1.5px; animation: barReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both; }
.summary__bar-seg { height: 100%; border-radius: 99px; min-width: 3px; }
.summary__score { flex-shrink: 0; text-align: right; }
.summary__score-num { font-size: 1.5rem; font-weight: 900; color: var(--primary); letter-spacing: -0.04em; line-height: 1; }
.summary__score-label { font-size: 0.6875rem; color: var(--text-4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

/* ─── FILTER BLOCK ───────────────────────────────────────────── */
.filters-wrap {
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 20px;
}
.filters-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-search {
  position: relative; flex: 1; min-width: 200px;
}
.filter-search__icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-4); pointer-events: none; display: flex;
}
.filter-search input {
  width: 100%; padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: 0.875rem; color: var(--text);
  background: var(--surface-2); outline: none;
  transition: border var(--t), box-shadow var(--t), background var(--t);
}
.filter-search input::placeholder { color: var(--text-4); }
.filter-search input:focus {
  border-color: var(--primary); background: var(--white);
  box-shadow: 0 0 0 3px rgba(11,114,133,.1);
}
select.filter-select {
  padding: 8px 32px 8px 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: 0.8125rem; color: var(--text-2);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg width='11' height='7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  appearance: none; outline: none; cursor: pointer;
  transition: border var(--t), box-shadow var(--t);
}
select.filter-select:focus {
  border-color: var(--primary); background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(11,114,133,.1);
}
.filter-label { font-size: 0.8125rem; color: var(--text-3); font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.filter-status-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.status-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--surface-2); color: var(--text-3);
  transition: all var(--t); cursor: pointer;
}
.status-btn:hover { border-color: var(--text-4); color: var(--text-2); }
.status-btn.active { font-weight: 600; }
.status-btn[data-status="all"].active   { background: var(--text); color: #fff; border-color: var(--text); }
.status-btn[data-status="done"].active  { background: var(--done-bg); color: var(--done); border-color: var(--done-border); }
.status-btn[data-status="partial"].active { background: var(--partial-bg); color: var(--partial); border-color: var(--partial-border); }
.status-btn[data-status="inprogress"].active { background: var(--inprogress-bg); color: var(--inprogress); border-color: var(--inprogress-border); }
.status-btn[data-status="failed"].active { background: var(--failed-bg); color: var(--failed); border-color: var(--failed-border); }
.status-btn[data-status="nodata"].active { background: var(--nodata-bg); color: var(--nodata); border-color: var(--nodata-border); }
.status-btn[data-status="worse"].active { background: var(--worse-bg); color: var(--worse); border-color: var(--worse-border); }
.filter-clear {
  font-size: 0.75rem; color: var(--text-4); font-weight: 500;
  padding: 5px 10px; border-radius: var(--r-sm);
  transition: color var(--t), background var(--t); cursor: pointer;
  margin-left: auto;
}
.filter-clear:hover { color: var(--primary); background: var(--primary-light); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.results-bar__count { font-size: 0.875rem; color: var(--text-3); }
.results-bar__count strong { color: var(--text); font-weight: 600; }

/* ─── BADGES ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 0.6875rem; font-weight: 700; border: 1px solid;
  white-space: nowrap; letter-spacing: 0.01em;
}
.badge--done    { color: var(--done);    background: var(--done-bg);    border-color: var(--done-border); }
.badge--partial { color: var(--partial); background: var(--partial-bg); border-color: var(--partial-border); }
.badge--inprogress { color: var(--inprogress); background: var(--inprogress-bg); border-color: var(--inprogress-border); }
.badge--failed  { color: var(--failed);  background: var(--failed-bg);  border-color: var(--failed-border); }
.badge--nodata  { color: var(--nodata);  background: var(--nodata-bg);  border-color: var(--nodata-border); }
.badge--worse   { color: var(--worse);   background: var(--worse-bg);   border-color: var(--worse-border); }
.badge-icon { font-size: 0.8125rem; line-height: 1; }

/* ─── CHIPS ──────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 0.6875rem; font-weight: 500;
  background: var(--surface-2); color: var(--text-3);
  border: 1px solid var(--border-2);
}

/* ─── SECTION HEADERS ────────────────────────────────────────── */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-header__left .overline { margin-bottom: 6px; }
.section-header__left h2 { margin-bottom: 4px; }
.section-header__left p { font-size: 0.9rem; }

/* ─── PARTY CARDS GRID ───────────────────────────────────────── */
.parties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(356px, 1fr));
  gap: 20px;
}

/* ── Card shell ── */
.party-card {
  background: linear-gradient(180deg, var(--white) 0%, #FAFCFE 100%);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-2);
  box-shadow: 0 1px 3px rgba(10,25,41,.05), 0 1px 2px rgba(10,25,41,.03);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.party-card:hover {
  box-shadow: 0 12px 36px rgba(10,25,41,.1), 0 4px 10px rgba(10,25,41,.06);
  transform: translateY(-3px);
  border-color: var(--border);
}
.party-card--inactive { opacity: 0.78; }
.party-card--inactive:hover { opacity: 1; }

/* ── Top accent bar ── */
.party-card__accent {
  height: 5px; flex-shrink: 0;
  background: linear-gradient(90deg,
    var(--party-color, var(--primary)) 0%,
    var(--party-color, var(--primary)) 58%,
    rgba(212,165,84,.45) 82%, transparent 100%);
  position: relative;
  transition: filter 0.22s ease;
}
.party-card:hover .party-card__accent {
  filter: brightness(1.07) saturate(1.08);
}
.party-card__accent::after {
  content: ''; position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%;
  background: rgba(212,165,84,.5); box-shadow: 0 0 0 3px rgba(212,165,84,.12);
}

/* ── Body ── */
.party-card__body { padding: 20px 22px 0; display: flex; flex-direction: column; flex: 1; }

/* ── Header row ── */
.party-card__head {
  display: flex; align-items: flex-start; gap: 13px; margin-bottom: 12px;
}
.party-card__initial {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.0625rem; font-weight: 900; letter-spacing: -0.03em; color: white;
  background: var(--party-color, var(--primary));
  box-shadow: 0 3px 10px rgba(0,0,0,.14);
  transition: box-shadow 0.24s ease;
}
.party-card:hover .party-card__initial {
  box-shadow: 0 4px 16px rgba(0,0,0,.2), 0 0 0 3px var(--party-color-light, var(--primary-light));
}
.party-card__initial--logo {
  background: white;
  padding: 4px;
}
.party-card__logo {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.party-card__titles { flex: 1; min-width: 0; padding-top: 1px; }
.party-card__name {
  font-size: 1.0625rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 3px;
}
.party-card__ideology {
  font-size: 0.6875rem; color: var(--text-4); font-weight: 500; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.party-card__seats { flex-shrink: 0; text-align: right; padding-top: 1px; }
.party-card__seats-num {
  font-size: 1.5rem; font-weight: 900; letter-spacing: -0.045em; line-height: 1;
  color: var(--party-color, var(--primary));
}
.party-card__seats-label {
  font-size: 0.5875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.055em; color: var(--text-4); margin-top: 1px;
}
.party-card__seats--none .party-card__seats-num {
  color: var(--nodata); font-size: 1.125rem; letter-spacing: 0;
}

/* ── Description ── */
.party-card__desc {
  font-size: 0.8125rem; color: var(--text-3); line-height: 1.68;
  margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Metrics row ── */
.party-card__metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
  margin-bottom: 16px;
}
.party-card__metric {
  padding: 11px 10px; border-radius: var(--r-sm);
  text-align: center; border: 1px solid var(--border-3);
  background: var(--surface-2);
}
.party-card__metric--done {
  background: var(--done-bg); border-color: var(--done-border);
}
.party-card__metric--failed {
  background: var(--failed-bg); border-color: var(--failed-border);
}
.party-card__metric--score {
  background: var(--primary-light); border-color: var(--primary-border);
}
.party-card__metric-val {
  font-size: 1.375rem; font-weight: 900; letter-spacing: -0.04em;
  color: var(--text-2); line-height: 1; margin-bottom: 4px;
}
.party-card__metric-val.done   { color: var(--done); }
.party-card__metric-val.failed { color: var(--failed); }
.party-card__metric-val.score  { color: var(--primary); }
.party-card__metric-unit {
  font-size: 0.875rem; font-weight: 700; letter-spacing: -0.02em;
}
.party-card__metric-label {
  font-size: 0.5625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-4);
}

/* ── Deputy sub-metrics (эфф. депутата / нагрузка) ── */
.party-card__submetrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
  margin-top: -8px; margin-bottom: 16px;
}
.party-card__submetric {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  min-height: 54px; padding: 9px 8px; text-align: center;
  border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border-3);
  cursor: default;
}
.party-card__submetric-val {
  font-size: 1.125rem; font-weight: 900; letter-spacing: -0.03em;
  color: var(--primary); line-height: 1;
}
.party-card__submetric-label {
  font-size: 0.5625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-4); line-height: 1.2;
}

/* ── Progress bar ── */
.party-card__bar-wrap { margin-bottom: 14px; }
.party-card__bar-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 7px;
}
.party-card__bar-head span {
  font-size: 0.6875rem; color: var(--text-4); font-weight: 500;
}
.party-card__bar-total {
  font-size: 0.625rem !important; font-weight: 700 !important;
  color: var(--text-4) !important;
  background: var(--surface-3); border: 1px solid var(--border-3);
  padding: 1px 7px; border-radius: 20px;
}
.party-card__bar {
  height: 7px; background: var(--surface-3); border-radius: 99px;
  overflow: hidden; display: flex; gap: 1.5px;
}
.party-card__bar-seg { height: 100%; border-radius: 99px; min-width: 4px; }
.party-card__bar-seg--done    { background: var(--done); }
.party-card__bar-seg--partial { background: var(--partial); }
.party-card__bar-seg--inprogress { background: var(--inprogress); }
.party-card__bar-seg--failed  { background: var(--failed); }
.party-card__bar-seg--nodata  { background: var(--nodata); }
.party-card__bar-seg--worse   { background: var(--worse); }

/* ── Legend ── */
.party-card__bar-legend {
  display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 9px;
}
.party-card__bar-item {
  display: flex; align-items: center; gap: 5px;
}
.party-card__bar-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; display: inline-block;
}
.party-card__bar-item-label {
  font-size: 0.6875rem; color: var(--text-4); font-weight: 400;
}
.party-card__bar-item-count {
  font-size: 0.6875rem; font-weight: 700; color: var(--text-3);
}

/* ── Topic chips ── */
.party-card__topics {
  display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 18px; margin-top: auto; padding-top: 4px;
}

/* ── Footer ── */
.party-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 22px 14px;
  border-top: 1px solid var(--border-3);
}
.party-card__no-seat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.6875rem; color: var(--text-4); font-weight: 500;
}
.party-card__seats-mini {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.6875rem; color: var(--text-4); font-weight: 500;
}
.party-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; font-weight: 600; color: var(--primary);
  padding: 6px 12px; border-radius: var(--r-sm);
  border: 1.5px solid var(--primary-border);
  background: var(--primary-light);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, gap 0.18s ease;
  margin-left: auto;
}
.party-card__link:hover {
  background: var(--primary); color: white;
  border-color: var(--primary); gap: 9px;
}
.party-card__link svg { transition: transform 0.18s ease; flex-shrink: 0; }
.party-card__link:hover svg { transform: translateX(2px); }

/* ─── PROMISE CARDS ──────────────────────────────────────────── */
.promises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 14px;
}
.promise-card {
  background: linear-gradient(180deg, var(--white) 0%, #FAFBFD 100%);
  border-radius: var(--r);
  border: 1px solid var(--border-2);
  box-shadow: var(--sh-xs);
  padding: 22px 24px 20px;
  display: flex; flex-direction: column; gap: 11px;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  position: relative; overflow: hidden;
  cursor: pointer;
}
/* 2px top accent — grows to 3px on hover */
.promise-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    var(--status-color, var(--border)) 0%,
    transparent 54%);
  pointer-events: none; z-index: 1;
  transition: height 0.18s ease;
}
.promise-card:hover {
  box-shadow: var(--sh-sm), 0 0 0 2px color-mix(in srgb, var(--status-color, var(--border)) 14%, transparent);
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--status-color, var(--border)) 30%, var(--border-2));
}
.promise-card:hover::before { height: 3px; }
.promise-card[data-status="done"]    { --status-color: var(--done); }
.promise-card[data-status="partial"] { --status-color: var(--partial); }
.promise-card[data-status="inprogress"] { --status-color: var(--inprogress); }
.promise-card[data-status="failed"]  { --status-color: var(--failed); }
.promise-card[data-status="nodata"]  { --status-color: var(--nodata); }
.promise-card[data-status="worse"]   { --status-color: var(--worse); }

/* Meta row: party name (left / context first) → badge (right / status second) */
.promise-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-direction: row-reverse;
}
.promise-card__party {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.6875rem; font-weight: 500; color: var(--text-3);
  flex-shrink: 0; letter-spacing: 0.01em;
}
.promise-card__party-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.promise-card__title {
  font-size: 0.9375rem; font-weight: 700; color: var(--text);
  line-height: 1.46; letter-spacing: -0.012em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.promise-card__hint {
  font-size: 0.75rem; color: var(--text-3); line-height: 1.62;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.promise-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--border-3); margin-top: auto;
}
.promise-card__chip { flex-shrink: 0; }
.promise-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; font-weight: 600; color: var(--primary);
  padding: 5px 13px; border-radius: 20px;
  background: transparent; border: 1.5px solid var(--primary-border);
  transition: background var(--t), color var(--t), border-color var(--t), gap var(--t);
  white-space: nowrap; flex-shrink: 0;
}
.promise-card__link:hover {
  background: var(--primary); color: white; border-color: var(--primary); gap: 9px;
}
.promise-card__link svg { transition: transform var(--t); flex-shrink: 0; }
.promise-card__link:hover svg { transform: translateX(2px); }
.no-results {
  grid-column: 1 / -1; text-align: center; padding: 56px 24px; color: var(--text-3);
}
.no-results__icon { display: flex; justify-content: center; margin-bottom: 12px; }
.no-results h3 { margin-bottom: 6px; color: var(--text-2); }
.no-results p { font-size: 0.875rem; }

/* ─── METHODOLOGY TEASER ─────────────────────────────────────── */
.method-teaser {
  background: var(--navy); border-radius: var(--r-2xl);
  padding: 44px 48px; display: flex; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
  border: 1px solid rgba(160,120,40,.15);
}
.method-teaser::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(11,114,133,.18) 0%, transparent 70%);
}
.method-teaser::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(160,120,40,.4) 30%, rgba(212,165,84,.6) 50%, rgba(160,120,40,.4) 70%, transparent 95%);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}
.method-teaser__content { flex: 1; position: relative; z-index: 1; }
.method-teaser__eyebrow { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-mid); margin-bottom: 10px; }
.method-teaser h2 { color: white; margin-bottom: 10px; font-size: clamp(1.25rem,2.5vw,1.625rem); }
.method-teaser p { color: rgba(255,255,255,.52); line-height: 1.72; max-width: 420px; font-size: 0.9rem; }
.method-teaser__action { margin-top: 22px; }
.method-teaser__statuses {
  flex-shrink: 0; min-width: 230px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; z-index: 1;
}
.method-teaser__status-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-sm);
}
.method-teaser__status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.method-teaser__status-text { font-size: 0.8125rem; font-weight: 500; color: rgba(255,255,255,.8); }

/* ─── PAGE HEADER (inner pages) ──────────────────────────────── */
.page-header {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 44px 0;
}
.page-header__breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: rgba(255,255,255,.38); margin-bottom: 18px;
}
.page-header__breadcrumb a { color: rgba(255,255,255,.38); transition: color var(--t); }
.page-header__breadcrumb a:hover { color: rgba(255,255,255,.75); }
.page-header__breadcrumb-sep { color: rgba(255,255,255,.22); }
.page-header__badge {
  width: 52px; height: 52px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 900; color: white; flex-shrink: 0; letter-spacing: -0.03em;
}
.page-header__badge--logo {
  background: white;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.party-page__logo {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.page-header h1 { color: white; font-size: clamp(1.375rem,3.5vw,2.125rem); }
.page-header__meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.page-header__meta-item { font-size: 0.8125rem; color: rgba(255,255,255,.48); }
.page-header__meta-item strong { color: rgba(255,255,255,.85); font-weight: 600; }
.page-header__meta-sep { color: rgba(255,255,255,.2); }

/* ─── PARTY OVERVIEW LAYOUT ──────────────────────────────────── */
.party-overview { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.party-stats-card {
  background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--border-2);
  padding: 20px; box-shadow: var(--sh-sm);
}
.party-stats-card__title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-4); margin-bottom: 14px; }
.party-stats-list { display: flex; flex-direction: column; gap: 8px; }
.party-stats-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 11px; border-radius: var(--r-sm); border: 1px solid var(--border-2);
}
.party-stats-item__left { display: flex; align-items: center; gap: 8px; }
.party-stats-item__dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.party-stats-item__label { font-size: 0.8125rem; color: var(--text-2); }
.party-stats-item__count { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.03em; }
.content-card {
  background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--border-2);
  padding: 24px; box-shadow: var(--sh-sm); margin-bottom: 20px;
}
.content-card__title { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-4); margin-bottom: 10px; }
.content-card p { font-size: 0.9rem; line-height: 1.75; }

/* ─── PROMISE DETAIL LAYOUT ──────────────────────────────────── */
.promise-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.detail-card {
  background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--border-2);
  padding: 24px; box-shadow: var(--sh-sm); margin-bottom: 16px;
}
.detail-card__label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-4); margin-bottom: 10px; }
.detail-card__value { font-size: 0.9rem; color: var(--text-2); line-height: 1.75; }
.detail-card__value--pre { white-space: pre-line; }
.detail-card__metric {
  font-size: 0.875rem; color: var(--text); font-weight: 500;
  padding: 12px 16px; background: var(--primary-light);
  border-radius: var(--r-sm); border-left: 3px solid var(--primary); line-height: 1.6;
}
.sources-list { display: flex; flex-direction: column; gap: 7px; }
.source-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; color: var(--primary);
  padding: 8px 12px; background: var(--primary-light);
  border-radius: var(--r-sm); transition: background var(--t);
}
.source-item:hover { background: var(--primary-border); }
.sidebar-card {
  background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--border-2);
  padding: 18px; box-shadow: var(--sh-sm); margin-bottom: 14px;
}
.sidebar-card__label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-4); margin-bottom: 10px; }
.status-header {
  background: var(--white); border: 1px solid var(--border-2); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--sh-sm); margin-bottom: 14px;
}
.status-header__label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-4); margin-bottom: 10px; }
.status-header__date { font-size: 0.75rem; color: var(--text-4); margin-top: 8px; }

/* ─── METHODOLOGY PAGE ───────────────────────────────────────── */
.method-hero { background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%); padding: 56px 0; }
.method-hero h1 { color: white; }
.method-hero p { color: rgba(255,255,255,.52); max-width: 500px; margin-top: 12px; font-size: 1rem; line-height: 1.75; }
.method-section { margin-bottom: 48px; }
.method-section__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: var(--primary); color: white;
  border-radius: 50%; font-size: 0.8125rem; font-weight: 700; margin-bottom: 14px;
}
.method-section h2 { margin-bottom: 10px; }
.method-section p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 10px; }
.method-list { padding-left: 0; display: flex; flex-direction: column; gap: 9px; margin: 14px 0; }
.method-list li { display: flex; gap: 11px; font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }
.method-list li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 9px;
}
.status-definitions { display: flex; flex-direction: column; gap: 10px; }
.status-def {
  display: flex; gap: 14px; padding: 14px 18px;
  border-radius: var(--r); border: 1px solid var(--border-2);
  background: var(--white); align-items: flex-start;
}
.status-def__badge { flex-shrink: 0; margin-top: 2px; }
.status-def__content h4 { margin-bottom: 3px; font-size: 0.875rem; }
.status-def__content p { font-size: 0.8125rem; line-height: 1.65; color: var(--text-2); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--navy); color: rgba(255,255,255,.45);
  padding: 48px 0 32px; margin-top: 80px;
}
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer__logo { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.footer__logo-mark {
  width: 28px; height: 28px; background: none; border-radius: 0;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer__logo-text { font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,.85); letter-spacing: -0.02em; }
.footer__desc { font-size: 0.8125rem; line-height: 1.72; max-width: 280px; }
.footer__col-title { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 9px; }
.footer__link { font-size: 0.8125rem; color: rgba(255,255,255,.45); transition: color var(--t); }
.footer__link:hover { color: rgba(255,255,255,.85); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
.footer__copy { font-size: 0.75rem; }
.footer__disclaimer { font-size: 0.6875rem; color: rgba(255,255,255,.28); max-width: 380px; text-align: right; }

/* ─── ADMIN PANEL ────────────────────────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar {
  width: 240px; flex-shrink: 0; background: var(--navy);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar__logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-sidebar__logo-top { display: flex; align-items: center; gap: 8px; }
.admin-sidebar__logo-mark {
  width: 28px; height: 28px;
  background: linear-gradient(140deg, var(--primary) 0%, var(--navy-surface) 100%);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 12px; font-weight: 900;
}
.admin-sidebar__logo-name { font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: -0.02em; }
.admin-sidebar__logo-tag {
  display: inline-block; margin-top: 6px;
  background: rgba(160,120,40,.18); border: 1px solid rgba(160,120,40,.25);
  color: var(--gold-mid); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 10px;
}
.admin-sidebar__nav { padding: 12px 10px; flex: 1; }
.admin-sidebar__section-label {
  font-size: 0.5875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,.25); padding: 8px 10px 4px; margin-top: 8px;
}
.admin-sidebar__link {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border-radius: var(--r-sm); font-size: 0.8125rem; font-weight: 500;
  color: rgba(255,255,255,.5); transition: all var(--t); cursor: pointer; border: none;
  background: none; width: 100%; text-align: left;
}
.admin-sidebar__link:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.06); }
.admin-sidebar__link.active { color: white; background: rgba(11,114,133,.35); font-weight: 600; }
.admin-sidebar__link svg { flex-shrink: 0; opacity: 0.7; }
.admin-sidebar__link.active svg { opacity: 1; }
.admin-sidebar__user {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 9px;
}
.admin-sidebar__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy-surface) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.8125rem; font-weight: 700; flex-shrink: 0;
}
.admin-sidebar__user-name { font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,.75); }
.admin-sidebar__user-role { font-size: 0.6875rem; color: rgba(255,255,255,.35); }
.admin-sidebar__public-link {
  display: flex; align-items: center; gap: 6px; font-size: 0.75rem;
  color: rgba(255,255,255,.35); padding: 0 16px 14px; transition: color var(--t);
}
.admin-sidebar__public-link:hover { color: var(--gold-mid); }

/* Admin main area */
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--border-2);
  padding: 0 28px; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar__title { font-size: 0.9375rem; font-weight: 700; color: var(--text); letter-spacing: -0.015em; }
.admin-topbar__breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--text-4);
}
.admin-topbar__breadcrumb span { color: var(--text-2); font-weight: 500; }
.admin-topbar__actions { display: flex; align-items: center; gap: 8px; }
.admin-content { padding: 24px 28px; flex: 1; }

/* Admin dashboard */
.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 24px; }
.admin-stat-card {
  background: var(--white); border: 1px solid var(--border-2);
  border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh-xs);
}
.admin-stat-card__label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-4); margin-bottom: 6px; }
.admin-stat-card__val { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.admin-stat-card__sub { font-size: 0.75rem; color: var(--text-4); margin-top: 4px; }

/* Admin table */
.admin-table-wrap {
  background: var(--white); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden;
}
.admin-table-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-2); gap: 12px; flex-wrap: wrap;
}
.admin-table-head h3 { font-size: 0.9375rem; font-weight: 700; }
.admin-table-search {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.admin-table-search input {
  padding: 7px 12px; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); font-size: 0.8125rem; outline: none;
  background: var(--surface-2); color: var(--text); width: 220px;
  transition: border var(--t), box-shadow var(--t);
}
.admin-table-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,114,133,.1); }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th {
  text-align: left; padding: 10px 16px;
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-4); border-bottom: 1px solid var(--border-2);
  background: var(--surface-2); white-space: nowrap;
}
table.admin-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border-3);
  font-size: 0.8125rem; color: var(--text-2); vertical-align: middle;
}
table.admin-table tbody tr:hover { background: var(--surface-2); }
table.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table__title { font-weight: 600; color: var(--text); max-width: 260px; }
.admin-table__actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.admin-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: var(--r-xs);
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  border: 1px solid; transition: all var(--t);
}
.admin-btn--edit   { color: var(--primary); border-color: var(--primary-border); background: var(--primary-light); }
.admin-btn--edit:hover   { background: var(--primary-border); }
.admin-btn--delete { color: var(--failed); border-color: var(--failed-border); background: var(--failed-bg); }
.admin-btn--delete:hover { background: var(--failed-border); }
.admin-status-select {
  padding: 4px 26px 4px 8px; border-radius: 20px;
  font-size: 0.6875rem; font-weight: 700;
  border: 1px solid; cursor: pointer; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239CA3AF' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  transition: all var(--t);
}
.admin-status-select.done    { color: var(--done); background-color: var(--done-bg); border-color: var(--done-border); }
.admin-status-select.partial { color: var(--partial); background-color: var(--partial-bg); border-color: var(--partial-border); }
.admin-status-select.inprogress { color: var(--inprogress); background-color: var(--inprogress-bg); border-color: var(--inprogress-border); }
.admin-status-select.failed  { color: var(--failed); background-color: var(--failed-bg); border-color: var(--failed-border); }
.admin-status-select.nodata  { color: var(--nodata); background-color: var(--nodata-bg); border-color: var(--nodata-border); }
.admin-status-select.worse   { color: var(--worse); background-color: var(--worse-bg); border-color: var(--worse-border); }
.admin-empty {
  padding: 48px 20px; text-align: center; color: var(--text-3);
  font-size: 0.875rem;
}

/* Admin form panel (slide-in) */
.admin-panel-overlay {
  position: fixed; inset: 0; background: rgba(10,25,41,.5); z-index: 200;
  backdrop-filter: blur(2px); display: none;
}
.admin-panel-overlay.open { display: block; }
.admin-panel {
  position: fixed; right: 0; top: 0; bottom: 0; width: 480px; max-width: 100%;
  background: var(--white); z-index: 201; box-shadow: var(--sh-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--t-slow);
}
.admin-panel.open { transform: translateX(0); }
.admin-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border-2);
  flex-shrink: 0;
}
.admin-panel__title { font-size: 1rem; font-weight: 700; color: var(--text); }
.admin-panel__close {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 1.125rem; cursor: pointer;
  transition: background var(--t), color var(--t); background: none; border: none;
}
.admin-panel__close:hover { background: var(--surface-2); color: var(--text); }
.admin-panel__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.admin-panel__footer {
  padding: 16px 24px; border-top: 1px solid var(--border-2);
  display: flex; gap: 10px; justify-content: flex-end; flex-shrink: 0;
}

/* Form elements */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.form-label sup { color: var(--failed); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: 0.875rem; color: var(--text); background: var(--white);
  outline: none; transition: border var(--t), box-shadow var(--t);
}
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,114,133,.1);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='11' height='7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; cursor: pointer;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-divider { border: none; border-top: 1px solid var(--border-2); margin: 18px 0; }
.form-section-title { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-4); margin-bottom: 10px; }

/* Toast notifications */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--r); box-shadow: var(--sh-md);
  font-size: 0.875rem; font-weight: 500; color: white;
  animation: toastIn 0.28s var(--t-slow) both;
  pointer-events: auto; max-width: 320px;
}
.toast--success { background: var(--done); }
.toast--error   { background: var(--failed); }
.toast--info    { background: var(--primary); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Delete modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,25,41,.55); z-index: 250;
  backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--sh-lg); max-width: 400px; width: calc(100% - 32px);
  animation: modalIn 0.22s ease both;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-box h3 { margin-bottom: 8px; }
.modal-box p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; margin-bottom: 20px; }
.modal-box__actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-box--wide { max-width: 620px; overflow-y: auto; max-height: 92vh; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h3 { margin: 0; font-size: 1.05rem; }
.modal-close {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: transparent; color: var(--text-3);
  border: none; cursor: pointer; transition: background var(--t), color var(--t);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.form-error { color: var(--failed); font-size: 0.8125rem; line-height: 1.5; }
.source-row { margin-bottom: 8px; }
.source-row-inner { display: flex; gap: 8px; align-items: center; }
.source-row-inner input { flex: 1; }
.source-row-inner input:last-of-type { flex: 2; }
.admin-add-btn { display: none; }
.admin-add-btn.visible { display: inline-flex; }

/* Pencil edit button (admin mode) */
.edit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--r-sm); flex-shrink: 0;
  border: 1.5px solid var(--border); background: transparent; color: var(--text-3);
  cursor: pointer; transition: color var(--t), border-color var(--t), background var(--t);
}
.edit-btn:hover { color: var(--primary); border-color: var(--primary-border); background: var(--primary-light); }

/* ─── HERO · KOSHKAR-MUIZ ACCENT ────────────────────────────── */
.hero__koshkar-accent {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
  opacity: 0.21;
  white-space: nowrap;
}
.hero__koshkar-svg {
  display: block;
  width: 320px;
  height: 28px;
  color: var(--gold-mid);
}

/* ─── HERO · ANALYTICAL DATA CANVAS ─────────────────────────── */
.hero__data-canvas {
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  width: 52%;
  height: 120%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.38;
}
.hero__data-canvas svg {
  width: 100%;
  height: 100%;
}

/* ─── SECTION ORNAMENT DIVIDERS ──────────────────────────────── */
.ornament-div {
  padding: 5px 0;
  position: relative;
  z-index: 1;
}
.ornament-div__inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.ornament-div__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border));
  opacity: 0.52;
}
.ornament-div__line--r {
  background: linear-gradient(90deg, var(--gold-border), transparent);
}
.ornament-div__motif {
  width: 116px;
  height: 24px;
  color: var(--gold);
  opacity: 0.44;
  flex-shrink: 0;
  overflow: visible;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.07s; }
.reveal-delay-2 { transition-delay: 0.14s; }
.reveal-delay-3 { transition-delay: 0.21s; }
.reveal-delay-4 { transition-delay: 0.28s; }

/* ─── KEYFRAMES ──────────────────────────────────────────────── */
@keyframes scoreCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes barReveal {
  from { clip-path: inset(0 100% 0 0 round 99px); }
  to   { clip-path: inset(0 0% 0 0 round 99px); }
}

/* ─── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── UTILITIES ──────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__visual { display: none; }
  .hero h1 { font-size: clamp(1.875rem, 5vw, 2.75rem); }
  .hero__stats { max-width: 480px; }
  .hero__data-canvas { display: none; }
}
@media (max-width: 900px) {
  .party-overview { grid-template-columns: 1fr; }
  .promise-layout { grid-template-columns: 1fr; }
  .promises-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .method-teaser { flex-direction: column; }
  .method-teaser__statuses { min-width: auto; width: 100%; }
}
@media (max-width: 768px) {
  .container, .container--mid, .container--narrow { padding: 0 16px; }
  .section { padding: 48px 0; }
  .hero { padding: 52px 0 44px; }
  .hero__stats { max-width: 100%; flex-direction: row; }
  .hero__koshkar-accent { opacity: 0.13; }
  .hero__koshkar-svg { width: 240px; }
  .ornament-div__motif { width: 80px; }
  .parties-grid, .promises-grid { grid-template-columns: 1fr; }
  .party-card__body { padding: 16px 18px 0; }
  .party-card__footer { padding: 12px 18px 13px; }
  .party-card__metrics { gap: 6px; }
  .party-card__metric { padding: 10px 8px; }
  .party-card__metric-val { font-size: 1.25rem; }
  .filters-wrap { padding: 14px; }
  .filters-row { flex-direction: column; align-items: stretch; }
  .filter-search { min-width: auto; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__disclaimer { text-align: left; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__right .nav__cta { display: none; }
  .nav__right .nav__divider { display: none; }
  .nav__right .lang-switcher { display: none; }
  .summary__inner { gap: 14px; }
  .method-teaser { padding: 24px 20px; }
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-panel { width: 100%; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.625rem; }
  .hero__stats { flex-direction: column; }
  .hero__stat + .hero__stat::before { display: none; }
  .status-btns { gap: 4px; }
  .status-btn { padding: 4px 9px; font-size: 0.6875rem; }
  h2 { font-size: 1.2rem; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .hero__koshkar-accent { display: none; }
  .ornament-div__inner { padding: 0 16px; }
}

/* Mobile nav overlay */
.nav__mobile {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(10,25,41,.75); backdrop-filter: blur(4px);
}
.nav__mobile.open { display: flex; flex-direction: column; }
.nav__mobile-panel {
  background: var(--white); padding: 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.nav__mobile-close {
  align-self: flex-end; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); background: var(--surface-2);
  margin-bottom: 6px; font-size: 1.125rem; color: var(--text-2);
  cursor: pointer; border: none;
}
.nav__mobile-link {
  display: block; padding: 11px 14px;
  border-radius: var(--r-sm); font-size: 0.9375rem; font-weight: 500;
  color: var(--text-2); transition: background var(--t), color var(--t);
}
.nav__mobile-link:hover, .nav__mobile-link.active { background: var(--primary-light); color: var(--primary); }

/* ─── LANGUAGE SWITCHER ──────────────────────────────────────── */
.lang-switcher {
  display: flex; align-items: center;
  background: var(--surface-2); border-radius: 20px;
  padding: 2px; border: 1px solid var(--border);
  cursor: pointer; flex-shrink: 0;
  min-width: 64px; height: 30px;
}
.lang-switcher [data-lang-opt] {
  padding: 3px 10px; border-radius: 16px;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--text-3); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease; user-select: none;
  white-space: nowrap; line-height: 1;
}
.lang-switcher [data-lang-opt]:hover { color: var(--text); }
.lang-switcher__opt--active { background: var(--primary) !important; color: white !important; }
.lang-switcher--mobile {
  width: 100%; margin-bottom: 8px; margin-top: 4px;
  justify-content: stretch; height: 38px;
}
.lang-switcher--mobile [data-lang-opt] { flex: 1; text-align: center; padding: 6px 10px; font-size: 0.8125rem; }

/* ─── BILINGUAL CONTENT VISIBILITY ───────────────────────────── */
.lang-kk { display: none; }
[data-lang="kk"] .lang-ru { display: none; }
[data-lang="kk"] .lang-kk { display: revert; }

/* ─── "Показать все" под сеткой обещаний ─────────────────────── */
.promises-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.promises-more:empty { display: none; }
.promises-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  padding: 12px 26px;
}
.promises-more__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
}
.promises-more__hint {
  color: var(--text-4);
  font-weight: 500;
  font-size: 0.8125rem;
}
[data-lang="kk"] .promises-more__hint { display: none; }

/* ─── Плашка «Режим редактирования» ──────────────────────────── */
.edit-mode-bar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy, #0f2233);
  color: #fff;
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.edit-mode-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--done, #16a34a);
  box-shadow: 0 0 0 3px rgba(22,163,74,.25);
}
.edit-mode-bar__exit {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.edit-mode-bar__exit:hover { background: rgba(255,255,255,.3); }
@media (max-width: 600px) {
  .edit-mode-bar { bottom: 12px; left: 12px; right: 12px; justify-content: center; }
}
