/* Шапка — дизайн-сайта.jpg */

.site-header {
  position: relative;
  z-index: 400;
  background: #fff;
}

.site-header__inner {
  padding-block: 14px 16px;
}

.region-top-header {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.region-top-header > .block,
.region-top-header > nav {
  margin: 0;
}

@media (min-width: 801px) {
  .region-top-header {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) auto auto auto auto auto;
    align-items: center;
    column-gap: 28px;
  }

  .region-top-header > [id*="adrespredpriyatiya"],
  .region-top-header > [id*="telefoniemayl"],
  .region-top-header > .block-cart-count {
    padding-left: 28px;
    border-left: 1px solid #e0e0e0;
  }
}

/* Логотип */
.region-top-header .logo-img-text {
  display: flex !important;
  align-items: center;
}

.region-top-header .logo-img-text > a {
  display: block;
  flex-shrink: 0;
}

.region-top-header .logo-img-text img {
  display: block;
  width: 180px;
  max-width: 180px;
  height: auto;
}

.region-top-header .logo-img-text > p {
  display: none !important;
}

/* Адрес */
.region-top-header [id*="adrespredpriyatiya"] > div > div {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding-left: 28px;
  background: url(../images/adress-dark.svg) left center / 20px 20px no-repeat;
}

.region-top-header [id*="adrespredpriyatiya"] p {
  margin: 0 !important;
  color: #666;
  font-size: 16px;
  line-height: 1.35;
}

/* Телефон и почта */
.region-top-header [id*="telefoniemayl"] p,
.region-top-header [id*="telefoniemayl"] a {
  font-size: 16px;
  line-height: 1.35;
}

.region-top-header [id*="telefoniemayl"] p.header-contact-lines {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  column-gap: 28px;
  row-gap: 8px;
  margin: 0 !important;
}

.region-top-header [id*="telefoniemayl"] p.header-contact-lines br {
  display: none;
}

.region-top-header [id*="telefoniemayl"] a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #222;
  text-decoration: none;
}

.region-top-header [id*="telefoniemayl"] a[href^="mailto:"]:hover {
  color: #820000;
}

.region-top-header [id*="telefoniemayl"] a[href^="mailto:"]::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: url(../images/send-mail-dark.svg) center / contain no-repeat;
}

.region-top-header [id*="telefoniemayl"] a:not([href^="mailto:"]) {
  color: #222;
  text-decoration: none;
}

.region-top-header [id*="telefoniemayl"] a:not([href^="mailto:"]):hover {
  color: #820000;
}

.region-top-header .header-contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #222;
  white-space: nowrap;
}

.region-top-header .header-contact-phone::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url(../images/tlf-dark.svg) center / contain no-repeat;
}

@media (max-width: 800px) {

  div#block-mega-prut-mob-header-phone {
    margin-left: 6px;
    margin-right: auto;
}
  .site-header-wrap {
    position: relative;
    z-index: 420;
    background: #fff;
  }

  /* .site-header__inner {
    padding-block: 10px 8px;
    padding-right: 48px;
  } */

  /* Десктопные адрес/телефон — скрыть на мобильном */
  .region-top-header > [id*="adrespredpriyatiya"]:not([id*="mob-header-address"]),
  .region-top-header > [id*="telefoniemayl"]:not([id*="mob-header"]) {
    display: none !important;
  }

  .region-top-header {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 1.75rem 0;
    width: 100%;
    justify-content: space-between;
  }

  .region-top-header .header-mob-phone {
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
  }

  .region-top-header .header-mob-phone a {
    color: #222;
    text-decoration: none;
  }

  .region-top-header .header-mob-phone a:hover {
    color: #820000;
  }

  .region-top-header .header-mob-address p {
    margin: 0 !important;
    color: #666;
    font-size: 13px;
    line-height: 1.35;
  }

  .region-top-header .logo-img-text img {
    width: 128px;
    max-width: 128px;
  }

  .region-top-header > #account-menu,
  .region-top-header > .account-menu {
    display: block !important;
  }
}

@media (min-width: 801px) {
  .region-top-header > [id*="mob-header-phone"],
  .region-top-header > [id*="mob-header-address"] {
    display: none !important;
  }
}
