/* Homepage-only header and mobile menu (isolated class names) */

/* ——— Mobile menu ——— */
.home-mobile-menu {
  display: none;
  transition: all 0.3s ease;
}

@media screen and (max-width: 1024px) {
  .home-mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: calc(100% - 60px);
    position: fixed;
    top: 60px;
    left: -110vw;
    background-color: #fff;
    z-index: 99;
    padding: 30px 0;
  }

  .home-mobile-menu.active {
    left: 0;
  }
}

.home-mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-mobile-menu__item {
  list-style: none;
  text-align: center;
}

.home-mobile-menu__link {
  font-size: 18px;
  font-weight: 500;
  color: #2A2E39;
  cursor: pointer;
  text-decoration: none;
  font-family: "Onest", sans-serif;
}

.home-mobile-menu__link:hover {
  color: #0F66FF;
}

.home-mobile-menu__link:hover path {
  fill: #0F66FF;
}

.home-mobile-menu__item--dropdown .home-mobile-menu__drop-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-mobile-menu__item--dropdown .home-mobile-menu__drop-menu.active {
  display: block;
  padding-top: 15px;
}

.home-mobile-menu__item--dropdown {
  position: relative;
}

.home-mobile-menu__item--dropdown > .home-mobile-menu__toggle {
  position: absolute;
  padding: 10px 20px;
  margin-top: -10px;
}

.home-mobile-menu__item--dropdown .home-mobile-menu__drop-menu > li {
  position: relative;
}

.home-mobile-menu__item--dropdown .home-mobile-menu__drop-menu > li > .home-mobile-menu__toggle {
  position: absolute;
  padding: 10px 20px;
  margin-top: -10px;
  right: -20px;
}

.home-mobile-menu__item--dropdown .home-mobile-menu__drop-menu.active .home-mobile-menu__drop-link {
  font-weight: 500;
  font-size: 16px;
  color: #2A2E39;
  text-decoration: none;
}

.home-mobile-menu__cargo-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-mobile-menu__cargo-menu.active {
  display: block;
  padding: 10px 0;
}

.home-mobile-menu__cargo-menu.active .home-mobile-menu__cargo-link {
  font-weight: 400;
  font-size: 14px;
  display: block;
  color: #2A2E39;
  text-decoration: none;
  font-family: "Onest", sans-serif;
}

.home-mobile-menu__toggle {
  cursor: pointer;
  flex-shrink: 0;
  font-style: normal;
}

.home-mobile-menu__socials {
  display: flex;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 16px;
}

.home-mobile-menu__socials-item {
  width: 40px;
  height: 40px;
}

.home-mobile-menu__socials-item img {
  width: 40px;
  height: 40px;
  display: block;
}

.home-mobile-menu__btn {
  width: 177px;
  height: 60px;
  background-color: #0F66FF;
  border-radius: 16px;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  border: none;
  font-family: "Onest", sans-serif;
}

@media screen and (max-width: 1400px) {
  .home-mobile-menu__btn {
    font-size: 14px;
    width: 200px;
  }
}

@media screen and (max-width: 1200px) {
  .home-mobile-menu__btn {
    font-size: 12px;
    width: 150px;
  }
}

/* ——— Header ——— */
.home-header {
  position: fixed;
  width: 100%;
  z-index: 99;
  background-color: #fff;
  top: 0;
  left: 0;
}

.home-header__inner {
  display: block;
  padding: 30px 0;
}

@media screen and (max-width: 1024px) {
  .home-header__inner {
    padding: 16px 0;
  }
}

.home-header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 1024px) {
  .home-header__top {
    display: none;
  }
}

