/* overrides.css — CSS-переопределения по замечаниям клиента (Редакция 20.03.26) */

/* Fix: <button> не наследует font от окружающих <a> — Меню рендерится Roboto 24px вместо OpenSans-Bold 14px */
button.header__right__nav__menu,
button.header__right__nav__menu .semi-desktop {
  font-family: 'OpenSans-Bold', sans-serif !important;
  font-size: 14px !important;
  color: #6f6f6f !important;
}
button.header__right__nav__menu {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
}


/* Задача 2: показать подписи иконок на semi-desktop (1024–1366px) */
@media screen and (min-width:1024px) and (max-width:1366px) {
  .semi-desktop {
    display: block !important;
    font-size: 0.65rem;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
  }
  .header {
    height: 88px !important;
    align-items: flex-start !important;
    padding-top: 10px;
  }
  .header__left,
  .header__right {
    height: auto !important;
    align-items: flex-start !important;
  }
  .header__right__nav {
    height: auto !important;
    align-items: flex-start !important;
    gap: 0.8vw;
  }
  .header__right__nav li {
    margin-right: 0 !important;
  }
  .header__right__nav li a,
  .header__right__nav__menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px;
    height: auto !important;
    min-width: 52px;
    text-align: center !important;
    line-height: 1.1 !important;
  }
  .header__right__nav li a {
    font-size: 12px !important;
  }
  .header__right__nav__icon,
  .header__right__nav__menu i {
    margin-right: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }
  .header__right__nav__menu {
    font-size: inherit !important;
  }
  .header__right__nav__menu .semi-desktop {
    display: none !important;
  }
  .header__right .login-panel {
    margin-left: 0.8vw !important;
    align-items: flex-start !important;
  }
  .header__right .login-panel__login {
    margin-top: 8px;
  }
}

/* Задача 3: убрать изображение «СК» и полоску (страховка) */
.content__banner__image { display: none !important; }
.content__banner {
  width: 100% !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.content__banner__title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  transform: translateX(0.5vw) !important;
}
.content__banner span {
  text-align: center !important;
}
@media screen and (max-width:1024px) {
  .content__banner {
    width: 100vw !important;
  }
  .content__banner__title {
    transform: none !important;
  }
}

/* Задача 5: выравнивание первой колонки футера по левому краю */
.footer__column:first-child,
.footer__column:first-child .footer__bigtext,
.footer__column:first-child .footer__number { text-align: left !important; }
.footer__column:first-child .footer__number { padding-left: 0 !important; }
@media screen and (max-width:1024px) {
  .footer { justify-content: flex-start !important; }
  .footer__column:first-child { padding-left: 5vw !important; }
}

/* Задача 7: мобильный хедер — единый бар с логотипом + навигацией */
@media screen and (max-width:1024px) {
  /* Скрыть старый header и показать новый unified-header */
  #header.header { display: none !important; }
  .header-foot.mobile {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
    box-shadow: 0 1px 4px 1px rgba(0,0,0,.08) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    height: 56px !important;
  }
  .header-foot-brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    padding-left: 12px;
    flex-shrink: 0;
  }
  .header-foot-list {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    justify-content: flex-end !important;
    height: auto !important;
  }
  .header-foot-item {
    flex-shrink: 0 !important;
    text-align: center !important;
    width: auto !important;
    height: auto !important;
  }
  .header-foot-item a {
    font-size: 0 !important;   /* скрыть текстовые подписи */
    padding: 6px 6px !important;
    white-space: nowrap !important;
  }
  .header-foot-item button {
    padding: 6px 6px !important;
    margin-right: 6px !important;
  }
  .header-foot-icon {
    font-size: 1.5rem !important;  /* крупные иконки для читаемости */
  }
}

/* Панель иконок под хедером (мобильная) */
@media screen and (max-width:1024px) {
  .header-icons-bar.mobile {
    position: fixed !important;
    top: 56px !important;
    left: 0; right: 0;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center;
    background: #fff;
    padding: 4px 0;
    border-bottom: 1px solid #e5e6e8;
    z-index: 999;
  }
  .header-icons-bar.mobile a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #6f6f6f;
    font-size: 11px;
    font-weight: 500;
  }
  .header-icons-bar.mobile a i {
    font-size: 1.4rem;
    color: #393939;
  }
  .header-icons-bar.mobile .icon-branches:before {
    content: "\0061" !important;
  }
  .header-icons-bar.mobile .icon-tracking-new:before {
    content: "\0046" !important;
  }
}
@media screen and (min-width:1025px) {
  .header-icons-bar.mobile { display: none !important; }
}

/* Кнопка «Оставить запрос» — текст по центру */
a.footer__feedback__submit {
  text-align: center !important;
}

/* Dropdown nav и контент — выровнять под хедер (56px) + панель иконок (59px) = 115px */
@media screen and (max-width:1024px) {
  body { padding-top: 98px !important; }
  .nav { top: 98px !important; }
  .content { margin-top: 0 !important; }
}

/* Задача 9: убрать большой отступ на мобильных */
@media screen and (max-width:1024px) {
  .stocks { padding-top: 0 !important; }
  .stocks.news { padding-top: 0 !important; }
  .content__banner { margin-bottom: 10px !important; }
}

/* Задача 10: соцсети в мобильном футере */
@media screen and (max-width:1024px) {
  .footer__social-mobile { display: flex !important; gap: 12px; margin-top: 16px; justify-content: left; }
  .footer__social-mobile a { color: #fafafa; font-size: 1.4rem; }
}
@media screen and (min-width:1025px) {
  .footer__social-mobile { display: none !important; }
}

/* Секция «Личный кабинет» в #Dropdown гамбургер-меню (для авторизованных).
   Каждый пункт = flex-item на полную ширину родителя, box-sizing: border-box
   чтобы padding не расширял ширину за пределы drawer'а.
   Text-align: right — визуально отделяем от публичного меню, идущего ниже. */
.nav__menu__section-divider--top,
.nav__menu__item--cabinet {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  list-style: none;
  text-align: right;
}
.nav__menu__section-divider--top {
  padding: 10px 16px 6px 0 !important;
  border-bottom: 1px solid #e5e6e8;
}
.nav__menu__section-divider--top span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ca1226;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: right;
}
.nav__menu__item--cabinet > a {
  display: block;
  padding: 6px 16px 6px 0;
  text-align: right;
  width: 100%;
  box-sizing: border-box;
}
/* После секции ЛК — разделитель перед публичным меню */
.nav__menu__item--cabinet:last-of-type {
  border-bottom: 1px solid #e5e6e8;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.nav__menu__item--logout a { color: #ca1226 !important; }

/* На desktop уже есть Vue-dropdown «Мои перевозки» — секция ЛК в гамбургере
   только для mobile (<1025px). */
@media screen and (min-width:1025px) {
  .nav__menu__section-divider--top,
  .nav__menu__item--cabinet {
    display: none !important;
  }
}
