:root{
  --bg:#f4f5f7; --surface:#ffffff; --surface-2:#f0f2f5;
  --text:#0b0f19; --text-dim:#6b7280; --hint:#9aa1ad; --line:#e7e9ee;
  --accent:#e74a39; --accent-rgb:231,74,57; --accent-ink:#ffffff; --ok:#0f9d58; --deal:#ff5a3c; --err:#e5484d;
  --brand-ink:#ffffff;
  --radius:20px; --radius-sm:14px;
  --shadow:0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Inter,Roboto,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{background:var(--bg);color:var(--text);overscroll-behavior-y:none}
body{max-width:560px;margin:0 auto;padding-bottom:96px;min-height:100vh}
img{display:block;max-width:100%}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input{font-family:inherit}
.hide{display:none!important}
.page{animation:fade .25s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---------- top bar (фирменный красный фон — по запросу заказчика) ---------- */
.top{position:sticky;top:0;z-index:30;background:var(--accent);border-bottom:1px solid transparent;
     padding:calc(14px + env(safe-area-inset-top)) 18px 12px}
.brand{display:flex;align-items:center;gap:10px}
.logo{height:26px;width:auto;object-fit:contain}
.top .sub{font-size:12px;color:rgba(255,255,255,.85);font-weight:600;margin-top:6px}
.lang{margin-left:auto;display:flex;gap:2px;background:rgba(255,255,255,.16);border-radius:10px;padding:3px}
.lang button{font-size:12px;font-weight:700;color:rgba(255,255,255,.75);padding:5px 9px;border-radius:8px}
.lang button.on{background:var(--surface);color:var(--accent);box-shadow:0 1px 2px rgba(0,0,0,.15)}

.search{margin:4px 18px 0;display:flex;align-items:center;gap:9px;background:var(--surface);
        border:1px solid var(--line);border-radius:14px;padding:11px 14px;box-shadow:var(--shadow)}
.search input{flex:1;border:none;outline:none;background:none;font-size:15px;color:var(--text)}
.search input::placeholder{color:var(--hint)}
.filters{display:flex;gap:8px;overflow-x:auto;padding:14px 18px 6px;scrollbar-width:none;
         -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);
         mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent)}
.filters::-webkit-scrollbar{display:none}
.chip{flex:none;font-size:13.5px;font-weight:600;color:var(--text-dim);background:var(--surface);
      border:1px solid var(--line);border-radius:11px;padding:8px 14px;white-space:nowrap;transition:.15s}
.chip.on{background:var(--text);color:var(--bg);border-color:var(--text)}

.ptitle{padding:calc(18px + env(safe-area-inset-top)) 20px 4px;font-size:22px;font-weight:800;letter-spacing:-.5px}
.ptitle2{font-size:22px;font-weight:800;letter-spacing:-.5px;margin-bottom:18px}

/* ---------- catalog ---------- */
.wrap{padding:6px 18px}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;margin:18px 2px 12px}
.sec-h h2{font-size:16px;font-weight:800;letter-spacing:-.3px}
.sec-h span{font-size:13px;color:var(--hint);font-weight:600}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
      box-shadow:var(--shadow);transition:transform .18s ease;position:relative}
