@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* ==========================================================================
   ДИЗАЙН-СИСТЕМА — ГОСУДАРСТВЕННЫЙ ПОРТАЛ ПЕТИЦИЙ
   Палитра: институциональный синий + красный акцент + тёплые серые
   Сетка: 1120px, 8px шаг
   Типографика: Inter 400/500/700, модульная шкала 1.25
   ========================================================================== */

:root {
  --blue: #00396B;
  --blue-hover: #002E56;
  --blue-active: #0057A4;
  --blue-light: #EBF2F8;

  --red: #C4362C;
  --red-hover: #A82D24;

  --green: #1A7F37;
  --green-bg: #EAFBF0;

  --white: #FFFFFF;
  --bg: #F5F5F3;
  --bg-card: #FFFFFF;

  --text: #1D1D1B;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;

  --border: #E0DDD9;
  --border-light: #ECEAE6;

  --shadow-hover: 0 2px 8px rgba(0, 0, 0, .08);

  --radius: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --max-w: 1120px;
  --max-w-narrow: 880px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--blue); color: #fff; }

img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -.02em; }
h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.01em; }
h3 { font-size: 1.125rem; line-height: 1.3; }

p { margin: 0 0 1em; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color .15s var(--ease);
}
a:hover { color: var(--blue-hover); }
a:focus-visible {
  outline: 2px solid var(--blue-active);
  outline-offset: 2px;
}

/* ==========================================================================
   HEADER — белый, строгий, тонкая нижняя граница
   ========================================================================== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--text);
}
.header__brand:hover { text-decoration: none; color: var(--text); }

.header__logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.header__logo svg { width: 22px; height: 22px; fill: #fff; }

.header__title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.header__subtitle {
  font-size: .6875rem;
  color: var(--text-secondary);
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 500;
}

.header__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .75rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.header__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.header__mobile-btn {
  display: inline-flex;
  padding: .375rem .75rem;
  font-size: .8125rem;
}
@media (min-width: 768px) { .header__mobile-btn { display: none; } }

/* ==========================================================================
   КОНТЕЙНЕР
   ========================================================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  width: 100%;
}
main.container { flex: 1; }
.container--narrow { max-width: var(--max-w-narrow); }

/* ==========================================================================
   ВВОДНАЯ СЕКЦИЯ (page intro)
   ========================================================================== */
.page-intro {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem 2rem;
}
.page-intro__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-intro__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}
.page-intro__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   СТАТИСТИКА — горизонтальная полоса
   ========================================================================== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.stats-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: stretch;
}
.stats-bar__item {
  flex: 1;
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stats-bar__item:last-child { border-right: none; }
.stats-bar__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stats-bar__label {
  font-size: .6875rem;
  color: var(--text-muted);
  margin-top: .25rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 500;
}

/* ==========================================================================
   ШАГИ — 01 / 02 / 03
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s var(--ease);
}
.step:hover { border-color: var(--blue); }

.step__number {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}
.step__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .375rem;
}
.step__text {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   ЗАГОЛОВОК СЕКЦИИ
   ========================================================================== */
.page-header { margin-bottom: 1.5rem; }
.page-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-header__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.page-header__desc {
  color: var(--text-secondary);
  font-size: .9375rem;
  margin: .25rem 0 0;
}

/* ==========================================================================
   ПОИСК
   ========================================================================== */
.search-bar {
  position: relative;
  margin-bottom: 1.5rem;
}
.search-bar__input {
  width: 100%;
  padding: .75rem 1rem .75rem 2.75rem;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s var(--ease);
}
.search-bar__input:focus {
  outline: none;
  border-color: var(--blue);
}
.search-bar__input::placeholder { color: var(--text-muted); }
.search-bar__icon {
  position: absolute;
  left: .875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  pointer-events: none;
}
.search-bar__clear {
  position: absolute;
  right: .625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  font-size: .875rem;
  transition: color .15s var(--ease);
}
.search-bar__clear:hover { color: var(--text); }
.search-bar__clear.is-visible { display: flex; }

/* ==========================================================================
   КАРТОЧКИ — 3 колонки, border, radius 4px
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover {
  text-decoration: none;
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
}
.card:focus-visible {
  outline: 2px solid var(--blue-active);
  outline-offset: 2px;
}

.card__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--border-light);
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform .4s var(--ease);
}
.card:hover .card__image img { transform: scale(1.03); }

.card__body {
  padding: 1rem;
  border-top: 1px solid var(--border-light);
}
.card__name {
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: var(--text);
}
.card__link {
  font-size: .75rem;
  color: var(--blue);
  font-weight: 500;
}

.card__progress {
  margin-top: .5rem;
  height: 2px;
  background: var(--border-light);
  border-radius: 1px;
  overflow: hidden;
}
.card__progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 1px;
  transition: width 1s var(--ease);
}

/* ==========================================================================
   СТРАНИЦА ПЕТИЦИИ
   ========================================================================== */
.petition-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.petition-sidebar { order: -1; }
.petition-main { order: 1; }

@media (min-width: 768px) {
  .petition-layout {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
  .petition-sidebar { order: 1; position: sticky; top: 72px; }
  .petition-main { order: 0; }
}

.petition-main {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.petition-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .petition-hero {
    grid-template-columns: minmax(200px, 260px) 1fr;
    padding: 1.5rem;
  }
}

.petition-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--border-light);
}
@media (min-width: 640px) {
  .petition-photo { border-radius: var(--radius); max-height: 400px; }
}
.petition-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.petition-info { padding: 1.5rem; }
@media (min-width: 640px) { .petition-info { padding: 0; } }

