@font-face {
  font-family: "Onest";
  src: url("/static/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("/static/fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #07090d;
  --bg-2: #0c0f15;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f4f8;
  --text-2: #a4acbb;
  --text-3: #6b7383;
  --accent: #4f8cff;
  --accent-2: #36e0c8;
  --grad: linear-gradient(120deg, #4f8cff 0%, #36e0c8 100%);
  --ok: #3ddc97; --ok-bg: rgba(61, 220, 151, 0.12);
  --warn: #ffb547; --warn-bg: rgba(255, 181, 71, 0.12);
  --err: #ff6b6b; --err-bg: rgba(255, 107, 107, 0.12);
  --r: 18px; --r-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.55 "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(79, 140, 255, 0.16), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgba(54, 224, 200, 0.08), transparent 60%);
}
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
p a, .link-accent, .legal a, .alert a { color: var(--accent); }
p a:hover, .link-accent:hover { text-decoration: underline; }
::selection { background: rgba(79, 140, 255, 0.35); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 9, 13, 0.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin-right: auto; white-space: nowrap; }
.logo-mark { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 20px -6px rgba(79, 140, 255, 0.7); }
.logo-mark svg { width: 18px; height: 18px; }
nav { display: flex; align-items: center; gap: 4px; }
nav a, nav button.navlink {
  padding: 8px 12px; border-radius: 10px; color: var(--text-2); font: inherit; font-size: 15px;
  background: none; border: 0; cursor: pointer;
}
nav a:hover, nav button.navlink:hover { color: var(--text); background: var(--surface-2); }
nav a.cur { color: var(--text); }
nav .btn { margin-left: 6px; }
@media (max-width: 640px) {
  header.top .wrap { gap: 8px; }
  .logo { flex: none; }
  .logo-text { display: none; }
  .hide-sm { display: none; }
  nav { margin-left: auto; gap: 0; }
  nav a, nav button.navlink { padding: 8px 7px; font-size: 14px; }
  nav .btn { padding: 0 12px; }
}

main { flex: 1; padding: 40px 0 72px; }
.page-head { margin-bottom: 28px; }
.page-head .row { align-items: flex-end; }

/* ---------- type ---------- */
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; margin: 0; font-weight: 700; }
h1 { font-size: clamp(28px, 4vw, 38px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 18px; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; letter-spacing: 0.02em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- layout ---------- */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.narrow { max-width: 440px; margin: 0 auto; }
.mid { max-width: 720px; }
.center { text-align: center; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
}
.card + .card { margin-top: 16px; }
.grid > .card + .card, .grid-2 > .card + .card, .grid-2 > div > .card:first-child { margin-top: 0; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card.link { display: block; transition: border-color .15s, background .15s, transform .15s; }
.card.link:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }

/* ---------- forms ---------- */
label { display: block; font-size: 14px; font-weight: 500; color: var(--text-2); margin: 16px 0 8px; }
label:first-child { margin-top: 0; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { height: auto; min-height: 100px; padding: 12px 14px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%23a4acbb' stroke-width='1.6' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
select option { background: var(--bg-2); }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.22); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18); background: rgba(255, 255, 255, 0.06); }
input:disabled { opacity: .55; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.6); }
.hint { font-size: 13px; color: var(--text-3); margin-top: 6px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; font-size: 14px; color: var(--text-2); font-weight: 400; cursor: pointer; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--line-2); border-radius: 6px; background: rgba(255,255,255,.04); cursor: pointer; display: grid; place-items: center; transition: .15s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible { box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.25); }

