.apex-unified-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 6px;
  min-width: 250px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 5;
}

.apex-unified-phone {
  color: #ffffff !important;
  font-family: Arial, sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap;
  text-decoration: none !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.apex-unified-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.apex-unified-social a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  line-height: 0;
}

.apex-unified-social img {
  width: 21px !important;
  height: 21px !important;
  object-fit: contain;
}

.apex-yandex-page .apex-unified-phone,
.apex-yandex-page .apex-unified-social,
.apex-google-page .apex-unified-phone,
.apex-google-page .apex-unified-social {
  color: #111111 !important;
  text-shadow: none !important;
}

body > header:not(.header) > .container > .header {
  display: grid !important;
  grid-template-columns: minmax(170px, 230px) minmax(270px, 1fr) minmax(90px, 230px);
  grid-template-rows: auto auto;
  align-items: center !important;
  gap: 8px 20px;
  height: auto !important;
  min-height: 88px;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  box-sizing: border-box;
}

body > header:not(.header) > .container > .header > .logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: 205px !important;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

body > header:not(.header) > .container > .header > .logo img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

body > header:not(.header) > .container > .header > .apex-unified-contact {
  grid-column: 2;
  grid-row: 1;
}

body > header:not(.header) > .container > .header > .menu {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

body > header:not(.header) > .container > .header > .section-navigation {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
}

body > header:not(.header) > .container > .header > .call-me {
  display: none !important;
}

header.header .header__top {
  display: grid !important;
  grid-template-columns: minmax(170px, 230px) minmax(270px, 1fr) minmax(90px, 230px);
  grid-template-rows: auto auto;
  align-items: center !important;
  gap: 10px 20px;
  height: auto !important;
  min-height: 96px;
  padding-top: 10px;
  padding-bottom: 10px;
  box-sizing: border-box;
}

header.header .header__top > .header__logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: 205px !important;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

header.header .header__top > .header__logo img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

header.header .header__top > .apex-unified-contact {
  grid-column: 2;
  grid-row: 1;
}

header.header .header__top > .header__phone {
  display: none !important;
}

header.header .header__top > .nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
}

header.header .header__top > .mobile__menu {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

@media (max-width: 800px) {
  body > header:not(.header) > .container > .header,
  header.header .header__top {
    grid-template-columns: max-content max-content max-content;
    grid-template-rows: auto;
    justify-content: space-between !important;
    column-gap: 0;
    row-gap: 0;
    min-height: 82px;
    padding: 8px 12px !important;
  }

  body > header:not(.header) > .container > .header > .logo,
  header.header .header__top > .header__logo {
    width: 44px !important;
    padding: 4px;
  }

  body > header:not(.header) > .container > .header > .logo img,
  header.header .header__top > .header__logo img {
    content: url('/apexmarketing/img/home/foton_logo_mobile.svg');
  }

  body > header:not(.header) > .container > .header > .section-navigation,
  header.header .header__top > .nav {
    display: none !important;
  }

  .apex-unified-contact {
    min-width: 0;
    width: max-content;
    max-width: 100%;
    gap: 5px;
    padding: 0;
    border-radius: 0;
    z-index: 1;
  }

  body > header:not(.header) > .container > .header > .menu {
    position: relative;
    z-index: 10002;
  }

  body > header:not(.header) .main-navigation {
    z-index: 10001 !important;
  }

  body > header:not(.header) .main-navigation_close,
  body > header:not(.header) .menu-link {
    position: relative;
    z-index: 10003 !important;
  }

  header.header .header__top > .mobile__menu {
    position: relative;
    z-index: 10003 !important;
  }

  .mobile__menu__popup {
    z-index: 10002 !important;
  }

  .mobile__menu__popup__close {
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    color: #4c4c4c !important;
    z-index: 10004 !important;
  }

  .apex-unified-phone {
    font-size: 18px !important;
  }

  .apex-unified-social {
    gap: 7px;
    font-size: 11px;
  }

  .apex-unified-social img {
    width: 18px !important;
    height: 18px !important;
  }
}

@media (max-width: 380px) {
  .apex-unified-contact {
    padding-left: 6px;
    padding-right: 6px;
  }

  .apex-unified-phone {
    font-size: 16px !important;
  }

  .apex-unified-social span {
    display: none;
  }
}
