/* ============================================================
   staff.css — кастомные стили staff.auto-plus.ru
   Подключать ПОСЛЕДНИМ (после style.css, semantic, theme.min.css).
   ============================================================ */

/* --- Показываем контент, который critical-CSS прячет (Angular убран) --- */
.slice, .footer, .breadcrumbs { display: block !important; }
.page-loader { display: none !important; }

/* --- Картинки в контенте не вылезают за колонку --- */
.slice__content img { max-width: 100%; height: auto; }
.slice__content .ui.grid { margin-left: 0; margin-right: 0; }
.slice__content .ui.grid > .column { padding: 6px; }
.slice__content .ui.grid > .column > img { display: block; width: 100%; height: auto; border-radius: 4px; object-fit: cover; }
@media (max-width: 767px) {
  .slice__content .ui.three.column.grid > .column { width: 100% !important; }
}

/* ============================================================
   Шапка: лого + меню + кабинет в один ряд (десктоп)
   ============================================================ */
@media (min-width: 992px) {
  .header-main__container { display: flex; align-items: center; min-height: 88px; }
  .header-main__company { float: none !important; margin: 0 40px 0 0; flex: 0 0 auto; }
  .header-main__menu {
    display: flex !important;      /* перебиваем display:none@992 из critical-CSS */
    float: none !important;
    align-items: center; gap: 24px;
    margin: 0; padding: 0; border: 0; flex: 1 1 auto;
  }
  .header-main__menu .accordion-menu__item { float: none !important; border: 0 !important; margin: 0 !important; background: none !important; }
  .header-main__menu .accordion-menu__link_level-1 { padding: 12px 0 !important; white-space: nowrap; }
  .accordion-menu_cabinet { float: none !important; margin-left: auto; flex: 0 0 auto; }
}
@media (max-width: 991px) {
  .header-main__menu { display: none !important; }   /* на планшете/мобиле — бургер */
}

/* ============================================================
   Карточки вакансий (перебиваем theme.min.css)
   ============================================================ */
.cd-main-content .ui.grid { align-items: center; margin-bottom: 10px; }

.cd-gallery ul { list-style: none; margin: 0; padding: 0; font-size: 0; }
.cd-gallery li.mix {
  display: none;                    /* базовое = none: MixItUp v2 прячет, снимая инлайн-стиль, и показывает, ставя inline-block */
  vertical-align: top;
  width: 33.333% !important;
  float: none !important;
  padding: 0 8px 16px;
  box-sizing: border-box;
  font-size: 14px;
  list-style: none;
}
@media (max-width: 991px) { .cd-gallery li.mix { width: 50% !important; } }
@media (max-width: 600px) { .cd-gallery li.mix { width: 100% !important; } }

.cd-gallery .list-job__item {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid #e3e9ef;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  box-shadow: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.cd-gallery .list-job__item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  border-color: #116193;
  transform: translateY(-2px);
}
.cd-gallery .list-job__title {
  position: static !important;
  display: block;
  font-size: 17px; font-weight: 600; line-height: 1.3;
  color: #116193; margin: 0 0 8px;
  max-height: none !important; height: auto !important; overflow: visible !important;
}
.cd-gallery .list-job__subtext {
  position: static !important;
  display: block;
  font-size: 13px; line-height: 1.4; color: #728090;
  margin: 0 0 14px; height: auto !important;
}
.cd-gallery .list-job__price {
  position: static !important;
  display: block; margin: auto 0 0;
  font-size: 16px; font-weight: 700; color: #353b3e; white-space: nowrap;
}
.cd-fail-message { padding: 20px 0; color: #728090; }

/* ============================================================
   Подвал — оформляется полностью через theme.min.css (v236),
   как на основном сайте. Свои стили тут НЕ держим (конфликтуют).
   Показ .footer — в блоке "показываем контент" выше.
   ============================================================ */

/* ============================================================
   Кнопка «наверх»
   ============================================================ */
.scroll-up {
  position: fixed; right: 20px; bottom: 20px;
  width: 44px; height: 44px; display: none;
  align-items: center; justify-content: center;
  background: #116193; border-radius: 50%; cursor: pointer;
  z-index: 1040; box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.scroll-up_visible { display: flex; }
.scroll-up__icon { width: 20px; height: 20px; fill: #fff; }
