/* Techtrim V12 — header and hero-to-white transition matched to approved reference */

/* Desktop header: exact compact one-line composition */
.techtrim-home .approved-header{
  background:#030911!important;
  border-bottom:1px solid rgba(101,157,205,.13)!important;
  box-shadow:none!important;
}
.techtrim-home .approved-header .approved-nav{
  width:min(100%,1540px)!important;
  max-width:1540px!important;
  min-height:70px!important;
  padding:0 28px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:205px minmax(530px,1fr) auto!important;
  align-items:center!important;
  column-gap:22px!important;
}
.techtrim-home .approved-header .approved-brand{
  width:205px!important;
  min-width:205px!important;
  max-width:205px!important;
  height:54px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
.techtrim-home .approved-header .approved-brand img{
  display:block!important;
  width:198px!important;
  height:45px!important;
  max-width:none!important;
  object-fit:contain!important;
  object-position:left center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.techtrim-home .approved-header .approved-links{
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  white-space:nowrap!important;
}
.techtrim-home .approved-header .approved-links>a,
.techtrim-home .approved-header .tt-services-trigger{
  min-width:0!important;
  min-height:40px!important;
  height:40px!important;
  padding:0 15px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid rgba(174,193,210,.34)!important;
  border-radius:7px!important;
  background:linear-gradient(180deg,rgba(6,12,19,.94),rgba(3,8,14,.96))!important;
  color:#f4f8fb!important;
  -webkit-text-fill-color:#f4f8fb!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:650!important;
  text-shadow:none!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
.techtrim-home .approved-header .approved-links>a:hover,
.techtrim-home .approved-header .approved-links>a.active,
.techtrim-home .approved-header .tt-services-trigger:hover,
.techtrim-home .approved-header .tt-services-nav.open .tt-services-trigger{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-color:#149cf7!important;
  background:linear-gradient(180deg,rgba(5,19,31,.98),rgba(2,11,19,.98))!important;
  box-shadow:0 0 0 1px rgba(0,137,255,.10),inset 0 0 16px rgba(0,130,255,.07)!important;
}
.techtrim-home .approved-header .tt-services-trigger span{
  display:inline!important;
  margin-left:4px!important;
  color:#25aaff!important;
  -webkit-text-fill-color:#25aaff!important;
  font-size:13px!important;
}

/* Right actions — phone, Telegram, MAX, Avito, with labels visible on desktop */
.techtrim-home .tt-top-actions{
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:9px!important;
}
.techtrim-home .tt-top-actions .tt-action{
  height:40px!important;
  min-height:40px!important;
  padding:0 12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  border:1px solid rgba(174,193,210,.34)!important;
  border-radius:7px!important;
  background:linear-gradient(180deg,rgba(6,12,19,.94),rgba(3,8,14,.96))!important;
  color:#f5f8fb!important;
  -webkit-text-fill-color:#f5f8fb!important;
  font-size:12px!important;
  font-weight:650!important;
  white-space:nowrap!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
.techtrim-home .tt-top-actions .tt-action:hover{
  border-color:#149cf7!important;
  box-shadow:0 0 0 1px rgba(0,137,255,.08),inset 0 0 16px rgba(0,130,255,.06)!important;
}
.techtrim-home .tt-top-actions .tt-action span{display:inline!important;visibility:visible!important;opacity:1!important}
.techtrim-home .tt-top-actions .tt-action-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#078cff!important;
  -webkit-text-fill-color:#078cff!important;
  font-size:16px!important;
  line-height:1!important;
}
.techtrim-home .tt-top-actions .tt-phone{order:1!important;min-width:162px!important}
.techtrim-home .tt-top-actions .tt-telegram{order:2!important;min-width:106px!important}
.techtrim-home .tt-top-actions .tt-max{order:3!important;min-width:72px!important}
.techtrim-home .tt-top-actions .tt-avito{order:4!important;min-width:82px!important}
.techtrim-home .tt-top-actions .tt-avito img{width:18px!important;height:18px!important;object-fit:contain!important}

/* Dropdown remains exactly three approved services and aligns under “Услуги” */
.techtrim-home .tt-services-menu{
  top:calc(100% + 8px)!important;
  width:350px!important;
  padding:10px!important;
  border-radius:13px!important;
  background:radial-gradient(circle at 8% 8%,rgba(0,126,239,.26),transparent 35%),linear-gradient(145deg,rgba(5,18,31,.99),rgba(2,8,15,.995))!important;
  border:1px solid rgba(64,172,246,.34)!important;
  box-shadow:0 22px 54px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.06)!important;
}
.techtrim-home .tt-services-menu a{padding:10px 11px!important}
.techtrim-home .tt-services-menu b{font-size:13px!important}
.techtrim-home .tt-services-menu small{font-size:10.5px!important}

/* Hero bottom: long continuous fade through the floor reflection into pure white. */
.techtrim-home .tt-hero{position:relative!important;isolation:isolate!important}
.techtrim-home .tt-hero::after{
  content:""!important;
  position:absolute!important;
  z-index:4!important;
  left:0!important;
  right:0!important;
  bottom:-1px!important;
  height:150px!important;
  pointer-events:none!important;
  background:linear-gradient(180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.02) 18%,
    rgba(255,255,255,.09) 34%,
    rgba(255,255,255,.24) 50%,
    rgba(255,255,255,.48) 66%,
    rgba(255,255,255,.73) 80%,
    rgba(255,255,255,.91) 91%,
    #fff 100%)!important;
}
.techtrim-home .tt-light-zone{
  margin-top:0!important;
  padding-top:54px!important;
  background:#fff!important;
}
.techtrim-home .tt-light-zone::before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:-145px!important;
  height:146px!important;
  z-index:0!important;
  pointer-events:none!important;
  background:linear-gradient(180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.05) 20%,
    rgba(255,255,255,.18) 42%,
    rgba(255,255,255,.43) 62%,
    rgba(255,255,255,.72) 80%,
    rgba(255,255,255,.94) 94%,
    #fff 100%)!important;
}

/* Keep the full desktop header intact at common laptop widths. */
@media (min-width:981px) and (max-width:1360px){
  .techtrim-home .approved-header .approved-nav{
    grid-template-columns:180px minmax(475px,1fr) auto!important;
    padding:0 18px!important;
    column-gap:14px!important;
  }
  .techtrim-home .approved-header .approved-brand{width:180px!important;min-width:180px!important;max-width:180px!important}
  .techtrim-home .approved-header .approved-brand img{width:174px!important;height:42px!important}
  .techtrim-home .approved-header .approved-links{gap:6px!important}
  .techtrim-home .approved-header .approved-links>a,
  .techtrim-home .approved-header .tt-services-trigger{padding:0 11px!important;font-size:12px!important}
  .techtrim-home .tt-top-actions{gap:6px!important}
  .techtrim-home .tt-top-actions .tt-action{padding:0 9px!important;font-size:11px!important}
  .techtrim-home .tt-top-actions .tt-phone{min-width:148px!important}
  .techtrim-home .tt-top-actions .tt-telegram{min-width:92px!important}
  .techtrim-home .tt-top-actions .tt-max{min-width:62px!important}
  .techtrim-home .tt-top-actions .tt-avito{min-width:72px!important}
}

@media(max-width:980px){
  .techtrim-home .approved-header .approved-nav{display:flex!important;min-height:64px!important;padding:0 16px!important}
  .techtrim-home .approved-header .approved-brand{width:160px!important;min-width:160px!important;max-width:160px!important}
  .techtrim-home .approved-header .approved-brand img{width:155px!important;height:40px!important}
  .techtrim-home .approved-header .approved-links{display:none!important}
  .techtrim-home .approved-header .approved-links.open{display:flex!important}
  .techtrim-home .tt-top-actions{display:none!important}
  .techtrim-home .tt-hero::after{height:105px!important}
  .techtrim-home .tt-light-zone::before{top:-100px!important;height:101px!important}
}
