:root {
  --outer:clamp(10px,1vw,22px);
  --panel-radius:clamp(18px,2.1vw,32px);
  --inset:clamp(24px,3.8vw,76px);
  --ground:#fff;
  --royal:#193c87;
  --header-height:clamp(85px,6.6vw,120px);
  --control:clamp(21px,1.43vw,28px);
  --reading:clamp(22px,1.68vw,32px);
}
body {background:var(--ground);color:#152544;}
.masthead {margin:var(--outer);border-radius:var(--panel-radius);top:6px;box-shadow:none;}
.mast-top.wrap {width:100%;padding:8px clamp(16px,2.4vw,48px);min-height:var(--header-height);gap:clamp(14px,2vw,40px);}
.wordmark img {width:clamp(150px,13vw,247px);}
.brand-panel {padding:0;}
.brand-service,.mast-nav a,.mobile-menu nav a {font-size:var(--control);}
.header-phone a {font-size:clamp(23px,1.7vw,34px);}
.header-request {border:0;background:#eff1f4;}
main > .road-hero {
  --hero-ink: #132337;
  position:relative;
  isolation:isolate;
  display:grid;
  align-items:center;
  margin-inline:var(--outer);
  border-radius:var(--panel-radius);
  box-shadow:0 6px 16px -10px rgb(19 35 55 / 28%);
  min-height:clamp(580px,calc(100svh - var(--header-height) - 4 * var(--outer) - 72px),890px);
  padding:clamp(38px,3.8vw,72px) 0;
  background:var(--hero-ink);
}
.road-hero .scene {position:absolute;inset:0;z-index:-1;border-radius:inherit;}
.road-hero .scene img {
  position:absolute;inset:0 0 0 auto;width:72%;height:100%;
  object-fit:cover;object-position:58% 54%;
  mask-image:linear-gradient(90deg,transparent 0%,#000 24%);
}
.road-hero .scene::before {
  z-index:1;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  mask-image:linear-gradient(90deg,#000 26%,transparent 49%);
}
.road-hero .scene::after {
  z-index:2;background:linear-gradient(90deg,var(--hero-ink) 8%,rgba(19,35,55,.98) 24%,rgba(19,35,55,.84) 33%,rgba(19,35,55,.18) 45%,transparent 54%);
}
.road-hero .hero-layout {
  width:min(calc(100% - var(--inset) * 2),1720px);
  display:flex;flex-direction:column;align-items:flex-start;
}
.road-hero h1 {
  max-width:min(40vw,760px);margin:0 0 .28em;
  font-size:clamp(50px,4.7vw,87px);line-height:1.02;letter-spacing:-.05em;text-wrap:initial;
}
.road-hero .offer {max-width:min(38vw,600px);font-size:clamp(24px,2.1vw,38px);font-weight:550;line-height:1.2;text-wrap:balance;}
.hero-vehicles {
  display:flex;flex-wrap:wrap;gap:6px 16px;max-width:min(39vw,620px);
  margin:12px 0 0;padding:0;list-style:none;
  font-size:clamp(18px,1.3vw,24px);line-height:1.35;
}
.hero-vehicles li {display:flex;align-items:center;gap:7px;}
.hero-vehicles li::before {content:"";width:5px;height:5px;border-radius:50%;background:#ffaba5;}
.hero-meta {margin-bottom:clamp(16px,1.55vw,28px);font-size:clamp(18px,1.32vw,26px);}
.road-sign {font:inherit;font-weight:750;white-space:nowrap;flex-shrink:0;}
.hero-contact {order:1;}
.road-hero .hero-figures {gap:clamp(18px,2.1vw,42px);margin:clamp(22px,2vw,38px) 0;}
.hero-figures > div + div {margin:0;padding:0;border:0;}
.hero-figures dt {font-size:clamp(18px,1.23vw,24px);}
.hero-figures dd {font-size:clamp(35px,3vw,60px);}
.hero-buttons {max-width:39vw;gap:8px 18px;}
[data-action] .action,#request-form button,#action-dialog button,.callback-link,
.catalog-links a,.center-map-choices button,.series-controls button,.more-photos summary {
  border-radius:999px;font-size:var(--control);line-height:1.18;font-weight:600;min-height:58px;padding:14px 22px;
}
[data-action] .action::before,#request-form button::before,#action-dialog button::before {border-radius:inherit;clip-path:none;}
.road-hero .hero-request {color:white;background:transparent;min-height:48px;padding:8px 4px;text-decoration:underline;text-underline-offset:.25em;}
.road-hero .hero-request:hover {text-decoration-thickness:2px;}
.task-choices {background:transparent;border:0;margin:var(--outer);}
.task-list.wrap {width:100%;gap:var(--outer);}
.task-list a,.task-list a:first-child,.task-list a + a {padding:clamp(16px,1.6vw,32px);border:0;border-radius:999px;background:#f1f4f8;font-size:clamp(20px,1.65vw,32px);font-weight:550;min-height:72px;}
.task-list a:hover,.task-list a:focus-visible {background:#e2e8f4;}
.task-list svg {width:1.5em;height:1.5em;}
main > .container {width:min(calc(100% - var(--inset) * 2),1720px);max-width:none;--section-space:clamp(32px,3.9vw,76px);}
.container > section,.container > #area,section + section,.network-window,.centers-directory li,.catalog-brands li,#faq-list details,.price-list > div {border:0;}
.container h2 {font-size:clamp(37px,4vw,80px);line-height:1.07;font-weight:650;}
.container h3 {font-size:clamp(28px,2.35vw,46px);font-weight:600;}
.container p,.dispatch-guide li,#work-list li,.center-address,.center-contacts a,.catalog-brands li,.container .centers-shop,.request-panel p,#faq-list summary,.price-list,#rate-list {font-size:var(--reading);line-height:1.45;}
.catalog-links a,.catalog-links a:first-child {font-size:var(--control);border-radius:999px;padding:16px 22px;}
.catalog-links a:not(:first-child),.more-photos summary {background:white;text-decoration:none;}
.container :is(.catalog-brands,.request-panel,.roadside-photo img,.onsite-photo img,#onsite-work,.photo-grid img,.repair-stage,.centers-map),.container > #price {border-radius:22px;}
.container #onsite-work .onsite-photo img {max-height:none;aspect-ratio:1.45;object-fit:cover;}
.centers-directory li {background:white;padding:clamp(18px,2vw,38px);border-radius:20px;margin-block-end:12px;}
.centers-directory li:last-child {padding-bottom:clamp(18px,2vw,38px);}
.center-map-choices button,.series-controls button {border-radius:999px;font-size:var(--control);}
.container #request-form :is(input,textarea) {font-size:var(--reading);min-height:64px;border-radius:16px;}
#request-form label,.request-extras summary,.gallery-link,.repair-originals a,.more-photos summary {font-size:var(--control);}
.network-window {border-radius:18px;}
@media (min-width:1200px) {
  .mast-nav {gap:clamp(16px,1.8vw,42px);}
}
@media (max-width:1339px) {.brand-service {display:none;}}
@media (max-width:999px) {
  .task-list {grid-auto-flow:row;}
}
@media (max-width:767px) {
  :root {--outer:8px;--inset:16px;--header-height:64px;--control:19px;--reading:21px;}
  .task-list a,.task-list a:first-child {min-height:56px;padding:12px 20px;font-size:20px;}
  .container h2 {font-size:clamp(35px,8vw,49px);}
  .container .catalog-brands {background:#f1f4f8;}
  .container #price .callback-link {width:100%;justify-content:center;}
  .center-map-choices {display:flex;flex-wrap:wrap;gap:4px;}
  .center-map-choices button {flex:1 0 auto;font-size:16px;padding-inline:7px;white-space:nowrap;}
}
@media (max-width:900px) {
  main > .road-hero {
    --photo-height:clamp(235px,63vw,430px);
    min-height:0;
    padding:clamp(24px,4vw,36px) 0 calc(var(--photo-height) + 10px);
  }
  .road-hero .scene img {
    inset:auto 0 0;width:100%;height:calc(var(--photo-height) + 78px);
    object-position:50% 62%;mask-image:linear-gradient(180deg,transparent,#000 30%);
  }
  .road-hero .scene::before {display:none;}
  .road-hero .scene::after {background:linear-gradient(to bottom,var(--hero-ink),transparent 40%);inset:auto 0 0;height:calc(var(--photo-height) + 78px);}
  .road-hero h1,.road-hero .offer {max-width:min(100%,36rem);}
  .road-hero h1 {font-size:clamp(39px,7vw,60px);}
  .road-hero .offer {font-size:clamp(24px,4vw,32px);}
  .hero-vehicles {max-width:100%;margin-top:10px;gap:4px 12px;}
  .hero-meta {gap:9px;font-size:18px;margin-bottom:16px;}
  .hero-contact {order:0;margin-top:18px;width:100%;max-width:none;}
  .hero-buttons {display:flex;max-width:none;gap:4px 16px;}
  .road-hero .hero-figures {display:flex;gap:clamp(12px,4vw,35px);margin:18px 0 0;}
  .road-hero .hero-figures > div + div {margin:0;padding:0;}
  .hero-figures dt {font-size:18px;}
  .hero-figures dd {font-size:clamp(32px,6.6vw,43px);}
}
@media (max-width:540px) {
  main > .road-hero {
    --photo-height:clamp(168px,54vw,264px);
    padding-block:clamp(16px,4.6vw,24px) var(--photo-height);
  }
  .road-hero .scene img {
    height:calc(var(--photo-height) + 32px);
    object-position:58% 67%;
    mask-image:linear-gradient(to bottom,transparent 24px,#000 30%);
  }
  [data-scene="driver"] .road-hero .scene img {object-position:77% 55%;}
  [data-scene="crew"] .road-hero .scene img {object-position:71% 64%;}
  .road-hero .scene::after {display:none;}
  .road-hero .hero-layout {z-index:1;}
  .hero-meta {font-size:clamp(16px,4.3vw,18px);margin-bottom:10px;}
  .road-hero h1 {font-size:clamp(39px,10.6vw,55px);margin-bottom:8px;}
  .road-hero .offer {font-size:clamp(22px,5.75vw,28px);line-height:1.16;}
  .hero-vehicles {margin-top:8px;gap:3px 10px;font-size:clamp(16px,4.2vw,18px);}
  .hero-vehicles li {gap:5px;}
  .hero-vehicles li:first-child::before {display:none;}
  .hero-contact {margin-top:14px;}
  .hero-buttons > span {width:100%;}
  .hero-buttons .action {width:100%;}
  .hero-buttons .phone-verb {display:none;}
  .road-hero .hero-contact .action {min-height:52px;padding:12px;font-size:clamp(18px,4.8vw,22px);}
  .road-hero .hero-figures {
    display:grid;
    grid-template-columns:max-content max-content max-content;
    justify-content:space-between;
    gap:10px;width:100%;margin:16px 0 0;
  }
  .hero-figures > div {gap:3px;}
  .hero-figures dd {font-size:clamp(31px,8.2vw,42px);}
  .hero-figures dt {font-size:clamp(16px,4.2vw,18px);line-height:1.25;}
}
@media (min-width:620px) and (max-width:960px) and (max-height:500px) {
  main > .road-hero {min-height:0;padding:12px 0;}
  .road-hero .hero-layout {width:calc(100% - 40px);}
  .road-hero .scene img {
    inset:0 0 0 auto;width:60%;height:100%;
    object-position:center 63%;mask-image:linear-gradient(90deg,transparent,#000 18%);
  }
  .road-hero .scene::before,.road-hero .scene::after {display:none;}
  .hero-meta {font-size:16px;line-height:1.25;margin-bottom:7px;}
  .road-hero .road-sign {padding:3px 7px;line-height:1;}
  .road-hero h1,.road-hero .offer,.hero-vehicles,.hero-contact {max-width:47%;}
  .road-hero h1 {margin-bottom:5px;font-size:clamp(30px,4.1vw,38px);}
  .road-hero .hero-accent {display:inline;white-space:nowrap;}
  .road-hero .offer {font-size:20px;text-wrap:initial;}
  .hero-vehicles {font-size:16px;margin-top:6px;gap:2px 8px;}
  .hero-contact {margin-top:10px;order:0;}
  .hero-buttons .phone-verb {display:none;}
  .road-hero .hero-contact .action {min-height:48px;padding:8px 18px;font-size:19px;}
  .road-hero .hero-figures {margin:10px 0 0;gap:18px;}
  .hero-figures > div {gap:2px;}
  .hero-figures dd {font-size:28px;}
  .hero-figures dt {font-size:16px;}
}
@media (prefers-reduced-motion:no-preference) {
  html {scroll-behavior:smooth;}
  .task-list a,.callback-link,.catalog-links a,.center-map-choices button,.series-controls button,[data-action] .action {transition:background-color .2s,color .2s,transform .2s;}
  .task-list a:hover,.catalog-links a:hover {transform:translateY(-2px);}
  .road-hero .hero-layout {animation:hero-arrival .55s ease-out;}
  .road-hero .scene img {animation:scene-arrival .8s cubic-bezier(.2,.7,.2,1);}
  @keyframes hero-arrival {from{opacity:.82;}to{opacity:1;}}
  @keyframes scene-arrival {from{transform:scale(1.025);}to{transform:scale(1);}}
}

.mast-nav a,.mobile-menu nav a,.header-request {font-weight:550;}

@media (max-width:767px), (max-width:960px) and (max-height:500px) {
  html {
    --dock-space: calc(80px + env(safe-area-inset-bottom, 0px));
    scroll-padding-block: 0 var(--dock-space);
  }
  body {
    padding-block-start: env(safe-area-inset-top, 0px);
    padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  }
  .masthead {position:static;margin-block:0;}
  .task-list a:is([href="#area"], [href="#price"]) {display:none;}
  .mast-top.wrap {min-height:58px;padding:4px var(--inset);}
  .mast-top .wordmark img {width:116px;}
  .masthead :is(.header-phone, .mobile-menu), .road-hero .hero-request {display:none;}
  .masthead .header-request {
    min-height:48px;padding:8px 0 8px 8px;
    color:var(--navy);background:transparent;
    font-size:clamp(16px,4.2vw,18px);text-decoration:underline;text-underline-offset:.2em;
  }
  .site-footer {padding-block-end:var(--dock-space);}

  .mobile-dock {
    position:fixed;
    z-index:12;
    inset-inline: max(8px, env(safe-area-inset-left, 0px)) max(8px, env(safe-area-inset-right, 0px));
    bottom:calc(6px + env(safe-area-inset-bottom, 0px));
    display:grid;
    grid-auto-columns:minmax(0,1fr);
    grid-auto-flow:column;
    gap:4px;
    max-width:540px;
    margin-inline:auto;
    padding:5px;
    border:1px solid #e1e6ed;
    border-radius:20px;
    background:white;
    box-shadow:0 6px 26px rgb(21 37 68 / 17%);
  }
  .mobile-dock:has([data-action]:not([hidden])) {grid-template-columns:repeat(3,minmax(0,1fr)) minmax(94px,1.45fr);}
  .mobile-dock > a,
  .mobile-dock [data-action] .action {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    min-height:56px;
    padding:4px 2px;
    border:0;
    border-radius:14px;
    color:var(--navy);
    font-size:15px;
    font-weight:650;
    line-height:1.15;
    text-decoration:none;
  }
  .mobile-dock [data-action] .action {width:100%;color:white;}
  .mobile-dock > a:hover {background:#f1f4f8;}
  .mobile-dock > a[aria-current="location"] {background:#e8eef8;color:#193c87;}
  .mobile-dock :is(a,button):focus-visible {outline-offset:-3px;}
  .mobile-dock [data-action] :focus-visible {outline-color:white;}
  .mobile-dock svg {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
  body:has(#request-form:not(.offscreen) :is(input,textarea):focus) .mobile-dock {visibility:hidden;}
  #request-form :is(input,textarea,button,#form-status) {scroll-margin-block:14px;}
}

#request-form input[aria-invalid="true"] {border-color:var(--red);box-shadow:0 0 0 1px var(--red);}
#request-form .field-error {margin:8px 0 14px;color:#992039;font-size:17px;line-height:1.35;}
#form-status:empty {margin:0;}
#form-status a {color:inherit;text-underline-offset:.18em;}

@media (min-width:620px) and (max-width:960px) and (max-height:500px) {
  .mast-top.wrap {min-height:50px;padding-block:0;}
  .mobile-dock {
    inset-inline:0;bottom:0;max-width:none;border:0;border-radius:0;
    padding:4px max(12px,env(safe-area-inset-right),calc((100% - 540px)/2))
      max(4px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left),calc((100% - 540px)/2));
  }
  .mobile-dock > a,.mobile-dock [data-action] .action {flex-direction:row;gap:6px;min-height:48px;}
}
