/* ============================================================
   Вишлист на новоселье
   База: глубокий изумруд + кремовый, аккуратная сетка.
   Кринж: только hero (рамка Word 2003, блёстки, бегущая строка)
   и карточка «просто дай денег». Кислотный акцент — точечно.
   ============================================================ */

:root {
  --emerald-950: #031b16;
  --emerald-900: #04231c;
  --emerald-800: #073a2d;
  --emerald-700: #0b5341;
  --emerald-600: #106a53;

  --cream: #f7f1e1;
  --cream-100: #fffaf0;
  --cream-dim: #cfc4a9;
  --ink: #0d241d;
  --ink-soft: #4a6159;

  --acid-pink: #ff2e93;
  --acid-yellow: #eaff3d;
  --gold: #ffcf5c;

  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 108px;

  --shadow-card: 0 2px 0 rgba(4, 35, 28, .18), 0 12px 28px -14px rgba(4, 35, 28, .5);
  --shadow-card-hover: 0 10px 22px -6px rgba(4, 35, 28, .45), 0 30px 60px -28px rgba(255, 46, 147, .5);

  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--cream);
  background: var(--emerald-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* мягкое свечение на фоне всей страницы — даёт глубину */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(16, 106, 83, .55), transparent 60%),
    radial-gradient(700px 500px at 95% 8%, rgba(255, 46, 147, .14), transparent 62%),
    linear-gradient(180deg, var(--emerald-900), var(--emerald-950));
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--acid-yellow); color: var(--ink);
  padding: 10px 16px; border-radius: 0 0 10px 10px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--acid-yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   ШАПКА
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(4, 27, 22, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(247, 241, 225, .12);
}

.header-row {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.brand-emoji { font-size: 26px; line-height: 1; }
.brand-text {
  font-family: var(--font-display); font-weight: 900;
  font-size: 18px; letter-spacing: -.02em; line-height: 1;
  display: flex; flex-direction: column; gap: 3px;
}
.brand-sub {
  font-family: var(--font-body); font-weight: 400;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-dim);
}

.nav { margin-left: auto; min-width: 0; }
.nav ul {
  display: flex; gap: 4px;
  list-style: none; margin: 0; padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }

.nav a {
  display: block;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--cream-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s, background-color .18s;
}
.nav a:hover { color: var(--cream); background: rgba(247, 241, 225, .1); }
.nav a.is-active {
  color: var(--ink);
  background: var(--acid-yellow);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: rgba(247, 241, 225, .1);
  border: 1px solid rgba(247, 241, 225, .18);
  color: var(--cream);
  font-size: 18px; line-height: 1;
  padding: 9px 13px; border-radius: 10px;
  cursor: pointer;
}

/* Прогресс-бар */
.progress {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px 11px;
  display: flex; align-items: center; gap: 14px;
}
.progress-track {
  flex: 1;
  height: 9px;
  background: rgba(247, 241, 225, .14);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--acid-yellow), var(--acid-pink));
  box-shadow: 0 0 18px rgba(255, 46, 147, .65);
  transition: width .7s cubic-bezier(.22, 1, .36, 1);
}
.progress-label {
  font-size: 13px; font-weight: 500;
  color: var(--cream-dim);
  white-space: nowrap;
}
.progress-label b { color: var(--acid-yellow); font-weight: 700; }

