/* MIDAS v21 targeted corrections */

/* Installation page: reference red headline and darker service chips. */
body.apps-v11 .apps-selector-stack-v13 h1{
  color:#ef0b1c!important;
}
body.apps-v11 #brandPreview .vehicle-feature-grid>span,
body.apps-v11 #brandPreview .vehicle-feature-chip,
body.apps-v11 #brandPreview .vehicle-feature-chip-stage{
  background:linear-gradient(180deg,#650811 0%,#43050b 54%,#270307 100%)!important;
  border-color:#a70a15!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07)!important;
}

/* Night presentation for every embedded Yandex map while retaining interactivity. */
iframe[src*="yandex.ru/map-widget"]{
  filter:brightness(.58) contrast(1.22) saturate(.72) hue-rotate(178deg)!important;
}
body.apps-v11 .contact-map-v13 iframe,
.home-contact-v21 .contact-map-v13 iframe{
  pointer-events:auto!important;
}

/* Home header phone: same full phone + hours composition as inner pages. */
body.midas-home .phone-btn-v6{
  display:grid!important;
  grid-template-columns:27px minmax(0,1fr)!important;
  column-gap:9px!important;
  align-items:center!important;
  height:56px!important;
  padding:0 13px!important;
  border:1px solid #242429!important;
  background:#040405!important;
  border-radius:8px!important;
  color:#fff!important;
  overflow:hidden!important;
}
body.midas-home .phone-btn-v6 .phone-icon-ref{width:27px;height:27px;color:#f20c1d}
body.midas-home .phone-btn-v6 .phone-copy-ref{display:flex;min-width:0;flex-direction:column;align-items:flex-start;line-height:1.05}
body.midas-home .phone-btn-v6 strong{font-size:16px!important;white-space:nowrap}
body.midas-home .phone-btn-v6 span{font-size:10px!important;color:#a9a9ad!important;margin-top:5px!important;white-space:nowrap}

/* Home contact strip — same geometry language as Installation page. */
.home-contact-v21{
  padding:0!important;
  background:#020203!important;
  border-top:1px solid #1a1b1e;
  border-bottom:1px solid #1b1c1f;
}
.home-contact-v21 .midas-contact-strip-inner{
  width:min(1115px,calc(100% - 32px));
  min-height:130px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,300px) minmax(0,220px) minmax(0,165px) minmax(0,430px);
  align-items:center;
  overflow:hidden;
}
.home-contact-v21 .contact-brand-v13,
.home-contact-v21 .contact-phone-v13,
.home-contact-v21 .contact-hours-v13{
  min-width:0;height:80px;display:flex;align-items:center;border-right:1px solid #34353a;overflow:hidden;
}
.home-contact-v21 .contact-brand-v13{display:block;padding:10px 12px 0 0}
.home-contact-v21 .contact-title-v13{color:#f20c1d;font-size:15px;line-height:18px;font-weight:800;letter-spacing:.13em;margin:0 0 11px;white-space:nowrap}
.home-contact-v21 .contact-line-v13{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.42;color:#aeb0b4}
.home-contact-v21 .contact-phone-v13{padding:0 10px 0 18px;gap:14px}
.home-contact-v21 .contact-hours-v13{padding:0 8px 0 16px;gap:12px}
.home-contact-v21 .contact-svg-ref{width:29px;height:29px;color:#f20c1d;flex:0 0 auto}
.home-contact-v21 .contact-line-v13 .contact-svg-ref{width:19px;height:23px;margin-top:1px}
.home-contact-v21 .contact-phone-v13>div{display:flex;flex-direction:column;min-width:0}
.home-contact-v21 .contact-phone-v13 a:first-of-type{color:#fff;text-decoration:none;font-size:18px;font-weight:700;line-height:20px;white-space:nowrap}
.home-contact-v21 .contact-call-v13{color:#f20c1d;font-size:12px;margin-top:7px}
.home-contact-v21 .contact-hours-v13>div{display:flex;flex-direction:column;gap:5px;color:#aeb0b4;font-size:11px;line-height:14px;white-space:nowrap}
.home-contact-v21 .contact-map-v13{
  position:relative;min-width:0;width:100%;height:112px;border-radius:12px;overflow:hidden;background:#090a0c;
}
.home-contact-v21 .contact-map-v13 iframe{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:1}
.home-contact-v21 .route-v13{
  position:absolute;z-index:2;right:12px;bottom:12px;height:38px;min-width:150px;padding:0 14px;
  display:flex;align-items:center;justify-content:center;border:1px solid #e50918;border-radius:6px;
  background:rgba(5,5,6,.88);color:#fff;text-decoration:none;font-size:10px;backdrop-filter:blur(3px);
}
.home-contact-socials-v21{
  width:min(1115px,calc(100% - 32px));margin:0 auto;padding:10px 0 12px;display:flex;justify-content:flex-end;gap:10px;
}
.home-contact-socials-v21 .social-circle{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:9px;overflow:hidden}
.home-contact-socials-v21 .social-circle.tg{background:#229ed9}.home-contact-socials-v21 .social-circle.tg svg{width:60%;height:60%;fill:#fff}
.home-contact-socials-v21 .social-circle.max img{width:100%;height:100%}.home-contact-socials-v21 .social-circle.avito img{width:69%;height:69%}

@media (min-width:901px) and (max-width:1180px){
  .home-contact-v21 .midas-contact-strip-inner{grid-template-columns:minmax(0,26%) minmax(0,19%) minmax(0,15%) minmax(0,40%)}
  body.midas-home .phone-btn-v6{height:44px!important;grid-template-columns:20px minmax(0,1fr)!important;padding:0 7px!important;column-gap:5px!important}
  body.midas-home .phone-btn-v6 .phone-icon-ref{width:20px;height:20px}
  body.midas-home .phone-btn-v6 strong{font-size:10.5px!important}
  body.midas-home .phone-btn-v6 span{font-size:7.2px!important;margin-top:3px!important}
}
@media (max-width:900px){
  .home-contact-v21 .midas-contact-strip-inner{width:min(680px,calc(100% - 24px));grid-template-columns:1fr;overflow:visible;padding:12px 0}
  .home-contact-v21 .contact-brand-v13,.home-contact-v21 .contact-phone-v13,.home-contact-v21 .contact-hours-v13{height:auto;min-height:72px;border-right:0;border-bottom:1px solid #25262a;padding:14px 10px}
  .home-contact-v21 .contact-map-v13{height:240px;margin-top:12px}
  .home-contact-socials-v21{width:min(680px,calc(100% - 24px));justify-content:flex-start}
}
