/*
 * Сундучок супергероя — standalone landing.
 * Все правила лендинга ограничены .sunduchok-site, чтобы не ломать Leyka.
 */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-04FF, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/golos-text-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-04FF, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/golos-text-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-04FF, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/golos-text-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/unbounded-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-04FF, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/unbounded-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/unbounded-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-04FF, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/caveat-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-04FF, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/caveat-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body.sunduchok-page {
  --paper: #fff;
  --ink: #161514;
  --ink-soft: #57534d;
  --orange: #fc8a3f;
  --orange-deep: #e9701f;
  --green: #d3f7ca;
  --green-deep: #b5e8a8;
  --mist: #f6f5f1;
  --line-width: 3px;
  --line: var(--line-width) solid var(--ink);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
  margin: 0;
  background: var(--paper);
  color-scheme: light;
}

.sunduchok-site,
.sunduchok-site *,
.sunduchok-site *::before,
.sunduchok-site *::after,
.sunduchok-modal,
.sunduchok-modal *,
.sunduchok-modal *::before,
.sunduchok-modal *::after {
  box-sizing: border-box;
}

.sunduchok-site {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  --fs-h1: clamp(18px, 4vw, 38px);
  --fs-h2: clamp(17px, 3vw, 30px);
  --fs-h3: clamp(15px, calc(0.9vw + 11px), 20px);
  --fs-lead: clamp(12px, calc(0.55vw + 15px), 25px);
  --fs-body: clamp(14.5px, calc(0.24vw + 13.6px), 17px);
  --fs-small: clamp(12.5px, calc(0.18vw + 11.9px), 14.5px);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.sunduchok-site .wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 32px);
}

.sunduchok-site h1,
.sunduchok-site h2,
.sunduchok-site h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  text-wrap: balance;
}
.sunduchok-site h1 {
  max-width: 16ch;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.01em;
}
.sunduchok-site h2 {
  max-width: 27ch;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.006em;
}
.sunduchok-site h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.45;
}
.sunduchok-site p,
.sunduchok-site figure,
.sunduchok-site blockquote,
.sunduchok-site ol,
.sunduchok-site ul {
  margin: 0;
}
.sunduchok-site p {
  max-width: 68ch;
}
.sunduchok-site a {
  color: inherit;
}
.sunduchok-site button,
.sunduchok-site input {
  font: inherit;
}
.sunduchok-site :focus-visible,
.sunduchok-modal :focus-visible {
  outline: 3px solid var(--orange-deep);
  outline-offset: 3px;
}

/* Buttons */
.sunduchok-site .btn {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 17px 28px;
  border: var(--line);
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  cursor: pointer;
  font: 500 clamp(14px, 0.25vw + 13px, 16px)/1.15 var(--display);
  text-align: center;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.sunduchok-site .btn:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--ink);
}
.sunduchok-site .btn:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--ink);
}
.sunduchok-site .btn.small {
  min-height: 44px;
  padding: 11px 18px;
  box-shadow: 0 3px 0 var(--ink);
  font-size: 13px;
}
.sunduchok-site .btn.ghost {
  background: var(--paper);
}
.sunduchok-site #sunduchok-donate-open[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 5px 0 var(--ink);
}

/* Header */
.sunduchok-site .top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  border-bottom: var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}
.sunduchok-site .top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding-block: 10px;
}
.sunduchok-site .brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}
.sunduchok-site .brand img {
  display: block;
  width: auto;
  height: clamp(40px, 4.4vw, 52px);
  max-width: min(220px, 58vw);
  object-fit: contain;
}

