/* ==================== ОСНОВНЫЕ СТИЛИ ШАПКИ ==================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background: black; */
  background: var(--Heading, #24272C);
  color: white;
  transition: transform 0.3s ease;
  transform: translateY(0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header.hidden {
  transform: translateY(-100%);
}

header a {
color: white;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 5px;
  color: #FFF;
  font-family: Onest;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  margin-left: 60px;
  white-space: nowrap;
}

.logo img {
  width: 74px;
  height: 63px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: 60px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.phones {
display: inline-grid;
  gap: 0px;
  white-space: nowrap;
}

.phone {
  text-decoration: none;
  color: #FFF;
  font-family: Onest;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.phone:hover {
  color: #ffd966;
}

.header-social-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.header-social-icon {
  width: 48px;
  height: 48px;
  cursor: pointer;
}
.header-social-icon1 {
  width: 23px;
  height: 23px;
  cursor: pointer;
  vertical-align: center;
  margin-left: 10px;
}
.header-flag-icon {
  width: 23px;
  height: 23px;

  vertical-align: center;
  margin-left: 10px;
}

.h_tels{
text-align: right;	
}

.header-social-icon:hover {
  opacity: 1;
}

.header-btn {
  border-radius: 14px;
  height: 48px;
  padding: 10px 24px;
  border: none;
  background-color: #FC0;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-family: Onest;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
}

.header-btn:hover {
  background-color: #f59e0b;
  transform: scale(1.02);
}

.profile-icon {
  width: 48px;
  height: 48px;
  cursor: pointer;
}

.profile-icon:hover {
  opacity: 1;
}

/* Бургер-меню для мобильных */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
  margin-right: 15px;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Мобильное меню - на всю ширину */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: #1a1a1a;
  z-index: 999;
  transition: left 0.3s ease;
  padding: 100px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  display: none;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu-link {
  color: white;
  text-decoration: none;
  font-family: Onest;
  font-size: 20px;
  font-weight: 500;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s;
  text-align: center;
}

.mobile-menu-link:hover {
  color: #fbbf24;
}

.mobile-menu-btn {
  display: flex;
  height: 55px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--Main-color, #FC0);
  border: none;
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

.mobile-menu-btn:hover {
  background: #f59e0b;
  transform: scale(1.02);
}

.mobile-social-icons {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-social-icon {
  width: 48px;
  height: 48px;
  cursor: pointer;
}

.mobile-call-btn {
  display: flex;
  width: 100%;
  height: 55px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--Main-color, #FC0);
  border: none;
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
  margin-top: 10px;
}

.mobile-call-btn:hover {
  background: #f59e0b;
  transform: scale(1.02);
}

/* ==================== АДАПТИВНЫЕ СТИЛИ ШАПКИ ==================== */

/* Для экранов 1400px - уменьшаем отступы */
@media (max-width: 1400px) {
  .logo {
    margin-left: 40px;
  }
  
  .header-right {
    margin-right: 40px;
    gap: 20px;
  }
  
  .phone {
    font-size: 20px;
  }
  
  .header-social-icon {
    width: 40px;
    height: 40px;
  }
  
  .header-btn {
    height: 44px;
    padding: 8px 20px;
    font-size: 13px;
  }
  
  .profile-icon {
    width: 44px;
    height: 44px;
  }
}

/* Для экранов 1280px - корректируем, чтобы все элементы помещались в одну строку */
@media (max-width: 1280px) {
  header {
    padding: 0.8rem 0;
  }
  
  .logo {
    margin-left: 20px;
    font-size: 22px;
  }
  
  .logo img {
    width: 55px;
    height: 47px;
  }
  
  .header-right {
    margin-right: 20px;
    gap: 15px;
    flex-wrap: nowrap;
  }
  
  .phones {
    gap: 12px;
  }
  
  .phone {
    font-size: 16px;
  }
  
  .header-social-icons {
    gap: 10px;
  }
  
  .header-social-icon {
    width: 32px;
    height: 32px;
  }
  
  .header-btn {
    height: 38px;
    padding: 6px 16px;
    font-size: 12px;
  }
  
  .profile-icon {
    width: 38px;
    height: 38px;
  }
}

/* Для экранов до 768px - мобильные устройства с бургер-меню */
@media (max-width: 768px) {
  header {
    padding: 0.6rem 0;
  }
  
  .logo {
    margin-left: 15px;
    font-size: 18px;
  }
  
  .logo img {
    width: 45px;
    height: 38px;
  }
  
  .header-right {
    margin-right: 0;
    gap: 0;
  }
  
  /* Скрываем все элементы в header-right */
  .phones,
  .header-social-icons,
  .header-btn,
  .profile-icon {
    display: none;
  }
  
  /* Показываем бургер-меню с отступом справа 15px */
  .burger-menu {
    display: flex;
    margin-right: 15px;
  }
}