:root {
  color-scheme: light;
  --ink: #162922;
  --forest: #19382e;
  --muted: #506159;
  --line: #cbd4c9;
  --milk: #fbfaf6;
  --mint: #e5efdc;
  --bad: #92321e;
  --serif: "Baskervville", Georgia, "Times New Roman", serif;
  --sans:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Menlo, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  font: 17px/1.5 var(--sans);
  color: var(--ink);
  background: var(--milk);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
summary {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid #277993;
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
p,
figure,
h1,
h2,
h3,
ul,
ol {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
h1,
h2,
.brand,
.value,
.doc .big {
  font-family: var(--serif);
}
h1,
h2,
.brand {
  letter-spacing: -0.054em;
}
h1 {
  font-size: clamp(54px, 6.5vw, 100px);
  line-height: 1.01;
}
h2 {
  font-size: clamp(37px, 4.7vw, 72px);
  line-height: 1.05;
}
h1 em,
h2 em {
  font-weight: 400;
  color: #365845;
}
h3 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
}
.shell {
  width: min(1280px, 89%);
  margin-inline: auto;
}
.sky {
  background: #f7f8ef url(light.jpg) center center/cover no-repeat;
  border-bottom: 1px solid #ccd7cc;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 88px;
  border-bottom: 1px solid #2940332e;
}
.brand {
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  color: #132a21;
  white-space: nowrap;
}
.navlinks,
.footlinks {
  display: flex;
  align-items: center;
  gap: 25px;
}
.navlinks a,
.footlinks a {
  text-decoration: none;
}
.navlinks a:hover,
.footlinks a:hover {
  text-decoration: underline;
}
.navlinks {
  font-size: 15px;
}
[hidden] {
  display: none !important;
}
.hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 8%;
  padding: clamp(60px, 7vw, 112px) 0 clamp(70px, 8vw, 118px);
}
.hero h1 {
  font-size: clamp(68px, 7.5vw, 114px);
  line-height: 0.96;
  color: #15231c;
  margin: 0;
}
.hero h1 em {
  color: inherit;
}
.hero-copy > p {
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.42;
  max-width: 34ch;
  margin: 25px 0;
}
.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--forest);
  color: #fff;
  padding: 14px 23px;
  border: 1px solid var(--forest);
  border-radius: 7px;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  min-height: 48px;
  cursor: pointer;
}
.button:hover,
.btn:hover {
  background: #2c4c3a;
}
.quiet {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.hero-copy .quiet {
  display: block;
  margin-top: 12px;
}
.paper-wrap {
  position: relative;
  isolation: isolate;
}
.paper-wrap:before {
  content: "";
  position: absolute;
  right: -14px;
  top: 12%;
  height: 23%;
  width: 28px;
  background: #c4e872;
  z-index: -1;
  border-radius: 4px;
  box-shadow: 0 6px 12px #28320c18;
}
.paper {
  background: linear-gradient(117deg, #fff 0, #fdfcf9 58%, #f4f4ef 100%);
  color: #1c2920;
  border: 1px solid #fdfdf4;
  border-radius: 4px;
  box-shadow:
    0 23px 48px -21px #344d4366,
    0 2px 7px #35433416;
  padding: clamp(23px, 3.2vw, 50px);
}
.paper h2 {
  font-size: clamp(37px, 3.5vw, 57px);
  margin: 17px 0 25px;
}
.caption {
  font: 12px/1.4 var(--mono);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.ledger,
.paper-bottom {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
}
.ledger {
  border-bottom: 1px solid #949f95;
  padding-bottom: 18px;
}
.ledger b {
  font-weight: 500;
  white-space: nowrap;
}
.value {
  font-size: clamp(53px, 5.8vw, 89px);
  line-height: 1.1;
  letter-spacing: -0.065em;
  white-space: nowrap;
}
.total {
  margin: 18px 0 21px;
}
.total small {
  display: block;
  font-size: 16px;
  color: #48594e;
  margin-top: 3px;
}
.meter {
  height: 9px;
  border-radius: 9px;
  background: #dce7d8;
  flex: 1;
  align-self: center;
  overflow: hidden;
}
/* доля лишнего — диапазон: тёмное до нижней границы, светлое до верхней */
.meter {
  background: linear-gradient(90deg, #477542 var(--low, 0%), #9dbb8f var(--low, 0%) var(--high, 0%),
      #dce7d8 var(--high, 0%));
}
.paper .ledger.money {
  border-bottom: 0;
  padding: 18px 0 0;
}
.value.range {
  font-size: clamp(44px, 4.6vw, 72px);
  white-space: normal;
}
.paper-bottom {
  font: 15px var(--mono);
}
.paper-foot {
  font-size: 13px;
  color: #5b685e;
  margin: 22px 0 0;
}
.zone {
  padding: clamp(55px, 6.5vw, 100px) 0;
}
.zone + .zone {
  border-top: 1px solid var(--line);
}
.layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 9%;
  align-items: start;
}
.kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
}
.deck {
  max-width: 55ch;
  font-size: 19px;
  margin-top: 18px;
}
.timeline {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.timeline .n {
  font: italic 31px/1 var(--serif);
  color: #56785e;
}
.timeline p,
.faq p {
  margin-top: 8px;
  color: var(--muted);
}
.link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  margin-top: 13px;
}
.inkband {
  background: #19352c;
  color: #f3f3df;
}
.inkband .kicker,
.inkband .deck,
.inkband .quiet {
  color: #d2e0cf;
}
.inkband h2 em {
  color: #c7e29d;
}
.inkband .layout {
  align-items: center;
}
.proof {
  padding: clamp(20px, 3vw, 38px);
  background: #fbfaf2;
  color: var(--ink);
  box-shadow: 8px 8px 0 #83a29040;
}
.proof h3 {
  font: 400 clamp(29px, 3vw, 42px) / 1.1 var(--serif);
  letter-spacing: -0.045em;
  margin: 12px 0;
}
.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
}
.choice button {
  border: 1px solid #adbaac;
  background: transparent;
  border-radius: 24px;
  padding: 7px 12px;
  font-size: 14px;
  color: var(--ink);
}
.choice button[aria-pressed="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}
.panel {
  min-height: 147px;
}
.panel p {
  color: var(--muted);
}
.proof .link {
  margin-top: 14px;
}
.faq details,
.fold {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child,
.fold {
  border-top: 1px solid var(--line);
}
summary {
  list-style: none;
  position: relative;
  padding: 17px 32px 17px 0;
  font-weight: 550;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  position: absolute;
  right: 5px;
  content: "+";
  font-weight: 400;
  font-size: 20px;
  top: 13px;
}
details[open] > summary:after {
  content: "−";
}
.faq details p {
  margin: 0 24px 19px 0;
}
.fold + .fold {
  border-top: 0;
}
.fold .detail p + p {
  margin-top: 10px;
}
.fold .detail {
  padding: 0 0 20px;
}
.pale {
  background: #e9f1e6;
}
.formbox {
  padding: clamp(23px, 3vw, 42px);
  background: #fffef9;
  border: 1px solid #cfdaca;
  border-radius: 8px;
}
.calc input {
  display: block;
  width: 100%;
  border: 1px solid #96a398;
  background: #fff;
  border-radius: 5px;
  padding: 11px 13px;
}
.calc {
  margin-top: 26px;
}
.calc input {
  max-width: 200px;
  margin: 6px 0;
}
.calc output {
  display: block;
  margin: 12px 0;
  font-weight: 650;
}
.calc p {
  margin: 8px 0;
}
.foot {
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footlinks {
  gap: 14px;
  flex-wrap: wrap;
}
.subhero {
  padding: 48px 0 55px;
}
.subhero .kicker {
  margin-top: 35px;
}
.subhero h1 {
  max-width: 18ch;
}
.doc {
  max-width: 900px;
  margin-inline: auto;
  padding: 24px 0 62px;
}
.doc h2 {
  font-size: clamp(31px, 3.7vw, 48px);
  margin: 52px 0 15px;
}
.doc p {
  margin: 12px 0;
}
.doc .card {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.doc .big {
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.doc .err {
  background: #e5efd9;
  padding: 24px;
}
.doc ol,
.doc ul {
  padding-left: 25px;
}
.doc li {
  margin: 13px 0;
}
.doc img {
  display: block;
}
.doc th,
.doc td {
  text-align: left;
  font-size: 15px;
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc table {
  border-collapse: collapse;
  width: 100%;
}
.doc .r {
  text-align: right;
}
.doc .tablewrap,
.doc .card:has(table) {
  overflow-x: auto;
}
.doc textarea {
  display: block;
  width: 100%;
  min-height: 155px;
  padding: 14px;
  margin: 8px 0;
  font: 15px var(--mono);
}
.doc .muted,
.doc .small {
  color: var(--muted);
}
.doc .steps > li {
  margin: 22px 0;
}
.doc .card details {
  border-bottom: 1px solid var(--line);
}
.info-box {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 25px;
}
.info-box p {
  margin: 0 0 8px;
}
.foot .brand {
  font-size: 26px;
}
@media (max-width: 900px) {
  .hero,
  .layout {
    gap: 5%;
  }
  .navlinks {
    gap: 13px;
  }
  .hero h1 {
    font-size: clamp(57px, 8vw, 77px);
  }
  .navlinks {
    font-size: 14px;
  }
  .shell {
    width: 91%;
  }
  .paper {
    padding: 26px;
  }
  .timeline li {
    grid-template-columns: 34px 1fr;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .nav {
    min-height: 68px;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 0;
  }
  .navlinks {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
  }
  .brand {
    font-size: 29px;
  }
  .hero,
  .layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero {
    padding: 44px 0 33px;
  }
  .hero h1 {
    font-size: clamp(54px, 10vw, 68px);
  }
  .hero-copy > p {
    margin: 15px 0 18px;
    font-size: 18px;
  }
  .paper-wrap {
    width: calc(100% - 12px);
    max-width: 490px;
  }
  .paper {
    padding: 21px;
  }
  .paper h2 {
    margin: 9px 0 15px;
  }
  .paper-foot {
    margin-top: 14px;
  }
  .total {
    margin: 11px 0;
  }
  .value {
    font-size: 56px;
  }
  .ledger {
    padding-bottom: 9px;
  }
  .zone {
    padding: 43px 0;
  }
  .deck {
    font-size: 17px;
  }
  .timeline li {
    padding: 17px 0;
  }
  .panel {
    min-height: 155px;
  }
  .doc {
    padding-top: 10px;
  }
  .subhero {
    padding: 25px 0 35px;
  }
  .foot {
    align-items: start;
  }
  .footlinks {
    gap: 9px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Поля рабочей формы, состояния ожидания и сообщения сервера. */
.formbox {
  min-width: 0;
  align-self: start;
}
.formbox label:not(.drop),
.doc form label {
  display: block;
  margin: 16px 0 5px;
  font-weight: 600;
}
.formbox input[type="text"],
.formbox input[type="email"],
.formbox textarea,
.doc form input[type="text"] {
  display: block;
  width: 100%;
  border: 1px solid #96a398;
  background: white;
  padding: 11px 13px;
  border-radius: 5px;
}
.formbox textarea {
  min-height: 95px;
  resize: vertical;
}
.formbox input[type="checkbox"] {
  accent-color: var(--forest);
}
.formbox .small,
.small {
  font-size: 14px;
}
.formbox .muted,
.muted {
  color: var(--muted);
}
.formbox .btn {
  margin: 12px 0;
}
.btn.ghost {
  background: transparent;
  color: var(--forest);
}
.btn.ghost:hover {
  background: var(--mint);
}
.formbox .drop {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  background: #f1f5ec;
  border: 1px dashed #829880;
  border-radius: 5px;
  cursor: pointer;
}
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.drop:focus-within,
.drop.over {
  outline: 2px solid var(--forest);
}
.drop .btn {
  margin: 0;
  min-height: auto;
  padding: 6px 14px;
  font-size: 14px;
}
.drop .name {
  overflow-wrap: anywhere;
}
.card.err[role="alert"],
.doc .card.warn,
.doc .card.err:not(:has(.big)) {
  padding: 16px;
  border-left: 3px solid #ad6825;
  background: #fff0d5;
  color: #5a3512;
}
.doc h1 {
  font-size: clamp(40px, 5vw, 72px);
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.doc p {
  overflow-wrap: anywhere;
}
/* Слова в ячейках не рвём: узкая таблица прокручивается вбок внутри .tablewrap. */
.doc .tablewrap td {
  overflow-wrap: break-word;
}
.doc .r {
  white-space: nowrap;
}
.doc .pill {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  white-space: nowrap;
}
.formbox [role="alert"] {
  margin-top: 14px;
}
.layout > *,
.hero > * {
  min-width: 0;
}
.foot small {
  flex-basis: 100%;
  color: var(--muted);
}
.progress {
  list-style: none;
}
.progress li::before {
  content: "○";
  margin-right: 10px;
}
.progress .done::before {
  content: "✓";
  color: #42724e;
}
.progress .now {
  font-weight: 700;
}
.progress .now::before {
  content: "●";
}
@media (max-width: 700px) {
  .doc th,
  .doc td {
    padding: 10px 5px;
    font-size: 14px;
  }
  .navlinks {
    justify-content: start;
    gap: 16px;
    flex-wrap: wrap;
  }
}
