/* ================================================================
   КЛЮЧЕВОЕ СЛОВО — Design System
   Brand: Партия «Новые люди» / Ксения Горячева
   Визуальная семья: Сталкингу.Нет
   Quality target: 11/10
   Mobile-first, semantic, accessible
   ================================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand (Figma: ключ #53F2E2→#2ECDBD, фон постера ~#0B7280) */
  --brand-teal:        #2ECDBD;
  --brand-teal-dark:   #1BB5A9;
  --brand-teal-deep:   #0B7280;
  --brand-teal-bg:     #2FAFAC;
  --brand-teal-light:  #E0FEF9;

  /* Key accent — бирюзовый ключ (из Figma: #53F2E2 → #2ECDBD) */
  --brand-key:         #53F2E2;
  --brand-key-dark:    #2ECDBD;
  --brand-key-light:   #E0FEF9;

  /* Danger / Emergency */
  --accent-coral:      #E64452;
  --accent-coral-dark: #C93A46;
  --accent-coral-light:#FDEDEF;

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

  /* Backgrounds */
  --bg-white:  #FFFFFF;
  --bg-light:  #F8F8F8;
  --bg-dark:   #0B7280;
  --bg-hero:   #0B7280;

  /* Borders */
  --border-light:  #E9EBF1;
  --border-medium: #D1D5DB;

  /* Layout */
  --section-gap:       64px;
  --section-gap-lg:    96px;
  --container-max:     1140px;
  --container-narrow:  780px;
  --container-padding: 20px;

  /* Typography */
  --font-family: "Avenir Next Cyr", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

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

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --shadow-nav:0 2px 20px rgba(0,0,0,.08);

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

/* --- Reset --- */
*, *::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;
  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: clamp(28px, 5vw, 44px); letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3.5vw, 32px); letter-spacing: -0.01em; }
