/* Header V2 Global Styles (Strictly 1:1 with V2) */

:root {
  --ink: #1e1e1e;
  --ink-soft: #666;
  --brand: #ff5a1f;
  --brand-deep: #e84c14;
  --bg-alt: #f7f7f7;
  --line: #eaeaea;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#siteHeader {
  position: fixed;
  background: transparent !important;
    
    border-bottom: none !important;
    top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.35s ease !important;
  font-family: 'Manrope', sans-serif;
}


#siteHeader.hide {
    display: block !important;
  transform: translateY(-160%);
}
#siteHeader .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.nav-pill {
    background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
    
  max-width: 1020px;
  margin: 0 auto;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 10px 12px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
#siteHeader.scrolled .nav-pill {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

/* пока страница не прокручена — рамки нет, текст белый поверх темного экрана */
#siteHeader .logo { color: var(--ink); }
#siteHeader nav ul a { color: var(--ink); opacity: 0.85; }
#siteHeader .burger { background: transparent; border-color: var(--ink); }
#siteHeader .burger span { background: var(--ink); }

.logo {
    width: unset !important;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none !important;
}
.logo-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
#siteHeader.scrolled .logo-txt span { color: white; }
/* When scrolled, the first span uses ink, otherwise it inherits white */
#siteHeader.scrolled .logo-txt span { color: var(--ink); }

#siteHeader nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  font-size: 13.5px !important;
  font-weight: 600;
  margin: 0;
  padding: 0;
}
#siteHeader nav ul > li {
      font-size: 13.5px !important;
  position: relative;
}
#siteHeader nav ul > li > a {
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  text-decoration: none;
  display: block;
  padding: 10px 0;
  border: none !important;
}
#siteHeader.scrolled nav ul > li > a { color: var(--ink); }

#siteHeader nav ul > li > a:hover, #siteHeader nav ul > li > a.current {
  opacity: 1;
  color: var(--brand) !important;
}

/* Dropdown styling (Requested by user) */
#siteHeader nav ul > li .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  min-width: 220px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1001;
}
#siteHeader nav ul > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
#siteHeader nav ul > li .dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  opacity: 1;
}

#siteHeader nav ul > li .dropdown a:nth-last-child(1){
      border: none !important;

}
#siteHeader nav ul > li .dropdown a:hover {
  background: var(--bg-alt);
  color: var(--brand) !important;
}

/* Header buttons */
#siteHeader .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  background: var(--brand);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, background 0.25s, transform 0.15s ease-out;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  margin: 0!important;
}
#siteHeader .btn:hover {
  box-shadow: 0 10px 28px rgba(255, 90, 31, 0.45);
  background: var(--brand-deep);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  max-width: 1020px;
  margin: 10px auto 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-md);
  max-height: 80vh;
  overflow-y: auto;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu a.sub-link {
  padding-left: 32px;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
}
.mobile-menu .sep {
  height: 1px;
  background: var(--line);
  margin: 8px 16px;
}
.mobile-menu a:hover {
  background: var(--bg-alt);
  color: var(--brand);
}

@media (max-width: 900px) {
  #siteHeader nav ul { display: none; }
  .nav-pill .btn { display: none !important; }
  .burger { display: flex; }
}