.card:active{transform:scale(.975)}
.card .ph{position:relative;aspect-ratio:16/11;background:linear-gradient(180deg,#fafbfc,#eef0f3);overflow:hidden}
.card .ph img{width:100%;height:100%;object-fit:cover;mix-blend-mode:multiply}
.badges{position:absolute;top:9px;left:9px;display:flex;flex-direction:column;gap:5px;align-items:flex-start}
.badge{font-size:10.5px;font-weight:800;letter-spacing:.2px;padding:4px 8px;border-radius:8px;text-transform:uppercase}
.badge.deal{background:var(--deal);color:#fff}
.badge.new{background:rgba(15,157,88,.14);color:var(--ok)}
.badge.hyb{background:rgba(var(--accent-rgb),.12);color:var(--accent)}
.card .body{padding:12px 13px 14px}
.card .name{font-size:14.5px;font-weight:800;letter-spacing:-.3px;line-height:1.15}
.card .specs{display:flex;gap:10px;margin-top:8px;color:var(--text-dim)}
.card .specs span{display:flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600}
.card .price{margin-top:11px;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.card .price b{font-size:16px;font-weight:800;letter-spacing:-.4px}
.card .price s{font-size:12px;color:var(--hint)}
.card .price em{font-size:12px;color:var(--text-dim);font-style:normal;font-weight:600}
.empty{text-align:center;color:var(--hint);font-weight:600;padding:60px 20px;font-size:14px}
svg.ic{width:13px;height:13px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* ---------- overlays (detail / booking) ---------- */
.overlay{position:fixed;inset:0;z-index:40;background:var(--bg);max-width:560px;margin:0 auto;
         display:flex;flex-direction:column;
         transform:translateX(100%);transition:transform .28s cubic-bezier(.32,.72,0,1);visibility:hidden}
.overlay.open{transform:translateX(0);visibility:visible}
/* прокручивается только середина; кнопка снизу — отдельный нефиксированный блок,
   иначе transform у .overlay ломает position:fixed (кнопка «едет» при скролле) */
.o-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
          overscroll-behavior:contain;padding-bottom:8px}
body.lock{overflow:hidden}
.o-back{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:8px;
        padding:calc(14px + env(safe-area-inset-top)) 16px 14px;
        background:var(--bg);font-weight:700;font-size:15px}
.o-back .b{width:34px;height:34px;border-radius:11px;background:var(--surface);border:1px solid var(--line);
           display:grid;place-items:center;box-shadow:var(--shadow)}
.d-hero{aspect-ratio:16/10;margin:2px 16px 0;border-radius:var(--radius);overflow:hidden;
        background:linear-gradient(180deg,#fafbfc,#e9ebef)}
.d-hero img{width:100%;height:100%;object-fit:cover;mix-blend-mode:multiply}
.d-body{padding:18px 18px 0}
.d-title{font-size:24px;font-weight:800;letter-spacing:-.6px}
.d-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.tag{font-size:12px;font-weight:600;color:var(--text-dim);background:var(--surface);border:1px solid var(--line);
     padding:5px 11px;border-radius:9px}
.d-specs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:18px}
.spec{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:13px;text-align:center}
.spec svg{width:19px;height:19px;color:var(--accent);margin:0 auto 7px}
.spec b{display:block;font-size:14px;font-weight:800}
.spec span{font-size:11px;color:var(--hint);font-weight:600}

/* ---------- calculator ---------- */
.calc{margin:20px 0 0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
      padding:18px;box-shadow:var(--shadow)}
.calc h3{font-size:14px;font-weight:800;letter-spacing:-.2px;margin-bottom:4px}
.calc .cap{font-size:12.5px;color:var(--text-dim);margin-bottom:16px}
.days-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.stepper{display:flex;align-items:center;gap:14px;background:var(--surface-2);border-radius:13px;padding:6px}
.stepper button{width:38px;height:38px;border-radius:10px;background:var(--surface);font-size:22px;font-weight:600;
                display:grid;place-items:center;box-shadow:0 1px 2px rgba(0,0,0,.06);color:var(--text)}
.stepper b{min-width:54px;text-align:center;font-size:18px;font-weight:800}
.days-row .lbl{font-size:13px;color:var(--text-dim);font-weight:600}
.presets{display:flex;gap:8px;margin-top:14px}
.presets button{flex:1;font-size:13px;font-weight:700;color:var(--text-dim);background:var(--surface-2);
                border-radius:11px;padding:10px 0;transition:.15s}
.presets button.on{background:var(--accent);color:#fff}
.tier{margin-top:16px;border-top:1px dashed var(--line);padding-top:15px;display:flex;flex-direction:column;gap:9px}
.ln{display:flex;justify-content:space-between;align-items:center;font-size:13.5px}
.ln .k{color:var(--text-dim);font-weight:600}
.ln .v{font-weight:700}
.ln.disc .v{color:var(--ok)}
.ln.total{margin-top:4px;padding-top:13px;border-top:1px solid var(--line)}
.ln.total .k{font-size:15px;font-weight:800;color:var(--text)}
.ln.total .v{font-size:22px;font-weight:800;letter-spacing:-.5px}
.hint{margin-top:14px;background:rgba(var(--accent-rgb),.07);border:1px solid rgba(var(--accent-rgb),.16);border-radius:13px;
      padding:12px 14px;font-size:12.5px;color:var(--accent);font-weight:600;display:flex;gap:9px;align-items:flex-start}
.hint svg{width:16px;height:16px;flex:none;margin-top:1px}
.incl{margin:16px 0 0;display:flex;flex-direction:column;gap:10px;padding:0 2px}
.incl div{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--text-dim);font-weight:500}
.incl svg{width:17px;height:17px;color:var(--ok);flex:none}
.incl .note{color:var(--hint);font-weight:500}
.incl .note svg{color:var(--hint);fill:none;stroke:currentColor;stroke-width:2}

/* ---------- booking form ---------- */
.bk-car{display:flex;align-items:center;gap:13px;background:var(--surface);border:1px solid var(--line);
        border-radius:var(--radius-sm);padding:11px;margin-bottom:20px}
.bk-car img{width:74px;height:52px;object-fit:cover;border-radius:10px;background:var(--surface-2);mix-blend-mode:multiply}
.bk-car .t{font-size:15px;font-weight:800;letter-spacing:-.3px}
.bk-car .s{font-size:12.5px;color:var(--text-dim);font-weight:600;margin-top:3px}
.field{margin-bottom:16px}
.field label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}
.field label .opt{color:var(--hint);font-weight:500}
.field input{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:13px;
             padding:14px;font-size:15px;color:var(--text);outline:none;transition:border-color .15s}
.field input:focus{border-color:var(--accent)}
.field input::placeholder{color:var(--hint)}
.pickups{display:flex;flex-direction:column;gap:8px}
.pickups button{display:flex;align-items:center;gap:11px;text-align:left;background:var(--surface);
                border:1.5px solid var(--line);border-radius:13px;padding:13px 14px;font-size:14px;
                font-weight:600;color:var(--text);transition:.15s}
.pickups button .rd{width:20px;height:20px;border-radius:50%;border:2px solid var(--line);flex:none;transition:.15s}
.pickups button.on{border-color:var(--accent);background:rgba(var(--accent-rgb),.05)}
.pickups button.on .rd{border-color:var(--accent);background:radial-gradient(circle,var(--accent) 0 6px,transparent 7px)}
.bk-summary{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:14px 16px;
            margin-top:4px;display:flex;flex-direction:column;gap:8px}
.bk-summary .ln .v{font-weight:700}
.bk-summary .ln.total .k{font-size:15px;font-weight:800}
.bk-summary .ln.total .v{font-size:19px;font-weight:800}
.err{margin-top:14px;background:rgba(229,72,77,.08);border:1px solid rgba(229,72,77,.25);color:var(--err);
     border-radius:12px;padding:12px 14px;font-size:13px;font-weight:600}

/* ---------- info pages (my / faq / contacts) ---------- */
.bk-row{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:14px 16px;
        margin-bottom:12px;box-shadow:var(--shadow)}
.bk-row .h{display:flex;justify-content:space-between;align-items:center;gap:10px}
.bk-row .h b{font-size:15px;font-weight:800;letter-spacing:-.3px}
.bk-row .st{font-size:12px;font-weight:700;padding:4px 10px;border-radius:8px;white-space:nowrap}
.st.new{background:rgba(245,158,11,.14);color:#b45309}
.st.confirmed{background:rgba(15,157,88,.14);color:var(--ok)}
.st.declined{background:rgba(229,72,77,.12);color:var(--err)}
.st.done{background:var(--surface-2);color:var(--text-dim)}
.bk-row .m{font-size:13px;color:var(--text-dim);font-weight:600;margin-top:7px}
.acc{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);margin-bottom:10px;overflow:hidden}
.acc .q{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px;font-size:14.5px;font-weight:700}
.acc .q svg{width:18px;height:18px;color:var(--hint);transition:transform .2s}
.acc.open .q svg{transform:rotate(180deg)}
.acc .a{max-height:0;overflow:hidden;transition:max-height .25s ease}
.acc.open .a{max-height:340px}
.acc .a .in{padding:0 16px 16px;font-size:13.5px;color:var(--text-dim);line-height:1.55;white-space:pre-line}
.contact{display:flex;align-items:center;gap:13px;background:var(--surface);border:1px solid var(--line);
         border-radius:var(--radius-sm);padding:15px 16px;margin-bottom:10px;font-weight:700;font-size:14.5px}
.contact svg{width:21px;height:21px;color:var(--accent);flex:none}
.contact .v{margin-left:auto;color:var(--text-dim);font-weight:600;font-size:13px}

/* ---------- main action button ---------- */
.mainbtn{flex:none;z-index:50;
         padding:14px 16px calc(14px + env(safe-area-inset-bottom));
         background:var(--bg);box-shadow:0 -10px 24px 6px var(--bg)}
.mainbtn button{width:100%;background:var(--accent);color:#fff;font-size:16px;font-weight:800;letter-spacing:-.2px;
                border-radius:15px;padding:16px;box-shadow:0 8px 24px rgba(var(--accent-rgb),.32);
                display:flex;align-items:center;justify-content:center;gap:8px;transition:opacity .15s}
.mainbtn button:disabled{opacity:.5}
.mainbtn button .p{opacity:.85;font-weight:600}

/* ---------- success sheet ---------- */
.sheet{background:rgba(11,15,25,.5);backdrop-filter:blur(4px);transform:none;
       display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;
       transition:opacity .2s;opacity:0;visibility:hidden}
.sheet.open{opacity:1;visibility:visible}
.success-card{background:var(--surface);width:100%;border-radius:24px 24px 0 0;padding:34px 26px calc(28px + env(safe-area-inset-bottom));
              text-align:center;transform:translateY(100%);transition:transform .3s cubic-bezier(.32,.72,0,1)}
.sheet.open .success-card{transform:translateY(0)}
.ok-ring{width:72px;height:72px;border-radius:50%;background:rgba(15,157,88,.12);display:grid;place-items:center;margin:0 auto 18px}
.ok-ring svg{width:34px;height:34px;stroke:var(--ok);stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.success-card h2{font-size:21px;font-weight:800;letter-spacing:-.4px}
.success-card p{font-size:14px;color:var(--text-dim);font-weight:500;margin:10px 0 22px;line-height:1.5}
.ghost{width:100%;background:var(--surface-2);color:var(--text);font-size:16px;font-weight:800;border-radius:14px;padding:15px}

/* ---------- tabbar ---------- */
.tabbar{position:fixed;bottom:0;left:0;right:0;max-width:560px;margin:0 auto;z-index:35;
        display:flex;background:var(--surface);
        border-top:1px solid var(--line);padding:8px 0 calc(8px + env(safe-area-inset-bottom))}
.tabbar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--hint);font-size:10.5px;font-weight:700}
.tabbar button.on{color:var(--accent)}
.tabbar svg{width:23px;height:23px}

/* ---------- AI assistant: floating launcher ---------- */
.ai-fab{position:fixed;right:16px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:34;
        width:56px;height:56px;border-radius:50%;background:var(--accent);
        box-shadow:0 10px 26px rgba(var(--accent-rgb),.4);display:grid;place-items:center;
        animation:fabIn .3s cubic-bezier(.32,.72,0,1)}
.ai-fab:active{transform:scale(.94)}
@keyframes fabIn{from{opacity:0;transform:scale(.6) translateY(10px)}to{opacity:1;transform:none}}
.ai-fab .ava{width:52px;height:52px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--accent)}
.ai-fab .ava svg,.chat-head .ava svg{width:60%;height:60%}
.ai-fab .ava img,.chat-head .ava img,.msg .ava img{width:100%;height:100%;object-fit:cover}
.ai-fab .dot{position:absolute;top:2px;right:2px;width:14px;height:14px;border-radius:50%;
             background:var(--ok);border:2.5px solid var(--surface)}

/* ---------- AI assistant: chat overlay ---------- */
.chat-head{flex:none;display:flex;align-items:center;gap:11px;
           padding:calc(12px + env(safe-area-inset-top)) 16px 12px;
           background:var(--surface);border-bottom:1px solid var(--line);z-index:5}
.chat-head .b{width:34px;height:34px;border-radius:11px;background:var(--surface-2);
              display:grid;place-items:center;flex:none}
.chat-head .ava{width:40px;height:40px;border-radius:50%;overflow:hidden;flex:none;
                background:var(--accent);display:grid;place-items:center}
.chat-head .who b{display:block;font-size:15.5px;font-weight:800;letter-spacing:-.3px}
.chat-head .who .on{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--text-dim);font-weight:600;margin-top:1px}
.chat-head .who .on i{width:7px;height:7px;border-radius:50%;background:var(--ok);display:inline-block}
.chat-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
             overscroll-behavior:contain;padding:16px 14px 8px;display:flex;flex-direction:column}
