/* Header с навигационным меню */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: #fff;
  font-family: 'MuseoSansCyrl-100';
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.10);
  max-width: 100vw;
  overflow: hidden;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.header__logo {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.logo-blue {
  color: #22b6ed;
  font-weight: 600;
}

.logo-bold {
  color: #222;
  font-weight: 700;
}

.header__nav {
  flex: 1;
  margin: 0;
  font-size: 18px;
  padding-left: 50px;
  padding-right: 50px;
}

.nav__list {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__item {
  font-size: 1.05rem;
  color: #888;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
  transition: color 0.2s, transform 0.2s, border-bottom-color 0.2s;
  position: relative;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav__item--active {
  color: #000;
  opacity: 1;
  font-weight: 600;
  border-bottom: 2px solid #222;
}

.nav__item--disabled {
  color: #bbb;
  pointer-events: none;
  opacity: 0.6;
}

.nav__item:hover:not(.nav__item--disabled) {
  color: #222;
  opacity: 1;
  transform: translateY(-3px);
  border-bottom-color: #222;
}

.header__phone {
  font-size: 20px;
  color: #222;
  font-weight: 500;
  letter-spacing: 1px;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, transform 0.2s, border-bottom-color 0.2s;
  display: inline-block;
}

.header__phone:hover:not(.header__phone--disabled) {
  color: #222;
  opacity: 1;
  transform: translateY(-3px);
  border-bottom-color: #222;
  cursor: pointer;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.header__burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #222;
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media (max-width: 1350px) {
  .header__container {
    padding: 0 50px;
    height: 65px;
  }
  
  .header__logo {
    font-size: 32px;
  }
  
  .header__nav {
    padding-left: 40px;
    padding-right: 40px;
    font-size: 16px;
  }
  
  .nav__list {
    gap: 18px;
  }
  
  .nav__item {
    font-size: 0.95rem;
  }
  
  .header__phone {
    font-size: 17px;
  }
}

@media (max-width: 1200px) {
  .header__container {
    padding-left: 40px;
    padding-right: 40px;
    gap: 25px;
    height: 60px;
  }
  
  .header__logo {
    font-size: 30px;
    order: 1;
  }
  
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #fff;
    padding: 100px 30px 30px;
    transition: right 0.4s ease;
    z-index: 100;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  
  .header__nav.active {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: 25px;
  }
  

  .header__phone {
    display: none;
  }
  
  .header__burger {
    display: flex;
    order: 2;
    position: relative;
    z-index: 101;
    margin-left: auto;
  }
  
  .header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .header__burger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }
}

/* Изменения начинаются здесь */
@media (max-width: 768px) {
  .header__container {
    padding-left: 20px;
    padding-right: 20px;
    gap: 15px;
    height: 55px;
  }
  
  .header__logo {
    font-size: 26px;
  }
  
  .header__nav {
    width: 80%;
    padding: 90px 20px 20px;
  }
  
  /* Переносим телефон в бургер-меню */
  .header__phone {
    display: none; /* Скрываем телефон в хедере */
  }
  
  /* Добавляем телефон в меню */
  .nav__phone-mobile {
    display: block;
    font-size: 18px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header__logo {
    font-size: 22px;
  }
  
  .header__nav {
    width: 85%;
    padding: 80px 15px 15px;
  }
  
  .nav__list {
    gap: 20px;
  }
  
  .nav__phone-mobile {
    font-size: 16px;
    margin-top: 20px;
    padding-top: 15px;
  }
}

body.lock {
  overflow: hidden;
}