:root {
  --paper: #f7f2e8;
  --paper-light: #fffdf8;
  --navy: #173552;
  --ink: #18212a;
  --muted: #68727b;
  --sky: #78c5e9;
  --sky-soft: #e5f5fc;
  --orange: #c75d39;
  --yellow: #f3c44b;
  --green: #287457;
  --line: rgba(23, 53, 82, .16);
  --shadow: 0 24px 70px rgba(28, 44, 58, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.section-shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.section-block { padding-block: 104px; }
.kicker, .eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 20px 0 28px; font-size: clamp(52px, 6.4vw, 88px); line-height: .97; letter-spacing: -.055em; }
h2 { margin: 0 0 24px; color: var(--navy); font-size: clamp(40px, 5vw, 66px); line-height: 1.04; letter-spacing: -.045em; }
h3 { color: var(--navy); }

.site-header {
  width: min(1120px, calc(100% - 40px));
  height: 86px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 900; }
.brand-mark { width: 39px; aspect-ratio: 1; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 50%; transform: rotate(-7deg); }
.header-cta { min-height: 42px; padding: 0 18px; color: var(--navy); background: transparent; border: 1px solid var(--navy); border-radius: 999px; font-size: 13px; font-weight: 800; }

.hero {
  min-height: 760px;
  padding-top: 120px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 58px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-lede { max-width: 680px; margin: 0 0 34px; color: #44505a; font-size: 20px; }
.button {
  min-height: 56px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--navy); box-shadow: 0 10px 25px rgba(23, 53, 82, .18); }
.microcopy { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.hero-visual { min-height: 570px; position: relative; }
.hero-shape { position: absolute; width: 520px; aspect-ratio: 1; right: -45px; top: 34px; background: var(--sky); border-radius: 46% 54% 62% 38% / 45% 41% 59% 55%; transform: rotate(-6deg); }
.hero-visual > img { width: 520px; height: 570px; position: absolute; right: -5px; bottom: 0; object-fit: contain; object-position: bottom; filter: drop-shadow(0 24px 28px rgba(23, 53, 82, .16)); }
.note { position: absolute; z-index: 3; padding: 15px 18px; color: var(--navy); background: var(--paper-light); border: 1px solid var(--navy); border-radius: 14px; box-shadow: 5px 6px 0 var(--navy); font-size: 13px; transform: rotate(-4deg); }
.note-one { left: 0; top: 70px; }
.note-two { right: -10px; bottom: 60px; transform: rotate(3deg); }

.preview { background: var(--navy); color: white; }
.preview h2 { color: white; max-width: 920px; }
.section-heading { max-width: 900px; }
.section-intro { max-width: 780px; margin: 0; color: rgba(255,255,255,.72); font-size: 18px; }
.slide-strip {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}
.slide-strip figure { margin: 0; }
.slide-button { display: block; width: 100%; padding: 0; overflow: hidden; background: white; border: 0; border-radius: 14px; box-shadow: 0 16px 35px rgba(0,0,0,.25); }
.slide-button img { width: 100%; transition: transform .35s ease; }
.slide-button:hover img { transform: scale(1.025); }
.slide-strip figcaption { margin-top: 12px; color: rgba(255,255,255,.74); font-size: 14px; }
.tap-hint { margin: 30px 0 0; color: rgba(255,255,255,.48); font-size: 12px; }

.story { display: grid; grid-template-columns: .85fr 1.15fr; gap: 78px; align-items: center; }
.story-photo { min-height: 570px; overflow: hidden; border-radius: 44% 44% 12px 12px; background: var(--sky-soft); }
.story-photo img { width: 100%; height: 570px; object-fit: cover; }
.story-copy > p:not(.kicker) { max-width: 680px; color: #45515b; font-size: 18px; }
blockquote { margin: 34px 0 0; padding: 24px 0 0 28px; color: var(--navy); border-top: 1px solid var(--line); border-left: 5px solid var(--yellow); font-size: 24px; font-weight: 800; line-height: 1.35; }

.final { text-align: center; background: var(--yellow); }
.final-inner { max-width: 850px; }
.final h2 { color: var(--ink); }
.final p:not(.kicker) { margin: 0 0 28px; font-size: 18px; }
.footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 700; }

dialog { color: var(--ink); border: 0; padding: 0; }
dialog::backdrop { background: rgba(10, 24, 37, .7); backdrop-filter: blur(5px); }
.course-dialog { width: min(760px, calc(100% - 28px)); }
.course-dialog, .thanks-dialog, .telegram-dialog { max-height: min(92vh, 900px); padding: 46px; overflow-y: auto; background: var(--paper-light); border-radius: 26px; box-shadow: var(--shadow); }
.thanks-dialog, .telegram-dialog { width: min(650px, calc(100% - 28px)); }
.dialog-close { width: 40px; height: 40px; position: absolute; z-index: 3; top: 12px; right: 12px; border: 0; border-radius: 50%; background: #ebeff1; font-size: 25px; line-height: 1; }
.course-dialog h2, .thanks-dialog h2, .telegram-dialog h2 { font-size: 42px; }
.course-choice > p:not(.kicker), .support-panel > p:not(.kicker) { color: #52606c; font-size: 17px; }
.download-button, .confirm-button { width: 100%; margin-top: 18px; }
.support-link { display: block; margin: 22px auto 12px; padding: 0; color: var(--navy); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; font-weight: 800; }
.course-choice > small { display: block; color: var(--muted); text-align: center; }
.back-button { margin: 0 0 16px; padding: 0; color: var(--navy); background: transparent; border: 0; font-weight: 800; }
.support-panel > .kicker { margin-bottom: 7px; }
.support-panel > h2 { margin-bottom: 10px; font-size: 34px; }
.support-panel > p:not(.kicker) { margin: 0; font-size: 14px; }

.fund-progress { margin: 20px 0 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; }
.fund-label strong, .fund-label span { display: block; }
.fund-label strong { color: var(--navy); font-size: 18px; }
.fund-label span { color: var(--muted); font-size: 10px; }
.fund-track { height: 9px; position: relative; background: #d9e0e4; border-radius: 99px; }
.fund-route { min-width: 0; }
.route-cities { margin-top: 9px; display: flex; justify-content: space-between; gap: 16px; color: var(--navy); font-size: 10px; font-weight: 900; }
.route-cities span:last-child { text-align: right; }
.fund-fill { height: 100%; width: 0; background: var(--yellow); border-radius: inherit; transition: width .8s ease; }
.fund-marker { width: 47px; aspect-ratio: 1; position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%); transition: left .8s ease; filter: drop-shadow(0 4px 5px rgba(0,0,0,.18)); }
.fund-marker img { width: 100%; height: 100%; object-fit: contain; }
.fund-percent { color: var(--orange); font-size: 13px; }
.support-panel h3 { margin: 12px 0 8px; font-size: 15px; }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amount { min-height: 50px; color: var(--navy); background: white; border: 1px solid #cfd8de; border-radius: 11px; font-weight: 900; }
.amount small { display: block; font-size: 9px; letter-spacing: .08em; }
.amount.active { color: white; background: var(--navy); border-color: var(--navy); }
.custom-amount { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; }
.custom-amount input { width: 80%; border: 0; outline: 0; color: inherit; background: transparent; text-align: center; }
.method-tabs { margin-top: 12px; padding: 3px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: #edf1f3; border-radius: 11px; }
.method { min-height: 38px; color: #69757e; background: transparent; border: 0; border-radius: 8px; font-size: 13px; font-weight: 800; }
.method.active { color: var(--navy); background: white; }
.payment-details { margin-top: 9px; padding: 9px; background: #f0f3f4; border-radius: 12px; }
.payment-panel p { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.detail-label { display: block; margin: 12px 0 5px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.detail-label:first-child { margin-top: 0; }
.detail-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.detail-row code { overflow-wrap: anywhere; color: var(--navy); font-size: 11px; font-weight: 800; }
.crypto-row { min-height: 37px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-bottom: 1px solid rgba(23, 53, 82, .1); }
.crypto-row:last-child { border-bottom: 0; }
.crypto-row .detail-label { margin: 0; }
.crypto-row code { min-width: 0; overflow-wrap: anywhere; color: var(--navy); font-size: 9px; font-weight: 800; line-height: 1.15; }
.copy-button { min-height: 29px; padding: 0 8px; color: var(--navy); background: white; border: 1px solid #c8d0d5; border-radius: 8px; font-size: 9px; font-weight: 800; }
.copy-button.copied { color: white; background: var(--green); }
.donation-status { min-height: 18px; margin: 9px 0 -8px; color: var(--orange); font-size: 12px; font-weight: 800; }
.confirm-button { min-height: 48px; }

.preview-dialog { width: min(1100px, calc(100% - 24px)); padding: 16px; background: var(--paper-light); border-radius: 18px; }
.preview-dialog img { width: 100%; border-radius: 9px; }
.preview-dialog p { margin: 13px 4px 2px; color: var(--navy); font-weight: 800; }
.thanks-dialog { text-align: center; overflow: visible; }
.thanks-face { width: 125px; height: 125px; margin: -100px auto 22px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(23,53,82,.18)); }
.thanks-dialog audio { width: 100%; margin: 20px 0 4px; }
.telegram-dialog { text-align: center; }
.telegram-icon { width: 74px; aspect-ratio: 1; margin: 0 auto 22px; display: grid; place-items: center; color: white; background: #229ed9; border-radius: 50%; font-size: 21px; font-weight: 1000; transform: rotate(-5deg); }
.telegram-dialog > p:not(.kicker) { max-width: 500px; margin: 0 auto 24px; color: #52606c; font-size: 16px; }
.telegram-button { width: 100%; color: white; background: #229ed9; box-shadow: 0 10px 24px rgba(34, 158, 217, .22); }
.telegram-skip { margin-top: 16px; padding: 8px 14px; color: var(--muted); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; text-align: center; gap: 20px; }
  .hero-lede { margin-inline: auto; }
  .hero-visual { width: min(560px, 100%); margin-inline: auto; }
  .story { grid-template-columns: 1fr; gap: 50px; }
  .story-photo { width: min(600px, 100%); margin-inline: auto; }
}

@media (max-width: 620px) {
  .section-shell { width: min(100% - 28px, 1120px); }
  .section-block { padding-block: 72px; }
  .site-header { width: calc(100% - 28px); height: 72px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 34px; }
  .header-cta { min-height: 38px; padding-inline: 13px; font-size: 11px; }
  .hero { width: 100%; min-height: auto; padding: 110px 14px 30px; }
  h1 { font-size: clamp(44px, 13.5vw, 62px); }
  h2 { font-size: 40px; }
  .hero-lede { font-size: 17px; }
  .button { width: 100%; min-height: 53px; padding-inline: 18px; }
  .hero-visual { min-height: 410px; }
  .hero-shape { width: 380px; right: -55px; top: 22px; }
  .hero-visual > img { width: 390px; height: 420px; right: -10px; }
  .note { padding: 11px 13px; font-size: 10px; box-shadow: 4px 4px 0 var(--navy); }
  .note-one { left: 2px; top: 54px; }
  .note-two { right: 0; bottom: 34px; }
  .slide-strip { margin-top: 38px; grid-template-columns: 1fr; gap: 28px; }
  .section-intro, .story-copy > p:not(.kicker) { font-size: 16px; }
  .story-photo, .story-photo img { min-height: 380px; height: 380px; }
  blockquote { font-size: 20px; }
  .footer { min-height: 100px; flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
  .course-dialog, .thanks-dialog, .telegram-dialog { padding: 26px 14px 20px; }
  .course-dialog h2, .thanks-dialog h2, .telegram-dialog h2 { font-size: 34px; }
  .support-panel > h2 { font-size: 28px; }
  .support-panel > p:not(.kicker) { font-size: 12px; line-height: 1.35; }
  .amount-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .amount { min-height: 45px; font-size: 12px; }
  .method-tabs { grid-template-columns: 1fr 1fr; }
  .fund-progress { grid-template-columns: auto 1fr; }
  .fund-percent { display: none; }
  .fund-label strong { font-size: 14px; }
  .fund-marker { width: 39px; }
  .route-cities { font-size: 8px; }
  .crypto-row { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 5px; }
  .crypto-row code { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}