.chat-msgs{display:flex;flex-direction:column;gap:12px}
.msg{display:flex;gap:9px;max-width:88%;align-items:flex-end}
.msg .ava{width:28px;height:28px;border-radius:50%;overflow:hidden;flex:none;
          background:var(--accent);display:grid;place-items:center}
.msg .ava svg{width:60%;height:60%}
.msg .bub{padding:11px 14px;border-radius:16px;font-size:14.5px;line-height:1.5;
          white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.msg.bot{align-self:flex-start}
.msg.bot .bub{background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:5px;color:var(--text)}
.msg.me{align-self:flex-end}
.msg.me .bub{background:var(--accent);color:#fff;border-bottom-right-radius:5px}
.msg.typing .bub{display:flex;gap:4px;padding:14px}
.msg.typing i{width:7px;height:7px;border-radius:50%;background:var(--hint);animation:blink 1.2s infinite both}
.msg.typing i:nth-child(2){animation-delay:.2s}
.msg.typing i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,60%,100%{opacity:.25}30%{opacity:1}}
.chat-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;padding-bottom:4px}
.chat-quick button{font-size:13px;font-weight:600;color:var(--accent);background:rgba(var(--accent-rgb),.07);
                   border:1px solid rgba(var(--accent-rgb),.18);border-radius:12px;padding:9px 13px;transition:.15s}
