/* ================================================================
   СТАЛКИНГУ.НЕТ — Design System
   Brand: Партия «Новые люди»
   Quality target: 11/10
   Approach: Mobile-first, semantic, accessible
   ================================================================ */

/* --- CSS Custom Properties --- */
:root {
  --brand-teal: #0AD1C9;
  --brand-teal-dark: #0BA8A3;
  --brand-teal-deep: #087C7F;
  --brand-teal-bg: #2FAFAC;
  --brand-teal-light: #E6FAF9;
  --accent-coral: #E64452;
  --accent-coral-dark: #C93A46;
  --accent-coral-light: #FDEDEF;

  --text-primary: #231F20;
  --text-secondary: #4A4A4A;
  --text-muted: #6B6B6B;
  --text-on-dark: #FFFFFF;
  --text-on-teal: #FFFFFF;

  --bg-white: #FFFFFF;
  --bg-light: #F8F8F8;
  --bg-dark: #087C7F;
  --border-light: #E9EBF1;
  --border-medium: #D1D5DB;

  --status-helped: #0AD1C9;
  --status-ongoing: #E64452;
  --status-info: #3B82F6;

  --section-gap: 64px;
  --section-gap-lg: 100px;
  --container-max: 1140px;
  --container-narrow: 780px;
  --container-padding: 20px;

  --font-family: "Avenir Next Cyr", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Fira Code", monospace;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-nav: 0 2px 20px rgba(0, 0, 0, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-teal-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-teal-deep);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: 36px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 28px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 22px;
  font-weight: 600;
}

h4 {
  font-size: 18px;
  font-weight: 600;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

.text-muted {
  color: var(--text-muted);
}

.text-teal {
  color: var(--brand-teal-dark);
}

.text-coral {
  color: var(--accent-coral);
}

.text-center {
  text-align: center;
}

strong, .text-bold {
  font-weight: 700;
}

.caption {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--brand-teal-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-gap) 0;
}

.section--light {
  background: var(--bg-light);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-on-dark);
}

.section--dark .text-muted {
  color: rgba(255, 255, 255, 0.7);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__header h2 {
  margin-bottom: 12px;
}

.section__header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.section--dark .section__header p {
  color: rgba(255, 255, 255, 0.8);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-normal);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-nav);
  padding: 10px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-on-dark);
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
  flex-shrink: 1;
  text-decoration: none;
}

.nav.scrolled .nav__logo {
  color: var(--text-primary);
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__logo-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 24px;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
  color: #FFFFFF;
}

.nav.scrolled .nav__link {
  color: var(--text-secondary);
}

.nav.scrolled .nav__link:hover,
.nav.scrolled .nav__link.active {
  color: var(--brand-teal-dark);
}

.nav__socials {
  display: none;
  align-items: center;
  gap: 12px;
}

.nav__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
}

.nav__social-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
}

.nav.scrolled .nav__social-link {
  color: var(--text-muted);
}

.nav.scrolled .nav__social-link:hover {
  color: var(--brand-teal-dark);
  background: var(--brand-teal-light);
}

.nav__inner .nav__cta {
  display: none;
}

/* Mobile menu toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  min-width: 28px;
  flex-shrink: 0;
  cursor: pointer;
  padding: 4px 0;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.nav.scrolled .nav__toggle span {
  background: var(--text-primary);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 124, 127, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.nav__mobile-menu.active {
  display: flex;
}

.nav__mobile-link {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition-fast);
}

.nav__mobile-link:hover {
  color: #FFFFFF;
}

.nav__mobile-socials {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav__mobile-socials a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  transition: color var(--transition-fast);
}

.nav__mobile-socials a:hover {
  color: #FFFFFF;
}

.nav__mobile-cta {
  margin-top: auto;
  padding-top: 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  line-height: 1.2;
}

.btn--primary {
  background: var(--accent-coral);
  color: var(--text-on-dark);
  border-color: var(--accent-coral);
}

.btn--primary:hover {
  background: var(--accent-coral-dark);
  border-color: var(--accent-coral-dark);
  color: var(--text-on-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230, 68, 82, 0.3);
}

.btn--secondary {
  background: var(--brand-teal-dark);
  color: var(--text-on-dark);
  border-color: var(--brand-teal-dark);
}

.btn--secondary:hover {
  background: var(--brand-teal-deep);
  border-color: var(--brand-teal-deep);
  color: var(--text-on-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(10, 209, 201, 0.3);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  color: var(--text-on-dark);
}

.btn--outline {
  background: transparent;
  color: var(--brand-teal-dark);
  border-color: var(--brand-teal-dark);
}

.btn--outline:hover {
  background: var(--brand-teal-dark);
  color: var(--text-on-dark);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 14px;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 18px;
}

.btn--block {
  width: 100%;
}

.btn--pulse {
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 68, 82, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(230, 68, 82, 0); }
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--brand-teal-deep) 0%, #065A5C 60%, #054546 100%);
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 60% 50% at 80% 30%, rgba(10,209,201,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-coral);
}

.hero h1 {
  color: var(--text-on-dark);
  font-size: 36px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
  justify-content: center;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--brand-teal);
  line-height: 1;
}

.hero__stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  max-width: 120px;
}

/* --- Stat Counters Section --- */
.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.counter-item {
  padding: 24px 16px;
}