/* ---------- buttons ---------- */
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  background: #fff; color: #07090d; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover, button:hover { color: #07090d; box-shadow: 0 8px 30px -8px rgba(255, 255, 255, 0.35); }
.btn:active, button:active { transform: translateY(1px); }
.btn.primary, button.primary { background: var(--grad); color: #05121a; box-shadow: 0 10px 30px -10px rgba(79, 140, 255, 0.7); }
.btn.primary:hover, button.primary:hover { box-shadow: 0 14px 36px -10px rgba(79, 140, 255, 0.9); }
.btn.ghost, button.ghost { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover, button.ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: none; }
.btn.danger, button.danger { background: transparent; color: var(--err); border-color: rgba(255, 107, 107, 0.35); }
.btn.danger:hover, button.danger:hover { background: var(--err-bg); color: var(--err); box-shadow: none; }
.btn.sm, button.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.lg, button.lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn.block, button.block { width: 100%; }
form.inline { display: inline; }
@media (max-width: 520px) { .row > .btn, .row > form > button { flex: 1 1 auto; } }

/* ---------- alerts / badges ---------- */
.alert { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 20px; font-size: 15px; border: 1px solid transparent; }
.alert.ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(61, 220, 151, 0.2); }
.alert.err { background: var(--err-bg); color: var(--err); border-color: rgba(255, 107, 107, 0.2); }
.alert.warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(255, 181, 71, 0.2); }
.alert ul { margin: 0; padding-left: 18px; }

.badge { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.ok::before { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); animation: pulse 2s infinite; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.info { background: rgba(79, 140, 255, 0.14); color: #9cc0ff; }
.badge.plain::before { display: none; }
.status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--grad); color: #05121a; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

/* ---------- landing ---------- */
.hero { display: grid; gap: 48px; align-items: center; grid-template-columns: 1.15fr 0.85fr; padding: 32px 0 40px; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 20px; }
.hero .lead { max-width: 540px; margin-bottom: 30px; }
.hero-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 34px; color: var(--text-3); font-size: 14px; }
.hero-meta b { display: block; color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 8px; } }
@media (max-width: 520px) {
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: 12.5px; }
  .hero-meta b { font-size: 16px; }
  .hero .row .btn { width: 100%; }
}

