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

:root {
  --bg:      #eef2ee;
  --card:    #ffffff;
  --border:  #dde5df;
  --border-strong: #c8d3cb;
  --text:    #0f1c16;
  --text2:   #4a574f;
  --text3:   #7d887f;
  --accent:  #0c8a5c;
  --accent2: #086d48;
  --accent-glow: rgba(12,138,92,0.14);
  --green:   #0c8a5c;
  --red:     #d4493b;
  --font-display: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Фоновые элементы */
.bg-dots {
  position: fixed; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, #d7e0d9 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.55;
}
.bg-shape {
  position: fixed; z-index: 0; pointer-events: none;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(12,138,92,0.10) 0%, transparent 65%);
  top: -160px; right: -160px;
}
.bg-shape2 {
  position: fixed; z-index: 0; pointer-events: none;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,192,137,0.08) 0%, transparent 65%);
  bottom: -80px; left: -80px;
}

.wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 60px;
  max-width: 900px; width: 100%; padding: 24px;
}

/* Левая часть — карточка */
.card {
  width: 400px; flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 22px 70px rgba(13, 38, 28, 0.09), 0 1px 4px rgba(13, 38, 28, 0.04);
  animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.logo-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: linear-gradient(135deg, #22abc8, var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 22px; height: 22px; }
.logo-name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800;
  color: var(--text); letter-spacing: -0.4px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  color: var(--text); letter-spacing: -0.4px;
  margin-bottom: 6px; line-height: 1.2;
}
.step-sub {
  font-size: 13px; color: var(--text2);
  line-height: 1.6; margin-bottom: 26px;
}

.progress-dots {
  display: flex; gap: 5px; margin-bottom: 24px;
}
.dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: var(--border); transition: all 0.3s;
}
.dot.active { width: 18px; background: var(--accent); }
.dot.done   { background: var(--green); }

.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--text3); text-transform: uppercase;
  letter-spacing: 0.6px; margin-bottom: 6px;
}
.field input {
  width: 100%; padding: 11px 13px;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text); font-size: 14px;
  font-family: var(--font-body);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: #fff;
}
.field input::placeholder { color: var(--text3); }

.code-input {
  font-size: 26px !important;
  letter-spacing: 10px !important;
  text-align: center !important;
  padding: 14px !important;
  font-family: var(--font-mono) !important;
}

.btn {
  width: 100%; padding: 13px;
  background: var(--accent);
  color: white; border: none;
  border-radius: 999px; font-size: 14px;
  font-weight: 700; font-family: var(--font-display);
  cursor: pointer; margin-top: 6px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.btn:hover {
  background: var(--accent2);
  box-shadow: 0 12px 26px rgba(12,138,92,.22);
}
.btn:active  { transform: scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle; margin-right: 7px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.alert {
  padding: 10px 13px; border-radius: 8px;
  font-size: 13px; margin-bottom: 13px; display: none;
}
.alert.show { display: block; }
.alert.err { background: rgba(220,38,38,0.07); color: var(--red); border: 1px solid rgba(220,38,38,0.15); }
.alert.ok  { background: rgba(5,150,105,0.07); color: var(--green); border: 1px solid rgba(5,150,105,0.15); }

.back-link {
  display: block; text-align: center;
  margin-top: 14px; font-size: 13px;
  color: var(--text3); cursor: pointer; transition: color 0.2s;
}
.back-link:hover { color: var(--text2); }
.promo-toggle { border: 0; padding: 0; margin: 2px 0 12px; background: transparent; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.promo-toggle:hover { text-decoration: underline; }

.timer { font-size: 12px; color: var(--text3); text-align: center; margin-top: 10px; }
.timer span { color: var(--accent); }

.step { display: none; animation: fadeUp 0.3s ease both; }
.step.active { display: block; }

/* Правая часть — преимущества */
.tagline-side {
  flex: 1; max-width: 360px;
  animation: fadeUp 0.55s 0.1s ease both;
}
.tagline-sub {
  font-size: 15px; color: var(--text2);
  line-height: 1.65; max-width: 340px;
  margin-bottom: 26px;
}
.tagline-points { display: flex; flex-direction: column; gap: 14px; }
.tagline-point {
  display: flex; align-items: flex-start; gap: 11px;
}
.tp-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 7px;
  box-shadow: 0 0 0 5px rgba(12,138,92,.09);
}
.tp-text { font-size: 13.5px; color: var(--text2); line-height: 1.5; }
.tp-text strong { color: var(--text); font-weight: 700; }

@media (max-width: 720px) {
  .tagline-side { display: none; }
  .wrap { justify-content: center; padding: 16px; }
  .card { width: 100%; max-width: 400px; padding: 32px 24px; }
}
