/* PCSDec — сайт. Палитра и формы взяты из самого приложения (HubTheme). */
:root {
  --bg: #000;
  --surface: #141414;
  --card: #1c1c1c;
  --stroke: #333;
  --accent: #ff9800;
  --accent-soft: rgba(255, 152, 0, .14);
  --muted: #9e9e9e;
  --ok: #00c853;
  --off: #ff5252;
  --text: #f2f2f2;
  --radius: 18px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
body > footer { margin-top: auto; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* фоновая «сетка-текстура» как на главном экране приложения */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,152,0,.13), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255,152,0,.06), transparent 60%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 44px 44px,
    #000;
}

/* ───── шапка ───── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(0,0,0,.65);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: #cfcfcf; font-size: .95rem; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links.static { display: flex; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--stroke); color: var(--text);
  width: 42px; height: 42px; border-radius: 12px; font-size: 20px; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  color: #111; background: var(--accent);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 26px rgba(255,152,0,.35); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--stroke); }
.btn.ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn.small { padding: 9px 16px; font-size: .9rem; border-radius: 12px; }

/* ───── hero ───── */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
#trace { position: absolute; left: 0; right: 0; top: 0; height: 100%; width: 100%; opacity: .35; z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(255,152,0,.35); color: #ffc46b; font-size: .85rem; margin-bottom: 18px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(0,200,83,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(0,200,83,0); } 100% { box-shadow: 0 0 0 0 rgba(0,200,83,0); } }
.lead { font-size: 1.15rem; color: #cdcdcd; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-note { font-size: .88rem; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--ok); }

/* телефон */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  width: 300px; border-radius: 40px; padding: 11px; background: linear-gradient(145deg, #2c2c2c, #0e0e0e);
  box-shadow: 0 0 0 1px #3a3a3a, 0 30px 80px rgba(0,0,0,.7), 0 0 90px rgba(255,152,0,.18);
  transform: rotate(2deg); transition: transform .5s;
}
.phone:hover { transform: rotate(0deg) translateY(-4px); }
.screen { border-radius: 30px; overflow: hidden; background: #000; height: 590px; position: relative; display: flex; flex-direction: column; }
.notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 84px; height: 20px; border-radius: 12px; background: #000; z-index: 3; }
.app-head { padding: 34px 14px 8px; display: flex; align-items: center; gap: 10px; }
.app-back { width: 30px; height: 30px; border-radius: 10px; border: 1px solid var(--stroke); display: grid; place-items: center; color: #ddd; font-size: 13px; background: #101010; }
.app-title { font-weight: 800; font-size: 15px; line-height: 1.1; }
.app-sub { color: var(--accent); font-size: 10.5px; }
.app-body { flex: 1; overflow: hidden; padding: 4px 10px 0; position: relative; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 8px; }
.tile { background: linear-gradient(#1b1b1b, #121212); border: 1px solid var(--stroke); border-radius: 12px; padding: 6px 4px 5px; text-align: center; }
.tile .l { font-size: 8.5px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .v { font-size: 15px; font-weight: 800; color: var(--accent); margin: 3px 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile .v small { font-size: 8.5px; font-weight: 700; margin-left: 1px; }
.tile .mm { font-size: 8px; color: var(--muted); display: flex; justify-content: space-between; padding: 0 5px; }
.bar { position: relative; height: 24px; border-radius: 7px; background: #181818; margin-bottom: 4px; overflow: hidden; border: 1px solid #222; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 7px; background: linear-gradient(90deg, #ff3d00, #ff9800 60%, #b8c400); transition: width .45s ease-out; }
.bar b { position: absolute; left: 7px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.bar em { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar.locked { filter: blur(3.5px); opacity: .85; }
.lock-overlay {
  position: absolute; left: 10px; right: 10px; bottom: 54px; border-radius: 14px; padding: 10px 12px;
  background: rgba(20,20,20,.88); border: 1px solid rgba(255,152,0,.45); display: flex; align-items: center; gap: 9px;
  backdrop-filter: blur(6px); font-size: 11px; color: #eee; z-index: 2;
}
.lock-overlay svg { width: 18px; height: 18px; flex: none; }
.lock-overlay u { text-decoration: none; margin-left: auto; background: var(--accent); color: #111; font-weight: 800; padding: 5px 10px; border-radius: 9px; font-size: 10.5px; }
.app-foot { display: flex; justify-content: center; gap: 8px; padding: 8px 0 12px; }
.chip { padding: 4px 12px; border-radius: 999px; border: 1px solid #5a4a22; font-size: 11px; font-weight: 700; color: var(--accent); background: #15110a; }
.chip.ok { color: var(--ok); border-color: #1f5a37; background: #08150e; }
.ecu-switch { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--stroke); padding: 5px; border-radius: 14px; }
.ecu-switch button {
  background: transparent; color: #bbb; border: 0; padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: .85rem; cursor: pointer; font-family: inherit;
}
.ecu-switch button.on { background: var(--accent); color: #111; }
.hint { color: var(--muted); font-size: .82rem; }

/* ───── секции ───── */
section { padding: 84px 0; }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .12em; font-size: .78rem; text-transform: uppercase; margin-bottom: 10px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 54px; }
.stat { background: rgba(20,20,20,.8); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-size: clamp(1.5rem, 5vw, 2.1rem); white-space: nowrap; color: var(--accent); font-weight: 800; }
.stat span { color: var(--muted); font-size: .9rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, #1c1c1c, #141414); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 24px; transition: transform .2s, border-color .2s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,152,0,.55); }
.card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(var(--accent-soft), transparent 70%); }
.ico { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(255,152,0,.4); display: grid; place-items: center; margin-bottom: 14px; }
.ico svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: #bdbdbd; font-size: .95rem; margin: 0; }

/* DTC демо */
.dtc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.dtc-box { background: #101010; border: 1px solid #3b3b3b; border-radius: 18px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.dtc-box h4 { margin: 4px 0 12px; font-size: 1rem; }
.dtc-input { display: flex; gap: 8px; }
.dtc-input input {
  flex: 1; background: #181818; border: 1px solid var(--stroke); border-radius: 12px; padding: 12px 14px;
  color: var(--text); font-size: 1rem; font-family: inherit; text-transform: uppercase; letter-spacing: .05em; min-width: 0;
}
.dtc-input input:focus { outline: 0; border-color: var(--accent); }
.dtc-list { margin-top: 12px; display: grid; gap: 8px; }
.dtc-item { background: #181818; border: 1px solid var(--stroke); border-radius: 12px; padding: 11px 13px; cursor: pointer; transition: transform .12s, border-color .2s; user-select: none; }
.dtc-item:active { transform: scale(.97); }
.dtc-item:hover { border-color: rgba(255,152,0,.5); }
.dtc-item .c { color: var(--accent); font-weight: 800; margin-right: 8px; }
.dtc-item .t { font-weight: 700; font-size: .92rem; }
.dtc-item .d { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; background: #1c1c1c; border: 1px solid var(--accent); padding: 11px 18px; border-radius: 12px; font-size: .9rem; transition: .3s; z-index: 80; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 8px; }
.steps li { list-style: none; display: flex; gap: 14px; align-items: flex-start; color: #cfcfcf; }
.steps li::before { counter-increment: s; content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(255,152,0,.45); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.steps { padding: 0; margin: 0; }

/* блоки */
.ecu-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ecu-group { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 22px; }
.ecu-group h3 { display: flex; align-items: center; gap: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tag { padding: 5px 11px; border-radius: 999px; background: #1f1f1f; border: 1px solid #343434; font-size: .82rem; color: #d6d6d6; transition: .2s; }
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; position: relative; }
.plan.best { border-color: var(--accent); background: linear-gradient(180deg, #1d1507, #121212); box-shadow: 0 0 60px rgba(255,152,0,.12); }
.plan .badge { position: absolute; top: -12px; right: 18px; background: var(--accent); color: #111; font-weight: 800; font-size: .75rem; padding: 4px 10px; border-radius: 999px; }
.price { font-size: 2.4rem; font-weight: 800; margin: 6px 0 2px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; flex: 1; }
.plan li { color: #cfcfcf; font-size: .94rem; padding-left: 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan li.no { color: #777; }
.plan li.no::before { content: "–"; color: #666; }
.fine { color: var(--muted); font-size: .85rem; margin-top: 18px; }

/* faq */
details { background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
details[open] { border-color: rgba(255,152,0,.5); }
summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: #bdbdbd; padding-bottom: 12px; margin: 0; }

.cta { text-align: center; background: radial-gradient(600px 220px at 50% 0, rgba(255,152,0,.2), transparent 70%), var(--surface);
  border: 1px solid var(--stroke); border-radius: 28px; padding: 54px 24px; }
.cta .hero-cta { justify-content: center; }

footer { border-top: 1px solid rgba(255,255,255,.07); padding: 38px 0 50px; color: var(--muted); font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* юридические страницы и справочные статьи */
.doc { padding: 56px 0 80px; max-width: 800px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.5rem; margin-top: 0; }
.doc h3 { margin-top: 1.6em; color: var(--accent); }
.doc p, .doc li { color: #d0d0d0; }

/* справочник кодов ошибок и FAQ */
.code-list { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 6px; }
.code-list li a { display: block; padding: 10px 14px; border-radius: 10px; background: #1a1a1a; border: 1px solid var(--stroke); color: #d0d0d0; transition: .2s; }
.code-list li a:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.code-list li a b { color: var(--accent); margin-right: 6px; }
.doc details { background: #1a1a1a; border: 1px solid var(--stroke); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.doc details summary { cursor: pointer; font-weight: 700; color: var(--text); }
.doc details p { margin: 10px 0 0; }

/* новости */
.news-list { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 14px; }
.news-item { display: block; padding: 20px 22px; border-radius: var(--radius); background: linear-gradient(180deg, #1c1c1c, #141414); border: 1px solid var(--stroke); transition: .2s; }
.news-item:hover { border-color: rgba(255,152,0,.55); text-decoration: none; }
.news-date { font-size: .82rem; color: var(--muted); letter-spacing: .03em; }
.news-item h2 { font-size: 1.25rem; margin: 6px 0 8px; color: var(--text); }
.news-item p { color: #bdbdbd; font-size: .95rem; margin: 0; }
.post-meta { color: var(--muted); font-size: .9rem; margin: -8px 0 2em; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(255,152,0,.4); border-radius: 999px; padding: 3px 10px; margin-right: 8px; }

/* сравнительная таблица датчиков в посте */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--stroke); border-radius: 14px; margin: 1.4em 0; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: .92rem; }
.cmp-table caption { text-align: left; caption-side: top; padding: 12px 16px; font-weight: 700; color: var(--accent); background: var(--surface); border-bottom: 1px solid var(--stroke); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.cmp-table th { text-align: left; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 16px; background: var(--surface); }
.cmp-table td { padding: 9px 16px; border-top: 1px solid var(--stroke); color: #d0d0d0; }
.cmp-table tr:nth-child(odd) td { background: rgba(255,255,255,.015); }
.cmp-table .ok { color: var(--ok); font-weight: 800; text-align: center; }
.cmp-table .off { color: var(--off); font-weight: 800; text-align: center; }
.stat-pair { display: flex; gap: 14px; margin: 1.6em 0; flex-wrap: wrap; }
.stat-pill { flex: 1; min-width: 160px; border-radius: 14px; padding: 16px 18px; border: 1px solid var(--stroke); background: var(--surface); }
.stat-pill.good { border-color: var(--ok); }
.stat-pill.bad { border-color: var(--off); }
.stat-pill b { display: block; font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.stat-pill.good b { color: var(--ok); }
.stat-pill.bad b { color: var(--off); }
.stat-pill span { color: var(--muted); font-size: .85rem; }

/* появление при прокрутке */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-grid, .dtc-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > *, .dtc-grid > * { min-width: 0; }
  .cards, .ecu-groups, .plans { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; margin: 0;
    background: rgba(8,8,8,.97); border-bottom: 1px solid var(--stroke); padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid #1c1c1c; }
  .nav-links.static { display: flex; position: static; flex-direction: row; background: none; border: 0; padding: 0; margin-left: auto; }
  .nav-links.static a { padding: 0; border: 0; }
  .nav .btn.small { display: none; }
  .phone { transform: none; }
  section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ───── соцсети ───── */
.socials { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; }
.socials-label { width: 100%; color: var(--muted); font-size: 13px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--stroke);
  background: var(--card); color: var(--text); font-size: 14px; font-weight: 600; transition: border-color .2s, transform .2s; }
.social:hover { border-color: var(--accent); transform: translateY(-1px); }
.social svg { width: 18px; height: 18px; fill: var(--accent); }
.social-mark { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 5px; border-radius: 6px;
  background: var(--accent); color: #000; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.apk-ver { margin-left: 6px; opacity: .7; font-weight: 500; }

.nav-links .only-mobile { display: none; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn.open { border-color: var(--accent); color: var(--accent); }
@media (max-width: 900px) { .nav-links .only-mobile { display: block; } .nav-links .only-mobile.dl { color: var(--accent); font-weight: 700; } }