/* Hero */
.sunduchok-site .hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  align-items: center;
  gap: clamp(34px, 4.5vw, 58px);
  padding-block: clamp(42px, 5.2vw, 64px);
}
.sunduchok-site .hero-text,
.sunduchok-site .story-text,
.sunduchok-site .how-text,
.sunduchok-site .why-text,
.sunduchok-site .voice-text,
.sunduchok-site .give-form,
.sunduchok-site .partner-text {
  min-width: 0;
}
.sunduchok-site .hero-text {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 22px);
}
.sunduchok-site .ask {
  max-width: 24ch;
  color: var(--orange-deep);
  font: 600 clamp(18px, calc(1.5vw + 12px), 28px)/1.35 var(--hand);
}
.sunduchok-site h1 em {
  font-style: normal;
  background: linear-gradient(transparent 63%, var(--green) 63%);
}
.sunduchok-site .lead {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: var(--fs-lead);
  line-height: 1.5;
}
.sunduchok-site .lead b {
  color: var(--ink);
  font-weight: 600;
}
.sunduchok-site .cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}
.sunduchok-site .cta-note {
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.sunduchok-site .hero-art {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
}
.sunduchok-site .hero-art::before {
  position: absolute;
  width: min(84%, 390px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  content: "";
}
.sunduchok-site .hero-art img {
  position: relative;
  display: block;
  width: min(100%, 470px);
  height: auto;
}

/* Shared sections */
.sunduchok-site .band {
  border-block: var(--line);
  background: var(--mist);
}
.sunduchok-site .story .wrap,
.sunduchok-site .how .wrap,
.sunduchok-site .why .wrap,
.sunduchok-site .voice .wrap,
.sunduchok-site .partner .wrap {
  display: grid;
  align-items: center;
  gap: clamp(30px, 4.2vw, 50px);
}
.sunduchok-site .story .wrap {
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
  padding-block: clamp(44px, 5vw, 62px);
}
.sunduchok-site .story-text,
.sunduchok-site .why-text,
.sunduchok-site .voice-text,
.sunduchok-site .partner-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sunduchok-site .section-art {
  display: block;
  width: 100%;
  max-width: 390px;
  height: auto;
  justify-self: center;
}
.sunduchok-site .story .section-art {
  max-width: 360px;
}
.sunduchok-site .big {
  max-width: 34ch;
  font-size: clamp(16px, calc(0.55vw + 14px), 21px);
  font-weight: 500;
  line-height: 1.5;
}
.sunduchok-site .big mark {
  padding-inline: .18em;
  border-radius: 6px;
  background: var(--orange);
  color: var(--ink);
}

/* Readability and section rhythm */
.sunduchok-site .story-text > p:not(.big),
.sunduchok-site .why-text > p,
.sunduchok-site .voice-text > p:not(.fine),
.sunduchok-site .partner-text > p:not(.fine) {
  font-size: var(--fs-body);
  line-height: 1.55;
}
.sunduchok-site .why-text {
  width: min(100%, 900px);
  align-items: center;
  text-align: center;
}
.sunduchok-site .why-text h2 {
  max-width: 24ch;
}
.sunduchok-site .why-text > p {
  max-width: 70ch;
}
.sunduchok-site .why .section-art {
  width: min(100%, 330px);
  margin-top: 4px;
}
.sunduchok-site .logos h2 {
  max-width: none;
  text-align: center;
}

/* Facts */
.sunduchok-site .facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: clamp(40px, 4.8vw, 58px);
  overflow: hidden;
  border: var(--line);
  border-radius: 28px;
}
.sunduchok-site .fact {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: clamp(22px, 2vw, 28px) clamp(18px, 1.7vw, 22px);
  border-right: var(--line);
}
.sunduchok-site .fact:last-child {
  border-right: 0;
}
.sunduchok-site .fact b {
  font: 700 clamp(24px, 2.2vw, 34px)/1.2 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sunduchok-site .fact span {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.sunduchok-site .fact:nth-child(4) {
  background: var(--green);
}
.sunduchok-site .fact:nth-child(4) span {
  color: var(--ink);
}

/* How */
.sunduchok-site .how .wrap {
  grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr);
  padding-block: clamp(14px, 2vw, 22px) clamp(46px, 5.8vw, 68px);
}
.sunduchok-site .how-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.sunduchok-site .steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.sunduchok-site .steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
  counter-increment: s;
}
.sunduchok-site .steps li::before {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: var(--line);
  border-radius: 50%;
  background: var(--green);
  content: counter(s);
  font: 700 17px/1 var(--display);
}
.sunduchok-site .steps li:last-child::before {
  background: var(--orange);
}
.sunduchok-site .steps h3 {
  margin-bottom: 5px;
}
.sunduchok-site .steps p {
  color: var(--ink-soft);
  font-size: var(--fs-body);
  line-height: 1.55;
}
.sunduchok-site .boxshot {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: var(--line);
  border-radius: 28px;
  background: #b4b4b4;
  box-shadow: 10px 10px 0 var(--green);
}
.sunduchok-site .boxshot img {
  display: block;
  width: 100%;
  height: auto;
}
.sunduchok-site .boxshot figcaption {
  padding: 12px 18px;
  border-top: var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* Why */
.sunduchok-site .why .wrap {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding-block: clamp(46px, 5.5vw, 66px);
}
.sunduchok-site .chain {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font: 500 clamp(12px, calc(.28vw + 11px), 14px)/1.35 var(--display);
}
.sunduchok-site .chain span {
  padding: 10px 13px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.sunduchok-site .chain span:last-child {
  background: var(--orange);
}
.sunduchok-site .chain i {
  font: normal 20px/1 var(--body);
}

/* Voice */
.sunduchok-site .voice .wrap {
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  padding-block: clamp(48px, 5.5vw, 66px);
}
.sunduchok-site .voice-photo {
  width: min(100%, 390px);
  justify-self: center;
}
.sunduchok-site blockquote {
  max-width: 30ch;
  font: 700 clamp(18px, calc(1.35vw + 12px), 28px)/1.45 var(--display);
  text-wrap: balance;
}

/* Donation calculator */
.sunduchok-site .give {
  padding-block: clamp(48px, 5.8vw, 68px);
}
.sunduchok-site .give-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: stretch;
  gap: clamp(26px, 3.5vw, 42px);
  padding: clamp(24px, 3.5vw, 42px);
  border: var(--line);
  border-radius: 32px;
}
.sunduchok-site .give-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.sunduchok-site .chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.sunduchok-site .chip {
  min-width: 0;
  padding: 13px 10px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: 500 clamp(13px, .25vw + 12px, 15px)/1 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sunduchok-site .chip[aria-pressed="true"] {
  background: var(--green);
}
.sunduchok-site .own {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: var(--fs-body);
}
.sunduchok-site .own input {
  width: 132px;
  min-height: 48px;
  padding: 10px 13px;
  border: var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1 var(--display);
}
.sunduchok-site .result {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: clamp(24px, 3vw, 34px);
  border: var(--line);
  border-radius: 24px;
  background: var(--green);
}
.sunduchok-site .result .n {
  font: 700 clamp(32px, 3.6vw, 50px)/1.12 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}
.sunduchok-site .result .w {
  font-family: var(--display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.4;
}
.sunduchok-site .result p {
  font-size: var(--fs-body);
  line-height: 1.55;
}
.sunduchok-site .result img {
  display: block;
  width: min(132px, 40%);
  height: auto;
  align-self: flex-end;
  margin-top: 4px;
}
.sunduchok-site .fine {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* Partners */
.sunduchok-site .logos .wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: clamp(44px, 5vw, 60px);
}
.sunduchok-site .logo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 330px));
  justify-content: center;
  gap: 18px;
  width: 100%;
}
.sunduchok-site .logo-tile {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  border: var(--line);
  border-radius: 24px;
  background: var(--paper);
  text-align: center;
  text-decoration: none;
}
.sunduchok-site .logo-tile img {
  display: block;
  width: auto;
  max-width: 88%;
  height: auto;
  max-height: 64px;
}
.sunduchok-site .logo-tile span {
  font: 500 clamp(13px, .35vw + 12px, 15px)/1.4 var(--display);
}
.sunduchok-site .logo-tile small {
  color: var(--ink-soft);
  font-size: var(--fs-small);
}
.sunduchok-site .logo-tile.empty {
  border-style: dashed;
  background: var(--mist);
}
.sunduchok-site .logo-tile.empty span {
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: var(--fs-body);
}
.sunduchok-site .logo-tile.empty small {
  color: var(--orange-deep);
  font-weight: 600;
}
.sunduchok-site .partner .wrap {
  grid-template-columns: minmax(270px, .76fr) minmax(0, 1.24fr);
  padding-block: clamp(44px, 5vw, 62px);
}
.sunduchok-site .perks {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0;
  list-style: none;
}
.sunduchok-site .perks li {
  position: relative;
  padding-left: 28px;
  font-size: var(--fs-body);
  line-height: 1.55;
}
.sunduchok-site .perks li::before {
  position: absolute;
  top: .38em;
  left: 0;
  width: 14px;
  height: 14px;
  border: var(--line);
  border-radius: 50%;
  background: var(--orange);
  content: "";
}
.sunduchok-site .mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.sunduchok-site .mail code {
  max-width: 100%;
  padding-bottom: 4px;
  overflow-wrap: anywhere;
  border-bottom: var(--line);
  font: 500 clamp(15px, 1.15vw, 20px)/1.4 var(--display);
  user-select: all;
}
.sunduchok-site .final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-block: clamp(48px, 5.8vw, 68px);
  text-align: center;
}
.sunduchok-site .final h2 {
  max-width: 20ch;
}

