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

:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1a1c2b;
  --muted: #6b7083;
  --primary: #4f46e5;
  --primary-2: #7c5cff;
  --primary-soft: #eef0ff;
  --border: #e6e8f2;
  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(30, 30, 60, .28);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

.container { width: min(1120px, 92%); margin: 0 auto; }
.narrow { width: min(640px, 92%); }

/* фоновые блобы */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.blob-1 { width: 480px; height: 480px; background: #d3dcff; top: -160px; left: -120px; }
.blob-2 { width: 380px; height: 380px; background: #e4d7ff; top: 30%; right: -140px; }
.blob-3 { width: 320px; height: 320px; background: #d9f2ff; bottom: -120px; left: 28%; }

/* шапка */
.header { padding: 18px 0; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); background: rgba(246,247,251,.8); border-bottom: 1px solid rgba(230,232,242,.6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--text); }
.logo svg { display: block; }
.logo-accent { color: var(--primary); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--primary); }

/* hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); color: var(--primary);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  padding: 8px 16px; border-radius: 999px; box-shadow: 0 4px 14px rgba(79,70,229,.10);
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; max-width: 720px; }
.hero .sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; font-family: inherit; font-weight: 600; text-decoration: none; border-radius: 12px; transition: transform .12s, box-shadow .12s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 12px 28px -12px rgba(79,70,229,.55); }
.btn-primary:hover { box-shadow: 0 16px 34px -12px rgba(79,70,229,.7); }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; padding: 14px; font-size: 16px; margin-top: 6px; }

/* письмо на странице ссылки */
.letter { width: 100%; max-width: 520px; margin-top: 10px; animation: fadeUp .5s ease both; }
.letter-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.letter-head { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 700; padding: 14px 22px; font-size: 15px; }
.letter-body { padding: 24px 22px; font-size: 16px; color: #2c2e3e; white-space: pre-line; }

/* заглушка VPN */
.stub-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 42px 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; animation: fadeUp .5s ease both; }
.stub-icon { width: 84px; height: 84px; border-radius: 24px; background: var(--primary-soft); display: grid; place-items: center; }
.stub-title { font-size: clamp(22px, 4vw, 28px); letter-spacing: -.02em; font-weight: 800; }
.stub-text { color: var(--muted); font-size: 16px; max-width: 360px; }
.stub-note { font-size: 13px; color: var(--muted); }

/* секции */
.section { padding: 34px 0 56px; }
.section-title { text-align: center; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em; margin-bottom: 34px; }

/* карточка формы */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.compose h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 4px; }
.card-sub { color: var(--muted); margin-bottom: 22px; font-size: 15px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: #33354a; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 15px; color: var(--text); background: #fafbfe; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,70,229,.12); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.hint { text-align: right; font-size: 12px; color: var(--muted); margin-top: 5px; }
.status { text-align: center; font-size: 15px; font-weight: 600; margin-top: 14px; min-height: 22px; }
.status.ok { color: #16a34a; }
.status.err { color: #dc2626; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: 0 10px 30px -20px rgba(30,30,60,.2); }
.step-num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 17px; margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* доверие */
.trust { padding: 8px 0 56px; }
.trust-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.trust-item { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px; font-size: 14px; color: var(--muted); box-shadow: 0 6px 18px -14px rgba(30,30,60,.25); }
.trust-item strong { color: #33354a; }

/* подвал */
.footer { border-top: 1px solid var(--border); padding: 22px 0; background: rgba(255,255,255,.7); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.footer-muted { color: var(--muted); }

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

@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding: 48px 0 40px; }
  .card { padding: 24px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr; }
}
