/* Примчу — дизайн */
:root {
    --driver: #16a34a;
    --driver-soft: #f0fdf4;
    --pass: #2563eb;
    --pass-soft: #eff6ff;
    --bg: #f6f7f9;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e6eaf0;
    --fill: #f1f4f8;
    --radius: 20px;
    --shadow-lg: 0 -8px 40px rgba(15, 23, 42, .16);
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, .08);
    font-size: 16px;
}

* { box-sizing: border-box; }
/* страница на телефоне не скроллится вообще: body прижат к вьюпорту,
   тянуть страницу и обнажать белое дно невозможно; скроллятся только
   внутренние области (модалки, лист, обсуждение) */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
/* dvh — динамическая высота вьюпорта: на телефоне страница укорачивается
   до видимой области, и кнопки дока не прячутся под нижней панелью браузера */
@supports (height: 100dvh) {
    html, body { height: 100dvh; }
}
body {
    margin: 0;
    position: fixed;
    inset: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
input, textarea { -webkit-user-select: text; user-select: text; }
button { font: inherit; }

/* ---------- шапка ---------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: var(--card);
    z-index: 900;
    box-shadow: 0 1px 0 var(--line);
}
.brand {
    display: flex; align-items: center; gap: 8px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.4px;
}
.brand-mark { flex: none; display: block; }
.brand-name span { color: var(--driver); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.counter { color: var(--muted); font-size: 13px; white-space: nowrap; }
@media (max-width: 480px) {
    .topbar { padding: 10px 10px; gap: 6px; }
    .topbar-right { gap: 8px; }
    .counter { display: none; }
    .brand { font-size: 17px; }
    .brand-mark { width: 24px; height: 24px; }
    /* фильтры и «О нас» — только иконки */
    .seg-btn { padding: 7px 11px; gap: 0; }
    .seg-btn .seg-txt, .seg-btn .dot { display: none; }
    .seg-btn .seg-ico, #btnAbout .seg-ico { display: block; }
    #btnAbout { padding: 7px 10px; }
    #btnAbout .seg-txt { display: none; }
}

