/* HEADER RESPONSIVE */
header.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.logo-img {
  width: 210px;
  max-width: 100%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

.desktop-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-links a {
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.desktop-links a:hover {
  background: rgba(34, 197, 94, 0.10);
  color: var(--green-deep);
}

.desktop-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow2);
  transition: 0.2s ease;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--green-deep);
  transition: 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}

.mobile-menu.open {
  display: block;
  max-height: 500px;
  opacity: 1;
  padding: 0 0 18px;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0 14px;
}

.mobile-links a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 600;
}

.mobile-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mobile-actions .btn {
  width: 100%;
}

@media (max-width: 1100px) {
  .logo-img {
    width: 190px;
    max-height: 66px;
  }

  .desktop-links a {
    padding: 10px 10px;
    font-size: 13px;
  }

  .desktop-actions .btn {
    padding: 11px 14px;
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .nav-inner {
    min-height: 78px;
  }

  .desktop-links,
  .desktop-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .logo-img {
    width: 180px;
    max-height: 60px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .nav-inner {
    min-height: 74px;
    gap: 12px;
  }

  .logo-img {
    width: 165px;
    max-height: 56px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .mobile-links a {
    font-size: 14px;
    padding: 13px 14px;
  }
}

@media (max-width: 520px) {
  html {
    scroll-padding-top: 74px;
  }

  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .nav-inner {
    min-height: 70px;
  }

  .logo-img {
    width: 148px;
    max-height: 50px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .nav-toggle span {
    width: 18px;
  }
}