.header {
  background: var(--c-cream);
  display: flex;
  flex-direction: column;
  position: relative;
}

.promo-bar {
  align-items: center;
  background: var(--c-black);
  border-bottom: 1px solid var(--c-gray);
  display: flex;
  gap: 24px;
  height: 90px;
  justify-content: space-between;
  padding: 4px var(--pad);
}

.promo-bar--hidden {
  display: none;
}

.promo-bar__content {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.promo-bar__badge {
  border-radius: 2px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: normal;
  padding: 2px;
  text-transform: uppercase;
}

.promo-bar__badge--ad {
  border: 1px solid var(--c-gray);
  color: var(--c-gray);
  opacity: 0.5;
}

.promo-bar__badge--brand {
  background: rgba(232, 160, 32, 0.7);
  color: var(--c-black);
}

.promo-bar__erid {
  color: var(--c-gray);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: normal;
  opacity: 0.7;
}

.promo-bar__text {
  color: var(--c-light-gray);
  font-family: var(--font-sans);
  font-size: 13px;
  font-style: italic;
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-bar__actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 32px;
}

.promo-bar__more {
  color: var(--c-yellow);
  gap: 0;
}

.promo-bar__more img {
  height: 24px;
  width: 24px;
}

.promo-bar__close img {
  display: block;
  height: 24px;
  transition: filter 0.2s ease;
  width: 24px;
}

.promo-bar__close:hover img {
  filter: brightness(1.8);
}

.promo-bar--image {
  padding: 0;
  position: relative;
}

.promo-bar--image .promo-bar__image-link {
  display: block;
  height: 90px;
  width: 100%;
}

.promo-bar--image .promo-bar__image {
  display: block;
  height: 90px;
  object-fit: cover;
  width: 100%;
}

.promo-bar--image .promo-bar__content {
  left: var(--pad);
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.promo-bar--image .promo-bar__badge--ad {
  background: rgba(26, 12, 4, 0.55);
  opacity: 1;
}

.promo-bar--image .promo-bar__erid {
  background: rgba(26, 12, 4, 0.55);
  border-radius: 2px;
  opacity: 1;
  padding: 2px;
}

.promo-bar--image .promo-bar__actions {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.promo-bar--image .promo-bar__close {
  background: rgba(26, 12, 4, 0.55);
  border-radius: 2px;
}

.header__main {
  align-items: center;
  border-bottom: 1px solid var(--c-black);
  display: flex;
  height: 88px;
  justify-content: space-between;
  padding-left: var(--pad);
  padding-right: calc(var(--pad) + 24px);
}

.header__logo img {
  height: 54px;
  width: 200px;
}

.nav {
  align-items: center;
  display: flex;
  flex: 1 0 0;
  gap: 24px;
  justify-content: center;
  min-width: 0;
}

.nav__link {
  color: var(--c-black);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: normal;
  text-transform: lowercase;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav__link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav__link--special {
  color: var(--c-terracotta-dark);
}

.header__actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 16px;
}

.header__search img {
  height: 24px;
  width: 24px;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.header__burger span {
  background: var(--c-black);
  border-radius: 1px;
  display: block;
  height: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  width: 100%;
}

.header--menu-open .header__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header--menu-open .header__burger span:nth-child(2) {
  opacity: 0;
}

.header--menu-open .header__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1280px) {
  .nav {
    gap: 20px;
  }

  .nav__link {
    font-size: 18px;
  }
}

@media (max-width: 1024px) {
  .promo-bar__text {
    display: none;
  }

  .header__main {
    height: 72px;
    padding-right: var(--pad);
  }

  .header__logo img {
    height: 44px;
    width: auto;
  }

  .header__burger {
    display: flex;
  }

  .nav {
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-black);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 50;
  }

  .header--menu-open .nav {
    display: flex;
  }

  .nav__link {
    border-top: 1px solid rgba(26, 12, 4, 0.1);
    font-size: 22px;
    padding: 16px var(--pad);
    width: 100%;
  }
}

@media (max-width: 560px) {

  .header__main {
    height: 64.4px;
  }

  .header__logo img {
    height: 32.4px;
  }

  .promo-bar {
    gap: 12px;
  }

  .promo-bar__actions {
    gap: 16px;
  }

  .promo-bar__more .text-btn,
  .promo-bar__more {
    font-size: 13px;
  }
}