.seg {
    display: flex;
    background: var(--fill);
    border-radius: 999px;
    padding: 3px;
}
.seg-btn {
    display: inline-flex; align-items: center; gap: 6px;
    border: none; background: transparent; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--muted);
    padding: 7px 12px; border-radius: 999px;
    transition: all .15s ease;
}
.seg-btn.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.seg-ico { display: none; }
.seg-btn.active .seg-ico-driver { color: var(--driver); }
.seg-btn.active .seg-ico-pass { color: var(--pass); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-driver { background: var(--driver); }
.dot-pass   { background: var(--pass); }

/* ---------- карта ---------- */
#map { flex: 1; width: 100%; background: #e8ebef; }
.leaflet-control-attribution {
    font-size: 10px !important;
    background: rgba(255,255,255,.65) !important;
    color: #94a3b8 !important;
}
.leaflet-control-attribution a { color: #64748b !important; }

/* маркеры — чистые пины без эмодзи */
.pin-wrap { background: none; border: none; }
.pin {
    width: 32px; height: 32px;
    border-radius: 50% 50% 50% 2px;
    transform: rotate(-45deg);
    background: var(--driver);
    border: 2.5px solid #fff;
    box-shadow: 0 3px 8px rgba(15,23,42,.3);
    position: relative;
}
.pin::after {
    content: '';
    position: absolute; inset: 0; margin: auto;
    width: 10px; height: 10px;
    background: #fff;
    border-radius: 50%;
}
.pin-pass { background: var(--pass); }
.pin-pick { background: #f97316; }
.pin-pulse { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse {
    0%   { box-shadow: 0 3px 8px rgba(15,23,42,.3), 0 0 0 0 rgba(249,115,22,.45); }
    100% { box-shadow: 0 3px 8px rgba(15,23,42,.3), 0 0 0 18px rgba(249,115,22,0); }
}
/* онлайн-точки пульсируют своим цветом */
.pin-on { animation: pulseOn 1.8s ease-out infinite; }
@keyframes pulseOn {
    0%   { box-shadow: 0 3px 8px rgba(15,23,42,.3), 0 0 0 0 rgba(22,163,74,.5); }
    100% { box-shadow: 0 3px 8px rgba(15,23,42,.3), 0 0 0 16px rgba(22,163,74,0); }
}
.pin-pass.pin-on { animation-name: pulseOnB; }
@keyframes pulseOnB {
    0%   { box-shadow: 0 3px 8px rgba(15,23,42,.3), 0 0 0 0 rgba(37,99,235,.5); }
    100% { box-shadow: 0 3px 8px rgba(15,23,42,.3), 0 0 0 16px rgba(37,99,235,0); }
}

/* режим ручной отметки */
.pick-banner {
    position: absolute; top: 74px; left: 50%; transform: translateX(-50%);
    z-index: 950;
    display: flex; align-items: center; gap: 14px;
    max-width: calc(100% - 24px);
    background: var(--text); color: #fff;
    padding: 10px 10px 10px 18px;
    border-radius: 999px;
    font-size: 14px; font-weight: 600;
    box-shadow: var(--shadow-lg);
}
.pick-banner[hidden] { display: none; }
.pick-banner button {
    border: none; cursor: pointer;
    background: rgba(255,255,255,.16); color: #fff;
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
body.picking #map { cursor: crosshair; }

/* ---------- док внизу ---------- */
.dock {
    position: absolute; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom));
    display: flex; justify-content: center; gap: 10px;
    z-index: 800; pointer-events: none;
    padding: 0 12px;
}
/* html/body уже 100dvh — body заканчивается над нижней панелью браузера,
   а док позиционируется от body, поэтому кнопки всегда над панелью */
.dock-btn {
    pointer-events: auto;
    flex: 1; max-width: 210px;
    font-weight: 700; font-size: 16px;
    color: #fff; border: none; cursor: pointer;
    padding: 16px 10px; border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15,23,42,.22);
    transition: transform .12s ease, box-shadow .12s ease;
}
.dock-btn::before { content: '+'; font-weight: 800; margin-right: 6px; }
.dock-btn:active { transform: scale(.97); }
.dock-driver { background: var(--driver); }
.dock-pass   { background: var(--pass); }

/* ---------- шторка-мастер ---------- */
.modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(15, 23, 42, .45);
    display: flex; align-items: flex-end; justify-content: center;
    backdrop-filter: blur(2px);
}
.modal[hidden] { display: none; }
/* «Мои», «Уведомления», «О нас» — раскрываются сверху, перекрывая кнопки на карте */
.modal-top { align-items: flex-start; padding: 10px 12px; }
.modal-top .about-card { max-height: calc(100dvh - 20px); }
.sheet {
    background: var(--card); width: 100%; max-width: 480px;
    max-height: 92dvh; overflow: auto;
    border-radius: 24px 24px 0 0;
    padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
    animation: slideUp .25s cubic-bezier(.3,.9,.4,1);
}
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } }
@media (min-width: 640px) {
    .modal:not(.modal-top) { align-items: center; }
    .sheet { border-radius: 24px; padding-bottom: 20px; }
}
.sheet-grabber {
    width: 42px; height: 5px; border-radius: 3px;
    background: #d7dde5; margin: 6px auto 2px;
}
@media (min-width: 640px) { .sheet-grabber { display: none; } }

.sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 8px 0 4px;
}
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex: none;
    border: none; border-radius: 50%;
    background: var(--fill); color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: #e6ebf1; color: var(--text); }
@media (max-width: 640px) {
    .icon-btn {
        width: 46px; height: 46px; background: #fff; color: var(--text);
        box-shadow: 0 2px 10px rgba(15,23,42,.18);
    }
    .icon-btn svg { width: 22px; height: 22px; }
    .about-close { top: 12px; right: 12px; }
}

