/* HEADER */
.site-header {
  background: #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);

  /* фиксированная высота, чтобы лого не растягивало весь header */
  height: 72px;

  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;

  /* чтобы всё помещалось внутри фиксированной высоты */
  height: 100%;
}

/* LOGO BLOCK */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

/* ЛОГО — увеличенное, но не растягивает родительский блок */
.logo-icon {
  height: 48px;      /* можно 50–56px если хочешь больше */
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  justify-content: center;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #001f3f;
}

.brand-sub {
  font-size: 11px;
  color: #001f3f;
  opacity: 0.75;
  letter-spacing: 0.4px;
}

/* NAVIGATION */
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.header-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.header-nav a {
  color: #666666;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.header-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #21055E;
  transition: width 0.3s ease;
}

.header-nav a:hover {
  color: #3b1a85;
}

.header-nav a:hover::after {
  width: 100%;
}

/* RIGHT SIDE */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}

.desktop-only {
  display: inline-block;
}

.phone,
.book-btn-mobile,
.menu-toggle {
  display: none;
}

/* MOBILE */
@media (max-width: 768px) {

  .site-header {
    height: auto; /* мобильный хедер может быть выше */
    padding: 10px 0;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
  }

  .logo-icon {
    height: 40px; /* немного меньше на мобилках */
  }

  .logo-text .brand-name {
    font-size: 18px;
  }

  .logo-text .brand-sub {
    font-size: 10px;
  }

  .desktop-only {
    display: none;
  }
  
  .phone,
  .book-btn-mobile,
  .menu-toggle {
    display: inline-block;
  }

  .header-nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    margin-top: 10px;
  }

  .header-nav.active {
    display: block;
    animation: dropdown .25s ease;
  }

  .header-nav ul {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 4px;
  }
}

@keyframes dropdown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