.chat-quick button:active{transform:scale(.96)}
.chat-input{flex:none;display:flex;align-items:flex-end;gap:9px;
            padding:10px 14px calc(10px + env(safe-area-inset-bottom));
            background:var(--surface);border-top:1px solid var(--line)}
.chat-input textarea{flex:1;resize:none;max-height:120px;background:var(--surface-2);border:1px solid var(--line);
                     border-radius:16px;padding:12px 15px;font-size:15px;color:var(--text);outline:none;line-height:1.4}
.chat-input textarea:focus{border-color:var(--accent)}
.chat-input textarea::placeholder{color:var(--hint)}
.chat-input button{width:44px;height:44px;flex:none;border-radius:50%;background:var(--accent);
                   display:grid;place-items:center;transition:opacity .15s}
.chat-input button:disabled{opacity:.4}
.chat-input button svg{width:20px;height:20px;stroke:#fff;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* ---------- GENIE splash (аватар-ассистент, прозрачный фон) ---------- */
.splash{position:fixed;inset:0;z-index:200;background:transparent;overflow:hidden;
        display:flex;align-items:center;justify-content:center;touch-action:none}
.splash.out{animation:splashOut .42s ease forwards}
@keyframes splashOut{to{opacity:0;visibility:hidden}}
.splash-cv{display:block;width:100%;height:100%}
/* пока видео буферизуется — видимый индикатор в фирменном цвете (не пустой экран) */
.splash-loading{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;
                 transition:opacity .25s ease}
.splash-loading.hide{opacity:0;pointer-events:none}
.splash-loading span{width:44px;height:44px;border-radius:50%;
                      border:3px solid rgba(var(--accent-rgb),.22);border-top-color:var(--accent);
                      animation:splashSpin .8s linear infinite}
@keyframes splashSpin{to{transform:rotate(360deg)}}
.splash-skip{position:absolute;top:calc(12px + env(safe-area-inset-top));right:14px;z-index:2;
             font-size:13px;font-weight:700;color:#fff;background:rgba(11,15,25,.55);
             border-radius:999px;padding:8px 15px;backdrop-filter:blur(6px)}
.splash-skip:active{transform:scale(.95)}
.splash-tap{position:absolute;bottom:calc(30px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);
            z-index:2;display:none;align-items:center;gap:7px;color:#fff;font-size:13px;font-weight:600;
            background:rgba(11,15,25,.5);border-radius:999px;padding:9px 16px;backdrop-filter:blur(6px);
            pointer-events:none;animation:tapPulse 1.6s ease-in-out infinite}
.splash-tap.show{display:flex}
.splash-tap svg{display:block}
@keyframes tapPulse{0%,100%{opacity:.65}50%{opacity:1}}
