/* SAFA GPS - liquid glass landing.
   Три таба (Главная / Возможности / О компании), каждый - в один экран.
   Брейкпоинт 900px: ≤900 - мобильная раскладка без вертикального скролла. */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #04070f;
  color: #eef3ff;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
::selection { background: rgba(79, 141, 255, .45); }
input::placeholder { color: rgba(220, 230, 255, .4); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

@keyframes lgFloatA { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes lgFloatB { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-7vw, -5vh) scale(.9); } }
@keyframes lgFloatC { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-5vw, 8vh); } }
@keyframes lgPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 120, .55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 120, 0); }
}
@keyframes lgTabIn {
  0% { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(10px); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes lgSheen {
  0% { transform: translateX(-120%) skewX(-20deg); }
  60%, 100% { transform: translateX(320%) skewX(-20deg); }
}

/* ───────────── Background ───────────── */
.bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #0c1733 0%, #04070f 62%);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(100px); will-change: transform;
}
.blob-1 { width: 56vw; height: 56vw; left: -14vw; top: -14vw; background: #0245f2; opacity: .8; animation: lgFloatA 22s ease-in-out infinite; }
.blob-2 { width: 40vw; height: 40vw; right: -10vw; top: 2vh; background: #38bdf8; opacity: .55; animation: lgFloatB 26s ease-in-out infinite; }
.blob-3 { width: 30vw; height: 30vw; left: 32vw; top: 58vh; background: #22c55e; opacity: .32; animation: lgFloatC 30s ease-in-out infinite; }
.blob-4 { width: 42vw; height: 42vw; right: 4vw; bottom: -18vw; background: #3b2bd9; opacity: .5; animation: lgFloatA 34s ease-in-out infinite reverse; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 25%, #000 15%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 25%, #000 15%, transparent 70%);
}
.bg-grain {
  position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ───────────── Liquid glass: световая кромка ───────────── */
.glass-edge, .card, .slide { --edge-w: 1px; --edge: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.06) 35%, rgba(255,255,255,0) 60%, rgba(255,255,255,.2)); }
.glass-edge::before, .card::before, .slide::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: var(--edge-w);
  background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Spotlight на hover (desktop) - --mx/--my ставит main.js */
[data-spot]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(var(--spot-r, 420px) circle at var(--mx, 30%) var(--my, -30%), rgba(160, 205, 255, var(--spot-a, .14)), transparent 50%);
}

/* ───────────── Root ───────────── */
.app {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: clamp(10px, 1.6vh, 16px) 16px;
}

/* ───────────── Buttons ───────────── */
.pill-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: background .2s;
}
.pill-btn:hover { background: rgba(255, 255, 255, .13); }
.pill-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.btn-primary {
  position: relative; overflow: hidden;
  padding: clamp(14px, 2vh, 18px);
  border: 0; border-radius: 999px;
  font: inherit; font-size: 16.5px; font-weight: 600; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #6aa0ff 0%, #2160f7 50%, #0245f2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 8px rgba(0, 20, 90, .35), 0 18px 40px -12px rgba(2, 69, 242, .9);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { cursor: progress; filter: saturate(.8); }
.sheen {
  position: absolute; top: 0; bottom: 0; left: 0; width: 35%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  animation: lgSheen 4.5s ease-in-out 1s infinite;
}

/* ───────────── Header ───────────── */
.header { position: relative; z-index: 50; width: 100%; max-width: 1240px; margin: 0 auto; flex-shrink: 0; }
.header-bar {
  position: relative; display: flex; align-items: center; gap: 20px;
  padding: 8px 8px 8px 22px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035));
  -webkit-backdrop-filter: blur(30px) saturate(190%);
          backdrop-filter: blur(30px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 20px 50px -20px rgba(0, 0, 0, .75);
  --edge: linear-gradient(120deg, rgba(255,255,255,.55), rgba(255,255,255,.08) 35%, rgba(255,255,255,.02) 60%, rgba(255,255,255,.3));
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 28px; width: auto; display: block; }

.nav { display: flex; gap: 2px; margin: 0 auto; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .18); }
.nav a {
  padding: 8px 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: rgba(230, 238, 255, .86);
  transition: background .15s ease, color .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a.is-active { background: rgba(255, 255, 255, .14); }

.header-spacer { flex: 1; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
/* Кнопка стора в шапке - только под платформу посетителя (data-os ставит inline-скрипт в <head>);
   платформа не распознана - показываем обе */
[data-os="ios"] .icon-btn[data-store="googlePlay"],
[data-os="android"] .icon-btn[data-store="appStore"] { display: none; }
.login {
  padding: 11px 20px; font-size: 15px; font-weight: 600; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.login:hover { background: rgba(255, 255, 255, .14); }

/* ───────────── Tabs ───────────── */
.tab {
  animation: lgTabIn .55s cubic-bezier(.2, .8, .2, 1) backwards;
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}
.tab.is-leaving { opacity: 0; transform: translateY(-10px) scale(.99); filter: blur(8px); }

/* ───────────── Home ───────────── */
.tab-home {
  flex: 1; min-height: 0; width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: center; align-content: center;
  padding: clamp(16px, 3vh, 32px) 4px;
}
.home-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px 7px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: rgba(235, 242, 255, .92);
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d378; display: inline-block; flex-shrink: 0; animation: lgPulse 2s infinite; }

.tab-home h1 {
  font-size: clamp(34px, min(6vw, 8.2vh), 84px);
  line-height: .98; letter-spacing: -.045em; font-weight: 700;
  margin: clamp(14px, 2.6vh, 26px) 0 clamp(12px, 2.2vh, 22px);
}
.grad {
  background: linear-gradient(100deg, #9ad6ff 0%, #4f8dff 40%, #5ee08f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 4px;
}
.lede { font-size: clamp(15px, 2vh, 18.5px); line-height: 1.5; color: rgba(222, 232, 252, .72); max-width: 520px; margin: 0; }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(16px, 3vh, 30px) 0 0; max-width: 560px; }
.chips li {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.chips svg { width: 15px; height: 15px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps {
  list-style: none; margin: clamp(18px, 3.4vh, 36px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 560px;
}
.steps li {
  padding: 14px 16px; border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.steps li.step-done {
  background: linear-gradient(145deg, rgba(94, 224, 143, .14), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(140, 240, 180, .14);
}
.step-n {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: linear-gradient(180deg, #6aa0ff, #0245f2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.step-done .step-n { background: linear-gradient(180deg, #7cf0ac, #1fae5c); }
.step-t { display: block; font-size: 14.5px; font-weight: 600; margin-top: 10px; line-height: 1.25; }

/* Lead form */
.home-form { position: relative; height: 100%; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.lead {
  position: relative; z-index: 2; align-self: flex-end;
  width: 100%; max-width: 460px;
  display: flex; flex-direction: column; gap: clamp(10px, 1.4vh, 14px);
  padding: clamp(18px, 2.8vh, 30px); border-radius: 34px;
  background:
    radial-gradient(80% 70% at 0% 0%, rgba(79, 141, 255, .22), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(36px) saturate(190%);
          backdrop-filter: blur(36px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 50px 100px -30px rgba(0, 0, 0, .9);
  --edge-w: 1.2px;
  --edge: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,.1) 30%, rgba(255,255,255,0) 60%, rgba(160,200,255,.4));
}
.lead h2 { font-size: clamp(21px, 2.9vh, 27px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin: 0 0 6px; }
.lead-sub { font-size: 14.5px; line-height: 1.45; color: rgba(222, 232, 252, .7); margin: 0; }
.input {
  padding: clamp(13px, 1.9vh, 16px) 20px; border-radius: 20px;
  font: inherit; font-size: 16px; color: #fff;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: rgba(124, 200, 255, .75); box-shadow: 0 0 0 4px rgba(124, 200, 255, .16); }
/* Поля и кнопки не сжимаются по высоте: если не влезает - это переполнение,
   его ловит main.js (data-compact), а не молча сплющивает форму */
.lead, .lead > * { flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-msg { margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 14px; font-weight: 500; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #7ee8a8; background: rgba(94, 224, 143, .12); }
.form-msg.err { color: #ff9a9a; background: rgba(248, 113, 113, .12); }

/* Равные половины, пока текст влезает; иначе кнопка телефона шире по контенту,
   а на совсем узких экранах кнопки переносятся в две строки */
.contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.contacts .pill-btn { flex: 1 1 0; min-width: max-content; padding: 11px 10px; font-size: 13.5px; font-weight: 600; }
.consent { margin: 0; font-size: 11.5px; line-height: 1.4; text-align: center; color: rgba(222, 232, 252, .5); }

/* ───────────── Features / About: desktop wrapper ───────────── */
.tab-features, .tab-about {
  width: 100%; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 0 16px;
}
.section-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 20px 40px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.card {
  position: relative; overflow: hidden; padding: 30px; border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .025));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
          backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 30px 70px -35px rgba(0, 0, 0, .8);
  --edge: linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,.06) 35%, rgba(255,255,255,0) 60%, rgba(255,255,255,.18));
}
.card h3 { font-size: 20px; font-weight: 600; margin: 24px 0 8px; letter-spacing: -.01em; }
.card p { font-size: 15px; line-height: 1.55; color: rgba(222, 232, 252, .66); margin: 0; }
.card .h3-lg { font-size: 24px; margin: 26px 0 10px; letter-spacing: -.02em; }
.card .p-lg { font-size: 15.5px; }

.card-icon {
  width: 52px; height: 52px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; color: #b5deff;
  background: linear-gradient(145deg, rgba(124, 200, 255, .3), rgba(79, 141, 255, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(160, 210, 255, .25);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.card-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; align-items: end; }
.mini-map {
  position: relative; height: 230px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(90% 90% at 70% 20%, rgba(56, 140, 248, .25), transparent 60%), #060d1c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.mini-map > svg, .scene > svg, .slide-vis > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-tag {
  position: absolute; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.map-tag-muted { color: rgba(222, 232, 252, .8); background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }

/* Engine lock toggle */
.card-lock { display: flex; flex-direction: column; }
.card-lock .h3-lock { font-size: 22px; margin: auto 0 10px; padding-top: 28px; letter-spacing: -.02em; }
.lock {
  position: relative; z-index: 2; align-self: flex-start; flex-shrink: 0;
  width: 132px; height: 68px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: background .35s;
}
.lock.is-locked { background: linear-gradient(180deg, rgba(255, 110, 110, .55), rgba(220, 50, 60, .45)); }
.lock-knob {
  position: absolute; top: 6px; left: 6px; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #0a1224;
  background: linear-gradient(180deg, #fff, #d8e4f8);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(40, 70, 140, .2), 0 6px 16px -4px rgba(0, 0, 0, .5);
  transition: left .35s cubic-bezier(.3, 1.4, .5, 1);
}
.lock.is-locked .lock-knob { left: 70px; }
.lock-knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lock-label { margin-top: 14px; font-size: 13px; font-weight: 600; color: rgba(222, 232, 252, .6); }
.lock-label.is-locked { color: #ff9a9a; }

/* Mini scenes */
.scene {
  position: relative; height: 120px; border-radius: 20px; overflow: hidden;
  background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.scene-center { display: flex; align-items: center; justify-content: center; }
.fuel-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; }
.fuel-drain { background: #ff7a7a; box-shadow: 0 0 0 4px rgba(255, 122, 122, .2); }
.fuel-refill { background: #5ee08f; box-shadow: 0 0 0 4px rgba(94, 224, 143, .2); }
.fuel-legend { position: absolute; left: 10px; bottom: 8px; display: flex; gap: 10px; font-size: 11px; font-weight: 600; color: rgba(222, 232, 252, .7); }
.c-red { color: #ff9a9a; }
.c-green { color: #7ee8a8; }

.fence {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(94, 224, 143, .22), rgba(94, 224, 143, .04) 70%);
  border: 1.5px dashed rgba(94, 224, 143, .7);
}
.fence-pin {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(180deg, #6ee8a0, #1fae5c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px -4px rgba(34, 197, 94, .8);
}
.fence-pin svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scene-tag {
  position: absolute; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.route-km { position: absolute; right: 12px; bottom: 10px; font-size: 12px; font-weight: 600; color: rgba(222, 232, 252, .75); }

/* Telegram card */
.card-tg {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; align-items: center;
  background: linear-gradient(120deg, rgba(79, 141, 255, .22), rgba(255, 255, 255, .04) 55%, rgba(94, 224, 143, .10));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 30px 70px -35px rgba(0, 0, 0, .8);
  --edge: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.06) 35%, rgba(255,255,255,0) 60%, rgba(255,255,255,.2));
}
.card-tg .p-lg { color: rgba(222, 232, 252, .7); max-width: 440px; }
.notes { display: flex; flex-direction: column; gap: 10px; }
.note {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.note-dim {
  opacity: .85;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.note-ic {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.note-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.note-ic-red { background: rgba(255, 122, 122, .18); color: #ff9a9a; }
.note-ic-green { background: rgba(94, 224, 143, .16); color: #7ee8a8; }
.note-body { min-width: 0; }
.note-t { font-size: 14.5px; font-weight: 600; }
.note-s { font-size: 13px; color: rgba(222, 232, 252, .6); }
.note-time { margin-left: auto; font-size: 12px; color: rgba(222, 232, 252, .5); }

/* About (desktop) */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.about-hero {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 44px); border-radius: 36px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: linear-gradient(160deg, rgba(79, 141, 255, .32), rgba(2, 69, 242, .10) 50%, rgba(94, 224, 143, .12));
  -webkit-backdrop-filter: blur(30px) saturate(190%);
          backdrop-filter: blur(30px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 30px 70px -30px rgba(2, 40, 160, .6);
  --edge: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.08) 35%, rgba(255,255,255,0) 60%, rgba(180,220,255,.35));
}
.kicker {
  padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #dcecff;
  background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.about-hero h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.04; letter-spacing: -.04em; font-weight: 700; margin: 22px 0 18px; }
.about-hero p { font-size: 17px; line-height: 1.62; color: rgba(236, 243, 255, .82); margin: 0; }
.about-hero .about-goal {
  padding: 22px 24px; border-radius: 24px;
  background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font-size: 15.5px; line-height: 1.55; color: rgba(236, 243, 255, .8);
}
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.adv {
  position: relative; overflow: hidden; padding: 26px; border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .025));
  -webkit-backdrop-filter: blur(26px);
          backdrop-filter: blur(26px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .08);
  --spot-r: 300px; --spot-a: .13;
}
.num { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: #8fc6ff; margin-bottom: 14px; }
.adv h3 { font-size: 17.5px; font-weight: 600; margin: 0 0 8px; }
.adv p { font-size: 14.5px; line-height: 1.55; color: rgba(222, 232, 252, .64); margin: 0; }

/* ───────────── Mobile carousel ───────────── */
.carousel { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.car-track {
  flex: 1; min-height: 0; display: flex; gap: 12px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; padding: 2px 16px; scroll-padding: 0 16px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.car-track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; overflow: hidden;
  flex: 0 0 calc(100% - 28px); scroll-snap-align: start;
  display: flex; flex-direction: column; padding: 18px; border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
          backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 30px 70px -35px rgba(0, 0, 0, .8);
}
.slide-vis {
  position: relative; flex: 1; min-height: 110px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(90% 90% at 70% 20%, rgba(56, 140, 248, .22), transparent 60%), rgba(0, 0, 0, .24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.slide-vis-lock { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.slide-vis-lock .lock { align-self: center; }
.slide-vis-lock .lock-label { margin-top: 0; text-align: center; padding: 0 12px; }
.slide-vis-notes { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 12px; }
.slide-num { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; color: #8fc6ff; margin-top: 16px; }
.slide > h3 { font-size: 21px; font-weight: 600; margin: 6px 0; letter-spacing: -.02em; }
.slide > p { font-size: 14.5px; line-height: 1.5; color: rgba(222, 232, 252, .7); margin: 0; }

.car-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #fff; transform: translate(-50%, -50%); }
.scene-tag-glass {
  padding: 4px 9px; background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.fuel-legend-m { bottom: 10px; font-size: 11.5px; }
.fence-m { width: 120px; height: 120px; }
.fence-m .fence-pin { width: 40px; height: 40px; }
.fence-m .fence-pin svg { width: 18px; height: 18px; }
.note-m { gap: 12px; padding: 12px; border-radius: 18px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.note-m .note-ic { width: 34px; height: 34px; border-radius: 11px; }
.note-m .note-ic svg { width: 16px; height: 16px; }
.note-m .note-body { flex: 1; }
.note-m .note-t { font-size: 13.5px; }
.note-m .note-s { font-size: 12px; }

.slide-about { background: linear-gradient(145deg, rgba(79, 141, 255, .34), rgba(2, 69, 242, .1) 55%, rgba(94, 224, 143, .14)); }
.kicker-sm { align-self: flex-start; padding: 6px 12px; font-size: 11.5px; }
.slide-about h2 { font-size: 28px; line-height: 1.05; letter-spacing: -.04em; font-weight: 700; margin: 16px 0 12px; }
.slide-about p { font-size: 14.5px; line-height: 1.55; color: rgba(236, 243, 255, .86); margin: 0; }
.slide-center { justify-content: center; gap: 10px; }
.goal-ic { fill: none; stroke: #8fc6ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.goal-quote { font-size: clamp(20px, 5.6vw, 24px); line-height: 1.3; letter-spacing: -.02em; font-weight: 600; margin: 10px 0 0; }
.adv-m { padding: 16px; border-radius: 22px; background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.adv-m .num { font-size: 11.5px; margin: 0; }
.adv-m h3 { font-size: 17px; font-weight: 600; margin: 8px 0 6px; }
.adv-m p { font-size: 14px; line-height: 1.5; color: rgba(222, 232, 252, .68); margin: 0; }

.dots { display: flex; justify-content: center; align-items: center; gap: 6px; height: 6px; flex-shrink: 0; }
.dots span {
  width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .3);
  transition: width .35s cubic-bezier(.3, 1.3, .5, 1), background .3s;
}
.dots span.is-active { width: 22px; background: #fff; }

/* ───────────── Mobile tab bar ───────────── */
.tabbar {
  position: relative; flex-shrink: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 5px; margin: 0 0 env(safe-area-inset-bottom); border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(30px) saturate(190%);
          backdrop-filter: blur(30px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 20px 50px -18px rgba(0, 0, 0, .85);
}
.tabbar-ind {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 20px -8px rgba(79, 141, 255, .6);
  transition: transform .28s cubic-bezier(.2, .9, .3, 1.05);
}
.app[data-tab="features"] .tabbar-ind { transform: translateX(100%); }
.app[data-tab="about"] .tabbar-ind { transform: translateX(200%); }
.tabbar a {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px 7px; font-size: 11.5px; font-weight: 600;
  color: rgba(222, 232, 252, .6); transition: color .3s;
}
.tabbar a.is-active { color: #fff; }
.tabbar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────── Footer (desktop) ───────────── */
.footer {
  width: 100%; max-width: 1240px; margin: auto auto 0; flex-shrink: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: 16px 8px 0; font-size: 12.5px; color: rgba(222, 232, 252, .5);
}
.stores { display: flex; gap: 8px; }
.store {
  display: flex; align-items: center; gap: 9px; padding: 7px 14px 7px 11px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: background .2s;
}
.store:hover { background: rgba(255, 255, 255, .16); }
.store-t { display: flex; flex-direction: column; line-height: 1.1; }
.store-s { font-size: 9.5px; color: rgba(222, 232, 252, .65); }
.store-n { font-size: 13.5px; font-weight: 600; }
.safaone { color: rgba(222, 232, 252, .78); font-weight: 600; }

/* ───────────── Desktop ───────────── */
@media (min-width: 901px) {
  .only-mobile { display: none !important; }
}
@media (min-width: 901px) and (max-height: 759px) {
  .steps { display: none; }
}
@media (min-width: 901px) and (max-height: 619px) {
  .chips { display: none; }
}

/* ───────────── Mobile (≤900px): всё в один экран ───────────── */
@media (max-width: 900px) {
  .only-desktop { display: none !important; }

  .app { height: 100vh; height: 100dvh; overflow: hidden; }

  .tab-home { grid-template-columns: minmax(0, 1fr); overflow: hidden; }
  /* Крайний случай (телефон в альбомной ориентации): даже после сжатия не влезает -
     даём Главной прокручиваться внутри, вместо того чтобы обрезать форму */
  .tab-home.is-scroll { overflow-y: auto; align-content: start; overscroll-behavior: contain; }
  .tab-home h1 { font-size: clamp(30px, min(9vw, 5.4vh), 52px); }
  /* min-height: auto - иначе при нехватке места грид схлопывает строку формы и она наезжает на заголовок */
  .home-form { justify-content: flex-start; height: auto; min-height: auto; }
  .lead { max-width: 560px; }

  .tab-features, .tab-about { flex: 1; min-height: 0; justify-content: flex-start; padding: 14px 0 12px; margin: 0 -16px; width: auto; }

  .steps, .chips { display: none; }

  /* Адаптивное сжатие Главной: data-compact выставляет main.js, если контент не влезает */
  /* 1 - шаги (есть только на планшете), 2 - лид и бейдж, 3 - строка согласия,
     4 - подзаголовок формы, 5 - H1 28px.
     Мелкие шаги, чтобы из-за нескольких пикселей не прятать лишнего. */
  .app:not([data-compact="0"]) .steps,
  .app:not([data-compact="0"]):not([data-compact="1"]) .lede,
  .app:not([data-compact="0"]):not([data-compact="1"]) .badge,
  .app[data-compact="3"] .consent, .app[data-compact="4"] .consent, .app[data-compact="5"] .consent,
  .app[data-compact="4"] .lead-sub, .app[data-compact="5"] .lead-sub { display: none; }
  .app[data-compact="5"] .tab-home h1 { font-size: 28px; }
}
@media (max-width: 380px) {
  .header-bar { gap: 10px; } /* иначе на 375px лого + 2 иконки + «Войти» не влезают */
  /* чтобы телефон и Telegram помещались в одну строку и на 360px */
  .contacts .pill-btn { padding: 11px 8px; gap: 6px; font-size: 13px; }
}
@media (max-width: 900px) and (min-height: 820px) {
  .chips { display: flex; }
}
@media (max-width: 900px) and (max-height: 759px) {
  .badge, .lead-sub { display: none; }
}
@media (max-width: 900px) and (max-height: 719px) {
  .lede, .consent { display: none; }
}

/* ───────────── Phone vs tablet: какой вариант Возможностей / О компании показывать ───────────── */
@media (max-width: 600px) {
  .wide-only { display: none !important; }
}
@media (min-width: 601px) {
  .phone-only { display: none !important; }
}

/* ───────────── Tablet (601–900px) ─────────────
   Хром как на телефоне (иконки сторов, нижний таб-бар), контент - как на десктопе. */
@media (min-width: 601px) and (max-width: 900px) {
  /* Главная - одна колонка по центру, а не растянутая телефонная раскладка */
  .tab-home { width: 100%; max-width: 620px; }
  .lead { max-width: none; align-self: stretch; }
  .lede { max-width: none; }

  /* Возможности / О компании - сетка карточек, прокрутка внутри таба */
  .tab-features, .tab-about {
    overflow-y: auto; overscroll-behavior: contain;
    padding: 14px 16px 12px;
    scrollbar-width: none;
  }
  .tab-features::-webkit-scrollbar, .tab-about::-webkit-scrollbar { display: none; }
  .section-wrap { margin: auto; padding: 0; } /* по центру, если влезает; сверху, если скроллится */

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .span-3 { grid-column: span 2; }
  .card { padding: 24px; border-radius: 28px; }
  .card .h3-lg { margin-top: 20px; }
  .mini-map { height: 200px; }

  .about-grid, .adv-grid { gap: 12px; }
  .about-hero { padding: 28px; border-radius: 30px; gap: 24px; }
  .about-hero h2 { font-size: 36px; margin: 18px 0 14px; }
  .about-hero p { font-size: 16px; }
  .adv { padding: 22px; border-radius: 24px; }
}
@media (min-width: 601px) and (max-width: 900px) and (min-height: 900px) {
  .steps { display: grid; }
}

/* ───────────── Reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  .blob, .sheen, .live-dot, .tab { animation: none; }
  .tab { transition: none; }
}

/* ───────── Снимки кабинета вместо нарисованных сценок ───────── */
/* Рисованное остаётся в разметке и прячется отсюда: чтобы вернуться
   к прежнему виду, достаточно убрать этот блок и класс has-shot. */
.has-shot { position: relative; display: block; overflow: hidden; }
.has-shot > :not(.shot) { display: none; }
.shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ───────── Живые блоки: топливо и история поездок ───────── */
/* Не картинка, а вёрстка. Цифры остаются текстом: их видно поиску, они
   не мылятся на плотных экранах и правятся без пересъёмки кабинета.
   Стекло взято то же, что у карточек уведомлений рядом. */
.scene-live {
  background: none; box-shadow: none;
  display: flex; flex-direction: column; gap: 8px;
}
.tile, .trip {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 10px 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.tile-head, .trip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tile-l { font-size: 11.5px; font-weight: 600; color: rgba(222, 232, 252, .62); }
.tile-s, .trip-time { font-family: "JetBrains Mono", ui-monospace, monospace; white-space: nowrap; }
.tile-s { font-size: 11.5px; color: rgba(222, 232, 252, .55); }
.tile-v { font-size: 27px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: #8fc6ff; }
.tile-v i { font-style: normal; font-size: 15px; font-weight: 600; }
.fuel-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.fuel-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4f8dff, #8fc6ff); }
.trip-time { font-size: 12px; font-weight: 500; }
.trip-km { font-size: 11.5px; font-weight: 600; color: rgba(222, 232, 252, .62); white-space: nowrap; }
.trip-way { font-size: 11.5px; color: rgba(222, 232, 252, .55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Разделы, которых ещё нет. Показываем в меню, но нажать нечего: так видно,
   куда движется продукт, и не приходится придумывать пустую страницу. */
.nav-soon {
  padding: 8px 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  color: rgba(230, 238, 255, .3);
  cursor: default; user-select: none; white-space: nowrap;
}
