@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ============================================================
   РЕГИОН-КУРСК — дизайн-система «тёплый терракот + кремовый»
   ============================================================ */

:root {
  /* Основная палитра — тёмно-синий (доверие) + коралл (забота) */
  --clay-900: #0B1F3A;
  --clay-800: #123157;
  --clay-700: #1D4573;
  --terra: #F0603F;
  --terra-light: #FF8264;
  --terra-soft: #FFD9CB;

  /* Нейтральные / фон */
  --cream: #F7FAFB;
  --cream-2: #EAF1F5;
  --sand: #D6E4EC;
  --white: #FFFFFF;

  /* Акценты */
  --olive: #7D8A5C;
  --gold: #E8A23D;
  --gold-light: #F4C371;

  /* Текст */
  --text: #3C4A5C;
  --text-dark: #0B1F3A;
  --text-muted: #7A8CA0;

  --border: #DCE7EE;

  /* Тени — прохладные, синие */
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.07);
  --shadow: 0 8px 24px rgba(11, 31, 58, 0.11);
  --shadow-lg: 0 18px 44px rgba(11, 31, 58, 0.16);
  --shadow-terra: 0 10px 30px rgba(240, 96, 63, 0.32);

  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --max-width: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1em; }

a { color: var(--terra); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--clay-700); }

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

/* Страховка: никакая инлайновая иконка не должна раздуваться на весь блок */
svg { max-width: 100%; flex: none; }
.site-footer__links svg,
.card__link svg,
.section__link svg,
.category-card__count svg,
.report-row__download svg,
.btn svg { width: 18px; height: 18px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ============================ Кнопки ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

/* мягкая «волна» при наведении */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-101%) skewX(-18deg);
  transition: transform 0.55s var(--ease);
}
.btn:hover::after { transform: translateX(101%) skewX(-18deg); }

.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--terra) 0%, var(--clay-700) 100%);
  color: #fff;
  box-shadow: var(--shadow-terra);
}
.btn--primary:hover { color: #fff; box-shadow: 0 16px 38px rgba(192, 95, 60, 0.38); }

.btn--soft {
  background: var(--cream-2);
  color: var(--clay-700);
  border-color: var(--sand);
}
.btn--soft:hover { background: var(--sand); color: var(--clay-800); }

.btn--outline {
  background: transparent;
  color: var(--terra);
  border-color: var(--terra);
}
.btn--outline:hover { background: var(--terra); color: #fff; }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { background: #fff; color: var(--clay-700); border-color: #fff; }

.btn--small { padding: 10px 20px; font-size: 0.8rem; }
.btn--pill { padding: 12px 26px; }

/* ============================ Шапка ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 247, 240, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow); background: rgba(253, 247, 240, 0.97); }

.site-header__row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.brand:hover { transform: translateY(-1px); }

.brand__logo-frame {
  display: flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 10px;
  border-radius: 12px;
  background: var(--clay-800);
  flex-shrink: 0;
}
.brand__logo-img { height: 32px; width: auto; object-fit: contain; }

.brand__mark {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--terra), var(--clay-700));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-terra);
  font-family: 'Manrope', sans-serif;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.15rem;
  color: var(--text-dark); white-space: nowrap;
}
.brand__tag {
  font-size: 0.66rem; color: var(--terra);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; white-space: nowrap;
}

.main-nav { display: flex; gap: 6px; align-items: center; }

.main-nav__link {
  position: relative;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 9px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.main-nav__link::before {
  content: '';
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.main-nav__link:hover { color: var(--terra); background: var(--cream-2); }
.main-nav__link:hover::before { width: 40%; }
.main-nav__link.is-active { color: var(--terra); background: var(--cream-2); }
.main-nav__link.is-active::before { width: 40%; }

.site-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.main-nav__cta { display: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
  transition: background-color 0.25s var(--ease);
}
.burger:hover { background: var(--cream-2); }
.burger span {
  width: 24px; height: 2.5px;
  background: var(--clay-700);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================ Hero ============================ */

.hero {
  position: relative;
  background: linear-gradient(
    120deg,
    var(--clay-900) 0%,
    var(--clay-700) 22%,
    var(--terra) 52%,
    var(--gold) 78%,
    var(--terra-light) 100%
  );
  background-size: 260% 260%;
  animation: gradientShift 9s ease-in-out infinite;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero--with-image::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  z-index: -2;
}

@keyframes gradientShift {
  0% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
  100% { background-position: 0% 40%; }
}

/* Большое мягкое пятно света, плавающее по фону */
.hero::after {
  content: '';
  position: absolute;
  width: 640px; height: 640px;
  right: -200px; top: -260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 68%);
  border-radius: 50%;
  z-index: -1;
  animation: floatSlow 8s ease-in-out infinite;
}

/* Диагональный блик, «пробегающий» по герою */
.hero__shine {
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(75deg, transparent 40%, rgba(255,255,255,0.16) 48%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0.16) 52%, transparent 60%);
  animation: shineSweep 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes shineSweep {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(30%); }
}