/* ============================================================
   HERO — зона кринжа
   ============================================================ */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 20px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  left: 50%; top: 4%;
  width: min(1100px, 130vw); height: 620px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(255, 46, 147, .38), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(234, 255, 61, .22), transparent 70%);
  filter: blur(18px);
  animation: glowPulse 9s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles span {
  position: absolute;
  font-size: 26px;
  animation: floaty 5s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 207, 92, .6));
}
.sparkles span:nth-child(1) { left: 7%;  top: 26%; animation-delay: 0s;   font-size: 30px; }
.sparkles span:nth-child(2) { left: 15%; top: 62%; animation-delay: .7s; }
.sparkles span:nth-child(3) { left: 27%; top: 18%; animation-delay: 1.4s; font-size: 20px; }
.sparkles span:nth-child(4) { right: 9%; top: 30%; animation-delay: .4s;  font-size: 28px; }
.sparkles span:nth-child(5) { right: 19%; top: 66%; animation-delay: 1.1s; }
.sparkles span:nth-child(6) { right: 28%; top: 15%; animation-delay: 1.9s; font-size: 22px; }
.sparkles span:nth-child(7) { left: 45%; top: 8%;  animation-delay: 2.3s; font-size: 24px; }
.sparkles span:nth-child(8) { right: 42%; bottom: 6%; animation-delay: 1.6s; font-size: 20px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); opacity: .75; }
  50%      { transform: translateY(-16px) rotate(8deg); opacity: 1; }
}

/* Рамка «как в Word 2003»: двойной кислотный бордюр + эмодзи-бордюр */
.word-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  background: rgba(4, 27, 22, .55);
  border: 5px solid var(--acid-pink);
  outline: 4px solid var(--acid-yellow);
  outline-offset: 5px;
  border-radius: 6px;
  box-shadow:
    0 0 0 12px rgba(4, 27, 22, .55),
    0 26px 70px -24px rgba(255, 46, 147, .75);
}

.word-frame-strip {
  height: 30px;
  overflow: hidden;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 46, 147, .22) 0 12px,
    rgba(234, 255, 61, .18) 12px 24px
  );
  display: flex; align-items: center;
  font-size: 17px; letter-spacing: 6px;
  white-space: nowrap;
  color: transparent;
}
.word-frame-top::after,
.word-frame-bottom::after {
  content: '🎉🏠✨🎊🪩🎈🎉🏠✨🎊🪩🎈🎉🏠✨🎊🪩🎈🎉🏠✨🎊🪩🎈🎉🏠✨🎊🪩🎈';
  color: initial;
  font-size: 15px;
  letter-spacing: 8px;
  padding-left: 6px;
}

.word-frame-inner { padding: 40px 28px 44px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink);
  background: var(--acid-yellow);
  padding: 7px 16px;
  border-radius: 999px;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 var(--acid-pink);
}

/* Гигантский заголовок — приём exaggerated hierarchy */
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.6rem, 15vw, 9.5rem);
  letter-spacing: -.045em;
  margin: 18px 0 20px;
  text-transform: uppercase;
}
.hero-title-line {
  display: block;
  background: linear-gradient(95deg, var(--cream-100) 0%, var(--acid-yellow) 45%, var(--acid-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(4, 27, 22, .8)) drop-shadow(0 0 32px rgba(255, 46, 147, .55));
}
.hero-title-line--alt {
  background: linear-gradient(95deg, var(--acid-pink) 0%, var(--acid-yellow) 55%, var(--cream-100) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-top: -.09em;
  transform: rotate(-1.2deg);
}

/* Рядом — намеренно мелкий, скромный подзаголовок */
.hero-sub {
  max-width: 460px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-dim);
}

.hero-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--acid-pink);
  transition: transform .18s, box-shadow .18s;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--acid-pink); }
.hero-cta:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--acid-pink); }

/* Бегущая строка */
.marquee {
  margin-top: 46px;
  overflow: hidden;
  background: var(--acid-pink);
  border-block: 3px solid var(--acid-yellow);
  transform: rotate(-1deg) scale(1.03);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  padding: 9px 0;
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px; letter-spacing: .14em;
  color: var(--ink);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   КАК ЭТО РАБОТАЕТ
   ============================================================ */

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 20px 90px;
}

.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 72px;
}
.how-item {
  display: flex; align-items: center; gap: 13px;
  padding: 16px 18px;
  background: rgba(247, 241, 225, .06);
  border: 1px solid rgba(247, 241, 225, .13);
  border-radius: var(--radius-sm);
}
.how-item span { font-size: 22px; flex-shrink: 0; }
.how-item p { font-size: 15px; color: var(--cream-dim); }

