/* ============================================================
   ЗЕМЛЯКИ — Герои АПК
   Дизайн-система: музейная доска почёта, строгий официальный тон
   ============================================================ */

:root {
  /* ---- Палитра (по умолчанию: зелёный / бронза) ---- */
  --c-bg:        #F2ECDF;   /* тёплая слоновая кость, фон страницы */
  --c-bg-2:      #ECE4D3;   /* чуть глубже, для секций */
  --c-surface:   #FBF7EE;   /* карточки, поверхности */
  --c-surface-2: #FFFFFF;
  --c-ink:       #23241E;   /* основной текст (тёплый чёрный) */
  --c-ink-soft:  #5C5C4F;   /* вторичный текст */
  --c-ink-mute:  #8A8978;   /* подписи, метаданные */
  --c-green:     #1C3A2A;   /* официальный тёмно-зелёный */
  --c-green-2:   #2C5340;   /* осветлённый зелёный */
  --c-gold:      #A98545;   /* сдержанная бронза (только линии/печати) */
  --c-gold-soft: #C7A968;
  --c-bordeaux:  #7A2E2E;   /* бордовый акцент из орнамента логотипа */
  --c-bordeaux-soft: #9C4A4A;
  --c-cream:     #EDE7D6;   /* кремовый текст на тёмном */
  --c-line:      rgba(28, 58, 42, 0.16);  /* тонкие линейки */
  --c-line-2:    rgba(28, 58, 42, 0.09);
  --c-shadow:    rgba(40, 46, 30, 0.13);

  /* ---- Типографика ---- */
  --f-serif: "Lora", Georgia, "Times New Roman", serif;
  --f-sans:  "Golos Text", "Helvetica Neue", Arial, sans-serif;

  /* ---- Доска почёта: ширина колонки (плотность) ---- */
  --board-col: 268px;
  --board-gap: 30px;

  /* ---- Радиусы / тени ---- */
  --r-sm: 4px;
  --r-md: 7px;
  --r-lg: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root { min-height: 100vh; }

/* ============================================================
   ТЕКСТУРА СТАРОЙ БУМАГИ
   ============================================================ */
html::after {
  content: "";
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ============================================================
   АНИМАЦИИ
   ============================================================ */
@keyframes zmk-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes zmk-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes zmk-scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

::selection { background: var(--c-green); color: #F6F1E6; }

/* ---------- Типографические утилиты ---------- */
.serif { font-family: var(--f-serif); }
.eyebrow {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.eyebrow.green { color: var(--c-green-2); }
.muted { color: var(--c-ink-mute); }

h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 600; margin: 0; line-height: 1.12; }

a { color: inherit; text-decoration: none; }

/* ---------- Кнопки ---------- */
.btn {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  padding: 13px 26px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .14s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-green); color: #F4EFE2; }
.btn-primary:hover { background: var(--c-green-2); }
.btn-ghost {
  background: transparent;
  color: var(--c-green);
  border: 1px solid var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-green); background: rgba(28,58,42,0.04); }
.btn-gold {
  background: transparent; color: var(--c-gold);
  border: 1px solid var(--c-gold);
}
.btn-gold:hover { background: var(--c-gold); color: #FBF7EE; }
.btn-bronze { background: var(--c-gold); color: #241f12; }
.btn-bronze:hover { background: var(--c-gold-soft); }
.btn-sm { padding: 9px 16px; font-size: 12.5px; }
.btn-lg { padding: 16px 34px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Тонкая золотая линия / разделители ---------- */
.rule { height: 1px; background: var(--c-line); border: none; width: 100%; }
.rule-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  border: none;
}
.divider-mark {
  display: flex; align-items: center; gap: 16px; color: var(--c-gold);
}
.divider-mark::before, .divider-mark::after {
  content: ""; height: 1px; flex: 1; background: var(--c-line);
}

/* ============================================================
   ШАПКА
   ============================================================ */
.topbar {
  background: color-mix(in srgb, var(--c-green) 82%, #000);
  color: #E9E3D2;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.topbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 7px 40px;
  display: flex; justify-content: space-between; align-items: center;
}
.topbar a { color: rgba(233,227,210,0.78); }
.topbar a:hover { color: #fff; }
.topbar .dotsep { opacity: .4; margin: 0 10px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-green);
  border-bottom: 1px solid color-mix(in srgb, var(--c-gold) 50%, transparent);
}
.brand-logo { height: 30px; width: auto; display: block; }
.brand-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.18); flex: 0 0 auto; }
.brand-cap {
  font-family: var(--f-sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-gold-soft);
  line-height: 1.35; max-width: 10ch;
}
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.brand { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.brand-mark { flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-title {
  font-family: var(--f-serif); font-weight: 600; font-size: 22px;
  letter-spacing: 0.02em; color: var(--c-green);
}
.brand-sub {
  font-family: var(--f-sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--c-gold);
  margin-top: 5px;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: 14px; font-weight: 500; color: rgba(237,231,214,0.78);
  padding: 9px 14px; border-radius: var(--r-sm);
  transition: color .15s, background .15s; cursor: pointer;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav a.active { color: var(--c-gold-soft); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   ПЕЧАТЬ / МЕДАЛЬОН (простая геометрия)
   ============================================================ */
.seal { display: inline-block; line-height: 0; }

/* ============================================================
   ПЛЕЙСХОЛДЕР ИЗОБРАЖЕНИЙ
   ============================================================ */
.ph {
  position: relative; overflow: hidden;
  background-color: #E7DFCC;
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 9px,
    rgba(28,58,42,0.05) 9px, rgba(28,58,42,0.05) 10px);
  display: flex; align-items: center; justify-content: center;
}
.ph-label {
  font-family: var(--f-sans);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-ink-mute);
  background: var(--c-surface); padding: 5px 11px; border-radius: 40px;
  border: 1px solid var(--c-line-2);
}

.medal-photo img { filter: drop-shadow(0 2px 4px rgba(40,46,30,0.22)); }

/* ============================================================
   МАСТХЕД ГЛАВНОЙ
   ============================================================ */
.masthead {
  max-width: 100%; margin: 0; padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Видеофон */
.masthead-video-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
/* Полупрозрачный оверлей поверх видео */
.masthead-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(242,236,223,0.88) 0%,
    rgba(242,236,223,0.78) 60%,
    rgba(242,236,223,0.92) 100%
  );
  backdrop-filter: blur(1px);
}
/* Контент поверх оверлея */
.masthead-content {
  position: relative; z-index: 2;
  max-width: 1320px; margin: 0 auto;
  padding: 72px 40px 52px;
}
/* Мягкое золотое свечение — исходит сверху по центру */
.masthead-content::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 720px; height: 360px;
  background: radial-gradient(ellipse at 50% 0%, rgba(169,133,69,0.11) 0%, transparent 70%);
  pointer-events: none;
}
.masthead-content .eyebrow {
  margin-bottom: 22px;
  animation: zmk-fade 0.65s ease both;
}
.masthead-content .ornament {
  animation: zmk-fade 0.65s ease 0.1s both;
}
.masthead-content h1 {
  font-size: clamp(40px, 6vw, 74px);
  letter-spacing: 0.005em;
  color: var(--c-green);
  margin: 0 auto;
  max-width: 16ch;
  animation: zmk-rise 0.8s cubic-bezier(.22,.68,0,1.1) 0.15s both;
}
.masthead-content .lede {
  margin: 26px auto 0;
  max-width: 60ch;
  font-size: 18px;
  color: var(--c-ink-soft);
  line-height: 1.7;
  animation: zmk-rise 0.65s ease 0.3s both;
}
.masthead-content .stats {
  display: flex; justify-content: center; gap: 0;
  margin: 44px auto 0; flex-wrap: wrap;
  animation: zmk-rise 0.55s ease 0.45s both;
}
.stat { padding: 4px 36px; text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%; height: 76%;
  width: 1px; background: var(--c-line);
}
.stat-num {
  font-family: var(--f-serif); font-size: 38px; font-weight: 600;
  color: var(--c-green); line-height: 1;
}
.stat-num .unit { color: var(--c-gold); }
.stat-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-ink-mute); margin-top: 9px;
}

/* ============================================================
   ПАНЕЛЬ ФИЛЬТРОВ
   ============================================================ */
.board-wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px 90px; }

