/* Компактный плавающий виджет расчёта на всех страницах */
header .head > a.btn {
  position: fixed;
  right: 18px;
  top: 46%;
  z-index: 9999;
  width: 168px;
  min-height: 78px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px;
  white-space: normal;
  line-height: 1.2;
  text-align: left;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0,0,0,.24);
}
header .head > a.btn::before {
  content: "РАСЧЁТ ЗАКАЗА";
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  opacity: .8;
}
header .head > a.btn::after {
  content: "По чертежу или описанию";
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: .9;
}
@media (max-width: 1279px) {
  header .head > a.btn {
    top: auto;
    right: 14px;
    bottom: 14px;
    width: 210px;
    min-height: 66px;
    transform: none;
    padding: 10px 14px;
  }
}
@media (max-width: 767px) {
  header .head > a.btn {
    right: 12px;
    bottom: 12px;
    width: 184px;
    min-height: 60px;
  }
}



/* Ширина выпадающих меню по содержимому ссылок */
@media (min-width: 851px) {
  header .head .mega-panel {
    left: 50%;
    right: auto;
    width: max-content;
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
    padding: 24px;
    transform: translateX(-50%);
  }
  header .head .mega-grid {
    grid-template-columns: repeat(3, max-content);
  }
}
@media (min-width: 851px) and (max-width: 1100px) {
  header .head .mega-grid {
    grid-template-columns: repeat(2, max-content);
  }
}