/* Footer */
.sunduchok-site footer {
  border-top: var(--line);
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.sunduchok-site footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  padding-block: 26px;
}
.sunduchok-site footer p {
  max-width: none;
}

/* Leyka modal shell only. Leyka's own form styles remain untouched. */
body.sunduchok-modal-open {
  overflow: hidden;
}
.sunduchok-modal[hidden] {
  display: none !important;
}
.sunduchok-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(22, 21, 20, .72);
}
.sunduchok-modal__dialog {
  position: relative;
  display: flex;
  width: min(860px, 100%);
  max-height: calc(100dvh - 36px);
  flex-direction: column;
  overflow: hidden;
  border: var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 0 var(--ink);
  padding: 26px 20px 18px;
}
.sunduchok-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  font: 700 28px/1 Arial, sans-serif;
}
.sunduchok-modal__close:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--ink);
}
.sunduchok-modal__title {
  flex: none;
  margin: 10px 68px 10px;
  padding: 0;
  color: #4f6c7d;
  font: 700 clamp(24px, 3.2vw, 36px)/1.15 var(--display);
  text-align: center;
  text-wrap: balance;
}
.sunduchok-modal__sum {
  display: inline-flex;
  max-width: calc(100% - 32px);
  flex: none;
  align-self: center;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font: 500 15px/1.2 var(--body);
  white-space: nowrap;
}
.sunduchok-modal__sum strong {
  font: 600 17px/1 var(--body);
  font-variant-numeric: tabular-nums;
}
.sunduchok-modal__form {
  flex: 1 1 auto;
  min-height: 0;
  margin-right: 2px;
  padding: 0 12px 8px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.sunduchok-modal__form form {
  margin: 0;
}
.sunduchok-modal__form::-webkit-scrollbar {
  width: 10px;
}
.sunduchok-modal__form::-webkit-scrollbar-track {
  background: transparent;
}
.sunduchok-modal__form::-webkit-scrollbar-thumb {
  border: 3px solid #fff;
  border-radius: 999px;
  background: #aaa;
}

/* Responsive */
@media (max-width: 1040px) {
  .sunduchok-site .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sunduchok-site .fact:nth-child(2) {
    border-right: 0;
  }
  .sunduchok-site .fact:nth-child(-n+2) {
    border-bottom: var(--line);
  }
  .sunduchok-site .fact:nth-child(3) {
    border-right: var(--line);
  }
  .sunduchok-site .give-card {
    grid-template-columns: 1fr;
  }
  .sunduchok-site .result {
    min-height: 280px;
  }
}

@media (max-width: 920px) {
  .sunduchok-site .how .wrap {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 10px;
  }
  .sunduchok-site .how-text {
    width: min(100%, 760px);
    justify-self: center;
  }
  .sunduchok-site .how .boxshot {
    width: min(100%, 760px);
    justify-self: center;
  }
  .sunduchok-site .chain {
    flex-wrap: wrap;
  }
}

@media (max-width: 780px) {
  .sunduchok-site .hero .wrap {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr);
    gap: 26px;
    padding-block: 36px 46px;
  }
  .sunduchok-site .hero-art img {
    width: min(100%, 310px);
  }
  .sunduchok-site .hero-art::before {
    width: min(82%, 250px);
  }
  .sunduchok-site .story .wrap {
    grid-template-columns: minmax(220px, .78fr) minmax(0, 1.22fr);
    gap: 28px;
  }
  .sunduchok-site .story .section-art {
    max-width: 280px;
  }
  .sunduchok-site .voice .wrap {
    grid-template-columns: minmax(230px, .78fr) minmax(0, 1.22fr);
    gap: 28px;
  }
  .sunduchok-site .voice-photo {
    max-width: 285px;
  }
  .sunduchok-site .partner .wrap {
    grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
    gap: 28px;
  }
  .sunduchok-site .partner .section-art {
    max-width: 285px;
  }
}