.counter-item .stat-number {
  font-size: 40px;
}

/* --- Cards --- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__body > .mt-16 {
  margin-top: auto;
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Story card with status border */
.story-card {
  position: relative;
  padding-left: 4px;
}

.story-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.story-card--helped::before {
  background: var(--status-helped);
}

.story-card--ongoing::before {
  background: var(--status-ongoing);
}

.story-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.story-card__status--helped {
  background: var(--brand-teal-light);
  color: var(--brand-teal-deep);
}

.story-card__status--ongoing {
  background: var(--accent-coral-light);
  color: var(--accent-coral);
}

.story-card__status-icon {
  width: 14px;
  height: 14px;
}

.story-card__outcome {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 500;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.timeline__item {
  position: relative;
  padding-bottom: 40px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 3px solid var(--brand-teal);
  z-index: 1;
}

.timeline__item--rejected .timeline__dot {
  border-color: var(--accent-coral);
  background: var(--accent-coral-light);
}

.timeline__item--current .timeline__dot {
  border-color: var(--brand-teal);
  background: var(--brand-teal-light);
  box-shadow: 0 0 0 6px rgba(10, 209, 201, 0.15);
}

.timeline__date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline__stamp {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  background: var(--accent-coral-light);
  color: var(--accent-coral);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(230, 68, 82, 0.2);
  transform: rotate(-2deg);
}

/* --- Comparison Block (RU vs KZ) --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison__side {
  padding: 32px 24px;
  text-align: center;
}

.comparison__side--ru {
  background: #F3F4F6;
}

.comparison__side--kz {
  background: var(--brand-teal-light);
}

.comparison__flag {
  font-size: 32px;
  margin-bottom: 12px;
}
.comparison__flag img {
  width: 64px;
  height: 43px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}


.comparison__country {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.comparison__side--kz .comparison__country {
  color: var(--brand-teal-deep);
}

.comparison__value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}

.comparison__side--ru .comparison__value {
  color: var(--accent-coral);
}

.comparison__side--kz .comparison__value {
  color: var(--brand-teal-deep);
}

.comparison__desc {
  font-size: 14px;
  color: var(--text-muted);
}

.comparison__side--kz .comparison__desc {
  color: var(--brand-teal-dark);
}

/* --- Legal Vacuum Table --- */
.vacuum-table {
  width: 100%;
  border-collapse: collapse;
  display: none; /* hidden on mobile, show cards instead */
}

.vacuum-table th,
.vacuum-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--border-light);
}

.vacuum-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-light);
}

.vacuum-table .cross {
  color: var(--accent-coral);
  font-weight: 700;
  font-size: 18px;
}

/* Mobile: card view for legal vacuum */
.vacuum-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vacuum-card {
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  border-left: 3px solid var(--accent-coral);
}

.vacuum-card__article {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-teal-dark);
  margin-bottom: 4px;
}

.vacuum-card__covers {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.vacuum-card__problem {
  font-size: 15px;
  color: var(--text-primary);
}

.vacuum-card__problem::before {
  content: '\2717 ';
  color: var(--accent-coral);
  font-weight: 700;
}

/* --- Deputies / Authors --- */
.deputies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.deputy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.deputy__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--brand-teal);
  object-fit: cover;
  margin: 0 auto 12px;
  background: var(--bg-light);
}

.deputy__name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.deputy__role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex: 1;
}