h3 { font-size: 21px; font-weight: 600; }
h4 { font-size: 17px; 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-key     { color: var(--brand-key-dark); }
.text-coral   { color: var(--accent-coral); }
.text-center  { text-align: center; }
.lead { font-size: 19px; line-height: 1.7; color: var(--text-secondary); }
.caption { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* --- 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--teal  { background: var(--brand-teal-deep); color: var(--text-on-dark); }
.section--dark  { background: var(--bg-dark); color: var(--text-on-dark); }
.section--teal h2, .section--teal h3, .section--teal h4,
.section--dark  h2, .section--dark h3, .section--dark h4 { color: var(--text-on-dark); }
.section--teal .text-muted, .section--dark .text-muted { color: rgba(255,255,255,.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--teal .section__header p, .section--dark .section__header p { color: rgba(255,255,255,.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,.96);
  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; text-decoration: none;
  flex-shrink: 0;
}
.nav.scrolled .nav__logo { color: var(--text-primary); }
.nav__logo-icon {
  width: 36px; height: 36px;
  background: var(--brand-teal-deep);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav__logo-icon svg { width: 20px; height: 20px; }
.nav__badge {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  display: none;
}
.nav.scrolled .nav__badge { color: var(--text-muted); background: var(--bg-light); }
.nav__links { display: none; align-items: center; gap: 24px; }
.nav__link {
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.nav__link:hover { color: #fff; }
.nav.scrolled .nav__link { color: var(--text-secondary); }
.nav.scrolled .nav__link:hover { color: var(--brand-teal-dark); }
.nav__cta { display: none; }
.nav__toggle {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,.85);
  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: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-dark);
  z-index: 999;
  display: flex; flex-direction: column;
  padding: 80px 24px 40px;
  gap: 4px;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}
.nav__mobile-menu.open { transform: translateX(0); }
.nav__mobile-link {
  font-size: 22px; font-weight: 600;
  color: rgba(255,255,255,.9);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color var(--transition-fast);
}
.nav__mobile-link:hover { color: var(--brand-teal); }
.nav__mobile-cta { margin-top: 32px; }
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--brand-teal); color: white;
  padding: 8px 16px; border-radius: var(--radius-sm); z-index: 9999;
}
.skip-link:focus { top: 8px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; border-radius: var(--radius-pill);
  cursor: pointer; transition: all var(--transition-normal);
  white-space: nowrap; text-decoration: none; border: none;
  line-height: 1;
}
.btn--lg { padding: 16px 32px; font-size: 17px; }
.btn--md { padding: 12px 24px; font-size: 15px; }
.btn--sm { padding: 9px 18px;  font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--primary {
  background: var(--brand-teal); color: white;
  box-shadow: 0 4px 16px rgba(10,209,201,.3);
}
.btn--primary:hover {
  background: var(--brand-teal-dark); color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10,209,201,.4);
}
.btn--key {
  background: var(--brand-key); color: var(--brand-teal-deep);
  box-shadow: 0 4px 16px rgba(83,242,226,.3);
}
.btn--key:hover {
  background: var(--brand-key-dark); color: white;
  transform: translateY(-1px);
}
.btn--ghost {
  background: rgba(255,255,255,.15);
  color: white;
  border: 2px solid rgba(255,255,255,.4);
}
.btn--ghost:hover { background: rgba(255,255,255,.25); color: white; }
.btn--ghost-dark {
  background: transparent; color: var(--brand-teal-dark);
  border: 2px solid var(--brand-teal);
}
.btn--ghost-dark:hover { background: var(--brand-teal-light); }
.btn--emergency {
  background: var(--accent-coral); color: white;
  box-shadow: 0 4px 16px rgba(230,68,82,.3);
}
.btn--emergency:hover { background: var(--accent-coral-dark); color: white; transform: translateY(-1px); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--pulse {
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(46,205,189,.3); }
  50%       { box-shadow: 0 4px 28px rgba(83,242,226,.55); }
}
/* Nav CTA hidden on mobile — repeated after .btn to win specificity war */
.nav__cta { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #0A6878 0%, #0B7280 40%, #0C7D8C 70%, #1BC8BE 100%);
  display: flex; align-items: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(83,242,226,.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(83,242,226,.07) 0%, transparent 40%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero__content { position: relative; z-index: 1; }

/* Party affiliation — glass pill badge */
.hero__party-badge {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 7px 16px 7px 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero__party-logo {
  display: block;
  opacity: 0.7;
}
.hero__party-sep {
  display: block;
  width: 1px; height: 14px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,209,201,.15);
  border: 1px solid rgba(10,209,201,.3);
  color: var(--brand-teal);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero h1 {
  color: white;
  margin-bottom: 20px;
  max-width: 680px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-teal);
}
.hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
  padding: 24px;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.1);
}
.hero__stat {}
.hero__stat-number {
  display: block;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--brand-teal);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero__stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
  line-height: 1.3;
}

/* Hero visual — phrases card */
.hero__visual {
  display: none;
  position: relative;
}
.hero__phrase-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(8px);
}
.hero__phrase-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 16px;
}
.hero__phrase {
  font-size: 20px; font-weight: 700;
  color: white;
  padding: 16px 20px;
  background: rgba(10,209,201,.15);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-teal);
  margin-bottom: 12px;
  font-style: italic;
}
.hero__phrase:last-of-type { margin-bottom: 0; }
.hero__phrase-hint {
  font-size: 13px; color: rgba(255,255,255,.5);
  text-align: center; margin-top: 16px;
}
.hero__partner-tag {
  display: flex; align-items: center; gap: 8px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: rgba(255,255,255,.5);
}
.hero__partner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-teal);
  flex-shrink: 0;
}

/* ============================================================
   KEY PHRASES (выделенный блок с кодовыми фразами)
   ============================================================ */
