.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--c-header-text);
  background: var(--c-header-overlay);
  z-index: 1000;
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}

.header-wrap .text,
.header-wrap .phone {
  text-align: center;
}

.header-wrap .text {
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  height: 70px;
}

header .logo {
  align-items: flex-end;
  cursor: pointer;
}

header .logo.front {
  cursor: default;
}

header .logo .thumb img {
  height: 120px;
  width: auto;
}

.logo .thumb {
  margin-right: 15px
}

.logo .thumb img {
  height: 70px;
  width: auto;
}

.logo .text span:first-child {
  display: block;
  font-size: 24px;
  line-height: 24px;
  font-family: var(--ff-heading);
  font-weight: 700;
}

.logo .text span:last-child {
  line-height: 18px;
  font-size: 15px;
}

.logo a {
  position: absolute;
  display: block;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.social-links {
  text-align: center;
}

.social-links a svg {
  width: 37px;
  height: 37px;
  fill: var(--c-header-text)}

.social-links a:hover {
  opacity: .75
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--r-btn);
  color: var(--c-btn-text);
  font-weight: 500;
  transition: all .25s ease-out;
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 0;
  cursor: pointer
}

.btn--green {
  background-color: transparent;
  box-shadow: 0 8px 15px 0 rgba(47, 46, 33, 0.2)
}

.btn--green:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: -moz-linear-gradient(0deg, var(--c-primary) 0%, var(--c-primary) 100%);
  background-image: -webkit-linear-gradient(0deg, var(--c-primary) 0%, var(--c-primary) 100%);
  background-image: -ms-linear-gradient(0deg, var(--c-primary) 0%, var(--c-primary) 100%);
  transition: all .25s ease-out;
}

.btn--green:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-color: var(--c-primary);
  transition: opacity .25s ease-out;
}

.btn--green:hover:after {
  filter: brightness(90%);
}

.btn--border {
  color: var(--c-header-btn-text);
  border-width: 1px;
  border-color: var(--c-header-btn-border);
  border-style: solid
}

.btn--border:hover {
  background: var(--c-header-btn-hover-bg);
  color: var(--c-header-btn-hover-text)
}

.header-btns .btn {
  height: 38px;
  width: 195px;
  background-color: var(--c-btn-ghost-bg);
  backdrop-filter: blur(8px);
}

.header-btns .btn+.btn {
  margin-left: 20px
}

.phone a {
  color: var(--c-header-link);
  font-size: 18px;
  font-family: var(--ff-heading);
}

.phone a:hover {
  color: var(--c-accent);
}

.phone-dropdown {
  position: relative;
  display: inline-block;
}

.phone-dropdown-content {
  position: absolute;
  left: 0;
  background-color: var(--c-dropdown-bg);
  min-width: 200px;
  padding: 8px;
  z-index: 100;
  border-radius: var(--r-md);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: all .25s ease-out;
}

.phone-dropdown.open .phone-dropdown-content {
  opacity: 1;
  transform: scaleY(1);
}

.phone-main {
  color: var(--c-black);
  text-decoration: none;
}

.phone-secondary {
  display: block;
  color: var(--c-text-muted);
  text-decoration: none;
}

.phone-main::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 7px;
    vertical-align: middle;
    position: relative;
    bottom: 2px;
    transition: transform 0.2s ease;
}

.phone-dropdown.open .phone-main::after {
    transform: rotate(-135deg);
    bottom: 0;
}

.nxp-slide-cart-menu-link {
  opacity: 0;
  transition: all .25s ease-out;
}
.nxp-slide-cart-menu-link.show {
  opacity: 1;
}

#mega-menu-topHeader-menu {
  opacity: 0 !important;
  transition: opacity .25s ease-out !important;
}
#mega-menu-topHeader-menu.show {
  opacity: 1 !important;
}

.headerMenuWrap.fixed {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}

.headerMenuWrap {
  background-color: var(--c-fixed-menu-bg);
  transition: background-color .25s ease-out;
  backdrop-filter: blur(8px);
  max-width: 1360px;
  margin: auto;
  border-radius: var(--r-md);
}

.headerMenuWrap .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 10px 0;
}