.deputy__social {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--brand-teal-dark);
  font-weight: 500;
  margin-top: auto;
}

/* --- Partners --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: center;
}

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  min-height: 80px;
  transition: all var(--transition-normal);
}

.partner:hover {
  box-shadow: var(--shadow-sm);
}

.partner__logo {
  max-height: 40px;
  max-width: 120px;
  filter: grayscale(0.3);
  transition: filter var(--transition-normal);
}

.partner:hover .partner__logo {
  filter: grayscale(0);
}

.partner--kaspersky {
  grid-column: 1 / -1;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(135deg, #F0FDFC 0%, #E0F7F6 100%);
  border: 1px solid rgba(10, 209, 201, 0.15);
}

.partner--kaspersky .partner__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-teal-dark);
}

/* --- FAQ Accordion --- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion__item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.accordion__item.open {
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-teal);
}

.accordion__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.accordion__badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.accordion__badge--myth {
  background: var(--accent-coral-light);
  color: var(--accent-coral);
}

.accordion__arrow {
  flex-shrink: 0;
  margin-left: auto;
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
  color: var(--text-muted);
}

.accordion__item.open .accordion__arrow {
  transform: rotate(180deg);
  color: var(--brand-teal-dark);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion__content {
  padding: 0 20px 20px;
}

.accordion__fact-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--brand-teal-light);
  color: var(--brand-teal-deep);
  margin-bottom: 8px;
}

.accordion__content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Forms --- */
.form {
  max-width: 560px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(10, 209, 201, 0.1);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
}

.form__hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form__success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form__success.active {
  display: block;
}

.form__success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--brand-teal-dark);
}

/* --- Checklist (for help page) --- */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  font-size: 15px;
  line-height: 1.5;
}

.checklist__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-teal-light);
  color: var(--brand-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-size: 14px;
  font-weight: 700;
}

/* --- Steps (numbered) --- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: step-counter;
}

.step {
  display: flex;
  gap: 16px;
  counter-increment: step-counter;
}

.step__number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-teal);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-top: 2px;
}

.step__content h4 {
  margin-bottom: 4px;
}

.step__content p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* --- Pipeline visualization --- */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.pipeline__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  font-size: 15px;
  font-weight: 500;
}

.pipeline__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.pipeline__arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  padding: 2px 0;
}

/* --- Footer --- */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer__brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}

.footer__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 320px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--brand-teal);
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
  font-size: 14px;
  font-weight: 500;
}

.footer__social:hover {
  background: var(--brand-teal);
  color: var(--text-on-dark);
}

/* Footer socials — large variant for Горячева */
.footer__socials--large {
  flex-direction: column;
  gap: 10px;
}
.footer__social--lg {
  width: auto;
  height: auto;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}
.footer__social--lg svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.footer__social--lg:hover {
  background: var(--brand-teal);
  color: #fff;
}
.footer__socials-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- Pipeline v2 (Как работает проект) --- */
.pipeline-v2 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.pipeline-v2__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 200px;
  padding: 0 8px;
}

.pipeline-v2__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand-teal-light);
  color: var(--brand-teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.pipeline-v2__icon svg {
  width: 36px;
  height: 36px;
}

.pipeline-v2__step:hover .pipeline-v2__icon {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(10, 209, 201, 0.25);
}

.pipeline-v2__icon--accent {
  background: var(--accent-coral-light);
  color: var(--accent-coral);
}

.pipeline-v2__step:hover .pipeline-v2__icon--accent {
  box-shadow: 0 4px 20px rgba(230, 68, 82, 0.2);
}

.pipeline-v2__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pipeline-v2__desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.pipeline-v2__connector {
  display: flex;
  align-items: center;
  padding-top: 24px;
  color: var(--border-medium);
  flex-shrink: 0;
}

.pipeline-v2__connector svg {
  width: 28px;
  height: 28px;
}

/* Pipeline v2: mobile — vertical layout */
@media (max-width: 768px) {
  .pipeline-v2 {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .pipeline-v2__step {
    max-width: 100%;
    flex-direction: row;
    text-align: left;
    gap: 16px;
    padding: 12px 0;
  }
  .pipeline-v2__icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .pipeline-v2__icon svg {
    width: 28px;
    height: 28px;
  }
  .pipeline-v2__connector {
    padding-top: 0;
    transform: rotate(90deg);
  }
  .pipeline-v2__connector svg {
    width: 20px;
    height: 20px;
  }
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* --- Utility Classes --- */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.highlight {
  color: var(--brand-teal-dark);
  font-weight: 700;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-secondary);
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--brand-teal);
  border-radius: 2px;
  margin: 16px auto;
}

.quote {
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--brand-teal);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert--warning {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #92400E;
}

.alert--info {
  background: var(--brand-teal-light);
  border: 1px solid rgba(10, 209, 201, 0.2);
  color: var(--brand-teal-deep);
}

.inline-link {
  color: var(--brand-teal-dark);
  text-decoration: underline;
  text-decoration-color: rgba(10, 209, 201, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--transition-fast);
}

.inline-link:hover {
  text-decoration-color: var(--brand-teal-dark);
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-dark);
  transition: all var(--transition-fast);
}

