*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: #fff;
  border-bottom: 1px solid #eee;

  font-family: "Poppins", sans-serif;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  min-height: 80px;
  margin: 0 auto;
  padding: 0 20px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  display: block;
  height: 46px;
  transition: transform 0.2s ease;
}

.header__logo img:hover {
  transform: scale(1.1);
}

.header__overlay {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 28px;
}

.header__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 28px;
}

.header__nav a {
  position: relative;
  padding-bottom: 4px;
  color: #a72d8f;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.header__nav a::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #f7b92f;
  content: "";
  transition: width 0.3s ease, left 0.3s ease;
}

.header__nav a:hover {
  color: #f7b92f;
}

.header__nav a:hover::after {
  left: 0;
  width: 100%;
}

.header__button {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: #f7b92f;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header__button:hover {
  background: #a72d8f;
  transform: scale(1.05);
}

.burger {
  display: none;
}

@media (max-width: 815px) {
  .container {
    position: relative;
    min-height: 72px;
  }

  .header__logo img {
    height: 40px;
  }

  .burger {
    position: relative;
    z-index: 1002;
    display: block;
    width: 40px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .burger span {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: #a72d8f;
    transform-origin: left center;
    transition: 0.25s ease-in-out;
  }

  .burger span:nth-child(1) { top: 0; }

  .burger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .burger span:nth-child(3) { bottom: 0; }

  .burger.active span:nth-child(1) {
    top: 0;
    left: 5px;
    transform: rotate(45deg);
  }

  .burger.active span:nth-child(2) {
    width: 0;
    opacity: 0;
  }

  .burger.active span:nth-child(3) {
    bottom: 0;
    left: 5px;
    transform: rotate(-45deg);
  }

  .header__overlay {
    position: absolute;
    z-index: 1001;
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 22px;
    border-radius: 18px;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 18px 40px rgb(0 0 0 / 8%), 0 4px 10px rgb(0 0 0 / 5%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  }

  .header__overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .header__nav a {
    display: block;
    padding: 14px 18px;
    border-radius: 12px;
  }

  .header__nav a::after {
    display: none;
  }

  .header__nav a:hover {
    background: rgb(167 45 143 / 8%);
    color: #a72d8f;
    transform: translateX(8px);
  }

  .header__button {
    width: 100%;
    margin-top: 6px;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 16px;
  }

  .header__overlay {
    right: 8px;
    left: 8px;
    padding: 18px;
  }
}
