/* ОКАВТО v106: clearly legible, original wordmark; keeps existing header/nav/footer structure. */
header.sticky>.container>a:first-child{display:flex!important;align-items:center!important;flex:0 0 auto!important;min-width:0!important;}
header.sticky>.container>a:first-child>img[src*="okauto-brand-v106.png"]{
  display:block!important;width:310px!important;max-width:100%!important;height:auto!important;
  max-height:none!important;object-fit:contain!important;object-position:left center!important;
}
footer.ok-v37-footer .ok-v37-foot-brand>a:first-child{display:inline-flex;align-items:center;max-width:100%;}
footer.ok-v37-footer .ok-v37-foot-brand>a:first-child>img[src*="okauto-brand-v106.png"]{
  display:block!important;width:350px!important;max-width:100%!important;height:auto!important;
  max-height:none!important;object-fit:contain!important;
}
/* Standalone success/error pages have a different header and must stack the contact strip. */
html[data-ok-route="thanks"] body>header,
html[data-ok-route="error"] body>header{flex-direction:column!important;align-items:stretch!important;min-height:0!important;padding:14px 0 0!important;}
html[data-ok-route="thanks"] body>header>.bar,
html[data-ok-route="error"] body>header>.bar{width:min(1380px,calc(100% - 32px))!important;min-height:58px!important;}
html[data-ok-route="thanks"] body>header>.ok-v62-header-bar,
html[data-ok-route="error"] body>header>.ok-v62-header-bar{width:100%!important;min-width:0!important;}
html[data-ok-route="thanks"] body>header .bar>a:first-child img.logo[src*="okauto-brand-v106.png"],
html[data-ok-route="error"] body>header .bar>a:first-child img.logo[src*="okauto-brand-v106.png"]{width:310px!important;max-width:100%!important;height:auto!important;}
@media(max-width:700px){
  html[data-ok-route="thanks"] body>header .bar>a:first-child img.logo[src*="okauto-brand-v106.png"],
  html[data-ok-route="error"] body>header .bar>a:first-child img.logo[src*="okauto-brand-v106.png"]{width:225px!important;max-width:min(225px,70vw)!important;}
}
@media(min-width:1451px){
  header.sticky>.container>a:first-child>img[src*="okauto-brand-v106.png"]{width:330px!important}
}
@media(min-width:1320px) and (max-width:1450px){
  header.sticky>.container>a:first-child>img[src*="okauto-brand-v106.png"]{width:260px!important}
}
@media(min-width:768px) and (max-width:1319px){
  header.sticky>.container>a:first-child>img[src*="okauto-brand-v106.png"]{width:310px!important;max-width:min(310px,48vw)!important}
}
@media(max-width:767px){
  header.sticky>.container>a:first-child>img[src*="okauto-brand-v106.png"]{width:245px!important;max-width:min(245px,66vw)!important}
  footer.ok-v37-footer .ok-v37-foot-brand>a:first-child>img[src*="okauto-brand-v106.png"]{width:305px!important;max-width:100%!important}
}
@media(max-width:360px){
  header.sticky>.container>a:first-child>img[src*="okauto-brand-v106.png"]{width:220px!important;max-width:min(220px,65vw)!important}
}


header.sticky>.container>a:first-child,
footer.ok-v37-footer .ok-v37-foot-brand>a:first-child,
html[data-ok-route="thanks"] body>header .bar>a:first-child,
html[data-ok-route="error"] body>header .bar>a:first-child{
  display:inline-flex!important;
  align-items:center!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  box-shadow:none!important;
  color:#fff!important;
  background:transparent!important;
  box-sizing:border-box!important;
  text-decoration:none!important;
}
html[data-ok-theme="light"] header.sticky>.container>a:first-child,
html[data-ok-theme="light"] footer.ok-v37-footer .ok-v37-foot-brand>a:first-child,
html[data-ok-theme="light"][data-ok-route="thanks"] body>header .bar>a:first-child,
html[data-ok-theme="light"][data-ok-route="error"] body>header .bar>a:first-child{
  color:#111!important;
}
header.sticky>.container>a:first-child>img[src*="okauto-brand-v106.png"],
footer.ok-v37-footer .ok-v37-foot-brand>a:first-child>img[src*="okauto-brand-v106.png"],
html[data-ok-route="thanks"] body>header .bar>a:first-child img.logo[src*="okauto-brand-v106.png"],
html[data-ok-route="error"] body>header .bar>a:first-child img.logo[src*="okauto-brand-v106.png"]{
  filter:brightness(0) invert(1)!important;
}
html[data-ok-theme="light"] header.sticky>.container>a:first-child>img[src*="okauto-brand-v106.png"],
html[data-ok-theme="light"] footer.ok-v37-footer .ok-v37-foot-brand>a:first-child>img[src*="okauto-brand-v106.png"],
html[data-ok-theme="light"][data-ok-route="thanks"] body>header .bar>a:first-child img.logo[src*="okauto-brand-v106.png"],
html[data-ok-theme="light"][data-ok-route="error"] body>header .bar>a:first-child img.logo[src*="okauto-brand-v106.png"]{
  filter:brightness(0)!important;
}
footer.ok-v37-footer .ok-v37-foot-brand>a:first-child{
  margin-bottom:22px!important;
  max-width:100%!important;
}
footer.ok-v37-footer .ok-v37-foot-brand>a:first-child>img[src*="okauto-brand-v106.png"]{
  margin:0!important;
}
@media(max-width:767px){
  header.sticky>.container{
    margin-bottom:12px!important;
  }
  html[data-ok-route="thanks"] body>header>.bar,
  html[data-ok-route="error"] body>header>.bar{
    margin-bottom:12px!important;
  }
}
header.sticky>.container>a:first-child:focus-visible,
footer.ok-v37-footer .ok-v37-foot-brand>a:first-child:focus-visible,
html[data-ok-route="thanks"] body>header .bar>a:first-child:focus-visible,
html[data-ok-route="error"] body>header .bar>a:first-child:focus-visible{
  outline:2px solid var(--oa-ui-focus,#246bc2);
  outline-offset:5px;
}