.share-btn--tg { background: #2AABEE; }
.share-btn--vk { background: #4C75A3; }
.share-btn--ok { background: #EE8208; }
.share-btn--copy { background: var(--text-muted); }

.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: var(--text-on-dark);
}

/* --- Responsive: Tablet (768px+) --- */
@media (min-width: 768px) {
  :root {
    --section-gap: 80px;
    --container-padding: 32px;
  }

  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  h3 { font-size: 26px; }

  .hero h1 { font-size: 48px; }
  .hero__subtitle { font-size: 20px; }
  .hero__stat-number { font-size: 44px; }

  .btn-group {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .btn--block {
    width: auto;
  }

  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .counters {
    grid-template-columns: repeat(3, 1fr);
  }

  .counter-item .stat-number {
    font-size: 48px;
  }

  .deputies {
    grid-template-columns: repeat(4, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .vacuum-cards { display: none; }
  .vacuum-table { display: table; }

  .comparison__value { font-size: 44px; }
  .comparison__side { padding: 40px 32px; }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .stat-number { font-size: 56px; }

  .pipeline {
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }

  .pipeline__step {
    flex: 1;
    flex-direction: column;
    text-align: center;
  }

  .pipeline__arrow {
    transform: none;
    padding: 0 4px;
  }
}

/* --- Responsive: Desktop (1024px+) --- */
@media (min-width: 1024px) {
  :root {
    --section-gap: 100px;
  }

  h1 { font-size: 56px; }
  h2 { font-size: 40px; }

  .hero h1 { font-size: 56px; }
  .hero { padding: 120px 0 80px; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }

  .section__header {
    margin-bottom: 56px;
  }

  .lead { font-size: 20px; }

  .deputy__photo {
    width: 120px;
    height: 120px;
  }

  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Nav Desktop (1200px+) — shows full nav, hides hamburger --- */
@media (min-width: 1200px) {
  .nav__logo { flex-shrink: 0; overflow: visible; }
  .nav__links { display: flex; gap: 14px; }
  .nav__link { font-size: 13px; }
  .nav__inner .nav__cta { display: inline-flex; font-size: 13px; padding: 10px 18px; }
  .nav__toggle { display: none; }
}

/* --- Nav Comfortable (1366px+) --- */
@media (min-width: 1366px) {
  .nav__links { gap: 16px; }
  .nav__link { font-size: 13px; }
  .nav__inner .nav__cta { font-size: 13px; padding: 10px 20px; }
}

/* --- Nav Wide (1600px+) — more spacious nav --- */
@media (min-width: 1600px) {
  .nav__links { gap: 24px; }
  .nav__link { font-size: 15px; }
  .nav__inner .nav__cta { font-size: 15px; padding: 14px 28px; }
}

/* --- Responsive: Large (1440px+) --- */
@media (min-width: 1440px) {
  h1 { font-size: 64px; }
  h2 { font-size: 44px; }

  .hero h1 { font-size: 64px; }

  .stat-number { font-size: 64px; }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn--pulse { animation: none; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
}

/* --- Skip to content --- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--brand-teal-deep);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
  color: #fff;
}

/* --- Deputy photo placeholders --- */
.deputy__photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0 auto 12px;
  border: 3px solid var(--brand-teal);
}

/* --- Party logo in footer and nav --- */
.party-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.party-logo svg {
  width: 24px;
  height: 24px;
}

/* --- Stalkerware callout --- */
.callout-danger {
  background: var(--accent-coral-light);
  border-left: 4px solid var(--accent-coral);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Noscript fallback --- */
.noscript-reveal .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.noscript-reveal [data-count] {
  visibility: visible;
}

/* ================================================================
   DESIGN UPGRADE — Premium Visual Enhancements
   ================================================================ */

/* --- Party Brand Badge (navigation + footer) --- */
.nav__party-badge {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-teal);
  opacity: 0.85;
  white-space: nowrap;
}
@media (min-width: 480px) and (max-width: 1199px) {
  .nav__party-badge { display: flex; }
}
@media (min-width: 1600px) {
  .nav__party-badge { display: flex; }
}
.nav__party-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.footer__party-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-top: 12px;
}
.footer__party-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Section dark: clean uniform background --- */
.section--dark {
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 50% 50% at 75% 40%, rgba(10,209,201,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.section--dark::after {
  display: none;
}
.section--dark > * {
  position: relative;
  z-index: 1;
}

/* ================================================================
   STORIES PAGE — Custom styles
   ================================================================ */

/* Stories hero — compact, not full-height */
.stories-hero {
  padding: 100px 0 48px !important;
  min-height: auto !important;
}
.stories-hero h1 {
  font-size: 36px;
  line-height: 1.2;
}
.stories-hero .lead {
  font-size: 17px;
  opacity: 0.85;
  max-width: 600px;
  margin: 16px auto 0;
}
@media (min-width: 768px) {
  .stories-hero {
    padding: 120px 0 56px !important;
  }
  .stories-hero h1 {
    font-size: 48px;
  }
  .stories-hero .lead {
    font-size: 19px;
  }
}

/* Story cards — elevated design */
.story-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  border-left: 5px solid transparent;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.story-card--helped {
  border-left-color: var(--brand-teal);
  background: linear-gradient(135deg, #f0fffe 0%, #fff 60%);
}
.story-card--ongoing {
  border-left-color: var(--accent-coral);
  background: linear-gradient(135deg, #fff5f6 0%, #fff 60%);
}
.story-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.story-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.story-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}
.story-card__status--helped {
  background: rgba(10,209,201,0.15);
  color: var(--brand-teal-deep);
}
.story-card__status--ongoing {
  background: rgba(230,68,82,0.12);
  color: var(--accent-coral);
}
.story-card__status-icon {
  width: 14px;
  height: 14px;
}
.story-card__outcome {
  margin-top: auto;
  padding: 14px 16px;
  background: rgba(10,209,201,0.08);
  border-left: 3px solid var(--brand-teal);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-teal-deep);
  line-height: 1.55;
}

/* Resonant cases — dramatic dark cards */
.case-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230,68,82,0.4);
}
.case-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-coral), transparent);
}
.case-card__year {
  font-size: 48px;
  font-weight: 800;
  color: rgba(230,68,82,0.25);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.case-card__name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.case-card__text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}
.case-card__lesson {
  padding: 12px 14px;
  background: rgba(230,68,82,0.1);
  border-left: 3px solid var(--accent-coral);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* ================================================================
   DESIGN ENHANCEMENT LAYER — v2 (agent-generated)
   Hero, Nav, Problem, Kazakhstan, Timeline, Stories, Authors, CTA
   ================================================================ */

/* --- Nav glass-morphism on scroll --- */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 24px rgba(8,124,127,0.08);
}

.nav__logo-icon {
  box-shadow: 0 0 0 3px rgba(10,209,201,0.2);
  transition: box-shadow var(--transition-normal);
}

.nav__party-badge {
  padding: 3px 10px;
  border: 1px solid rgba(10,209,201,0.2);
  border-radius: var(--radius-pill);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10,209,201,0.7);
  transition: all var(--transition-normal);
}

.nav.scrolled .nav__party-badge {
  color: var(--brand-teal-deep);
  border-color: rgba(8,124,127,0.15);
  background: rgba(8,124,127,0.04);
}

.nav__link {
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: width 0.25s cubic-bezier(0.4,0,0.2,1);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

/* --- Hero: uniform gradient background --- */
.hero {
  background: linear-gradient(160deg, #087C7F 0%, #065A5C 50%, #054546 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(10,209,201,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 80%, rgba(230,68,82,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero__content { position: relative; z-index: 1; }

.hero h1 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Hero stats — glass cards */
.hero__stat {
  padding: 20px 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease;
  align-items: center;
  text-align: center;
  min-width: 160px;
}
.hero__stat:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(10,209,201,0.3);
}
.hero__stat-number {
  text-shadow: 0 0 20px rgba(10,209,201,0.3);
}

/* Hero CTA glow */
.hero .btn--primary.btn--pulse {
  animation: heroGlow 3s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,68,82,0.4), 0 4px 16px rgba(230,68,82,0.2); }
  50% { box-shadow: 0 0 0 10px rgba(230,68,82,0), 0 6px 24px rgba(230,68,82,0.3); }
}
.hero .btn--primary.btn--pulse:hover {
  animation: none;
  background: var(--accent-coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(230,68,82,0.35);
}
.hero .btn--ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero .btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-1px);
}