@media (max-width: 700px) {
  .sunduchok-site .wrap {
    padding-inline: 16px;
  }
  .sunduchok-site .hero .wrap,
  .sunduchok-site .story .wrap,
  .sunduchok-site .voice .wrap,
  .sunduchok-site .partner .wrap {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .sunduchok-site .hero-text {
    order: 1;
  }
  .sunduchok-site .hero-art {
    order: 2;
  }
  .sunduchok-site .story .section-art,
  .sunduchok-site .partner .section-art {
    max-width: 300px;
  }
  .sunduchok-site .voice-photo {
    max-width: 320px;
  }
  .sunduchok-site .top .wrap {
    min-height: 68px;
  }
  .sunduchok-site .brand img {
    height: 42px;
    max-width: 170px;
  }
  .sunduchok-site h1 {
    max-width: none;
  }
  .sunduchok-site h2 {
    max-width: none;
  }
  .sunduchok-site .cta-row {
    align-items: stretch;
  }
  .sunduchok-site .cta-row .btn {
    width: 100%;
  }
  .sunduchok-site .hero-art img {
    width: min(82%, 310px);
  }
  .sunduchok-site .hero-art::before {
    width: min(62%, 270px);
  }
  .sunduchok-site .facts {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
  .sunduchok-site .fact,
  .sunduchok-site .fact:nth-child(2),
  .sunduchok-site .fact:nth-child(3) {
    border-right: 0;
    border-bottom: var(--line);
  }
  .sunduchok-site .fact:last-child {
    border-bottom: 0;
  }
  .sunduchok-site .steps li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
  }
  .sunduchok-site .steps li::before {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
  .sunduchok-site .chain {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 7px;
  }
  .sunduchok-site .chain span {
    min-width: min(100%, 260px);
    text-align: center;
  }
  .sunduchok-site .chain i {
    margin: 0;
    transform: rotate(90deg);
  }
  .sunduchok-site .chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sunduchok-site .chip {
    min-height: 46px;
  }
  .sunduchok-site .give-card {
    padding: 22px 18px;
    border-radius: 24px;
  }
  .sunduchok-site .result {
    min-height: 250px;
    padding: 24px 20px;
  }
  .sunduchok-site .logo-row {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 380px);
  }
  .sunduchok-site .mail {
    align-items: stretch;
  }
  .sunduchok-site .mail .btn {
    width: 100%;
  }
  .sunduchok-site footer .wrap {
    flex-direction: column;
  }

  .sunduchok-modal {
    align-items: stretch;
    padding: 8px;
  }
  .sunduchok-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
    padding: 17px 10px 10px;
    border-radius: 18px;
  }
  .sunduchok-modal__close {
    top: 12px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 26px;
  }
  .sunduchok-modal__title {
    margin: 12px 54px 9px;
    font-size: clamp(21px, 6vw, 28px);
  }
  .sunduchok-modal__sum {
    max-width: calc(100% - 16px);
    margin-bottom: 11px;
    padding: 7px 11px;
    font-size: 13px;
  }
  .sunduchok-modal__sum strong {
    font-size: 15px;
  }
  .sunduchok-modal__form {
    padding-right: 6px;
  }
}

