/* New test header — Figma MaxBacks 2510:866 / 2510:758 / 2510:808 */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

.wrapper--header-new {
  position: relative;
}

.wrapper--header-new > .container-fluid.clear:has(.nav-container),
.wrapper--header-new .header-new + .container-fluid.clear,
.wrapper--header-new .top-header,
.wrapper--header-new .fixed-top,
.wrapper--header-new .nav-container {
  display: none !important;
}


#price.modal {
  z-index: 4000;
}

.header-new {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  font-family: "Montserrat", sans-serif;
  background-color: transparent;
  background: transparent;
  opacity: 1 !important;
  animation: none !important;
  -webkit-animation: none !important;
  transition: background-color 0.3s ease;
}

/* Override all.css header fadeInMenu / solid bg */
header.header-new {
  background-color: transparent;
  background: transparent;
  opacity: 1 !important;
  animation: none !important;
  -webkit-animation: none !important;
}

/* Bitrix admin panel offset */
body:has(#bx-panel) .header-new,
body .bx-panel-fixed ~ .wrapper .header-new {
  top: 0;
}

.header-new__gradient {
  position: absolute;
  inset: 0 0 auto;
  height: 101px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 29%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Hide hero gradient shadow on pages without slider */
.wrapper--header-new:not(:has(.slider-wrapper)) .header-new__gradient {
  opacity: 0 !important;
  visibility: hidden;
}

/* Solid bar on hover / scroll / phone panel (Figma 2510:758) */
html body header.header-new:hover,
html body header.header-new.is-hover,
html body header.header-new.is-scrolled,
html body header.header-new.is-phone-open {
  background-color: #302c38;
  background: #302c38;
}

html body header.header-new:hover .header-new__gradient,
html body header.header-new.is-hover .header-new__gradient,
html body header.header-new.is-scrolled .header-new__gradient,
html body header.header-new.is-phone-open .header-new__gradient {
  opacity: 0;
}

/* Secondary pages (no homepage slider): always solid header */
.wrapper--header-new:not(:has(.slider-wrapper)) header.header-new,
html body .wrapper--header-new:not(:has(.slider-wrapper)) header.header-new {
  background-color: #302c38;
  background: #302c38;
}

.header-new__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1370px;
  margin: 0 auto;
  padding: 0 20px;
  height: 101px;
  box-sizing: border-box;
}

.header-new__logo {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}

.header-new__logo img {
  display: block;
  width: 261px;
  height: auto;
  max-height: 53px;
}

.header-new__nav {
  overflow: visible;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-new__nav a {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.header-new__nav a:hover,
.header-new__nav a:focus {
  color: #fff;
  opacity: 0.8;
  text-decoration: none;
}

.header-new__nav a.is-cta {
  color: #ed1c24;
}

.header-new__nav a.is-cta:hover,
.header-new__nav a.is-cta:focus {
  color: #ff3b42;
  opacity: 1;
}

.header-new__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-new__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header-new__action:hover,
.header-new__action:focus {
  opacity: 0.75;
  text-decoration: none;
}

.header-new__action img {
  display: block;
  width: 18px;
  height: 18px;
}

.header-new__action--heart img {
  width: 19px;
  height: 17px;
}

.header-new__action--phone img {
  width: 18px;
  height: 18px;
}

/* Phone icon stays the same on hover / open */
.header-new__action--phone .header-new__phone-icon--active {
  display: none !important;
}

.header-new.is-phone-open .header-new__action--phone .header-new__phone-icon--default {
  display: block;
}

.header-new.is-phone-open .header-new__action--phone {
  opacity: 1;
}

/* Override all.css `header a.toggle-search` border/padding */
.header-new a.header-new__action.toggle-search,
.header-new a.toggle-search {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 1;
  padding: 0;
  margin: 0;
  border: 0;
  border-left: 0;
  overflow: visible;
  font-size: 0;
  color: #fff;
  background: transparent !important;
  background-color: transparent !important;
  transition: opacity 0.2s ease;
}

.header-new a.header-new__action.toggle-search:hover,
.header-new a.toggle-search:hover {
  background: transparent !important;
  background-color: transparent !important;
  opacity: 0.75;
  text-decoration: none;
}

/* Phone expand panel (Figma 2510:808) */
.header-new__phone-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.2s ease;
  background-color: #302c38;
}

.header-new.is-phone-open .header-new__phone-panel {
  max-height: 94px;
  opacity: 1;
}

.header-new__phone-panel-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  max-width: 1370px;
  margin: 0 auto;
  padding: 0 20px;
  height: 94px;
  box-sizing: border-box;
}

.header-new__phone-info {
  text-align: right;
  color: #fff;
}

.header-new__phone-number {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.header-new__phone-number:hover,
.header-new__phone-number:focus {
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
}

.header-new__phone-hours {
  display: block;
  margin-top: 2px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  white-space: nowrap;
}

.header-new__phone-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-new__phone-social {
  display: inline-flex;
  width: 25px;
  height: 25px;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.header-new__phone-social:hover {
  opacity: 0.85;
}

.header-new__phone-social img {
  display: block;
  width: 25px;
  height: 25px;
}

.header-new .search-form {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 3;
}

.header-new.is-phone-open .search-form {
  top: auto;
}

.header-new:has(form.search .overflow.active),
header.header-new:has(form.search .overflow.active) {
  background-color: #302c38;
  background: #302c38;
}

.header-new:has(form.search .overflow.active) .header-new__gradient {
  opacity: 0;
}

.wrapper--header-new > main {
  position: relative;
  z-index: 1;
  padding-top: 101px;
}

.wrapper--header-new > main > .container-fluid:has(.breadcrumbs) {
  display: none;
}

/* Homepage hero sits under transparent fixed header */
.wrapper--header-new .slider-wrapper {
  margin-top: -101px;
}

@media (max-width: 991px) {
  .wrapper--header-new > main {
    padding-top: 72px;
  }

  .wrapper--header-new .slider-wrapper {
    margin-top: -72px;
  }
}

.header-new__burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.header-new__burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

@media (max-width: 1350px) {
  .header-new__inner {
    gap: 12px;
  }

  .header-new__nav {
    gap: 12px;
  }

  .header-new__nav a {
    font-size: 16px;
  }

  .header-new__logo img {
    width: 210px;
    height: auto;
  }
}

@media (max-width: 1199px) {
  .header-new__inner {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-new__nav {
    gap: 6px;
  }

  .header-new__nav a {
    font-size: 13px;
  }

  .header-new__logo img {
    width: 150px;
    height: auto;
  }

  .header-new__actions {
    gap: 12px;
  }
}

@media (max-width: 991px) {
  .header-new__inner {
    height: 72px;
    justify-content: flex-start;
    gap: 8px;
  }

  .header-new__actions {
    margin-left: auto;
    order: 1;
  }

  .header-new__gradient {
    height: 72px;
  }

  .header-new__burger {
    display: block;
    order: 2;
    flex: 0 0 auto;
  }

  .header-new__nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(48, 44, 56, 0.98);
  }

  .header-new.is-open .header-new__nav {
    display: flex;
  }

  .header-new__nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-new__nav a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
  }

  .header-new__logo img {
    width: 170px;
  }

  .header-new .search-form {
    top: auto;
  }

  .header-new.is-phone-open .search-form {
    top: auto;
  }

  .header-new__phone-panel-inner {
    height: auto;
    min-height: 72px;
    padding: 16px 20px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-new.is-phone-open .header-new__phone-panel {
    max-height: 160px;
  }

  .header-new a.header-new__action.toggle-search,
  .header-new a.toggle-search {
    height: 24px;
    line-height: 1;
    padding: 0;
    border-left: 0;
  }
}

@media (max-width: 575px) {
  .header-new__actions {
    gap: 12px;
  }

  .header-new__logo img {
    width: 140px;
  }

  .header-new__phone-number {
    font-size: 16px;
  }

  .header-new__phone-hours {
    font-size: 12px;
  }
}


/* Dropdown submenus (hover), similar to live site nav */
.header-new__nav-item {
  position: relative;
  list-style: none;
}

.header-new__nav-item.has-submenu > .has-submenu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-new__nav-item.has-submenu > .has-submenu-link::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.header-new__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
  padding-top: 10px;
  min-width: 280px;
  width: max-content;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.15s ease-in-out, opacity 0.15s ease-in-out;
  z-index: 1100;
}

.header-new__submenu::before {
  content: "";
  position: absolute;
  inset: 9px 0 0;
  background: #fff;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.header-new__submenu > ul {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 15px 0;
  list-style: none;
  background: #fff;
}

.header-new__submenu > ul > li {
  display: block;
  list-style: none;
}

.header-new__submenu > ul > li > a {
  position: relative;
  display: block;
  height: 40px;
  line-height: 40px;
  padding: 0 30px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  white-space: nowrap;
  text-decoration: none;
  opacity: 1;
  transition: color 0.15s ease-in-out;
  z-index: 1;
}

.header-new__submenu > ul > li > a::after {
  content: "";
  position: absolute;
  inset: -5px 0;
  background: #302c38;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.15s ease-in-out;
}

.header-new__submenu > ul > li > a:hover,
.header-new__submenu > ul > li > a:focus {
  color: #fff;
  opacity: 1;
  text-decoration: none;
}

.header-new__submenu > ul > li > a:hover::after,
.header-new__submenu > ul > li > a:focus::after {
  opacity: 1;
}

.header-new__nav-item.has-submenu:hover > .header-new__submenu,
.header-new__nav-item.has-submenu:focus-within > .header-new__submenu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 991px) {
  .header-new__nav-item.has-submenu > .has-submenu-link::after {
    margin-left: auto;
  }

  .header-new__submenu {
    position: static;
    transform: none;
    padding-top: 0;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    visibility: visible;
    opacity: 1;
    pointer-events: none;
    transition: max-height 0.3s ease;
  }

  .header-new__submenu::before {
    display: none;
  }

  .header-new__submenu > ul {
    padding: 0 0 8px;
    background: transparent;
  }

  .header-new__submenu > ul > li {
    border-bottom: 0;
  }

  .header-new__submenu > ul > li > a {
    height: auto;
    line-height: 1.4;
    padding: 10px 0 10px 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    white-space: normal;
  }

  .header-new__submenu > ul > li > a::after {
    display: none;
  }

  .header-new__submenu > ul > li > a:hover,
  .header-new__submenu > ul > li > a:focus {
    color: #fff;
    opacity: 0.9;
  }

  .header-new__nav-item.has-submenu.is-submenu-open > .header-new__submenu {
    max-height: 800px;
    pointer-events: auto;
  }

  .header-new__nav-item.has-submenu.is-submenu-open > .has-submenu-link::after {
    transform: rotate(180deg);
  }
}