/* --- Problem section heading underline --- */
#problem .section__header h2 {
  position: relative;
  display: inline-block;
}
#problem .section__header h2::after {
  content: '';
  display: block;
  width: 80px; height: 4px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-coral), var(--brand-teal));
}

/* Problem definition callout */
#problem .lead {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  border: 1px solid var(--border-light);
  position: relative;
  text-align: left;
  line-height: 1.8;
}
#problem .lead::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--brand-teal), var(--accent-coral));
}

/* Vacuum table — desktop */
.vacuum-table thead tr {
  background: linear-gradient(135deg, var(--brand-teal-deep) 0%, #065A5C 100%);
}
.vacuum-table th {
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  background: transparent; /* override base bg-light so thead tr gradient shows through */
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 20px;
}
.vacuum-table td:nth-child(3) {
  background: rgba(230,68,82,0.03);
  border-left: 1px solid rgba(230,68,82,0.08);
}
.vacuum-table tbody tr:hover td {
  background-color: rgba(10,209,201,0.04);
}
.vacuum-table tbody tr:hover td:nth-child(3) {
  background-color: rgba(230,68,82,0.07);
}

/* Vacuum cards — mobile */
.vacuum-card {
  border-left: 4px solid var(--accent-coral);
  position: relative;
}
.vacuum-card::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(230,68,82,0.03));
  pointer-events: none;
}
.vacuum-card__article {
  font-weight: 700;
  color: var(--brand-teal-deep);
}
.vacuum-card__problem {
  padding-left: 32px;
  position: relative;
}
.vacuum-card__problem::before {
  content: '\2717';
  color: var(--accent-coral);
  font-weight: 800;
  font-size: 16px;
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-coral-light);
  border-radius: 50%;
}

