.cos-topbar {
  background: var(--cos-yellow);
  color: #000;
  padding: 8px 16px;
  text-align: center;
}
.cos-topbar__inner {
  line-height: 1;
}
.cos-topbar__text {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.cos-header {
  background: var(--cos-bg-2);
  position: relative;
  z-index: 50;
}

.cos-header__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 154px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cos-header__logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.cos-header__nav {
  display: flex;
  align-items: center;
}

.cos-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cos-nav li {
  list-style: none;
}

.cos-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cos-pink);
  text-transform: uppercase;
  border-radius: 4px;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.cos-nav a:hover,
.cos-nav a:focus-visible {
  color: #fff;
}

.cos-nav .current-menu-item > a,
.cos-nav .current_page_item > a,
.cos-nav .current-menu-ancestor > a {
  background: var(--cos-red);
  color: #fff;
}

.cos-header__burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.cos-header__burger span {
  width: 22px;
  height: 2px;
  background: #fff;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
  border-radius: 2px;
}

.cos-header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.cos-header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.cos-header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 980px) {
  .cos-topbar__text {
    font-size: 10px;
  }
  .cos-header__burger {
    display: inline-flex;
    order: 2;
  }

  .cos-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cos-bg-2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    display: none;
  }

  .cos-header__nav.is-open {
    display: block;
  }

  .cos-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .cos-nav a {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 12px;
    border-radius: 6px;
  }
}