.toolbar {
  position: sticky; top: 70px; z-index: 30;
  background: color-mix(in srgb, var(--c-bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 16px 0; margin-bottom: 36px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.search {
  flex: 1 1 280px; display: flex; align-items: center; gap: 11px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 0 15px; height: 46px;
  transition: border-color .15s;
}
.search:focus-within { border-color: var(--c-green); }
.search input {
  border: none; background: transparent; outline: none; flex: 1;
  font-family: var(--f-sans); font-size: 15px; color: var(--c-ink);
}
.search input::placeholder { color: var(--c-ink-mute); }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  font-family: var(--f-sans); font-size: 14px; font-weight: 500;
  color: var(--c-ink); background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-md);
  height: 46px; padding: 0 38px 0 15px; cursor: pointer; outline: none;
  transition: border-color .15s;
}
.select-wrap select:hover { border-color: var(--c-green); }
.select-wrap::after {
  content: ""; position: absolute; right: 15px; top: 50%; pointer-events: none;
  width: 8px; height: 8px; border-right: 1.5px solid var(--c-ink-soft);
  border-bottom: 1.5px solid var(--c-ink-soft);
  transform: translateY(-65%) rotate(45deg);
}

.density { display: flex; align-items: center; gap: 0; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; background: var(--c-surface); }
.density button {
  border: none; background: transparent; cursor: pointer; height: 46px; width: 44px;
  display: grid; place-items: center; color: var(--c-ink-mute);
  transition: background .14s, color .14s;
}
.density button:hover { color: var(--c-green); }
.density button.active { background: var(--c-green); color: #F4EFE2; }
.density button + button { border-left: 1px solid var(--c-line); }

.result-meta {
  font-size: 13px; color: var(--c-ink-mute); margin-bottom: 22px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.result-meta b { color: var(--c-green); font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-filter {
  font-size: 12px; font-weight: 500; color: var(--c-green);
  background: rgba(28,58,42,0.06); border: 1px solid var(--c-line);
  padding: 5px 10px 5px 12px; border-radius: 40px;
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
}
.chip-filter:hover { background: rgba(28,58,42,0.1); }
.chip-filter .x { font-size: 14px; line-height: 1; opacity: .6; }

/* ============================================================
   ДОСКА ПОЧЁТА — СЕТКА КАРТОЧЕК
   ============================================================ */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--board-col), 1fr));
  gap: var(--board-gap);
}
.hcard {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  animation: zmk-rise 0.45s cubic-bezier(.22,.68,0,1.05) both;
  animation-delay: calc(var(--i, 0) * 55ms);
  will-change: transform;
}
.hcard:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 54px -20px var(--c-shadow), 0 0 0 1px var(--c-gold-soft);
  border-color: var(--c-gold-soft);
}
/* Портрет плавно увеличивается при наведении */
.hcard-portrait .ph {
  transition: transform 0.55s cubic-bezier(.22,.68,0,1.05);
  transform: scale(1);
}
.hcard:hover .hcard-portrait .ph {
  transform: scale(1.05);
}
.hcard-portrait {
  position: relative; aspect-ratio: 4 / 5; width: 100%;
  border-bottom: 1px solid var(--c-line-2);
}
.hcard-frame {
  position: absolute; inset: 11px; border: 1px solid rgba(169,133,69,0.5);
  pointer-events: none; z-index: 2;
  transition: border-color 0.28s;
}
.hcard:hover .hcard-frame {
  border-color: rgba(169,133,69,0.85);
}
/* Золотые уголки рамки */
.hcard-frame::before,
.hcard-frame::after {
  content: "";
  position: absolute;
  width: 13px; height: 13px;
}
.hcard-frame::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--c-gold);
  border-left: 2px solid var(--c-gold);
  opacity: 0.7;
  transition: opacity 0.28s;
}
.hcard-frame::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--c-gold);
  border-right: 2px solid var(--c-gold);
  opacity: 0.7;
  transition: opacity 0.28s;
}
.hcard:hover .hcard-frame::before,
.hcard:hover .hcard-frame::after {
  opacity: 1;
}
.hcard-years {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  background: var(--c-green); color: #EBE4D2; z-index: 3;
  font-family: var(--f-sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 5px 14px; border-radius: 40px; white-space: nowrap;
}
.hcard-body { padding: 24px 20px 22px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.hcard-name {
  font-family: var(--f-serif); font-size: 21px; font-weight: 600; color: var(--c-green);
  line-height: 1.18; margin-bottom: 7px;
}
.hcard-role { font-size: 13.5px; color: var(--c-ink-soft); line-height: 1.4; }
.hcard-region {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-ink-mute); margin-top: 12px;
}
.hcard-awards {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-line-2);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.hcard-award-more { font-size: 12px; color: var(--c-gold); font-weight: 600; }

/* Compact density tweaks */
.board.compact .hcard-body { padding: 16px 14px 16px; }
.board.compact .hcard-name { font-size: 17px; }
.board.compact .hcard-role { font-size: 12px; }
.board.compact .hcard-awards { margin-top: 11px; padding-top: 11px; }
.board.gallery .hcard-body { padding: 30px 24px 28px; }
.board.gallery .hcard-name { font-size: 24px; }

/* ============================================================
   КАРТОЧКА ГЕРОЯ (DETAIL)
   ============================================================ */
.detail { max-width: 1180px; margin: 0 auto; padding: 30px 40px 100px; }
/* Анимация входа на страницу героя */
.detail-portrait-col { animation: zmk-fade 0.6s ease 0.05s both; }
.detail-head         { animation: zmk-rise 0.65s cubic-bezier(.22,.68,0,1.1) 0.1s both; }

.back-link {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--c-ink-soft);
  margin-bottom: 30px; transition: color .15s;
}
.back-link:hover { color: var(--c-green); }

