/* С «Каталогом» в шапке восемь пунктов: вместо отступа темы 60 px место делится поровну */
@media (min-width: 993px) {
  .header-menu-wrap .main-menu > ul > li.menu-item {
    flex-shrink: 0;
    margin-right: 0;
  }
  .main-menu > ul > li.menu-item > a {
    white-space: nowrap;
  }
}

/* Пункт «Каталог» (класс sgcm-catalog у пункта меню): ссылки без переноса, ширина по тексту */
.main-menu .sgcm-catalog > a {
  cursor: pointer;
}
.main-menu .sgcm-catalog .sub-menu {
  width: auto;
  min-width: 240px;
}
.main-menu .sgcm-catalog .sub-menu a {
  white-space: nowrap;
}
.main-menu .sgcm-catalog .sub-menu .menu-item-has-children > a {
  padding-right: 48px;
}

/* Мобильное меню по левому краю, уровни «Каталога» лесенкой, стрелка справа от пункта 2-го уровня */
.fixed-menu-wrappper,
.fixed-menu-box,
.fixed-menu-box ul {
  text-align: left;
}
.fixed-menu-box .sgcm-catalog > a {
  cursor: pointer;
}
.fixed-menu-box .sgcm-catalog .sub-menu {
  padding-left: 18px;
}
.fixed-menu-box .sgcm-catalog .sub-menu a {
  padding-left: 0;
}
.fixed-menu-box .sgcm-catalog .sub-menu > .menu-item-has-children {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
}
.fixed-menu-box .sgcm-catalog .sub-menu .sub-menu a {
  font-size: 16px;
  color: #989898;
}
.fixed-menu-box .sgcm-catalog .sub-menu > .menu-item-has-children > a {
  padding-left: 0;
}
.fixed-menu-box .sgcm-catalog .sub-menu > .menu-item-has-children > .sub-menu {
  flex-basis: 100%;
}
.sgcm-toggle {
  position: relative;
  width: 32px;
  height: 24px;
  margin: 0 0 0 8px;
  padding: 0;
  cursor: pointer;
  border: 0;
  background: none;
}
.sgcm-toggle:before {
  content: '';
  position: absolute;
  top: 6px;
  left: 10px;
  width: 7px;
  height: 7px;
  border: 2px solid #f38832;
  border-top: 0;
  border-left: 0;
  transform: rotate(-45deg);
  transition: transform 0.2s;
}
.sgcm-open > .sgcm-toggle:before {
  top: 3px;
  transform: rotate(45deg);
}

/* Колонки каталога в футере: занимают место до телефона, шрифт как у меню футера темы */
.sgcm-footer {
  display: flex;
  flex: 1 1 auto;
  justify-content: space-evenly;
  gap: 30px;
  margin-left: 30px;
  margin-right: 30px;
}
.sgcm-footer__title a {
  white-space: nowrap;
}
.sgcm-footer li a {
  white-space: nowrap;
}
.sgcm-footer__title a,
.sgcm-footer__title span {
  font-family: TTCommonsMedium, sans-serif;
  font-size: 17px;
  line-height: 1.2em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #131414;
}
.sgcm-footer__title a:hover {
  color: #f38832;
}
.sgcm-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sgcm-footer li {
  margin-top: 15px;
}
.sgcm-footer li a {
  font-size: 17px;
  line-height: 1.2em;
  color: #a6a7aa;
}
.sgcm-footer li a:hover {
  color: #f38832;
}

@media (max-width: 1200px) {
  .sgcm-footer__title a,
  .sgcm-footer__title span {
    font-size: 15px;
  }
  .sgcm-footer li {
    margin-top: 10px;
  }
  .sgcm-footer li a {
    font-size: 15px;
  }
}

@media (max-width: 992px) {
  .footer-wrap {
    flex-wrap: wrap;
  }
  .footer-left {
    order: 1;
  }
  .sgcm-footer {
    order: 2;
    flex: 0 0 100%;
    justify-content: flex-start;
    margin: 40px 0 0;
    gap: 60px;
  }
  .sgcm-footer + .footer-right {
    order: 3;
  }
}

@media (max-width: 600px) {
  .sgcm-footer {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
  }
}

/* Место под колонки: меньше отступ меню футера темы и телефон, блок с телефоном не сжимается */
@media (min-width: 993px) {
  .footer-left .footer-menu {
    margin-left: 40px;
  }
  .footer-menu a {
    white-space: nowrap;
  }
  /* «Услуги» на одном уровне с заголовками колонок и телефоном */
  .footer-menu ul li:first-child {
    margin-top: 0;
  }
  .sgcm-footer + .footer-right {
    flex-shrink: 0;
    width: auto;
  }
  .sgcm-footer + .footer-right .tel {
    font-size: 24px;
  }
}