@media (max-width: 390px) {
  .sunduchok-site .top .btn.small {
    padding-inline: 14px;
    font-size: 12px;
  }
  .sunduchok-site .brand img {
    max-width: 145px;
  }
  .sunduchok-site .btn {
    width: 100%;
    padding-inline: 20px;
  }
  .sunduchok-site .top .btn {
    width: auto;
  }
  .sunduchok-site .own {
    display: grid;
    grid-template-columns: 1fr;
  }
  .sunduchok-site .own input {
    width: 100%;
  }
  .sunduchok-modal__sum {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    white-space: normal;
  }
}

@media print {
  .sunduchok-site .top {
    position: static;
  }
  .sunduchok-site .band,
  .sunduchok-site .facts,
  .sunduchok-site .how .wrap,
  .sunduchok-site .give-card,
  .sunduchok-site .logo-row,
  .sunduchok-site .partner .wrap {
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sunduchok-site .btn {
    transition: none;
  }
}

/* ========================================================================
 * v9 — discrete proportional typography scale
 * Base sizes are used at viewport widths >= 1600px.
 * Below 1600px the whole landing-page typography is reduced in fixed steps.
 * Explicit px values are used for broad browser compatibility.
 * ======================================================================== */
.sunduchok-site {
  --fs-ask: 50px;
  --fs-h1: 40px;
  --fs-h2: 30px;
  --fs-h3: 20px;
  --fs-lead: 25px;
  --fs-body: 17px;
  --fs-small: 14.5px;
  --fs-button: 20px;
  --fs-cta-note: 20px;
  --fs-big: 21px;
  --fs-fact-number: 34px;
  --fs-step-number: 17px;
  --fs-chain: 14px;
  --fs-chain-arrow: 20px;
  --fs-quote: 28px;
  --fs-result-number: 50px;
  --fs-logo-label: 15px;
  --fs-mail: 20px;
}

/* Remove artificial line-length limits. Grid/flex columns now determine wrapping. */
.sunduchok-site h1,
.sunduchok-site h2,
.sunduchok-site p,
.sunduchok-site .ask,
.sunduchok-site .lead,
.sunduchok-site .cta-note,
.sunduchok-site .big,
.sunduchok-site blockquote,
.sunduchok-site .why-text h2,
.sunduchok-site .why-text > p,
.sunduchok-site .final h2 {
  max-width: none !important;
}

/* Primary hierarchy */
.sunduchok-site .ask {
  font-family: var(--hand);
  font-size: var(--fs-ask);
  font-weight: 600;
  line-height: 1.15;
}
.sunduchok-site h1 {
  font-size: var(--fs-h1);
  line-height: 1.38;
}
.sunduchok-site h2 {
  font-size: var(--fs-h2);
  line-height: 1.4;
}
.sunduchok-site h3 {
  font-size: var(--fs-h3);
  line-height: 1.45;
}
.sunduchok-site .lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
}
.sunduchok-site .cta-note {
  font-size: var(--fs-cta-note);
  line-height: 1.5;
}

