:root{
  --psh-top: 0px;
  --psh-height: 82px;
}

body.psh-body{
  padding-top: calc(var(--psh-top) + var(--psh-height));
}

.psh,
.psh *{
  box-sizing:border-box;
}

.psh{
  position:fixed;
  top:var(--psh-top);
  left:0;
  right:0;
  z-index:1300;
  color:#fff;
  border-bottom:0;
  background:
    radial-gradient(1200px 260px at 12% -55%, rgba(34,197,94,.30) 0%, rgba(34,197,94,0) 62%),
    radial-gradient(900px 240px at 82% -60%, rgba(56,189,248,.24) 0%, rgba(56,189,248,0) 62%),
    linear-gradient(180deg, rgba(2,6,23,.95) 0%, rgba(2,6,23,.84) 56%, rgba(2,6,23,.66) 100%);
  backdrop-filter: blur(12px) saturate(135%);
}

.psh::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-16px;
  height:16px;
  background:linear-gradient(180deg, rgba(2,6,23,.30), rgba(2,6,23,0));
  pointer-events:none;
}

.psh::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background:linear-gradient(
    90deg,
    rgba(34,197,94,0) 0%,
    rgba(34,197,94,.85) 24%,
    rgba(56,189,248,.80) 56%,
    rgba(255,255,255,.35) 78%,
    rgba(255,255,255,0) 100%
  );
  pointer-events:none;
}

.psh__container{
  max-width:1800px;
  margin:0 auto;
  padding:12px 20px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:20px;
}

.psh__logo img{
  height:38px;
  width:auto;
  display:block;
}

.psh__nav{
  justify-self:center;
  width:100%;
}

.psh-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.psh-menu__item{
  position:relative;
}

.psh-menu__link{
  height:42px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid transparent;
  color:#fff;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:transparent;
  cursor:pointer;
}

.psh-menu__link:hover{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.22);
}

.psh-menu__caret{
  width:8px;
  height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
  transition:transform .2s ease;
}

.psh-menu__item--has-dd.is-open .psh-menu__caret{
  transform:rotate(-135deg) translateY(-1px);
}

.psh-menu__dropdown{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  width:min(980px, calc(100vw - 40px));
  background:#fff;
  color:#0f172a;
  border:1px solid rgba(15,23,42,.14);
  border-radius:16px;
  box-shadow:0 20px 50px rgba(2,6,23,.24);
  padding:14px;
  z-index:1400;
}

.psh-menu__dropdown[hidden]{
  display:none !important;
}

.psh-menu__dropdown-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
}

.psh-menu__col-title{
  font-weight:800;
  font-size:15px;
  margin-bottom:8px;
}

.psh-menu__sublist{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:6px;
}

.psh-menu__sublink{
  display:block;
  padding:7px 9px;
  border-radius:10px;
  color:#334155;
  text-decoration:none;
  font-size:14px;
}

.psh-menu__sublink:hover{
  background:#f1f5f9;
  color:#0f172a;
}

.psh__right{
  display:flex;
  align-items:center;
  gap:10px;
  justify-self:end;
}

.psh__phone,
.psh__cabinet,
.psh-city__button{
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.26);
  background:rgba(255,255,255,.12);
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 14px;
  text-decoration:none;
  font-weight:700;
  white-space:nowrap;
}

.psh-city{
  position:relative;
}

.psh-city__label{
  opacity:.7;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.psh-city__value{
  font-size:15px;
}

.psh-city__caret{
  width:8px;
  height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
}

.psh-city__list{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  list-style:none;
  margin:0;
  padding:8px;
  min-width:180px;
  border:1px solid rgba(15,23,42,.14);
  border-radius:12px;
  background:#fff;
  color:#0f172a;
  box-shadow:0 16px 34px rgba(15,23,42,.20);
  z-index:1500;
}

.psh-city__list[hidden]{
  display:none !important;
}

.psh-city__item{
  padding:8px 10px;
  border-radius:8px;
  cursor:pointer;
}

.psh-city__item:hover{
  background:#f1f5f9;
}

.psh__burger{
  display:none;
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.26);
  background:rgba(255,255,255,.12);
  padding:9px;
  flex-direction:column;
  justify-content:space-between;
}

.psh__burger span{
  height:2px;
  background:#fff;
  border-radius:2px;
  display:block;
}

.psh__backdrop{
  position:fixed;
  inset:0;
  z-index:1250;
  border:0;
  background:rgba(2,6,23,.58);
}

.psh__backdrop[hidden]{
  display:none !important;
}

@media (max-width:1100px){
  .psh__container{
    padding:10px 12px;
    gap:10px;
  }

  .psh__logo img{
    height:34px;
  }

  .psh-city,
  .psh__cabinet{
    display:none;
  }

  .psh__phone span:last-child{
    display:none;
  }

  .psh__burger{
    display:flex;
  }

  .psh__nav{
    position:fixed;
    top:calc(var(--psh-top) + var(--psh-height) + 10px);
    left:12px;
    right:12px;
    width:auto;
    background:#fff;
    color:#0f172a;
    border:1px solid rgba(15,23,42,.14);
    border-radius:16px;
    box-shadow:0 20px 50px rgba(2,6,23,.24);
    padding:12px;
    max-height:calc(100dvh - var(--psh-top) - var(--psh-height) - 24px);
    overflow:auto;
    transform:translateY(-10px) scale(.98);
    opacity:0;
    pointer-events:none;
    z-index:1260;
    transition:.2s ease;
  }

  html.psh-menu-open .psh__nav{
    transform:none;
    opacity:1;
    pointer-events:auto;
  }

  .psh-menu{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }

  .psh-menu__link{
    width:100%;
    justify-content:space-between;
    background:#f8fafc;
    border-color:#e2e8f0;
    color:#0f172a;
  }

  .psh-menu__dropdown{
    position:static;
    width:100%;
    margin-top:8px;
    box-shadow:none;
    border-radius:12px;
    border-color:#e2e8f0;
  }

  .psh-menu__dropdown-grid{
    grid-template-columns:1fr;
  }
}
