:root {
  --bg: #ffffff; --bg-soft: #f5f5f7; --text: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7;
  --accent: #4a52f2; --accent-hover: #3d45e6; --card: #ffffff; --ok: #1f9d55;
  --btn: #4a52f2; --btn-hover: #3d45e6;
  --brand: linear-gradient(135deg, #a197ff 0%, #6b6cfb 45%, #4a55f7 100%);
  --tg-bg: #e9eef3; --tg-in: #ffffff; --tg-btn: #e6eef8; --tg-btn-text: #2481cc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg-soft: #111113; --text: #f5f5f7; --muted: #a1a1a6; --line: #2c2c2e;
    --accent: #8a8fff; --accent-hover: #a3a7ff; --card: #1c1c1e; --ok: #34c759;
    --btn: #5a61f5; --btn-hover: #6c72ff;
    --tg-bg: #0e1621; --tg-in: #182533; --tg-btn: #1e2c3a; --tg-btn-text: #6ab3f3;
  }
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.01em;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }

/* Навігація */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px); background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo-icon { border-radius: 7px; display: block; }
.logo-word { display: block; height: 18px; width: auto; }
.nav-links { display: flex; gap: 22px; font-size: 13px; }
.nav-links a { color: var(--text); opacity: .8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a.btn { color: #fff; opacity: 1; }

/* Кнопки */
.btn { display: inline-block; background: var(--btn); color: #fff; border-radius: 980px;
  padding: 11px 22px; font-size: 17px; font-weight: 400; }
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn.small { padding: 5px 14px; font-size: 13px; }
.link-more::after { content: " ›"; }

/* Перший екран */
.hero { text-align: center; padding: 72px 0 40px; }
.hero-icon { display: block; margin: 0 auto 22px; border-radius: 22px; box-shadow: 0 18px 40px rgba(74, 85, 247, .28); }
.eyebrow { color: var(--muted); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; }
.hero p.lead { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); max-width: 640px; margin: 18px auto 30px; line-height: 1.35; }
.hero .actions { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Телефон із чатом */
.phone { text-align: left; width: 300px; margin: 56px auto 0; border-radius: 46px; padding: 12px; background: #1d1d1f;
  box-shadow: 0 30px 80px rgba(0,0,0,.18), inset 0 0 0 2px #3a3a3c; }
.screen { border-radius: 36px; overflow: hidden; background: var(--tg-bg); height: 560px; display: flex; flex-direction: column; }
.chat-head { background: var(--tg-in); padding: 30px 16px 10px; font-size: 14px; font-weight: 600; text-align: center;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.chat-head small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.chat { padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.35; }
.bubble { background: var(--tg-in); border-radius: 16px 16px 16px 4px; padding: 9px 12px; max-width: 92%;
  box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.file { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.file i { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); flex: none; position: relative; }
.file i::after { content: ""; position: absolute; inset: 11px 12px; border: 2px solid #fff; border-radius: 2px; }
.file b { font-size: 13px; } .file span { color: var(--muted); font-size: 12px; display: block; }
.tg-btns { display: grid; gap: 4px; max-width: 92%; }
.tg-btn { background: var(--tg-btn); color: var(--tg-btn-text); border-radius: 8px; text-align: center; padding: 8px; font-size: 13px; font-weight: 500; }
.bubble.ok, .ok-text { color: var(--ok); font-weight: 500; }
.nw { white-space: nowrap; }

/* Секції */
section { padding: 96px 0; }
section.soft { background: var(--bg-soft); }
.section-title { text-align: center; font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.section-sub { text-align: center; color: var(--muted); font-size: clamp(17px, 2vw, 21px); max-width: 620px; margin: 14px auto 0; }

/* Цикл */
.cycle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 56px; counter-reset: step; }
.step { background: var(--card); border-radius: 20px; padding: 24px 18px; counter-increment: step; }
.step::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.step h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* Можливості */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.tile { background: var(--bg-soft); border-radius: 20px; padding: 30px 26px; }
section.soft .tile { background: var(--card); }
.tile h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.2; }
.tile p { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* Дві колонки */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.duo .tile { padding: 36px 32px; }
.duo ul { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 10px; }
.duo li { padding-left: 26px; position: relative; font-size: 17px; }
.duo li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Заклик */
.cta { text-align: center; }

/* Заявка */
.form-card { max-width: 480px; margin: 40px auto 0; background: var(--bg-soft); border-radius: 24px; padding: 28px;
  display: grid; gap: 16px; text-align: left; }
.form-card label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form-card .optional { color: var(--muted); font-weight: 400; }
.form-card input, .form-card textarea { font: inherit; font-size: 17px; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; resize: vertical; }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.form-card .btn { border: 0; cursor: pointer; font: inherit; width: 100%; padding: 13px; }
.form-note { color: var(--muted); font-size: 12px; text-align: center; }
.field-error, .form-error { color: #e0245e; font-size: 13px; font-weight: 400; }
.form-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-card.done { text-align: center; justify-items: center; padding: 40px 28px; }
.form-card.done img { border-radius: 12px; }
.form-card.done h3 { font-size: 24px; letter-spacing: -0.02em; }
.form-card.done p { color: var(--muted); }

/* Підвал */
footer { border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: 12px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 18px; }

/* Юридичні сторінки */
.legal { max-width: 720px; padding: 64px 22px 96px; }
.legal h1 { font-size: 40px; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 21px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text); font-size: 16px; line-height: 1.6; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 22px; margin-top: 8px; display: grid; gap: 6px; }

@media (max-width: 860px) {
  .cycle { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .cycle, .grid, .duo { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .phone { width: 280px; } .screen { height: 545px; }
}