.headerMenuWrap .menu .menu-item {
  display: inline-block;
}

.headerMenuWrap .menu a {
  color: var(--c-header-link);
  text-decoration: none;
  font-size: 21px;
  padding: 5px 20px;
}

.first-screen.page-top-block {
  min-height: 200px;
}

.mob-features {
  display: none;
}

.mob-features .main-features-wrap .item {
  color: var(--c-black);
}

.header .header-btns .btn span.mob {
  display: none
}

#footer .btn--border,
.header-btns .btn {
  color: var(--c-header-btn-text);
  border-color: var(--c-header-btn-border);
}

.header-btns .btn:hover {
  color: var(--c-btn-text);
  background-color: var(--c-accent);
}

/* ===== Front-page header ===== */
/* front-header.css — extracted from bem-blocks.css */
/* ========================================
   BEM Header
   ======================================== */
.front-page .header {
  position: relative;
  background-color: var(--color-white);
  z-index: 100;
}

.front-page .header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 14px;
}

.front-page .header__group {
  display: flex;
  flex: 1;
  min-width: 0;
}

.front-page .header__left {
  flex-shrink: 0;
  max-width: 360px;
}

.front-page .header__logo { display: block; }

.front-page .header__logo img {
  max-width: 360px;
  height: 54px;
  display: block;
}

.front-page .header__slogan {
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: #020f3e;
  max-width: 374px;
  line-height: 1.2;
  opacity: 0.25;
  margin: 1px 0 0 51px;
}

.front-page .header__right {
  display: flex;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}

.front-page .header__telegram {
  flex-shrink: 0;
  margin: 18px 0 0;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.front-page .header__telegram img { width: 40px; height: 40px; }
.front-page .header__telegram:hover { opacity: 0.7; }

.front-page .header__contacts {
  flex-shrink: 0;
  margin-left: 22px;
}

.front-page .header__hours {
  font-size: var(--fs-lg);
  font-weight: var(--fw-extrabold);
  color: #262101;
  line-height: 18px;
  opacity: 0.7;
}

.front-page .header__phone {
  display: block;
  font-size: var(--fs-8xl);
  font-weight: var(--fw-bold);
  color: #262101;
  line-height: 24px;
  margin-top: 4px;
  transition: 0.3s ease;
}

.front-page .header__phone:hover { color: var(--color-accent-hover); }

.front-page .header__email {
  display: block;
  font-size: var(--fs-5xl);
  font-weight: var(--fw-regular);
  color: #262101;
  line-height: 31px;
  white-space: nowrap;
  margin-top: 4px;
  transition: 0.3s ease;
}

.front-page .header__email:hover { color: var(--color-accent-hover); }

.front-page .header__cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 260px;
  width: 100%;
  height: 60px;
  margin: 6px 0 0 45px;
  background-color: var(--color-white);
  border: 3px solid var(--color-accent);
  border-radius: 5px;
  color: var(--color-text-purple);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  font-family: 'Mulish', sans-serif;
  text-decoration: none;
  transition: 0.3s ease;
}

.front-page .header__cta:hover {
  background-color: #752cfc;
  color: var(--color-accent);
}

.front-page .header__separator {
  height: 2px;
  background-color: #ededed;
  margin-top: 5px;
}

.front-page .header__nav {
  display: flex;
  gap: 40px;
  padding: 6px 0 6px;
  justify-content: center;
}

.front-page .header__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 41px;
  text-decoration: none;
  transition: 0.3s ease;
}

.front-page .header__nav-btn:hover .header__nav-btn-text {
    color: #752cfc;
}

.front-page .header__nav-btn-text {
  font-size: var(--fs-lg);
  font-weight: var(--fw-extrabold);
  color: var(--color-primary);
  text-transform: uppercase;
  line-height: 1.55;
}

.front-page .header__nav-btn:hover {
  background-color: transparent;
}

.front-page .header__burger-wrap {
  display: none;
  margin: 18px 0 0 auto;
}

.front-page .header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
}

.front-page .header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 0;
  transition: 0.3s ease;
}

