/* =====================================================
   HEADER / TOP BAR
   ===================================================== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-top {
  background: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-lt);
}
.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-top__logo img {
  height: 60px;
  width: auto;
}
.header-top__contacts {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-top__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--navy);
  font-weight: 500;
}
.header-top__contact svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
}
.header-top__contact a {
  color: var(--navy);
  transition: var(--trans);
}
.header-top__contact a:hover {
  color: var(--green);
}
.header-top__contact .sep {
  color: var(--gray-lt);
  font-size: 1.4rem;
  line-height: 1;
}

/* ── Navbar ── */
.navbar {
  /* background: var(--navy); */
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Desktop styles */
@media (min-width: 961px) {
  .nav__menu {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .nav__list {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    flex: 1;
  }

  .nav__book {
    margin-left: 0;
  }
}

.nav__item {
  position: relative;
}
.nav__item:hover .nav__dropdown {
  display: block;
  animation: dropIn 0.18s ease;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 17px 18px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0c5d91;
  letter-spacing: 0.04em;
  transition: var(--trans);
  border-bottom: 3px solid transparent;
}
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link:hover,
.nav__link.active {
  color: #89b555;
  background: rgba(255, 255, 255, 0.08);
  /* border-bottom-color: var(--green); */
  font-weight: 100;
}

.nav__link svg {
  width: 12px;
  height: 12px;
}

.nav__book .btn {
  border-radius: 0;
  padding: 18px 24px;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

/* ── Dropdown ── */
.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 260px;
  box-shadow: var(--shadow2);
  border-top: 3px solid var(--green);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 300;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav__dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--gray-lt);
  transition: var(--trans);
}
.nav__dropdown a:last-child {
  border-bottom: none;
}
.nav__dropdown a::before {
  content: none;
}
.nav__dropdown a:hover {
  background: var(--green-lt);
  color: var(--green);
  padding-left: 24px;
}
.nav__dropdown a {
  white-space: nowrap;
}

/* ── Mobile Burger ── */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--trans);
}

@media (max-width: 960px) {
  .nav__burger {
    display: flex;
  }
  .nav__menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 290px;
    z-index: 400;
    padding: 64px 0 32px;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25);
  }
  .nav__menu.open {
    display: block;
  }
  .nav__list {
    flex-direction: column;
  }
  .nav__link {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-left: none;
  }
  .nav__dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0;
  }
  .nav__dropdown a {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.07);
    padding-left: 36px;
  }
  .nav__dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
  .nav__book {
    margin: 16px 24px 0;
  }
  .nav__book .btn {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius);
  }
  .nav__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 399;
  }
  .nav__overlay.open {
    display: block;
  }
  .nav__menu {
    background: #ffffff;
    color: var(--navy);
    border-left: 1px solid #d8e0eb;
  }
  .nav__link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    color: #0c5d91;
    flex-shrink: 0;
  }
  .nav__link-icon svg {
    width: 14px;
    height: 14px;
  }
  .nav__list {
    display: flex;
    flex-direction: column;
  }
  .nav__link {
    color: #0c5d91;
    background: #ffffff;
  }
  .nav__link:hover,
  .nav__link.active {
    color: #ffffff;
    background: var(--green-dk);
    font-weight: 600;
  }
  .nav__dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: #f7fbff;
    padding-left: 12px;
  }
  .nav__dropdown a {
    color: #0c5d91;
    border-color: rgba(18, 80, 135, 0.12);
  }
  .nav__dropdown a:hover {
    background: rgba(137, 181, 85, 0.15);
    color: #214a74;
  }
  .header-top__contacts {
    display: none;
  }
}