.detail-grid {
  display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start;
}
.detail-portrait-col { position: sticky; top: 110px; }
.detail-portrait {
  position: relative; aspect-ratio: 4 / 5; width: 100%;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 60px -34px var(--c-shadow);
}
.detail-portrait .hcard-frame { inset: 14px; }
.detail-portrait-cap {
  text-align: center; font-size: 12px; color: var(--c-ink-mute);
  margin-top: 16px; font-style: italic; font-family: var(--f-serif);
}
.detail-quickfacts {
  margin-top: 26px; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  background: var(--c-surface); overflow: hidden;
}
.qf-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; }
.qf-row + .qf-row { border-top: 1px solid var(--c-line-2); }
.qf-k { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-mute); }
.qf-v { font-size: 14px; color: var(--c-ink); text-align: right; font-weight: 500; }

.detail-head .eyebrow { margin-bottom: 16px; }
.detail-name {
  font-size: clamp(38px, 4.6vw, 56px); color: var(--c-green);
  line-height: 1.06; letter-spacing: 0.004em;
}
.detail-role {
  font-family: var(--f-serif); font-style: italic; font-size: 21px;
  color: var(--c-gold); margin-top: 14px;
}
.detail-section { margin-top: 44px; }
.detail-section > .eyebrow.green { margin-bottom: 18px; display: block; }
.detail-bio p { font-size: 17.5px; line-height: 1.8; color: var(--c-ink); margin: 0 0 18px; }

