/*
  Custom header — .header / .top-bar / .nav-bar
  Source: services-page/css/header.css + responsive + mobile menu
*/

/* ===== Hide standard Aspro headers ===== */
.aspro-header-legacy,
#headerfixed,
#mobileheader {
  display: none !important;
}

/* ===== Header ===== */
.header {
  width: 100%;
  background: #fff;
}

.header__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 46px;
}

/* --- Top bar (level 1) --- */
.top-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  height: auto;
  min-height: 60px;
  padding: 8px 0;
  row-gap: 8px;
  column-gap: 20px;
  justify-content: flex-start;
  min-width: 0;
  overflow: visible;
}

.top-bar__tail {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  flex-shrink: 0;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.top-bar__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.top-bar__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.top-bar__text {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 15px;
  line-height: 24px;
  color: #343638 !important;
}

.top-bar__text--bold {
  font-weight: 700;
}

.top-bar__text--address .top-bar__city {
  font-weight: 700;
}

.top-bar__link {
  font-family: 'Proxima Nova', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 24px;
  color: #343638 !important;
  text-decoration: none;
}

.top-bar__link:hover {
  opacity: 0.7;
}

.top-bar__phone-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.top-bar__phone {
  font-family: 'Proxima Nova', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #343638 !important;
  text-decoration: none;
}

.top-bar__phone:hover {
  opacity: 0.7;
}

.top-bar__phone-arrow {
  width: 11px;
  height: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.top-bar__phone-wrapper.is-open .top-bar__phone-arrow {
  transform: rotate(180deg);
}

.top-bar__phone-drop {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  min-width: 220px;
  z-index: 1011;
  padding: 6px 0;
}

.top-bar__phone-wrapper.is-open .top-bar__phone-drop {
  display: block;
}

.top-bar__phone-drop-link {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.top-bar__phone-drop-link:hover {
  background: #f5f5f5;
}

.top-bar__phone-drop-link span {
  display: block;
  color: #999;
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}

.top-bar__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.top-bar__lang-link {
  color: #343638;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.top-bar__lang-link:hover {
  color: #c9a227;
}

.top-bar__lang-sep {
  color: #999;
  font-size: 11px;
}

.top-bar__socials {
  display: flex;
  gap: 6px;
}

.top-bar__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #343638;
  text-decoration: none;
}

.top-bar__social img,
.top-bar__social svg {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 18px;
  max-height: 15px;
}

/* --- Divider --- */
.header__divider {
  height: 1px;
  background: #343638;
  opacity: 0.2;
}

/* --- Navigation (level 2) --- */
.nav-bar {
  display: flex;
  align-items: center;
  height: auto;
  margin-top: 23px;
  padding-bottom: 20px;
  justify-content: space-between;
  gap: 28px;
  min-width: 0;
  overflow: visible;
}

.nav-bar__cta:hover {
  color: #fff;
}

.nav-bar__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-bar__burger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
}

.nav-bar__burger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: #343638;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-bar__logo {
  flex-shrink: 0;
  min-width: 0;
  max-width: 283px;
  z-index: 2;
}

.nav-bar__logo-img {
  height: 47px;
  width: auto;
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  max-width: 283px;
}

.nav-bar__desktop-menu {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 28px;
  overflow: visible;
}

.nav-bar__cta-box {
  flex-shrink: 0;
}

.nav-bar__desktop-menu .header__main-item {
  width: 100%;
}

.nav-bar__desktop-menu .mega-menu {
  display: block;
}

.nav-bar__desktop-menu .header-menu__wrapper {
  justify-content: center;
}

.nav-bar__desktop-menu .header-menu__item {
  margin: 0 16px;
}

.nav-bar__desktop-menu .header-menu__item--first {
  margin-left: 0;
}

.nav-bar__desktop-menu .header-menu__item--more-items {
  margin-right: 0;
}

.nav-bar__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-bar__menu-link {
  font-family: 'Proxima Nova', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #343638;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-bar__menu-link:hover {
  opacity: 0.7;
}

.nav-bar__menu-more {
  font-size: 20px;
  letter-spacing: 2px;
  color: #343638;
  cursor: pointer;
}

.nav-bar__more-wrap {
  position: relative;
}

.nav-bar__more-drop {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  min-width: 180px;
  z-index: 1011;
  padding: 6px 0;
}

.nav-bar__more-wrap.is-open .nav-bar__more-drop {
  display: block;
}

.nav-bar__more-drop-link {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-bar__more-drop-link:hover {
  background: #f5f5f5;
}

.nav-bar__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  background: transparent;
  border: 1px solid #343638;
  color: #343638;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s;
}

