/* ================= HEADER ONLY ================= */

.header-block {
  background: #fff;
  border-bottom: 1px solid #e6ebf1;
}

/* ===== FIXED HEADER (DESKTOP ONLY) ===== */
@media (min-width: 769px) {
  .header-block.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
  }

  body.has-fixed-header {
    padding-top: 72px;
  }
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  transition: padding 0.35s ease;
}

/* LOGO */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.header-logo .logo-text {
  font-family: "DIN Alternate", Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #2b81d9;
  letter-spacing: 0.4px;

  /* ✨ плавное исчезновение */
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    max-width 0.45s ease,
    margin 0.45s ease;
  white-space: nowrap;
  overflow: hidden;
  max-width: 160px;
}

/* DESKTOP NAV */
.desktop-nav {
  display: flex;
  gap: 20px;

  /* ✨ плавный сдвиг */
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav a {
  color: #4a5a6a;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
}

.desktop-nav a:hover {
  background: #eef3fb;
  color: #1e88e5;
}

/* ===== COMPACT MODE (SCROLL) ===== */
@media (min-width: 769px) {
  .header-block.is-compact .logo-text {
    opacity: 0;
    transform: translateX(-24px);
    max-width: 0;
    margin-left: -12px;
  }

  /* ⬅️ СИЛЬНЕЕ и ПЛАВНЕЕ едем к иконке */
.header-block.is-compact .desktop-nav {
  transform: translateX(-220px);
  transition:
    transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}
  .header-block.is-compact .header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* BURGER */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1e88e5;
  margin: 5px 0;
}

/* MOBILE */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #e6ebf1;
}

.mobile-nav a {
  padding: 14px 20px;
  color: #4a5a6a;
  text-decoration: none;
  border-bottom: 1px solid #eef3fb;
}

.mobile-nav.open {
  display: flex;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .burger {
    display: block;
  }
}
