:root {
  --navy-950: #071326;
  --navy-900: #0b1d35;
  --navy-800: #122b4a;
  --blue: #2f6fed;
  --blue-dark: #245bc8;
  --cyan: #6bd9ff;
  --ink: #142033;
  --muted: #667085;
  --line: #e5e9f0;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --success: #0d9d76;
  --danger: #c93f52;
  --warning: #a76300;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0, 12, 35, .25), 0 3px 12px rgba(0, 12, 35, .08);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--navy-950); }

body {
  min-height: 100vh;
  margin: 0;
  color: #edf5ff;
  background:
    linear-gradient(rgba(104, 172, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 172, 255, .045) 1px, transparent 1px),
    radial-gradient(circle at 15% 10%, #163a68 0, transparent 32%),
    linear-gradient(145deg, var(--navy-900), var(--navy-950));
  background-size: 48px 48px, 48px 48px, auto, auto;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.page-glow {
  position: fixed;
  z-index: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .16;
  pointer-events: none;
}
.page-glow-left { left: -180px; top: 45%; background: #2c84ff; }
.page-glow-right { right: -180px; top: 12%; background: #54d2ff; }

.site-header, main, .site-footer { position: relative; z-index: 1; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 205px;
  height: auto;
}

.secure-label {
  color: #a9bad0;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.secure-label span { color: #55d7aa; font-size: 10px; }

.payment-shell {
  width: min(1080px, calc(100% - 40px));
  min-height: calc(100vh - 210px);
  margin: 40px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.intro-copy { max-width: 500px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.intro-copy h1 {
  max-width: 560px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.intro-copy > p {
  max-width: 500px;
  margin: 0;
  color: #a9bad0;
  font-size: 17px;
}

.benefits {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.benefits li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.benefits li > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 10px;
  color: #8db7ff;
  background: rgba(47,111,237,.14);
  font-size: 11px;
  font-weight: 800;
}
.benefits div { display: grid; gap: 1px; }
.benefits strong { font-size: 13px; }
.benefits small { color: #8fa6c2; font-size: 12px; }

.payment-card {
  color: var(--ink);
  background: rgba(255,255,255,.985);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-heading {
  padding: 27px 28px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.card-kicker { color: var(--muted); font-size: 12px; font-weight: 650; }
.card-heading h2 { margin: 3px 0 0; font-size: 25px; letter-spacing: -.025em; }
.mode-badge {
  padding: 6px 9px;
  border-radius: 999px;
  color: #875200;
  background: #fff2cd;
  font-size: 10px;
  font-weight: 800;
}

.account-line {
  margin: 0 28px 18px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 12px;
  background: #f1f5fb;
  color: var(--muted);
  font-size: 12px;
}
.account-line strong { color: var(--ink); font-size: 12px; text-align: right; }

fieldset { margin: 0; padding: 0 28px 25px; border: 0; }
fieldset:disabled { opacity: .55; }

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-bottom: 20px;
}
.amount-option {
  min-height: 49px;
  border: 1px solid #dce2eb;
  border-radius: 12px;
  color: #263348;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.amount-option:hover { border-color: #88aef8; transform: translateY(-1px); }
.amount-option-custom {
  grid-column: 1 / -1;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.amount-option-custom small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.amount-option.is-active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(47,111,237,.2);
}
.amount-option.is-active small { color: rgba(255,255,255,.78); }

.field-label { display: block; margin: 14px 0 7px; font-size: 12px; font-weight: 750; }
.input-wrap {
  height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid #dce2eb;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input-wrap:focus-within { border-color: #76a1fa; box-shadow: 0 0 0 4px rgba(47,111,237,.1); }
.input-wrap input {
  width: 100%;
  height: 100%;
  padding: 0 13px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}
.input-wrap span { padding-right: 14px; color: var(--muted); font-weight: 700; }
.amount-input input { font-size: 17px; font-weight: 750; }
.field-help { display: block; margin-top: 5px; color: #8b96a8; font-size: 10px; }

.terms-check {
  margin: 19px 0 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}
.terms-check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--blue); }
.terms-check span { flex: 1; }
.terms-check a { color: #325fae; }

.form-error { min-height: 18px; margin-bottom: 5px; color: var(--danger); font-size: 11px; }

.pay-button {
  width: 100%;
  min-height: 52px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 10px 24px rgba(47,111,237,.27);
  cursor: pointer;
  font-size: 13px;
  transition: transform .15s, filter .15s;
}
.pay-button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.pay-button:disabled { cursor: wait; opacity: .65; transform: none; }
.pay-button strong { font-size: 14px; }
.pay-button-copy {
  display: grid;
  gap: 1px;
  text-align: left;
}
.pay-button-copy b { font-size: 14px; }
.pay-button-copy small { color: rgba(255,255,255,.75); font-size: 10px; font-weight: 600; }
.sbp-pay-button {
  background: linear-gradient(135deg, #7157f5, #3e72ee 58%, #17a9c7);
  box-shadow: 0 10px 24px rgba(80,83,230,.3);
}
.other-methods-button {
  width: 100%;
  min-height: 52px;
  margin-top: 9px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #354258;
  background: #fff;
  border: 1px solid #dce2eb;
  border-radius: 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.other-methods-button:hover { border-color: #88aef8; background: #f9fbff; transform: translateY(-1px); }
.other-methods-button:disabled { cursor: wait; opacity: .55; transform: none; }
.other-methods-button > span:first-child { display: grid; gap: 1px; text-align: left; }
.other-methods-button b { font-size: 12px; }
.other-methods-button small { color: var(--muted); font-size: 9px; }
.other-methods-button > span:last-child { color: var(--blue); font-size: 18px; }

.provider-note {
  padding: 16px 28px 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #788497;
  background: #f8f9fc;
  border-top: 1px solid #edf0f4;
  font-size: 10px;
}
.provider-note p { margin: 0; }
.shield {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-weight: 850;
}

.notice {
  margin: 0 28px 18px;
  padding: 12px 13px;
  display: grid;
  gap: 2px;
  border-radius: 12px;
  font-size: 11px;
}
.notice strong { font-size: 12px; }
.notice-error { color: #9b3042; background: #fff0f2; }
.notice-warning { margin: 20px 0 28px; color: #80520d; background: #fff5dd; }

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #7890ac;
  font-size: 11px;
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a:hover { color: #dceaff; }
.site-footer p { margin: 0; }

.result-shell {
  width: min(520px, calc(100% - 40px));
  min-height: 420px;
  margin: 70px auto 110px;
  padding: 48px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.result-shell h1 { margin: 4px 0 10px; font-size: 30px; letter-spacing: -.03em; }
.result-shell p { max-width: 380px; margin: 0; color: var(--muted); font-size: 14px; }
.result-shell .eyebrow { color: var(--blue); }
.result-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 28px;
  font-weight: 850;
}
.result-icon.is-loading span {
  width: 28px;
  height: 28px;
  border: 3px solid #c9d9fa;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.result-icon.is-success { color: #fff; background: var(--success); }
.result-icon.is-failed { color: #fff; background: var(--danger); }
.result-icon.is-review { color: #fff; background: #d08a1a; }
.result-amount { margin-top: 18px; padding: 8px 13px; border-radius: 10px; background: var(--soft); font-weight: 750; }
.result-actions { margin-top: 28px; }
.secondary-button {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dce2eb;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
}

.legal-card {
  width: min(820px, calc(100% - 40px));
  margin: 38px auto 90px;
  padding: clamp(28px, 5vw, 62px);
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.legal-card .eyebrow { margin-top: 28px; color: var(--blue); }
.legal-card h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 50px); line-height: 1.08; letter-spacing: -.04em; }
.legal-card h2 { margin: 30px 0 8px; font-size: 18px; letter-spacing: -.015em; }
.legal-card p { margin: 8px 0; color: #526075; font-size: 14px; }
.legal-card .lead { color: #263348; font-size: 17px; }
.legal-card a { color: #2f60bb; }
.back-link { color: #667085 !important; font-size: 13px; text-decoration: none; }
.requisites { margin: 12px 0 0; border-top: 1px solid var(--line); }
.requisites div { padding: 11px 0; display: grid; grid-template-columns: 160px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.requisites dt { color: var(--muted); font-size: 12px; }
.requisites dd { margin: 0; font-size: 13px; font-weight: 650; }
.document-date { margin-top: 30px !important; color: #939dad !important; font-size: 11px !important; }
.contact-panel { padding: 20px; border-radius: 14px; background: var(--soft); }
.contact-panel h2 { margin-top: 0; }
.contact-link { display: block; margin: 6px 0; font-size: 16px; font-weight: 750; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 880px) {
  .payment-shell { grid-template-columns: 1fr; margin-top: 20px; }
  .intro-copy { max-width: 620px; margin: 0 auto; text-align: center; }
  .intro-copy > p { margin-inline: auto; }
  .benefits { max-width: 520px; margin-inline: auto; text-align: left; }
  .payment-card { width: min(520px, 100%); margin: 0 auto; }
}

@media (max-width: 560px) {
  .site-header { width: min(100% - 28px, 1180px); padding: 18px 0; }
  .secure-label { display: none; }
  .brand-logo { width: 182px; }
  .payment-shell { width: min(100% - 20px, 1080px); margin: 25px auto 55px; gap: 34px; }
  .intro-copy h1 { font-size: 38px; }
  .intro-copy > p { font-size: 15px; }
  .benefits { display: none; }
  .payment-card { border-radius: 18px; }
  .card-heading { padding: 22px 20px 17px; }
  .account-line, .notice { margin-inline: 20px; }
  fieldset { padding: 0 20px 22px; }
  .provider-note { padding-inline: 20px; }
  .site-footer { width: min(100% - 28px, 1180px); align-items: flex-start; gap: 22px; flex-direction: column; }
  .result-shell { padding: 40px 22px; }
  .legal-card { width: min(100% - 20px, 820px); margin-top: 20px; padding: 28px 20px; }
  .requisites div { grid-template-columns: 1fr; gap: 3px; }
}

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