/* Sleepress: unified white header. Desktop: logo | catalog | phone | social. */
.sr-header,
.sr-header__container,
.sr-header__body {
  background: #fff !important;
}
.sr-header {
  border: 0 !important;
  box-shadow: none !important;
}
.sr-header__container {
  width: min(1380px, calc(100% - 64px));
  max-width: 1380px;
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
}
.sr-header__body {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr) max-content max-content;
  gap: clamp(15px, 1.65vw, 27px);
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  margin: 0;
  padding: 10px 0;
  box-sizing: border-box;
}
.sr-brand {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  flex: none;
  min-width: 0;
}
/* Two identical transparent PNG layers retain the original Sleepress logo.
   The lower wordmark is black, while only the upper symbol is olive. */
.sr-brand__mark {
  position: relative;
  display: block;
  width: 204px;
  max-width: 100%;
  line-height: 0;
}
.sr-brand__logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}
.sr-brand__logo--ink {
  filter: brightness(0);
}
.sr-brand__logo--olive {
  position: absolute;
  inset: 0;
  filter: brightness(0) saturate(100%) invert(45%) sepia(9%) saturate(934%) hue-rotate(55deg) brightness(95%) contrast(88%);
  -webkit-clip-path: inset(0 0 38% 0);
  clip-path: inset(0 0 38% 0);
  pointer-events: none;
}
.sr-brand__caption {
  max-width: 158px;
  font-size: 8px;
  letter-spacing: .095em;
  text-align: center;
}
.sr-nav {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.45vw, 24px);
  overflow: visible;
  /* Add roughly one more full gap at each edge: logo | menu | phone. */
  padding: 0 clamp(22px, 2.1vw, 34px);
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  width: 100%;
}
.sr-nav a {
  display: inline-flex;
  align-items: center;
  flex: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .015em;
  white-space: nowrap;
}
.sr-header__phone {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  white-space: nowrap;
}
.sr-header__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #000;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.sr-header__phone-symbol {
  display: block;
  width: 27px;
  height: 27px;
  fill: currentColor;
}
.sr-header__phone-number {
  color: #171a16;
  font: 700 18px/1.25 "Roboto", Arial, sans-serif;
  letter-spacing: .005em;
  white-space: nowrap;
}
.sr-header__social.sr-topline__social {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}
.sr-header__social .sr-social-link {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.sr-header__social .sr-social-link img {
  width: 23px;
  height: 23px;
}
.sr-header__social .sr-social-link[aria-label="Avito"] img {
  width: 28px;
  height: 19px;
}
/* The menu now fills its grid column between the logo and phone. */
@media (min-width: 1101px) and (max-width: 1399px) {
  .sr-nav { gap: 15px; }
  .sr-nav a { font-size: 16px; }
  .sr-header__phone-number { font-size: 16px; }
}
/* Allow wrapping only when a single full row would get cramped. */
@media (max-width: 1100px) {
  .sr-header__body {
    grid-template-columns: 178px minmax(0,1fr) max-content max-content;
    gap: 13px;
  }
  .sr-brand__mark { width: 170px; }
  .sr-nav { gap: 12px; }
  .sr-nav a { font-size: 14px; }
  .sr-header__phone-number { font-size: 14px; }
  .sr-header__social.sr-topline__social { gap: 6px; }
  .sr-header__social .sr-social-link {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}
@media (max-width: 1050px) {
  .sr-header__container { width: calc(100% - 42px); }
  .sr-header__body {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    row-gap: 8px;
    column-gap: 14px;
    padding: 14px 0 12px;
    min-height: 0;
  }
  .sr-brand { order: 1; margin-right: auto; }
  .sr-header__phone { order: 2; }
  .sr-header__social.sr-topline__social { order: 3; }
  .sr-nav {
    order: 4;
    flex: 1 1 100%;
    width: 100%;
    justify-content: space-around;
    overflow-x: auto;
    gap: 17px;
    padding: 12px 0 5px;
    margin: 0;
    scrollbar-width: thin;
  }
}
@media (max-width: 600px) {
  .sr-header__container { width: calc(100% - 30px); }
}
@media (max-width: 550px) {
  .sr-header__container { padding: 0; }
  .sr-header__body { row-gap: 7px; padding: 12px 0 9px; }
  .sr-brand { order: 1; }
  .sr-brand__mark { width: 142px; }
  .sr-brand__caption { font-size: 7px; max-width: 124px; letter-spacing: .04em; }
  .sr-header__social.sr-topline__social { order: 2; margin-left: auto; }
  .sr-header__phone {
    order: 3;
    width: 100%;
    justify-content: flex-end;
    gap: 7px;
  }
  .sr-header__phone-number { font-size: 14px; }
  .sr-header__phone-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .sr-header__phone-symbol { width: 24px; height: 24px; }
  .sr-nav { order: 4; justify-content: space-between; gap: 6px; }
  .sr-nav a { font-size: 14px; }
}
@media (max-width: 365px) {
  .sr-brand__mark { width: 124px; }
  .sr-header__social.sr-topline__social { gap: 5px; }
  .sr-header__social .sr-social-link {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
}

/* Mobile header on all pages: remove the separate phone row and use its
   position for the catalog links directly below the logo + social row. */
@media (max-width: 600px) {
  .sr-header .sr-header__phone {
    display: none !important;
  }
  .sr-header__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 8px;
    row-gap: 0;
    min-height: 0 !important;
    padding: 8px 0 5px;
  }
  .sr-header .sr-brand {
    order: 1;
    margin-right: auto;
  }
  .sr-header .sr-header__social.sr-topline__social {
    order: 2;
    margin-left: auto;
  }
  .sr-header .sr-nav {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 20px 0 2px;
    gap: clamp(5px, 1.5vw, 12px);
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .sr-header .sr-nav a {
    font-size: clamp(12px, 3.35vw, 14px);
    white-space: nowrap;
  }
}
