/* =========================
   HEADER + NAV
========================= */

.site-header{
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
}

.logo-link{
  display:flex;
  align-items:center;
  gap: 10px;
}

.logo img{
  height: 44px;
  width: 44px;
  object-fit: contain;
}

.logo-text strong{
  display:block;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--blue-dark);
}
.logo-text span{
  display:block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.top-nav{
  display:flex;
  align-items:center;
  gap: 10px;
}

.nav-link{
  position: relative;
  display:inline-flex;
  align-items:center;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 700;
  color: var(--blue-dark);
  background: rgba(29,78,216,.06);
}

.nav-link:hover{
  background: rgba(29,78,216,.10);
}

.nav-link.active{
  background: rgba(29,78,216,.14);
}

.nav-dropdown{
  position: relative;
  display:inline-flex;
  align-items:center;
}

/* dropdown */
.nav-dropdown .nav-menu{
  position:absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  min-width: 240px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display:none;
  z-index: 9999;
}

/* мостик — чтобы не “убегало” */
.nav-dropdown::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height: 14px;
  display:none;
}

.nav-dropdown:hover .nav-menu{ display:block; }
.nav-dropdown:hover::after{ display:block; }

.nav-sub{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--blue-dark);
}

.nav-sub:hover{
  background: rgba(29,78,216,.08);
}

.nav-sub.active{
  background: rgba(29,78,216,.12);
}

/* right side */
.header-right{
  display:flex;
  align-items:center;
  gap: 16px;
}

.header-phone{
  text-align:right;
}
.header-phone-label{
  font-size: 12px;
  color: var(--text-muted);
}
.header-phone-link{
  font-size: 15px;
  font-weight: 900;
  color: var(--blue-dark);
}

/* anchors not hidden */
section, [id]{ scroll-margin-top: 90px; }

/* responsive */
@media (max-width: 980px){
  .header-inner{ flex-wrap: wrap; }
  .top-nav{ width:100%; flex-wrap: wrap; }
  .header-phone{ text-align:left; }
}
/* ===== LOGO (как на макете) ===== */
.logo-link{
  display:flex;
  align-items:center;
  gap: 12px;
}

.logo-img{
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.logo-text{
  display:flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-title{
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--blue-dark);
  font-size: 18px;
  text-transform: uppercase;
}

.logo-subtitle{
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
/* ===== Header compact fix ===== */
.header-inner{ align-items:center; }
.logo{ flex: 0 0 auto; }
.top-nav{ flex: 1 1 auto; justify-content: center; }
.header-right{ flex: 0 0 auto; display:flex; align-items:center; gap:14px; }

.header-phone{ white-space:nowrap; }
.header-phone-link{ white-space:nowrap; }

.btn{ white-space:nowrap; }

@media (max-width: 1100px){
  .top-nav{ justify-content:flex-start; }
  .header-right{ width:100%; justify-content:space-between; }
}
