:root {
  --bg: #ffffff;
  --band: #f7f7f9;
  --ink: #14161b;
  --muted: #5b6070;
  --line: #e6e7ec;
  --accent: #6a3fd1;
  --accent-soft: #f1ecfc;
  --ok: #157a4a;
  --err: #b42318;
  --r: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
p { margin: 0 0 14px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
section { padding: 88px 0; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo img { height: 22px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }

/* hero */
.hero { padding: 112px 0 96px; }
.hero h1 { margin-bottom: 20px; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; margin-bottom: 28px; }
.link-arrow { font-weight: 600; text-decoration: none; font-size: 17px; }
.link-arrow span { display: inline-block; transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* layout */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.prose p { color: var(--muted); font-size: 17px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 16px; }
.item p { color: var(--muted); margin: 0; }
.ico { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.ico svg { width: 22px; height: 22px; }
.list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.list li { padding-left: 22px; position: relative; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.list b { color: var(--ink); font-weight: 600; }

/* form */
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; }
.form input, .form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #cfd2da; border-radius: 8px; padding: 11px 12px; transition: border-color .15s, box-shadow .15s; }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form input[aria-invalid="true"] { border-color: var(--err); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 14px; line-height: 1.5; }
.form .check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.btn { appearance: none; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; padding: 13px 22px; cursor: pointer; justify-self: start; text-decoration: none; display: inline-block; }
.btn:hover { background: #2a2d35; }
.btn:disabled { opacity: .6; cursor: default; }
.form-error { color: var(--err); font-size: 14px; margin: 0; }
.form-ok { display: grid; gap: 4px; padding: 16px; border-radius: 8px; background: #ecf7f1; color: var(--ok); }
.form-ok span { color: var(--ink); }
.form.sent > :not(.form-ok) { display: none; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
footer .row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.flogo { height: 18px; width: auto; opacity: .85; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer .links a { color: var(--muted); text-decoration: none; font-size: 14px; }
footer .links a:hover { color: var(--ink); }
.fine { font-size: 13px; color: var(--muted); max-width: 820px; margin-bottom: 8px; }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal .meta { font-size: 14px; }

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .split, .grid3, .list { grid-template-columns: 1fr; gap: 28px; }
  .list { gap: 14px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .form { padding: 22px; }
  .btn { justify-self: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