/* ── Украшенная цитата ── */
.detail-quote-block {
  position: relative;
  margin: 34px 0 0;
  padding: 28px 32px 28px 46px;
  border-left: 3px solid var(--c-gold);
  background: linear-gradient(135deg, rgba(169,133,69,0.07) 0%, transparent 65%);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  animation: zmk-rise 0.55s ease 0.28s both;
}
.detail-quote-block::before {
  content: "\201C";
  position: absolute;
  top: -6px; left: 14px;
  font-family: var(--f-serif);
  font-size: 88px;
  line-height: 1;
  color: var(--c-gold);
  opacity: 0.2;
  pointer-events: none;
}
.detail-quote-block blockquote {
  margin: 0; padding: 0; border: none;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: var(--c-green);
}

.awards-list { display: flex; flex-direction: column; gap: 2px; }
.award-item {
  display: flex; align-items: center; gap: 18px; padding: 16px 4px;
  border-bottom: 1px solid var(--c-line-2);
}
.award-item:last-child { border-bottom: none; }
.award-text { flex: 1; }
.award-name { font-family: var(--f-serif); font-size: 18px; color: var(--c-green); font-weight: 600; }
.award-year { font-size: 13px; color: var(--c-ink-mute); margin-top: 3px; }

.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-strip .ph { aspect-ratio: 4 / 3; border-radius: var(--r-md); }

