/* ============================================
   header-new.css — ТОЛЬКО ХЕДЕР
   ============================================ */

:root {
  --dark-bg:  #091E3E;
  --gradient-start: #091E3E;
  --gradient-end: #0D2E5C;
  --orange: #FF7800;
  --orange-hover: #E56B00;
  --white: #ffffff;
  --bg-light: #F9FAFB;
  --text-black: #1A1A1A;
  --text-grey: #6B6B6B;
  --text-muted: #a0aec0;
  --stroke-grey: #D0D0D0;
  --font-main: 'Montserrat', sans-serif;
  --side-pad: clamp(20px, 8.33vw, 160px);
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark-bg);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 0 var(--side-pad);
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-family: var(--font-main);
}
.top-bar-left { display: flex; align-items: center; gap: 24px; }
.top-bar-left a, .top-bar-left span {
  color: var(--text-muted); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: color .2s; font-family: var(--font-main);
}
.top-bar-left a:hover { color: var(--white); }
.top-bar-left svg { width: 14px; height: 14px; flex-shrink: 0; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-bar-right a {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.top-bar-right a:hover { background: var(--orange); }
.top-bar-right svg { width: 14px; height: 14px; }

/* ===== MAIN HEADER ===== */
.main-header {
  background: var(--white);
  padding: 0 var(--side-pad);
  height: 72px;
  border-bottom: 1px solid #e8e8e8;
  font-family: var(--font-main);
}
.main-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.main-header .logo img { height: 50px; display: block; }

/* Nav */
.main-header .nav-center { display: flex; align-items: center; gap: 16px; }
.main-header .nav-center .menu-item { list-style: none; position: relative;  }
.main-header .nav-center .menu-item > a {
  color: #444; text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding-bottom: 4px;
  transition: color .2s;
  display: block; white-space: nowrap;
  border-bottom: 2px solid transparent;
  font-family: var(--font-main);
}
.main-header .nav-center .menu-item > a:hover { color: var(--text-black);   border-bottom-color: var(--orange);   transition: border-bottom-color 1s;}
.main-header .nav-center .current-menu-item > a,
.main-header .nav-center .current-menu-ancestor > a {
  color: var(--text-black);
  border-bottom-color: var(--orange);
}

/* Dropdown — невидимый мост между ссылкой и подменю */
.main-header .nav-center .menu-item-has-children {
  padding-bottom: 0;
  margin-bottom: 0;
}
.main-header .nav-center .sub-menu {
  display: none; position: absolute;
  top: calc(100% + 2px); left: 0;
  background: var(--white); border: 1px solid #e8e8e8;
  border-radius: 8px; padding: 8px 0; min-width: 220px;
  z-index: 100; box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
/* Невидимый мост — ::before на sub-menu перекрывает зазор */
.main-header .nav-center .sub-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}
.main-header .nav-center .sub-menu .menu-item > a {
  padding: 8px 16px; font-size: 13px; color: #555; border-bottom: none;
}
.main-header .nav-center .sub-menu .menu-item > a:hover {
  background: #f5f5f5; color: var(--text-black);
}
.main-header .nav-center .menu-item-has-children > a::after {
  content: ''; display: inline-block; margin-left: 6px;
  vertical-align: middle; width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
}

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 16px; }

.btn-login-header {
  border: 1.5px solid var(--orange); color: var(--orange);
  background: transparent; padding: 8px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all .2s;
  white-space: nowrap; font-family: var(--font-main);
}
.btn-login-header:hover { background: var(--orange); color: var(--white); }

/* Burger */


/* ===== BURGER OVERRIDE — убиваем старый из main.css ===== */
/* Старый бургер (из main.css) — скрыть полностью */
body > .brg-menu-mobile {
  display: none !important;
}

/* Новый бургер внутри .main-header — компактный, в потоке хедера */
.main-header .brg-menu-mobile {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  position: relative !important;
  top: auto !important;
  right: auto !important;
}

.main-header .brg-menu-mobile span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all .3s;
  margin: 0 !important;
}

.main-header .brg-menu-mobile.opened span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.main-header .brg-menu-mobile.opened span:nth-child(2) {
  opacity: 0;
}
.main-header .brg-menu-mobile.opened span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
  .main-header .brg-menu-mobile {
    display: flex !important;
  }
}

/* Responsive header */
@media (max-width: 1200px) {
  .main-header .nav-center .menu-item > a { font-size: 13px;}
  .main-header .nav-center {
    gap: 8px;
  }
  .gtranslate_wrapper {width: min-content}
}
@media (max-width: 1024px) {
  .main-header .nav-center {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white); flex-direction: column;
    align-items: center; justify-content: center; gap: 8px; z-index: 100;
  }
  .main-header .nav-center.opened { display: flex; }
  .main-header .nav-center .menu-item > a { font-size: 18px; padding: 12px 24px; border-bottom: none; }
  .main-header .nav-center .menu-item-has-children { padding-bottom: 0; margin-bottom: 0; }
  .main-header .nav-center .sub-menu { position: static; box-shadow: none; border: none; min-width: auto; padding: 0; }
  .main-header .brg-menu-mobile { display: flex; }
}
@media (max-width: 640px) {
  .top-bar { padding: 8px 16px; height: auto; flex-wrap: wrap; gap: 8px; }
  .top-bar-left { flex-wrap: wrap; gap: 10px; font-size: 12px; }
  .main-header { padding: 0 16px; }
}