/* Основной хедер */

/* .content{
    display: flex;
    flex-direction: column;
} */

.main-header {
    background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: 10px;
  padding-bottom: 5px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-s) 0;
  /* background-color: #01acbb; */
}

/* Логотип */
.logo{
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo__image {
  display: block;
  width: 148px;
  height: auto;
}

.logo__pin {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: #0d2c5f;
  border-radius: 10px;
}
.logo__text-1{
  font-size: 16px;
  line-height: 150%;
  color: #0a2463;
}

.logo__text-2{
  font-size: 12px;
  line-height: 133%;
  color: #4a5565;

}


/* Навбар */
.nav ul{
  display: flex;
  gap: 32px;
}

.navbar-link {
  font-weight: 500;
  color: #364153;;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease;
}

.navbar-link:hover,
.navbar-link.active {
  color: #00c2d2;;
}

/* Подчёркивание при наведении */
.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #00c2d2;;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.navbar-link:hover::after {
  transform: scaleX(1);
}

/* Контакт и корзина */
.taskbar {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact{
  display: flex;
  gap: 8px;
  cursor: pointer;
}
.contact p{
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #0a2463;
}
.basket-btn img{
  width: 24px;
  height: 24px;
}

.basket-btn{
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  transition: background-color 0.2s ease;
  position: relative;
}

.basket-btn:hover {
  background-color: #f2f2f2;
  cursor: pointer;
}

.basket-btn__counter {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background-color: #ff4b4b;
  color: #ffffff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px #ffffff;
  display: none;
}

.basket-btn__counter--visible {
  display: inline-block;
}

.consultation-btn{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 227px;
  height: 44px;
  border-radius: 10px;
  background-color: #00C2D2;
}

.consultation-btn:hover{
    background-color: #01acbb;
    cursor: pointer;
}
.consultation-btn p{
  font-size: 16px;
  line-height: 150%;
  color: #fff;
}

.burger-btn{
    display: none;
}
@media (max-width: 1074px){
    .contact{
        display: none;
    }
}

@media (max-width: 879px){
    .burger-btn{
        display: block;
    }

    .nav{
        display: none;
    }

    .consultation-btn{
        display: none;
    }
}

/* Мобильное меню */
.mobile-menu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  justify-content: flex-end;
  z-index: 1050;
}

.mobile-menu-overlay--visible{
  display: flex;
}

.mobile-menu{
  width: 260px;
  max-width: 80%;
  background: #ffffff;
  height: 100vh;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
}

.mobile-menu__header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu__title{
  font-size: 16px;
  color: #0a2463;
}

.mobile-menu__close{
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #4b5563;
}

.mobile-menu__nav{
  display: flex;
  flex-direction: column;
  padding: 12px 18px;
  gap: 12px;
}

.mobile-menu__link{
  font-size: 15px;
  color: #111827;
}

@media (min-width: 880px){
  .mobile-menu-overlay{
    display: none !important;
  }
}
/* Бургер-меню */
.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.burger-btn img {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .burger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav {
        display: none;
    }
}