.petition-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .75rem;
}

.petition-story {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-height: 400px;
  overflow-y: auto;
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.petition-story p { margin: 0 0 1rem; }
.petition-story p:last-child { margin-bottom: 0; }
.petition-story strong { color: var(--text); }
.petition-story::-webkit-scrollbar { width: 4px; }
.petition-story::-webkit-scrollbar-track { background: transparent; }
.petition-story::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Sidebar */
.petition-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.petition-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.petition-sidebar__title { font-size: 1rem; font-weight: 700; }
.petition-sidebar__badge {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  padding: .25rem .5rem;
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}

/* Progress */
.progress-block {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.progress-stats {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.progress-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.progress-goal { font-size: .8125rem; color: var(--text-secondary); font-weight: 500; }
.progress-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
  transition: width 1.2s var(--ease);
}

/* ==========================================================================
   КНОПКИ — плоские, без gradient, без glow
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn:focus-visible { outline: 2px solid var(--blue-active); outline-offset: 2px; }

.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
  text-decoration: none;
}

.btn--secondary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}
.btn--secondary:hover {
  background: var(--blue-light);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}

.btn--block { display: flex; width: 100%; }
.btn-group { display: flex; flex-direction: column; gap: .5rem; }

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
.modal-overlay.is-open {
  display: flex;
  background: rgba(0, 0, 0, .5);
}
.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modal-fade .25s var(--ease);
}
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.modal__title { font-size: 1.125rem; font-weight: 700; margin: 0; }
.modal__subtitle { font-size: .8125rem; color: var(--text-secondary); margin-top: .25rem; }
.modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  transition: color .15s var(--ease);
  flex-shrink: 0;
}
.modal__close:hover { color: var(--text); }
.modal__body { padding: 1.5rem; overflow-y: auto; }

/* ==========================================================================
   ФОРМЫ
   ========================================================================== */
.form-group { margin-bottom: 1.25rem; }
.form-group:last-child { margin-bottom: 0; }
.form-label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: .375rem;
}
.form-input, .form-textarea {
  width: 100%;
  padding: .625rem .875rem;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s var(--ease);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-input.is-invalid, .form-textarea.is-invalid {
  border-color: var(--red);
}
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-hint {
  display: flex;
  justify-content: space-between;
  margin-top: .25rem;
  font-size: .75rem;
  color: var(--text-muted);
}
.form-hint--error { color: var(--red); }
.form-actions { margin-top: 1.25rem; }

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}
.toast {
  padding: .625rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s var(--ease);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--text);
  color: #fff;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.toast svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), visibility .2s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { border-color: var(--blue); }
.back-to-top svg { width: 18px; height: 18px; fill: var(--text-secondary); }

/* ==========================================================================
   РАЗДЕЛИТЕЛЬ
   ========================================================================== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
}
.section-divider__line { flex: 1; height: 1px; background: var(--border); }
.section-divider__title {
  font-size: .6875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ==========================================================================
   ALERT
   ========================================================================== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 1px solid;
}
.alert--success { background: var(--green-bg); border-color: var(--green); }
.alert--info { background: var(--blue-light); border-color: var(--blue); }
.alert__icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.alert--success .alert__icon { fill: var(--green); }
.alert--info .alert__icon { fill: var(--blue); }
.alert__content { flex: 1; }
.alert__title { font-size: .875rem; font-weight: 700; margin-bottom: .125rem; }
.alert__text { font-size: .8125rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* ==========================================================================
   FOOTER — тёмно-серый, минимальный
   ========================================================================== */
.footer {
  background: var(--text);
  color: var(--text-muted);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .footer__top { grid-template-columns: 2fr 1fr 1fr; } }

.footer__brand { max-width: 340px; }
.footer__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.footer__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__logo-icon svg { width: 16px; height: 16px; fill: #fff; }
.footer__logo-text { font-size: .875rem; font-weight: 700; color: #fff; }
.footer__desc { font-size: .8125rem; color: #9CA3AF; line-height: 1.6; margin: 0; }

.footer__nav-title {
  font-size: .6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9CA3AF;
  margin-bottom: .75rem;
}
.footer__nav-list { list-style: none; padding: 0; margin: 0; }
.footer__nav-item { margin-bottom: .375rem; }
.footer__nav-link { font-size: .875rem; color: #D1D5DB; transition: color .15s; }
.footer__nav-link:hover { color: #fff; text-decoration: none; }

.footer__bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
@media (min-width: 640px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer__bottom--minimal { border-top: none; padding-top: 0; }
.footer__copy { font-size: .75rem; color: #6B7280; margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__legal-link { font-size: .75rem; color: #6B7280; transition: color .15s; }
.footer__legal-link:hover { color: #D1D5DB; }

/* ==========================================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: .375rem;
  margin-bottom: 1.5rem;
  font-size: .8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-secondary); font-weight: 500; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: none; }
.breadcrumbs__sep {
  color: var(--border);
  -webkit-user-select: none;
  user-select: none;
}
.breadcrumbs__current { color: var(--text); font-weight: 500; }

/* ==========================================================================
   ПОДЕЛИТЬСЯ
   ========================================================================== */
.share-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.share-section__title {
  font-size: .6875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.share-buttons { display: flex; gap: .375rem; }
.share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease);
  color: var(--text-secondary);
}
.share-btn:hover { border-color: var(--blue); color: var(--blue); }
.share-btn svg { width: 15px; height: 15px; fill: currentColor; }

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 767px) {
  body { font-size: .9375rem; }
  .header__inner { flex-wrap: wrap; }
  .header__badge { order: 3; width: 100%; justify-content: center; margin-top: .25rem; }
  .page-intro__title { font-size: 1.5rem; }
  .page-header__top { flex-direction: column; align-items: stretch; }
  .page-header__top .btn { display: none; }
  .mobile-cta { display: block; }
  .petition-name { font-size: 1.25rem; }
  .stats-bar__inner { flex-wrap: wrap; }
  .stats-bar__item { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .stats-bar__item:nth-child(2) { border-right: none; }
  .stats-bar__item:nth-child(3),
  .stats-bar__item:nth-child(4) { border-bottom: none; }
  .cards-grid { grid-template-columns: 1fr; gap: 1rem; }
  .card__body { padding: .875rem; }
  .container { padding: 1.5rem 1rem 2rem; }
  .page-intro { padding: 1.5rem 1rem 1.25rem; }
  .footer__inner { padding: 1.5rem 1rem; }
}

/* ==========================================================================
   SCROLL REVEAL (сдержанная амплитуда)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ==========================================================================
   УТИЛИТЫ
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.mobile-cta { display: none; margin-top: 1.5rem; }

.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state__icon { width: 40px; height: 40px; margin: 0 auto .75rem; fill: var(--text-muted); opacity: .4; }
.empty-state__title { font-size: 1rem; font-weight: 700; margin-bottom: .375rem; }
.empty-state__text { font-size: .875rem; color: var(--text-secondary); max-width: 320px; margin: 0 auto; }

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .header, .footer, .back-to-top, .btn-group, .share-section, .stats-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .petition-main { border: none; }
}