/* --- Kazakhstan comparison: dramatic visual --- */
.comparison {
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.comparison::after {
  content: 'VS';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #fff;
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.05em;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  border: 3px solid var(--bg-white);
}
.comparison__side--ru {
  background: linear-gradient(160deg, #EAEAEA 0%, #D8D8D8 100%);
}
.comparison__side--ru::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(0,0,0,0.02) 20px, rgba(0,0,0,0.02) 22px);
  pointer-events: none;
}
.comparison__side--kz {
  background: linear-gradient(160deg, #E0FAF9 0%, #C4F3F1 50%, #B0EDED 100%);
}
.comparison__flag { font-size: 52px; margin-bottom: 12px; }
.comparison__side--ru .comparison__flag { opacity: 0.85; }
.comparison__country {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.comparison__side--ru .comparison__country { color: #999; }
.comparison__side--kz .comparison__country { color: var(--brand-teal-deep); }
.comparison__side--ru .comparison__value {
  font-size: 96px; color: #C0C0C0; opacity: 0.7; font-weight: 900;
}
.comparison__side--kz .comparison__value {
  font-size: 88px; color: var(--brand-teal-deep); font-weight: 900;
  text-shadow: 0 4px 20px rgba(10,209,201,0.35);
}
.comparison__side--ru .comparison__desc { color: #999; }
.comparison__side--kz .comparison__desc { color: var(--brand-teal-deep); font-weight: 500; }

@media (min-width: 768px) {
  .comparison__side--ru .comparison__value { font-size: 128px; }
  .comparison__side--kz .comparison__value { font-size: 112px; }
  .comparison__flag { font-size: 64px; }
  .comparison::after { width: 56px; height: 56px; font-size: 16px; }
}

/* --- Timeline: rubber stamps + vertical gradient line --- */
.timeline { padding-left: 44px; }
.timeline::before {
  width: 3px;
  background: linear-gradient(180deg, var(--accent-coral) 0%, var(--accent-coral) 70%, var(--brand-teal) 85%, var(--brand-teal) 100%);
  opacity: 0.6;
  left: 15px;
}
.timeline__dot {
  position: relative;
  width: 32px; height: 32px;
  left: -44px;
}
.timeline__item--rejected .timeline__dot {
  border: 3px solid var(--accent-coral);
  background: var(--accent-coral-light);
}
.timeline__item--rejected .timeline__dot::before {
  content: '\2717';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 14px; font-weight: 700;
  color: var(--accent-coral);
}
.timeline__item--current .timeline__dot {
  border: 3px solid var(--brand-teal);
  background: var(--brand-teal-light);
  box-shadow: 0 0 0 4px rgba(10,209,201,0.12);
}
.timeline__item--current .timeline__dot::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-teal);
  opacity: 0.7;
  animation: none;
}

/* Timeline date badges */
.timeline__date {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
}
.timeline__item--rejected .timeline__date {
  background: #F3F4F6;
  color: var(--text-muted);
}
.timeline__item--current .timeline__date {
  background: var(--brand-teal-light);
  color: var(--brand-teal-deep);
}

/* Timeline stamps — rubber stamp effect */
.timeline__stamp {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 18px;
  color: var(--accent-coral);
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2.5px solid var(--accent-coral);
  border-radius: 4px;
  transform: rotate(-3deg);
  opacity: 0.85;
  box-shadow: inset 0 0 0 1px rgba(230,68,82,0.1), 2px 2px 4px rgba(230,68,82,0.1);
  text-shadow: 0 0 1px rgba(230,68,82,0.3);
}
.timeline__item:nth-child(2) .timeline__stamp { transform: rotate(-1.5deg); }
.timeline__item:nth-child(3) .timeline__stamp { transform: rotate(-4deg); }

/* Current timeline item — highlighted card */
.timeline__item--current {
  background: linear-gradient(135deg, rgba(10,209,201,0.04) 0%, rgba(10,209,201,0.08) 100%);
  border-radius: var(--radius-md);
  padding: 24px 24px 24px 20px;
  border: 1px solid rgba(10,209,201,0.18);
  border-left: none;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(10,209,201,0.06);
}
.timeline__item--current .timeline__dot {
  width: 32px;
  height: 32px;
  border-width: 3px;
}
.timeline__item--current .timeline__dot::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-teal);
  opacity: 0.7;
  animation: none;
}
.timeline__item--current .timeline__title {
  color: var(--brand-teal-deep);
  font-size: 20px;
}
.timeline__item--current .timeline__date {
  font-size: 13px;
  font-weight: 700;
}

