/* app.css — демо-приложение «Apex Insurance демо». 27.10.2026: вид — дизайн Claude Design (handoff-insurance-demo):
   синее Liquid Glass, светлые экраны, тёмные «Выбор авто» и «КАСКО». Шрифт Manrope лежит рядом (OFL, fonts/), без Google Fonts.
   Экран звонка web-voice.js скрыт, им управляет app.js. Что трогать нельзя — docs/INS_APP_DESIGN_NOTES_2026-10-26.md. */
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/app/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/app/fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* 28.10: нижний отступ под системные кнопки. Android в установленном приложении рисует страницу ПОД кнопками □ ○ ◁
     и не сообщает их высоту (env = 0), причём то так, то нет — после обновления страницы. Поэтому в установленном
     приложении на Android резервируем высоту кнопочной панели (48dp) всегда; класс ставит app.js. */
  --sab: env(safe-area-inset-bottom, 0px);
  --bg: #f3f5f9; --ink: #121625; --mute: #6e7486; --mute2: #8a90a3; --mute3: #9aa0b2; --line: #e5e8ef; --line2: #eef0f4;
  --acc: #2f63d8; --acc2: #6f9bff; --ok: #22c38e; --in: #1f9d6e; --red: #ff4d5e; --warn: #f5a623;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --top: calc(env(safe-area-inset-top, 0px) + 30px);   /* 28.10: плашки ДЕМО больше нет — экраны выше на 22px */
  --glass-bg: radial-gradient(120% 90% at 28% 0%, rgba(255,255,255,.42) 0%, rgba(255,255,255,0) 55%), linear-gradient(170deg, rgba(79,134,240,.78) 0%, rgba(47,99,216,.72) 55%, rgba(31,71,181,.82) 100%);
  --glass-sh: inset 1.5px 2px 1px -1px rgba(255,255,255,.95), inset -1.5px -2px 1px -1px rgba(255,255,255,.55), inset 0 0 0 1px rgba(255,255,255,.22), inset 0 -10px 18px -10px rgba(10,30,100,.35), 0 18px 30px -14px rgba(31,71,181,.55);
  --dark-glass: linear-gradient(160deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.05) 100%);
  --dark-sh: inset 1px 1.5px 1px -1px rgba(255,255,255,.55), 0 24px 40px -24px rgba(0,0,0,.8);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