/* ============================================================
   КАТЕГОРИИ И КАРТОЧКИ — спокойная, читаемая база
   ============================================================ */

.category { margin-bottom: 76px; scroll-margin-top: calc(var(--header-h) + 20px); }
.category:last-child { margin-bottom: 0; }

.category-head {
  display: flex; align-items: baseline; gap: 13px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(247, 241, 225, .16);
}
.category-emoji { font-size: 26px; line-height: 1; }
.category-title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.025em;
}
.category-count {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--cream-dim);
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(276px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s;
  will-change: transform;
}
/* Лёгкий наклон + тень, без резких скачков */
.card:not(.is-reserved):hover,
.card:not(.is-reserved):focus-within {
  transform: translateY(-6px) rotate(-.75deg);
  box-shadow: var(--shadow-card-hover);
}

.card-emoji {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 16px;
  display: inline-block;
  transform-origin: 50% 85%;
}
.card:not(.is-reserved):hover .card-emoji,
.card:not(.is-reserved):focus-within .card-emoji {
  animation: wiggle 1.1s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 100% { transform: translateY(0) rotate(0); }
  25%      { transform: translateY(-5px) rotate(-8deg); }
  75%      { transform: translateY(-2px) rotate(8deg); }
}

.card-title {
  font-family: var(--font-body);
  font-size: 17px; font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.01em;
  margin-bottom: 7px;
}
.card-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--emerald-700);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  align-self: flex-start;
  padding-bottom: 1px;
  transition: color .18s;
}
.card-link:hover { color: var(--acid-pink); }

/* ============================================================
   СКЛАДЧИНА — прогресс сбора на карточке
   ============================================================ */

.pool {
  margin: 2px 0 18px;
  padding: 14px 15px 12px;
  background: rgba(13, 36, 29, .055);
  border: 1px solid rgba(13, 36, 29, .1);
  border-radius: var(--radius-sm);
}

.pool-bar {
  height: 8px;
  background: rgba(13, 36, 29, .13);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.pool-fill {
  height: 100%;
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald-600), var(--acid-pink));
  transition: width .7s cubic-bezier(.22, 1, .36, 1);
}

.pool-sum {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.3;
}
.pool-sum b {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.pool-backers {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 3px;
  opacity: .85;
}

/* Собранные складчины гасим так же, как занятые карточки */
.card--pooled.is-reserved .pool {
  background: rgba(247, 241, 225, .05);
  border-color: rgba(247, 241, 225, .16);
}
.card--pooled.is-reserved .pool-bar { background: rgba(247, 241, 225, .16); }
.card--pooled.is-reserved .pool-fill {
  background: rgba(247, 241, 225, .4);
}
.card--pooled.is-reserved .pool-sum,
.card--pooled.is-reserved .pool-backers { color: var(--cream-dim); }
.card--pooled.is-reserved .pool-sum b { color: var(--cream-dim); }

/* Забронированные */
.card.is-reserved {
  background: rgba(247, 241, 225, .07);
  color: var(--cream-dim);
  box-shadow: none;
  border: 1px dashed rgba(247, 241, 225, .25);
}
.card.is-reserved .card-emoji { filter: grayscale(1); opacity: .45; }
.card.is-reserved .card-title { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .8; }
.card.is-reserved .card-note { color: rgba(207, 196, 169, .7); }
.card.is-reserved .card-link { color: var(--cream-dim); }

.card-stamp {
  position: absolute;
  top: 16px; right: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--acid-pink);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(6deg);
}

/* ============================================================
   КНОПКИ
   ============================================================ */

.btn {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 700;
  padding: 13px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, background-color .16s;
}
.btn-block { width: 100%; }

