/* ==========================================================================
   FIX-KZ — корректирующие стили trans-logistic.kz (поверх унаследованного CMS).
   Чинит: футер (newtemplate), отзывы (slick не инициализирован),
   «как мы работаем», блок «заказать», битые/lazy-картинки.
   Подключается последним в <head>, поэтому перекрывает базовый CSS.
   ========================================================================== */

/* битые картинки без src не ломают раскладку */
img:not([src]), img[src=""] { display: none !important; }

/* ===== ФУТЕР ===== */
footer.newtemplate .my-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer.newtemplate .my-row > div {
  flex: 1 1 200px;
  min-width: 170px;
  max-width: 320px;
  float: none !important;
  position: static !important;
  left: auto !important; top: auto !important; right: auto !important;
  transform: none !important;
  padding: 0 !important;
}
footer.newtemplate .cont-serv { display: block !important; }
footer.newtemplate .cont-serv > div { padding: 0 !important; width: auto !important; }
footer.newtemplate p { margin: 4px 0; }
footer.newtemplate p > span {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 12px;
  color: #1a1a1a;
}
footer.newtemplate .link, footer.newtemplate .link1 { line-height: 1.55; margin: 3px 0; }
footer.newtemplate .img-line { display: none !important; }
footer.newtemplate .logo img { max-width: 160px; height: auto; margin-top: 14px; }
footer.newtemplate .phone_footer { font-weight: 700; font-size: 1.15rem; }

/* ===== ОТЗЫВЫ (slick не инициализирован → flex-сетка карточек) ===== */
.reviews-slider {
  display: flex !important;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  width: auto !important;
  transform: none !important;
  padding: 0 12px;
}
.reviews-slider .slick-list, .reviews-slider .slick-track {
  transform: none !important; width: auto !important; display: contents !important;
}
.reviews-slider__item {
  flex: 0 1 380px;
  max-width: 440px;
  width: auto !important;
  box-sizing: border-box;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 22px 26px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(20, 20, 30, .06);
  margin: 0 !important;
  float: none !important;
}
.reviews-slider__item-author { font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; color: #1a1a1a; }
.reviews-slider__item-date { color: #9a9a9a; font-size: .85rem; margin-bottom: 12px; }
.reviews-slider__item-content, .reviews-slider__item-content p {
  color: #444; line-height: 1.6; font-size: .96rem; margin: 0;
}

/* ===== КАК МЫ РАБОТАЕМ (нумерованные шаги; битые иконки → номер) ===== */
.how-we-work__wrapper {
  display: flex !important;
  flex-wrap: wrap;
  gap: 26px 30px;
  counter-reset: hww;
  max-width: 1120px;
  margin: 0 auto;
}
.how-we-work__item {
  flex: 1 1 300px;
  min-width: 260px;
  position: relative;
  padding: 2px 0 2px 66px;
  counter-increment: hww;
}
.how-we-work__item::before {
  content: counter(hww);
  position: absolute;
  left: 0; top: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #ffb300;
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 179, 0, .35);
}
.how-we-work__item_icon { display: none !important; }
.how-we-work__item_text p { margin: 0 0 6px; }
.how-we-work__item_text .fontsize_20 { font-size: 1.08rem !important; color: #1a1a1a !important; }

/* ===== ЗАКАЗАТЬ + общие картинки ===== */
.col-md-6 img, picture img { max-width: 100%; height: auto; border-radius: 14px; }
.testimonials-carousel img, .owl-carousel img { max-width: 100%; height: auto; border-radius: 10px; }