.phone {
  position: relative; width: 100%; max-width: 330px; margin: 0 auto; padding: 14px;
  border-radius: 44px; background: linear-gradient(160deg, #1b2130, #0b0e14); border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 0 120px -40px rgba(79, 140, 255, 0.55);
}
.phone-screen { border-radius: 32px; background: #0a0d13; padding: 22px 18px 20px; border: 1px solid var(--line); }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-3); margin-bottom: 18px; }
.phone-car { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.phone-car small { display: block; font-weight: 400; font-size: 13px; color: var(--text-3); letter-spacing: 0; margin-top: 2px; }
.phone-visual { height: 110px; margin: 16px 0; border-radius: 18px; background: radial-gradient(120px 60px at 50% 70%, rgba(79, 140, 255, 0.35), transparent 70%), var(--surface); display: grid; place-items: center; }
.phone-visual svg { width: 78%; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border-radius: 16px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tile .k { font-size: 12px; color: var(--text-3); }
.tile .v { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-top: 2px; }
.tile.on { background: rgba(79, 140, 255, 0.14); border-color: rgba(79, 140, 255, 0.35); }
.tile.on .v { color: #9cc0ff; }

.section { padding: 72px 0 0; }
.section-head { max-width: 620px; margin-bottom: 36px; }
.section-head p { margin-top: 12px; }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(79, 140, 255, 0.12); color: #8fb5ff; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15px; margin: 0; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), transparent); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 14px; font-weight: 700; margin-bottom: 26px; color: var(--accent-2); letter-spacing: 0.06em; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; margin: 0; }

/* ---------- ways ---------- */
.ways { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.way { display: flex; flex-direction: column; padding: 28px 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.way.featured { background: linear-gradient(180deg, rgba(79, 140, 255, 0.12), rgba(79, 140, 255, 0.02)); border-color: rgba(79, 140, 255, 0.45); }
.way-top { display: flex; justify-content: space-between; align-items: flex-start; }
.way-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: rgba(79, 140, 255, 0.12); color: #8fb5ff; }
.way.featured .way-ico { background: var(--grad); color: #05121a; }
.way-ico svg { width: 24px; height: 24px; }
.way h3 { font-size: 21px; margin-bottom: 8px; }
.way-sub { color: var(--text-2); font-size: 15px; margin-bottom: 20px; }
.ticks { list-style: none; margin: 0 0 4px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(61, 220, 151, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' fill='none'%3E%3Cpath d='m1 4 2.5 2.5L9 1' stroke='%233ddc97' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }
.way .btn { margin-top: 22px; align-self: flex-start; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan {
  position: relative; display: flex; flex-direction: column; margin: 0; padding: 26px 24px 24px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 400;
  transition: border-color .15s, background .15s, transform .15s;
}
label.plan { cursor: pointer; }
label.plan:hover { border-color: var(--line-2); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan.featured { background: linear-gradient(180deg, rgba(79, 140, 255, 0.12), rgba(79, 140, 255, 0.02)); border-color: rgba(79, 140, 255, 0.45); }
label.plan:has(input:checked) { border-color: var(--accent); background: linear-gradient(180deg, rgba(79, 140, 255, 0.16), rgba(79, 140, 255, 0.04)); box-shadow: 0 0 0 1px var(--accent) inset; }
label.plan:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.25); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 26px; margin-bottom: 18px; }
.plan-name { font-size: 15px; font-weight: 600; color: var(--text-2); }
.plan-price { font-size: 38px; font-weight: 750; letter-spacing: -0.035em; line-height: 1; }
.plan-old { margin-top: 10px; font-size: 14px; color: var(--text-3); min-height: 21px; }
.plan-old s { margin-right: 8px; }
.plan-old .save { color: var(--ok); font-weight: 600; }
.plan-month { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.plan-month b { color: var(--text); }
.plan .radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; }
label.plan:has(input:checked) .radio { border-color: var(--accent); }
label.plan:has(input:checked) .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 0 20px; margin: 0; }

.cta { margin-top: 80px; padding: 48px 32px; border-radius: 28px; text-align: center; border: 1px solid rgba(79, 140, 255, 0.3);
  background: radial-gradient(600px 240px at 50% 0%, rgba(79, 140, 255, 0.22), transparent 70%), var(--surface); }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--text-2); margin-bottom: 26px; }

/* ---------- auth ---------- */
.auth { max-width: 440px; margin: 12px auto 0; }
.auth h1 { font-size: 30px; margin-bottom: 8px; }
.auth .sub { color: var(--text-2); margin-bottom: 28px; }
.auth .card { padding: 28px; box-shadow: var(--shadow); background: rgba(14, 18, 26, 0.75); }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-2); }

/* ---------- app: cars ---------- */
.car-card { display: flex; flex-direction: column; gap: 18px; min-height: 190px; }
.car-card .name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.car-card .vin { color: var(--text-3); margin-top: 4px; }
.car-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.add-card { display: grid; place-items: center; text-align: center; min-height: 190px; border-style: dashed; color: var(--text-2); }
.add-card .plus { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; margin: 0 auto 10px; font-size: 22px; }

.status-panel { padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.status-panel.ok { background: radial-gradient(500px 200px at 0% 0%, rgba(61, 220, 151, 0.12), transparent 70%), var(--surface); }
.status-panel.warn { background: radial-gradient(500px 200px at 0% 0%, rgba(255, 181, 71, 0.12), transparent 70%), var(--surface); }
.status-panel.err { background: radial-gradient(500px 200px at 0% 0%, rgba(255, 107, 107, 0.12), transparent 70%), var(--surface); }
.big-num { font-size: clamp(40px, 6vw, 56px); font-weight: 750; letter-spacing: -0.04em; line-height: 1; margin: 18px 0 6px; }
.big-num small { font-size: 0.4em; font-weight: 600; letter-spacing: -0.01em; color: var(--text-2); margin-left: 6px; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 18px 0 6px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; font-size: 15px; }
dl.kv dt { color: var(--text-3); }
dl.kv dd { margin: 0; }
@media (max-width: 520px) { dl.kv { grid-template-columns: 1fr; gap: 2px; } dl.kv dd { margin-bottom: 10px; } }

.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.back:hover { color: var(--text); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; background: rgba(255,255,255,.015); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
td a { color: var(--text); font-weight: 500; }
td a:hover { color: var(--accent); }
.empty { padding: 36px 16px; text-align: center; color: var(--text-3); }

/* ---------- admin ---------- */
.subnav { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; width: max-content; max-width: 100%; }
.subnav a { padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.subnav a:hover { color: var(--text); }
.subnav .vin-toggle { height: 34px; padding: 0 12px; font-size: 13px; font-weight: 500; border-radius: 10px; background: transparent; color: var(--text-3); border: 1px dashed var(--line-2); box-shadow: none; }
.subnav .vin-toggle:hover { color: var(--text); box-shadow: none; }
.subnav .vin-toggle.on { color: var(--warn); border-color: rgba(255, 181, 71, 0.4); border-style: solid; }
.subnav a.cur { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 36px; }
.stat { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stat .v { font-size: 28px; font-weight: 750; letter-spacing: -0.03em; }
.stat .k { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.stat.accent { border-color: rgba(79, 140, 255, 0.35); background: linear-gradient(180deg, rgba(79, 140, 255, 0.12), transparent); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input, .toolbar select { height: 42px; width: auto; min-width: 200px; flex: 1 1 200px; max-width: 320px; }
.toolbar button, .toolbar .btn { height: 42px; }
.h2-sm { font-size: 20px; margin: 36px 0 14px; }
.plan-row { display: grid; gap: 12px; grid-template-columns: 2fr 1fr 1fr 1fr auto auto; align-items: end; }
.plan-row label { margin-top: 0; }
.plan-row .check { margin: 0 0 13px; }
@media (max-width: 800px) { .plan-row { grid-template-columns: 1fr 1fr; } }

/* ---------- legal ---------- */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 19px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--text-2); font-size: 15.5px; }
.legal li { margin-bottom: 6px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--text-3); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }
footer p { margin: 0 0 4px; }

/* ---------- установка T-Box ---------- */
.setup { margin-top: 48px; max-width: 820px; }
.setup-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.setup-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.setup-model { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; height: auto; min-height: 0; font: inherit; font-size: 14px; color: var(--accent); cursor: pointer; box-shadow: none; }
.linkbtn:hover { background: none; color: #fff; text-decoration: underline; transform: none; }
.setup-pick { margin-bottom: 16px; }
.setup-pick-row { display: flex; gap: 10px; flex-wrap: wrap; }
.setup-pick-row select { flex: 1 1 260px; }
.setup-pick-row button { flex: none; }
.setup-compact { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; }
.setup-compact-title { font-weight: 600; margin-bottom: 2px; }

.risk { padding: 14px 16px; border-radius: var(--r-sm); background: var(--warn-bg); border: 1px solid rgba(255, 181, 71, 0.2); font-size: 14px; color: var(--text-2); }
.risk b { color: var(--warn); }
.risk ul { margin: 8px 0 10px; padding-left: 18px; display: grid; gap: 6px; }
.risk-form { margin-bottom: 16px; }
.risk-form h3 { margin: 0 0 14px; font-size: 17px; }
.risk-form .check { margin: 16px 0 18px; }
.os-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; font-size: 14px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.seg button { height: 32px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.seg button:hover { color: var(--text); box-shadow: none; }
.seg button[aria-checked="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.setup[data-os="win"] [data-os]:not([data-os~="win"]),
.setup[data-os="mac"] [data-os]:not([data-os~="mac"]),
.setup[data-os="linux"] [data-os]:not([data-os~="linux"]) { display: none; }
.files { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.file {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, background .15s, transform .15s;
}
a.file:hover { border-color: rgba(79, 140, 255, 0.5); background: rgba(79, 140, 255, 0.07); transform: translateY(-1px); color: var(--text); }
.file-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #05121a; font-weight: 700; }
.file-ico svg { width: 19px; height: 19px; }
.file.subtle .file-ico { background: var(--surface-2); color: var(--text-2); }
.file.off .file-ico { background: var(--warn-bg); color: var(--warn); }
.file-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.file-body b { font-size: 15px; font-weight: 600; }
.file-body .mono { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.needs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 30px; font-size: 14px; }
.need { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl-step { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 18px; padding-bottom: 14px; }
.tl-step::before { content: ""; position: absolute; left: 13px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.tl-step:last-child::before { display: none; }
.tl-step.done::before { background: rgba(61, 220, 151, 0.35); }
.tl-dot {
  width: 28px; height: 28px; margin-top: 18px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg);
  display: grid; place-items: center; color: transparent; position: relative; z-index: 1; transition: .2s;
}
.tl-dot svg { width: 14px; height: 14px; }
.tl-step.current .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(79, 140, 255, 0.16); }
.tl-step.done .tl-dot { background: var(--ok); border-color: var(--ok); color: #05121a; }
.tl-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; min-width: 0; transition: border-color .2s; }
.tl-step.current .tl-body { border-color: rgba(79, 140, 255, 0.35); }
.tl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tl-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.tl-lead { color: var(--text-3); font-size: 14px; margin-top: 2px; }
.tl-toggle { margin-top: 2px; white-space: nowrap; }
.tl-content { margin-top: 14px; }
.tl-step.done .tl-content { display: none; }
.tl-step.done .tl-head h3 { color: var(--text-2); }
.tl-content p { margin: 0 0 10px; color: var(--text-2); font-size: 15px; }
.tl-content p.tl-note { color: var(--text-3); font-size: 14px; }
.tl-warn { margin: 4px 0 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn); font-size: 14px; border: 1px solid rgba(255, 181, 71, 0.2); }
.cmd { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; padding: 6px 6px 6px 14px; border-radius: var(--r-sm); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.cmd code { flex: 1; min-width: 0; font: 500 15px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--accent-2); overflow-x: auto; white-space: nowrap; }
.cmd-copy { flex: none; height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.cmd-copy:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.cmd-copy.ok { color: var(--ok); border-color: rgba(61, 220, 151, 0.3); }
.tl-report textarea { margin: 4px 0 14px; font-size: 13px; }
.setup-help { margin: 10px 0 0 46px; }
@media (max-width: 560px) {
  .tl-step { grid-template-columns: 1fr; gap: 0; }
  .tl-step::before, .tl-dot { display: none; }
  .tl-body { padding: 16px; }
  .setup-help { margin-left: 0; }
}
.linkbtn, .cmd-copy { font-weight: 500; }
.cmd-copy:hover, .linkbtn:hover { box-shadow: none; }
.linkbtn:active, .cmd-copy:active { transform: none; }
.tl-step.done:last-child .tl-content { display: block; }
@media (max-width: 560px) {
  .tl-step.done .tl-body { border-color: rgba(61, 220, 151, 0.3); }
  .tl-step.done .tl-head h3::before { content: "✓ "; color: var(--ok); }
  .files { gap: 8px; }
  .file { padding: 12px 14px; }
}

/* ---------- мои машины ---------- */
.garage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.garage-head h1 { margin: 0; }
.garage-sum { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.sum-item { display: inline-flex; align-items: center; gap: 8px; }
.sum-item b { color: var(--text); font-weight: 600; }
.btn-plus { font-size: 20px; line-height: 1; font-weight: 500; margin-top: -2px; }

.garage { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.vcard {
  --tone: var(--ok); --tone-bg: var(--ok-bg);
  position: relative; display: flex; flex-direction: column; min-height: 200px; padding: 20px 22px 18px;
  border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(420px 160px at 100% 0%, color-mix(in srgb, var(--tone) 9%, transparent), transparent 70%),
    var(--surface);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.vcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--tone); opacity: .7; }
.vcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tone) 40%, var(--line-2)); box-shadow: 0 22px 50px -28px color-mix(in srgb, var(--tone) 55%, transparent); }
.vcard.tone-warn { --tone: var(--warn); --tone-bg: var(--warn-bg); }
.vcard.tone-err { --tone: var(--err); --tone-bg: var(--err-bg); }
.vcard.tone-pending { --tone: var(--accent); --tone-bg: rgba(79, 140, 255, 0.14); }
.vcard.tone-off { --tone: var(--text-3); --tone-bg: var(--surface-2); }
.vcard-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.vcard-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.vcard-top { display: flex; align-items: center; gap: 12px; }
.vcard-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone); }
.vcard-ico svg { width: 22px; height: 22px; }
.vcard-id { min-width: 0; flex: 1; }
.vcard-name { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcard-vin { font-size: 12.5px; color: var(--text-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.live { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 5px 10px 5px 9px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live-ok { color: var(--ok); background: var(--ok-bg); }
.live-ok i { animation: pulse 2s infinite; }
.live-sleep { color: #9cc0ff; background: rgba(79, 140, 255, 0.14); }
.live-off { color: var(--err); background: var(--err-bg); }

.vcard-main { margin: 22px 0 18px; }
.vcard-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.vcard-value { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin-top: 6px; }
.vcard.tone-warn .vcard-value, .vcard.tone-err .vcard-value { color: var(--tone); }
.vcard-sub { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.vcard-bar { height: 4px; border-radius: 4px; background: var(--surface-2); margin-top: 12px; overflow: hidden; }
.vcard-bar i { display: block; height: 100%; border-radius: inherit; background: var(--tone); }

.vcard-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; }
.vcard-meta { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcard-cta { position: relative; z-index: 2; flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 600; background: var(--tone); color: #07090d; transition: filter .15s, transform .15s; }
.vcard-cta:hover { color: #07090d; filter: brightness(1.1); transform: translateY(-1px); }
.vcard-go { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); transition: background .18s, color .18s, transform .18s; }
.vcard-go svg { width: 17px; height: 17px; }
.vcard:hover .vcard-go { background: var(--tone-bg); color: var(--tone); transform: translateX(3px); }

.vcard-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 200px;
  border: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--text-2); font-weight: 500; transition: .18s;
}
.vcard-add:hover { border-color: var(--accent); color: var(--text); background: rgba(79, 140, 255, 0.05); }
.vcard-add-plus { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface-2); transition: .18s; }
.vcard-add:hover .vcard-add-plus { background: var(--grad); color: #05121a; transform: rotate(90deg); }

.garage-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; max-width: 520px; margin: 24px auto;
  padding: 44px 28px; border: 1.5px dashed var(--line-2); border-radius: var(--r); transition: .18s;
}
.garage-empty:hover { border-color: var(--accent); background: rgba(79, 140, 255, 0.04); }
.garage-empty b { font-size: 20px; color: var(--text); }
.garage-empty .btn { margin-top: 12px; }
.garage-empty-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #05121a; margin-bottom: 6px; }
.garage-empty-ico svg { width: 32px; height: 32px; }
@media (max-width: 520px) {
  .garage { grid-template-columns: 1fr; }
  .garage-head .btn { width: 100%; }
  .vcard, .vcard-add { min-height: 0; }
  .vcard-add { padding: 22px; flex-direction: row; }
}
.sum-text { display: inline-flex; align-items: center; }
.sum-text b { color: var(--text); font-weight: 600; margin-right: 5px; }
.vcard-name.mono { font-size: 15px; font-weight: 600; letter-spacing: 0; }