/* Body and secondary hierarchy */
.sunduchok-site {
  font-size: var(--fs-body);
}
.sunduchok-site .big {
  font-size: var(--fs-big);
}
.sunduchok-site .story-text > p:not(.big),
.sunduchok-site .why-text > p,
.sunduchok-site .voice-text > p:not(.fine),
.sunduchok-site .partner-text > p:not(.fine),
.sunduchok-site .steps p,
.sunduchok-site .own,
.sunduchok-site .result p,
.sunduchok-site .logo-tile.empty span,
.sunduchok-site .perks li {
  font-size: var(--fs-body);
}
.sunduchok-site .fact span,
.sunduchok-site .boxshot figcaption,
.sunduchok-site .fine,
.sunduchok-site .logo-tile small,
.sunduchok-site footer {
  font-size: var(--fs-small);
}

/* Buttons: one font-size scale for every landing-page button, including amount chips. */
.sunduchok-site .btn,
.sunduchok-site .btn.small,
.sunduchok-site .chip {
  font-family: var(--display);
  font-size: var(--fs-button);
}

/* Other display text follows the same proportional scale. */
.sunduchok-site .fact b {
  font-size: var(--fs-fact-number);
  line-height: 1.2;
}
.sunduchok-site .steps li::before {
  font-size: var(--fs-step-number);
}
.sunduchok-site .chain {
  font-size: var(--fs-chain);
}
.sunduchok-site .chain i {
  font-size: var(--fs-chain-arrow);
}
.sunduchok-site blockquote {
  font-size: var(--fs-quote);
}
.sunduchok-site .result .n {
  font-size: var(--fs-result-number);
}
.sunduchok-site .logo-tile span {
  font-size: var(--fs-logo-label);
}
.sunduchok-site .mail code {
  font-size: var(--fs-mail);
}

/* 1200–1599.98px: 90% of the maximum */
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .sunduchok-site {
    --fs-ask: 45px;
    --fs-h1: 36px;
    --fs-h2: 27px;
    --fs-h3: 18px;
    --fs-lead: 22.5px;
    --fs-body: 15.3px;
    --fs-small: 13.05px;
    --fs-button: 18px;
    --fs-cta-note: 18px;
    --fs-big: 18.9px;
    --fs-fact-number: 30.6px;
    --fs-step-number: 15.3px;
    --fs-chain: 12.6px;
    --fs-chain-arrow: 18px;
    --fs-quote: 25.2px;
    --fs-result-number: 45px;
    --fs-logo-label: 13.5px;
    --fs-mail: 18px;
  }
}

