:root {
  --red: #e40000;
  --red-dark: #b30000;
  --red-soft: #fff2f2;
  --ink: #12151a;
  --muted: #6b7280;
  --line: #e7e9ee;
  --page: #f5f6f8;
  --green: #0f7b3f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #fdf2f2;
  background-image:
    radial-gradient(1000px 480px at 50% -220px, rgba(228, 0, 0, .22), transparent 72%),
    radial-gradient(700px 420px at 100% 0%, rgba(228, 0, 0, .10), transparent 65%),
    repeating-linear-gradient(135deg, rgba(228, 0, 0, .045) 0 1.5px, transparent 1.5px 14px),
    linear-gradient(180deg, #fff1f1 0%, #fbf3f3 26%, #f6f6f8 60%, #f3f4f7 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  padding: 0 0 48px;
}

.shell { width: 100%; max-width: 520px; position: relative; z-index: 1; }

/* ── header ────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}

.brand { display: flex; align-items: baseline; gap: 7px; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -1.2px; color: var(--red); }
.brand-sub { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.header-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red-dark);
  background: var(--red-soft);
  border: 1px solid #ffd7d7;
  padding: 6px 10px;
  border-radius: 999px;
}

/* ── hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 22px 28px;
  color: #fff;
  background:
    radial-gradient(520px 220px at 88% -30%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(135deg, #e40000 0%, #c00000 55%, #8a0000 100%);
}

.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ffd6d6;
  margin-bottom: 12px;
}

.hero .kicker::before { content: ''; width: 15px; height: 2px; border-radius: 2px; background: #fff; }

.hero h1 { font-size: 29px; line-height: 1.15; font-weight: 800; letter-spacing: -.7px; margin-bottom: 10px; }
.hero p { font-size: 13.5px; line-height: 1.65; color: #ffe0e0; font-weight: 500; max-width: 42ch; }

.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.hero-stats strong { display: block; font-size: 18px; font-weight: 800; }
.hero-stats span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffc9c9; }

/* ── cards ─────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 20px;
  margin: 16px 20px 0;
  box-shadow: 0 14px 30px -26px rgba(120, 10, 10, .55);
}

.card h2 { font-size: 15px; font-weight: 800; letter-spacing: -.2px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

.card h2 .icon {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--red-soft);
  color: var(--red);
  display: grid; place-items: center;
}

.features { display: grid; gap: 13px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }

.feature .ico {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  display: grid; place-items: center;
}

.feature strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.feature span { font-size: 12px; line-height: 1.55; color: var(--muted); font-weight: 500; }

.cta {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  border: none;
  border-radius: 11px;
  background: var(--red);
  color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: background .15s, opacity .15s, transform .1s;
}
.cta:hover { background: var(--red-dark); }
.cta:active { transform: translateY(1px); }
.cta:disabled { opacity: .55; cursor: default; }

.cta.loading { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }

.fineprint { margin-top: 12px; font-size: 11px; line-height: 1.6; color: #98a2ae; text-align: center; font-weight: 500; }

/* ── form ──────────────────────────────────────────────── */
.page-head { padding: 22px 20px 0; }
.page-head .step { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.page-head h1 { font-size: 23px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 6px; }
.page-head p { font-size: 13.5px; line-height: 1.6; color: var(--muted); font-weight: 500; }

.progress { display: flex; gap: 5px; margin: 16px 20px 0; }
.progress i { height: 4px; flex: 1; border-radius: 4px; background: #e6e9ee; }
.progress i.on { background: var(--red); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 7px; color: #3a4653; }
.field label em { font-style: normal; color: #9aa4b0; font-weight: 500; }

.field input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfd;
  font-family: inherit; font-size: 15px; font-weight: 500;
  color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder { color: #a9b3bf; }
.field input:focus { background: #fff; border-color: var(--red); box-shadow: 0 0 0 3px rgba(228, 0, 0, .1); }
.field.has-error input, .field.has-error .boxes input { border-color: #d92d20; background: #fffbfa; }

.field-msg { margin-top: 6px; font-size: 12px; font-weight: 600; color: #c8382f; }
.field-msg:empty { display: none; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.choice {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfd;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink);
  text-align: left; cursor: pointer; transition: all .14s;
}
.choice .tick { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; border: 2px solid #dfe4ea; display: grid; place-items: center; font-size: 9px; color: transparent; }
.choice.selected { border-color: var(--red); background: var(--red-soft); }
.choice.selected .tick { background: var(--red); border-color: var(--red); color: #fff; }

.phone-wrap { display: flex; gap: 8px; }
.cc {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line); border-radius: 11px;
  background: #f7f9fb;
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
.phone-wrap input { flex: 1; letter-spacing: .5px; }

.boxes { display: flex; gap: 8px; justify-content: center; }
.boxes input {
  width: 100%; max-width: 56px; height: 58px; padding: 0;
  text-align: center; font-size: 22px; font-weight: 700;
  border: 1px solid var(--line); border-radius: 11px;
  background: #fbfcfd; color: var(--ink); outline: none;
}
.boxes input:focus { background: #fff; border-color: var(--red); box-shadow: 0 0 0 3px rgba(228, 0, 0, .1); }

.alert {
  display: none;
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: 11px;
  background: #fff7f6;
  border: 1px solid #f6d4d1;
  color: #b93a32;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
}
.alert.show { display: block; }

.wait {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 14px; padding: 12px;
  border-radius: 11px;
  background: var(--red-soft);
  border: 1px solid #ffd9d9;
  color: var(--red-dark);
  font-size: 12.5px; font-weight: 600;
}
.wait[hidden] { display: none; }

@keyframes spinAnim { to { transform: rotate(360deg); } }
.spinner, .btn-spin {
  width: 14px; height: 14px;
  border: 2px solid rgba(228, 0, 0, .22);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spinAnim .8s linear infinite;
  display: inline-block;
}
.btn-spin { border-color: rgba(255, 255, 255, .45); border-top-color: #fff; }

/* ── result ────────────────────────────────────────────── */
.result { text-align: center; padding: 6px 0 4px; }
.check {
  width: 62px; height: 62px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--red);
  color: #fff; font-size: 29px;
  display: grid; place-items: center;
  box-shadow: 0 12px 26px -14px rgba(228, 0, 0, .85);
}
.result h1 { font-size: 21px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 8px; }
.result p { font-size: 13.5px; line-height: 1.6; color: var(--muted); font-weight: 500; }

.float-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #ffe0b8;
  background: linear-gradient(160deg, #fffaf0 0%, #fff5e2 100%);
  text-align: left;
}

.float-card .amount {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.8px;
  color: #9a6400;
  margin-bottom: 4px;
}

.float-card .label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b98a2a;
  margin-bottom: 10px;
}

.float-card p { font-size: 12.5px; line-height: 1.65; color: #6f6257; font-weight: 500; }

.receipt { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: left; }
.receipt .line { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; font-size: 12.5px; font-weight: 500; color: var(--muted); border-bottom: 1px solid #f2f5f8; }
.receipt .line:last-child { border-bottom: none; }
.receipt .line strong { color: var(--ink); font-weight: 700; text-align: right; word-break: break-word; }

.ghost-btn {
  width: 100%; margin-top: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: 11px;
  background: #fff; font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--ink); cursor: pointer;
}

.site-footer { margin: 22px 20px 0; text-align: center; font-size: 11px; line-height: 1.7; color: #9aa4b0; font-weight: 500; }
.site-footer .marks { margin-bottom: 6px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b3bcc6; }
.site-footer .marks i { font-style: normal; color: #d5dbe2; margin: 0 8px; }


/* ── loading polish: progress + buttons ─────────────────── */
.progress { position: relative; }

.progress i.on {
  background: linear-gradient(90deg, #e40000 0%, #ff5a5a 50%, #e40000 100%);
  background-size: 200% 100%;
  animation: progressShimmer 2s linear infinite;
}

@keyframes progressShimmer {
  0%   { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

.cta.loading { position: relative; overflow: hidden; }
.cta.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: translateX(-100%);
  animation: btnSheen 1.3s ease-in-out infinite;
}

@keyframes btnSheen {
  100% { transform: translateX(100%); }
}
