:root {
  color-scheme: light;
  font: 100%/1.6 "Inter", system-ui, sans-serif;
  color: #15233b;
  background: #f5f8fc;
  --surface: #fff;
  --edge: #cdd9e7;
  --muted: #4a5e79;
  --brand: #234cc7;
  --brand-dark: #193997;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
a { color: var(--brand); text-underline-offset: .23em; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.wrap { width: min(69rem, calc(100% - 2.5rem)); margin-inline: auto; }
.top { background: var(--surface); border-bottom: 1px solid var(--edge); }
.bar, .footer { min-height: 4.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { color: #15233b; text-decoration: none; font-size: 1.24rem; font-weight: 850; letter-spacing: -.05em; }
.brand span { color: var(--brand); margin-left: .14rem; }
.site-nav, .access, .actions, .footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.55rem, 2.5vw, 1.4rem); }
.site-nav a, .access a, .footer a { font-size: .9rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.4rem, 8vw, 6rem); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.3rem, 6.5vw, 4.8rem); line-height: 1; letter-spacing: -.065em; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { font-size: 1.15rem; line-height: 1.18; letter-spacing: -.02em; }
p { color: var(--muted); }
.lead { margin-block: 1rem 1.5rem; max-width: 29rem; font-size: 1.1rem; }
.card { border: 1px solid var(--edge); border-radius: 1rem; background: var(--surface); }
.preview { padding: clamp(1rem, 4vw, 2rem); border-color: #bcccf2; box-shadow: 0 1.3rem 3.5rem #234cc715; }
.preview-title, .preview-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .4rem; }
.preview-title { font-weight: 650; color: #15233b; }
.preview-title span, .note { font-size: .875rem; color: var(--muted); font-weight: 500; }
.big-number { display: block; font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.history { display: grid; grid-template-columns: repeat(24, 1fr); gap: .22rem; margin-block: .6rem 1.2rem; }
.history span { height: 1.32rem; border-radius: .16rem; background: #b4c9ff; }
.history span:nth-child(4n) { background: #617de0; }
.history span:nth-child(11) { background: #e9a845; }
.preview-row { padding-block: .55rem; border-top: 1px solid var(--edge); font-size: .875rem; }
.section { margin-bottom: clamp(2.1rem, 6vw, 4rem); scroll-margin-top: 1.25rem; }
.section > h2, .section-head { margin-bottom: .95rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.feature, .plan, .contacts, .auth-card { padding: clamp(1rem, 4vw, 1.5rem); }
.feature p { margin-top: .5rem; }
.plan { display: flex; flex-direction: column; align-items: start; }
.plan.featured { border: 2px solid #5a76d1; }
.price { margin-top: .38rem; }
.price strong { color: #15233b; font-size: 2rem; letter-spacing: -.045em; }
.plan ul { margin-block: .45rem 1.1rem; padding-left: 1.2rem; flex-grow: 1; }
button, input { font: inherit; }
button:not(:disabled) { cursor: pointer; }
.button, .periods button { border: 1px solid var(--edge); border-radius: .55rem; padding: .55rem .85rem; text-decoration: none; font-weight: 660; }
.button { display: inline-block; }
.small { padding: .37rem .65rem; }
.primary, .primary:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.secondary, .periods button { color: var(--brand-dark); background: var(--surface); }
.periods { display: flex; gap: .25rem; }
.periods button { font-size: .875rem; }
.periods button[aria-pressed="true"] { border-color: var(--brand); background: #eaf0ff; }
.faq { padding-inline: 1rem; }
.faq details { padding-block: .65rem; }
.faq details + details { border-top: 1px solid var(--edge); }
summary { font-weight: 650; cursor: pointer; }
.faq p { margin-top: .4rem; }
.contacts { display: flex; gap: 1rem 2rem; align-items: start; flex-wrap: wrap; overflow-wrap: anywhere; }
.contacts .note { width: 100%; }
.footer { border-top: 1px solid var(--edge); color: var(--muted); }
.auth { display: grid; align-content: start; justify-items: center; padding-block: clamp(2rem, 8vh, 5rem); }
.auth-card { width: min(100%, 28rem); }
.auth h1, .error h1 { font-size: clamp(2rem, 6vw, 3rem); }
.auth-card form { display: grid; gap: .45rem; margin-top: 1.15rem; }
.auth-card .note, .auth-link, .auth-card label:not(:first-child) { margin-top: .65rem; }
.auth-card input { width: 100%; border: 1px solid #9db1cd; padding: .55rem .65rem; border-radius: .45rem; color: inherit; background: #fff; }
.message { color: #9e241e; font-weight: 650; }
.message:empty { margin: 0; }
.error { padding-block: clamp(2.4rem, 9vw, 6rem); }
.error .note { margin-bottom: .55rem; }
.error h1 + p { margin-block: .8rem 1.2rem; }
@media (max-width: 47rem) {
  .hero { grid-template-columns: 1fr; }
  .site-nav { order: 1; width: 100%; padding-bottom: .25rem; }
  .bar { padding-block: .65rem; }
}
@media (max-width: 37rem) {
  .grid { grid-template-columns: 1fr; }
}
