:root {
  --bg: #f6f7f9; --card: #fff; --text: #1d1d1f; --muted: #6e6e73; --line: #e4e5ea; --soft: #f0f1f4;
  --primary: #2b2c30; --primary-text: #fff; --accent: #0f9d58; --err: #d93025; --err-soft: #fdecea;
  --ok: #1e8e3e; --ok-soft: #e6f4ea; --warn: #b26a00; --warn-soft: #fff4e0; --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.05);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141416; --card: #1f1f22; --text: #f3f3f5; --muted: #a1a1a8; --line: #33333a; --soft: #26262b;
    --primary: #f3f3f5; --primary-text: #111; --err-soft: #3a1c1a; --ok-soft: #17301f; --warn-soft: #3a2e17; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.demo-bar { background: #fff4e0; color: #7a4a00; text-align: center; font-size: 13px; padding: 6px 12px; font-weight: 600; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { border-radius: 9px; }
.brand.small { font-size: 15px; }
.nav { display: flex; gap: 20px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-right form { margin: 0; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-right: 4px; }
.lang a { text-decoration: none; font-size: 12px; font-weight: 600; padding: 5px 9px; color: var(--muted); }
.lang a + a { border-left: 1px solid var(--line); }
.lang a.on { background: var(--primary); color: var(--primary-text); }

/* кнопки и формы */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; padding: 9px 16px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--line);
  background: var(--card); color: var(--text); }
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.btn.primary:hover { opacity: .88; }
.btn.green { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; }
.btn.link { border: 0; background: none; color: var(--muted); padding: 9px 6px; }
.btn.danger { color: var(--err); }
.btn.big { padding: 14px 26px; font-size: 17px; border-radius: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input[type=email], input[type=password], input[type=text], select { width: 100%; font: inherit; padding: 11px 13px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--primary) 30%, transparent); border-color: var(--primary); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0 16px; }
.check input { margin-top: 3px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.msgs { margin-top: 18px; }
.msg { padding: 12px 16px; border-radius: 12px; margin-bottom: 8px; background: var(--soft); }
.msg.error { background: var(--err-soft); color: var(--err); }
.msg.success { background: var(--ok-soft); color: var(--ok); }
.error-box { background: var(--err-soft); color: var(--err); padding: 10px 14px; border-radius: 11px; margin-bottom: 14px; font-size: 14px; }

/* лендинг */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-art { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; }
.mock-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 11px; font-size: 14px; }
.mock-row + .mock-row { border-top: 1px solid var(--line); }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); }
.badge.ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); }
.badge.err { color: var(--err); background: var(--err-soft); border-color: var(--err); }
.badge.warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn); }
section.block { padding: 56px 0; }
section.block h2 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -.01em; margin: 0 0 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.num { width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: var(--primary-text); display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.secure { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.secure .ico { font-size: 34px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* цены */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 40px; font-weight: 750; letter-spacing: -.02em; margin: 8px 0 14px; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 18px; margin: 0 0 22px; color: var(--muted); flex: 1; }
.plan li { margin-bottom: 6px; }
.plan.hl { border: 2px solid var(--primary); }
.center { text-align: center; }

/* формы входа */
.auth { max-width: 440px; margin: 56px auto; }
.auth h1 { font-size: 28px; margin: 0 0 20px; }
.auth .alt { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* кабинет */
.acc { padding: 32px 0 60px; }
.acc h1 { margin: 0 0 20px; }
.acc-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.acc .card + .card { margin-top: 18px; }
.status-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { background: var(--soft); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 13px; color: var(--muted); }
.steps-text { white-space: pre-line; color: var(--muted); font-size: 14px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.row-actions form { margin: 0; }

/* юридические */
.legal { max-width: 820px; margin: 40px auto 60px; }
.legal h1 { font-size: 30px; }
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal .note { background: var(--warn-soft); color: var(--warn); padding: 10px 14px; border-radius: 11px; font-size: 14px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal td, .legal th { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }

/* подвал */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 40px; }
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot p { font-size: 13px; margin: 10px 0 0; }
.foot-links { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }

@media (max-width: 860px) {
  .hero, .acc-grid { grid-template-columns: 1fr; }
  .steps, .features { grid-template-columns: 1fr; }
  .nav { display: none; }
  .top-right { margin-left: 0; flex-wrap: wrap; }
}