/* Cover timeline line below the current (last) dot */
.timeline__item--current::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 44px; /* dot center: 24px padding + 4px top + 16px half-dot */
  bottom: -1px;
  width: 14px;
  background: var(--bg-white);
  z-index: 1;
}
.section--light .timeline__item--current::before {
  background: var(--bg-light);
}

/* --- Story cards enhanced --- */
.story-card {
  position: relative;
  border-left: 4px solid transparent;
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}
.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.04);
}
.story-card--helped {
  border-left: 4px solid var(--status-helped);
  position: relative;
}
.story-card--helped::before {
  content: '';
  position: absolute; left: -4px; top: 0; bottom: 0;
  width: 4px;
  background: var(--status-helped);
  box-shadow: 0 0 16px rgba(10,209,201,0.5);
}
.story-card--ongoing {
  border-left: 4px solid var(--status-ongoing);
}

/* Status badge pill */
.story-card__status {
  display: inline-flex;
  align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.story-card__status--helped {
  background: var(--brand-teal-light);
  color: var(--brand-teal-deep);
}

/* Outcome block */
.story-card__outcome {
  margin-top: auto;
  padding: 12px 14px;
  background: rgba(10,209,201,0.06);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-teal);
  font-size: 14px; font-weight: 500;
  color: var(--brand-teal-deep);
  line-height: 1.55;
}

/* --- Authors / Deputies --- */
.deputy__photo {
  border: 3px solid var(--brand-teal);
  box-shadow: 0 0 0 0 rgba(10,209,201,0);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}