.phrases {
  padding: 56px 0;
  background: var(--brand-teal-light);
  border-top: 3px solid var(--brand-teal);
}
.phrases__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.phrases__label {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-teal-deep);
  margin-bottom: 16px;
}
.phrases__title { color: var(--brand-teal-deep); margin-bottom: 8px; }
.phrases__desc  { color: var(--text-secondary); }
.phrases__list  { display: flex; flex-direction: column; gap: 12px; }
.phrases__item {
  display: flex; align-items: flex-start; gap: 16px;
  background: white;
  border: 2px solid var(--brand-teal);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  font-size: 18px; font-weight: 700;
  color: var(--brand-teal-deep);
  font-style: italic;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.phrases__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.phrases__item-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--brand-teal-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.phrases__note {
  font-size: 14px; color: var(--text-muted);
  padding: 12px 16px;
  background: rgba(10,209,201,.08);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-teal);
  margin-top: 8px;
}

/* ============================================================
   HOW IT WORKS — 4 шага
   ============================================================ */
.steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step__num {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--brand-teal-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  color: var(--brand-teal-deep);
  border: 2px solid var(--brand-teal);
}
.step__icon { font-size: 26px; line-height: 1; }
.step__body {}
.step__title { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.step__desc  { font-size: 15px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.step--forbidden {
  background: var(--accent-coral-light);
  border-color: var(--accent-coral);
}
.step--forbidden .step__num {
  background: var(--accent-coral-light);
  border-color: var(--accent-coral);
  color: var(--accent-coral);
  font-size: 20px;
}
.steps__emergency {
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--accent-coral-light);
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent-coral);
  display: flex; align-items: flex-start; gap: 16px;
}
.steps__emergency-icon { font-size: 28px; flex-shrink: 0; }
.steps__emergency h4 { color: var(--accent-coral); margin-bottom: 6px; }
.steps__emergency p  { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* ============================================================
   CASES — реальные истории
   ============================================================ */
.cases__grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
.case-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.case-card__header {
  padding: 24px 28px 0;
  display: flex; align-items: center; gap: 16px;
}
.case-card__place-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--brand-teal-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.case-card__place-info {}
.case-card__place-name { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.case-card__place-addr { font-size: 13px; color: var(--text-muted); }
.case-card__badge {
  margin-left: auto;
  background: var(--brand-teal-light);
  color: var(--brand-teal-deep);
  font-size: 12px; font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.case-card__body { padding: 20px 28px 28px; }
.case-card__text {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 16px;
  border-left: 3px solid var(--brand-teal);
  margin: 0;
}

/* ============================================================
   MAP
   ============================================================ */
.map-section {}
.map-controls {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px;
}
.map-filter {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-medium);
  background: white;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}
.map-filter:hover  { border-color: var(--brand-teal); color: var(--brand-teal-dark); }
.map-filter.active { background: var(--brand-teal); border-color: var(--brand-teal); color: white; }
.map-stats {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.map-stat {
  font-size: 14px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.map-stat strong { color: var(--brand-teal-deep); font-size: 18px; }
#map {
  height: 480px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 1;
  border: 2px solid var(--border-light);
}
/* Leaflet custom styles */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
}
.leaflet-popup-content { margin: 0 !important; width: auto !important; }
.map-popup {
  padding: 16px 18px;
  min-width: 200px;
}
.map-popup__name { font-weight: 700; font-size: 15px; color: var(--text-primary); margin-bottom: 4px; }
.map-popup__city { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.map-popup__addr { font-size: 13px; color: var(--text-secondary); }
.map-popup__type { font-size: 12px; color: var(--brand-teal-dark); font-weight: 600; margin-top: 8px; }
.map-popup__case {
  margin-top: 8px; padding: 6px 10px;
  background: var(--brand-teal-light);
  border-radius: var(--radius-sm);
  font-size: 12px; color: var(--brand-teal-deep); font-weight: 600;
}
.map-note {
  margin-top: 16px;
  font-size: 13px; color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   CONNECT — подключить заведение
   ============================================================ */
.connect-section {}
.connect__benefits {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-bottom: 40px;
}
.benefit {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}
.benefit__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--brand-teal-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.benefit h4 { margin-bottom: 4px; }
.benefit p  { font-size: 14px; color: var(--text-secondary); margin: 0; }
.connect-form {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 14px; font-weight: 600;
  color: var(--text-primary);
}
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 16px;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 15px; color: var(--text-primary);
  background: white;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(10,209,201,.15);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer; line-height: 1.5;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--brand-teal);
  margin-top: 1px;
}
.form-success {
  display: none;
  text-align: center; padding: 32px;
}
.form-success__icon { font-size: 48px; margin-bottom: 16px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-secondary); }

/* ============================================================
   MATERIALS
   ============================================================ */
.materials__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.material-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  text-decoration: none; color: inherit;
}
.material-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.material-card__icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--brand-teal-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.material-card__body { flex: 1; }
.material-card__title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.material-card__desc  { font-size: 13px; color: var(--text-muted); margin: 0; }
.material-card__arrow { color: var(--brand-teal); font-size: 20px; flex-shrink: 0; }