.btn-primary {
  background: var(--emerald-800);
  color: var(--cream);
  box-shadow: 0 3px 0 var(--emerald-950);
}
.btn-primary:hover { background: var(--emerald-700); transform: translateY(-2px); box-shadow: 0 5px 0 var(--emerald-950); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--emerald-950); }
.btn-primary[disabled] { opacity: .6; cursor: progress; transform: none; }

.btn-taken {
  background: transparent;
  color: var(--cream-dim);
  border: 1px solid rgba(247, 241, 225, .26);
  cursor: not-allowed;
  font-weight: 500;
}

/* ============================================================
   КАРТОЧКА «ПРОСТО ДАЙ ДЕНЕГ» — вторая вспышка кринжа
   ============================================================ */

.category--money .cards { grid-template-columns: 1fr; }

.card--money {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 46, 147, .08) 0 16px, transparent 16px 32px),
    linear-gradient(135deg, #17331a, #0b2a1f 60%, #2a1030);
  color: var(--cream);
  border: 3px solid var(--acid-yellow);
  outline: 3px solid var(--acid-pink);
  outline-offset: 4px;
  border-radius: var(--radius);
  padding: 40px 32px 34px;
  text-align: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 0 0 10px rgba(4, 27, 22, .5), 0 24px 60px -26px rgba(234, 255, 61, .5);
}
.card--money .card-emoji { font-size: 64px; margin-bottom: 18px; }
.card--money .card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: -.03em;
  color: var(--acid-yellow);
  text-shadow: 2px 2px 0 var(--acid-pink);
}
.card--money .card-note { color: var(--cream-dim); max-width: 380px; margin-inline: auto; }
.card--money .card-actions { width: min(340px, 100%); }
.card--money .btn-primary {
  background: var(--acid-pink);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 0 #a4005c;
  animation: moneyPulse 2.6s ease-in-out infinite;
}
.card--money .btn-primary:hover { background: #ff4ba4; box-shadow: 0 6px 0 #a4005c; animation: none; }
@keyframes moneyPulse {
  0%, 100% { box-shadow: 0 4px 0 #a4005c, 0 0 0 0 rgba(255, 46, 147, .5); }
  50%      { box-shadow: 0 4px 0 #a4005c, 0 0 0 16px rgba(255, 46, 147, 0); }
}

/* Купюры разлетаются при hover */
.bills { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bills span {
  position: absolute;
  bottom: 22%;
  left: 50%;
  font-size: 30px;
  opacity: 0;
}
.card--money:hover .bills span,
.card--money:focus-within .bills span {
  animation: fly 1.5s ease-out infinite;
}
.bills span:nth-child(1) { animation-delay: 0s;   --dx: -190px; --rot: -40deg; }
.bills span:nth-child(2) { animation-delay: .18s; --dx:  180px; --rot:  38deg; }
.bills span:nth-child(3) { animation-delay: .36s; --dx: -105px; --rot:  22deg; }
.bills span:nth-child(4) { animation-delay: .54s; --dx:  110px; --rot: -26deg; }
.bills span:nth-child(5) { animation-delay: .72s; --dx:  -30px; --rot:  14deg; }
.bills span:nth-child(6) { animation-delay: .9s;  --dx:   40px; --rot: -12deg; }
@keyframes fly {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(.6) rotate(0); }
  18%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -190px) scale(1.15) rotate(var(--rot)); }
}

/* ============================================================
   МОДАЛКА
   ============================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 20, 16, .8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn .2s ease;
  overflow-y: auto;
}
.modal-backdrop[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: min(440px, 100%);
  background: var(--cream);
  color: var(--ink);
  border-radius: 22px;
  padding: 30px 28px 28px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  animation: pop .28s cubic-bezier(.22, 1.2, .36, 1);
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: rgba(13, 36, 29, .08);
  color: var(--ink);
  font-size: 15px; line-height: 1;
  cursor: pointer;
  transition: background-color .16s;
}
.modal-close:hover { background: rgba(13, 36, 29, .17); }

.modal-gift {
  display: flex; align-items: center; gap: 15px;
  margin-bottom: 24px; padding-right: 34px;
}
.modal-gift-emoji { font-size: 40px; line-height: 1; flex-shrink: 0; }
.modal-kicker {
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--acid-pink);
  margin-bottom: 4px;
}
.modal-gift-title {
  font-family: var(--font-body);
  font-size: 18px; font-weight: 700; line-height: 1.3;
}

.field { display: block; margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field-label i { color: var(--acid-pink); font-style: normal; font-weight: 700; }
.field-label em { font-style: normal; opacity: .65; font-size: 12px; }

.field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 2px solid rgba(13, 36, 29, .16);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .16s;
}
.field input::placeholder { color: rgba(74, 97, 89, .5); }
.field input:focus { outline: none; border-color: var(--emerald-600); }
.field input.is-invalid { border-color: var(--acid-pink); }

.field-error {
  display: block;
  font-size: 12.5px;
  color: #c4006b;
  margin-top: 5px;
  min-height: 0;
}

.field[hidden] { display: none; }

.field-hint {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  opacity: .85;
}

/* Поле взноса: символ рубля внутри инпута */
.amount-wrap { position: relative; display: block; }
.amount-wrap input {
  padding-right: 42px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .01em;
}
.amount-rub {
  position: absolute;
  right: 15px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-soft);
  pointer-events: none;
}

