@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --page: #f4f7fb;
  --surface: #ffffff;
  --ink: #1c2434;
  --muted: #667085;
  --line: #e6ebf2;
  --brand: #2f6bff;
  --brand-deep: #1f54d8;
  --brand-soft: #eaf1ff;
  --ok: #12b76a;
  --danger: #d92d20;
  --shadow: 0 8px 24px rgba(28, 36, 52, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --control: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  background: var(--page);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app {
  width: min(560px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom));
}

.app-wide {
  width: min(1080px, 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.icon-btn,
.text-btn,
.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.text-btn {
  gap: 6px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.stage {
  padding-top: 4px;
}

.steps {
  display: flex;
  gap: 4px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.steps-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.steps-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
}

.steps-mark .icon {
  width: 12px;
  height: 12px;
}

.steps-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.steps-item.is-on {
  color: var(--ink);
}

.steps-item.is-on .steps-mark {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.steps-item.is-done .steps-mark {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  max-width: 40ch;
}

.panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.panel + .panel {
  margin-top: 12px;
}

.panel-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 720;
}

.panel-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span,
.field-label {
  font-size: 14px;
  font-weight: 650;
}

.field small {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field textarea,
.select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}

.field input:focus,
.field textarea:focus,
.select:focus {
  outline: 3px solid var(--brand-soft);
  border-color: var(--brand);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-weight: 720;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--brand-deep);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-ghost {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.btn-row {
  display: grid;
  gap: 10px;
}

.sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 24px;
  padding: 12px 0 calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(244, 247, 251, 0), var(--page) 28%);
}

.notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--ink);
}

.notice-error {
  background: #fee4e2;
}

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

.choice-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.choice input {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  border: 1.5px solid #d0d5dd;
  border-radius: 50%;
  background: #fff;
}

.choice input:checked {
  border-color: var(--brand);
  background: radial-gradient(circle, var(--brand) 0 5px, #fff 6px);
}

.choice span {
  min-width: 0;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.35;
}

.choice.is-on {
  border-color: var(--brand);
  background: #f5f8ff;
}

.phone-preview {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.phone-preview .preview-name {
  margin: 0;
  padding: 0;
  background: none;
  font-size: 18px;
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.only-desktop {
  display: none;
}

.panel .tag-field {
  padding: 0;
  border: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  max-width: 100%;
  padding: 0 6px 0 12px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: grab;
}

.chip:active {
  cursor: grabbing;
}

.chip.is-drag {
  opacity: 0.4;
}

.chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #98a2b3;
  cursor: pointer;
}

.chip button:hover,
.chip button:focus-visible {
  background: #e4e7ec;
  color: #344054;
}

.chip button svg {
  width: 12px;
  height: 12px;
}

.chip-add {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 4px 4px 4px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.chip-add:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.chip-add input {
  flex: 1;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.chip-add input:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}

.chip-add button {
  display: grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.chip-add button .icon {
  width: 16px;
  height: 16px;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.split {
  display: grid;
  gap: 20px;
}

.qr-box {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px 16px;
}

.qr-box img {
  width: auto;
  height: auto;
  max-width: 100%;
  image-rendering: pixelated;
  background: #fff;
}

.contact-card {
  padding: 18px 16px 16px;
}

.contact-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.kv {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.kv b {
  color: var(--ink);
  font-weight: 650;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e7f8ef;
  color: #087443;
  font-size: 13px;
  font-weight: 700;
}

.status-test {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.loader-screen {
  display: grid;
  min-height: calc(100dvh - 120px);
  place-items: center;
  padding: 12px 0 40px;
}

.loader-panel {
  width: 100%;
}

.progress {
  height: 6px;
  margin: 16px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
}

.progress > i {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 350ms ease;
}

.loader {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding: 0;
}

.loader-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--muted);
  font-size: 14px;
}

.loader-item.is-on {
  color: var(--ink);
  font-weight: 650;
}

.loader-item.is-done {
  color: var(--ink);
}

.dot {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.loader-item .dot .icon {
  display: none;
}

.loader-item.is-on .dot {
  border-color: var(--brand-soft);
  border-top-color: var(--brand);
  animation: spin 0.7s linear infinite;
}

.loader-item.is-done .dot {
  display: grid;
  place-items: center;
  border-color: var(--ok);
  background: var(--ok);
  color: #fff;
}

.loader-item.is-done .dot .icon {
  display: block;
  width: 11px;
  height: 11px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pay {
  padding: 18px 16px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 16px;
  font-size: 40px;
  font-weight: 780;
  letter-spacing: -0.05em;
}

.price span {
  font-size: 20px;
}

.checklist {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.checklist li {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
}

.sheet {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 8%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.sheet.is-land {
  aspect-ratio: 1.414 / 1;
}

.sheet p {
  margin: 0;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 760;
  letter-spacing: -0.04em;
}

.sheet img {
  width: min(52%, 280px);
  height: auto;
  image-rendering: pixelated;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.radio-row label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.radio-row input {
  margin-right: 8px;
  accent-color: var(--brand);
}

.vk-btn {
  background: #0077ff;
}

.hidden {
  display: none !important;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: start;
  }

  .sticky-preview {
    position: sticky;
    top: 24px;
  }

  .only-mobile {
    display: none;
  }

  .only-desktop {
    display: block;
  }

  .btn-row {
    grid-template-columns: 1fr 1fr;
  }

  .sticky-cta {
    position: static;
    background: none;
    padding: 20px 0 0;
  }
}