/* Мерцающие искры, разбросанные по герою */
.hero__fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__fx span {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.8);
  animation: twinkle 2.4s ease-in-out infinite;
}
.hero__fx span:nth-child(1) { top: 14%; left: 8%; animation-delay: 0s; }
.hero__fx span:nth-child(2) { top: 68%; left: 18%; width: 5px; height: 5px; animation-delay: 0.6s; }
.hero__fx span:nth-child(3) { top: 30%; left: 46%; width: 6px; height: 6px; animation-delay: 1.1s; }
.hero__fx span:nth-child(4) { top: 78%; left: 60%; animation-delay: 1.6s; }
.hero__fx span:nth-child(5) { top: 10%; left: 72%; width: 5px; height: 5px; animation-delay: 0.3s; }
.hero__fx span:nth-child(6) { top: 52%; left: 90%; width: 7px; height: 7px; animation-delay: 1.9s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.3); }
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 32px) scale(1.12); }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: clamp(48px, 9vw, 96px) 20px;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  margin-bottom: 16px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 0 rgba(232, 162, 61, 0.5);
  animation: badgePulse 2.6s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 162, 61, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(232, 162, 61, 0); }
}

.hero h1 { color: #fff; margin-bottom: 18px; text-shadow: 0 2px 18px rgba(11, 31, 58, 0.35); }
.hero p { color: rgba(255, 255, 255, 0.94); max-width: 56ch; font-size: 1.05rem; }

.hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hero__blob {
  width: min(300px, 74vw);
  aspect-ratio: 1;
  border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.16), 0 0 0 0 rgba(255, 255, 255, 0.35), var(--shadow-lg);
  animation: morphBlob 7s ease-in-out infinite, blobGlow 3.2s ease-in-out infinite;
}
.hero__blob img { width: 62%; height: auto; }

@keyframes morphBlob {
  0%, 100% { border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%; transform: rotate(0deg) scale(1); }
  33% { border-radius: 58% 42% 40% 60% / 44% 58% 42% 56%; transform: rotate(4deg) scale(1.03); }
  66% { border-radius: 40% 60% 58% 42% / 58% 40% 60% 42%; transform: rotate(-4deg) scale(0.98); }
}
@keyframes blobGlow {
  0%, 100% { box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.16), 0 0 0 0 rgba(255, 255, 255, 0.3), var(--shadow-lg); }
  50% { box-shadow: inset 0 0 70px rgba(255, 255, 255, 0.24), 0 0 40px 6px rgba(255, 255, 255, 0.22), var(--shadow-lg); }
}

/* Волна-разделитель под hero */
.wave-divider { display: block; width: 100%; height: auto; margin-top: -1px; }
.wave-divider path { fill: var(--cream); }

/* ============================ Статистика ============================ */