.detail-cta {
  margin-top: 54px; padding: 34px; border-radius: var(--r-lg);
  background: var(--c-green); color: #EDE7D6;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.detail-cta h3 { font-size: 26px; color: #F4EFE2; }
.detail-cta p { margin: 8px 0 0; color: rgba(237,231,214,0.78); font-size: 15px; }

/* ============================================================
   ФОРМА ДОБАВЛЕНИЯ
   ============================================================ */
.form-page { max-width: 1080px; margin: 0 auto; padding: 30px 40px 100px; }
.form-head { text-align: center; max-width: 60ch; margin: 0 auto 16px; }
.form-head h1 { font-size: clamp(34px, 4.4vw, 52px); color: var(--c-green); margin-top: 16px; }
.form-head p { color: var(--c-ink-soft); font-size: 17px; margin-top: 16px; }

.form-progress {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin: 40px auto 48px; max-width: 640px;
}
.fp-step { display: flex; align-items: center; gap: 12px; }
.fp-dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-serif); font-size: 15px; font-weight: 600;
  border: 1px solid var(--c-line); color: var(--c-ink-mute); background: var(--c-surface);
  transition: all .2s;
}
.fp-step.active .fp-dot { background: var(--c-green); color: #F4EFE2; border-color: var(--c-green); }
.fp-step.done .fp-dot { background: var(--c-gold); color: #FBF7EE; border-color: var(--c-gold); }
.fp-label { font-size: 13px; font-weight: 600; color: var(--c-ink-mute); letter-spacing: 0.02em; }
.fp-step.active .fp-label { color: var(--c-green); }
.fp-line { width: 60px; height: 1px; background: var(--c-line); margin: 0 18px; }

.form-card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 44px 48px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-ink-soft);
}
.field label .req { color: var(--c-gold); margin-left: 3px; }
.input, .textarea, .field select {
  font-family: var(--f-sans); font-size: 15.5px; color: var(--c-ink);
  background: var(--c-surface-2); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 13px 15px; outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--c-ink-mute); }
.input:focus, .textarea:focus, .field select:focus {
  border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(28,58,42,0.08);
}
.textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field.invalid .input, .field.invalid .textarea, .field.invalid select { border-color: #9c4a3c; box-shadow: 0 0 0 3px rgba(156,74,60,0.1); }
.field-error { font-size: 12.5px; color: #9c4a3c; font-weight: 500; }
.field-hint { font-size: 12.5px; color: var(--c-ink-mute); }

.award-input-row { display: flex; gap: 10px; }
.award-input-row .input { flex: 1; }
.award-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.award-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(169,133,69,0.1); border: 1px solid rgba(169,133,69,0.4);
  color: var(--c-gold); font-weight: 500; font-size: 13px;
  padding: 6px 8px 6px 13px; border-radius: 40px;
}
.award-chip button { border: none; background: none; cursor: pointer; color: var(--c-gold); font-size: 15px; line-height: 1; opacity: .7; }
.award-chip button:hover { opacity: 1; }

.photo-field { display: flex; flex-direction: column; gap: 8px; }
.photo-slot-wrap { aspect-ratio: 4 / 5; }
image-slot { width: 100%; height: 100%; display: block; border: 1px solid var(--c-line); border-radius: var(--r-md); }

.form-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--c-line);
}
.form-foot .note { font-size: 13px; color: var(--c-ink-mute); max-width: 44ch; }