/* 800–1199.98px: 80% of the maximum */
@media (min-width: 800px) and (max-width: 1199.98px) {
  .sunduchok-site {
    --fs-ask: 40px;
    --fs-h1: 32px;
    --fs-h2: 24px;
    --fs-h3: 16px;
    --fs-lead: 20px;
    --fs-body: 13.6px;
    --fs-small: 11.6px;
    --fs-button: 16px;
    --fs-cta-note: 16px;
    --fs-big: 16.8px;
    --fs-fact-number: 27.2px;
    --fs-step-number: 13.6px;
    --fs-chain: 11.2px;
    --fs-chain-arrow: 16px;
    --fs-quote: 22.4px;
    --fs-result-number: 40px;
    --fs-logo-label: 12px;
    --fs-mail: 16px;
  }
}

/* 600–799.98px: 60% of the maximum */
@media (min-width: 600px) and (max-width: 799.98px) {
  .sunduchok-site {
    --fs-ask: 30px;
    --fs-h1: 24px;
    --fs-h2: 18px;
    --fs-h3: 12px;
    --fs-lead: 15px;
    --fs-body: 10.2px;
    --fs-small: 8.7px;
    --fs-button: 12px;
    --fs-cta-note: 12px;
    --fs-big: 12.6px;
    --fs-fact-number: 20.4px;
    --fs-step-number: 10.2px;
    --fs-chain: 8.4px;
    --fs-chain-arrow: 12px;
    --fs-quote: 16.8px;
    --fs-result-number: 30px;
    --fs-logo-label: 9px;
    --fs-mail: 12px;
  }
}

/* 480–599.98px: 50% of the maximum */
@media (min-width: 480px) and (max-width: 599.98px) {
  .sunduchok-site {
    --fs-ask: 25px;
    --fs-h1: 20px;
    --fs-h2: 15px;
    --fs-h3: 10px;
    --fs-lead: 12.5px;
    --fs-body: 8.5px;
    --fs-small: 7.25px;
    --fs-button: 10px;
    --fs-cta-note: 10px;
    --fs-big: 10.5px;
    --fs-fact-number: 17px;
    --fs-step-number: 8.5px;
    --fs-chain: 7px;
    --fs-chain-arrow: 10px;
    --fs-quote: 14px;
    --fs-result-number: 25px;
    --fs-logo-label: 7.5px;
    --fs-mail: 10px;
  }
}

/* 320–479.98px: 40% of the maximum */
@media (min-width: 320px) and (max-width: 479.98px) {
  .sunduchok-site {
    --fs-ask: 20px;
    --fs-h1: 16px;
    --fs-h2: 12px;
    --fs-h3: 8px;
    --fs-lead: 10px;
    --fs-body: 6.8px;
    --fs-small: 5.8px;
    --fs-button: 8px;
    --fs-cta-note: 8px;
    --fs-big: 8.4px;
    --fs-fact-number: 13.6px;
    --fs-step-number: 6.8px;
    --fs-chain: 5.6px;
    --fs-chain-arrow: 8px;
    --fs-quote: 11.2px;
    --fs-result-number: 20px;
    --fs-logo-label: 6px;
    --fs-mail: 8px;
  }
}

/* Below 320px: 35% of the maximum */
@media (max-width: 319.98px) {
  .sunduchok-site {
    --fs-ask: 17.5px;
    --fs-h1: 14px;
    --fs-h2: 10.5px;
    --fs-h3: 7px;
    --fs-lead: 8.75px;
    --fs-body: 5.95px;
    --fs-small: 5.075px;
    --fs-button: 7px;
    --fs-cta-note: 7px;
    --fs-big: 7.35px;
    --fs-fact-number: 11.9px;
    --fs-step-number: 5.95px;
    --fs-chain: 4.9px;
    --fs-chain-arrow: 7px;
    --fs-quote: 9.8px;
    --fs-result-number: 17.5px;
    --fs-logo-label: 5.25px;
    --fs-mail: 7px;
  }
}
