FINAL WORKING CODE



Final header good lines

body {
  font-family: "Inria Serif", serif;
  color: #f3f3f3;
}

/* Колонки хедера не сжимаются */
.header-row .vc_column_container {
  flex-shrink: 0;
}


/* Правый текст */
.wpb_custom_menu > ul,
.header-right-text {
  height: 65px;           /* подгони под высоту хедера */
  display: flex;
  align-items: center;
  justify-content: flex-end;
}


/* Центральное меню */
.wpb_custom_menu > ul {
  display: flex;
  justify-content: left;
  gap: 40px;
}

.wpb_custom_menu li {
  list-style: none;
}

.wpb_custom_menu a {
  color: #1d2c5b;
  text-transform: none;
}

.wpb_custom_menu a:hover {
  color: #000;
}

.wpb_custom_menu > ul {
  display: flex !important;
  flex-direction: row !important;
}


/* Центральное меню — курсив */
.wpb_custom_menu a {
  font-style: italic;
  font-family: InriaSerif;
  font-weight: bold;
}

/* Вертикальное выравнивание центрального меню */
.wpb_custom_menu > ul {
  align-items: center;
  margin: 0;
  padding: 0px;
}

.wpb_custom_menu a {
  display: flex;
  align-items: center;
  height: 100%;
}


/* Выравнивание правого меню */

.header-right-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-family: InriaSerif;
  font-weight: 500;
  margin-left:auto;
}

.header-right-text a {
  color: #1d2c5b;
  text-decoration: none;
  transition: 0.3s ease;
}

.header-right-text a:hover {
  color: #000;
}

.divider {
  color: #ccc;
}

.cart-count {
  margin-left: 4px;
}


/* === HEADER ROW FIX === */

.header-row.vc_row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* Колонки */
.header-row .vc_column_container {
  display: flex;
  align-items: center;
}

/* Центрируем центральную колонку */
/* Центральная колонка растягивает пространство */
.header-row .vc_column_container:nth-child(2) {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

/* Правую колонку прижимаем вправо */
.header-row .vc_column_container:last-child {
  justify-content: flex-end;
  align-items: center; /* центрируем по вертикали */
  padding-right: 20px;
  
}

/* Логотип всегда слева */
.header-row .vc_column_container:first-child {
  justify-content: flex-start;
  align-items: center; /* центрируем по вертикали */
}

/* Правое меню всегда справа */
.header-row .vc_column_container:last-child {
  justify-content: flex-end;
  margin-left: auto;
}


/* Убираем лишние внутренние отступы */
.header-row .vc_column-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}





/* ============================= */
/* FORCE HEADER INLINE TABLET */
/* ============================= */

@media (max-width: 1024px) {

  /* Полностью переопределяем VC */
  .header-row.vc_row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  /* Убираем поведение VC stack */
  .header-row.vc_row > .vc_column_container {
    display: flex !important;
    width: auto !important;
    float: none !important;
    flex: 0 0 auto !important;
  }

  /* Центральная колонка растягивается */
  .header-row.vc_row > .vc_column_container:nth-child(2) {
    flex: 1 1 auto !important;
    justify-content: center;
  }

  /* Правая колонка вправо */
  .header-row.vc_row > .vc_column_container:last-child {
    display: flex;
    justify-content: flex-end !important;
  }

}



/* ============================= */
/* HEADER BACKGROUND */
/* ============================= */

.header-row {
  background-color: #f3f3f3;
}

/* ============================= */
/* CENTRAL MENU COLORS */
/* ============================= */

.wpb_custom_menu a {
  color: #013589 !important;
  transition: color 0.3s ease;
}

.wpb_custom_menu a:hover {
  color: #000000 !important;
}

/* ============================= */
/* CENTRAL MENU DIVIDERS */
/* ============================= */

.wpb_custom_menu li {
  position: relative;
}



/* ============================= */
/* PERFECT FULL HEIGHT DIVIDERS */
/* ============================= */



/* Каждый пункт */
.wpb_custom_menu li {
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 100%;
  border-left: 1px solid #d9dde6;
}

