.only-desktop {
  display: block;
}
.only-mobile {
  display: none;
}
.footer__bottom {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 30% 20% 25% 25%;
  padding-bottom: 25px;  
}
.footer__bottom div {
  text-align: center;
}
@media screen and (max-width:767px) {
  .cases__home-wrapper, .blog__home-wrapper {
    height: 350px !important;
  }
  .swiper-img img{
    position: absolute;
  top: 0;
  left: 0;
  }
  .swiper-img.only-mobile { 
    width: 100% !important;
    height: auto !important;
  }
  .cases__imtem-img.only-mobile {
    width: 100% !important;
    height: auto !important;
  }
  .only-desktop {
    display: none;
  }
  .only-mobile {
    display: block;
  }
  .footer__bottom {
    display: block;
    line-height: 25px;
  }
}
.footer {
  width: 100%;
  border-radius: 32px 32px 0px 0px;
  background-image: url('../img/background-footer.png');
  background-size: cover;
  background-position: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.footer__wrapper {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.footer__wrapper.box {
  margin-top: -30px;
  padding-top: 100px;
  padding-bottom: 100px;
}
.footer__phone-wrapper {
  max-width: 1280px;
  width: 100%;
  height: 156px;
  margin: 0 auto;
  margin-top: 100px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  
}
.footer__phone-wrapper.box {
  margin-top: 0;
}
.footer__phone {
  margin-left: 32px;
  color: #081A32;
  font-size: 60px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 60px */
}
.footer__support-wrapper {
  width: 294px;
  height: 60px;
  border-radius: 32px;
  background-color:#D7171F;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: 32px;
  cursor: pointer;
  transition: all .2s ease;
}
.footer__support-wrapper:hover {
  background: #ECF1F6;
}
.footer__support-wrapper:hover .footer__free-support,
.footer__support-wrapper:hover  .footer__arrow path {
  color: #081A32;
  fill: #081A32;
}
.footer__free-support {
  color: #FFF;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%; /* 19.8px */
  margin-left: 24px;
}
.footer__logo-wrapper {
  display: flex;
  align-items: end;
  gap: 24px;
}
.footer__slogan {
  color: #081A32;
  font-size: 10px;
  font-family: 'PantonExtraBold';
  font-style: bold;
  font-weight: 900;
  line-height: 110%; /* 11px */
  letter-spacing: 0.2px;
  text-transform: uppercase;
  width: 122px;
}
.footer__date {
  color: #757D87;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%; /* 15.4px */
  margin-bottom: 8px;
}
.footer__items {
  /* было margin-right: 150px + justify-content: space-around: колонка меню
     отжималась от правого края, а её блоки расползались с провалами в пол-экрана */
  margin-right: 0;
  width: 50%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 48px;
}
.widget-footer__header {
  color: #757D87;
  font-family: Panton;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%; /* 17.6px */
  margin-bottom: 24px;
}

.footer__links-wrapper {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  /* было 140px сверху и 100px снизу — подвал занимал экран пустотой */
  margin-top: 96px;
  margin-bottom: 64px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
}
.footer__links-wrapper.box {
  margin-bottom: 0px;
}
.footer__first-wrapper {
  display: flex;
  flex-direction: column;
  /* было gap: 155px — фиксированная дыра между логотипом и копирайтом */
  gap: 32px;
}
.footer__start-wrapper {
  display: flex;
  gap: 168px;
  margin-bottom: 8px;
}
.footer__link {
  color: #081A32;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%; /* 17.6px */
  transition: all .2s ease;
  cursor: pointer;
}
.footer__link:hover {
  color: #D7171F;
}
.footer__free-wrapper {
  display: flex;
  align-items: start;

}
.footer__free {
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 20px;
  border-radius: 32px;
  background: #D7171F;
  color: #FFF;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%; /* 12px */
}
.footer__following-wrapper {
  display: flex;
  align-items: center;
  gap: 208px;
}
.footer__buy-wrapper {
  display: flex;
  margin-top: 52px;
  gap: 195px;
}
.footer__cases-wrapper {
  display: flex;
  align-items: center;
  margin-top: 24px;
  gap: 207px;
}
.footer__version-wrapper {
  display: flex;
  align-items: center;
  margin-top: 8px;
  gap: 192px;
}

.footer__date-mobile-wrapper {
  display: none;
}

.footer-custom_menu-full ul {
  /* было 69px и складывалось с отступом между блоками колонки — «Купить Битрикс24»
     отрывалось от «Услуг» больше чем на сотню пикселей. Расстояние теперь задаёт
     gap самой колонки (.footer__items). */
  margin-bottom: 0;
}

.footer-custom_menu-full ul li,
.widget_custom_navigation_small_footer_widget ul li {
  margin-bottom: 8px;
}

.footer-custom_menu-full ul li a,
.widget_custom_navigation_small_footer_widget ul li a{
  color: #081A32;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%;
  transition: all .2s ease;
  cursor: pointer;
}

.footer-custom_menu-full ul li a:hover,
.widget_custom_navigation_small_footer_widget ul li a:hover {
  color: #D7171F;
}

.footer-custom_menu-full ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 120px;
}

.footer__widget-row {
  display: flex;
  justify-content: space-between;
  /* было 120px: колонки расходились к краям, и «Компания» отрывалась от «Купить Битрикс24» */
  gap: 64px;
}

.footer__widget-col {
  width: 50%;
}

.footer-custom_menu-full ul li.menu-item-tag-free::after,
.widget_custom_navigation_small_footer_widget ul li.menu-item-tag-free::after {
  content: 'бесплатно';
  padding: 4px 8px;
  border-radius: 32px;
  background: #D7171F;
  color: #FFF;
  font-family: "PantonSemibold", serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  width: 38px;
  height: 20px;
  cursor: default;
  margin-left: 8px;
}


@media (max-width: 1060px) {
  .footer__items {
    margin-right: 0;
  } 
}

@media (max-width: 950px) {
  #menu-item-588::after {
    display: block;
    margin: 6px 0px 0px 0px;

    /* margin-top: 6px; */
  }

  .footer__links-wrapper {
    margin-top: 100px;
  }
  .footer__phone-wrapper {
    height: 110px;
  }
  .footer__phone {
    font-size: 32px;
  }
  .footer__support-wrapper {
    width: 294px;
    height: 60px;
  }
  .footer__logo-wrapper {
    align-items: start;
    flex-direction: column;
  }
  .footer__items {
    margin-right: 50px;
  }
  .footer__start-wrapper {
    gap: 73px;
  }
  .footer__following-wrapper {
    gap: 113px;
  }
  .footer__buy-wrapper {
    gap: 98px;
  }
  .footer__cases-wrapper {
    gap: 108px;
  }
  .footer__version-wrapper {
    gap: 92px;
  }
  .footer__first-wrapper {
    gap: 93px;
  }
}
@media (max-width: 800px) {
  .footer__items {
    margin-right: 40px;
  }
}
@media (max-width: 730px) {
  .footer-custom_menu-full ul {
    column-gap: 77px;
    margin-bottom: 42px;
  }
  .footer__widget-row {
    gap: 70px;
  }
  .footer__links-wrapper {
    flex-direction: column;
    margin-top: 32px;
    margin-bottom: 68px;
  }
  .footer__politics-wrapper {
    display: none;
  }
  .footer__items {
    margin: 0 auto;
    margin-top: 32px;
    width: 320px;
  }
  .footer__first-wrapper {
    justify-content: start;
  }
  .footer__logo-wrapper {
    width: 320px;
    margin: 0 auto;
  }
  .footer__date-mobile-wrapper {
    width: 320px;
    margin: 0 auto;
    margin-top: 32px;
    display: block;
  }
  .footer__start-wrapper {
    gap: 60px;
  }
  .footer__link.first {
    width: 140px;
  }
 
  .footer__following-wrapper {
    gap: 83px;
  }
  .footer__buy-wrapper {
    margin-top: 32px;
    gap: 69px;
  }
  .footer__cases-wrapper {
    margin-top: 12px;
    gap: 80px;
  }
  .footer__version-wrapper {
    gap: 65px;
  }
  .footer__phone-wrapper {
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 16px;
    height: 150px;
    width: 320px;
  }
  .footer__phone {
    font-size: 24px;
  }
  .footer__support-wrapper {
    width: 272px;
    height: 62px;
    margin-left: 24px;
    gap: 8px;
  }
  .footer__free-support {
    font-size: 18px;
    margin-left: 16px;
  }
}
@media (max-width: 410px) {
  .footer__wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
  .footer__start-wrapper {
    gap: 35px;
  }
  .footer__following-wrapper {
    gap: 57px;
  }
  .footer__buy-wrapper {
    gap: 42px;
  }
  .footer__cases-wrapper {
    gap: 53px;
  }
  .footer__version-wrapper {
    gap: 37px;
  }
}
@media (max-width: 400px) {
  .footer__phone-wrapper,
  .footer__logo-wrapper,
  .footer__items,
  .footer__date-mobile-wrapper {
    margin-left: 0;
  }
}