/* «Беру целиком» — подставляет остаток суммы в поле */
.amount-all {
  display: inline-block;
  margin-top: 9px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--emerald-700);
  background: rgba(16, 106, 83, .1);
  border: 1px solid rgba(16, 106, 83, .28);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .16s, color .16s;
}
.amount-all:hover { background: var(--emerald-700); color: var(--cream-100); }
.amount-all[hidden] { display: none; }

.modal-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 4px 0 18px;
}

.form-error {
  background: rgba(255, 46, 147, .12);
  border: 1px solid rgba(255, 46, 147, .4);
  color: #a4005c;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.form-error[hidden] { display: none; }

/* Успех */
.modal--success { text-align: center; overflow: hidden; }
.success-emoji { font-size: 62px; line-height: 1; margin-bottom: 14px; animation: pop .45s cubic-bezier(.22, 1.4, .36, 1); }
.modal--success h2 { font-size: 27px; margin-bottom: 10px; letter-spacing: -.02em; }
.modal--success p { color: var(--ink-soft); margin-bottom: 24px; }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute;
  top: -14px;
  width: 9px; height: 15px;
  opacity: .95;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(460px) rotate(640deg); opacity: 0; }
}

/* Тост */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 400;
  background: var(--ink);
  color: var(--cream);
  font-size: 14.5px; font-weight: 500;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .6);
  animation: toastIn .28s cubic-bezier(.22, 1.2, .36, 1);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

.loading { color: var(--cream-dim); text-align: center; padding: 50px 0; }

.site-footer {
  border-top: 1px solid rgba(247, 241, 225, .12);
  padding: 30px 20px 40px;
  text-align: center;
  font-size: 14px;
  color: var(--cream-dim);
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 860px) {
  :root { --header-h: 116px; }

  .nav-toggle { display: block; }
  .nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 340px; }

  /* с открытым меню шапка становится непрозрачной, иначе hero просвечивает */
  .site-header.is-nav-open {
    background: #031410;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  }
  .nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 10px 0 4px;
  }
  .nav a { padding: 11px 14px; border-radius: 10px; }
  .header-row { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .word-frame { outline-width: 3px; border-width: 4px; }
  .word-frame-inner { padding: 28px 18px 32px; }
  .hero { padding-top: calc(var(--header-h) + 34px); }
  .hero-title { margin: 14px 0 16px; }
  main { padding: 52px 16px 70px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .how { margin-bottom: 52px; }
  .category { margin-bottom: 56px; }
  .category-count { display: none; }
  .modal { padding: 26px 20px 24px; }
}

/* ============================================================
   ДОСТУПНОСТЬ: уважаем «меньше движения»
   ============================================================ */

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