/* Последний пункт — добавляем правую границу */
.wpb_custom_menu li {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px; /* только горизонтальный отступ */
  border-left: 1px solid #d9dde6;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .wpb_custom_menu li {
    padding: 0 0px;
  }
}



/* ============================= */
/* HARD STOP HORIZONTAL SCROLL */
/* ============================= */

html, body {
  overflow-x: hidden !important;
  max-width: 100%;
}

/* Убираем возможный вылет из-за 100vw */
* {
  box-sizing: border-box;
}



/* ============================= */
/* FIXED HEADER */
/* ============================= */
.header-row {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;          /* высота хедера */
  background-color: #f3f3f3;
  z-index: 9990;
  padding: 0 40px;
  overflow: visible;     /* обязательно для псевдоэлемента */
}

/* Mobile header padding */
@media (max-width: 1024px) {
  .header-row {
    padding: 0 0px;
  }
}

@media (max-width: 480px) {
  .header-row {
    padding: 0 0px;
  }
}

/* Горизонтальная линия внизу хедера */
.header-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #013589;
  z-index: 9999;        /* выше всего */
}

/* ============================= */
/* MENU ITEMS FULL HEIGHT */
/* ============================= */
.wpb_custom_menu > ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;       /* растягиваем  по высоте */
  height: 70px;               /* высота хедера */
  margin: 0;
  padding: 0;
  gap: 0;
}

.wpb_custom_menu > ul > li {
  list-style: none;
  display: flex;
  align-items: stretch;       /* растягиваем содержимое по высоте */
  border-left: 1px solid #d9dde6;
}

.wpb_custom_menu li:last-child {
  border-right: 1px solid #d9dde6;
}

.wpb_custom_menu a {
  display: flex;
  align-items: center;        /* вертикальное центрирование текста */
  justify-content: center;    /* горизонтальное центрирование */
  padding: 0 20px;            /* горизонтальные отступы */
  height: 100%;               /* растягиваем по высоте  */
  font-style: italic;
}


/* ============================= */
/* BURGER MENU */
/* ============================= */

.mobile-burger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    align-items: center;
}

@media (max-width:1024px){

  .mobile-burger{
    display:flex;
    align-items:center;
    order:2;
  }

  .header-right-text{
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
    gap:12px;
    order:1;
  }

  /* правая колонка */
  .header-row .vc_column_container:last-child .vc_column-inner{
    display:flex;
    align-items:center;
    justify-content:flex-end;
  }

  /* скрываем login */
  .account-link,
  .divider{
    display:none;
  }

}  
  
/* ============================= */
/* MOBILE HEADER FIX */
/* ============================= */

@media (max-width:1024px){

  /* строка всегда в одну линию */
  .header-row.vc_row{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
  }

  /* логотип */
  .header-row .vc_column_container:first-child{
    flex:0 0 auto !important;
  }

  /* скрываем центральное меню */
  .header-row .wpb_custom_menu{
    display:none !important;
  }

}

  /* правая колонка занимает всё остальное */
  .header-row .vc_column_container:last-child{
    flex:1 1 auto !important;
    display:flex !important;
    justify-content:flex-end !important;
    align-items:center !important;
  }

  /* меню в одну линию */
  .header-right-text{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:12px;
  }

}

/* фиксируем offset под fixed header */
#cart-sidebar.nasa-static-sidebar {
    top: 70px; /* высота хедера */
}

.admin-bar #cart-sidebar.nasa-static-sidebar {
    top: 102px; /* 70 + 32 */
}


/* Убираем дефолтные отступы у html и body */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}


/* ============================= */
/* CART */
/* ============================= */

/* фон всей боковой корзины */
#cart-sidebar{
    background:#f3f3f3 !important;
    border-left:1px solid #00245E;
}

/* нижний блок */
#cart-sidebar .nasa-minicart-footer{
    background:#ffffff;
    border-top:1px solid #e5e5e5;
    padding:20px;
}  

.nasa-minicart-footer{
    background:#f3f3f3;
    border-top:1px solid #f3f3f3;
}

.black-window{
    background: transparent !important;
}


#cart-sidebar .woocommerce-mini-cart__buttons a:first-child{
    background:#ffffff !important;
    border:1px solid #013589 !important;
    color:#013589 !important;
    font-family:"Inria Serif", serif !important;

    display:block;
    text-align:center;
    padding:12px 20px;
    line-height:1.2;
}