.deputy:hover .deputy__photo {
  box-shadow: 0 0 0 6px rgba(10,209,201,0.15), 0 0 20px rgba(10,209,201,0.12);
  transform: scale(1.03);
}
.deputy__social {
  display: inline-flex;
  align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  color: var(--brand-teal-deep);
  background: var(--brand-teal-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.deputy__social:hover {
  background: var(--brand-teal);
  color: var(--text-on-dark);
  box-shadow: 0 2px 10px rgba(10,209,201,0.3);
}

/* --- CTA section enhanced --- */
.section--dark {
  background: linear-gradient(160deg, var(--brand-teal-deep) 0%, #065d60 40%, #054a4d 70%, #043d40 100%);
}
.section--dark .btn--primary.btn--lg {
  padding: 20px 48px;
  font-size: 18px; font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(230,68,82,0.35);
}
.section--dark .btn--primary.btn--lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(230,68,82,0.45);
}
.btn--pulse {
  animation: ctaPulse 2.5s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(230,68,82,0.35), 0 0 0 0 rgba(230,68,82,0.4); }
  50% { box-shadow: 0 4px 20px rgba(230,68,82,0.35), 0 0 0 16px rgba(230,68,82,0); }
}
.section--dark .btn--ghost.btn--lg {
  padding: 20px 48px;
  font-size: 18px; font-weight: 600;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
}
.section--dark .btn--ghost.btn--lg:hover {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 24px rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* --- Kept from v1: form glow, accordion, badges --- */
.form__input:focus,
.form__textarea:focus {
  box-shadow: 0 0 0 3px rgba(10,209,201,0.15);
}
.accordion__item.open {
  border-left: 3px solid var(--brand-teal);
  padding-left: 16px;
  margin-left: -19px;
}
.accordion__badge--myth { box-shadow: 0 2px 8px rgba(230,68,82,0.2); }
.accordion__fact-badge { box-shadow: 0 2px 8px rgba(10,209,201,0.2); }

/* --- Responsive enhancements --- */
@media (min-width: 768px) {
  .timeline { padding-left: 56px; }
  .timeline::before { left: 19px; width: 4px; }
  .timeline__dot { left: -56px; width: 40px; height: 40px; }
  .timeline__item--current::before { left: -41px; width: 16px; }
  .timeline__stamp { font-size: 14px; padding: 8px 22px; }
  .hero h1 { font-size: 46px; letter-spacing: -0.03em; }
  .hero__stat { padding: 20px 24px; }
  .hero__stat-number { font-size: 46px; }
  #problem .section__header h2 { font-size: 34px; }
  #problem .lead { padding: 28px 36px; font-size: 18px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 54px; }
  .hero { padding: 140px 0 100px; }
  .hero__stat { padding: 22px 28px; }
  .deputy__photo { width: 128px; height: 128px; }
  #problem .section__header h2 { font-size: 38px; }
  .section--dark .container--narrow h2 { font-size: 46px; line-height: 1.2; }
}

@media (min-width: 1440px) {
  .hero h1 { font-size: 62px; }
  .deputy__photo { width: 140px; height: 140px; border-width: 4px; }
  .comparison__side--ru .comparison__value { font-size: 128px; }
  .comparison__side--kz .comparison__value { font-size: 112px; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero .btn--primary.btn--pulse,
  .btn--pulse,
  .timeline__item--current .timeline__dot::after {
    animation: none;
  }
  .story-card, .deputy__photo, .deputy, .card {
    transition: none;
  }
  .nav__link::after { transition: none; }
}

/* --- Petition page: stats on light background --- */
.section:not(.section--dark) .hero__stat-label {
  color: var(--text-muted);
}
.section:not(.section--dark) .hero__stat-number {
  color: var(--brand-teal-deep);
}
.section:not(.section--dark) .hero__stats {
  gap: 32px;
  justify-content: center;
}
.section:not(.section--dark) .hero__stat {
  align-items: center;
  text-align: center;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.section:not(.section--dark) .hero__stat:hover {
  background: var(--bg-white);
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-sm);
}
.section:not(.section--dark) .hero__stat-label {
  max-width: 160px;
}

/* --- Print --- */
@media print {
  .nav, .footer, .btn, .form, .nav__mobile-menu {
    display: none !important;
  }

  .section {
    padding: 24px 0;
    page-break-inside: avoid;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .hero {
    min-height: auto;
    background: none;
    color: #000;
    padding: 24px 0;
  }

  .hero h1, .hero__subtitle {
    color: #000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
