/* Сбор на операцию Уолтера Уайта. Тёмная хвойная зелень, бумага и одна янтарная краска — на деньги и действие. */

:root {
  --ink: #141719;
  --paper: #eeebe3;
  --card: #fcfbf7;
  --dark: #13211a;
  --green: #2c5c41;
  --amber: #f0a92b;
  --amber-deep: #b9761a;
  --sage: #c8cec2;
  --muted: color-mix(in oklab, var(--ink) 62%, var(--paper));
  --faint: color-mix(in oklab, var(--ink) 42%, var(--paper));
  --line: color-mix(in oklab, var(--ink) 16%, var(--paper));
  --on-dark: #e9e6dc;
  --on-dark-soft: color-mix(in oklab, #e9e6dc 66%, var(--dark));
  --display: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --shell: 1140px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--display);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
ol,
figure,
blockquote,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

fieldset {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
  /* без этого атрибуты width/height в разметке перебивают aspect-ratio */
  height: auto;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

:where(a, button, input, textarea, summary, label):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.h2 {
  font-weight: 600;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

/* ---------- Кнопки и поля ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--line);
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.16s,
    color 0.16s,
    transform 0.08s;
}

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

.btn-accent {
  background: var(--amber);
  color: #21160a;
  font-weight: 600;
}

.btn-accent:hover {
  background: color-mix(in oklab, var(--amber) 88%, #fff);
}

.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--on-dark) 35%, transparent);
}

.btn-ghost:hover {
  background: color-mix(in oklab, var(--on-dark) 10%, transparent);
}

.btn-quiet {
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  min-height: 42px;
}

.btn-quiet:hover {
  background: var(--line);
  color: var(--ink);
}

.btn-lg {
  min-height: 56px;
  padding-inline: 28px;
  font-size: 17px;
}

.btn-wide {
  width: 100%;
}

.btn b {
  font-weight: 600;
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.16s;
}

.input:focus {
  border-color: var(--green);
}

.input::placeholder {
  color: color-mix(in oklab, var(--ink) 30%, #fff);
}

textarea.input {
  min-height: 70px;
  resize: vertical;
  line-height: 1.4;
}

.link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ---------- Полоса о прототипе ---------- */
.demo-strip {
  padding: 9px 18px;
  background: #0d1712;
  color: color-mix(in oklab, var(--on-dark) 62%, #0d1712);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

/* ---------- Шапка ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 11px clamp(18px, 4vw, 40px);
}

.top-mark {
  display: grid;
  text-decoration: none;
  line-height: 1.15;
}

.top-mark-name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.top-mark-note {
  color: var(--faint);
  font-size: 12.5px;
}

.top-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  margin-left: auto;
}

.top-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--sage);
  overflow: hidden;
}

.top-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--amber);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.top-sum {
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
}

.top-sum b {
  color: var(--ink);
  font-weight: 600;
}

.btn-give {
  margin-left: auto;
  background: var(--green);
  color: #fff;
  min-height: 42px;
}

.btn-give:hover {
  background: color-mix(in oklab, var(--green) 85%, #000);
}

/* ---------- Главный экран ---------- */
.hero {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: clamp(40px, 6vw, 76px) clamp(48px, 7vw, 88px);
}

.hero-in {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-place {
  color: var(--amber);
  font-size: 14px;
  font-weight: 500;
}

.hero-name {
  margin-top: 14px;
  font-weight: 600;
  font-size: clamp(50px, 10vw, 112px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: #fff;
}

.hero-role {
  margin-top: 18px;
  color: var(--on-dark);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--on-dark-soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
}

.hero-lead b {
  color: #fff;
  font-weight: 600;
}

.hero-sign {
  margin-top: 14px;
  color: var(--faint);
  color: color-mix(in oklab, var(--on-dark) 48%, var(--dark));
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid color-mix(in oklab, var(--on-dark) 18%, transparent);
}

.hero-facts dt {
  color: color-mix(in oklab, var(--on-dark) 55%, var(--dark));
  font-size: 13px;
}

.hero-facts dd {
  margin-top: 3px;
  color: #fff;
  font-weight: 600;
  font-size: clamp(22px, 2.8vw, 28px);
  letter-spacing: -0.03em;
}

.hero-facts div:first-child dd {
  color: var(--amber);
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  max-height: min(62vh, 560px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 6px;
}

.hero-photo figcaption {
  margin-top: 12px;
  color: color-mix(in oklab, var(--on-dark) 50%, var(--dark));
  font-size: 13px;
}

/* ---------- Колба и смета ---------- */
.fund {
  padding-block: clamp(48px, 7vw, 92px);
}

.fund-in {
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.flask {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  overflow: visible;
}

.flask-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.flask-liquid {
  fill: var(--amber);
  transition:
    y 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    height 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.flask-level {
  clip-path: url(#flask-body);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.flask-level path {
  fill: none;
  stroke: var(--amber-deep);
  stroke-width: 3;
}

.flask-ticks path {
  stroke: color-mix(in oklab, var(--ink) 32%, var(--paper));
  stroke-width: 1.5;
}

.flask-ticks text {
  fill: var(--faint);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 400;
}

.fund-note {
  max-width: 46rem;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}

.costs {
  display: grid;
  gap: 2px;
  margin-top: 28px;
}

.costs li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px auto;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}

.cost-bar {
  height: 8px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--sage) 70%, var(--paper));
  overflow: hidden;
}

.cost-bar i {
  display: block;
  height: 100%;
  background: var(--green);
}

.cost-sum {
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.fund-left {
  margin-top: 24px;
  font-size: 17px;
  color: var(--muted);
}

.fund-left b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Письмо ---------- */
.letter {
  padding-block: clamp(48px, 7vw, 96px);
  background: var(--card);
  border-block: 1px solid var(--line);
}

.letter-from {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.letter-body {
  max-width: 680px;
  margin-inline: auto;
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.68;
  font-variant-numeric: normal;
}

.letter-body::after {
  content: '';
  display: block;
  clear: both;
}

.letter-body p + p {
  margin-top: 1.1em;
}

.letter-body .lead {
  font-size: 23px;
  line-height: 1.48;
  font-weight: 500;
}

.letter-last {
  font-weight: 500;
}

.letter-sign {
  margin-top: 34px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.letter-sign span {
  color: var(--faint);
  font-weight: 400;
}

.pull {
  margin-block: 44px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.028em;
}

.pull::before {
  content: '';
  display: block;
  width: 46px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--amber);
}

.shot {
  margin-block: 30px;
}

.shot img {
  width: 100%;
  border-radius: 5px;
}

.shot figcaption {
  margin-top: 9px;
  color: var(--faint);
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.35;
}

/* ---------- Альбом ---------- */
.album {
  padding-block: clamp(36px, 5vw, 64px);
}

.album-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 26px);
  align-items: end;
}

.album-row img {
  width: 100%;
  border-radius: 5px;
}

.album-row li:nth-child(1) img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.album-row li:nth-child(2) img,
.album-row li:nth-child(4) img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.album-cut img {
  aspect-ratio: auto;
}

.album-row p {
  margin-top: 10px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.35;
}

/* ---------- Помощь ---------- */
.give {
  padding-block: clamp(48px, 7vw, 92px);
  background: var(--dark);
  color: var(--on-dark);
}

.give-in {
  display: grid;
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
}

.give .h2 {
  color: #fff;
}

.give-note {
  max-width: 34rem;
  margin-top: 14px;
  color: var(--on-dark-soft);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}

.buys {
  display: grid;
  gap: 1px;
  margin-top: 28px;
}

.buys li {
  padding: 11px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--on-dark) 14%, transparent);
  color: color-mix(in oklab, var(--on-dark) 70%, var(--dark));
  font-size: 15.5px;
  transition:
    color 0.16s,
    border-color 0.16s;
}

.buys li b {
  display: inline-block;
  min-width: 62px;
  color: var(--on-dark);
  font-weight: 600;
}

.buys li.is-on {
  color: #fff;
  border-color: var(--amber);
}

.buys li.is-on b {
  color: var(--amber);
}

.give-safe {
  margin-top: 26px;
  color: color-mix(in oklab, var(--on-dark) 52%, var(--dark));
  font-size: 13.5px;
  line-height: 1.5;
}

.give-safe .link {
  color: color-mix(in oklab, var(--on-dark) 78%, var(--dark));
}

/* ---------- Панель оплаты ---------- */
.panel {
  padding: clamp(20px, 3vw, 30px);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 60px -40px rgb(0 0 0 / 0.8);
}

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  counter-reset: step;
}

.steps li {
  flex: 1;
  padding-top: 9px;
  border-top: 3px solid var(--line);
  color: var(--faint);
  font-size: 13.5px;
  counter-increment: step;
  transition:
    color 0.16s,
    border-color 0.16s;
}

.steps li::before {
  content: counter(step) '. ';
}

.steps li.is-on {
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 500;
}

.steps li.is-done {
  border-color: var(--green);
  color: var(--muted);
}

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

.amounts label {
  position: relative;
  display: block;
}

.amounts input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.amounts span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition:
    border-color 0.14s,
    background-color 0.14s;
}

.amounts label:hover span {
  border-color: var(--green);
}

.amounts input:checked + span {
  border-color: var(--amber);
  background: color-mix(in oklab, var(--amber) 20%, #fff);
}

.amounts input:focus-visible + span {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.amount-own span {
  gap: 2px;
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
}

.own-input {
  width: 62px;
  min-height: 34px;
  margin-left: 4px;
  padding: 2px 8px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-align: center;
}

.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.check small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.check.monthly {
  margin-top: 18px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}

.check.monthly:has(input:checked) {
  border-color: var(--green);
  background: color-mix(in oklab, var(--green) 7%, #fff);
}

.field {
  margin-top: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.field .opt {
  color: var(--faint);
  font-weight: 400;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-input {
  position: relative;
}

.card-input .input {
  padding-right: 62px;
  letter-spacing: 0.04em;
}

.card-brand {
  position: absolute;
  top: 50%;
  right: 12px;
  translate: 0 -50%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.err {
  margin-top: 6px;
  color: #b3261e;
  font-size: 13.5px;
  line-height: 1.35;
}

.err:empty {
  display: none;
}

.err-form {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in oklab, #b3261e 10%, #fff);
}

.input.is-bad {
  border-color: #b3261e;
}

.step > .btn-accent {
  margin-top: 22px;
}

.step > .btn-quiet {
  margin-top: 8px;
}

.code-lead {
  font-size: 16px;
  line-height: 1.5;
}

.code-row {
  margin-top: 18px;
  text-align: center;
}

.code-input {
  width: 190px;
  min-height: 66px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.34em;
  text-align: center;
  text-indent: 0.34em;
}

.code-input:focus {
  border-color: var(--green);
}

.code-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.code-hint b {
  color: var(--ink);
  letter-spacing: 0.08em;
}

/* Готово */
.done {
  text-align: center;
}

.done-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 6px auto 18px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--green) 14%, #fff);
}

.done-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.5s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.done h3 {
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.done-text {
  max-width: 30rem;
  margin: 10px auto 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
}

.receipt {
  display: grid;
  gap: 1px;
  margin-top: 22px;
  text-align: left;
}

.receipt div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.receipt dt {
  color: var(--muted);
}

.receipt dd {
  font-weight: 600;
}

/* ---------- Стена благодарности ---------- */
.wall {
  padding-block: clamp(44px, 6vw, 84px);
}

.wall-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.wall-head p {
  color: var(--muted);
  font-size: 15.5px;
}

.wall-head b {
  color: var(--ink);
  font-weight: 600;
}

.wall-list {
  display: grid;
  gap: 0;
  margin-top: 4px;
}

.wall-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.wall-list li.is-new {
  animation: pop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pop {
  from {
    background: color-mix(in oklab, var(--amber) 28%, var(--paper));
  }
}

.wall-name {
  font-weight: 500;
  font-size: 16px;
}

.wall-amount {
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
}

.wall-when {
  color: var(--faint);
  font-size: 13px;
}

.wall-msg {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.5;
}

.wall-monthly {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: color-mix(in oklab, var(--green) 12%, var(--paper));
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  vertical-align: 1px;
}

/* ---------- Новости сбора ---------- */
.news {
  padding-block: clamp(40px, 6vw, 76px);
  background: var(--card);
  border-block: 1px solid var(--line);
}

.news-list {
  display: grid;
  gap: 26px;
  margin-top: 26px;
}

.news-list li {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.news-date {
  color: var(--faint);
  font-size: 13.5px;
  line-height: 1.4;
}

.news-list h3 {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.news-list p {
  margin-top: 7px;
  max-width: 46rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.6;
}

/* ---------- Вопросы ---------- */
.faq {
  padding-block: clamp(40px, 6vw, 76px);
}

.faq-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat;
  transition: rotate 0.2s;
}

.faq details[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat;
}

.faq details p {
  max-width: 48rem;
  padding-bottom: 20px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.6;
}

/* ---------- Подвал ---------- */
.foot {
  padding-block: clamp(40px, 5vw, 64px) 40px;
  background: var(--dark);
  color: var(--on-dark-soft);
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 30px;
  border-bottom: 1px solid color-mix(in oklab, var(--on-dark) 16%, transparent);
}

.foot-line {
  color: #fff;
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.foot-legal {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  font-size: 13.5px;
  line-height: 1.55;
}

.foot-legal p {
  max-width: 62rem;
  color: color-mix(in oklab, var(--on-dark) 55%, var(--dark));
}

.foot-legal b {
  color: var(--on-dark);
  font-weight: 600;
}

.foot-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-dots {
  display: inline-flex;
  gap: 4px;
}

.foot-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6b7168;
}

.foot-dots i:nth-child(2) {
  background: #9aa096;
}

.foot-dots i:nth-child(3) {
  background: var(--amber);
}

/* ---------- Нижняя панель на телефоне ---------- */
.dock {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  padding: 10px clamp(14px, 4vw, 20px) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  translate: 0 110%;
  transition: translate 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dock.is-on {
  translate: 0;
}

.dock-in {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dock-sum {
  flex: 1;
  min-width: 0;
}

.dock-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--sage);
  overflow: hidden;
}

.dock-bar i {
  display: block;
  height: 100%;
  background: var(--amber);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.dock-sum p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.dock-sum b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Широкие экраны ---------- */
@media (min-width: 900px) {
  .dock {
    display: none;
  }

  .hero-in {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .fund-in {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .give-in {
    grid-template-columns: minmax(0, 1fr) 468px;
  }

  .wall-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 44px;
  }
}

@media (min-width: 1000px) {
  .shot {
    width: 300px;
  }

  .shot-right {
    float: right;
    margin: 10px -186px 22px 38px;
  }

  .shot-left {
    float: left;
    width: 268px;
    margin: 10px 38px 22px -160px;
  }
}

/* ---------- Телефоны ---------- */
@media (max-width: 899px) {
  body {
    font-size: 16px;
  }

  .top-progress {
    display: none;
  }

  .top-in {
    gap: 12px;
  }

  .hero {
    padding-block: 30px 40px;
  }

  .hero-in {
    gap: 28px;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo img {
    max-height: 46vh;
    aspect-ratio: 5 / 4;
    object-position: center 26%;
  }

  .hero-facts {
    gap: 16px 28px;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 152px;
  }

  .letter-body {
    font-size: 17.5px;
  }

  .letter-body .lead {
    font-size: 20px;
  }

  .album-row {
    grid-template-columns: 1fr 1fr;
  }

  .costs li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 14px;
  }

  .cost-bar {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  main {
    padding-bottom: 76px;
  }
}

@media (max-width: 420px) {
  .amounts {
    grid-template-columns: 1fr 1fr;
  }

  .hero-name {
    font-size: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
