/* Заказ через сайт: корзина, вход по SMS, оформление, кабинет.
   Переменные цвета и базовые классы (.btn-*, .qty, .tick, .title, .container) — в шаблоне главной. */

/* корзина */
.cart-row__price b{color:var(--navy)}
.cart-panel__rows{margin-top:8px;padding:12px 6px 0;border-top:1px solid #E6E9F4}
.sum-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:4px 0;font-size:14px;color:#4F5B6B}
.sum-row strong{font-size:20px;color:var(--navy);white-space:nowrap}
.sum-row--total{color:var(--ink);font-weight:600}
.note-err{display:flex;align-items:flex-start;gap:8px;margin:10px 6px 0;padding:10px 12px;border-radius:12px;background:#FDE7E5;color:#A32B22;font-size:13px;line-height:1.4}
.note-err .ico{width:18px;height:18px;margin-top:1px}
.cart-panel .btn-main{margin-top:12px}

/* общие элементы */
.btn-main{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;padding:8px 24px;border:0;border-radius:999px;background:var(--blue-btn);color:#fff;font:inherit;font-weight:700;text-align:center;cursor:pointer;transition:background .2s,box-shadow .2s}
.btn-main:hover{background:#1C5FC6;box-shadow:0 8px 25px rgba(47,128,237,.35)}
.btn-main:disabled{background:#B9C6E4;box-shadow:none;cursor:default}
.btn-main.is-busy,.btn-main.is-busy:disabled{background:var(--blue-btn);color:transparent;pointer-events:none}
.btn-main.is-busy::after{content:"";position:absolute;left:50%;top:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border:3px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.btn-ghost{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;padding:8px 24px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--navy);font:inherit;font-weight:700;cursor:pointer;transition:border-color .2s}
.btn-ghost:hover{border-color:var(--navy)}
.btn-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.round{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--navy);cursor:pointer;transition:border-color .2s}
.round:hover{border-color:var(--navy)}
.field{display:block}
.field~.field{margin-top:14px}
.field__l{display:block;margin-bottom:6px;font-size:13px;font-weight:600;color:var(--navy)}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.field-row .field{margin-top:0}
.field-row+.field{margin-top:14px}
.input{width:100%;height:52px;padding:0 16px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);font:inherit;transition:border-color .2s,box-shadow .2s}
.input::placeholder{color:#98A2BC}
.input:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px rgba(47,128,237,.18)}
.input[readonly]{background:var(--soft);color:#4F5B6B}
.input.is-err{border-color:#E0463C}
.err{margin-top:8px;color:#B93228;font-size:13px;line-height:1.4}
.muted{color:#4F5B6B;font-size:14px;line-height:1.5}
.is-loading{opacity:.5;pointer-events:none}

/* окна */
.modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:16px;background:rgba(20,26,51,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.modal__card{position:relative;width:min(100%,440px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:36px 32px 32px;border-radius:28px;background:#fff;color:var(--ink);box-shadow:0 30px 80px rgba(10,20,70,.4)}
.modal__card--wide{width:min(100%,520px)}
.modal__x{position:absolute;top:14px;right:14px}
.modal__back{position:absolute;top:14px;left:14px}
.modal__t{padding-right:36px;font-size:24px;line-height:1.25;font-weight:700;color:var(--navy)}
.modal__back~.modal__t{margin-top:40px;padding-right:0}
.modal__s{margin:8px 0 22px;color:#4F5B6B;font-size:15px;line-height:1.5}
.modal__s b{white-space:nowrap}
.modal .btn-main,.modal .btn-row{margin-top:22px}
.modal .btn-row .btn-main{margin-top:0}

/* вход */
.phone{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px}
.phone select.input{padding:0 10px;font-weight:600}
.agree{display:flex;align-items:flex-start;gap:12px;margin-top:16px;font-size:14px;line-height:1.45;cursor:pointer}
.agree input{position:absolute;opacity:0;pointer-events:none}
.agree__box{flex:none;display:grid;place-items:center;width:24px;height:24px;border:1.5px solid #B4BFDC;border-radius:8px;color:#fff;transition:background .2s,border-color .2s}
.agree__box .ico{width:16px;height:16px;stroke-width:2.8}
.agree input:checked+.agree__box{background:var(--blue-btn);border-color:var(--blue-btn)}
.agree input:focus-visible+.agree__box{outline:3px solid #FFB020;outline-offset:2px}
.agree.is-err .agree__box{border-color:#E0463C;box-shadow:0 0 0 3px rgba(224,70,60,.15)}
.agree a{color:var(--blue-text);font-weight:600}
.code{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.code input{width:100%;height:60px;padding:0;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--navy);font:inherit;font-size:24px;font-weight:700;text-align:center}
.code input:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px rgba(47,128,237,.18)}
.code.is-err input{border-color:#E0463C}
.wait{margin-top:14px;font-size:14px;color:#4F5B6B;text-align:center}
.link-btn{padding:0;border:0;background:none;color:var(--blue-text);font:inherit;font-weight:600;cursor:pointer}
.link-btn:hover{text-decoration:underline}

/* адреса */
.addr{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:border-color .2s,box-shadow .2s}
button.addr:hover{border-color:var(--blue)}
.addr+.addr{margin-top:8px}
.addr.is-cur{border-color:var(--blue);box-shadow:0 0 0 3px rgba(47,128,237,.15);cursor:default}
.addr.is-err{border-color:#E0463C}
.addr__ico{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#E3EEFD;color:var(--blue-btn)}
.addr__body{flex:1;min-width:0}
.addr__a{display:block;font-weight:700;color:var(--navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.addr__c{display:block;font-size:14px;color:#4F5B6B}
.addr>.ico:last-child{color:#98A2BC}
.addr-t{margin:18px 0 8px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#6B7693}
.suggest{position:relative}
.suggest__list{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:5;max-height:240px;overflow:auto;padding:6px;border-radius:16px;background:#fff;box-shadow:0 18px 44px rgba(20,30,90,.22)}
.suggest__list button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:10px;background:none;color:var(--ink);font:inherit;font-size:15px;line-height:1.3;text-align:left;cursor:pointer}
.suggest__list button:hover,.suggest__list button:focus{background:#E3EEFD;outline:0}
.suggest__list small{display:block;color:#4F5B6B;font-size:13px}
.suggest__list .ico{color:var(--blue-btn);width:18px;height:18px}
.picked{margin-top:6px;font-size:13px;color:#1F7A33;font-weight:600}

/* страницы: оформление и кабинет */
.page{min-height:70vh;padding:40px 0 80px;background:var(--soft)}
.page__head{display:flex;align-items:center;gap:14px;margin-bottom:24px}
.page__head .title{font-size:clamp(26px,3vw,36px)}
.card{padding:26px 28px;border-radius:24px;background:#fff;box-shadow:0 8px 24px rgba(49,61,143,.05)}
.card+.card{margin-top:16px}
.card__t{margin-bottom:16px;font-size:20px;line-height:1.3;font-weight:700;color:var(--navy)}
.card__sub{margin:20px 0 10px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#6B7693}
.co{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);align-items:start;gap:24px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:52px;padding:6px 18px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--navy);font:inherit;font-size:15px;line-height:1.25;font-weight:700;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.chip small{display:block;font-size:12px;font-weight:400;opacity:.75;text-transform:capitalize}
.chip:hover{border-color:var(--navy)}
.chip[aria-pressed="true"]{border-color:var(--navy);background:var(--navy);color:#fff}
.pay{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pay__o{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--navy);font:inherit;font-weight:700;text-align:left;cursor:pointer;transition:border-color .2s,box-shadow .2s}
.pay__o .addr__ico{width:40px;height:40px}
.pay__o[aria-checked="true"]{border-color:var(--blue);box-shadow:0 0 0 3px rgba(47,128,237,.15)}
.pay__o .tick{margin-left:auto;width:26px;height:26px;background:var(--blue-btn);color:#fff;visibility:hidden}
.pay__o .tick .ico{width:15px;height:15px}
.pay__o[aria-checked="true"] .tick{visibility:visible}
.sum{position:sticky;top:108px}
.sum__list{margin-bottom:12px}
.sum__item{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 0}
.sum__item+.sum__item{border-top:1px solid #EEF0F7}
.sum__item img{width:48px;height:48px;object-fit:contain}
.sum__item p{font-size:14px;line-height:1.3;font-weight:600;color:var(--navy)}
.sum__item span{font-size:13px;color:#4F5B6B}
.sum__item b{font-size:15px;color:var(--navy);white-space:nowrap}
.sum__rows{padding-top:12px;border-top:1px solid #E6E9F4}
.sum .btn-main{margin-top:16px}
/* оформление: крупно, когда и куда привезут; предупреждение о втором заказе на тот же день */
.co-when{margin:4px 0 16px;padding:16px 18px;border-radius:18px;background:#E3EEFD;color:var(--navy)}
.co-when__l{display:block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#4F6BA8}
.co-when__d{display:block;margin-top:2px;font-size:22px;line-height:1.25;font-weight:700}
.co-when__d::first-letter{text-transform:uppercase}
.co-when__t{display:block;font-size:18px;font-weight:700}
.co-when__a{display:flex;align-items:flex-start;gap:6px;margin-top:8px;font-size:14px;line-height:1.4;color:#33427A}
.co-when__a .ico{flex:none;width:16px;height:16px;margin-top:2px}
.note-warn{display:flex;align-items:flex-start;gap:8px;margin-top:14px;padding:10px 12px;border-radius:12px;background:#FFF4DE;color:#7A4B00;font-size:13px;line-height:1.45}
.note-warn .ico{flex:none;width:18px;height:18px;margin-top:1px}
.done{max-width:560px;margin:24px auto 0;padding:44px 36px;text-align:center}
.done__ico{display:grid;place-items:center;width:84px;height:84px;margin:0 auto 20px;border-radius:50%;background:#E4F5E7;color:#2B943F}
.done__ico .ico{width:44px;height:44px;stroke-width:2.4}
.done__t{margin:0;font-size:28px;font-weight:700;color:var(--navy)}
.done__box{margin:22px 0;padding:18px 20px;border-radius:18px;background:#E3EEFD;color:var(--navy);line-height:1.5}
.done__box b{display:block;font-size:20px}

.cab{display:grid;grid-template-columns:280px minmax(0,1fr);align-items:start;gap:24px}
.cab__side{position:sticky;top:108px}
.hello{padding:24px;border-radius:24px;color:#fff;background:linear-gradient(115deg,var(--navy-deep),#2F6BDC)}
.hello p{font-size:14px;opacity:.85}
.hello b{display:block;font-size:22px;line-height:1.3;word-break:break-word}
.cab__nav{display:flex;flex-direction:column;gap:2px;margin-top:12px;padding:10px;border-radius:24px;background:#fff;box-shadow:0 8px 24px rgba(49,61,143,.05)}
.cab__link{display:flex;align-items:center;gap:12px;width:100%;min-height:50px;padding:0 14px;border:0;border-radius:14px;background:none;color:var(--navy);font:inherit;font-size:15px;font-weight:600;text-align:left;cursor:pointer;transition:background .2s,color .2s}
.cab__link:hover{background:var(--soft)}
.cab__link[aria-current="true"]{background:var(--navy);color:#fff}
.cab__link--out{color:#B93228}
.order{padding:20px 24px;border-radius:22px;background:#fff;box-shadow:0 8px 24px rgba(49,61,143,.05)}
.order+.order{margin-top:12px}
.order__top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.order__id{font-size:17px;font-weight:700;color:var(--navy)}
.order__date{font-size:14px;color:#4F5B6B}
.pill{display:inline-flex;align-items:center;height:30px;padding:0 12px;border-radius:999px;font-size:13px;font-weight:700;white-space:nowrap}
.pill--1{background:#E3EEFD;color:var(--blue-text)}
.pill--2{background:#E4F5E7;color:#1F7A33}
.pill--3{background:#FDE7E5;color:#B93228}
.order__mid{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:14px;padding-top:14px;border-top:1px solid #EEF0F7}
.order__items{font-size:14px;line-height:1.6}
.order__items b{display:block;font-size:13px;color:#6B7693;font-weight:600}
.order__sum{font-size:20px;font-weight:700;color:var(--navy);white-space:nowrap}
.order__meta{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px;font-size:13px;color:#4F5B6B}
.order__meta span{display:inline-flex;align-items:center;gap:6px}
.order__meta .ico{width:16px;height:16px}
/* кабинет: перенос и отмена заказа клиентом (до конца дня перед доставкой) */
.order__when{font-size:17px;line-height:1.35;font-weight:700;color:var(--navy)}
.order__when::first-letter{text-transform:uppercase}
.order__acts{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;margin-top:14px;padding-top:14px;border-top:1px solid #EEF0F7}
.order__till{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#4F5B6B}
.order__till .ico{flex:none;width:16px;height:16px}
.order__btns{display:flex;gap:8px}
.order__btns .btn-ghost{width:auto;min-height:44px;padding:6px 18px;font-size:14px}
.order__lock{display:flex;align-items:flex-start;gap:8px;margin-top:14px;padding:10px 12px;border-radius:12px;background:#F4F6FC;color:#4F5B6B;font-size:13px;line-height:1.45}
.order__lock .ico{flex:none;width:18px;height:18px;margin-top:1px;color:#6B7693}
.order__lock .link-btn,.note-warn .link-btn{font-size:13px}
.card__sub--first{margin-top:0}
.modal .note-err{margin:14px 0 0}
.empty{display:grid;place-items:center;gap:14px;padding:48px 20px;color:#6B7693;text-align:center}
.empty .ico{width:44px;height:44px;color:#B4BFDC}
.cab__n{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--blue-btn);color:#fff;font-size:12px;line-height:22px;font-weight:700;text-align:center}
.cab__link[aria-current="true"] .cab__n{background:#fff;color:var(--navy)}

/* кабинет: оценка заказа */
.rate{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.rate__q{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 10px 16px;border-radius:16px;background:#F4F6FC;font-size:14px;line-height:1.3;font-weight:600;color:var(--navy)}
.rate__b{display:flex;flex:none;gap:6px}
.rate__b button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:#6B7693;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.rate__b button:hover{border-color:var(--navy);color:var(--navy)}
.rate__b button[aria-pressed="true"]{border-color:#2B943F;background:#2B943F;color:#fff}
.rate__b button.is-down[aria-pressed="true"]{border-color:#B93228;background:#B93228}
.rate__b .is-down .ico{transform:rotate(180deg)}

/* кабинет: мои данные и поддержка */
.form-foot{display:flex;justify-content:flex-end;margin-top:22px}
.form-foot .btn-main{width:auto;min-width:220px}
.chat{display:flex;flex-direction:column;height:min(62vh,540px)}
.chat__log{flex:1;display:flex;flex-direction:column;gap:8px;overflow:auto;padding:4px 2px 8px;overscroll-behavior:contain}
.msg{max-width:78%;padding:10px 14px;border-radius:16px;font-size:15px;line-height:1.45;white-space:pre-line;word-break:break-word}
.msg small{display:block;margin-top:2px;font-size:11px;opacity:.65}
.msg--in{align-self:flex-start;border-bottom-left-radius:6px;background:var(--soft)}
.msg--out{align-self:flex-end;border-bottom-right-radius:6px;background:var(--blue-btn);color:#fff}
.chat__form{display:flex;gap:8px;padding-top:12px;border-top:1px solid #EEF0F7}
.chat__form .round{width:52px;height:52px;border-color:var(--blue-btn);background:var(--blue-btn);color:#fff}
.chat__form .round:disabled{opacity:.5;cursor:default}

/* панель водителя: рассчитана на телефон — заказ одной строкой, первый раскрыт */
.hello__role{display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.16);font-size:13px;font-weight:600}
.hello__role .ico{width:18px;height:18px}
.drv-nav .cab__n{min-width:24px}
.drv-filter{display:grid;gap:10px}
.drv-filter .chips:empty{display:none}
.drv-filter .chip{min-height:46px}
#drvTimes .chip{display:inline-flex;align-items:center;gap:8px}
.chip__n{min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#E3EEFD;color:var(--blue-text);font-size:12px;line-height:22px;font-weight:700;text-align:center}
.chip[aria-pressed="true"] .chip__n{background:rgba(255,255,255,.2);color:#fff}
.search{display:flex;align-items:center;gap:10px;height:48px;padding:0 16px;border:1px solid var(--line);border-radius:14px;background:#fff;color:#98A2BC;cursor:text;transition:border-color .2s,box-shadow .2s}
.search:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(47,128,237,.18)}
.search input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:0;background:none;color:var(--ink);font:inherit}
.search input::placeholder{color:#98A2BC}
.drv-sum{display:grid;gap:4px;padding:10px 14px;border-radius:14px;background:#F4F6FC;font-size:14px;line-height:1.4;color:#4F5B6B}
.drv-sum p{display:flex;align-items:flex-start;gap:8px}
.drv-sum .ico{width:18px;height:18px;margin-top:1px;color:var(--blue-btn)}
.drv-sum b{color:var(--navy)}
.drv-body{margin-top:12px}
.drows{display:flex;flex-direction:column;gap:8px}
.drow{border-radius:20px;background:#fff;box-shadow:0 6px 18px rgba(49,61,143,.06);transition:box-shadow .2s}
.drow.is-open{box-shadow:0 0 0 2px var(--blue-btn),0 12px 28px rgba(36,112,224,.14)}
.drow__top{display:flex;align-items:center;gap:8px;padding:10px 12px 10px 0}
.drow__main{flex:1;min-width:0;display:flex;align-items:flex-start;gap:12px;padding:2px 0 2px 14px;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.drow__n{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--navy);color:#fff;font-size:14px;font-weight:700}
.drow__n .ico{width:18px;height:18px;stroke-width:2.4}
.drow--2 .drow__n{background:#E4F5E7;color:#2B943F}
.drow--3 .drow__n{background:#FDE7E5;color:#B93228}
.drow__txt{flex:1;min-width:0}
.drow__a{display:block;font-size:16px;line-height:1.3;color:var(--navy);word-break:break-word}
.drow__b{display:block;margin-top:2px;font-size:13px;line-height:1.4;color:#4F5B6B}
.drow__note{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:13px;line-height:1.35;color:#8A5A00}
.drow__note .ico{width:15px;height:15px}
.drow__note span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drow.is-open .drow__note{display:none}
.drow__ic{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#E3EEFD;color:var(--blue-btn);text-decoration:none}
.drow__ic .ico{width:21px;height:21px}
.drow__ic--go{background:var(--blue-btn);color:#fff}
.drow__more{padding:0 14px 14px 58px;font-size:14px}
.drow__more>.sum-row span:last-child{text-align:right;color:var(--ink);font-weight:600}
.drow__tel{color:var(--blue-text);font-size:16px;font-weight:700;text-decoration:none;white-space:nowrap}
.drow__notefull{display:flex;gap:8px;margin:8px 0 2px;padding:10px 12px;border-radius:12px;background:#FFF4D6;color:#6B4D00;line-height:1.45;word-break:break-word}
.drow__notefull .ico{width:18px;height:18px;margin-top:1px}
.drow__lines{margin-top:8px;padding-top:8px;border-top:1px solid #EEF0F7}
.drow__lines .sum-row span:last-child{text-align:right}
.drow__lines .sum-row strong{font-size:18px}
.drow__acts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.drow__acts .btn-main,.drow__acts .btn-ghost{min-height:52px;padding:8px 14px}
.btn-ghost--danger{color:#B93228}
.btn-ghost--danger:hover{border-color:#B93228}
.btn-main--danger{background:#D33A2F}
.btn-main--danger:hover{background:#B93228;box-shadow:0 8px 25px rgba(211,58,47,.3)}
.btn-main--danger.is-busy,.btn-main--danger.is-busy:disabled{background:#D33A2F}
.btn-main--go{background:#2B943F}
.btn-main--go:hover{background:#237A33;box-shadow:0 8px 25px rgba(43,148,63,.3)}
a.btn-main,a.btn-ghost{text-decoration:none}
/* маршрут */
.route-card{display:grid;gap:10px}
.route-card .btn-main,.route-card .btn-ghost{min-height:54px;justify-content:flex-start;gap:10px;text-align:left;line-height:1.3}
.route-card .btn-main>span,.route-card .btn-ghost>span{flex:1;min-width:0}
.route-card small{flex:none;font-size:12px;font-weight:600;opacity:.85;white-space:nowrap}
.route-parts{display:grid;gap:8px}
.route-card__hint{font-size:13px;line-height:1.45;color:#4F5B6B}
.route-card__km{margin-top:4px;font-weight:700;color:var(--navy)}
.chip.is-busy{opacity:.6}
.drv-map{height:260px;border-radius:16px;overflow:hidden;background:#DDE3EE;z-index:0}
.pin{display:grid;place-items:center;width:28px;height:28px;border:2px solid #fff;border-radius:50%;background:var(--navy);color:#fff;font:700 12px/1 Montserrat,system-ui,sans-serif;box-shadow:0 2px 6px rgba(0,0,0,.35)}
.pin--base{background:#2B943F}
.pin--me{width:18px;height:18px;background:#2B943F;box-shadow:0 0 0 6px rgba(43,148,63,.25)}
.pin-tip b{display:block;margin-bottom:4px;font-family:Montserrat,system-ui,sans-serif}
.pin-tip a{color:var(--blue-text);font-weight:700}
.route{margin:0;padding:0;list-style:none}
.route li{display:flex;align-items:center;gap:10px;padding:10px 0}
.route li+li{border-top:1px solid #EEF0F7}
.route li.is-skip{opacity:.5}
.route li.is-skip b{text-decoration:line-through}
.route__n{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#E3EEFD;color:var(--blue-text);font-size:13px;font-weight:700}
.route__t{flex:1;min-width:0}
.route b{display:block;line-height:1.35;color:var(--navy);word-break:break-word}
.route small{display:block;margin-top:2px;font-size:12.5px;color:#4F5B6B;white-space:normal;opacity:1}
.route__b{flex:none;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--navy);cursor:pointer}
.route__b:disabled{opacity:.3;cursor:default}
.route__b .ico{width:18px;height:18px}
.spin{display:block;width:34px;height:34px;border:3px solid #DCE3F5;border-top-color:var(--blue-btn);border-radius:50%;animation:spin .7s linear infinite}
.pay--col{grid-template-columns:1fr}
.modal__o{margin-bottom:8px;padding-right:36px;font-size:13px;font-weight:700;color:#6B7693}
textarea.input{height:auto;min-height:96px;margin-top:12px;padding:12px 16px;resize:vertical;line-height:1.45}

.toast{position:fixed;left:50%;top:100px;z-index:120;display:flex;align-items:center;gap:12px;max-width:calc(100% - 32px);padding:12px 20px 12px 12px;border-radius:999px;background:#fff;color:var(--ink);box-shadow:0 18px 44px rgba(20,30,90,.28);font-size:14px;line-height:1.35;transform:translateX(-50%);animation:toast .25s ease}
.toast b{display:block;color:var(--navy)}
.toast .tick{flex:none;background:#E4F5E7;color:#2B943F}
.toast.is-warn .tick{background:#FDE7E5;color:#B93228}
@keyframes toast{from{opacity:0;transform:translate(-50%,-10px)}}

@media (max-width:1100px){
  .co{grid-template-columns:minmax(0,1fr)}
  .sum{position:static}
  .cab{grid-template-columns:minmax(0,1fr);gap:14px}
  .cab__side{position:static;min-width:0}
  .hello{padding:18px 20px}
  .cab__nav{flex-direction:row;gap:6px;margin-top:10px;padding:6px;border-radius:18px;overflow-x:auto;scrollbar-width:none}
  .cab__nav::-webkit-scrollbar{display:none}
  .cab__link{flex:none;width:auto;min-height:44px;padding:0 14px;white-space:nowrap}
}
@media (max-width:760px){
  .page{padding:24px 0 56px}
  .page__head{margin-bottom:16px}
  .card{padding:20px 18px;border-radius:20px}
  .card__t{font-size:18px}
  .pay{grid-template-columns:1fr}
  .chip{flex:1 1 calc(50% - 8px);padding:6px 10px}
  .order{padding:16px 18px;border-radius:20px}
  .order__btns{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .order__btns .btn-ghost{width:100%;padding:6px 10px}
  .co-when__d{font-size:20px}
  /* водитель на телефоне: приветствия и заголовка нет, вкладки закреплены под шапкой */
  #viewDriver.page{padding-top:0}
  #viewDriver .cab__side{display:contents}
  #viewDriver .hello,#viewDriver .drv-head{display:none}
  .drv-nav{position:sticky;top:68px;z-index:20;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 44px;gap:4px;margin:0 -16px;padding:8px 16px;border-radius:0;background:var(--soft);box-shadow:none;overflow:visible}
  .drv-nav .cab__link{justify-content:center;gap:5px;min-height:44px;padding:0 4px;border-radius:12px;background:#fff;font-size:13px;font-weight:700}
  .drv-nav .cab__link[aria-current="true"]{background:var(--navy);color:#fff}
  .drv-nav .cab__link>.ico{display:none}
  .drv-nav .cab__link--out>.ico{display:block}
  .drv-nav .drv-nav__t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .drv-nav .cab__link{position:relative}
  .drv-nav .cab__n{position:absolute;top:-5px;right:-3px;margin:0;min-width:20px;height:20px;padding:0 5px;font-size:11px;line-height:20px;box-shadow:0 0 0 2px var(--soft)}
  .drv-filter{gap:8px;padding:12px}
  .drv-filter .chips{flex-wrap:nowrap;margin:0 -12px;padding:0 12px;overflow-x:auto;scrollbar-width:none}
  .drv-filter .chips::-webkit-scrollbar{display:none}
  .drv-filter .chip{flex:none;min-height:42px;padding:4px 12px;font-size:14px}
  .drv-sum{font-size:13px}
  .drow__more{padding:0 12px 12px}
  .drv-map{height:220px}
  .rate{grid-template-columns:1fr}
  .form-foot .btn-main{width:100%}
  .chat{height:min(68vh,560px)}
  .done{padding:32px 20px}
  .toast{top:80px;border-radius:18px}
}
@media (max-width:560px){
  .modal{place-items:end stretch;padding:0}
  .modal__card,.modal__card--wide{width:100%;max-height:92vh;max-height:92dvh;padding:32px 20px 24px;border-radius:26px 26px 0 0}
  .modal__t{font-size:21px}
  .code{gap:6px}
  .code input{height:54px;font-size:22px}
}
@media (prefers-reduced-motion:reduce){
  .toast{animation:none}
}