#cart-sidebar .nasa-minicart-footer{
    background:#fff !important;
    border-top:0px solid #f3f3f3 !important;
}

#cart-sidebar .btn-mini-cart{
    background:#fff !important;
    padding:0 !important;
}

#cart-sidebar .woocommerce-mini-cart__buttons{
    margin:0 !important;
    background:#fff !important;
}

#cart-sidebar .woocommerce-mini-cart__buttons a{
    margin:8px 0;
}


#cart-sidebar .minicart_total_checkout{
    margin:0 !important;
    padding:0 !important;
    border-top:0px solid #f3f3f3 !important;
}


/* popup */
.search-box {
  display: none;

  position: fixed;
  top: 70px;
  right: 40px;

  width: 280px;

  background: #ffffff;

  padding: 18px 16px 12px;

  z-index: 999999;

  box-sizing: border-box;
}

/* form */
.search-box form {
  position: relative;
}

/* input */
.search-box input[type="search"] {
  width: 100%;
  height: 36px;

  padding: 0 34px 6px 0;

  border: none;
  border-bottom: 2px solid #00245E;

  outline: none;
  box-shadow: none;

  background: transparent !important;

  font-family: InriaSerif, serif;
  font-size: 15px;
  color: #1d1d1d;

  appearance: none;
  -webkit-appearance: none;

  box-sizing: border-box;
}

/* placeholder */
.search-box input[type="search"]::placeholder {
  color: #7a7a7a;
  opacity: 1;
}

/* убрать крестик safari/chrome */
.search-box input[type="search"]::-webkit-search-decoration,
.search-box input[type="search"]::-webkit-search-cancel-button,
.search-box input[type="search"]::-webkit-search-results-button,
.search-box input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

/* иконка */
.search-box form::after {
  content: "";

  position: absolute;
  right: 2px;
  top: 2px;

  width: 20px;
  height: 20px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23013589' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-size: contain;

  pointer-events: none;
}

/* Главное меню */
.wpb_custom_menu .nasa-title-menu,
.wpb_custom_menu .nasa-menu-wrapper > li > a,
.wpb_custom_menu a {
    font-family: "Inria Serif", serif !important;
    font-style: italic !important;
    font-weight: 700 !important;
}


/* ============================= */
/* FORCE SUBMENU WORK */
/* ============================= */

/* Родитель */
.wpb_custom_menu li {
  position: relative;
}


/* Показ при ховере */
.wpb_custom_menu li:hover > .sub-menu {
  display: block;
}

/* УБИРАЕМ FLEX ИЗ ВЛОЖЕННОГО МЕНЮ */
.wpb_custom_menu .sub-menu li {
  display: block !important;
  padding: 0;
  border: none;
}

.wpb_custom_menu .sub-menu a {
  display: block !important;
  height: auto !important;
  padding: 8px 20px;
  text-align: left;
}



/* ============================= */
/* FIX DROPDOWN NOT VISIBLE */
/* ============================= */

/* Разрешаем выпадашке выходить за пределы */
.header-row,
.header-row .vc_column_container,
.header-row .vc_column-inner {
  overflow: visible !important;
}

.wpb_custom_menu {
  position: relative;
  z-index: 9999;
}

.wpb_custom_menu .sub-menu {
  z-index: 99999;
}


/* показываем скрытый блок */
.menu-item-has-children:hover > .nasa-sub-menu,
.menu-item-has-children:hover > ul {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* ============================= */
/* REMOVE ALL MENU ARROWS */
/* ============================= */

/* Убираем родную стрелку Nasa */
.wpb_custom_menu .nasa-open-child,
.wpb_custom_menu .nasa-has-items-child {
    display: none !important;
}

/* Убираем любые псевдоэлементы со стрелками */
.wpb_custom_menu li.menu-item-has-children > a::after,
.wpb_custom_menu li.menu-item-has-children > a::before {
    content: none !important;
    display: none !important;
}


.vc_custom_heading.vc_do_custom_heading {
  font-family: "Inria Serif" !important;
  font-style: italic !important;
  color: #013589 !important;
}