.front-page .header__burger--active .header__burger-line:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}
.front-page .header__burger--active .header__burger-line:nth-child(2),
.front-page .header__burger--active .header__burger-line:nth-child(3) { opacity: 0; }
.front-page .header__burger--active .header__burger-line:nth-child(4) {
  transform: translateY(-13px) rotate(-45deg);
}

/* Header responsive */
@media (max-width: 1199px) {
  .front-page .header__left { max-width: 330px; }
  .front-page .header__logo img { max-width: 330px; height: 50px; }
  .front-page .header__telegram img { width: 30px; height: 30px; }
}

@media (max-width: 992px) {
  .front-page .header__top { padding-top: 17px; }
  .front-page .header__left { width: 240px; }
  .front-page .header__logo img { max-width: 240px; height: 36px; }
  .front-page .header__slogan { max-width: 246px; margin-left: 10px; }
  .front-page .header__telegram img { width: 40px; height: 40px; }
  .front-page .header__cta { display: none; }
  .front-page .header__nav { display: none; }
  .front-page .header__burger-wrap { display: flex; }
}

@media (max-width: 639px) {
  .front-page .header__top { padding-top: 13px; }
  .front-page .header__left { max-width: 180px; }
  .front-page .header__logo img { max-width: 180px; height: 27px; }
  .front-page .header__slogan { max-width: 180px; font-size: var(--fs-xs); margin-left: 10px; }
}

@media (max-width: 576px) {
  .front-page .header__group {
    flex-direction: column;
    align-items: center;
  }
  .front-page .header__right {
    justify-content: center;
    margin: 20px auto;
  }
}

@media (max-width: 479px) {
  .front-page .header__top { padding-top: 12px; }
}

@media (min-width: 320px) and (max-width: 992px) {
  .header > .container {
    padding: 0 10px;
    width: 100%;
    margin-left: 0;
  }
}

/* ========================================
   BEM Mobile Menu
   ======================================== */
.front-page .mobile-menu {
  display: none;
  width: 100%;
  background-color: var(--color-bg-light);
  overflow-y: auto;
}

.front-page .mobile-menu--active { display: flex; flex-direction: column; }

.front-page .mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--container-padding);
  background-color: var(--color-white);
}

.front-page .mobile-menu__title { font-size: var(--fs-12xl); font-weight: var(--fw-bold); }
.front-page .mobile-menu__title a { color: var(--color-text); }
.front-page .mobile-menu__title a:hover { color: var(--color-accent-hover); }

.front-page .mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: none;
  border: none;
}

.front-page .mobile-menu__close::before,
.front-page .mobile-menu__close::after {
  content: '';
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
}

.front-page .mobile-menu__close::before { transform: rotate(45deg); }
.front-page .mobile-menu__close::after {
  transform: rotate(-45deg);
  margin-left: -20px;
}

.front-page .mobile-menu__body { padding: 20px var(--container-padding); }

.front-page .mobile-menu__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

.front-page .mobile-menu__nav-item {
  width: calc(50% - 10px);
  border-radius: var(--border-radius);
}

.front-page .mobile-menu__nav-item--full { width: 100%; }

.front-page .mobile-menu__nav-link {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.front-page .mobile-menu__nav-link:hover { color: var(--color-accent-hover); }

.front-page .mobile-menu__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 25px;
  margin-bottom: 25px;
}

.front-page .mobile-menu__sub-item {
  width: calc(50% - 10px);
  padding: 20px;
  background-color: var(--color-white);
  border-radius: var(--border-radius);
}

.front-page .mobile-menu__sub-item--full { width: 100%; }

.front-page .mobile-menu__sub-link {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  display: block;
  margin-bottom: 16px;
}

.front-page .mobile-menu__sub-link:hover { color: var(--color-accent-hover); }

.front-page .mobile-menu__deep {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.front-page .mobile-menu__deep-link {
  font-size: var(--fs-xl);
  color: var(--color-text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.front-page .mobile-menu__deep-link:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.front-page .mobile-menu__deep-link:hover { color: var(--color-accent-hover); }

@media (max-width: 992px) {
  .front-page .mobile-menu__nav-item,
  .front-page .mobile-menu__sub-item { width: 100%; }
  .front-page .mobile-menu__sub { flex-direction: column; }
}
