.header {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 9;
}

.header__up-row-wrapper {
  background-color: #253037;
  border-bottom: 1px solid #253037;
  color: #fff;
}

.header__up-row,
.header__down-row {
  padding-block: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.header__down-row {
  padding-block: 1rem;
}

.header__down-row .custom-logo {
  display: block;
  width: auto;
  height: 2.5rem;
  object-fit: contain;
}

.header__navigation {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  max-width: 50%;
}

.header__navigation:not(.is-ready) {
  opacity: 0;
}

.header__navigation ul,
.header-category ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}

.header__navigation ul {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.header__navigation li.is-overflow {
  display: none !important;
}

.header__nav-more {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.header__nav-more:hover,
.header__nav-more:focus-visible {
  color: #fff;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header__nav-overflow {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 12rem;
  height: 0;
  padding: 0.75rem 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--rounded);
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgb(40 47 47 / 8%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    height 280ms ease,
    opacity 200ms ease,
    visibility 0s linear 280ms;
}

.header__nav-overflow.is-open,
.header__nav-overflow.is-closing,
.header__nav-overflow.is-height-animating {
  visibility: visible;
  transition:
    height 280ms ease,
    opacity 200ms ease,
    visibility 0s;
}

.header__nav-overflow.is-open {
  opacity: 1;
  pointer-events: auto;
}

.header__nav-overflow.is-open:not(.is-height-animating) {
  height: auto;
}

.header__nav-overflow.is-closing {
  opacity: 0;
  pointer-events: none;
}

.header__nav-overflow-link {
  color: #122331;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.875rem;
}

.header__nav-overflow-link:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .header__nav-overflow {
    transition: none;
  }
}

.header__contacts {
  display: flex;
  flex-shrink: 0;
  gap: 1rem;
}

.header__contact-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header__navigation ul li,
.header__nav-more,
.header__contacts,
.header__city {
  color: #f5f7f8;
  font-size: 0.875rem;
}

.header__city {
  display: flex;
  gap: 0.5rem;
  align-items: center;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
  cursor: pointer;
  transition: color 400ms;
}

.header__city svg {
  height: 1.25rem;
  width: 1.25rem;
}

.header__city span {
  line-height: 1;
}

.header__navigation ul li a,
.header__contact-link {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.header__navigation ul li a:hover,
.header__city:hover,
.header__contact-link:hover {
  color: var(--primary);
}

.header-category ul li {
  font-weight: 600;
  color: var(--text) !important;
  cursor: pointer;
  transition: color 400ms;
}

.header-category ul li a {
  color: inherit;
  text-decoration: none;
  color: var(--text) !important;
}

.header-category ul li:hover,
.header-category ul li a:hover {
  color: var(--primary) !important;
}

.header__contact-icon {
  height: 1rem;
  width: 1rem;
}

.header__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header__actions-account,
.header__actions-social,
.header__menu {
  border: 1px solid var(--primary);
  border-radius: 50%;
  padding: 0.5rem;
  line-height: 0;
  background-color: white;
  color: var(--primary);
  transition:
    border-color 400ms,
    color 400ms;
}

.header__actions-account:hover,
.header__actions-social:hover {
  border-color: var(--text);
}

.header__actions-social .icon {
  height: 1.25rem;
  width: 1.25rem;
}

.header__actions-lead {
  line-height: 1;
}

@media (max-width: 1400px) {
  .header__up-row-wrapper {
    display: none;
  }

  .header {
    position: relative;
    top: 0;
  }

  .header-category {
    display: none;
  }
}

@media (min-width: 1401px) {
  .header__menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .header__down-row {
    gap: 0.5rem;
  }

  .header__actions {
    gap: 0.35rem;
  }

  .header__actions-social {
    display: none;
  }

  .header__actions-lead {
    padding-inline: 1rem !important;
    font-size: 0.875rem;
  }

  .custom-logo {
    max-height: 2rem;
    width: auto;
  }
}

@media (max-width: 480px) {
  .header__actions-lead {
    display: none;
  }
}

@media (max-width: 768px) {
  .header__actions-social,
  .header__actions-lead,
  .header__actions-account {
    display: none;
  }
}

/* Fixed bottom mobile navigation (rendered only via Mobile_Detect) */
.mobile-nav-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background-color: var(--primary);
  box-shadow: 0 -0.25rem 1rem rgb(40 47 47 / 12%);
}

.mobile-nav-menu__list {
  margin: 0;
  padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  gap: 0.15rem;
}

.mobile-nav-menu__item {
  min-width: 0;
}

.mobile-nav-menu__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  min-height: 3.5rem;
  margin: 0;
  padding: 0.35rem 0.2rem;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.mobile-nav-menu__link:hover,
.mobile-nav-menu__link:focus,
.mobile-nav-menu__link:visited {
  color: #fff;
}

.mobile-nav-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.5rem;
  width: 1.75rem;
  color: #fff;
}

.mobile-nav-menu__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 1.75rem;
  max-height: 1.5rem;
}

.mobile-nav-menu__icon--flag {
  width: 1.75rem;
  height: 1.25rem;
  border-radius: 0.15rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 35%);
}

.mobile-nav-menu__icon--flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-nav-menu__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.mobile-nav-menu) {
  padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
}

.header__nav-overflow a.header__nav-overflow-link,.header__nav-overflow a.header__nav-overflow-link:visited{color:#122331}
.header__nav-overflow a.header__nav-overflow-link:hover,.header__nav-overflow a.header__nav-overflow-link:focus-visible{color:#e31e24;background:#f5f5f5}

@media(min-width:1401px){body.admin-bar .header{top:32px}}
