/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300; /* выше мобильного меню */
  background-color: rgba(250,250,250,0.75);
  backdrop-filter: blur(3px);
  box-shadow: 0 13px 19px rgba(0,0,0,0.07);
  text-transform: uppercase;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Логотип поверх меню */
.header__logo {
  position: relative;
  z-index: 310; /* выше меню */

}

.header__logo img {
  width: 104px;
}

/* ===== BORDER ===== */
.border-animate {
  width: 0;
  height: 5px;
  background-color: #E76828;
  position: relative;
  z-index: 320; /* выше хедера, чтобы полоска была сверху */
  animation: draw-line 3s ease forwards;
}

@keyframes draw-line {
  from { width: 0; }
  to { width: 100%; }
}

/* ===== MENU ===== */
.menu__list {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu__list > li {
  position: relative;
}

.menu__link {
  font-size: 14px;
  font-weight: 600;
  color: #464648;
  padding: 5px 10px;
  transition: 0.3s;
  text-shadow: 0 13px 19px rgba(255, 255, 255, 1);
}

.menu__link:hover {
  color: #E76828;
}

/* ===== SUBMENU DESKTOP ===== */
.menu__sub-list {
  position: absolute;
  top: 150%;
  left: 0;
  min-width: 220px;
  background: rgba(250,250,250,0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
  z-index: 400;
  backdrop-filter: blur(3px);
}

.menu__item-has-children:hover .menu__sub-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu__sub-list li a {
  display: block;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  color: #737373;
  transition: 0.3s;
}

.menu__sub-list li a:hover {
  background: #d7d7d7;
  color: #E76828;
}

/* MOBILE SUBMENU OFF */
.menu__sublist-burger {
  display: none;
}

/* ===== BURGER ICON ===== */
.menu__icon {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 400; /* кнопка всегда кликабельна поверх всего */
}

.menu__icon span,
.menu__icon::before,
.menu__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #252B42;
  transition: 0.3s;
}

.menu__icon::before { top: 0; }
.menu__icon span { top: 50%; transform: translateY(-50%); }
.menu__icon::after { bottom: 0; }

/* Крест */
.menu__icon._active span { opacity: 0; }
.menu__icon._active::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu__icon._active::after { top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* ===== MOBILE ===== */
@media (max-width: 1200px) {

  .menu__icon { display: block; }
  .header__logo img { width: 104px; 
    margin-left: 20px;
  }

  .menu__body {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(250,250,250,0.97);
    transform: translateX(-100%);
    transition: 0.3s;
    z-index: 200; /* ниже хедера и логотипа */
    padding: 100px 20px 40px;
    overflow-y: auto;

  }

  .menu__body._active { transform: translateX(0); }

  .menu__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .menu__link {
    font-size: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* отключаем десктопное */
  .menu__sub-list { display: none; }

  /* MOBILE SUBMENU */
  .menu__sublist-burger {
    display: none;
    margin-top: 10px;
    width: 100%;
    padding-left: 10px;
  }

  .menu__item-has-children._open .menu__sublist-burger {
    display: block;
  }

  .menu__sublink-burger {
    display: block;
    font-size: 22px;
    padding: 10px;
    color: #737373;
    border-radius: 6px;
    transition: 0.3s;
  }

  .menu__sublink-burger:hover {
    background: #f2f2f2;
    color: #E76828;
  }

  /* ===== ARROW ===== */
  .menu__arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 8px;
  }

  .menu__item-has-children._open .menu__arrow {
    transform: rotate(225deg);
  }
	.header__container {
  height: 65px;
}

}

/* ===== LOCK BODY ===== */
body._lock { overflow: hidden; }

.contact-map,
#map-placeholder {
    position: relative;
    z-index: 1;
}




/**/
.body__news .menu__news, .body__projects .menu__projects, 
.body__contacts .menu__contacts, .body__company .menu__company, .body__construct .menu__construct, .body__bridge .menu__bridge, .body__road .menu__road, .body__rental .menu__rental, .body__objects .menu__objects {
  color: #E76828;
  font-weight: 700;
}

.body__contacts .footer__address {
	display: none;
}