html, body { margin: 0; padding: 0; height: 100%; }
body { font-family: "Manrope", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; background: #e6e8ee; color: var(--ink); overscroll-behavior: none; }
button { font-family: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input { font-family: inherit; }
[hidden] { display: none !important; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes riseBar { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ringPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes dealIn { from { opacity: 0; transform: translateY(-140px) rotate(-4deg) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes barIn { from { width: 0; } }
@keyframes drawCheck { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ringOnce { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes hazard { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes slotIn { from { opacity: 0; transform: translateY(24px) rotate(-6deg) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes shutter { 0% { opacity: .95; } 100% { opacity: 0; } }
@keyframes carInR { from { opacity: 0; transform: translateX(60px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes carInL { from { opacity: 0; transform: translateX(-40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes curtain { from { opacity: 0; } to { opacity: 1; } }
@keyframes csInUp { from { opacity: 0; transform: translateY(28px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes csInDn { from { opacity: 0; transform: translateY(-28px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes csOutUp { to { opacity: 0; transform: translateY(-22px) scale(.94); } }
@keyframes csOutDn { to { opacity: 0; transform: translateY(22px) scale(.94); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dotPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.3); opacity: 0; } }
.rise { animation: rise .6s var(--ease) both; }
.fu { animation: fadeUp .45s ease both; }

/* ── рама: телефон — во весь экран; ноутбук — телефон по центру (второй экран ролика) ── */
#frame { position: relative; width: 100vw; height: 100dvh; overflow: hidden; background: var(--bg); }
@media (min-width: 520px) {
  body { min-height: 100dvh; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(900px 600px at 50% 25%, #eef2fb 0%, #e6e8ee 70%); }
  #frame { width: 390px; height: 844px; border-radius: 48px;
    box-shadow: 0 0 0 10px #121625, 0 0 0 11px #343a52, 0 50px 90px -30px rgba(18,22,37,.5); }
  :root { --top: 38px; }
}
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: var(--top) 16px calc(var(--sab) + 130px); }


/* ── титр при открытии ── */
#splash { position: absolute; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 40px;
  text-align: center; color: #fff; background: radial-gradient(520px 420px at 50% 38%, rgba(90,143,242,.6) 0%, rgba(90,143,242,0) 70%), linear-gradient(180deg, #2a4fb0 0%, #162c6e 55%, #0b1433 100%); }
#splash .sp-av { width: 112px; height: 112px; background: linear-gradient(160deg, #eef3ff, #c9d9ff); border: 3px solid rgba(255,255,255,.6); animation: popIn .6s var(--ease) both; }
#splash .sp-t { font-size: 26px; font-weight: 800; animation: fadeUp .5s ease .2s both; }
#splash p { margin: 0; font-size: 14px; line-height: 1.5; opacity: .75; animation: fadeUp .5s ease .3s both; }

/* аватар Ники в круге (картинка прижата к низу) */
.av { position: relative; border-radius: 50%; overflow: hidden; background: #fff; flex-shrink: 0; }
.av img { position: absolute; left: 50%; bottom: -6%; transform: translateX(-50%); width: 93%; height: auto; }

/* ── общие кирпичи ── */
.circ { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center;
  font-weight: 800; font-size: 16px; flex-shrink: 0; color: var(--ink); }
.circ svg.i { width: 18px; height: 18px; stroke-width: 2; }
.circ.sm { width: 40px; height: 40px; }
.bk-h { display: flex; align-items: center; gap: 12px; }
.bk-h > div { font-size: 22px; font-weight: 800; letter-spacing: -.02em; min-width: 0; }
.bk-h small { display: block; font-size: 12.5px; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.subt { margin-top: 6px; font-size: 13.5px; color: var(--mute); }
.sec { margin: 22px 4px 10px; font-size: 16px; font-weight: 700; }
.box { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 2px 16px; }
.box-h { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 2px 0; }
.box-h b { font-size: 16px; }
.box-h button { font-size: 14px; font-weight: 700; color: var(--acc); }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line2); cursor: pointer; }
.box > .row:first-child, .box-h + .row { border-top: 0; }
.row .tx { flex: 1; min-width: 0; }
.row .t1 { font-size: 15px; font-weight: 600; }
.row .t2 { margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--mute2); }
.row .vv { font-size: 13.5px; font-weight: 600; color: var(--mute2); }
.row .chev { width: 16px; height: 16px; fill: none; stroke: #a9aebd; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.row.ok .vv { color: var(--in); } .row.need .vv { color: var(--acc); }
.ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.ico svg.i { width: 18px; height: 18px; }
.kv { padding: 12px 0; border-top: 1px solid var(--line2); }
.kv:first-child { border-top: 0; }
.kv .k { font-size: 12.5px; color: var(--mute2); }
.kv .v { margin-top: 3px; font-size: 15.5px; font-weight: 600; }
.note { padding: 14px 2px; font-size: 13.5px; color: var(--mute); line-height: 1.45; }
.note.warn { color: #b45309; }
.ft { margin-top: 16px; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--mute3); padding: 0 10px; }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; }
.chips2 span { padding: 9px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; animation: fadeUp .4s ease both; }
.chip-b { height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--acc); font-size: 14px; font-weight: 700; }

/* Liquid Glass — синяя кнопка и активная иконка таб-бара (дизайн: README «Стиль») */
.glassy, .btn-glass { background: var(--glass-bg); backdrop-filter: blur(20px) saturate(200%); -webkit-backdrop-filter: blur(20px) saturate(200%);
  color: #fff; text-shadow: 0 1px 2px rgba(15,40,120,.35); box-shadow: var(--glass-sh); border: 1px solid rgba(255,255,255,.35); }
.btn-glass { margin-top: 14px; width: 100%; height: 56px; border-radius: 999px; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-glass svg.i { width: 18px; height: 18px; stroke-width: 1.9; }
.btn-glass[disabled] { opacity: .45; cursor: default; }
.btn-w { height: 50px; padding: 0 26px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--acc); font-size: 15px; font-weight: 700; }

/* ── главная ── */
.hrow { display: flex; align-items: center; gap: 12px; }
.hrow .who { flex: 1; min-width: 0; }
.hrow .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute2); }
.hrow .hello { margin-top: 2px; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero { position: relative; margin: 14px -16px 0; padding: 78px 16px 96px; overflow: hidden; }
.hero-in { position: relative; }
.hero-word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 260px; opacity: .14; font-weight: 800; letter-spacing: -.06em;
  line-height: 1; white-space: nowrap; background: linear-gradient(170deg, #7ea6f5 0%, #2f63d8 45%, #1f47b5 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; pointer-events: none; user-select: none; filter: drop-shadow(0 18px 22px rgba(31,71,181,.45)) drop-shadow(0 4px 6px rgba(18,22,37,.25)); }
.acts { position: relative; border-radius: 30px; padding: 18px 8px 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  background: linear-gradient(160deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.2) 100%); backdrop-filter: blur(10px) saturate(170%); -webkit-backdrop-filter: blur(10px) saturate(170%);
  border: 1px solid rgba(255,255,255,.85); box-shadow: inset 1px 1.5px 1px -1px #fff, inset 0 0 0 1px rgba(255,255,255,.2), 0 28px 44px -28px rgba(31,71,181,.55); }
.act { display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.25; text-align: center; }
.act span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 1px 1.5px 1px -1px #fff, 0 8px 16px -10px rgba(18,22,37,.35); }
.act svg.i { width: 19px; height: 19px; stroke-width: 1.9; }
.hero-count { position: relative; margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--mute); }

/* карусель полисов: 3D-наклон, «+ Добавить» последней карточкой */
.carousel { margin: 0 -16px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; scroll-padding: 0 16px; }
.pslot { flex: 0 0 84%; scroll-snap-align: start; perspective: 900px; cursor: pointer; }
.pslot.deal { animation: dealIn .85s cubic-bezier(.2,.9,.25,1.05) both; }
.pcard { position: relative; overflow: hidden; border-radius: 26px; padding: 18px 20px; min-height: 132px; background: linear-gradient(160deg, #fff, #f3f5f9);
  border: 1px solid var(--line); box-shadow: 0 18px 34px -26px rgba(18,22,37,.4); transition: transform .7s var(--ease); }
.pcard .glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(240px 180px at var(--gx, 30%) var(--gy, 10%), rgba(255,255,255,.9), rgba(255,255,255,0) 62%); }
.pcard.add { background: linear-gradient(160deg, #f7f8fb, #eef1f6); }
.pcard.s-suspended { background: linear-gradient(160deg, #eef0f2 0%, #dfe3e7 100%); }
.pc-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pc-k { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute2); }
.pc-k i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #2f63d8); }
.pst { padding: 5px 11px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pst.ok { color: #1f9d6e; } .pst.soon { color: #2f63d8; } .pst.stop { color: #5f6b6a; } .pst.off { color: var(--mute2); } .pst.pay { color: #b45309; }
.pc-img { position: absolute; bottom: -6px; pointer-events: none; filter: drop-shadow(0 12px 14px rgba(18,22,37,.18)); background: center bottom / contain no-repeat; }
.pc-no { position: relative; margin-top: 10px; font-size: 21px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.pc-l { position: relative; margin-top: 8px; font-size: 13px; color: var(--mute); }
.pc-l + .pc-l { margin-top: 2px; }
.cdots { margin-top: -6px; display: flex; justify-content: center; gap: 6px; }
.cdots span { height: 6px; width: 6px; border-radius: 3px; background: #cfd4de; transition: all .3s ease; }
.cdots span.on { width: 18px; background: var(--ink); }

/* обращения по шагам */
.claim { margin-top: 14px; }
.claim-card { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 16px 18px; }
.cl-h { display: flex; justify-content: space-between; gap: 10px; }
.cl-h b { font-size: 15px; } .cl-h span { font-size: 13.5px; font-weight: 700; color: var(--acc); text-align: right; }
.cl-h span.warn { color: #2f63d8; }
.cl-sub { margin-top: 3px; font-size: 12.5px; color: var(--mute2); }
.cl-track { position: relative; margin: 14px 8px 0; height: 16px; }
.cl-track .ln { position: absolute; left: 0; right: 0; top: 6.5px; height: 3px; border-radius: 2px; background: var(--line); }
.cl-track .fl { position: absolute; left: 0; top: 6.5px; height: 3px; border-radius: 2px; background: var(--acc); animation: barIn 1.3s var(--ease) .45s both; }
.cl-dot { position: absolute; top: 0; margin-left: -8px; width: 16px; height: 16px; }
.cl-dot::before, .cl-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-sizing: border-box; }
.cl-dot::after { border: 2.5px solid var(--line); background: #fff; animation: popIn .45s ease both; }
.cl-dot.on::after { border-color: var(--acc); background: var(--acc); }
.cl-dot.cur::after { border-color: var(--acc); background: #fff; }
.cl-dot.warn::after { border-color: var(--warn); background: #fff; }
.cl-dot.cur::before, .cl-dot.warn::before { border: 2px solid currentColor; color: var(--acc); animation: ringPulse 1.6s ease-out 1.6s infinite; }
.cl-dot.warn::before { color: var(--warn); }
.cl-lb { margin-top: 8px; display: grid; grid-template-columns: repeat(3, 1fr); font-size: 11.5px; color: var(--mute2); }
.cl-lb span:nth-child(2) { text-align: center; } .cl-lb span:last-child { text-align: right; }
.cl-miss { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--bg); color: #4b5268; font-size: 13.5px; font-weight: 600; }
.cl-miss::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.cl-upd { margin-top: 10px; font-size: 12px; color: var(--mute3); }
.cl-acts { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ── карточка полиса: переворот, QR на обороте, замок при приостановке ── */
.flip-wrap { margin-top: 16px; perspective: 1000px; }
.flip { position: relative; height: 236px; cursor: pointer; transform-style: preserve-3d; transition: transform .85s var(--ease); }
.flip.on { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; border: 1px solid var(--line);
  padding: 20px 22px; color: var(--ink); background: linear-gradient(160deg, #fff, #f3f5f9); box-shadow: 0 22px 40px -28px rgba(18,22,37,.4); transition: background .8s ease; }
.face.s-suspended { background: linear-gradient(160deg, #eef0f2 0%, #dfe3e7 100%); }
.face .lng { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute2); line-height: 1.45; max-width: 24ch; }
.face .pb-no { position: relative; margin-top: 12px; font-size: 28px; font-weight: 800; white-space: nowrap; }
.face .pb-pl { position: relative; margin-top: 4px; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: #4b5268; min-height: 18px; }
.face .pb-bar { position: relative; margin-top: 18px; height: 6px; border-radius: 3px; background: #e9edf4; overflow: hidden; }
.face .pb-bar i { display: block; height: 100%; border-radius: 3px; background: var(--acc); animation: barIn 1.4s var(--ease) .35s both; }
.face.s-suspended .pb-bar i { background: #9aa0b2; }
.face .pb-d { position: relative; margin-top: 8px; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mute); }
.face .pc-img { top: 58px; right: -4px; bottom: auto; width: 128px; height: 112px; animation: popIn .6s var(--ease) .25s both; }
.face.s-suspended .pc-img { opacity: .5; }
.face .lock { position: absolute; right: 20px; bottom: 46px; width: 48px; height: 54px; }
.face .lock::before { content: ""; position: absolute; left: 2px; top: 18px; width: 44px; height: 36px; border-radius: 12px; border: 2px solid #5f6b6a; animation: ringOnce .8s ease-out .3s both; }
.face.back { transform: rotateY(180deg); background: #fff; display: flex; align-items: center; gap: 16px; padding: 18px 20px; box-shadow: 0 26px 44px -26px rgba(31,71,181,.45); }
.qr-box { flex-shrink: 0; width: 150px; height: 150px; padding: 8px; border-radius: 16px; border: 1px solid var(--line); display: grid; place-items: center; }
.qr-box svg { width: 132px; height: 132px; display: block; animation: popIn .5s var(--ease) .3s both; }
.qr-box .note { padding: 0; font-size: 12px; text-align: center; }
.back .bn { font-size: 15px; font-weight: 800; } .back .bt { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--mute); } .back .bd { margin-top: 8px; font-size: 11.5px; color: var(--mute3); }
.susp-note { margin-top: 12px; padding: 12px 16px; border-radius: 18px; background: #fdeeee; border: 1px solid #f6d2d2; color: #b2312f; font-size: 13.5px; line-height: 1.45; animation: fadeUp .45s ease both; }

/* ── ДТП ── */
.step-n { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #eef3ff; color: var(--acc); font-weight: 800; font-size: 15px; transition: background .3s; }
.step-n svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; animation: drawCheck .4s ease both; }
.row.chk .step-n { background: var(--ok); }
.row .st-t { font-size: 15px; line-height: 1.4; transition: color .3s; }
.row.chk .st-t { color: var(--mute2); }
.docs-pend { margin-top: 12px; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #f3dcb8; border-radius: 22px; padding: 14px 16px; cursor: pointer; }
.docs-pend .ico { background: #fff4e5; color: #b25a00; }
.docs-pend .chev { width: 18px; height: 18px; fill: none; stroke: #b25a00; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }   /* 28.10: без размера значок растягивался на всю карточку */
.haz { position: relative; margin-top: 16px; }
.haz::before { content: ""; position: absolute; inset: -6px; border-radius: 999px; box-shadow: 0 0 0 2px rgba(255,159,26,.55), 0 0 26px 4px rgba(255,159,26,.45); animation: hazard 1.4s ease-in-out infinite; pointer-events: none; }
.haz .btn-glass { margin-top: 0; height: 58px; font-size: 17px; }

/* ── отметка повреждений ── */
#s-damage { background: linear-gradient(180deg, #eef0f4 0%, #f6f7f9 100%); padding-bottom: 200px; }
.dmg-cnt { flex-shrink: 0; padding: 6px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--mute2); }
.dmg-cnt.on { color: var(--in); }
.dmg-tabs { margin-top: 16px; display: flex; justify-content: center; gap: 8px; }
.dmg-tabs button { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--mute); font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 14px -10px rgba(18,22,37,.35); transition: all .25s; }
.dmg-tabs button.on { border-color: #d6dbe4; background: linear-gradient(180deg, #e9ecf1, #dfe3ea); color: var(--ink); box-shadow: inset 0 2px 4px rgba(18,22,37,.12); }
.dmg-hint { margin-top: 6px; text-align: center; font-size: 13px; color: var(--mute2); }
.car-top { position: relative; margin: 14px auto 0; width: 190px; height: 380px; }
.car-top img { display: block; width: 190px; height: 380px; object-fit: fill; filter: drop-shadow(0 26px 24px rgba(18,22,37,.35)); }
.zone { position: absolute; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.95); background: rgba(255,255,255,.82); color: var(--acc); box-shadow: 0 6px 14px -6px rgba(18,22,37,.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: all .3s var(--ease); animation: fadeIn .4s ease both; }
.zone::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255,255,255,.7); animation: dotPulse 1.4s ease-out infinite; pointer-events: none; }
.zone svg { position: relative; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.zone.on { transform: scale(1.2); background: var(--acc); color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 5px rgba(47,99,216,.25), 0 6px 14px -6px rgba(18,22,37,.5); }
.zone.on::before { background: rgba(47,99,216,.55); }
.zone.got { background: var(--ok); color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(34,195,142,.22), 0 6px 14px -6px rgba(18,22,37,.5); }
.zone.got::before { opacity: 0; animation: none; }
.zone.busy { opacity: .6; }
.shots { margin-top: 10px; display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; }
.shot { flex-shrink: 0; width: 104px; cursor: pointer; animation: slotIn .5s cubic-bezier(.2,.9,.3,1.2) both; }
.shot .ph { position: relative; height: 78px; border-radius: 16px; overflow: hidden; background: linear-gradient(150deg, #9fb6d9, #5d7fb8) center / cover no-repeat; box-shadow: 0 10px 18px -12px rgba(18,22,37,.5); }
.shot .ph i { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; display: grid; place-items: center; }
.shot .ph i svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.shot div:last-child { margin-top: 6px; font-size: 12px; font-weight: 600; line-height: 1.3; color: #4b5268; }
.dmg-bar { position: absolute; left: 12px; right: 12px; bottom: calc(var(--sab) + 22px); z-index: 22; }
.dmg-sheet { border-radius: 30px; padding: 18px 18px 16px; background: rgba(255,255,255,.82); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.95); box-shadow: 0 26px 50px -22px rgba(18,22,37,.45); animation: sheetUp .45s var(--ease) both; }
.dmg-sheet .hd { display: flex; align-items: center; gap: 12px; }
.dmg-sheet .ico { width: 44px; height: 44px; background: #eef3ff; color: var(--acc); }
.dmg-sheet.got .ico { background: #e8f7f0; color: var(--in); }
.dmg-sheet b { display: block; font-size: 17px; font-weight: 800; }
.dmg-sheet small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--mute); }
.dmg-sheet .x { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--line2); color: var(--mute); font-size: 18px; line-height: 1; }
.dmg-sheet .btn-glass { margin-top: 14px; height: 52px; font-size: 15.5px; }
.dmg-bar > .btn-glass { margin-top: 0; height: 58px; animation: rise .6s ease .3s both; }
.consent-box { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px; animation: rise .55s ease both; }
.consent-box b { display: block; font-size: 17px; font-weight: 800; }
.consent-box p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--mute); }
.consent-box pre { margin: 12px 0 0; max-height: 180px; overflow-y: auto; padding: 12px 14px; border-radius: 14px; background: #f6f8fb; border: 1px solid #e9edf4;
  font: 12.5px/1.45 "Manrope", system-ui, sans-serif; color: #4b5268; white-space: pre-wrap; }
.consent-box .btn-glass { height: 52px; font-size: 15.5px; }
.consent-box small { display: block; margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--mute3); }
.flash { position: absolute; inset: 0; z-index: 40; background: #fff; pointer-events: none; animation: shutter .45s ease-out both; }
.done-ov { position: absolute; inset: 0; z-index: 41; background: rgba(243,245,249,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: 0 30px; text-align: center; animation: fadeUp .3s ease both; }
.done-ov .ok { width: 88px; height: 88px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(34,195,142,.15), 0 20px 36px -14px rgba(34,195,142,.7); animation: popIn .5s var(--ease) both; }
.done-ov .ok svg { width: 42px; height: 42px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; animation: drawCheck .5s ease .3s both; }
.done-ov b { font-size: 22px; font-weight: 800; animation: fadeUp .4s ease .35s both; }
.done-ov p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mute); animation: fadeUp .4s ease .45s both; }
.done-ov .btn-w { margin-top: 10px; animation: fadeUp .4s ease .55s both; }

/* ── купить полис / калькулятор ── */
.prods { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.prod { position: relative; overflow: hidden; cursor: pointer; border-radius: 24px; padding: 18px 18px 16px; background: linear-gradient(160deg, #fff, #f3f5f9); border: 1px solid var(--line);
  box-shadow: 0 16px 30px -26px rgba(18,22,37,.4); }
.prod .pc-img { right: -4px; bottom: -4px; width: 112px; height: 104px; }
.prod .in { position: relative; max-width: 62%; }
.prod .t { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; }
.prod .t i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #2f63d8); }
.prod .s { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--mute); }
.prod .f { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--acc); min-height: 18px; }
.prod .f.wait { color: var(--mute3); font-weight: 600; }
.map { position: relative; margin: 4px -16px 0; height: 270px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); mask-composite: intersect; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: normal; }
.price { position: relative; overflow: hidden; margin-top: 14px; border-radius: 28px; padding: 20px 20px 18px; background: linear-gradient(160deg, #fff, #f3f5f9); border: 1px solid var(--line);
  box-shadow: 0 22px 40px -30px rgba(18,22,37,.4); }
.price .pc-img { right: -6px; bottom: -6px; width: 118px; height: 110px; animation: popIn .6s var(--ease) .2s both; }
.price .l { position: relative; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute2); }
.price .v { position: relative; margin-top: 6px; font-size: 36px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-height: 44px; transition: opacity .2s; }
.price .v.wait { opacity: .35; }
.price .s { position: relative; margin-top: 6px; font-size: 12.5px; color: var(--mute); max-width: 70%; }
.form { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.fl-t { font-size: 13px; font-weight: 700; color: var(--mute); margin-bottom: 8px; }
.fl-h { display: flex; justify-content: space-between; align-items: baseline; }
.fl-h b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.segs { display: grid; padding: 4px; border-radius: 16px; background: #eef1f6; gap: 3px; }
.segs button { padding: 9px 4px; border-radius: 12px; color: var(--mute); font-size: 13px; font-weight: 700; line-height: 1.2; transition: all .2s; }
.segs button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(18,22,37,.18); }
.form input[type=range] { width: 100%; margin: 10px 0 0; accent-color: var(--acc); }

/* ── тёмные экраны: выбор авто и КАСКО ── */
.screen.dark { color: #fff; padding: 0; }
#s-cars { background: #000; overflow: hidden; overscroll-behavior: none; }
.dk-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--dark-glass);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border: 1px solid rgba(255,255,255,.14); box-shadow: var(--dark-sh); flex-shrink: 0; }
.dk-btn svg.i { width: 18px; height: 18px; stroke-width: 2; }
.cs-top { position: absolute; left: 0; right: 0; top: calc(var(--top) + 16px); height: 52px; display: flex; align-items: center; justify-content: center; padding: 0 12px; animation: fadeUp .5s ease both; }
.cs-top .dk-btn { position: absolute; left: 18px; top: -44px; }
.dock { min-width: 0; height: 52px; display: flex; align-items: center; justify-content: center; gap: 4px; touch-action: pan-y; }
.cs-top.kept { animation: none; }
.dock button { flex-shrink: 0; width: 62px; height: 44px; display: grid; place-items: center; }
.dock span { display: block; width: 58px; height: 26px; background: center / contain no-repeat; opacity: .5; transform: scale(.65); transition: transform .3s var(--ease), opacity .3s; pointer-events: none; }
.dock button.n1 span { opacity: .75; transform: scale(.85); }
.dock button.on span { opacity: 1; transform: scale(1.25); }
.dock button[data-brand="mercedes"] span { height: 40px; }   /* круглый знак: иначе вписан в 26px и выглядит меньше остальных */
.cs-head { position: absolute; left: 0; right: 0; top: calc(var(--top) + 92px); text-align: center; padding: 0 14px; }
.cs-head .nm { font-size: 20px; font-weight: 600; letter-spacing: -.01em; animation: fadeUp .5s ease both; }
.cs-head .sp { margin-top: 7px; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: rgba(255,255,255,.65); animation: fadeUp .5s ease .1s both; }
.cs-head .sp b { font-weight: 700; color: var(--acc2); font-variant-numeric: tabular-nums; }
.cs-main { position: absolute; left: -278px; top: calc(var(--top) + 228px); width: 470px; height: 405px; animation: carInR .7s var(--ease) both; }
.cs-main span { position: absolute; inset: 0; background: center / contain no-repeat; filter: drop-shadow(0 30px 26px rgba(0,0,0,.7)); }
.cs-side { position: absolute; right: 14px; top: calc(var(--top) + 198px); width: 118px; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: fadeUp .6s var(--ease) .2s both; }
.cs-side .arr { width: 40px; height: 30px; display: grid; place-items: center; color: rgba(255,255,255,.6); }
.cs-side .arr svg.i { width: 16px; height: 16px; stroke-width: 2; }
.cs-list { touch-action: none; user-select: none; -webkit-user-select: none; width: 100%; border-radius: 24px; padding: 14px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: linear-gradient(160deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 100%); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.12); box-shadow: inset 1px 1.5px 1px -1px rgba(255,255,255,.45), 0 20px 36px -20px rgba(0,0,0,.85); }
.cs-list > div { font-size: 15px; font-weight: 600; color: var(--acc2); }
.cs-list button { width: 100%; padding: 8px 2px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: center; gap: 5px; color: #fff; animation: fadeUp .45s ease both; }
.cs-list button.mid { padding: 12px 2px; }
.cs-list button.sl-up { animation: csInUp .55s var(--ease) both; }
.cs-list button.sl-dn { animation: csInDn .55s var(--ease) both; }
.cs-list button.sl-out-up { animation: csOutUp .22s ease-in both; pointer-events: none; }
.cs-list button.sl-out-dn { animation: csOutDn .22s ease-in both; pointer-events: none; }
.cs-list button > span:first-child { display: block; width: 96px; height: 44px; background: center / contain no-repeat; filter: drop-shadow(0 8px 6px rgba(0,0,0,.6)); transform: scale(.8); opacity: .8; transition: transform .35s var(--ease), opacity .35s; }
.cs-list button.mid > span:first-child { transform: scale(1.2); opacity: 1; }
.cs-list button > span:last-child { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.75); }
.cs-go-w { position: absolute; left: 0; right: 0; bottom: calc(var(--sab) + 44px); display: flex; justify-content: center; animation: fadeUp .6s ease .3s both; }
.cs-go { width: 116px; height: 116px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #1c2233 0%, #0b0d14 70%);
  box-shadow: 0 0 0 2px var(--acc2), 0 0 0 8px rgba(111,155,255,.08), 0 0 28px 4px rgba(111,155,255,.35), inset 0 0 18px rgba(111,155,255,.25);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.cs-go small { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.cs-go b { font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.dk-note { position: absolute; left: 24px; right: 24px; top: 50%; text-align: center; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.7); }

#s-kasko { padding: calc(var(--top) - 6px) 0 40px; background: radial-gradient(420px 300px at 50% 46%, rgba(120,140,170,.22) 0%, rgba(120,140,170,0) 70%), linear-gradient(180deg, #14171e 0%, #0a0b0f 60%, #07080b 100%); }
.ks-curtain { position: absolute; left: 0; right: 0; top: 0; height: 520px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, rgba(255,255,255,0) 1px 9px, rgba(0,0,0,.18) 9px 22px, rgba(255,255,255,0) 22px 38px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 55%, transparent 100%); animation: curtain 1.2s ease both; }
.ks-top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; animation: rise .5s ease both; }
.ks-top .md { text-align: center; } .ks-top .md b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.ks-top .md span { margin-top: 3px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.ks-top .md span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4f86f0; }
.ks-nika { position: relative; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #eef3ff, #c9d9ff); border: 1.5px solid rgba(255,255,255,.4); flex-shrink: 0; }
.ks-nika img { position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%); width: 38px; height: auto; }
.ks-stage { position: relative; height: 290px; margin-top: 8px; }
.ks-car { position: absolute; left: -58px; top: 70px; width: 440px; animation: carInL 1s var(--ease) .15s both; }
.ks-car .shadow { position: absolute; left: 8%; right: 4%; bottom: -6px; height: 38px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.85), rgba(0,0,0,0)); filter: blur(4px); }
.ks-car .img { position: relative; display: block; width: 100%; aspect-ratio: 413 / 214; background: center / contain no-repeat; }
.ks-car .refl { position: relative; height: 60px; margin-top: -2px; overflow: hidden; opacity: .18; transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 80%); mask-image: linear-gradient(0deg, #000, transparent 80%); }
.ks-car .refl span { display: block; width: 100%; aspect-ratio: 413 / 214; position: absolute; bottom: 0; background: center / contain no-repeat; }
.ks-val { position: absolute; right: 12px; top: 0; z-index: 3; width: 92px; border-radius: 24px; padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 11px;
  background: var(--dark-glass); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border: 1px solid rgba(255,255,255,.14); box-shadow: var(--dark-sh);
  animation: rise .6s var(--ease) .35s both; }
.ks-val .t { font-size: 12px; font-weight: 700; color: #a9c4ff; text-align: center; line-height: 1.25; }
.ks-val button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.ks-val button svg.i { width: 14px; height: 14px; stroke-width: 2.4; }
.ks-val button[disabled] { opacity: .3; }
.ks-val .n { text-align: center; } .ks-val .n b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ks-val small { display: block; margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); line-height: 1.3; }
.ks-val .sum { width: 100%; border-top: 1px solid rgba(255,255,255,.1); padding-top: 8px; text-align: center; }
.ks-val .sum b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ks-panel { position: relative; margin: 4px 14px 0; border-radius: 30px; padding: 18px 16px 16px; background: var(--dark-glass); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,.14); box-shadow: var(--dark-sh); animation: rise .7s var(--ease) .45s both; }
.ks-panel .hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ks-panel .hd span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: rgba(255,255,255,.55); }
.ks-panel .hd em { font-style: normal; white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: rgba(79,134,240,.18); border: 1px solid rgba(120,165,255,.35); font-size: 11.5px; font-weight: 800; color: #a9c4ff; font-variant-numeric: tabular-nums; }
.ks-panel .pr { margin-top: 6px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-height: 42px; transition: opacity .2s; }
.ks-panel .pr.wait { opacity: .35; }
.ks-panel .mo { margin-top: 2px; font-size: 13px; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; min-height: 17px; }
.ks-panel .fl-t { margin: 14px 0 7px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.dsegs { display: grid; padding: 4px; border-radius: 16px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.06); gap: 3px; }
.dsegs button { padding: 9px 4px; border-radius: 12px; color: rgba(255,255,255,.55); font-size: 13px; font-weight: 700; transition: all .25s; }
.dsegs button.on { background: var(--glass-bg); color: #fff; box-shadow: inset 1.5px 2px 1px -1px rgba(255,255,255,.9), inset 0 0 0 1px rgba(255,255,255,.2), 0 8px 16px -8px rgba(47,99,216,.7); }
.covs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.covs button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px 9px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.55); font-size: 11.5px; font-weight: 700; transition: all .25s; }
.covs button.on { border-color: rgba(120,165,255,.45); background: rgba(79,134,240,.16); color: #fff; }
.covs i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: all .25s; }
.covs button.on i { background: var(--glass-bg); }
.covs i svg { width: 11px; height: 11px; fill: none; stroke: rgba(255,255,255,.7); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.covs button.on i svg { stroke: #fff; }
.ks-act { margin: 18px 14px 0; display: flex; align-items: center; gap: 10px; animation: rise .7s ease .6s both; }
.swipe { position: relative; flex: 1; height: 62px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.45); touch-action: none; user-select: none; -webkit-user-select: none; }
.swipe .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 62px; border-radius: 999px; background: linear-gradient(90deg, rgba(47,99,216,.15), rgba(79,134,240,.55)); }
.swipe .txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 52px; font-size: 15px; font-weight: 800; letter-spacing: .02em; color: #fff; pointer-events: none; }
.swipe .knob { position: absolute; left: 4px; top: 4px; width: 54px; height: 54px; border-radius: 50%; cursor: grab; display: grid; place-items: center; color: #fff;
  background: radial-gradient(120% 90% at 28% 0%, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 55%), linear-gradient(170deg, rgba(79,134,240,.95) 0%, rgba(47,99,216,.9) 55%, rgba(31,71,181,.95) 100%);
  box-shadow: inset 1.5px 2px 1px -1px rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.22), 0 10px 22px -8px rgba(47,99,216,.8); }
.swipe .knob svg.i { width: 20px; height: 20px; stroke-width: 2.4; }
.swipe.anim .fill, .swipe.anim .knob { transition: transform .35s var(--ease), width .35s var(--ease); }
.ks-mic { flex-shrink: 0; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--dark-glass);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid rgba(255,255,255,.14); }
.ks-note { margin: 14px 24px 0; text-align: center; font-size: 11.5px; line-height: 1.5; color: rgba(255,255,255,.4); }
.ks-note.bad { color: #ffb4a8; }

/* ── профиль ── */
.pf { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pf .big { width: 84px; height: 84px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 30px; font-weight: 800; color: var(--acc); box-shadow: 0 18px 30px -22px rgba(18,22,37,.45); }
.pf .n { margin-top: 12px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.pf .p { margin-top: 3px; font-size: 13.5px; color: var(--mute); }

/* ── Ника ── */
#s-nika { padding: 0 0 calc(var(--sab) + 130px); background: linear-gradient(180deg, #e2eafc 0%, #f3f5f9 340px); }
.nk-head { text-align: center; padding: calc(var(--top) - 22px) 22px 0; }
.nk-head .av { margin: 0 auto; width: 108px; height: 108px; box-shadow: 0 0 0 8px rgba(255,255,255,.55), 0 24px 40px -22px rgba(31,71,181,.55); }
.nk-head .nm { margin-top: 16px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.nk-head .sb { margin-top: 4px; font-size: 14px; color: var(--mute); }
.idhint { margin: 16px 16px 0; padding: 12px 14px; border-radius: 18px; background: #fff7ed; color: #b45309; font-size: 13px; line-height: 1.4; }
.idhint button { color: var(--acc); font-weight: 700; font-size: 13px; }
.nk-main { margin: 24px 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nk-card { position: relative; overflow: hidden; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 188px; padding: 18px; border-radius: 28px; }
.nk-card .t { display: block; font-size: 18px; font-weight: 800; line-height: 1.15; }
.nk-card .s { display: block; margin-top: 6px; font-size: 12px; line-height: 1.35; }
.nk-card .ic { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.nk-card svg.i { width: 22px; height: 22px; }
.nk-voice { background: linear-gradient(165deg, #252b42 0%, #121625 100%); color: #fff; box-shadow: 0 26px 40px -24px rgba(18,22,37,.85); }
.nk-voice::before { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(79,134,240,.6), rgba(79,134,240,0) 70%); }
.nk-voice > span { position: relative; }
.nk-voice .ic { background: var(--acc); box-shadow: 0 0 0 8px rgba(47,99,216,.25); }
.nk-voice .s { opacity: .65; }
.nk-chat { background: rgba(255,255,255,.72); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); border: 1px solid rgba(255,255,255,.9);
  color: var(--ink); box-shadow: 0 22px 40px -26px rgba(31,71,181,.45); }
.nk-chat .ic { background: #fff; border: 1px solid var(--line); color: var(--acc); }
.nk-chat .s { color: var(--mute); }
.nk-sec { margin: 24px 16px 0; font-size: 15px; font-weight: 700; }
.skills { margin: 10px 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.skills button { text-align: left; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; line-height: 1.3;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.skills svg.i { width: 14px; height: 14px; stroke: var(--acc); stroke-width: 2.2; flex-shrink: 0; }

/* ── чат ── */
#s-chat { padding: 0; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, #e4ebfb 0%, #f3f5f9 260px); }
.ch-head { position: relative; z-index: 5; padding: calc(var(--top) - 8px) 14px 12px; display: flex; align-items: center; gap: 12px;
  background: rgba(243,245,249,.6); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); border-bottom: 1px solid rgba(229,232,239,.8); }
.ch-head .ch-av { width: 40px; height: 40px; }
.ch-head .who { flex: 1; min-width: 0; }
.ch-head .who b { display: block; font-size: 16px; }
.ch-head .who small { font-size: 12px; font-weight: 600; color: #1f9d6e; }
.ch-head .who small.busy { color: var(--acc); }
.ch-head .call { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.ch-head .call svg.i { width: 17px; height: 17px; stroke-width: 2; }
.ch-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.ch-day { align-self: center; max-width: 90%; padding: 7px 12px; border-radius: 14px; background: rgba(255,255,255,.72); font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--mute); margin-bottom: 6px; text-align: center; }
.msg { display: flex; animation: fadeUp .35s ease both; }
.msg.me { justify-content: flex-end; }
.msg .bb { max-width: 80%; padding: 10px 14px; font-size: 14.5px; line-height: 1.42; white-space: pre-wrap; word-wrap: break-word; }
.msg.ai .bb { border-radius: 6px 20px 20px 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px -12px rgba(18,22,37,.3); }
.msg.me .bb { border-radius: 20px 6px 20px 20px; background: var(--glass-bg); color: #fff; border: 1px solid rgba(255,255,255,.35); box-shadow: inset 1px 1.5px 1px -1px rgba(255,255,255,.8), 0 8px 18px -12px rgba(31,71,181,.7); }
.msg .tm { margin-top: 4px; text-align: right; font-size: 10.5px; opacity: .5; }
.dots { display: flex; gap: 5px; padding: 13px 16px; border-radius: 6px 20px 20px 20px; background: #fff; border: 1px solid var(--line); }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: #a9aebd; animation: wave 1s ease-in-out infinite; }
.dots span:nth-child(2) { animation-delay: .15s; } .dots span:nth-child(3) { animation-delay: .3s; }
.chips { padding: 8px 12px 0; display: flex; gap: 8px; overflow-x: auto; }
.chips button { flex-shrink: 0; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.ch-in { padding: 10px 12px calc(var(--sab) + 18px); display: flex; align-items: center; gap: 8px; }
.ch-in input { flex: 1; min-width: 0; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 0 18px; font-size: 16px; font-weight: 500; color: var(--ink); outline: none; box-shadow: 0 10px 24px -18px rgba(18,22,37,.4); }
.ch-in button { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #c9cdd8; color: #fff; transition: background .2s; }
.ch-in button.go { background: var(--acc); }
.ch-in svg.i { width: 19px; height: 19px; stroke-width: 2; }

/* ── звонок ── */
#s-call { padding: calc(var(--top) + 8px) 20px calc(var(--sab) + 34px); overflow: hidden; display: flex; flex-direction: column; align-items: center; color: #fff; z-index: 40;
  background: radial-gradient(520px 420px at 50% 32%, rgba(90,143,242,.55) 0%, rgba(90,143,242,0) 70%), linear-gradient(180deg, #2a4fb0 0%, #162c6e 55%, #0b1433 100%); }
.cl-nm { font-size: 24px; font-weight: 800; }
.cl-sub { margin-top: 4px; font-size: 13px; opacity: .65; }
.cl-pill { margin-top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16); font-size: 12px; font-weight: 600; }
.cl-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.cl-time { margin-top: 8px; font-size: 15px; font-weight: 600; opacity: .8; font-variant-numeric: tabular-nums; min-height: 20px; }
.cl-av { position: relative; margin-top: clamp(14px, 3vh, 30px); width: clamp(110px, 17vh, 148px); height: clamp(110px, 17vh, 148px); flex-shrink: 0; }
.cl-av .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(190,210,255,.7); opacity: 0; }
.cl-av.talk .ring { animation: ringPulse 1.8s ease-out infinite; }
.cl-av.talk .ring:nth-child(2) { animation-delay: .6s; } .cl-av.talk .ring:nth-child(3) { animation-delay: 1.2s; }
.cl-av .av { position: absolute; inset: 0; background: linear-gradient(160deg, #eef3ff, #c9d9ff); border: 3px solid rgba(255,255,255,.55); box-shadow: 0 26px 50px -20px rgba(0,0,0,.6); }
.cl-wave { margin-top: 20px; height: 24px; display: flex; gap: 4px; align-items: center; opacity: .25; transition: opacity .3s; }
.cl-wave span { width: 3.5px; height: 24px; border-radius: 2px; background: rgba(255,255,255,.85); transform: scaleY(.25); }
.cl-wave.on { opacity: 1; } .cl-wave.on span { animation: wave .9s ease-in-out infinite; }
.cl-wave.bot span { background: #cfe0ff; }
.cl-st { margin-top: 16px; font-size: 17px; font-weight: 600; text-align: center; min-height: 24px; }
.cl-hint { margin-top: 8px; font-size: 12.5px; opacity: .6; text-align: center; max-width: 280px; line-height: 1.4; }
.cl-sp { flex: 1; }
.cl-btns { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cl-btns button { color: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.cl-btns em { font-style: normal; }
.cl-btns span { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background .2s; }
.cl-btns svg.i { width: 23px; height: 23px; }
.cl-btns .on span { background: #fff; color: var(--ink); border-color: #fff; }
.cl-btns .end span { background: var(--red); border-color: var(--red); box-shadow: 0 14px 26px -12px rgba(255,77,94,.8); }

/* ── нижние листы: клавиатура кода и язык ── */
#langsheet, #keypad { position: absolute; inset: 0; z-index: 46; background: rgba(10,16,43,.3); display: flex; flex-direction: column; justify-content: flex-end; animation: fadeUp .25s ease both; }
#keypad { z-index: 45; }
.kp-sheet { background: rgba(255,255,255,.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); color: var(--ink);
  border-radius: 30px 30px 0 0; padding: 14px 16px calc(var(--sab) + 26px); animation: sheetUp .35s var(--ease) both; }
.kp-sheet .grab { width: 38px; height: 4px; border-radius: 2px; background: #d9dce4; margin: 0 auto 14px; }
.kp-sheet .t { text-align: center; font-size: 18px; font-weight: 800; }
.kp-sheet .s { margin-top: 4px; text-align: center; font-size: 13px; color: var(--mute); line-height: 1.4; }
.lg-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.lg-opt { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 18px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff;
  font-size: 16px; font-weight: 700; color: var(--ink); text-align: left; }
.lg-opt.on { border-color: var(--acc); background: #f2f6ff; }
.lg-opt svg { width: 20px; height: 20px; fill: none; stroke: var(--acc); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.kp-dots { margin-top: 14px; display: flex; justify-content: center; gap: 8px; }
.kp-dots span { width: 40px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; transition: border-color .2s; }
.kp-dots span.f { border-color: var(--acc); }
.kp-keys { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kp-keys button { height: 50px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 20px; font-weight: 700; }
.kp-keys button.sm { font-size: 13px; color: var(--mute); }
.kp-close { margin-top: 12px; width: 100%; height: 46px; border-radius: 999px; background: var(--bg); font-weight: 700; font-size: 14px; }

/* экран звонка web-voice.js: в DOM (SIP, микрофон, клавиши живут там), но невидим — виден свой экран по макету */
html body #vw-call { opacity: 0 !important; pointer-events: none !important; }

/* ── таб-бар: стеклянная капсула ── */
#tabs { position: absolute; left: 16px; right: 16px; bottom: calc(var(--sab) + 22px); z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: center; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.62); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.85); box-shadow: 0 18px 36px -18px rgba(18,22,37,.35); animation: riseBar .7s var(--ease) .2s both; }
#tabs > div { display: grid; place-items: center; }
#tabs .tb { width: 100%; height: 48px; border-radius: 999px; display: grid; place-items: center; color: #5c6276; transition: background .25s, color .25s; }
#tabs .tb.on { background: var(--glass-bg); color: #fff; box-shadow: inset 1.5px 2px 1px -1px rgba(255,255,255,.95), inset -1.5px -2px 1px -1px rgba(255,255,255,.55), inset 0 0 0 1px rgba(255,255,255,.22), 0 10px 20px -10px rgba(31,71,181,.6); }
#tabs .tn { position: relative; width: 54px; height: 54px; margin: -4px 0; border-radius: 50%; background: linear-gradient(160deg, #eef3ff, #c9d9ff); }
#tabs .tn.on { box-shadow: 0 0 0 2px #fff, 0 8px 16px -8px rgba(31,71,181,.6); }
#tabs .tn .av { position: absolute; inset: 0; background: transparent; }
#tabs .tn .dot { position: absolute; right: 1px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2.5px solid #fff; }
body[data-screen="chat"] #tabs, body[data-screen="call"] #tabs, body[data-screen="cars"] #tabs, body[data-screen="kasko"] #tabs,
body[data-screen="damage"] #tabs, body[data-screen="doc"] #tabs { display: none; }

/* ── тост ── */
#toast { position: absolute; left: 16px; right: 16px; bottom: calc(var(--sab) + 100px); z-index: 55; display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 20px; background: rgba(18,22,37,.84); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: #fff;
  font-size: 14px; font-weight: 600; box-shadow: 0 18px 36px -16px rgba(18,22,37,.6); animation: fadeUp .35s ease both; }
#toast .tk { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; }
#toast.stop .tk { background: #5f6b6a; }
#toast.info .tk { background: #8a90a3; }
#toast .tk svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
body[data-screen="call"] #toast { bottom: calc(var(--sab) + 130px); }
body[data-screen="cars"] #toast, body[data-screen="kasko"] #toast, body[data-screen="damage"] #toast, body[data-screen="chat"] #toast { bottom: calc(var(--sab) + 160px); }

/* ── надстройка личности nika-identity.js: только карточка шагов, в «Профиле», как нижний лист ── */
html body #nika-id { left: 50%; right: auto; transform: translateX(-50%); width: min(390px, 100vw); padding: 0 16px; bottom: calc(var(--sab) + 96px); font-family: "Manrope", system-ui, sans-serif; align-items: stretch; }
html body #nika-id .ni-pill { display: none !important; }
body.sheet-open #nika-id { display: none !important; }
body:not([data-screen="profile"]) #nika-id .ni-card { display: none; }
html body #nika-id .ni-card, html body #nika-id .ni-msg { width: auto; max-width: none; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 18px 36px -16px rgba(18,22,37,.35); }
html body #nika-id .ni-card h4 { font-size: 16px; }
html body #nika-id .ni-card input { border-radius: 14px; height: 46px; }
html body #nika-id .ni-card input:focus { border-color: var(--acc); }
html body #nika-id .ni-btn { border-radius: 999px; height: 46px; background: var(--acc); }
html body #nika-id .ni-btn.ghost { background: var(--bg); color: var(--ink); }
html body #nika-id .ni-msg { border-left: 4px solid var(--acc); }
html body #nika-id .ni-msg b { color: var(--acc); }
/* Пузырь боевого виджета, если его включат флагом: в кадре его быть не должно (чат — свой экран). */
body > [id^="jess"], body > [class^="jess"], body > [id^="jay-widget"] { display: none !important; }

/* ── экран «Документы»: страница /d/<токен> внутри приложения (стили самой страницы — /d/css/doc.css с API) ── */
.doc-embed { margin-top: 12px; }
.doc-embed .consent-lang { font-size: 12px; color: var(--mute); margin: 8px 0 4px; }
.doc-embed .wrap { padding: 0 2px; max-width: none; }
.doc-embed h1 { font-size: 14px; font-weight: 600; color: var(--mute); margin: 6px 0 10px; }
.doc-embed .card { border-radius: 22px; border: 1px solid var(--line); box-shadow: none; }
.doc-embed .btn { border-radius: 999px; }
.doc-embed .agree { position: static; }
.doc-embed .btn:not(.sec):not(.ghost) { background: var(--glass-bg); box-shadow: var(--glass-sh); color: #fff; }

/* 28.10: установленное приложение на Android — меню прилипает к системным кнопкам навигации.
   --navpad считает app.js: сколько кнопочной панели (48px) лежит ПОВЕРХ страницы. Страница то уходит под кнопки
   (тогда 48), то кончается над ними (тогда 0) — после обновления страницы это меняется, поэтому меряем, а не угадываем.
   Рама прибита к экрану (fixed): документ не прокручивается вслед за экраном, и меню не уезжает вверх. */
html.and-app { --sab: max(env(safe-area-inset-bottom, 0px), var(--navpad, 48px)); }
html.and-app, html.and-app body { overflow: hidden; height: 100%; }
html.and-app #frame { position: fixed; inset: 0; width: auto; height: auto; }
html.and-app .screen { overscroll-behavior: contain; }
html.and-app #tabs { bottom: calc(var(--sab) + 12px); }

/* ── меню свёрнуто под аватарку Ники: тап по Нике раскрывает его влево, выбор пункта сворачивает обратно ── */
#tabs { transition: left .38s var(--ease), grid-template-columns .38s var(--ease), background .3s, border-color .3s, box-shadow .3s; }
#tabs > div:not(:last-child) { min-width: 0; transition: opacity .25s; }
/* обрезаем пункты только в свёрнутом виде: в раскрытом обрезка делала тень синей кнопки прямоугольной */
#tabs.fold > div:not(:last-child) { overflow: hidden; }
#tabs.fold { left: calc(100% - 16px - 68px); grid-template-columns: 0fr 0fr 0fr 0fr 1fr; }
#tabs.fold > div:not(:last-child) { opacity: 0; pointer-events: none; }
/* свёрнутое меню — одна аватарка, без белой капсулы вокруг */
#tabs.fold { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
