/* MotoDoc — лендинг motodocai.ru. Палитра под иконку: navy + cyan + red. */
:root {
  --bg: #0d1018;
  --bg-soft: #11151f;
  --surface: #161b26;
  --surface-2: #1e2533;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8edf5;
  --muted: #9aa7bd;
  --accent: #22d3ee;        /* cyan — глаза маскота, «AI» */
  --accent-deep: #0e9fbb;
  --red: #e23b42;           /* стетоскоп / шлем */
  --green: #25c281;
  --radius: 18px;
  --maxw: 1120px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.accent { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 16, 24, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.2px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  padding: 12px 22px; border-radius: 12px; transition: transform .12s ease, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #04161b;
  box-shadow: 0 8px 26px rgba(34, 211, 238, 0.28);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(34, 211, 238, 0.42); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 17px; border-radius: 14px; }

.nav .btn { padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; line-height: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 78px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto 0; height: 620px;
  background:
    radial-gradient(620px 420px at 78% 8%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(520px 380px at 12% 0%, rgba(226, 59, 66, 0.10), transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .3px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(37, 194, 129, 0.18); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.07; letter-spacing: -1px; font-weight: 800; }
.hero h1 .accent { background: linear-gradient(120deg, var(--accent), #7ef0ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { color: var(--muted); font-size: 19px; margin: 20px 0 30px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-badge { display: inline-flex; align-items: center; transition: transform .12s ease, opacity .2s; }
.store-badge img { height: 52px; width: auto; display: block; }
.store-badge:hover { opacity: .92; transform: translateY(-1px); }
.store-badge:active { transform: translateY(1px); }
.os-note { margin-top: 18px; color: var(--muted); font-size: 13.5px; }

/* RuStore как главная кнопка */
.store-badge--primary img { height: 56px; }
.store-badge--primary { filter: drop-shadow(0 10px 26px rgba(34, 211, 238, 0.30)); border-radius: 14px; }
/* APK — запасной способ, мелкой ссылкой */
.cta-apk-link { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; align-self: center; }
.cta-apk-link:hover { color: var(--accent); }

/* Подсказка под кнопками — показываем нужную под платформу */
.note-android, .note-ios { display: none; }
.note-other { display: inline; }
body.plat-android .note-android { display: inline; }
body.plat-android .note-other, body.plat-android .note-ios { display: none; }
body.plat-ios .note-ios { display: inline; }
body.plat-ios .note-other, body.plat-ios .note-android { display: none; }

/* Разводим кнопки по устройству (без JS видны все — безопасный фолбэк) */
body.plat-android .cta-ios { display: none; }
body.plat-ios .cta-rustore, body.plat-ios .cta-apk { display: none; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-art .glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.30), transparent 62%); filter: blur(8px);
}
.hero-art img { position: relative; width: min(420px, 86%); filter: drop-shadow(0 28px 60px rgba(0,0,0,0.6)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Section base ---------- */
section { position: relative; }
.block { padding: 76px 0; }
.block.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.6px; font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }

/* ---------- Features ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .18s ease, border-color .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card .ic {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(34,211,238,0.16), rgba(34,211,238,0.04));
  border: 1px solid rgba(34, 211, 238, 0.22);
}
.card h3 { font-size: 20px; margin-bottom: 9px; letter-spacing: -0.3px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* «Скоро» — для фич, которых ещё нет в проде */
.soon-badge {
  display: inline-block; vertical-align: middle;
  font-size: 11px; font-weight: 800; letter-spacing: .4px;
  color: #0d1018; background: linear-gradient(135deg, #ffd166, #f5a623);
  padding: 3px 10px; border-radius: 999px; margin-left: 9px;
  text-transform: uppercase; white-space: nowrap;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; position: relative; }
.step .n {
  counter-increment: step; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; color: #04161b;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); margin-bottom: 16px;
}
.step .n::before { content: counter(step); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; position: relative; transition: transform .18s ease, border-color .18s, box-shadow .18s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.plan--featured { border-color: rgba(34, 211, 238, 0.55); box-shadow: 0 0 0 1px rgba(34,211,238,0.25), 0 18px 50px rgba(0,0,0,0.45); }
.plan-badge {
  position: absolute; top: -12px; left: 26px;
  font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  color: #04161b; background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  padding: 4px 12px; border-radius: 999px;
}
.plan-name { font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.price { margin: 12px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 38px; font-weight: 800; letter-spacing: -1px; color: var(--text); }
.price span { color: var(--muted); font-size: 16px; font-weight: 600; }
.plan-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.plan-feats { list-style: none; display: grid; gap: 11px; margin: 0 0 24px; }
.plan-feats li { position: relative; padding-left: 28px; color: var(--text); font-size: 15.5px; }
.plan-feats li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800; font-size: 15px;
}
.plan .btn { width: 100%; margin-top: auto; }
.plan-note { margin-top: 12px; color: var(--accent); font-size: 13.5px; font-weight: 600; text-align: center; }
.price-foot { max-width: 720px; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Install ---------- */
.install-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.install-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px;
}
.install-item .num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; font-weight: 800; font-size: 15px;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--accent);
}
.install-item b { color: var(--text); }
.install-item p { color: var(--muted); font-size: 15.5px; }
.warn {
  margin-top: 22px; max-width: 760px; margin-left: auto; margin-right: auto;
  background: rgba(226, 59, 66, 0.08); border: 1px solid rgba(226, 59, 66, 0.28);
  border-radius: 14px; padding: 16px 20px; color: #ffd7d9; font-size: 15px;
}
.warn b { color: #fff; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 22px;
  transition: border-color .15s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; font-size: 15.5px; }

/* ---------- Screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; }
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto; display: block;
  border-radius: 22px; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); background: #000;
  transition: transform .18s ease, box-shadow .18s;
}
.shot:hover img { transform: translateY(-4px); box-shadow: 0 22px 56px rgba(0,0,0,0.55); }
.shot figcaption { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 14px; }
@media (max-width: 880px) {
  .shots { grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 460px; }
}

/* ---------- CTA strip ---------- */
.cta {
  text-align: center; padding: 64px 30px; border-radius: 26px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #131a26, #0f1722);
  border: 1px solid var(--border-strong);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 50% -10%, rgba(34,211,238,0.20), transparent 60%);
  pointer-events: none;
}
.cta h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.6px; position: relative; }
.cta p { color: var(--muted); margin: 14px auto 28px; max-width: 520px; position: relative; }
.cta .hero-cta { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 46px 0 40px; color: var(--muted); font-size: 14.5px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 26px; margin-bottom: 30px; }
.foot-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; color: var(--text); }
.foot-brand img { width: 30px; height: 30px; border-radius: 8px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols h4 { color: var(--text); font-size: 14px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px; }
.foot-cols a, .foot-cols span { display: block; color: var(--muted); margin-bottom: 8px; transition: color .15s; }
.foot-cols a:hover { color: var(--accent); }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 0 80px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.6px; margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 14.5px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; letter-spacing: -0.3px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: #cbd4e3; font-size: 16px; }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 24px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.back-link:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .eyebrow { justify-content: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; margin-bottom: 8px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 66px; left: 0; right: 0; background: var(--bg-soft);
    border-bottom: 1px solid var(--border); padding: 22px; z-index: 60;
  }
  .nav-links.open .btn { width: 100%; }
  .grid, .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}
