:root {
  --ink: #152440;
  --muted: #52647e;
  --blue: #164dce;
  --line: #dce5f0;
  --pale: #edf3ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 115px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f9fd;
  font: 16px/1.75 system-ui,-apple-system,"Nirmala UI",sans-serif;
}

a {
  color: var(--blue);
  text-decoration: none;
}

button,input {
  font: inherit;
}

button,a,input,summary {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline: 3px solid #e89f17;
  outline-offset: 4px;
}

h1,h2,h3,p {
  margin-top: 0;
}

h1 {
  font-size: clamp(32px,4.2vw,58px);
  line-height: 1.18;
  letter-spacing: -.035em;
  white-space: pre-line;
}

h2 {
  font-size: clamp(26px,3vw,37px);
  line-height: 1.3;
  letter-spacing: -.025em;
}

h3 {
  font-size: 20px;
  line-height: 1.4;
}

p {
  color: var(--muted);
}

.wrap {
  width: min(1160px,calc(100% - 40px));
  margin: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: white;
  padding: 10px;
  z-index: 20;
}

.skip:focus {
  top: 5px;
}

header {
  background: #ffffffed;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
}

.logo {
  position: relative;
  display: block;
  width: 170px;
  aspect-ratio: 1235/346;
  overflow: hidden;
  flex-shrink: 0;
}

.logo img {
  position: absolute;
  width: 103.643725%;
  left: -2.186235%;
  top: -39.884393%;
}

.languages {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.languages button,.filters button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 12px;
  background: white;
  color: var(--muted);
}

button[aria-pressed=true] {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

nav {
  display: flex;
  gap: 25px;
  padding: 0 0 10px;
  overflow: auto;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
}

nav a {
  color: var(--muted);
}

section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 55px;
  align-items: center;
  padding: 62px 0 34px;
}

.eyebrow {
  font-size: 12px;
  color: var(--blue);
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.lead {
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 19px;
  background: white;
  font-weight: 650;
  line-height: 1.5;
  min-height: 46px;
}

.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.account {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 20px 70px #1b418011;
}

.account h3 {
  margin-bottom: 6px;
}

.small {
  font-size: 13px;
}

.moneyrow {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.moneyrow strong {
  white-space: nowrap;
}

.moneyrow.total {
  margin: 8px -12px 15px;
  padding: 18px 12px;
  border-radius: 9px;
  background: var(--pale);
  border: 0;
}

.notice {
  padding: 22px 25px;
  border-radius: 12px;
  background: #fff6e5;
  border: 1px solid #efd9a5;
}

.notice strong {
  display: block;
  margin-bottom: 5px;
}

.notice p {
  margin: 0;
  font-size: 14px;
  color: #705827;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 15px;
  padding: 28px 0 45px;
}

.stat {
  padding: 15px 20px;
  border-left: 2px solid #d3dff6;
}

.stat strong {
  display: block;
  font-size: 30px;
  line-height: 1.3;
  color: var(--blue);
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

.intro {
  max-width: 850px;
  margin-bottom: 30px;
}

.steps,.cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.step,.card {
  padding: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.step b {
  display: inline-block;
  color: var(--blue);
  background: var(--pale);
  padding: 4px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.step p,.card p {
  font-size: 14px;
  margin: 0;
}

.card .reward {
  font-size: 32px;
  font-weight: 750;
  color: var(--blue);
  margin: 12px 0;
}

.cards {
  grid-template-columns: repeat(2,1fr);
}

.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
}

.fields,.result {
  padding: 30px;
}

.result {
  background: var(--ink);
  color: white;
}

.result .moneyrow {
  border-color: #ffffff24;
}

.fields label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 5px;
}

.fields input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #becce0;
  border-radius: 8px;
  margin-bottom: 18px;
  background: #fcfdff;
  color: var(--ink);
}

.result .calc-total {
  font-size: 30px;
  color: #91b8ff;
}

.error {
  color: #ad2435;
  min-height: 1.5em;
  font-size: 13px;
  margin: 0;
}

.note {
  font-size: 14px;
  margin: 20px 0 0;
}

.referral {
  padding: 28px;
  margin-top: 25px;
  border-radius: 16px;
  background: var(--pale);
}

.tree {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.tree span {
  padding: 9px 16px;
  background: white;
  border-radius: 8px;
}

.referral p:last-child {
  margin: 0;
}

.tablebox {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 13px;
  background: var(--pale);
}

td {
  font-variant-numeric: tabular-nums;
}

tr:last-child td {
  border: 0;
  background: #f0f6ff;
  font-weight: 700;
}

.totals {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.totals span {
  background: var(--pale);
  padding: 10px 15px;
  border-radius: 9px;
  font-weight: 650;
  font-size: 14px;
}

.statuses {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}

.statuses div {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
  background: white;
}

.statuses b {
  color: var(--blue);
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}

.faqsearch {
  width: 100%;
  max-width: 680px;
  display: block;
  margin: 7px 0 20px;
  padding: 13px 16px;
  border: 1px solid #becce0;
  border-radius: 10px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.count {
  margin: 15px 0;
  font-size: 13px;
}

details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 10px;
}

summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
}

details p {
  padding: 0 20px 20px;
  margin: 0;
  font-size: 15px;
}

.contact {
  padding: 35px;
  border-radius: 18px;
  background: var(--pale);
}

footer {
  padding: 28px 0 90px;
  font-size: 12px;
  color: var(--muted);
}

.empty {
  padding: 20px;
}

.floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9;
  box-shadow: 0 4px 20px #15244022;
}

.contact .actions {
  margin-bottom: 20px;
}

@media (max-width:760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 32px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .steps {
    grid-template-columns: repeat(2,1fr);
  }

  .calculator {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2,1fr);
  }

  .statuses {
    grid-template-columns: repeat(2,1fr);
  }

  section {
    padding: 42px 0;
  }

  .logo {
    width: 140px;
  }

  .languages button {
    padding: 6px 9px;
    font-size: 13px;
  }

  .top {
    gap: 9px;
  }

  .account {
    padding: 22px;
  }

  .hero h1 {
    max-width: 600px;
  }

  th,td {
    padding: 12px 10px;
    font-size: 13px;
  }
}

@media (max-width:450px) {
  .steps,.cards {
    grid-template-columns: 1fr;
  }

  .logo {
    width: 115px;
  }

  .languages {
    gap: 3px;
  }

  .languages button {
    padding: 6px 7px;
    font-size: 12px;
  }

  .fields,.result,.contact {
    padding: 22px;
  }

  .stat {
    padding: 12px;
  }

  .lead {
    font-size: 16px;
  }

  .tree {
    font-size: 13px;
  }

  .tree span {
    padding: 7px 9px;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