/* кнопки «Мои»/колокол: на телефоне — на карте слева от «+/-» */
.leaflet-top.leaflet-right { display: flex; flex-direction: row-reverse; align-items: flex-start; }
/* открытый попап важнее кнопок: опускаем контролы под слой карты (z 400),
   чтобы «Мои»/колокол не наезжали на крестик закрытия карточки */
.pop-open .leaflet-top, .pop-open .leaflet-bottom { z-index: 300; }
.map-ctl { display: flex; flex-direction: column; }
.map-ctl[hidden] { display: none; }
.map-ctl .about-btn {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    width: 100%; min-width: 44px; height: 40px; padding: 0 10px;
    border: none; border-bottom: 1px solid var(--line); border-radius: 0;
    background: transparent; color: var(--text);
    font-size: 13.5px; font-weight: 800; position: relative; cursor: pointer;
}
.map-ctl .about-btn:last-child,
.map-ctl .about-btn:has(+ .about-btn[hidden]) { border-bottom: none; }
.map-ctl .about-btn[hidden] { display: none; }
.map-ctl .about-btn:hover { color: var(--text); background: #f8fafc; }
.map-ctl .bell-badge { top: 4px; right: 4px; }

.role-pills {
    display: flex; background: var(--fill);
    border-radius: 999px; padding: 3px;
}
.role-pill {
    border: none; background: transparent; cursor: pointer;
    font-weight: 700; font-size: 14px; color: var(--muted);
    padding: 8px 18px; border-radius: 999px;
    transition: all .15s ease;
}
.role-pill.active[data-role="driver"]    { background: var(--driver); color: #fff; }
.role-pill.active[data-role="passenger"] { background: var(--pass);   color: #fff; }

.dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #d7dde5; transition: all .2s; }
.dots i.on { background: var(--text); width: 18px; border-radius: 3px; }

.step h2 { margin: 14px 0 2px; font-size: 22px; letter-spacing: -.3px; }
.step .sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

/* шаг 1 */
.geo-card {
    width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
    border: 1.5px solid var(--line); background: #fff; cursor: pointer;
    border-radius: 18px; padding: 18px; margin-bottom: 12px;
    color: var(--pass);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.geo-card:hover { border-color: var(--pass); box-shadow: 0 4px 18px rgba(37,99,235,.12); }
.geo-card b { display: block; color: var(--text); font-size: 16px; }
.geo-card small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.geo-card.busy { opacity: .65; pointer-events: none; }

.ghost-btn {
    width: 100%; border: none; background: transparent; cursor: pointer;
    color: var(--muted); font-size: 14px; font-weight: 600;
    padding: 12px; border-radius: 12px;
}
.ghost-btn:hover { background: var(--fill); color: var(--text); }

.loc-status {
    margin-top: 12px; padding: 12px 14px; border-radius: 12px;
    background: var(--driver-soft); color: var(--driver);
    font-size: 14px; font-weight: 600;
}
.loc-status.err { background: #fef2f2; color: #b91c1c; }

/* чип текущей точки на шаге 2 — перевыбор без возврата назад */
.point-chip {
    width: 100%; display: flex; align-items: center; gap: 8px;
    border: 1.5px dashed var(--line); background: var(--fill); cursor: pointer;
    border-radius: 12px; padding: 11px 14px; margin-bottom: 14px;
    font-size: 13.5px; color: var(--muted);
}
.point-chip:hover { border-color: var(--driver); }
.point-chip svg { color: var(--driver); flex: none; }
.point-chip b { margin-left: auto; color: var(--pass); font-weight: 700; }

/* выбор срока жизни объявления (шаг 3) */
.ttl-block { display: flex; align-items: center; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.ttl-label { font-size: 13.5px; color: var(--muted); flex: none; }
.ttl-pills { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.ttl-pills button {
    flex: 1 1 auto; min-width: 44px; padding: 8px 10px; border: 1.5px solid var(--line); background: #fff;
    border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.ttl-pills button.on { border-color: var(--driver); background: #f0fdf4; color: var(--driver); }

/* кнопка и список «Мои объявления» */
.mine-badge {
    display: inline-block; min-width: 18px; margin-left: 5px; padding: 0 5px;
    border-radius: 9px; background: var(--driver); color: #fff; font-size: 11.5px; font-weight: 700;
    line-height: 18px; text-align: center;
}

/* колокол уведомлений */
/* колокол уведомлений */
.bell-badge {
    position: absolute; top: -3px; right: -3px;
    min-width: 17px; padding: 0 4px; border-radius: 9px;
    background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 800;
    line-height: 17px; text-align: center;
}
.notif-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.notif-item {
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
    cursor: pointer; transition: border-color .15s ease;
}
.notif-item:hover { border-color: #cbd5e1; }
.notif-item.unread { border-color: var(--pass); background: #eff6ff; }
.n-head { font-size: 13px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.n-time { font-size: 11px; font-weight: 400; color: var(--muted); }
.n-text { font-size: 13.5px; margin-top: 3px; word-break: break-word; }
.notif-readall { width: 100%; margin-top: 4px; }
.mine-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.mine-item {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap;
}
.mine-item > .dot { margin-top: 6px; }
.mine-info { flex: 1; min-width: 0; }
.mine-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mine-btns { display: flex; gap: 6px; width: 100%; justify-content: flex-end; }
.mine-empty { color: var(--muted); font-size: 14px; margin: 12px 0; }

/* шаг 2 */
.fld { margin-bottom: 12px; }
.fld input, .fld textarea {
    width: 100%; font: inherit; font-size: 16px;
    padding: 15px 16px;
    border: 1.5px solid transparent;
    border-radius: 14px;
    background: var(--fill);
    color: var(--text);
    transition: border-color .15s ease, background .15s ease;
}
.fld textarea { resize: vertical; min-height: 96px; }
.fld input::placeholder, .fld textarea::placeholder { color: #94a3b8; }
.fld input:focus, .fld textarea:focus {
    outline: none; background: #fff; border-color: var(--pass);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 430px) { .row2 { grid-template-columns: 1fr; } }

.photo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.photo-btn {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    border: 1.5px dashed #cbd5e1; border-radius: 14px;
    padding: 12px 16px; color: var(--muted); font-size: 14px; font-weight: 600;
    transition: all .15s ease;
}
.photo-btn:hover { border-color: var(--pass); color: var(--pass); }
.photo-preview { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }

/* шаг 3 */
.submit-btn {
    width: 100%; border: none; cursor: pointer;
    background: var(--driver); color: #fff;
    font-weight: 700; font-size: 17px;
    padding: 17px; border-radius: 16px; margin-top: 6px;
    box-shadow: 0 6px 18px rgba(22,163,74,.3);
    transition: transform .12s ease;
}
.submit-btn:active { transform: scale(.98); }
.submit-btn:disabled { opacity: .6; cursor: wait; box-shadow: none; }
.fineprint { color: var(--muted); font-size: 12px; text-align: center; margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ---------- попап карточки ---------- */
/* ---------- карточка точки ----------
   Leaflet сам даёт попапу maxHeight и внутренний скролл (см. app.js);
   здесь — аккуратная рамка и компактная типографика */
.leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 10px 34px rgba(15, 23, 42, .22);
}
.leaflet-popup-content { margin: 12px 14px; overflow-y: auto; }
.leaflet-popup-scrolled { border-top: none; border-bottom: none; }
@media (max-width: 480px) {
    .leaflet-popup-content-wrapper { border-radius: 14px; }
    .leaflet-popup-content { margin: 10px 12px; }
}
.pop { min-width: 190px; max-width: 250px; font-size: 13.5px; line-height: 1.4; }
.pop-photo { width: 100%; max-height: 110px; object-fit: cover; border-radius: 12px; margin-bottom: 6px; display: block; }
.pop-role {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px;
}
.pop-role-driver    { color: var(--driver); background: var(--driver-soft); }
.pop-role-passenger { color: var(--pass);   background: var(--pass-soft); }
.pop-online {
    display: inline-flex; align-items: center; gap: 5px;
    margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--driver);
}
.pop-online::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--driver); animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }
.pop-name { font-weight: 800; font-size: 15.5px; margin: 4px 0 2px; letter-spacing: -.2px; }
.pop-car {
    font-weight: 700; font-size: 13px; letter-spacing: .2px;
    background: var(--fill); display: inline-block; padding: 3px 9px; border-radius: 8px; margin-bottom: 4px;
}
.pop-addr {
    color: var(--muted); font-size: 13px; margin: 1px 0 4px;
    display: flex; align-items: baseline; gap: 6px;
}
.pop-addr::before { content: '●'; font-size: 7px; color: #f97316; flex: none; }
.pop-comment { margin: 4px 0 6px; white-space: pre-wrap; word-break: break-word; }
.pop-phone {
    display: inline-block; margin-bottom: 6px;
    color: #fff; background: var(--pass); text-decoration: none;
    font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px;
}
.pop-meta { color: var(--muted); font-size: 12px; }

/* обсуждение в попапе */
.pop-cmt-btn {
    display: block; width: 100%; margin-top: 8px; cursor: pointer;
    border: 1.5px dashed #cbd5e1; background: #fff; color: var(--muted);
    font-size: 13px; font-weight: 700; border-radius: 10px; padding: 8px 0;
    transition: all .15s ease;
}
.pop-cmt-btn:hover { border-color: var(--pass); color: var(--pass); }
.pop-thread { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.cmt-list { max-height: 170px; overflow: auto; }
.cmt { padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.cmt b { font-size: 13px; }
.cmt div { font-size: 13px; word-break: break-word; }
.cmt small { color: var(--muted); font-size: 11px; }
.cmt-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.cmt-form input, .cmt-form textarea {
    font: inherit; font-size: 13px; width: 100%;
    border: 1.5px solid var(--line); border-radius: 10px;
    background: var(--fill); padding: 9px 11px; color: var(--text);
}
.cmt-form input:focus, .cmt-form textarea:focus {
    outline: none; background: #fff; border-color: var(--pass);
}
.cmt-form textarea { resize: vertical; min-height: 44px; }
.cmt-send {
    border: none; cursor: pointer; align-self: flex-end;
    background: var(--pass); color: #fff;
    font-size: 13px; font-weight: 700; border-radius: 999px; padding: 8px 18px;
}
.cmt-send:disabled { opacity: .6; }

/* переключатель онлайн */
.sw {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    border: 1.5px solid var(--line); border-radius: 14px;
    padding: 13px 15px; margin: 4px 0 12px;
    font-size: 14px; color: var(--muted);
}
.sw b { color: var(--text); }
.sw input {
    appearance: none; -webkit-appearance: none; flex: none;
    width: 44px; height: 26px; border-radius: 999px; border: none; cursor: pointer;
    background: #d5dbe3; position: relative; transition: background .2s ease; margin: 0;
}
.sw input::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(15,23,42,.3); transition: left .2s ease;
}
.sw input:checked { background: var(--driver); }
.sw input:checked::after { left: 21px; }
.sw-mini { padding: 9px 12px; margin: 0 0 8px; font-size: 13px; width: 100%; }
.sw-mini input { width: 38px; height: 22px; }
.sw-mini input::after { width: 16px; height: 16px; }
.sw-mini input:checked::after { left: 19px; }

.pop-own { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pop-btn {
    flex: 1; font-size: 13px; font-weight: 700; cursor: pointer;
    border: none; background: var(--fill); color: var(--text);
    border-radius: 10px; padding: 9px 0;
}
.pop-btn-del { color: #b91c1c; background: #fef2f2; }

/* ---------- тост ---------- */
.toast {
    position: fixed; left: 50%; transform: translateX(-50%);
    top: 74px; z-index: 1100;
    background: var(--text); color: #fff;
    padding: 12px 20px; border-radius: 999px;
    font-size: 14px; font-weight: 600;
    box-shadow: var(--shadow-lg);
    max-width: calc(100% - 24px);
    animation: slideDown .2s ease;
}
@keyframes slideDown { from { transform: translate(-50%, -8px); opacity: 0; } }
.toast-err { background: #b91c1c; }

/* ---------- кнопка и окно «О нас» ---------- */
.about-btn {
    border: 1.5px solid #cbd5e1; background: #fff; color: var(--text);
    font-size: 13px; font-weight: 700; cursor: pointer;
    border-radius: 999px; padding: 7px 13px; white-space: nowrap;
    box-shadow: 0 1px 4px rgba(15,23,42,.10);
    transition: all .15s ease;
}
.bell-btn { display: inline-flex; align-items: center; padding: 6px 9px; position: relative; }
.bell-btn svg { width: 20px; height: 20px; }
.about-btn:hover { color: var(--text); border-color: #cbd5e1; }
@media (max-width: 480px) {
    .about-btn { padding: 6px 10px; font-size: 12px; }
}

.about-card {
    position: relative;
    background: var(--card); width: calc(100% - 24px); max-width: 420px;
    max-height: 86dvh; overflow: auto;
    border-radius: 24px; padding: 24px 24px 16px;
    box-shadow: 0 12px 60px rgba(15,23,42,.25);
    animation: popIn .2s cubic-bezier(.3,.9,.4,1);
}
@keyframes popIn { from { transform: scale(.96); opacity: 0; } }
.about-close { position: absolute; top: 14px; right: 14px; }
.about-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 24px; letter-spacing: -.4px; }
.about-name span { color: var(--driver); }
.about-brand .ver {
    font-size: 12px; font-weight: 700; color: var(--muted);
    background: var(--fill); border-radius: 999px; padding: 3px 9px;
    letter-spacing: 0;
}
.about-lead { color: var(--text); font-size: 14px; line-height: 1.55; margin: 10px 0 4px; }
.about-sect { margin-top: 16px; }
.about-sect h3 {
    font-size: 12px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .6px; color: var(--muted); margin: 0 0 6px;
}
.about-sect ul { margin: 0; padding-left: 18px; }
.about-sect li { font-size: 14px; line-height: 1.6; color: var(--text); }
.about-plain { font-size: 14px; margin: 0 0 6px; color: var(--text); }
.about-mail {
    display: inline-block; font-weight: 700; font-size: 15px;
    color: var(--pass); text-decoration: none;
    border-bottom: 1.5px solid rgba(37,99,235,.35);
}
.about-mail:hover { border-bottom-color: var(--pass); }
.about-foot {
    margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line);
    font-size: 12px; color: var(--muted); text-align: center;
}
.about-foot a { color: var(--muted); }

/* ===== PWA: кнопка установки ===== */
.install-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:13px 16px;
  border:0;border-radius:14px;background:#16a34a;color:#fff;font-size:15px;font-weight:700;cursor:pointer;
  box-shadow:0 2px 8px rgba(22,163,74,.35)}
.install-btn:active{transform:scale(.98)}
.install-hint{margin:0;font-size:13px;color:#475569;line-height:1.5}

/* кнопка «Установить» в шапке — только на десктопе */
.install-top { display: none; }
@media (min-width: 641px) {
    .install-top:not([hidden]) {
        display: inline-flex; align-items: center; gap: 6px;
        color: #16a34a; border-color: #86efac;
    }
    .install-top:not([hidden]):hover { border-color: #16a34a; background: #f0fdf4; }
}