/* ============================================================
   HOTLINES
   ============================================================ */
.hotlines__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hotline-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.15);
}
.hotline-card--emergency {
  background: rgba(230,68,82,.15);
  border-color: rgba(230,68,82,.4);
}
.hotline-card__icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.hotline-card--emergency .hotline-card__icon {
  background: rgba(230,68,82,.2);
}
.hotline-card__body { flex: 1; }
.hotline-card__name { font-weight: 700; font-size: 15px; color: white; margin-bottom: 2px; }
.hotline-card__desc { font-size: 13px; color: rgba(255,255,255,.6); margin: 0; }
.hotline-card__number {
  font-size: 22px; font-weight: 700;
  color: var(--brand-teal);
  text-decoration: none; white-space: nowrap;
}
.hotline-card--emergency .hotline-card__number { color: #ff7a84; }

/* Crisis centers */
.crisis__grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
.crisis-item {
  padding: 14px 18px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.1);
}
.crisis-item__name { font-weight: 600; font-size: 14px; color: white; margin-bottom: 2px; }
.crisis-item__info { font-size: 13px; color: rgba(255,255,255,.6); margin: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--text-primary);
  transition: color var(--transition-fast);
  user-select: none;
  list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--brand-teal-dark); }
.faq-item__q svg {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--brand-teal); transition: transform var(--transition-fast);
}
details[open] .faq-item__q svg { transform: rotate(180deg); }
.faq-item__a {
  padding: 0 24px 20px;
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

/* ============================================================
   ABOUT / СВЯЗЬ СО СТАЛКИНГУ.НЕТ
   ============================================================ */
.about-banner {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 32px;
  background: var(--brand-teal-light);
  border-radius: var(--radius-xl);
  border: 2px solid var(--brand-teal);
}
.about-banner__logo { font-size: 32px; }
.about-banner__text h3 { color: var(--brand-teal-deep); margin-bottom: 8px; }
.about-banner__text p  { color: var(--text-secondary); margin: 0; }
.about-banner__cta { margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #231F20;
  color: rgba(255,255,255,.55);
  padding: 48px 0 36px;
  font-size: 14px;
  line-height: 1.5;
}
.footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 36px;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}
.footer__logo:hover { opacity: 0.85; }
.footer__logo-icon {
  width: 28px; height: 28px;
  background: var(--brand-teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer__logo-icon svg { width: 15px; height: 15px; }
.footer__logo-text { white-space: nowrap; }
.footer__tagline {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.35);
  line-height: 1.4;
}
.footer__nav-heading {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.35);
  margin-bottom: 12px;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__nav-link {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  width: fit-content;
}
.footer__nav-link:hover { color: var(--brand-teal); }
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  width: fit-content;
}
.footer__social-link:hover { color: var(--brand-teal); }
.footer__social-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer__social-link:hover .footer__social-icon { opacity: 1; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer__party {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__party-logo {
  display: block;
  opacity: 0.35;
  transition: opacity 0.25s;
}
.footer__party-text {
  font-size: 12px;
  color: rgba(255,255,255,.28);
  transition: color 0.25s;
}
.footer__party:hover .footer__party-logo { opacity: 0.6; }
.footer__party:hover .footer__party-text { color: rgba(255,255,255,.5); }
.footer__year {
  font-size: 12px;
  color: rgba(255,255,255,.2);
}

/* ============================================================
   MAP POPUP — дополнительные элементы
   ============================================================ */
.map-popup__header {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 10px;
}
.map-popup__icon {
  font-size: 22px; flex-shrink: 0;
  line-height: 1;
}

/* Form validation error state */
.form-group input.field--error,
.form-group textarea.field--error {
  border-color: var(--accent-coral);
  box-shadow: 0 0 0 3px rgba(230,68,82,.15);
}
input[type="checkbox"].field--error {
  outline: 2px solid var(--accent-coral);
  outline-offset: 2px;
}

/* Form success — flex layout */
.form-success {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   ANIMATE ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   PROTOCOL STEPS — 4 карточки алгоритма
   ============================================================ */
.protocol-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

/* Соединительная линия между карточками на десктопе */
.protocol-steps::before {
  content: '';
  position: absolute;
  top: 34px;
  left: calc(25% - 10px);
  width: calc(50% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--brand-teal) 0%, #53F2E2 100%);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.protocol-step {
  background: white;
  border-radius: 20px;
  padding: 28px 22px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--brand-teal);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.protocol-step__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.protocol-step__badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #53F2E2 0%, #2ECDBD 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #0B7280;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(46,205,189,0.35);
}

.protocol-step__icon {
  font-size: 26px;
  line-height: 1;
  opacity: 0.5;
}

.protocol-step__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.protocol-step__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* Планшет: 2×2 */
@media (max-width: 900px) {
  .protocol-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .protocol-steps::before { display: none; }
}

/* Мобильный: 1 колонка */
@media (max-width: 540px) {
  .protocol-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .protocol-step {
    padding: 20px 18px;
    border-top-width: 3px;
    gap: 10px;
  }
  .protocol-step__badge {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
}

/* ============================================================
   STEPS DUAL — 112 + Запреты в один ряд
   ============================================================ */
.steps__dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  align-items: start;
}

@media (max-width: 680px) {
  .steps__dual { grid-template-columns: 1fr; }
}

/* ============================================================
   STEPS EMERGENCY — блок 112
   ============================================================ */
.steps__emergency {
  margin-top: 0;
  background: #FFF1F2;
  border: 2px solid var(--accent-coral);
  border-radius: 20px;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.steps__emergency-signal {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  font-size: 28px;
}

.steps__emergency-call {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-coral);
  line-height: 1;
}

.steps__emergency-body h4 {
  color: var(--accent-coral);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
}

.steps__emergency-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

/* ============================================================
   STEPS FORBIDDEN — блок "не должен"
   ============================================================ */
.steps__forbidden-list--col {
  flex-direction: column;
  gap: 8px;
}

.steps__forbidden {
  margin-top: 0;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 20px 24px;
}

.steps__forbidden-title {
  color: var(--accent-coral);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
}

.steps__forbidden-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.steps__forbidden-item {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ============================================================
   GALLERY PLACEHOLDER
   ============================================================ */
.gallery-placeholder {
  margin-top: 32px;
  background: white;
  border: 2px dashed var(--border-medium);
  border-radius: 20px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-placeholder__inner {
  text-align: center;
  padding: 40px;
}

.gallery-placeholder__icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.gallery-placeholder__text {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

/* ============================================================
   QUOTE BLOCK — Цитата Ксении (фото слева, текст справа)
   ============================================================ */
.quote-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: center;
  background: white;
  border-radius: 24px;
  padding: 48px 52px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border-left: 5px solid var(--brand-teal);
}

/* Левая колонка — фото + подпись */
.quote-block__photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.quote-block__photo-wrap {
  width: 160px;
  height: 210px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--brand-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.quote-block__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.quote-block__photo-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-teal-deep);
}

.quote-block__author-info {
  text-align: center;
}

.quote-block__author-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* Правая колонка — цитата */
.quote-block__content {
  position: relative;
  padding-top: 16px;
}

.quote-block__mark {
  font-size: 96px;
  line-height: 0.6;
  color: var(--brand-teal);
  opacity: 0.2;
  font-family: Georgia, serif;
  position: absolute;
  top: -8px;
  left: -4px;
  pointer-events: none;
}

.quote-block__text {
  font-size: 20px;
  line-height: 1.75;
  color: var(--text-primary);
  font-style: italic;
  margin: 20px 0 0;
  position: relative;
  z-index: 1;
}

/* Планшет: фото меньше, расположение сохраняется */
@media (max-width: 860px) {
  .quote-block {
    grid-template-columns: 130px 1fr;
    gap: 32px;
    padding: 40px 36px;
  }
  .quote-block__photo-wrap {
    width: 120px;
    height: 158px;
  }
}

/* Мобиль: стэкинг вертикальный, фото + подпись горизонтально */
@media (max-width: 600px) {
  .quote-block {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 24px;
  }
  .quote-block__photo-col {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  .quote-block__photo-wrap {
    width: 72px;
    height: 90px;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .quote-block__author-info { text-align: left; }
  .quote-block__mark { font-size: 64px; top: -6px; left: -4px; }
  .quote-block__text { font-size: 17px; margin-top: 16px; }
}

/* ============================================================
   PERSONS GRID — Команда проекта (два человека рядом)
   ============================================================ */
.persons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.person-card {
  background: white;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.person-card__avatar {
  width: 108px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #E0FAFA 0%, #B2F0ED 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(46,205,189,0.2);
  flex-shrink: 0;
}

.person-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.person-card__avatar span {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-teal-deep);
}

.person-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.person-card__role {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 20px;
}

.person-card__quote {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary, #4B5563);
  font-style: italic;
  text-align: left;
  padding: 16px 20px 16px 24px;
  background: #F4FEFE;
  border-radius: 12px;
  border-left: 3px solid var(--brand-teal);
  margin: 0;
  position: relative;
}

.person-card__quote::before {
  content: '"';
  font-size: 72px;
  line-height: 0.55;
  color: var(--brand-teal);
  opacity: 0.12;
  font-family: Georgia, serif;
  position: absolute;
  top: 14px;
  left: 14px;
  pointer-events: none;
}

@media (max-width: 720px) {
  .persons-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — Mobile only overrides (max 479px)
   ============================================================ */
@media (max-width: 767px) {
  .hero__party-badge {
    font-size: 11px;
    padding: 6px 12px 6px 10px;
    gap: 8px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255,255,255,.1);
  }
  .hero__party-logo { width: 28px; height: auto; }
  .hero__party-sep { height: 12px; }

  .footer__party-logo { width: 18px; height: auto; }
}

@media (max-width: 479px) {
  .steps-tabs { flex-wrap: wrap; }
  .step-tab { padding: 12px 8px; }
  .step-tab__label { font-size: 10px; }
  .step-panels { padding: 24px 20px; }
  .step-panel { flex-direction: column; gap: 12px; }
  .step-panel__icon { font-size: 40px; }
  .steps__emergency { flex-direction: column; gap: 12px; }
}

/* ============================================================
   RESPONSIVE — Tablet 768px
   ============================================================ */
@media (min-width: 768px) {
  .nav__links  { display: flex; }
  .nav__cta    { display: inline-flex; }
  .nav__toggle { display: none; }

  .hero__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .hero__visual { display: block; }

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

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

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

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

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

  .footer__main {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
  }
}

/* ============================================================
   RESPONSIVE — Desktop 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .footer { padding: 56px 0 40px; }
  .footer__main {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 48px;
  }
  .connect__benefits { grid-template-columns: repeat(4, 1fr); }
  #map { height: 560px; }
  .step-panel { align-items: center; }
  .step-panel__icon { font-size: 72px; }
}
