.social-item:has(.bg-wp), .bg-wp, .messenger-card {
  display: none !important;
}
.contacts-wrap .messenger-card:has(.bg-tg),
.contacts-wrap .messenger-card:has(.bg-max){
  display: flex !important;
}

.step-btns
{
  display: flex;
  justify-content: space-between;
  gap:10px;
}
.step-btns .btn{
  flex-grow: 1;
}
@media (max-width: 992px) {
  #contacts .social-item:has(.bg-wp) {
    display: flex !important;
  }
}

.bg-max {
  background: linear-gradient(84.8deg, #4cf -.81%, #4b49df 29.39%, #6641de 80.35%, #93d 101.75%);
}
.bg-max:hover {
  filter: brightness(0.7);
}
a.bg-max, .btn.bg-max {
  color: #fff !important;
}
.contact-btn.bg-max {
  background: linear-gradient(84.8deg, #4cf -.81%, #4b49df 29.39%, #6641de 80.35%, #93d 101.75%);
}
.contact-btn.bg-max:hover {
  filter: brightness(0.7);
  background: linear-gradient(84.8deg, #4cf -.81%, #4b49df 29.39%, #6641de 80.35%, #93d 101.75%);
}
.bg-max img {
  width: 20px;
  height: 20px;
}
.social-link.bg-max img {
  width: 24px;
  height: 24px;
}
.ajax_form .social-link.bg-max img {
  width: 18px !important;
  height: 18px !important;
}
header .btn.bg-max img {
  width: 20px;
  height: 20px;
}
#contacts .bg-max img {
  width: 14px;
  height: 14px;
}
.consult .social-item {
  min-width: 173px;
}
.consult-map .social-item {
  min-width: 163px;
}
.social-list-xl .social-link {
  font-size: 1.55568rem;
}
.modal-body #consult .social-link {
  min-width: 173px;
}
#docs .bg-max {
  min-width: 193px;
}
#top_banner .btn {
  min-width: 207px;
  align-items: center;
  justify-content: center;
}
/* шапка: TG-кнопка "Узнать цену" — 168x46 (моб.), 186x46 (ПК), радиус 16px */
.jsHeader .btn.bg-tg {
  width: 168px;
  height: 46px;
  min-width: 0;
  border-radius: 16px;
  padding-top: 0;
  padding-bottom: 0;
}
@media (min-width: 992px) {
  .jsHeader .btn.bg-tg {
    width: 186px;
  }
}
/* форма консультации в контактах: скругление полей и кнопки */
.consult-form-wrap .form-control,
.consult-form-wrap .btn {
  border-radius: 10px;
}
.consult-form-wrap .form-control {
  background: #E6E6E6;
  height: 52px;
}
.consult-form-wrap form {
  max-width: 328px;
}
.consult-form-wrap .info-item-title {
  font-size: 18px;
  font-weight: 700;
}
/* блок мессенджеров в секции контактов скрыт (разметка сохранена) */
#contacts .consult-messengers {
  display: none !important;
}
/* top_banner: карточка "Рассчитать точную цену" с кнопками TG + Макс (все контексты) */
#top_banner .jsCalcCard {
  width: 100%;
  max-width: 480px;
  padding: 20px 24px;
}
#top_banner .jsCalcCard .btn {
  min-width: 0;
  border-radius: 10px;
  flex: 1 1 0;
}
/* заголовок плашки: 24px ПК, вес 700 */
#top_banner .jsCalcCard .h5 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}
/* подзаголовок: 18px везде, вес 400 */
#top_banner .jsCalcCard .display-8 {
  font-size: 18px;
  font-weight: 400;
}
/* подписи кнопок: 16px, обычный вес; иконки 24x24 */
#top_banner .jsCalcCard .btn span {
  font-size: 16px;
  font-weight: 400;
}
#top_banner .jsCalcCard .btn img {
  width: 24px;
  height: 24px;
}
#top_banner .btn-max-soft {
  background: linear-gradient(90deg, rgba(69, 133, 251, 0.24) 0%, rgba(85, 70, 222, 0.24) 54.33%, rgba(147, 53, 221, 0.24) 100%);
}
#top_banner .btn-max-soft:hover {
  filter: brightness(0.96);
}
#top_banner .btn-max-soft span {
  background: linear-gradient(90deg, #4579FB 0%, #6735DD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #6735DD;
}
/* mobile: весь top_banner по левому краю */
@media (max-width: 767.98px) {
  #top_banner .container {
    align-items: flex-start !important;
  }
  #top_banner .text-center {
    text-align: left !important;
  }
  #top_banner .top-features li {
    justify-content: flex-start !important;
  }
  #top_banner .w-100.d-flex {
    justify-content: flex-start !important;
  }
  #top_banner .jsCalcCard {
    max-width: 100%;
  }
}
@media (max-width: 576px) {
  .consult .social-item {
    min-width: 140px;
  }
  .social-list:not(#contacts .social-list) {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .social-item:not(#contacts .social-item) {
    width: 100%;
    margin: 0;
  }
  .offcanvas-body .social-list {
    flex-direction: row !important;
    width: auto;
  }
  .offcanvas-body .social-item {
    width: auto !important;
  }
  .offcanvas-body .social-link.bg-max img {
    width: 18px;
    height: 18px;
  }
  #contacts .bg-max img,
  .btn.bg-max img {
    width: 17px;
    height: 17px;
  }
  .step-btns
  {
    flex-direction: column;
  }
  #top_banner .jsCalcCard {
    max-width: 100%;
    padding: 16px;
  }
  /* заголовок плашки на телефоне: 22px */
  #top_banner .jsCalcCard .h5 {
    font-size: 22px;
  }
}
