/* css/sections/header.css */

/* =========================
   HEADER (упрощённая навигация)
   ========================= */

.header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
  background:rgba(255,255,255,0.98);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(31,138,112,0.12);
  box-shadow:0 4px 20px rgba(0,0,0,0.04);
}

.header__container{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:80px;
  gap:20px;
}

/* =========================
   LOGO
   ========================= */

.header__logo{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
  font-weight:var(--font-black);
  font-size:22px;
  flex-shrink:0;
  transition:transform 0.2s ease;
}

.header__logo:hover{
  transform:scale(1.02);
}

.header__logo-img{
  width:48px;
  height:48px;
  object-fit:contain;
  border-radius:50%;
}

.header__logo-text{
  font-family:var(--font-display);
  color:var(--primary);
  letter-spacing:-0.3px;
}

/* =========================
   NAVIGATION (главные блоки)
   ========================= */

.header__nav{
  display:flex;
  align-items:center;
  gap:18px;
  flex:1;
  justify-content:center;
  min-width:0;
}

.header__nav-link{
  text-decoration:none;
  color:var(--text);
  font-weight:var(--font-bold);
  font-size:15px;
  padding:8px 12px;
  border-radius:10px;
  transition:all 0.2s ease;
  white-space:nowrap;
}

.header__nav-link:hover{
  color:var(--primary);
  background:rgba(31,138,112,0.08);
  transform:translateY(-1px);
}

/* =========================
   CTA
   ========================= */

.header__cta{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}

.header__btn{
  height:48px;
  padding:0 22px;
  border-radius:var(--radius-pill);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:var(--font-extrabold);
  font-size:15px;
  transition:all 0.2s ease;
  white-space:nowrap;
  border:none;
  cursor:pointer;
}

.header__btn--primary{
  background:linear-gradient(135deg, var(--primary), var(--primary-hover));
  color:#fff;
  box-shadow:0 4px 12px rgba(27,67,50,0.25);
}

.header__btn--primary:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(27,67,50,0.35);
}

.header__btn--phone{
  background:#fff;
  color:var(--primary);
  border:2px solid rgba(31,138,112,0.2);
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
}

.header__btn--phone:hover{
  background:#fff;
  border-color:var(--primary);
  transform:translateY(-1px);
}

/* =========================
   PHONE - Десктоп/Мобайл переключение
   ========================= */

/* На ДЕСКТОПЕ: показываем span (копирование), скрываем ссылку */
.header__phone-desktop {
  display:inline-flex;
}

.header__phone-mobile {
  display:none;
}

/* На МОБИЛКЕ: скрываем span, показываем ссылку (звонок) */
@media (max-width:768px) {
  .header__phone-desktop {
    display:none;
  }
  
  .header__phone-mobile {
    display:inline-flex;
  }
}

/* =========================
   MOBILE MENU TOGGLE
   ========================= */

.header__menu-toggle{
  display:none;
  width:44px;
  height:44px;
  border:none;
  background:transparent;
  cursor:pointer;
  padding:10px;
  flex-direction:column;
  justify-content:center;
  gap:6px;
}

.header__menu-toggle span{
  width:100%;
  height:3px;
  background:var(--primary);
  border-radius:2px;
  transition:all 0.3s ease;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width:980px){
  .header__container{
    height:72px;
    gap:16px;
  }

  .header__logo-img{
    width:44px;
    height:44px;
  }

  .header__logo-text{
    font-size:20px;
  }

  .header__nav{
    display:none;
  }

  .header__cta{
    gap:10px;
  }

  .header__btn{
    height:46px;
    padding:0 18px;
    font-size:14px;
  }

  .header__menu-toggle{
    display:flex;
  }
}

@media (max-width:640px){
  .header__container{
    height:68px;
    padding:0 16px;
  }

  .header__logo-img{
    width:40px;
    height:40px;
  }

  .header__logo-text{
    font-size:18px;
  }

  .header__btn{
    height:44px;
    padding:0 16px;
    font-size:14px;
  }

  .header__btn--primary{
    padding:0 18px;
  }
  
  /* На мобилке в кнопке телефона показываем только иконку */
  .header__btn--phone {
    padding:0 14px;
    min-width:44px;
  }
}