.stat-bar {
  background: var(--cream-2);
  border-bottom: 1px solid var(--border);
}
.stat-bar__inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 14px;
  padding: 22px 20px;
  text-align: center;
}
.stat-bar strong {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.stat-bar span { color: var(--text); font-weight: 600; }

/* ============================ Секции ============================ */

.section { padding: clamp(48px, 7vw, 84px) 0; }
.section--alt { background: var(--white); }
.section--sand { background: var(--cream-2); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.section__head-text { max-width: 620px; }
.section__eyebrow {
  color: var(--terra);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  margin-bottom: 8px;
  display: block;
}
.section__head h2 { margin-bottom: 0; }

.section__link {
  font-weight: 700;
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: gap 0.3s var(--ease);
}
.section__link:hover { gap: 12px; }

/* Заголовок-плашка */
.band {
  background: linear-gradient(120deg, var(--clay-700), var(--terra));
  color: #fff;
  padding: 26px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.band h2 {
  color: #fff; margin: 0;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  position: relative; z-index: 1;
}

/* ============================ Карточки ============================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 26px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--terra-soft);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--terra), var(--clay-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.card:hover .card__media img { transform: scale(1.07); }

.card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card__body h3 { margin: 0; font-size: 1.15rem; }
.card__body h3 a { color: var(--text-dark); }
.card:hover .card__body h3 a { color: var(--terra); }

.card__link {
  margin-top: auto;
  font-weight: 700;
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s var(--ease);
}
.card__link:hover { gap: 12px; }

/* Большие карточки-категории (раздел «Проекты») */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 34px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: #fff; }
.category-card::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -2;
  transition: transform 0.7s var(--ease);
}
.category-card:hover::before { transform: scale(1.08); }
.category-card--chronicle::before { background: linear-gradient(150deg, var(--clay-800), var(--terra)); }
.category-card--current::before { background: linear-gradient(150deg, #B8860B, var(--gold)); }
.category-card::after {
  content: '';
  position: absolute;
  right: -70px; top: -70px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  z-index: -1;
  transition: transform 0.7s var(--ease);
}
.category-card:hover::after { transform: scale(1.25); }

.category-card__icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: auto;
}
.category-card__icon svg { width: 30px; height: 30px; stroke: #fff; }
.category-card h3 { color: #fff; font-size: 1.6rem; margin: 20px 0 8px; }
.category-card p { color: rgba(255, 255, 255, 0.9); margin-bottom: 16px; }
.category-card__count {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem;
  transition: gap 0.3s var(--ease);
}
.category-card:hover .category-card__count { gap: 14px; }

/* ============================ Бейджи ============================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  width: fit-content;
}
.badge--active { background: #EDF0E2; color: #5E6B3E; }
.badge--completed { background: var(--cream-2); color: var(--clay-700); }
.badge--planned { background: #F0E7F2; color: #6D5476; }
.badge--date { background: var(--cream-2); color: var(--text-muted); }

/* ============================ Иконки-карточки контактов ============================ */

.icon-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.icon-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.icon-card__icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--terra), var(--clay-700));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-terra);
  transition: transform 0.45s var(--ease);
}
.icon-card:hover .icon-card__icon { transform: rotate(-6deg) scale(1.08); }
.icon-card__icon svg { width: 28px; height: 28px; stroke: #fff; }
.icon-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.icon-card p { margin: 0; }

/* ============================ Отчёты ============================ */

.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.report-tabs__btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.report-tabs__btn:hover { border-color: var(--terra-soft); transform: translateY(-2px); }
.report-tabs__btn.is-active {
  background: linear-gradient(135deg, var(--terra), var(--clay-700));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-terra);
}

.report-year-panel { display: none; }
.report-year-panel.is-active { display: flex; flex-direction: column; gap: 16px; animation: panelFadeIn 0.4s var(--ease); }
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.report-entry {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.report-entry:hover { box-shadow: var(--shadow); border-color: var(--terra-soft); }

.report-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 20px 24px;
}
.report-row__title { font-weight: 700; font-size: 1.02rem; color: var(--text-dark); }
.report-row__meta { font-size: 0.84rem; color: var(--text-muted); margin-top: 3px; }
.report-row__download {
  font-weight: 700; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}

.report-entry__details summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--terra);
  border-top: 1px solid var(--border);
  transition: background-color 0.25s var(--ease);
}
.report-entry__details summary::-webkit-details-marker { display: none; }
.report-entry__details summary::before { content: '▾ '; }
.report-entry__details[open] summary::before { content: '▴ '; }
.report-entry__details summary:hover { background: var(--cream); }
.report-entry__text {
  padding: 4px 24px 24px;
  max-width: none;
}