.consent { display: flex; align-items: flex-start; gap: 12px; }
.consent input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--c-green); cursor: pointer; }
.consent label { font-size: 13.5px; color: var(--c-ink-soft); line-height: 1.5; }

/* Success state */
.success {
  text-align: center; max-width: 560px; margin: 40px auto; padding: 60px 40px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
}
.success h2 { font-size: 34px; color: var(--c-green); margin: 28px 0 14px; }
.success p { color: var(--c-ink-soft); font-size: 16px; line-height: 1.7; }

/* Review (step 2) */
.review-block { display: grid; grid-template-columns: 200px 1fr; gap: 40px; }
.review-portrait { aspect-ratio: 4/5; border-radius: var(--r-md); overflow: hidden; position: relative; }
.review-list { }
.review-row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-line-2); }
.review-k { flex: 0 0 150px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-ink-mute); padding-top: 2px; }
.review-v { font-size: 15.5px; color: var(--c-ink); }
.review-v.empty { color: var(--c-ink-mute); font-style: italic; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer { background: var(--c-green); color: #D9D2C0; margin-top: 0; }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 60px 40px 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { max-width: 360px; }
.footer-brand .brand-title { color: #F4EFE2; }
.footer-logo { height: 34px; width: auto; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(217,210,192,0.75); margin: 18px 0 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--f-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-gold-soft); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(217,210,192,0.82); padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(217,210,192,0.6); }

/* ============================================================
   СЕКЦИИ НА ГЛАВНОЙ (истории, карта)
   ============================================================ */
.section { max-width: 1320px; margin: 0 auto; padding: 80px 40px; }
.section.alt { background: var(--c-bg-2); max-width: none; }
.section.alt > * { max-width: 1320px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); color: var(--c-green); margin-top: 14px; }
.section-head p { color: var(--c-ink-soft); max-width: 56ch; margin: 16px auto 0; font-size: 16px; }

.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.story {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.story:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px var(--c-shadow); border-color: var(--c-gold-soft); }
.story .ph { aspect-ratio: 16 / 10; }
.story-body { padding: 24px 24px 26px; }
.story-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold); }
.story h3 { font-size: 22px; color: var(--c-green); margin: 12px 0 10px; line-height: 1.2; }
.story p { font-size: 14.5px; color: var(--c-ink-soft); line-height: 1.6; }
.story-meta { margin-top: 16px; font-size: 12.5px; color: var(--c-ink-mute); }

/* Карта регионов */
.map-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.map-ph { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
.region-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 30px; }
.region-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--c-line-2); cursor: pointer;
}
.region-row:hover .region-name { color: var(--c-gold); }
.region-name { font-family: var(--f-serif); font-size: 17px; color: var(--c-green); transition: color .15s; }
.region-count { font-size: 13px; color: var(--c-ink-mute); font-weight: 600; }

/* О проекте полоса */
.about-band { background: var(--c-green); color: #E9E3D2; }
.about-inner { max-width: 1000px; margin: 0 auto; padding: 90px 40px; text-align: center; }
.about-inner .eyebrow { color: var(--c-gold-soft); }
.about-inner h2 { font-family: var(--f-serif); font-size: clamp(28px, 3.4vw, 42px); color: #F4EFE2; margin: 18px auto 0; max-width: 22ch; line-height: 1.2; }
.about-inner p { font-size: 18px; line-height: 1.8; color: rgba(233,227,210,0.82); margin: 26px auto 0; max-width: 62ch; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
.empty-state { text-align: center; padding: 80px 20px; color: var(--c-ink-mute); }
.empty-state h3 { font-size: 24px; color: var(--c-green); margin-bottom: 10px; }

@media (max-width: 1024px) {
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-portrait-col { position: static; max-width: 360px; }
  .map-wrap { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header-inner, .topbar-inner { padding-left: 22px; padding-right: 22px; }
  .masthead-content, .board-wrap, .detail, .form-page, .section { padding-left: 22px; padding-right: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .review-block { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .region-list { grid-template-columns: 1fr; }
  .stat { padding: 4px 20px; }
}
