/* Header phone/MAX + desktop sticky CTA fix */

/* Critical bug fix: mobile CTA must never exist on desktop */
.mobile-sticky-cta{display:none!important;}

.header .shell.header__inner{
  width:min(1260px,calc(100% - 48px))!important;
  max-width:1260px!important;
  grid-template-columns:auto minmax(0,1fr) auto auto!important;
  gap:22px!important;
}
.header .nav{
  gap:23px!important;
  min-width:0!important;
}
.header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  min-width:max-content;
}
.header-phone{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 10px;
  color:#dceaf1;
  font:600 .76rem/1 var(--sans,'Onest','Inter',sans-serif);
  white-space:nowrap;
  transition:color .2s ease,transform .2s ease;
}
.header-phone:hover{color:#8fe5ff;transform:translateY(-1px)}
.header-max{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  height:44px;
  padding:0 13px;
  border:1px solid rgba(105,211,255,.22);
  border-radius:14px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.02)),
    linear-gradient(145deg,rgba(11,45,66,.72),rgba(5,28,44,.84));
  color:#eaf6fb;
  font:700 .72rem/1 var(--sans,'Onest','Inter',sans-serif);
  letter-spacing:.035em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 8px 22px rgba(0,12,23,.18);
  backdrop-filter:blur(12px) saturate(135%);
  -webkit-backdrop-filter:blur(12px) saturate(135%);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.header-max:hover{
  transform:translateY(-2px);
  border-color:rgba(105,211,255,.38);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 12px 27px rgba(0,12,23,.24),0 0 20px rgba(87,223,255,.055);
}
/* Phone/MAX are separate desktop controls; hide their nav duplicates on desktop */
.nav__phone,.nav__max{display:none!important;}

/* Contact: fit Telegram + MAX + phone cleanly */
.contact-banner__links{
  display:grid!important;
  grid-template-columns:auto auto!important;
  align-items:center!important;
  justify-items:stretch!important;
  gap:9px!important;
}
.contact-banner__links>.button{
  width:auto!important;
  min-width:126px!important;
}
.contact-banner__links>a[href^="tel:"]{
  grid-column:1/-1;
  text-align:center;
  padding-top:3px;
}

/* Light theme */
html[data-theme="light"] .header-phone{color:#173746!important;}
html[data-theme="light"] .header-phone:hover{color:#137ead!important;}
html[data-theme="light"] .header-max{
  color:#173746!important;
  border-color:rgba(66,155,197,.22)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.90),rgba(232,241,245,.80))!important;
  box-shadow:inset 0 1px 0 #fff,0 8px 20px rgba(67,92,107,.09)!important;
}

@media(max-width:1180px){
  .header .shell.header__inner{
    width:calc(100% - 32px)!important;
    gap:13px!important;
  }
  .header .nav{gap:16px!important;}
  .header-phone{font-size:.69rem!important;padding-inline:5px!important;}
  .header-max{min-width:52px!important;padding-inline:10px!important;}
  .header-actions .header-cta{min-width:150px!important;padding-inline:15px!important;}
}

@media(max-width:1020px){
  .header .shell.header__inner{
    width:calc(100% - 32px)!important;
    grid-template-columns:auto 1fr auto!important;
  }
  .header-actions{display:none!important;}
  .nav__phone,.nav__max{display:block!important;}
  .nav__max{color:#8fe5ff!important;font-weight:700!important;}
  html[data-theme="light"] .nav__max{color:#137ead!important;}
}

@media(max-width:760px){
  .header .shell.header__inner{width:calc(100% - 24px)!important;}
  .mobile-sticky-cta{
    display:flex!important;
    left:12px!important;right:12px!important;bottom:12px!important;
    width:auto!important;
  }
  .contact-banner__links{grid-template-columns:1fr!important;}
  .contact-banner__links>a[href^="tel:"]{grid-column:auto;}
}