.empty-note {
  color: var(--text-muted);
  font-style: italic;
  padding: 30px;
  text-align: center;
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

/* ============================ Заголовок страницы ============================ */

.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--clay-800), var(--terra));
  color: #fff;
  padding: clamp(42px, 7vw, 78px) 0;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -90px; bottom: -120px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.page-hero h1 { color: #fff; margin: 0; position: relative; z-index: 1; }
.page-hero .breadcrumb {
  position: relative; z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem; font-weight: 600;
  margin-bottom: 12px;
}
.page-hero .breadcrumb a { color: rgba(255, 255, 255, 0.82); }
.page-hero .breadcrumb a:hover { color: #fff; }

/* ============================ Контент страниц ============================ */

.page-content { max-width: 760px; }
.page-content h2 { color: var(--clay-700); margin-top: 1.6em; }
.page-content h2:first-child { margin-top: 0; }
.page-content ul, .page-content ol { padding-left: 1.3em; }
.page-content li { margin-bottom: 8px; }
.page-content img { border-radius: var(--radius); margin: 1.2em 0; }
.page-content blockquote {
  border-left: 4px solid var(--terra);
  background: var(--cream-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.4em 0;
  padding: 16px 22px;
  color: var(--clay-800);
}

/* ============================ Реквизиты ============================ */

.requisites-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.requisites-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.requisites-table tr:last-child td { border-bottom: none; }
.requisites-table tr:hover td { background: var(--cream); }
.requisites-table td:first-child { font-weight: 700; color: var(--clay-700); width: 42%; }

/* ============================ Документы ============================ */

.documents-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  gap: 20px;
}
.document-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.document-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); color: var(--terra); }
.document-card img { width: 100%; height: 200px; object-fit: cover; }
.document-card__icon {
  height: 200px; display: flex; align-items: center; justify-content: center;
  background: var(--cream-2);
}
.document-card__icon svg { width: 44px; height: 44px; stroke: var(--terra); }
.document-card__title { padding: 12px 14px; font-size: 0.82rem; line-height: 1.45; font-weight: 600; }
.document-card--empty { opacity: 0.65; }

/* ============================ Директор ============================ */

