::selection{background:#d2e5ee;color:#192e3a} *{box-sizing:border-box} :root{--field-height:44px;--type:Inter,Arial,sans-serif;--field:#fff;--surface:#eaf0f2;--stroke:#a4b5bd;--paper:#fbf8f2;--ink:#203243;--action:#295a78;--line:#cdd7da;--muted:#485d68} body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.45 var(--type)} .wrap{max-width:1300px;padding:0 clamp(20px,4.5vw,76px);margin:auto}header{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{font-size:20px;font-weight:650;letter-spacing:-.04em;display:flex;align-items:center;gap:13px}.mark{width:30px;height:32px;display:grid;grid-template-columns:1fr 1fr;gap:3px;transform:skewY(-12deg)}.mark i{background:var(--action)}.mark i:last-child{background:#c48255;height:23px;align-self:end}.city{font-size:14px;color:var(--muted)}main{padding:clamp(24px,4vh,48px) 0;display:grid;grid-template-columns:minmax(0,1.17fr) minmax(330px,.83fr);gap:clamp(32px,6vw,92px);align-items:center}nav{display:flex;gap:5px;flex-wrap:wrap}button,a{font:inherit}button{cursor:pointer}nav a{border:1px solid var(--line);color:var(--muted);text-decoration:none;padding:7px 13px;border-radius:24px;font-size:14px}nav a[aria-current=page]{background:var(--ink);color:white;border-color:var(--ink)}h1{font:620 clamp(38px,4.3vw,68px)/1.03 var(--type);letter-spacing:-.047em;margin:22px 0 12px}p{margin:0}.intro{max-width:520px;color:var(--muted);font-size:17px}.photo{width:100%;height:clamp(155px,25vh,290px);object-fit:cover;display:block;border-radius:8px;margin:20px 0 12px}.detail{border-bottom:1px solid var(--line);width:100%;border-top:0;border-left:0;border-right:0;background:none;padding:10px 1px;color:var(--ink);display:flex;justify-content:space-between;align-items:center;text-align:left;font-size:15px}.detail b{font-size:21px;font-weight:400}.panel{background:var(--surface);padding:clamp(22px,2.8vw,40px);border-radius:15px}.panel h2,dialog h2{font:600 clamp(27px,2.4vw,36px)/1.1 var(--type);letter-spacing:-.04em;margin:0 0 12px}.rate{color:var(--muted)}.row{display:flex;align-items:center;justify-content:space-between;gap:8px;border-block:1px solid var(--line);padding:18px 0;margin:20px 0}.row small{display:block;color:var(--muted)}.step{display:flex;align-items:center;gap:8px}.step button,.close{width:36px;height:36px;border:1px solid var(--stroke);border-radius:50%;background:transparent;color:var(--ink);font-size:21px}.step button:disabled{opacity:.36;cursor:default}.step output{font-weight:650;min-width:36px;text-align:center}.sum{display:block;font-size:clamp(42px,4.3vw,68px);font-weight:600;letter-spacing:-.07em;line-height:1.12;margin:3px 0 10px}.includes{color:var(--muted);font-size:14px;max-width:37ch}.call{display:flex;align-items:center;justify-content:space-between;background:var(--action);color:white;text-decoration:none;padding:14px 19px;border-radius:7px;font-weight:600;margin-top:22px}.call:hover{background:#1b435d}.phone{text-align:center;font-size:14px;letter-spacing:.04em;margin-top:8px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:14px;padding:34px;max-width:min(490px,90vw);background:var(--paper);color:var(--ink)}dialog::backdrop{background:#12232ca8}.close{float:right;margin-left:10px}dialog p{margin-top:14px}a:focus-visible,button:focus-visible{outline:3px solid #42677e;outline-offset:3px}@media(max-width:800px){main{grid-template-columns:1fr;gap:22px}.left{display:contents}nav,h1,.intro,.photo,.detail,.panel{grid-column:1}main{display:flex;flex-direction:column;align-items:stretch;gap:0}h1{margin-top:22px}.panel{order:2;margin:18px 0 12px}.photo{order:3;height:200px;margin:8px 0}.detail{order:4}header{height:66px}.brand{font-size:17px}.city{font-size:12px}.sum{font-size:48px}.row{margin:16px 0}.mark{width:22px;height:24px}.mark i:last-child{height:18px}}@media(min-width:801px) and (max-height:720px){header{height:60px}main{padding:20px 0}.photo{height:145px}.panel{padding:24px}.row{margin:14px 0;padding:12px 0}}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;margin:20px 0}
.fields label{display:grid;gap:5px;font-weight:600;font-size:14px}
.full{grid-column:1/-1}
select,input{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--stroke);border-radius:7px;background:var(--field);color:var(--ink);font:inherit;font-weight:400;padding:11px 9px}
select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #42677e;outline-offset:2px}
.estimate{border-top:1px solid var(--line);padding-top:15px}
.estimate output{display:block;font-weight:600;font-size:20px;color:var(--action)}
.estimate output.priced{font-size:40px;line-height:1.15;letter-spacing:-.05em}
.estimate small{display:block;color:var(--muted);margin-top:5px}
[hidden]{display:none!important}.controls{margin:18px 0}.control-title,.crewbox legend{font-size:14px;font-weight:600}.vehicle-trigger{width:100%;background:var(--field);border:1px solid var(--stroke);text-align:left;border-radius:9px;display:flex;align-items:center;justify-content:space-between;min-height:var(--field-height);padding:0 14px;font-weight:600;color:var(--ink);margin:5px 0}.crewbox{padding:0;border:0;margin:16px 0}.crewbox legend{padding:0;margin-bottom:6px}.choices{display:flex;gap:4px;flex-wrap:wrap}.choices button,.counter button{min-width:44px;min-height:var(--field-height);background:var(--field);color:var(--ink);border:1px solid var(--stroke);border-radius:7px;padding:6px 10px}.choices button[aria-pressed=true],.fleet button[aria-pressed=true]{background:var(--action);color:white}.choices button:disabled,.counter button:disabled{opacity:.35;cursor:default}.clockrow{display:flex;justify-content:space-between;align-items:center;gap:8px}.clockrow small{display:block;color:var(--muted)}.counter{display:flex;align-items:center;gap:4px}.counter button{font-size:24px;line-height:1}.counter output{min-width:3ch;text-align:center;font-size:24px;font-variant-numeric:tabular-nums}.fleet-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}.fleet-grid button{min-height:62px;padding:10px 12px;background:var(--field);color:var(--ink);border:1px solid var(--line);text-align:left;border-radius:8px}.fleet-grid strong,.fleet-grid small{display:block}.fleet-grid small{margin-top:3px}.fleet-grid button:last-child{grid-column:1/-1}.panel .spec{margin:4px 0}.crew-extra{display:flex;align-items:center;justify-content:space-between;margin-top:6px}.fleet-grid button:hover,.vehicle-trigger:hover{border-color:var(--action)}.crewrow{padding:14px 0;margin-bottom:14px;border-bottom:1px solid var(--line)}.fleet-grid button{padding:14px;border-radius:10px;background:var(--paper)}.fleet-grid strong{line-height:1.25;margin-bottom:5px}.fleet-grid small{font-variant-numeric:tabular-nums}.fleet-grid button:last-child{border-style:dashed}.fleet .close{font-size:20px}@media(max-width:420px){.fleet{padding:18px}.fleet-grid{gap:6px}.fleet-grid button{padding:10px}}#estimateTime{margin-top:14px}.crewrow{border-bottom:0;margin-bottom:0;padding-bottom:0}.fleet-help{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}.fleet-help p{font-size:14px;margin:3px 0 7px}.fleet-help a{color:var(--action)}.car-detail{display:block;font-size:12px;margin-top:4px}.fleet-grid button{align-content:start}#nextHour{font-weight:600;color:var(--action)}
.chat{margin-top:16px}.chat-form{display:flex;align-items:center;gap:8px;border:1px solid var(--stroke);border-radius:9px;background:var(--field);padding:6px}
@media (hover: hover) {
  /* Give the shadow room inside the scrollport, keeping the content aligned. */
  .wrap .left { margin-right: -8px; padding-right: 8px; }
  .chat-form:hover {
    box-shadow: 0 4px 12px -4px rgb(29 47 58 / 24%), 0 1px 4px rgb(29 47 58 / 8%);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .chat-form { transition: box-shadow 200ms ease-in-out; }
}
.chat-form:focus-within{border-color:var(--action);outline:2px solid var(--action);outline-offset:-2px}.chat textarea{width:100%;flex:1;min-width:0;border:none;background:transparent;color:var(--ink);font:inherit;padding:6px;resize:none;line-height:1.4}
.chat:not(.open) textarea{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat textarea:focus{outline:none}.chat-form button{border:0;border-radius:6px;background:var(--action);color:white;flex:none;aspect-ratio:1;height:40px;font-size:20px}
.chat:not(.open) .chat-form{min-height:var(--field-height);padding-block:3px}
.chat:not(.open) .chat-form button{height:calc(var(--field-height) - 8px)}
.chat-form button:disabled{opacity:.45}/* Messages scroll independently; header and composer never cover them. */
.chat.open {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  height: clamp(320px, 52dvh, 460px);
  max-height: none;
  overflow: hidden;
  overscroll-behavior-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.chat.open .chat-head, .chat.open .chat-compose { flex: none; position: static; background: var(--paper); }
.chat.open #chatLog { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: auto; padding-block: 12px; }
.chat.open #chatError { flex: none; }
.chat.open .chat-head { top: 0; padding-top: 12px; }
.chat.open .chat-compose { bottom: 0; padding: 8px 0 12px; }
.chat-head{height:auto;padding-bottom:12px}.chat-head strong,.chat-head small{display:block}.chat-head small{color:var(--muted);font-size:12px;margin-top:3px}
#chatLog{padding:8px 4px 0}.bubble{background:#d7e7ef;border-radius:12px 12px 2px 12px;width:fit-content;max-width:85%;padding:8px 12px;margin:0 0 8px auto;overflow-wrap:anywhere;white-space:pre-wrap}
.call{justify-content:flex-start;gap:8px;white-space:nowrap;font-size:clamp(13px,1.1vw,16px)}.call-number{font-weight:400}.call svg{flex:none;margin-left:auto}@media(max-width:420px){.call{padding-inline:10px;gap:5px;font-size:clamp(11px,3.3vw,14px)}.call svg{width:17px}}
/* Desktop composition */
@media (min-width: 801px) {
  .wrap {
    max-width: 1320px;
    padding-inline: clamp(28px, 5vw, 72px);
  }
  .wrap > header { height: clamp(58px, 8vh, 80px); }
  main {
    grid-template-columns: minmax(0, 1.14fr) minmax(332px, .86fr);
    align-items: stretch;
    column-gap: clamp(24px, 4vw, 64px);
    padding-block: clamp(18px, 3.5vh, 38px);
  }
  .left { display: flex; flex-direction: column; }
  h1 { font-size: clamp(40px, 4.25vw, 64px); margin: clamp(14px, 2.4vh, 24px) 0 10px; }
  .intro { max-width: 54ch; line-height: 1.45; }
  .chat { margin-top: 14px; }
  .photo {
    flex: 1 0 auto;
    height: clamp(140px, 21vh, 228px);
    min-height: 0;
    margin: 16px 0 0;
    object-position: 50% 54%;
  }
  .detail { order: 2; padding-block: 10px; }
  .panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line);
    padding: clamp(20px, 2.25vw, 34px);
  }
  .panel h2 { margin: 0; }
  .controls { margin: 18px 0 0; }
  .crewrow { padding-block: 14px; }
  .control-title { font-size: 15px; }

  .estimate {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-bottom: 4px;
  }
  #total.priced { font-variant-numeric: tabular-nums; }
  .counter { display: grid; grid-template-columns: 44px minmax(32px, auto) 44px; align-items: center; gap: 3px; }
  .counter output { min-width: 0; }
  .panel .contact-actions { margin-top: auto; }

  #estimateTime { margin: 10px 0 16px; }
  .fleet-grid { gap: 8px; }
  .fleet-grid button { min-width: 0; padding: 10px 12px; }
  .fleet-help { margin-top: 12px; padding-top: 10px; }
}
@media (min-width: 801px) and (max-height: 740px) {
  main { padding-block: 16px; }
  .photo { height: 135px; }
  .controls { margin-top: 12px; }
  .panel { padding-block: 20px; }
}

.contact-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--field-height);
  gap: 8px;
  margin-top: 22px;
  container-type: inline-size;
}
/* One expanding grid track reveals the order action while the call moves right. */
.contact-pair {
  --action-gap: 8px;
  display: grid;
  grid-template-columns: minmax(0, 0fr) minmax(0, 1fr);
  min-width: 0;
}
.order-ready .contact-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.order-slot { min-width: 0; display: grid; }
#orderMove {
  min-width: 0;
  margin-right: var(--action-gap);
  padding: 0;
  overflow: clip;
  white-space: nowrap;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
}
#orderMove:hover { background: #1b435d; }
.order-ready #orderMove { opacity: 1; }
.schedule {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 4px 8px;
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.schedule-choices { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.schedule-choices button { min-height: 40px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--action); font: inherit; font-size: 14px; }
.schedule-choices button[aria-pressed="true"] { border-color: var(--action); background: var(--action); color: white; }
.schedule-note { grid-column: 1 / -1; }
.schedule legend { margin-bottom: 6px; padding: 0; font-size: 15px; font-weight: 600; }
.schedule label { display: grid; gap: 4px; min-width: 0; font-size: 13px; color: var(--muted); }
.schedule input, .schedule select { height: var(--field-height); padding: 0 8px; font-size: 14px; }
.contact-hint { grid-column: 1 / -1; color: var(--ink); font-size: 13px; }
#orderContact input[aria-invalid=true] { border-color: #995027; }
.schedule input { display: block; max-width: 100%; }
.slot-field { position: relative; min-width: 0; }
.slot-field select { appearance: none; padding-right: 21px; }
.slot-field::after {
  content: ""; pointer-events: none; position: absolute; top: 45%; right: 10px;
  width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.bubble.order-reply { margin-left: 0; margin-right: auto; background: var(--surface); border-radius: 12px 12px 12px 2px; white-space: normal; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.receipt-actions button { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--action); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.order-reply > strong { display: block; }
.order-reply details { margin-top: 4px; font-size: 13px; }
.order-reply summary { cursor: pointer; color: var(--muted); }
.order-reply ul { padding-left: 18px; margin: 4px 0; }
@container (max-width: 312px) { .contact-pair { --action-gap: 4px; } }
@media (max-width: 360px) {
  .schedule { column-gap: 5px; }
  .schedule input, .schedule select { font-size: 13px; padding-left: 5px; }
}

.contact-actions .call { min-width: 0; margin: 0; min-height: var(--field-height); padding: 0 12px; }
.call-copy, .call-extra { display: inline-flex; align-items: baseline; overflow: clip; }
.call-label, .call-extra > * { flex: none; }
.call-extra { max-width: 18em; padding-left: .27em; gap: .5em; opacity: 1; }
.order-ready .call-extra { max-width: 0; padding-left: 0; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .contact-pair { transition: grid-template-columns 360ms cubic-bezier(.4,0,.2,1); }
  .call-extra { transition: opacity 140ms ease 140ms, max-width 360ms ease, padding-left 320ms ease; }
  .order-ready .call-extra { transition-delay: 0s; }
  #orderMove { transition: opacity 150ms ease; }
  .order-ready #orderMove { transition: opacity 220ms ease 110ms; }
}

.write-action, .chat-form button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: var(--action);
  color: white;
}
.write-action { width: 100%; aspect-ratio: 1; align-self: center; }
.chat-mark-defs { position: absolute; pointer-events: none; }
.write-action:hover, .chat-form button:hover:enabled { background: #1b435d; }
@media (prefers-reduced-motion: no-preference) {
  #callDmitry svg {
    transform-origin: center;
    animation: handset-ring 8s ease-out 2s infinite;
  }
}
@keyframes handset-ring {
  0%, 7%, 100% { transform: rotate(0); }
  1.25% { transform: rotate(5deg); }
  2.6%  { transform: rotate(-4deg); }
  4%    { transform: rotate(3deg); }
  5.5%  { transform: rotate(-2deg); }
}
@container (max-width: 356px) {
  .contact-actions .call { padding-inline: 8px; font-size: 12px; gap: 5px; }
  .contact-actions .call svg { width: 17px; }
}
@container (max-width: 312px) {
  .contact-actions .call { padding-inline: 4px; font-size: 11px; gap: 2px; letter-spacing: -.03em; }
  .contact-actions .call svg { width: 14px; }
}
@media (min-width: 361px) and (max-width: 390px) {
  .panel { padding-inline: 16px; }
}
@media (max-width: 360px) {
  .wrap { padding-inline: 10px; }
  .panel { padding-inline: 8px; }
  .contact-actions { gap: 4px; }
}

.callback { width:min(400px,calc(100vw - 32px)); padding:26px; }
.callback h2 { margin-right:34px; font-size:34px; }
.callback label { display:block; margin:16px 0 5px; font-size:14px; font-weight:600; }
.callback input, .callback textarea { font-size:17px; }
.callback label small { font-weight:400; }
.callback textarea { display:block; width:100%; padding:10px 12px; border:1px solid var(--stroke); border-radius:8px; color:var(--ink); background:var(--field); font-family:inherit; resize:vertical; }
.contact-actions > .callback-link { grid-column:1/-1; justify-self:center; min-height:44px; padding:4px 12px; border:0; background:transparent; color:var(--action); text-decoration:underline; text-underline-offset:.2em; font-size:14px; }
.callback-note, .direct-call, #callbackError { font-size:14px; }
.callback-note { color:var(--muted); margin:10px 0; }
.callback-submit { width:100%; padding:12px; border:0; border-radius:7px; color:white; background:var(--action); font-weight:600; }
.direct-call { display:inline-block; margin-top:16px; color:var(--action); }
#callbackError { color:var(--ink); font-weight:600; }

/* Keep the vehicle drawer outside the calculator's scrolling area. */
.wrap {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.wrap > header { flex: none; }
main {
  flex: 1;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}
.left, .panel, .fleet-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
@media (forced-colors: none) {
  :root {
    --scroll-thumb: #becbcd;
    --scroll-hover: #91a4aa;
  }
  :where(.left, .panel, .fleet-scroll, #chatLog, #chatText, .suggestions, dialog) {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) transparent;
  }
  @supports selector(::-webkit-scrollbar) {
    :where(.left, .panel, .fleet-scroll, #chatLog, #chatText, .suggestions, dialog) {
      scrollbar-width: auto;
      scrollbar-color: auto;
    }
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
    ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
    ::-webkit-scrollbar-thumb {
      min-height: 30px;
      border: 3px solid transparent;
      border-radius: 999px;
      background-color: var(--scroll-thumb);
      background-clip: padding-box;
    }
    ::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-hover); }
    ::-webkit-scrollbar-thumb:active { background-color: #738a93; }
  }
}
/* Only the scroll containers change direction to put the native thumb on the left. */
.left, .fleet-scroll { direction: rtl; }
.left > *, .fleet-scroll > * { direction: ltr; }
.left > .intro { width: 100%; margin-right: auto; }
.left {
  position: relative;
  min-width: 0;
  scrollbar-gutter: stable;
  margin-left: -24px;
  padding-left: 14px;
}
@media (max-width: 480px) { .left { margin-left: -17px; } }
@media (max-width: 360px) { .left { margin-left: -7px; } }
.left > :not(.photo) { flex-shrink: 0; }
.calc-shell {
  --drawer-overlap: 16px;
  --drawer-duration: 280ms;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  border-radius: 15px;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.calc-shell:is(.has-data, .fleet-open, .field-hover, .field-focus) {
  box-shadow: 0 8px 26px -8px rgb(29 47 58 / 27%), 0 2px 7px rgb(29 47 58 / 9%);
}
.calc-shell > .panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.panel > * { flex: none; }
.panel .contact-actions { margin-top: auto; }
.fleet {
  position: absolute;
  z-index: 1;
  inset-block: 0;
  right: calc(100% - var(--drawer-overlap));
  width: min(calc(100% - 2 * var(--drawer-overlap)), 370px);
  display: flex;
  flex-direction: column;
  padding: 14px 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px 0 0 15px;
  visibility: hidden;
  transform: translateX(100%);
}
.fleet-scroll {
  flex: 1;
  padding: clamp(2px, calc(2vw - 14px), 14px)
           clamp(21px, calc(3vw - 7px), 33px)
           clamp(2px, calc(2vw - 14px), 14px)
           clamp(9px, calc(2vw - 7px), 21px);
}
.fleet h2 { margin: 0; font: 600 clamp(24px, 1.9vw, 30px)/1.12 var(--type); letter-spacing: -.035em; }
.fleet .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fleet-grid button { min-width: 0; overflow-wrap: anywhere; }
.fleet-grid strong { font-size: 15px; font-weight: 650; }
.fleet-open > .fleet-viewport > .fleet {
  visibility: visible;
  transform: translateX(0);
  box-shadow: -5px 6px 22px rgb(29 47 58 / 18%);
}
@media (min-width: 801px) {
  .fleet { border-color: var(--line); }
  .calc-shell.fleet-open, .fleet-open > .panel {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
  .fleet-open > .panel { border-left-color: transparent; }
}
@media (prefers-reduced-motion: no-preference) {
  .calc-shell, .calc-shell > .panel {
    transition-property: box-shadow, border-top-left-radius, border-bottom-left-radius, border-left-color;
    transition-duration: var(--drawer-duration);
    transition-timing-function: ease-in-out;
  }
  .fleet {
    transition: transform var(--drawer-duration) cubic-bezier(.22,.72,.25,1),
                box-shadow var(--drawer-duration) ease-in-out,
                visibility 0s var(--drawer-duration);
  }
  .fleet-open > .fleet-viewport > .fleet { transition-delay: 0s; }
}
@media (max-width: 800px) {
  .wrap > header { height: clamp(44px, 7dvh, 66px); }
  main {
    display: grid;
    grid-template: minmax(0, .85fr) minmax(0, 2fr) / minmax(0, 1fr);
    gap: 12px;
    padding-block: 12px;
  }
  .left { display: block; }
  .calc-shell { overflow: clip; }
  .calc-shell > .panel { grid-column: 1; order: 0; }
  .panel .contact-actions { margin-top: auto; padding-top: 14px; }
  .fleet { right: 0; width: 100%; z-index: 3; border-radius: inherit; }
  .fleet-scroll { padding: 4px 11px; }

}
.brand { color: var(--ink); text-decoration: none; }
/* Keep the introduction stable while the guide opens and let the native scroll move it out. */
.left[data-reading] > .photo { flex: none; height: var(--quiz-photo-height, 200px); }
.left[data-reading] > .service-detail[open] { min-block-size: var(--quiz-panel-height, 350px); }
@media (prefers-reduced-motion: no-preference) {
  .left[data-reading] > :is(#heading, .intro, .photo) {
    opacity: calc(1 - var(--quiz-progress, 0));
  }
  .left[data-reading] > .photo {
    scale: calc(1 - var(--quiz-progress, 0) * .08);
    transform-origin: top center;
  }
}
.service-detail > .detail { min-height: 48px; font-size: clamp(17px, 1.8vw, 21px); font-weight: 650; }
.service-detail > .detail b { margin-left: 12px; }
.service-questions [hidden] { display: none; }
.quiz-step { display: grid; gap: 9px; padding-block: 13px 18px; border-bottom: 1px solid var(--line); }
.service-questions h2 { margin: 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.25; }
.service-detail .quiz-step p { margin: 0; }
.quiz-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-choices button, .quiz-primary, .quiz-to-calculator {
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
}
.quiz-choices button[aria-pressed="true"] { border-color: var(--action); background: var(--surface); color: var(--action); }
.quiz-primary { border-color: var(--action); background: var(--action); color: white; }
.quiz-step .quiz-primary, .quiz-to-calculator { margin-top: 8px; }
.quiz-field { display: grid; gap: 4px; color: var(--muted); }
.quiz-field :is(input,select) { min-height: 44px; max-width: 100%; width: 100%; }
.quiz-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.quiz-work > .quiz-field { grid-template-rows: 1fr auto; min-width: 0; }
.counter.quiz-counter {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 6px;
  width: min(100%, 156px);
  align-self: end;
}
.quiz-counter input {
  min-height: var(--field-height);
  height: var(--field-height);
  padding: 0 5px;
  text-align: center;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.quiz-counter input[aria-invalid="true"] { border-color: #984444; }
.intro-callback { display:flex; gap:8px 16px; flex-wrap:wrap; margin-top:4px; }
.intro-callback a, .intro-callback button, .quiz-text-button {
  display:inline-flex; align-items:center; min-height:44px; width:fit-content; padding:0;
  border:0; background:transparent; color:var(--action); font-size:14px;
  text-decoration:underline; text-underline-offset:3px;
}
.quiz-checkout [hidden] { display:none; }
.quiz-route-fields { display:grid; gap:6px; }
.quiz-checkout .route-links { margin:0; }
.quiz-checkout .route-credit { color:var(--muted); }
.quiz-checkout .route-credit a { color:inherit; }
.quiz-review, .quiz-contacts { display:grid; gap:10px; }
.quiz-review { margin-top:6px; }
.quiz-contacts { padding-top:12px; }
.quiz-contacts .quiz-primary { width:fit-content; }
.quiz-contacts .privacy-consent { margin:0; }
.quiz-checkout [data-checkout="result"] { margin:0; font-weight:600; }
@media (prefers-reduced-motion: no-preference) {
  .left[data-reading] > .intro-callback { opacity:calc(1 - var(--quiz-progress, 0)); }
}
.service-reference { margin-block: 16px 12px; }
.service-reference > summary { text-decoration: underline; text-underline-offset: 3px; color: var(--action); }
@media (max-width: 420px) {
  .quiz-work { grid-template-columns: 1fr; }
}

.service-detail { order: 2; }
.service-detail::details-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 360ms ease-in-out, opacity 300ms ease-in-out,
              content-visibility 360ms allow-discrete;
}
.service-detail[open]::details-content { grid-template-rows: 1fr; opacity: 1; }
.service-copy { min-height: 0; overflow: hidden; }
.service-detail summary { cursor: pointer; list-style: none; }
.service-detail summary::-webkit-details-marker { display: none; }
.service-detail summary b { transition: transform .15s ease-out; }
.service-detail[open] summary b { transform: rotate(90deg); }
.service-detail p { margin: 10px 0; max-width: 62ch; font-size: 15px; line-height: 1.55; color: var(--muted); }
.service-detail p:last-child { margin-bottom: 14px; }
@media (prefers-reduced-motion: reduce) { .service-detail summary b { transition: none; } }
@media (prefers-reduced-motion: reduce) { .service-detail::details-content { transition: none; } }
@media (max-width: 420px) { nav { gap: 4px; } nav a { padding-inline: 10px; } }


/* The hidden longest title defines the same navigation column on every page. */
.wrap > .site-header {
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  grid-template-areas: "brand nav city";
  column-gap: clamp(16px, 2.2vw, 30px);
  align-items: center;
}
.site-header .brand { grid-area: brand; }
.brand-text { display: grid; line-height: 1.18; }
.brand-line, .brand-measure { grid-area: 1 / 1; white-space: nowrap; }
.brand-measure { visibility: hidden; }
.brand-slot { display: inline-grid; vertical-align: baseline; overflow: clip; }
.brand-slot::before, .brand-term { grid-area: 1 / 1; }
.brand-slot::before { content: "Перевозки"; visibility: hidden; }
.brand-term { justify-self: end; }
#orderError:empty, #chatError:empty { display: none; }
#orderError, #chatError { color: var(--muted); }
.site-header nav { grid-area: nav; }
.site-header .city { grid-area: city; text-align: right; justify-self: end; }
@media (max-width: 1180px) {
  .wrap > .site-header {
    height: auto;
    padding-block: 9px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand city" "nav nav";
    gap: 8px 12px;
  }
  .site-header .brand { justify-self: start; }
}
@media (max-width: 620px) {
  .site-header .brand { font-size: clamp(14px, 3.65vw, 17px); gap: 8px; }
  .brand-owner { display: block; }
  .site-header .city { max-width: 105px; font-size: 12px; }
  .site-header .mark { width: 20px; height: 24px; }
  .wrap > .site-header { padding-block: 8px; column-gap: 6px; }
}
@media (max-width: 360px) {
  .site-header .brand { gap: 6px; }
  .site-header .city { max-width: 92px; font-size: 11px; }
}

/* Service stops share a line; only the current service carries the copper mark. */
.site-header nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, max-content);
  width: max-content;
  gap: 0 clamp(12px, 1.5vw, 20px);
  align-items: stretch;
}
.site-header nav::before {
  content: "";
  position: absolute;
  inset: auto 34px 7px;
  height: 1px;
  background: #b7c6cc;
  pointer-events: none;
}
.site-header nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 3px 2px 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  line-height: 1.25;
  font-weight: 500;
  text-align: center;
}
@media (min-width: 1181px) {
  .site-header nav a { padding-block: 6px 4px; }
}
.site-header nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  box-sizing: border-box;
  width: 7px;
  height: 7px;
  border: 1px solid #8199a6;
  border-radius: 50%;
  background: var(--paper);
  transform: translateX(-50%);
}
.site-header nav a[aria-current=page] { color: var(--ink); font-weight: 650; }
.site-header nav a[aria-current=page]::after {
  bottom: 2px;
  width: 6px;
  height: 11px;
  border-color: #a2643d;
  border-radius: 1px;
  background: #b6764b;
  transform: translateX(-50%) skewY(-12deg);
}
@media (hover: hover) {
  .site-header nav a:hover { color: var(--action); }
  .site-header nav a:not([aria-current]):hover::after { border-color: var(--action); background: var(--action); }
}
.site-header nav a:focus-visible { outline-offset: 1px; border-radius: 3px; }
@media (max-width: 620px) {
  .site-header nav { width: min(100%, 310px); }
}
@media (forced-colors: active) {
  .site-header nav::before { background: ButtonText; }
  .site-header nav a[aria-current=page]::after { border-color: Highlight; background: Highlight; }
}


.order-review { grid-column: 1 / -1; min-width: 0; }
.order-review summary, .review-sheet button {
  color: var(--action);
  font-size: 13px;
  cursor: pointer;
  text-underline-offset: 3px;
}
.order-review summary { width: fit-content; padding-block: 4px; text-decoration: underline; }
.review-sheet {
  display: grid;
  gap: 8px;
  margin: 6px 0 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}
.review-sheet dt { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.review-sheet dd { margin: 2px 0 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.review-sheet button { border: 0; background: transparent; padding: 3px; text-decoration: underline; }
.review-price { padding-top: 8px; border-top: 1px solid var(--line); }
.review-price strong, .review-price small { display: block; }
.review-price small { margin-top: 3px; color: var(--muted); }

main { position: relative; }
.cookie-notice {
  position: absolute;
  grid-area: 1 / 1 / 2 / 2;
  left: 12px;
  bottom: 64px;
  z-index: 1;
  width: min(380px, calc(100% - 24px));
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  box-shadow: 0 4px 16px rgb(22 44 58 / 18%);
  font-size: 14px;
  line-height: 1.4;
}
.calc-shell.fleet-open { z-index: 2; }
.cookie-notice button {
  flex: none;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  font-weight: 600;
}
.cookie-notice button:hover { background: var(--surface); }
.cookie-notice button:focus-visible { outline-color: white; }
@media (max-width: 800px) {
  .cookie-notice {
    position: fixed;
    left: 0;
    bottom: env(safe-area-inset-bottom, 0px);
    z-index: 4;
    width: min(380px, 100%);
    padding: 10px 12px;
    font-size: 13px;
  }
}

.privacy-consent, .callback .privacy-consent {
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
#orderConsentRow { grid-column: 1 / -1; }
body[data-contact-consented] :is(#chatConsentRow, #orderConsentRow, #callbackConsent) { display: none; }
.privacy-consent a, .site-footer a { color: inherit; text-underline-offset: 2px; }
.site-footer {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  padding: 6px 0 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}
.cookie-notice { position: fixed; left: clamp(12px, 5vw, 72px); bottom: 52px; z-index: 4; }
.cookie-notice a { color: inherit; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions button { min-height: 40px; }
.legal-main { display: block; overflow-y: auto; padding-block: 24px; }
.legal-copy { max-width: 76ch; margin-inline: auto; padding-inline: 4px 12px; overflow-wrap: anywhere; }
.legal-copy h1 { font-size: clamp(28px, 3.5vw, 48px); line-height: 1.12; margin: 0 0 24px; }
.legal-copy h2 { font-size: 20px; line-height: 1.3; margin: 24px 0 12px; }
.legal-copy p, .legal-copy ul, .legal-copy ol { margin: 12px 0; }
.legal-copy li { margin-block: 8px; }
@media (max-width: 800px) {
  .cookie-notice { left: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 16px); max-width: 380px; }
  .site-footer { padding-block: 5px 7px; font-size: 10px; }
}

/* Mobile: collapsed calculator, persistent menu chat, compact service navigation. */
.calculator-toggle, .mobile-chat-toggle, .city-short, .service-marker { display: none; }
@media (max-width: 800px) {
  main:not(.legal-main) {
    --calculator-bar-height: 52px;
    grid-template-rows: minmax(0, 1fr) minmax(var(--calculator-bar-height), 0fr);
  }
  main.calculator-open { grid-template-rows: minmax(0, 0fr) minmax(var(--calculator-bar-height), 1fr); row-gap: 0; }
  main.calculator-open > .left > :not(.chat) { visibility: hidden; }
  .calc-shell { grid-template-rows: calc(var(--calculator-bar-height) - 2px) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); }
  .calculator-toggle {
    grid-area: 1 / 1; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    width: 100%; min-height: 50px; padding: 0 12px; border: 0; border-radius: 14px;
    background: var(--action); color: white; font-weight: 600; text-align: left; z-index: 4;
  }
  .calculator-toggle:focus-visible { outline-offset: -4px; outline-color: white; }
  .calculator-toggle svg { flex: none; }
  .calculator-titles { display: grid; min-width: 0; align-items: center; }
  .calculator-titles > span { grid-area: 1 / 1; }
  .calculator-title-collapsed { opacity: 1; }
  .calculator-title-open { opacity: 0; font-size: clamp(21px, 5.7vw, 25px); letter-spacing: -.035em; line-height: 1.15; }
  .calculator-open > .calculator-toggle { border-radius: 14px 14px 0 0; background: var(--surface); color: var(--ink); }
  .calculator-open > .calculator-toggle:focus-visible { outline-color: var(--action); }
  .calculator-open .calculator-title-collapsed { opacity: 0; }
  .calculator-open .calculator-title-open { opacity: 1; }
  .calc-shell > .panel > h2 { display: none; }
  .calc-shell > .panel { padding: 4px 12px 16px; scroll-padding-block: 8px; }
  .calc-shell > .panel > .controls { margin-top: 0; }
  .calculator-open > .calculator-toggle svg { transform: rotate(180deg); }
  .calc-shell > .panel { grid-area: 2 / 1; border: 0; border-radius: 0 0 14px 14px; visibility: hidden; opacity: 0; }
  .calc-shell.calculator-open > .panel { visibility: visible; opacity: 1; }
  .calc-shell > .fleet-viewport > .fleet { top: calc(var(--calculator-bar-height) - 2px); border-radius: 0 0 14px 14px; }
  .wrap > .site-header { position: relative; }
  .city-full { display: none; }
  .city-short { display: inline; white-space: nowrap; }
  .site-header nav { display: flex; width: auto; gap: 12px; align-items: center; flex-wrap: nowrap; }
  .site-header:has(.mobile-chat-toggle) nav { width: calc(100% - 52px); }
  .site-header nav::before, .site-header nav a::after { display: none; }
  .site-header nav a { display: flex; flex: none; min-height: 44px; padding: 0; gap: 0; font-size: clamp(12px, 3.5vw, 14px); white-space: nowrap; }
  .site-header nav .service-marker { display: block; width: 0; height: 10px; margin-right: 0; opacity: 0; background: #c79242; transform: skewY(-12deg); flex: none; }
  .site-header nav a[aria-current=page] .service-marker { width: 6px; margin-right: 6px; opacity: 1; }
  .mobile-chat-toggle {
    position: absolute; right: 0; bottom: 8px; display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: var(--action); color: white;
  }
  .panel .contact-actions { grid-template-columns: minmax(0, 1fr); }
  .panel .write-action { display: none; }
  .left > .chat {
    position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column;
    margin: 0; padding: 0 16px; height: auto; max-height: none; border: 0; border-radius: 0;
    background: var(--paper); overflow: hidden; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(12px); pointer-events: none;
  }
  .left > .chat.open { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
  .chat.open .chat-head { flex: none; position: static; min-height: 64px; padding-top: max(12px, env(safe-area-inset-top)); }
  .chat-head .close { flex: none; width: 44px; height: 44px; }
  .chat.open #chatLog { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-block: 14px; }
  .chat.open .chat-compose { flex: none; position: static; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .chat.open #chatError { flex: none; }
}
@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  main:not(.legal-main) { transition: grid-template-rows 380ms cubic-bezier(.22,.72,.25,1), row-gap 380ms ease; }
  .calculator-toggle { transition: background-color 380ms ease, color 380ms ease, border-radius 380ms ease; }
  .calculator-toggle svg { transition: transform 380ms ease; }
  .calculator-title-collapsed { transition: opacity 170ms ease 100ms; }
  .calculator-title-open { transition: opacity 170ms ease; }
  .calculator-open .calculator-title-collapsed { transition-delay: 0s; }
  .calculator-open .calculator-title-open { transition-delay: 100ms; }
  .calc-shell > .panel { transition: opacity 220ms ease, visibility 0s 380ms; }
  .calc-shell.calculator-open > .panel { transition-delay: 70ms, 0s; }
  .left > .chat { transition: opacity 220ms ease, transform 280ms ease, visibility 0s 280ms; }
  .left > .chat.open { transition-delay: 0s; }
}


@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  :root { view-transition-name: none; }
  .left > #heading { view-transition-name: service-heading; }
  .left > .intro { view-transition-name: service-intro; }
  .left > .photo { view-transition-name: service-photo; }
  .left > .service-detail { view-transition-name: service-detail; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 220ms; }
  .calculator-toggle { transition-property: background-color, color, border-radius, padding; }
}

@media (max-width: 800px) { .brand-term { justify-self: start; } }

/* Contacts stay reachable from the header without a permanent bottom bar. */
.header-contacts { grid-area: city; justify-self: end; display: grid; justify-items: end; gap: 2px; line-height: 1.25; }
.header-contacts .city { grid-area: auto; }
.contacts-intro { color: var(--muted); }
.contacts-list { display: grid; gap: 24px; margin: 32px 0; }
.contacts-list dt { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.contacts-list dd { margin: 0; font-size: clamp(20px, 4.8vw, 28px); }
.contacts-list a, .contacts-documents a, .contacts-back { color: var(--action); text-underline-offset: 4px; }
.contacts-documents { border-top: 1px solid var(--line); padding-bottom: 24px; }
.contacts-documents a { display: block; width: fit-content; margin-block: 12px; }
.contacts-back { display: inline-block; padding-block: 12px; }
@media (max-width: 800px) {
  .wrap { padding-inline: 8px; height: var(--site-viewport-height, 100dvh); }
  main:not(.legal-main) { padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
  .wrap .left { margin-inline: 0; padding-inline: 6px; }
}
@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  main > .left > :not(.chat) { transition: visibility 0s; }
  main.calculator-open > .left > :not(.chat) { transition-delay: 380ms; }
}

/* Desktop conversation leaves the page after the first sent message. */
.chat-widget-bar, .chat-drag-handle { display: none; }
.bubble.incoming { margin-left: 0; margin-right: auto; background: #e7ecee; border-radius: 12px 12px 12px 2px; }
@media (min-width: 801px) {
  .chat.widget {
    position: fixed; z-index: 8; left: var(--chat-x); bottom: var(--chat-bottom, 16px);
    width: var(--chat-width, 132px); height: var(--chat-height, 44px); margin: 0;
    border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
    box-shadow: 0 10px 36px rgb(29 47 58 / 20%); overflow: hidden;
  }
  .chat.widget:not(.open) { padding: 0; background: var(--action); color: white; }
  .chat.widget:not(.open) .chat-compose, .chat.widget:not(.open) #chatError { display: none; }
  .chat.widget:not(.open) .chat-widget-bar { display: flex; align-items: center; height: 42px; padding-inline: 6px; }
  #chatWidgetToggle { width: 100%; border: 0; background: transparent; color: inherit; font-weight: 650; cursor: grab; touch-action: none; user-select: none; }
  #chatWidgetToggle:focus-visible { outline-offset: -3px; }
  .chat.widget.dragging #chatWidgetToggle { cursor: grabbing; }
  .chat-widget-grip { width: 32px; height: 40px; flex: none; display: grid; place-items: center; }
  .chat-widget-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1; height: 100%; padding: 0 12px 0 4px; border: 0; background: transparent; color: inherit; font-weight: 650; }
  .chat.widget .chat-drag-handle { display: grid; place-items: center; flex: none; width: 32px; height: 40px; padding: 0; border: 0; background: transparent; color: inherit; cursor: grab; touch-action: none; }
  .chat.widget .chat-head { justify-content: start; gap: 8px; }
  .chat.widget .chat-head .close { margin-left: auto; flex: none; }
  .chat.widget.dragging, .chat.widget.dragging .chat-drag-handle { cursor: grabbing; user-select: none; }
}
@media (min-width: 801px) and (prefers-reduced-motion: no-preference) {
  .chat.widget:not(.dragging) {
    transition: width 280ms cubic-bezier(.22,.72,.25,1), height 280ms cubic-bezier(.22,.72,.25,1),
      left 280ms ease, bottom 280ms ease, background-color 280ms ease, color 280ms ease;
  }
}

.chat-compose-cloud, .chat-send-arrow { transform-box: fill-box; transform-origin: center; }
.chat-send-arrow { opacity: 0; transform: translateX(-3px) scale(.8); }
.ready-to-send .chat-compose-cloud { opacity: 0; transform: scale(.7); }
.ready-to-send .chat-send-arrow { opacity: 1; transform: translateX(0) scale(1); }
@media (prefers-reduced-motion: no-preference) {
  .chat-compose-cloud, .chat-send-arrow { transition: opacity 180ms ease, transform 180ms ease; }
}

/* Keep the first mobile row visible; disclose only the links that overflow it. */
.service-menu { grid-area: nav; min-width: 0; display: flex; align-items: center; gap: 6px; position: relative; }
.service-menu-more { position: relative; flex: none; }
.service-menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: var(--action); list-style: none; cursor: pointer; }
.service-menu-toggle::-webkit-details-marker { display: none; }
.service-menu-more[open] .service-menu-toggle { background: var(--surface); }
.service-menu-toggle:focus-visible { outline-offset: -3px; }
.menu-contact { display: grid; align-items: center; position: absolute; top: 100%; right: 0; z-index: 2; min-height: 44px; padding: 0 16px; border: 1px solid var(--stroke); border-radius: 8px; background: var(--paper); color: var(--action); text-underline-offset: 3px; }
.menu-contact[aria-current] { font-weight: 650; }
.site-header:has(.service-menu-more[open]) { position: relative; z-index: 12; }
@media (max-width: 800px) {
  .service-menu { width: 100%; display: flex; align-items: flex-start; column-gap: 6px; }
  .service-menu-panel { flex: 1; min-width: 0; }
  .site-header .service-menu nav { width: 100%; flex-wrap: wrap; column-gap: 12px; row-gap: 0; }
  .service-menu.ready .service-menu-panel { height: var(--service-menu-height); overflow: hidden; }
  .service-menu.ready:not(.expanded) .menu-overflow { visibility: hidden; }
  .service-menu .mobile-chat-toggle { position: static; flex: none; }
  .service-menu-more { position: static; }
}
@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  .service-menu.ready .service-menu-panel { transition: height 260ms cubic-bezier(.22,.72,.25,1); }
  .service-menu.expanded .menu-overflow { animation: menu-link-reveal 220ms ease both; }
  @keyframes menu-link-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
}

/* Keep the wider, closed drawer from adding a page scrollbar. */
body { overflow-x: clip; }
/* Vehicle thumbnails and dimensions share one selectable card. */
.fleet { width: var(--fleet-width, 370px); }
.fleet-scroll { padding: 8px 22px 12px 12px; }
.fleet-intro { margin-top: 7px; color: var(--muted); font-size: 13px; }
.fleet .fleet-grid { gap: 12px; margin-top: 18px; }
.fleet .vehicle-card {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; min-width: 0;
  border: 1px solid #cdd7da; border-radius: 12px; background: #fff; color: var(--ink);
  text-align: left; overflow-wrap: normal; box-shadow: 0 1px 2px rgb(29 47 58 / 3%);
}
.fleet .vehicle-card[aria-pressed=true] { background: #f3f8fa; color: var(--ink); border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.fleet .vehicle-card:hover { border-color: #688a9d; }
.vehicle-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; width: 100%; }
.fleet .vehicle-title { margin: 0; font-size: 15px; line-height: 1.25; min-height: 38px; }
.vehicle-check { width: 19px; height: 19px; flex: none; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.vehicle-card[aria-pressed=true] .vehicle-check { background: var(--action); color: #fff; border-color: var(--action); }
.vehicle-card[aria-pressed=true] .vehicle-check::after { content: '\2713'; font-size: 12px; }
.vehicle-picture { display: block; width: 100%; height: 112px; object-fit: contain; margin-block: -4px; }
.vehicle-dimensions { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 4px; width: 100%; padding: 10px 0; border-block: 1px solid #e4eaed; }
.vehicle-dimension { display: grid; gap: 2px; min-width: 0; }
.fleet .vehicle-dimension small { font-size: 11px; color: var(--muted); margin: 0; }
.vehicle-dimension b { font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fleet .vehicle-note { margin: 0; min-height: 30px; font-size: 11px; line-height: 1.35; color: var(--muted); }
.vehicle-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; }
.vehicle-rate { min-width: 0; }
.vehicle-rate b { font-size: 15px; font-weight: 650; white-space: nowrap; }
.fleet .vehicle-rate small { margin-top: 2px; font-size: 11px; color: var(--muted); }
.vehicle-select { font-size: 11px; color: var(--action); }
.vehicle-select::after { content: 'Выбрать'; }
.vehicle-card[aria-pressed=true] .vehicle-select::after { content: 'Выбрано'; }
.fleet .vehicle-card--labor { grid-column: 1 / -1; border-style: solid; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; }
.vehicle-card--labor .vehicle-heading { grid-column: 1; }
.fleet .vehicle-card--labor .vehicle-title { min-height: 0; }
.vehicle-card--labor .vehicle-note { grid-column: 1; min-height: 0; }
.vehicle-card--labor .vehicle-footer { grid-column: 2; grid-row: 1 / 3; align-self: center; gap: 18px; }
.fleet-dimension-note { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.vehicle-trigger .chosen-vehicle { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chosen-vehicle img { width: 64px; height: 36px; object-fit: contain; flex: none; }
.chosen-vehicle-copy { display: grid; gap: 2px; min-width: 0; text-align: left; }
.vehicle-trigger #carName { font: inherit; line-height: 1.2; color: var(--ink); }
.vehicle-trigger #carDimensions { font-size: 12px; line-height: 1.2; font-weight: 400; color: var(--muted); }
.vehicle-trigger.has-vehicle { min-height: var(--field-height); padding-block: 2px; }
@media (min-width: 801px) and (max-width: 1040px) {
  .fleet .fleet-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .calc-shell > .fleet-viewport > .fleet { width: 100%; }
  .fleet-scroll { padding: 8px 12px 12px 8px; }
  .fleet .fleet-grid { gap: 8px; }
  .fleet .vehicle-card { padding: 10px; gap: 8px; }
  .fleet .vehicle-title { font-size: 14px; min-height: 36px; }
  .vehicle-picture { height: 90px; }
  .vehicle-dimension b { font-size: 12px; }
  .vehicle-dimensions { gap: 5px; grid-template-columns: auto auto 1fr; }
  .fleet .vehicle-dimension small { font-size: 10px; }
  .vehicle-select { display: none; }
  .vehicle-card--labor .vehicle-footer { gap: 0; }
}
@media (max-width: 360px) {
  .fleet .fleet-grid { grid-template-columns: 1fr; }
  .fleet .vehicle-card { display: grid; grid-template-columns: 1fr 1.15fr; column-gap: 10px; }
  .vehicle-heading { grid-column: 1 / -1; }
  .fleet .vehicle-title { min-height: 0; }
  .vehicle-picture { grid-row: 2 / 4; height: 96px; align-self: center; }
  .vehicle-dimensions { grid-column: 2; grid-template-columns: 1fr; padding: 0; border: 0; }
  .vehicle-dimension { display: flex; justify-content: space-between; gap: 6px; }
  .vehicle-note { grid-column: 2; }
  .vehicle-footer { grid-column: 1 / -1; }
  .vehicle-card--labor .vehicle-footer { grid-column: 2; grid-row: 2; }
  .vehicle-card--labor .vehicle-note { grid-column: 1; }
}

.vehicle-chevron { flex: none; color: var(--action); transition: transform 220ms ease; }
.vehicle-trigger[aria-expanded=true] .vehicle-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .vehicle-chevron { transition: none; } }

.fleet-chat-link { padding: 0; border: 0; border-radius: 0; background: none; color: var(--action); font: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Horizontal version of the skewed brand panel; source photos stay unchanged. */
.left > .photo { border-radius: 8px; clip-path: url(#service-photo-mask); }

/* The drawer slides inside a stationary opening behind the calculator seam. */
.fleet-viewport { display: contents; }
@media (min-width: 801px) {
  .fleet-viewport {
    position: absolute; inset-block: 0; right: calc(100% - var(--drawer-overlap));
    width: var(--fleet-width, 370px); display: block; overflow: clip;
    z-index: 1; pointer-events: none;
  }
  .fleet-viewport > .fleet { inset: 0; width: 100%; }
  .fleet-open > .fleet-viewport > .fleet { pointer-events: auto; }
}

/* Keep view choice separate from the selected vehicle; compact, reachable controls. */
.fleet { container: fleet / inline-size; }
.fleet-header { position: sticky; top: -8px; z-index: 2; display: flex; align-items: center; gap: 12px; padding-block: 4px 10px; background: var(--surface); }
.fleet-heading { flex: 1; min-width: 0; }
.fleet-heading h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.fleet-heading .fleet-intro { margin: 6px 0 0; font-size: 12px; line-height: 1.35; }
.fleet-toolbar { display: flex; flex: none; align-items: center; gap: 4px; }
.fleet-view { display: flex; align-items: center; gap: 2px; }
.fleet-toolbar button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1; }
.fleet-toolbar svg { flex: none; }
.fleet-toolbar button:hover { background: #dce6eb; color: var(--ink); }
.fleet-toolbar button[aria-pressed=true] { background: #fff; color: var(--action); box-shadow: 0 1px 3px rgb(29 47 58 / 8%); }
.fleet-toolbar .fleet-close { margin-left: 0; }
@container fleet (max-width: 500px) {
  .fleet-toolbar button span { display: none; }
  .fleet-toolbar button { width: 40px; height: 44px; padding: 0; }
  .fleet-heading h2 { font-size: 20px; }
}
@container fleet (max-width: 340px) {
  .fleet-header { gap: 6px; }
  .fleet-toolbar { gap: 0; }
  .fleet-toolbar button { width: 36px; }
  .fleet-heading h2 { font-size: 18px; }
  .fleet-heading .fleet-intro { font-size: 11px; }
}
.fleet.fleet-list .fleet-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.fleet.fleet-list .vehicle-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; padding: 12px; }
.fleet-list .vehicle-picture { grid-column: 1; grid-row: 1 / 5; width: 88px; height: 64px; margin: 0; align-self: center; }
.fleet-list .vehicle-heading { grid-column: 2; grid-row: 1; align-items: center; }
.fleet.fleet-list .vehicle-title { min-height: 0; font-size: 14px; }
.fleet-list .vehicle-dimensions { grid-column: 2; grid-row: 2; grid-template-columns: 1fr 1fr 1.2fr; padding: 0; border: 0; gap: 6px; }
.fleet-list .vehicle-dimension { display: grid; gap: 1px; justify-content: start; }
.fleet-list .vehicle-dimension b { font-size: 12px; }
.fleet.fleet-list .vehicle-dimension small { font-size: 10px; }
.fleet.fleet-list .vehicle-note { grid-column: 2; grid-row: 3; min-height: 0; }
.fleet-list .vehicle-footer { grid-column: 2; grid-row: 4; margin: 0; }
.fleet-list .vehicle-rate { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; }
.fleet.fleet-list .vehicle-rate small { margin: 0; }
.fleet.fleet-list .vehicle-card--labor { grid-template-columns: 1fr; }
.fleet-list .vehicle-card--labor :is(.vehicle-heading, .vehicle-note, .vehicle-footer) { grid-column: 1; grid-row: auto; }
@media (max-width: 420px), (min-width: 801px) and (max-width: 1040px) {
  .fleet.fleet-list .vehicle-card { grid-template-columns: 64px minmax(0, 1fr); column-gap: 10px; padding: 10px; }
  .fleet-list .vehicle-picture { width: 64px; height: 48px; }
  .fleet.fleet-list .vehicle-card--labor { grid-template-columns: 1fr; }
  .fleet-toolbar button { min-height: 44px; padding-inline: 7px; }
}

/* A single moving silhouette avoids doubled shadows at the drawer/panel seam. */
@media (min-width: 801px) {
  .calc-shell { isolation: isolate; }
  .calc-shell, .calc-shell:is(.has-data, .fleet-open, .field-hover, .field-focus),
  .fleet-open > .fleet-viewport > .fleet { box-shadow: none; }
  .calc-shell::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    border-radius: 15px; box-shadow: 0 8px 26px -8px rgb(29 47 58 / 0%), 0 2px 7px rgb(29 47 58 / 0%);
  }
  .calc-shell:is(.has-data, .fleet-open, .field-hover, .field-focus)::before {
    box-shadow: 0 8px 26px -8px rgb(29 47 58 / 27%), 0 2px 7px rgb(29 47 58 / 9%);
  }
  .calc-shell.fleet-open::before { left: calc(-1 * var(--fleet-width, 370px) + var(--drawer-overlap)); }
}
@media (min-width: 801px) and (prefers-reduced-motion: no-preference) {
  .calc-shell::before { transition: left var(--drawer-duration) cubic-bezier(.22,.72,.25,1), box-shadow var(--drawer-duration) ease-in-out; }
}

/* Recalculation is visible alongside the previous amount without adding a row. */
.estimate { container-type: inline-size; }
.estimate-head { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 10px; align-items: center; min-height: 46px; }
.estimate-head #total.priced { font-size: clamp(24px, 10cqi, 40px); white-space: nowrap; }
.quote-progress { position: relative; display: grid; place-items: center; width: 24px; height: 30px; color: var(--action); opacity: 0; }
.quote-spinner { box-sizing: border-box; width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: currentColor; border-radius: 50%; }
.quote-progress-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.quote-progress.is-pending { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .quote-progress { transition: opacity 160ms ease; }
  .quote-progress.is-pending .quote-spinner { animation: quote-spin 750ms linear infinite; }
}
@keyframes quote-spin { to { transform: rotate(360deg); } }

/* Tariff comparison remains inside the calculator scroll area. */
.tariff-choice{margin:12px 0 4px;min-width:0;border-top:1px solid var(--line);padding-top:12px}
.tariff-choice p{font-size:14px;margin:0 0 8px}.tariff-choice small{display:block;color:var(--muted);font-size:12px;line-height:1.45;margin-top:8px}
.tariff-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tariff-options button{display:grid;gap:4px;min-height:var(--field-height);text-align:left;border:1px solid var(--stroke);border-radius:9px;padding:10px;color:var(--ink);background:var(--field);transition:background .2s,border-color .2s}
.tariff-options button[aria-pressed=true]{border-color:var(--action);background:var(--action);color:white}.tariff-options button:disabled{opacity:.6}.tariff-options span{font-variant-numeric:tabular-nums;font-size:14px}
.body-height{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;margin-top:12px}.body-height select{width:110px;height:var(--field-height);padding:0 10px}
.point-team{border:0;padding:0;margin:18px 0 0;min-width:0}.point-team legend{font-size:14px;font-weight:600;padding:0}.point-team>small{overflow-wrap:anywhere}.point-team .clockrow{margin-top:8px;font-size:14px}
.intercity-warning{white-space:pre-line;color:var(--ink)!important;border-left:3px solid var(--accent,#bc8258);padding-left:10px}

.passenger-control{margin:16px 0}.passenger-control>div:first-child{min-width:0}.passenger-control small{font-size:12px;line-height:1.4}

/* Service editor: fixed heading/footer, only the middle scrolls. */
.fleet>.fleet-header{flex:none;margin:0 22px 12px 12px;position:static;padding:6px 0 12px;border-bottom:1px solid var(--line)}
.fleet .fleet-scroll{min-height:0;padding-top:0;padding-bottom:16px;overscroll-behavior:contain}
.fleet-footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 22px 0 12px;border-top:1px solid var(--line);padding-top:12px;direction:ltr}
.fleet-footer .fleet-help{border:0;padding:0;margin:0;font-size:12px;line-height:1.5}
.fleet-help strong{display:block;font-size:13px;margin-bottom:4px}
.fleet-help a,.fleet-chat-link{font:inherit}
.option-done{border:0;border-radius:9px;background:var(--action);color:#fff;font-weight:650;min-height:44px;padding:10px 24px}
.selected-car{display:flex;align-items:center;gap:10px;padding:12px;background:var(--field);border:1px solid var(--line);border-radius:10px}
.selected-car>div{flex:1;min-width:0;display:grid;gap:4px}.selected-car strong{font-size:14px}.selected-car small{font-size:12px;color:var(--muted)}
.selected-car img{width:72px;height:48px;object-fit:contain}
.fleet-text-button,.heavy-remove{padding:8px 0;background:none;color:var(--action);border:0;font:inherit;font-size:12px;min-height:40px}
.service-option{display:flex;align-items:flex-start;gap:10px;padding:14px 0;cursor:pointer;font-size:14px;line-height:1.45}
.service-option input[type=checkbox]{flex:none;width:19px;height:19px;margin:1px 0 0;accent-color:var(--action)}
.service-option small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.crew-options{border-top:1px solid var(--line);margin-top:8px;padding-top:4px}
.crew-options .crewrow{margin-bottom:14px;padding-top:14px}.crew-options .crewrow small{font-size:12px;margin-top:4px}
.crew-trigger-row{margin-top:16px}
.crew-quick{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
.crew-quick .vehicle-trigger{min-width:0;margin:0}
.crew-quick .counter{margin:0}
@media(max-width:380px){.crew-quick{gap:6px}.crew-quick .vehicle-trigger{padding-inline:10px;font-size:13px}.crew-quick .counter{gap:4px}}
.selected-options{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:5px;font-size:12px;line-height:1.45;color:var(--muted)}
.selected-options li{padding-left:12px;position:relative;overflow-wrap:anywhere}.selected-options li:before{content:'';position:absolute;left:0;top:.5em;width:5px;height:5px;border-radius:1px;background:var(--action);opacity:.6}
.option-hint{font-size:12px!important;line-height:1.5!important;color:var(--muted);margin:6px 0 12px}
.option-fold{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden}
.option-fold>div{min-height:0;overflow:hidden}.option-fold.expanded{grid-template-rows:1fr;opacity:1;visibility:inherit}
.option-field{display:grid;gap:6px;font-size:13px}.option-field small{font-size:11px;color:var(--muted)}
.option-field textarea,.option-field input,.heavy-head input,.handling-point select,.handling-point textarea{width:100%;min-width:0;box-sizing:border-box;padding:10px 12px;border:1px solid var(--stroke);border-radius:8px;min-height:44px;background:var(--field);color:var(--ink);font:inherit;font-size:14px}
.option-field textarea,.handling-point textarea{resize:vertical;max-height:140px}
.material-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.material-label{display:grid;gap:4px;min-width:0}.material-label strong{font-size:13px;font-weight:550}.material-label small{font-size:12px;color:var(--muted)}
.material-counter{flex:none;gap:2px}.material-counter button{min-width:36px;width:36px;padding:0;font-size:20px;min-height:44px}
.material-counter input{width:50px;min-width:0;height:44px;padding:0;border:0;border-radius:5px;background:transparent;color:var(--ink);text-align:center;font:inherit;font-size:16px;font-variant-numeric:tabular-nums;appearance:textfield}
.material-counter input::-webkit-inner-spin-button,.material-counter input::-webkit-outer-spin-button{appearance:none;margin:0}
.materials-total{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:12px 0;font-size:13px}
.heavy-item{padding:12px;background:var(--field);border:1px solid var(--line);border-radius:10px;margin-bottom:10px}
.heavy-head{display:flex;gap:12px;align-items:center;margin-bottom:12px}.heavy-head input{flex:1}.heavy-remove{flex:none}
.option-add{background:var(--field);color:var(--action);border:1px solid var(--line);border-radius:8px;padding:10px 12px;min-height:44px;font:inherit;font-size:13px}
.handling-point{min-width:0;border:1px solid var(--line);padding:12px;border-radius:10px;margin:18px 0 0}
.handling-point legend{font-size:14px;font-weight:600;padding:0 5px}.handling-address{display:block;color:var(--muted);font-size:12px;line-height:1.45;margin-bottom:10px;overflow-wrap:anywhere}
.handling-point .option-field{margin-top:10px}#riggingHandling h3{font-size:15px;margin:18px 0 6px}#riggingQuote{margin:12px 0 0}
#reviewOptions{white-space:pre-line}#chooseCrew[aria-expanded=true] .vehicle-chevron{transform:rotate(180deg)}
@media(prefers-reduced-motion:no-preference){.option-fold{transition:grid-template-rows 240ms ease,opacity 180ms ease,visibility 0s 240ms}.option-fold.expanded{transition-delay:0s}.option-done{transition:background 180ms ease}}
@media(max-width:800px){.fleet>.fleet-header{margin:0 12px 10px 8px}.fleet-footer{margin-inline:8px 12px;gap:8px;padding-top:8px}.fleet-footer .fleet-help{font-size:11px}.option-done{padding-inline:22px}.option-field input,.option-field textarea,.heavy-head input,.handling-point select,.handling-point textarea{font-size:16px}}
@media(max-width:360px){.selected-car img{width:48px;height:36px}.selected-car{gap:6px;padding:8px}.material-row{gap:6px}.material-counter input{width:44px}.material-counter button{width:32px;min-width:32px}.option-done{padding-inline:16px}}

.option-attention{display:block;margin-top:8px;border:0;border-left:3px solid var(--accent,#bc8258);padding:4px 8px;background:none;color:var(--ink);font:inherit;font-size:12px;line-height:1.5;text-align:left;text-decoration:underline;text-underline-offset:3px}

/* Use the available screen for the active form while the mobile keyboard is up. */
@media (max-width: 800px) {
  .calc-shell.calculator-open.short-viewport {
    position: fixed; inset-inline: 0; top: var(--site-viewport-top, 0px);
    height: var(--site-viewport-height, 100dvh); z-index: 8; border-radius: 0;
    padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  }
  .calc-shell.short-viewport.calculator-open > .calculator-toggle { border-radius: 0; }
  .calc-shell.short-viewport.fleet-open > .calculator-toggle { visibility: hidden; }
  .calc-shell.short-viewport.fleet-open > .fleet-viewport > .fleet {
    inset-block: 0; padding-block: max(2px, env(safe-area-inset-top)) max(4px, env(safe-area-inset-bottom));
    border-radius: 0;
  }
  .short-viewport .fleet > .fleet-header { padding-block: 0; margin-bottom: 4px; }
  .short-viewport .fleet-intro, .short-viewport .fleet-help strong { display: none; }
  .short-viewport .fleet-footer { padding-top: 4px; }
  .short-viewport .fleet-scroll { scroll-padding-block: 8px; }
}

/* Leave the lower edge to the edited field. Keep Done in the drawer toolbar. */
@media (max-width: 800px) {
  .calc-shell.keyboard-editing.fleet-open .fleet {
    display: grid; grid-template: auto minmax(0, 1fr) / minmax(0, 1fr) auto auto;
    align-items: center; column-gap: 4px;
  }
  .keyboard-editing .fleet > .fleet-header, .keyboard-editing .fleet-footer { display: contents; }
  .keyboard-editing .fleet-heading { grid-area: 1 / 1; padding-inline-start: 8px; }
  .keyboard-editing .fleet-heading h2 { font-size: 17px; }
  .keyboard-editing .fleet-toolbar { grid-area: 1 / 3; }
  .keyboard-editing .fleet-footer .fleet-help { display: none; }
  .keyboard-editing .option-done { grid-area: 1 / 2; min-height: 44px; padding: 4px 12px; font-size: 14px; }
  .keyboard-editing .fleet .fleet-scroll {
    grid-area: 2 / 1 / 3 / -1; align-self: stretch; border-top: 1px solid var(--line);
    padding-block: 6px 8px;
  }
}

.route-entry { display:flex; align-items:flex-start; gap:6px; min-width:0; }
.route-entry > .route-row { flex:1; min-width:0; }
.route-handling { flex:none; min-height:var(--field-height); padding:0 10px; border:1px solid var(--stroke); border-radius:8px; background:var(--field); color:var(--action); font:inherit; font-size:14px; }
.route-handling:hover:not(:disabled) { border-color:var(--action); }
.route-handling:disabled { color:var(--muted); opacity:.65; }
.handling-dialog { width:min(360px,calc(100vw - 24px)); max-width:100%; max-height:calc(100dvh - 24px); padding:18px; overflow:auto; overscroll-behavior:contain; }
.handling-dialog h2 { margin:0; font-size:22px; }
#handlingAddress { margin:4px 0 14px; color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
.handling-path { display:flex; align-items:center; gap:8px; min-height:var(--field-height,44px); padding:0 10px; border:1px solid var(--stroke); border-radius:8px; background:var(--field); }
.handling-path:focus-within { border-color:var(--action); }
.handling-path label { display:flex; align-items:center; gap:6px; min-width:0; color:var(--muted); font-size:13px; }
.handling-path label:first-child { flex:1; }
.handling-path select,.handling-path input { min-width:0; min-height:42px; padding:0; border:0; border-radius:0; background:transparent; color:var(--ink); font:inherit; font-size:16px; }
.handling-path select { flex:1; }
#handlingFloorField { padding-left:8px; border-left:1px solid var(--line); }
#handlingFloor { width:3.4em; }
#handlingMore { margin:10px 0; }
#handlingMore summary { padding:5px 0; color:var(--action); font-size:14px; cursor:pointer; }
#handlingMore .option-field { margin-top:8px; }
#handlingMore small { color:var(--muted); font-size:12px; }
.handling-actions { display:flex; justify-content:flex-end; gap:8px; }
#handlingCancel { padding:6px 12px; border:0; border-radius:8px; background:transparent; color:var(--muted); }
@media(max-width:420px){.route-handling{padding-inline:7px;font-size:13px}.handling-dialog{padding:14px}}