.nav-bar__cta:hover {
  opacity: 0.85;
  color: #343638;
}

/* Mobile phone icon (hidden on desktop) */
.nav-bar__phone-mobile {
  display: none;
  position: relative;
  flex-shrink: 0;
}

.nav-bar__phone-mobile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.nav-bar__phone-mobile-link svg {
  width: 20px;
  height: 24px;
}

.nav-bar__phone-mobile-drop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  min-width: 220px;
  z-index: 1011;
  padding: 6px 0;
}

.nav-bar__phone-mobile.is-open .nav-bar__phone-mobile-drop {
  display: block;
}

.nav-bar__phone-mobile-drop-link {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.nav-bar__phone-mobile-drop-link:hover {
  background: #f5f5f5;
}

.nav-bar__phone-mobile-drop-link span {
  display: block;
  color: #999;
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}

/* ===== Mobile Menu Overlay ===== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 2000 ;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.is-open .mobile-menu__nav li:before{
  display: none !important;
}

.mobile-menu-overlay.is-open {
  display: flex;
  flex-direction: column;
}

body.mobile-menu-open {
  overflow: hidden;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(52, 54, 56, 0.1);
  flex-shrink: 0;
}

.mobile-menu__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu__close svg {
  width: 20px;
  height: 20px;
}

.mobile-menu__body {
  flex: 1;
  padding: 24px 20px 40px;
  overflow-y: auto;
}

.mobile-menu__nav {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.mobile-menu__nav li {
  border-bottom: 1px solid rgba(52, 54, 56, 0.1);
}

.mobile-menu__nav--level-2,
.mobile-menu__nav--level-3,
.mobile-menu__nav--level-4 {
  margin: 0;
  padding: 0 0 0 16px;
}

.mobile-menu__nav--level-2 .mobile-menu__nav-item:last-child,
.mobile-menu__nav--level-3 .mobile-menu__nav-item:last-child,
.mobile-menu__nav--level-4 .mobile-menu__nav-item:last-child {
  border-bottom: 0;
}

.mobile-menu__nav-row {
  display: flex;
  align-items: stretch;
  min-height: 52px;
}

.mobile-menu__nav a,
.mobile-menu__nav-link {
  display: block;
  padding: 14px 0;
  font-family: 'Proxima Nova', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: #343638;
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-menu__nav-link {
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-menu__nav-link--level-2 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  text-transform: none;
}

.mobile-menu__nav-link--level-3,
.mobile-menu__nav-link--level-4 {
  font-size: 15px;
  line-height: 21px;
  font-weight: 500;
  text-transform: none;
}

.mobile-menu__submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  border: 0;
  background: transparent;
  color: #343638;
  cursor: pointer;
  padding: 0;
}

.mobile-menu__submenu-toggle svg {
  transition: transform 0.2s ease;
}

.mobile-menu__nav-item.is-open > .mobile-menu__nav-row .mobile-menu__submenu-toggle svg {
  transform: rotate(180deg);
}

.mobile-menu__submenu {
  display: none;
}

.mobile-menu__nav-item.is-open > .mobile-menu__submenu {
  display: block;
}

.mobile-menu__nav-item.is-selected > .mobile-menu__nav-row > .mobile-menu__nav-link {
  font-weight: 700;
}

.mobile-menu__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.mobile-menu__info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mobile-menu__info-icon {
  width: 20px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0;
}

.mobile-menu__info-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mobile-menu__info-text {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 15px;
  line-height: 22px;
  color: #343638;
}

.mobile-menu__info-text b {
  font-weight: 700;
}

.mobile-menu__info-text a {
  color: #343638;
  text-decoration: none;
  font-weight: 700;
}

.mobile-menu__phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.mobile-menu__phone {
  font-family: 'Proxima Nova', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: #343638;
  text-decoration: none;
}

.mobile-menu__phone-sub {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #343638;
  opacity: 0.5;
}

.mobile-menu__socials {
  display: flex;
  gap: 8px;
}

.mobile-menu__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #343638;
  text-decoration: none;
}

.mobile-menu__social svg {
  width: 18px;
  height: 14px;
  display: block;
}

.mobile-menu__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  width: 100%;
  background: #343638;
  color: #fff;
  font-family: 'Proxima Nova', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 24px;
  border: none;
  cursor: pointer;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: 16px 0;
}

.breadcrumbs__container {
  max-width: 1440px;
  margin: 0 auto;
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__list li{
  margin-bottom: 0;
}

.breadcrumbs__list li:before{
  display: none;
}

.breadcrumbs__link {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #343638;
  opacity: 0.5;
  text-decoration: none;
}

.breadcrumbs__link:hover {
  opacity: 0.8;
}

.breadcrumbs__link--active {
  font-weight: 700;
  opacity: 0.8;
}

.breadcrumbs__separator {
  width: 24px;
  height: 1px;
  background: #343638;
  opacity: 0.5;
  display: block !important;
  margin: 0 !important;
  bottom: 0 !important;
  line-height: 0 !important;
}

.header-menu--height_91 .header-menu__item, .header-menu--height_91 .header-menu__wrapper {
  height: auto;
}

.header-menu--64 .header-menu__item {
  margin: 0 13px;
}

.header-menu__title {
  color: var(--343638, #343638);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
}

.header__main-part {
  height: auto;
}

.header__main-item {
  margin: 0 !important;
}

.nav-bar__desktop-menu {
  margin: 0 !important;
}

.header-menu__item--wide {
  position: initial;
}

.header__main-part {
  position: initial;
}

.nav-bar {
  position: relative;
}

.header-menu__item--wide > .header-menu__dropdown-menu {
  top: 80%;
  padding: 0 !important;
}

.header-menu__item {
  min-height: 40px;
}

.dropdown {
  top: 120%;
}

.header-menu__item--more-items {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.header-menu__item--more-items .header-menu__link {
  padding: 0 8px;
  display: flex;
  align-items: center;
}

.header-menu__item--more-items svg path {
  fill: #343638;
}

.header-menu__item--more-items > .header-menu__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1010;
  min-width: 200px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.header-menu__item--more-items.is-open > .header-menu__dropdown-menu,
.header-menu__item--more-items:hover > .header-menu__dropdown-menu {
  display: block;
}

.header-menu__item--more-items .ap-more-link {
  display: block;
  padding: 10px 18px;
  color: #343638;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.header-menu__item--more-items .ap-more-link:hover {
  background: #f5f5f5;
}


/* ===== Responsive ===== */

@media (max-width: 1200px) {
  .header__container {
    padding: 0 30px;
  }

  .nav-bar__logo {
    min-width: auto;
  }

  .top-bar {
    column-gap: 14px;
    row-gap: 8px;
  }

  .top-bar__item {
    font-size: 13px;
  }

  .nav-bar__menu {
    gap: 20px;
  }

  .nav-bar__desktop-menu {
    margin: 0 20px;
  }
}

@media (max-width: 1320px) {
  .top-bar__item--phone {
    margin-left: auto;
    order: 2;
  }

  .top-bar__tail {
    flex: 1 1 100%;
    justify-content: space-between;
    margin-left: 0;
    order: 3;
  }
}

@media (max-width: 980px) {
  .header__container {
    padding: 0 20px;
  }

  .top-bar {
    display: none !important;
  }

  .header__divider {
    display: none;
  }

  .nav-bar {
    margin-top: 0;
    padding: 12px 0;
    justify-content: space-between;
    position: relative;
    overflow: visible;
  }

  .nav-bar__burger {
    display: flex;
    order: -1;
  }

  .nav-bar__menu,
  .nav-bar__desktop-menu {
    display: none !important;
  }

  .nav-bar__cta-box {
    display: none !important;
  }

  .nav-bar__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-right: 0;
    max-width: min(220px, calc(100% - 120px));
  }

  .nav-bar__logo-img {
    height: 38px;
    max-width: 100%;
  }

  .nav-bar__phone-mobile {
    display: flex;
  }

  .breadcrumbs__container {
    padding: 0;
  }

  .breadcrumbs__list {
    flex-wrap: wrap;
    gap: 6px;
  }

  .breadcrumbs__separator {
    width: 16px;
  }

  .breadcrumbs__link {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .mobile-menu__nav a {
    font-size: 16px;
    padding: 12px 0;
  }

  .breadcrumbs__link {
    font-size: 13px;
  }

  .nav-bar__logo-img {
    max-width: 100%;
    object-fit: contain;
  }

  .nav-bar__logo-img {
    max-width: 100%;
    object-fit: contain;
  }

  .ap-new-footer__logo {
    max-width: 100%;
    object-fit: contain;
  }

  .breadcrumbs__separator {
    width: 12px;
  }
}

@media (max-width: 345px) {
  .articles__controls {
    flex-wrap: wrap;
  }

  .mobile-menu__phone-sub {
    display: block;
  }

  .mobile-menu__logo img {
    width: 170px;
    max-width: 100%;
    object-fit: contain;
  }

}