.director-card {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.director-card__photo {
  width: 116px; height: 116px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--cream-2);
  box-shadow: var(--shadow);
}
.director-card__photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--terra), var(--clay-700));
  color: #fff; font-weight: 800; font-size: 2.4rem;
  font-family: 'Playfair Display', serif;
}
.director-card__position {
  color: var(--terra); font-size: 0.76rem; text-transform: uppercase;
  font-weight: 800; letter-spacing: 0.1em;
}
.director-card__name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.3rem; color: var(--text-dark); margin: 6px 0 14px; }
.director-card__meta { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.director-card__meta b { color: var(--clay-700); }

/* ============================ Форма ============================ */

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-card .form-field { margin-bottom: 18px; }
.form-card label { display: block; font-size: 0.82rem; color: var(--clay-700); font-weight: 700; margin-bottom: 7px; }
.form-card input, .form-card textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-card input:focus, .form-card textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(192, 95, 60, 0.12);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-size: 0.9rem; font-weight: 600; }
.alert--error { background: #FBEAE7; color: #A03F2C; }
.alert--success { background: #EDF0E2; color: #5E6B3E; }

/* ============================ Пожертвования ============================ */

.donate-box {
  position: relative;
  background: linear-gradient(140deg, var(--clay-800), var(--terra));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.donate-box::before {
  content: '';
  position: absolute;
  left: -80px; bottom: -120px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: floatSlow 13s ease-in-out infinite;
}
.donate-box h2 { color: #fff; position: relative; z-index: 1; }
.donate-box > p { color: rgba(255, 255, 255, 0.9); position: relative; z-index: 1; }

.donate-box__row {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; margin-top: 28px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.donate-box__qr { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.donate-box__actions { display: flex; flex-direction: column; gap: 12px; }

.qr-code {
  display: block;
  width: 190px; height: 190px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease);
}
.qr-code:hover { transform: scale(1.05) rotate(2deg); }
.qr-code__img { width: 100%; height: 100%; object-fit: contain; }
.qr-code__placeholder {
  width: 100%; height: 100%;
  border: 2px dashed var(--terra-soft);
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--clay-700); font-weight: 800; text-align: center; font-size: 0.95rem;
  background: var(--cream);
}
.qr-code__placeholder span { font-weight: 500; font-size: 0.68rem; color: var(--text-muted); margin-top: 8px; }
.qr-code__label {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ============================ Подвал ============================ */

.site-footer {
  background: var(--clay-900);
  color: #B8C6D9;
  margin-top: 0;
  position: relative;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding: clamp(40px, 6vw, 64px) 20px 32px;
}
.site-footer h4 {
  color: #fff; font-family: 'Manrope', sans-serif;
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 16px;
}
.site-footer__brand { font-family: 'Playfair Display', serif; font-weight: 700; color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.site-footer a { color: #B8C6D9; }
.site-footer a:hover { color: var(--terra-light); }
.site-footer p { font-size: 0.9rem; color: #9BB0C9; }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s var(--ease); width: fit-content; }
.site-footer__links a:hover { gap: 14px; }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
  font-size: 0.8rem;
  color: #7E93AE;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ============================ Анимация появления ============================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ============================ Кнопка «наверх» ============================ */

.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terra), var(--clay-700));
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-terra);
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 22px; height: 22px; stroke: #fff; }

/* ============================ 404 ============================ */

.error-page { padding: clamp(60px, 12vw, 110px) 20px; text-align: center; }

/* ============================ Адаптив ============================ */

@media (max-width: 1400px) {
  .main-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 100px 24px 40px;
    gap: 6px;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
    z-index: 95;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav__link { font-size: 1.15rem; padding: 16px 18px; border-radius: 12px; }
  .main-nav__link::before { display: none; }
  .main-nav__cta {
    display: inline-flex;
    margin-top: 18px;
    align-self: flex-start;
    padding: 14px 26px;
    font-size: 0.95rem;
  }
  .burger { display: flex; z-index: 110; position: relative; }
  .nav-overlay { display: none; }
}

/* Кнопку «Помочь фонду» в компактной шапке прячем заранее, до того как
   шапка вообще может не влезть — она уже есть в мобильном меню и в QR-блоке. */
@media (max-width: 640px) {
  .site-header__actions .btn { display: none; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero__eyebrow, .hero p { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .two-col { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .site-header__row { padding: 10px 16px; gap: 10px; }
  .brand__mark { width: 40px; height: 40px; border-radius: 12px; font-size: 0.85rem; }
  .brand__logo-frame { height: 40px; padding: 0 8px; }
  .brand__logo-img { height: 26px; }
  .brand__name { font-size: 1rem; }
  .brand__tag { font-size: 0.6rem; }
  .site-header__actions .btn { padding: 10px 18px; font-size: 0.78rem; }

  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .section__head { margin-bottom: 26px; }

  .card-grid, .category-grid, .documents-strip { gap: 18px; }
  .category-card { min-height: 240px; padding: 26px; }

  .director-card { flex-direction: column; align-items: center; text-align: center; padding: 26px; }
  .director-card__meta { align-items: center; }
  .form-card { padding: 24px 20px; }

  .donate-box__row { flex-direction: column; gap: 26px; }
  .donate-box__actions { width: 100%; }
  .donate-box__actions .btn { width: 100%; }
  .qr-code { width: 170px; height: 170px; }

  .report-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .report-row__download { width: 100%; }

  .requisites-table td { padding: 11px 13px; font-size: 0.86rem; }
  .requisites-table td:first-child { width: 46%; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer__bottom { flex-direction: column; text-align: center; }

  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}



/* Доступность */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Партнёры ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 20px;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 110px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--terra-soft); }
.partner-card img { max-height: 64px; width: auto; margin: 0 auto; filter: grayscale(35%); transition: filter 0.35s var(--ease); }
.partner-card:hover img { filter: grayscale(0%); }
.partner-card__name { font-weight: 700; color: var(--clay-700); text-align: center; }

/* ===== Крупный блок QR (видное место, как на старом сайте) ===== */
.quick-donate {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.quick-donate__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 48px) 20px;
  text-align: center;
}
.quick-donate__label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--terra);
}
.quick-qr {
  display: block;
  width: clamp(180px, 24vw, 260px);
  height: clamp(180px, 24vw, 260px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--border);
  padding: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.quick-qr:hover { transform: scale(1.04); box-shadow: var(--shadow-lg); }
.quick-qr__img { width: 100%; height: 100%; object-fit: contain; }
.quick-qr__placeholder {
  width: 100%; height: 100%;
  border: 2px dashed var(--terra-soft);
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--clay-700); font-weight: 800; text-align: center; font-size: 1rem;
  background: var(--cream); padding: 16px;
}
.quick-qr__placeholder span { font-weight: 500; font-size: 0.72rem; color: var(--text-muted); margin-top: 10px; }

/* ===== Отзывы ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars svg { display: block; }
.review-card__text { color: var(--text); margin: 0; flex: 1; }
.review-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.review-card__author { font-weight: 700; color: var(--clay-700); }
.review-card__date { font-size: 0.82rem; color: var(--text-muted); }
.review-card__media {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--cream-2);
  border: 0;
}

/* ===== Коллаж (карусель фото) ===== */
.gallery-carousel {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  max-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream-2);
}
.gallery-carousel__track { position: relative; width: 100%; height: 100%; }
.gallery-carousel__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}
.gallery-carousel__slide.is-active { opacity: 1; pointer-events: auto; }
.gallery-carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-carousel__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 24px;
  background: linear-gradient(0deg, rgba(11,31,58,0.75), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.gallery-carousel__arrow {
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--clay-700);
  box-shadow: var(--shadow);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.gallery-carousel__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-carousel__arrow svg { width: 20px; height: 20px; }
.gallery-carousel__dots {
  position: absolute; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.gallery-carousel__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: none; cursor: pointer; padding: 0;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.gallery-carousel__dot.is-active { background: #fff; transform: scale(1.3); }

@media (max-width: 680px) {
  .gallery-carousel { aspect-ratio: 4/5; border-radius: var(--radius); }
  .gallery-carousel__arrow { width: 38px; height: 38px; right: 12px; }
}

/* ===== Клумба ===== */
.garden__stats {
  display: flex; flex-wrap: wrap; gap: 28px;
  justify-content: center;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--cream-2);
  border-radius: var(--radius);
}
.garden__stats > div { text-align: center; }
.garden__stats strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--terra); }
.garden__stats span { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

/* "Приподнятая грядка": деревянный/земляной бортик + текстурная трава внутри */
.garden__bed {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px 10px;
  padding: 34px 30px 44px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(255,255,255,0.35) 0%, transparent 3%),
    radial-gradient(circle at 22% 68%, rgba(255,255,255,0.3) 0%, transparent 2.5%),
    radial-gradient(circle at 46% 30%, rgba(255,255,255,0.28) 0%, transparent 2%),
    radial-gradient(circle at 63% 82%, rgba(255,255,255,0.3) 0%, transparent 2.5%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.3) 0%, transparent 2.5%),
    radial-gradient(circle at 90% 60%, rgba(255,255,255,0.28) 0%, transparent 2%),
    radial-gradient(circle at 35% 90%, rgba(0,0,0,0.05) 0%, transparent 4%),
    radial-gradient(circle at 70% 45%, rgba(0,0,0,0.04) 0%, transparent 4%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 7px),
    linear-gradient(155deg, #A9CE86 0%, #8FBE6C 38%, #79AE59 70%, #6BA24C 100%);
  box-shadow:
    inset 0 3px 10px rgba(0,0,0,0.12),
    inset 0 -14px 26px rgba(58, 34, 10, 0.18);
  border: 10px solid transparent;
  border-image: linear-gradient(180deg, #A9793F, #8A5F2E) 1;
}
.garden__bed::before {
  /* лёгкая тень/виньетка по краю грядки для объёма */
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 50px rgba(40, 26, 8, 0.22);
  border-radius: inherit;
}

.garden__spot {
  position: relative;
  aspect-ratio: 1;
  display: flex; align-items: flex-end; justify-content: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  z-index: 1;
}

/* Пустое место — холмик рыхлой земли */
.garden__spot--empty {
  border-radius: 50%;
  width: 72%; height: 46%;
  margin: 0 auto;
  align-self: flex-end;
  background: radial-gradient(ellipse at 35% 30%, rgba(255,255,255,0.35), transparent 60%),
              radial-gradient(ellipse at center, #8A6B45 0%, #6E5433 75%, #5B4429 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.25), inset 0 -3px 6px rgba(0,0,0,0.35), 0 2px 3px rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.garden__spot--empty svg { width: 14px; height: 14px; opacity: 0; transition: opacity 0.25s var(--ease); }
.garden__spot--empty:hover,
.garden__spot--empty.is-selected {
  transform: scale(1.18) translateY(-3px);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), inset 0 -3px 6px rgba(0,0,0,0.3), 0 6px 10px rgba(0,0,0,0.2), 0 0 0 3px rgba(240,96,63,0.35);
}
.garden__spot--empty:hover svg, .garden__spot--empty.is-selected svg { opacity: 1; color: #fff; }

/* Растение "прорастает" — росток из земли */
.garden__spot--pending { transform-origin: bottom center; position: relative; }
.sprout-svg { width: 30px; height: 30px; opacity: 1; transform: scale(1) translateY(0); transform-origin: bottom center; }
.sprout-svg__stem { stroke: #4C7A32; stroke-width: 3; stroke-linecap: round; }
.sprout-svg__leaf { fill: #6FA83F; }

/* Садовник "бросает семечко" — та же анимация посадки, что и у расцветших цветов */
.garden__bed.is-visible .garden__spot--pending .garden__gardener {
  animation: gardenerWalk 1.3s ease-in-out both;
}
.garden__bed.is-visible .garden__spot--pending .gardener-svg__shovel {
  animation: gardenerDig 1.3s ease-in-out both;
}
.garden__bed.is-visible .sprout-svg {
  animation: seedPop 0.5s var(--ease) both, seedSway 3s ease-in-out 1.55s infinite;
  animation-delay: 1.05s, 1.55s;
}

@keyframes seedPop {
  0% { transform: scale(0.15) translateY(20%); opacity: 0; }
  60% { transform: scale(1.15) translateY(0); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes seedSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-6deg); }
}

/* Расцветший цветок */
.garden__spot--planted { transform-origin: bottom center; position: relative; }
.garden__spot--planted:hover { transform: scale(1.12) translateY(-4px); z-index: 3; }
.flower-svg { width: 34px; height: 48px; overflow: visible; filter: drop-shadow(0 4px 3px rgba(20,30,10,0.25)); }
.flower-svg__stem { stroke: #4C7A32; stroke-width: 3; stroke-linecap: round; }
.flower-svg__leaf { fill: #6FA83F; }
.flower-svg__center { fill: #F2B94B; stroke: #D89A2E; stroke-width: 0.6; }
.flower-svg__petals { fill: var(--terra); }
.garden__spot--planted[data-type="1"] .flower-svg__petals,
.garden__type-option span[data-type="1"] .flower-svg__petals { fill: #E8577A; }
.garden__spot--planted[data-type="2"] .flower-svg__petals,
.garden__type-option span[data-type="2"] .flower-svg__petals { fill: var(--gold); }
.garden__spot--planted[data-type="3"] .flower-svg__petals,
.garden__type-option span[data-type="3"] .flower-svg__petals { fill: #C0559B; }
.garden__spot--planted[data-type="4"] .flower-svg__petals,
.garden__type-option span[data-type="4"] .flower-svg__petals { fill: #F2F4F0; stroke: #D8DED0; stroke-width: 0.5; }
.garden__spot--planted[data-type="5"] .flower-svg__petals,
.garden__type-option span[data-type="5"] .flower-svg__petals { fill: #D8672E; }
.garden__spot--planted[data-type="6"] .flower-svg__petals,
.garden__type-option span[data-type="6"] .flower-svg__petals { fill: #8A5FC4; }

/* Садовник, который "сажает" каждый расцветший цветок */
.garden__gardener {
  position: absolute;
  left: 2px; bottom: 0;
  width: 22px; height: 25px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
.gardener-svg { width: 100%; height: 100%; overflow: visible; }
.gardener-svg__body { fill: #E8B84B; }
.gardener-svg__head { fill: #F2C89A; }
.gardener-svg__hat { fill: var(--terra); }
.gardener-svg__leg, .gardener-svg__arm { stroke: #4A3A2A; stroke-width: 3; stroke-linecap: round; }
.gardener-svg__shovel-handle { stroke: #8A6B45; stroke-width: 2.2; stroke-linecap: round; }
.gardener-svg__shovel-blade { fill: #9AA3AC; }
.gardener-svg__shovel { transform-origin: 30px 10px; }

/* Анимации запускаются, когда клумба реально появляется в поле зрения
   (родитель .garden__bed получает .is-visible от общего скрипта прокрутки) */
.garden__bed.is-visible .garden__gardener {
  animation: gardenerWalk 1.3s ease-in-out both;
}
.garden__bed.is-visible .gardener-svg__shovel {
  animation: gardenerDig 1.3s ease-in-out both;
}
.garden__bed.is-visible .flower-svg {
  animation: flowerGrow 0.5s var(--ease) both;
  animation-delay: 1.05s;
}

@keyframes gardenerWalk {
  0% { transform: translate(-24px, 6px) scale(0.9); opacity: 0; }
  15% { opacity: 1; }
  22% { transform: translate(0, 0) scale(0.9); opacity: 1; }
  68% { transform: translate(0, 0) scale(0.9); opacity: 1; }
  86% { transform: translate(20px, 4px) scale(0.85); opacity: 1; }
  100% { transform: translate(30px, 6px) scale(0.8); opacity: 0; }
}
@keyframes gardenerDig {
  0%, 22% { transform: rotate(0deg); }
  32% { transform: rotate(-38deg); }
  42% { transform: rotate(8deg); }
  52% { transform: rotate(-34deg); }
  62% { transform: rotate(8deg); }
  70%, 100% { transform: rotate(0deg); }
}

.garden__spot-name {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(4px);
  font-size: 0.62rem; font-weight: 700; color: var(--clay-700);
  white-space: nowrap; opacity: 0; transition: opacity 0.25s var(--ease);
  background: #fff; padding: 3px 8px; border-radius: 8px; box-shadow: var(--shadow-sm);
  pointer-events: none; margin-bottom: 4px;
}
.garden__spot--planted:hover .garden__spot-name { opacity: 1; }

@keyframes flowerGrow {
  0% { transform: scale(0.15) translateY(20%); opacity: 0; }
  60% { transform: scale(1.12) translateY(0); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.garden__type-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.garden__type-option { cursor: pointer; }
.garden__type-option input { position: absolute; opacity: 0; pointer-events: none; }
.garden__type-option span {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 62px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--cream);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.garden__type-option span .flower-svg { width: 28px; height: 40px; filter: none; opacity: 1; transform: none; animation: none; }
.garden__type-option input:checked + span { border-color: var(--terra); background: var(--white); transform: scale(1.08); box-shadow: var(--shadow-sm); }

@media (max-width: 680px) {
  .garden__bed { grid-template-columns: repeat(6, 1fr); gap: 6px 8px; padding: 24px 16px 32px; border-width: 7px; }
  .garden__stats { gap: 16px; padding: 16px; }
  .garden__stats strong { font-size: 1.4rem; }
  .flower-svg { width: 26px; height: 36px; }
  .sprout-svg { width: 22px; height: 22px; }
}

/* ===== Карта ===== */
.map-embed {
  width: 100%;
  height: clamp(280px, 40vw, 420px);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Иконка внутри пустой медиа-области карточки */
.card__media-icon { width: 46px; height: 46px; stroke: rgba(255,255,255,0.9); }
