/* Новогодняя акция фонда «Планета поддержки»: звёзды над ёлкой.
   Палитра фонда: кремовый #FCECD1, жёлтый #FFB92A, коралловый #E46A52, бирюзовый #66A495,
   светло-зелёный #B1D5A7, персиковый #FBC5A9, графит #575757. Шрифт — Nunito.
   Жёлтый оставлен только для звёзд, чтобы страница была спокойной. */

:root {
  --page: #fdf6ea;
  --cream: #FCECD1;
  --paper: #fffaf2;
  --ink: #2f5f56;          /* тёмный бирюзовый — заголовки, кнопки */
  --ink-hover: #264f47;
  --teal: #66A495;
  --green-soft: #B1D5A7;
  --peach: #FBC5A9;
  --peach-soft: #fdeadf;
  --coral: #E46A52;
  --yellow: #FFB92A;
  --text: #575757;
  --muted: #6b6b6b;
  --line: #eedcc0;
  --cream-deep: #f3e3c6;
  --danger: #b23b25;
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;
  --wrap: 1160px;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font);
  color: var(--ink);
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

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

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
}

section[id] { scroll-margin-top: 16px; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 13px 34px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-hover); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--outline:hover { background: rgba(47, 95, 86, .07); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { min-height: 44px; padding: 10px 24px; font-size: 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- плашка демо-режима ---------- */

.demo-bar {
  margin: 0;
  background: var(--cream);
  color: #5b4a2e;
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- первый экран: небо над ёлкой на весь экран ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip; /* обрезает снег, но не становится прокручиваемым блоком */
  background:
    linear-gradient(180deg, #1c3732 0%, #24463e 32%, #386a5e 62%, #6f9f90 84%, #c9c2a6 100%) top / 100% 100svh no-repeat,
    var(--page);
}
.hero__sky {
  /* Ровно экран: если форма справа длиннее, небо не растягивается и звёзды не мылятся. */
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: 100svh;
  z-index: 0;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 48px;
}
.hero__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  align-self: start;   /* небо и ёлка — ровно экран, даже если форма справа длиннее */
  min-height: 100svh;
  padding-top: clamp(32px, 7vh, 80px);
}
.hero__head { max-width: 620px; }
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.04;
  font-weight: 900;
  margin: 0 0 14px;
}
.hero__lead {
  margin: 0 auto;
  max-width: 34ch;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, .84);
}
.hero__stage {
  flex: 1 1 auto;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero__tree {
  position: relative;
  height: clamp(200px, 36vh, 380px);
  width: auto;
  margin-bottom: -22px;
}

/* Снег под ёлкой — здесь счётчик зажжённых звёзд. */
.hero__ground {
  position: relative;
  width: 100%;
  min-height: 150px;
  padding: 28px 0 26px;
}
.hero__ground::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 220vw;
  bottom: -3000px;
  transform: translateX(-50%);
  background: var(--page);
  border-radius: 50% 50% 0 0 / 70px 70px 0 0;
}
.hero__count {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero__count { font-size: clamp(21px, 2.1vw, 28px); font-weight: 900; text-wrap: balance; max-width: 22ch; margin: 0 auto; }
.hero__caption { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.hero__hint { display: block; margin-top: 2px; font-weight: 700; color: var(--coral); }

/* Небо кликабельно: сетка поверх него пропускает нажатия, кроме текста и формы. */
.hero__grid { pointer-events: none; }
.hero__head, .hero__ground, .hero__form { pointer-events: auto; }
.hero__sky { touch-action: manipulation; }

.sky-tip {
  position: fixed;
  z-index: 95;
  transform: translate(-50%, -100%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 242, .96);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.star-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 0;
  padding: 8px 8px 8px 14px;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.star-choice[hidden] { display: none; }
.star-choice span { color: #ffd27a; white-space: nowrap; }
.star-choice__reset {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.star-choice__reset:hover { background: rgba(255, 255, 255, .24); }

.hero__form { align-self: center; padding: 40px 0; }

/* ---------- форма ---------- */

.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(87, 70, 40, .08);
}
.form-panel__title { font-size: 26px; font-weight: 900; line-height: 1.15; margin: 0 0 18px; }

fieldset { border: 0; margin: 0 0 16px; padding: 0; }
legend { padding: 0; font-weight: 800; font-size: 16px; margin-bottom: 10px; color: var(--ink); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.amount input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amount label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 4px;
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  background: #fff;
  white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease;
}
.amount label:hover { border-color: var(--teal); }
.amount input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.amount input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }

.amount-hint {
  margin: 12px 0 0;
  padding: 10px 14px 10px 40px;
  border-radius: var(--radius-s);
  background: var(--cream);
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.4;
  position: relative;
  min-height: 1.4em;
}
.amount-hint::before {
  content: "★";
  position: absolute;
  left: 14px; top: 9px;
  color: #e59e10;
  font-size: 17px;
}
.amount-hint:empty { display: none; }

.field { margin: 12px 0 14px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
  font: inherit;
  color: #333;
  background: #fff;
}
.field input:focus-visible { border-color: var(--ink); }
.field__hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.field__error { margin: 6px 0 0; font-size: 15px; color: var(--danger); font-weight: 700; }
.field--invalid input { border-color: var(--danger); }

.form-panel .btn--primary { width: 100%; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--ink); }
.check span { font-size: 14px; color: var(--muted); }
.form-status { margin: 12px 0 0; font-weight: 700; color: var(--ink); }
.form-status--error { color: var(--danger); }

.notice {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius-m);
  background: var(--cream);
  color: #4a4a4a;
  font-weight: 700;
}

/* ---------- секции ---------- */

.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section__title { font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; line-height: 1.1; margin-bottom: 32px; }

/* ---------- как это работает ---------- */

/* Большой воздух между формой и рассказом о механике. */
.hero + .section { margin-top: 160px; border-top: 0; }

/* ---------- кнопка «К небу» ---------- */

.to-sky {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #24463e;
  color: #ffd27a;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(24, 48, 43, .35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.to-sky.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-sky:hover { background: #1c3732; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step { border-top: 2px solid var(--peach); padding-top: 18px; }
.step__num { display: block; font-size: 30px; font-weight: 900; color: var(--coral); line-height: 1; margin-bottom: 12px; }
.step__title { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.step__text { margin: 0; }
.steps__cta { margin: 36px 0 0; }

/* ---------- партнёры ---------- */

#partners { border-top: 0; padding-top: 0; }
.partners {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 32px;
  border-radius: var(--radius-l);
  background: var(--peach-soft);
}
.partners__text { display: flex; align-items: center; gap: 20px; flex: 1 1 420px; min-width: 0; }
.partners__icon { width: 64px; height: 64px; flex: 0 0 auto; }
.partners h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; margin-bottom: 4px; }
.partners p { margin: 0; }


/* ---------- лента под счётчиком ---------- */

.hero__ticker {
  display: inline-block;
  margin: 10px 0 0;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.hero__ticker[hidden] { display: none; }

/* ---------- поля формы: подпись и подарок ---------- */

.field__opt { font-weight: 600; color: var(--muted); }
.gift-toggle {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border: 2px dashed var(--peach);
  border-radius: var(--radius-m);
  background: #fff;
}
.check--gift { margin: 0; }
.check--gift span { font-size: 15px; color: var(--text); }
.check--gift b { color: var(--ink); }
.gift-fields { margin-top: 10px; }
.gift-fields[hidden] { display: none; }
.gift-fields .field { margin: 10px 0; }

/* ---------- что даёт одно занятие ---------- */

.lesson__scheme {
  display: grid;
  grid-template-columns: minmax(0, .9fr) 90px minmax(0, 1.3fr);
  align-items: center;
  margin-top: 8px;
}
.lesson__core {
  text-align: center;
  padding: 34px 26px;
  border-radius: 50% 50% var(--radius-l) var(--radius-l) / 38% 38% var(--radius-l) var(--radius-l);
  background: linear-gradient(180deg, #24463e 0%, #386a5e 100%);
  color: #fff;
}
.lesson__star { width: 120px; height: 120px; margin: 0 auto 6px; }
.lesson__core-title { margin: 0 0 8px; font-size: 26px; font-weight: 900; color: #ffd27a; }
.lesson__core-text { margin: 0; color: rgba(255,255,255,.88); font-size: 16px; }
.lesson__lines { width: 100%; height: 100%; min-height: 300px; overflow: visible; }
.lesson__lines path { fill: none; stroke: var(--coral); stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.lesson__gains { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gain {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-m);
  background: var(--paper);
  border: 1px solid var(--line);
}
.gain__icon { flex: 0 0 48px; width: 48px; height: 48px; padding: 8px; border-radius: 14px; background: var(--peach-soft); }
.gain__icon * { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gain__icon .fill { fill: var(--coral); stroke: none; }
.gain__title { font-size: 19px; font-weight: 800; margin: 0 0 4px; }
.gain__text { margin: 0; font-size: 16px; }

.quote {
  position: relative;
  margin: 48px 0 0;
  padding: 34px 36px 28px 92px;
  border-radius: var(--radius-l);
  background: var(--peach-soft);
}
.quote::before {
  content: "“";
  position: absolute;
  left: 28px; top: 6px;
  font-size: 110px;
  line-height: 1;
  font-weight: 900;
  color: var(--coral);
}
.quote blockquote { margin: 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; line-height: 1.5; color: var(--ink); }
.quote figcaption { margin-top: 12px; color: var(--muted); font-weight: 700; }
.quote__draft { /* метка черновика, сейчас не используется */
  position: absolute;
  top: -12px; right: 24px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: #3b2c06;
  font-size: 13px;
  font-weight: 800;
}

/* ---------- звезда в подарок ---------- */

.gift__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.gift__lead { margin: 0 0 18px; max-width: 52ch; }
.gift__steps { margin: 0 0 24px; padding-left: 22px; color: var(--ink); font-weight: 700; }
.gift__steps li { margin: 4px 0; }
.gift-card {
  position: relative;
  padding: 36px 32px 32px;
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, #1c3732 0%, #2b564e 60%, #4f8a7c 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(28, 55, 50, .25);
  transform: rotate(-1.5deg);
}
.gift-card__star { width: 110px; height: 110px; margin: 0 auto 8px; }
.gift-card__eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffd27a; }
.gift-card__title { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; color: #fff; line-height: 1.15; }
.gift-card__text { margin: 0 auto 14px; max-width: 34ch; color: rgba(255,255,255,.9); }
.gift-card__wish { margin: 0 auto; max-width: 34ch; font-style: italic; color: #ffe7b3; font-weight: 700; }

/* ---------- лента ---------- */

.feed__list, .feed__pager { max-width: 760px; }
.feed__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-m);
  background: var(--paper);
  border: 1px solid var(--line);
}
.feed__star { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: #c9b48c; font-size: 18px; }
.feed__item--lit .feed__star { background: #24463e; color: #ffd27a; }
.feed__body { flex: 1 1 auto; min-width: 0; }
.feed__title { margin: 0; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.feed__meta { margin: 0; font-size: 14px; color: var(--muted); }
.feed__find {
  flex: 0 0 auto;
  border: 0;
  background: none;
  color: var(--coral);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feed__empty { color: var(--muted); }
.feed__list { min-height: 360px; align-content: start; } /* высота не прыгает при переключении страниц */
.feed__pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0 0; }
.feed__pager[hidden] { display: none; }
.feed__page {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.feed__page:hover:not(:disabled) { border-color: var(--ink); }
.feed__page.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.feed__page:disabled { opacity: .35; cursor: default; }
.feed__page--more { margin-left: auto; border-color: var(--ink); }
.feed__gap { padding: 0 4px; color: var(--muted); }

/* ---------- после акции ---------- */

.after__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.after__list li { padding: 24px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); }
.after__when { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px; background: var(--peach-soft); color: var(--coral); font-weight: 800; font-size: 14px; }
.after__list h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.after__list p { margin: 0; }

/* ---------- мини-подвал ---------- */

.legal { padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.legal p { margin: 2px 0; }
.legal a { color: var(--muted); }

/* ---------- благодарность: подарок и «Поделиться» ---------- */

.gift-ready { margin: 24px 0 0; padding: 20px; border-radius: var(--radius-m); background: var(--peach-soft); }
.gift-ready[hidden] { display: none; }
.gift-ready__title { margin: 0 0 6px; font-weight: 900; font-size: 20px; color: var(--ink); }
.copy-row { display: flex; gap: 8px; margin: 12px 0; }
.copy-row input { flex: 1 1 auto; min-width: 0; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--radius-s); font: inherit; font-size: 14px; }
.share { margin: 24px 0 0; }
.share__title { margin: 0 0 10px; font-weight: 800; color: var(--ink); }
.share__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.share__btn:hover { border-color: var(--ink); }
.share__btn--main { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- страница подарка ---------- */

.gift-page {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 48px 0;
  background: radial-gradient(120% 80% at 50% 0%, #2b564e 0%, #1c3732 60%, #16302b 100%);
}
.gift-card--page { max-width: 620px; margin: 0 auto; transform: none; padding: 44px 36px 36px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); box-shadow: none; }
.gift-card--page .gift-card__star { width: 150px; height: 150px; }
.gift-card__note { margin: 22px auto 0; max-width: 40ch; font-size: 14px; color: rgba(255,255,255,.7); }
.gift-card__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.btn--light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn--light:hover { background: rgba(255,255,255,.1); }
.btn--primary-light { background: #ffd27a; color: #1c3732; }
.btn--primary-light:hover { background: #ffc552; }


/* ---------- окно «Стать партнёром» ---------- */

html.has-modal { overflow: hidden; }
dialog.modal {
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--page);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(20, 40, 36, .45);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog.modal::backdrop { background: rgba(20, 40, 36, .62); backdrop-filter: blur(2px); }
.modal__inner { padding: 40px 44px 36px; }
.modal__close {
  position: sticky;
  float: right;
  top: 14px;
  margin: 14px 14px 0 0;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { background: var(--line); }
.partner-modal__title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; line-height: 1.1; margin: 0 0 10px; }
.partner-modal__lead { margin: 0 0 24px; max-width: 60ch; }
.partner-modal__sub { font-size: 20px; font-weight: 900; margin: 28px 0 12px; }

.formats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.format {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: var(--paper);
  border: 1px solid var(--line);
}
.format--main { grid-column: 1 / -1; background: linear-gradient(135deg, #24463e, #386a5e); border: 0; color: rgba(255,255,255,.9); }
.format--main h3 { color: #ffd27a; }
.format__icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--peach-soft);
  color: var(--coral);
  font-size: 18px;
  font-weight: 900;
}
.format--main .format__icon { background: rgba(255,255,255,.12); color: #ffd27a; }
.format h3 { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.format p { margin: 0; font-size: 15px; line-height: 1.5; }

.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.package {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  border-radius: var(--radius-m);
  border: 2px solid var(--line);
  background: #fff;
  text-align: center;
}
.package b { font-size: 20px; font-weight: 900; color: var(--ink); }
.package span { font-size: 17px; font-weight: 800; color: var(--coral); }
.package small { color: var(--muted); font-size: 14px; }
.package--accent { border-color: var(--yellow); background: #fffaf0; }
.partner-modal__terms { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.partner-form { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.partner-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.partner-form select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
  font: inherit;
  color: #333;
  background: #fff;
}
.partner-form__formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.partner-form__formats legend { width: 100%; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.partner-form .btn--primary { margin-top: 16px; }
.partner-done { text-align: center; padding: 24px 0 8px; }
.partner-done[hidden], .partner-form[hidden] { display: none; }
.partner-done__star { margin: 0; font-size: 56px; color: var(--yellow); line-height: 1; }
.partner-done h3 { font-size: 26px; font-weight: 900; margin: 8px 0; }


/* ---------- небо: приближение и весь экран ---------- */

.hero__stage { position: relative; width: 100%; }
.sky-ui { pointer-events: auto; }
.sky-ui__bar {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.sky-ui__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(24, 48, 43, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.sky-ui__btn--wide { font-size: 14px; }
.sky-ui__btn:hover { background: rgba(24, 48, 43, .85); }
.sky-ui__btn[hidden] { display: none; }
/* На странице — только «На весь экран»; приближать можно уже на весь экран. */
.hero:not(.is-sky-full) .sky-ui__btn[data-sky-zoom] { display: none; }

/* На весь экран: небо поверх страницы. */
.hero.is-sky-full { z-index: 100; }
.hero.is-sky-full .hero__grid { z-index: 70; }
.hero.is-sky-full .hero__head,
.hero.is-sky-full .hero__tree,
.hero.is-sky-full .hero__ground,
.hero.is-sky-full .hero__form { visibility: hidden; }
.hero.is-sky-full .hero__sky {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 60;
  background: linear-gradient(180deg, #1c3732 0%, #24463e 40%, #386a5e 80%, #4f8a7c 100%);
  cursor: grab;
}
.hero.is-sky-full .sky-ui__bar { position: fixed; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 72; }
.sky-ui__full[hidden], .sky-ui__pick[hidden] { display: none; }
.sky-ui__full {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 72;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(20,40,36,.85), rgba(20,40,36,0));
  color: rgba(255,255,255,.9);
}
.sky-ui__hint { margin: 0; font-size: 14px; font-weight: 700; }
.sky-ui__close {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.sky-ui__pick {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 72;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(24, 48, 43, .9);
  color: #ffd27a;
  font-weight: 800;
}

/* ---------- плашки над заголовком ---------- */

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.hero__badge--match { background: rgba(255, 185, 42, .18); border-color: rgba(255, 210, 122, .5); color: #ffe7b3; }
.hero__badge b { color: #ffd27a; font-size: 17px; }

/* ---------- команды и логотипы ---------- */

.teams { margin-top: 28px; }
.teams__title { font-size: 20px; font-weight: 900; margin: 0 0 10px; }
.teams__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.teams__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-m);
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
}
.teams__list b { color: var(--coral); white-space: nowrap; }
.supporters { margin-top: 28px; }
.supporters__title { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.supporters__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.supporters__list img { height: 44px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(.2); }

/* ---------- появление блоков ---------- */

.reveal { opacity: 1; }
body.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
body.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- благодарность и служебные страницы ---------- */

.thanks { padding: 40px 0 64px; }
.thanks__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
}
.thanks__title { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin-bottom: 12px; }
.thanks__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.thanks__new-star { margin: 20px 0 0; padding: 16px 20px; border-radius: var(--radius-m); background: var(--ink); color: #fff; font-weight: 700; }
.bar { height: 14px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--yellow)); transition: width .6s ease; min-width: 8px; }
.progress__caption { margin: 12px 0 0; color: var(--muted); }
.postcard { border-radius: var(--radius-l); overflow: hidden; }
.postcard canvas, .postcard img { width: 100%; height: auto; }
.fact { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 20px; }
.fact__value { display: block; font-size: 24px; font-weight: 900; color: var(--ink); }
.fact__label { color: var(--muted); }

/* ---------- адаптив ---------- */

@media (max-width: 960px) {
  .lesson__scheme { grid-template-columns: 1fr; gap: 18px; }
  .lesson__lines { display: none; }
  .gift__grid { grid-template-columns: 1fr; gap: 32px; }
  .after__list { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__form { padding: 0 0 56px; max-width: 520px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__main { padding-top: 28px; }
  .hero__tree { height: clamp(170px, 30vh, 260px); margin-bottom: -16px; }
  .hero__ground { min-height: 120px; padding: 26px 0 24px; }
  .hero__ground::before { border-radius: 50% 50% 0 0 / 40px 40px 0 0; }
  .form-panel { padding: 22px 18px; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }
  .hero + .section { margin-top: 96px; }
  .partners { padding: 24px 20px; }
  .partners__text { flex-direction: column; align-items: flex-start; }
  .thanks__card { padding: 26px 20px; }
  .quote { padding: 54px 20px 22px; }
  .quote::before { left: 16px; top: -4px; font-size: 90px; }
  .gift-card { padding: 28px 20px 24px; transform: none; }
  .feed__item { flex-wrap: wrap; }
  .feed__find { margin-left: 50px; }
  .copy-row { flex-direction: column; }
  .modal__inner { padding: 22px 18px 24px; }
  .sky-ui__bar { bottom: 22px; }
  .sky-ui__hint { font-size: 13px; }
  .sky-ui__pick { left: 16px; right: 16px; bottom: 72px; justify-content: space-between; }
  .formats, .packages, .partner-form__grid { grid-template-columns: 1fr; }
}

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