.home-header__socials {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.home-header__socials-item {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.home-header__socials-item img {
  width: 40px;
  height: 40px;
  display: block;
}

/* Нижняя строка шапки (аналог .header__wrapper__bottom в макете) */
.home-header__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  width: 100%;
}

@media screen and (max-width: 1024px) {
  .home-header__bottom {
    margin-top: 0;
  }

  .home-header__logo img {
    width: 82px;
  }
}

.home-header__phone {
  margin-left: auto;
  margin-right: 32px;
  flex-shrink: 0;
}

.home-header__phone a {
  font-size: 18px;
  font-weight: 500;
  color: #2A2E39;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: "Onest", sans-serif;
}

.home-header__phone a:hover {
  color: #0F66FF;
}

@media screen and (max-width: 1024px) {
  .home-header__phone {
    margin-right: 16px;
  }

  .home-header__phone a {
    font-size: 16px;
    white-space: nowrap;
  }
}

.home-mobile-menu__phone {
  margin-bottom: 20px;
}

.home-mobile-menu__phone a {
  font-size: 18px;
  font-weight: 500;
  color: #2A2E39;
  text-decoration: none;
  font-family: "Onest", sans-serif;
}

.home-mobile-menu__phone a:hover {
  color: #0F66FF;
}

/* Навигация: как в макете — только flex + gap, без flex:1 и justify-content */
.home-header__nav {
  display: flex;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-header__nav-item {
  list-style: none;
}

.home-header__nav-link {
  font-size: 18px;
  font-weight: 500;
  color: #2A2E39;
  cursor: pointer;
  text-decoration: none;
  font-family: "Onest", sans-serif;
}

.home-header__nav-link:hover {
  color: #0F66FF;
}

.home-header__nav-link:hover path {
  fill: #0F66FF;
}

@media screen and (max-width: 1400px) {
  .home-header__nav-link {
    font-size: 14px;
  }
}

@media screen and (max-width: 1200px) {
  .home-header__nav-link {
    font-size: 12px;
  }
}

.home-header__nav-item--dropdown {
  position: relative;
}

.home-header__nav-item--dropdown:hover .home-header__drop-menu {
  visibility: visible;
}

.home-header__drop-menu {
  position: absolute;
  left: -20px;
  top: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: max-content;
  visibility: hidden;
  padding: 20px;
  background-color: #fff;
  list-style: none;
  margin: 0;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.home-header__drop-menu-item {
  font-size: 18px;
  font-weight: 500;
  color: #2A2E39;
  list-style: none;
}

.home-header__drop-menu-link {
  color: #2A2E39;
  text-decoration: none;
  font-family: "Onest", sans-serif;
}

.home-header__drop-menu-link:hover {
  color: #0F66FF;
}

.home-header__drop-menu-link:hover path {
  fill: #0F66FF;
}

@media screen and (max-width: 1400px) {
  .home-header__drop-menu-item {
    font-size: 14px;
  }
}

.home-header__drop-menu-item--sub {
  position: relative;
}

.home-header__drop-menu-item--sub:hover .home-header__cargo-menu {
  visibility: visible;
}

.home-header__cargo-menu {
  position: absolute;
  left: 100%;
  top: -20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: max-content;
  visibility: hidden;
  padding: 20px;
  background-color: #fff;
  list-style: none;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.home-header__cargo-menu-item {
  list-style: none;
}

.home-header__cargo-menu-link {
  color: #2A2E39;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  font-family: "Onest", sans-serif;
}

.home-header__cargo-menu-link:hover {
  color: #0F66FF;
}

.home-header__burger {
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}

.home-header__burger img {
  width: 24px;
  height: 24px;
  display: block;
}

.home-header__btn {
  width: 177px;
  height: 60px;
  background-color: #0F66FF;
  border-radius: 16px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border: 0;
  font-family: "Onest", sans-serif;
}

@media screen and (max-width: 1400px) {
  .home-header__btn {
    font-size: 14px;
    width: 200px;
  }
}

@media screen and (max-width: 1200px) {
  .home-header__btn {
    font-size: 12px;
    width: 150px;
  }
}

/* Не даём глобальным правилам layout-new/style перебивать шапку */
.home-header img {
  width: auto;
  height: auto;
  max-height: 100%;
}

.home-header__logo img {
  width: 160px;
  max-width: 100%;
}
