.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: #f9f5f2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: fixed;
  top: 0;
  z-index: 10;
  min-height: 80px;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo {
  height: 64px;
  min-width: 64px;
  background-image: url("../assets/img/logo.png");
  background-size: cover;
  background-repeat: no-repeat;
}

.logo-content {
  text-align: left;
}

.header__title {
  font-size: 32px;
  color: #000;
  font-family: "Montserrat Alternates SemiBold", sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
}

.header__nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
}

.header__nav-item {
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: 0.15s;
}

.header__nav-link {
  font-size: 16px;
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.header__nav-item:hover {
  border-color: #000;
}

/* --- Бургер-кнопка --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  margin-left: 8px;
  position: relative;
}
.burger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #6c5ce7;
  border-radius: 2px;
  transition: 0.3s;
  position: absolute;
  left: 8px;
}
.burger span:nth-child(1) {
  top: 5px;
}
.burger span:nth-child(2) {
  top: 15px;
}
.burger span:nth-child(3) {
  top: 25px;
}

/* --- Адаптивність --- */
@media (max-width: 1150px) {
  .header {
    padding: 12px 16px;
  }
  .header__title {
    font-size: 26px;
  }
  .logo {
    height: 52px;
    min-width: 52px;
  }
  .header__nav-list {
    gap: 16px;
  }
  .purple-btn.header__cta {
    font-size: 14px;
    padding: 12px 14px;
  }
}

@media (max-width: 900px) {
  .header {
    flex-direction: row;
    align-items: center;
    padding: 10px 8px;
    min-height: 64px;
  }
  .header__left {
    flex: 1 1 auto;
    min-width: 0;
  }
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    background: #f9f5f2;
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px 24px;
    z-index: 1001;
  }
  .header__nav.open {
    transform: translateX(0);
  }
  .header__nav-list {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
  .header__nav-link {
    font-size: 20px;
    padding: 8px 0;
    display: block;
  }
  .purple-btn.header__cta {
    display: none;
  }
  .burger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .header__nav {
    width: 100vw;
    padding: 80px 8vw 24px 8vw;
  }
  .header__title {
    font-size: 18px;
  }
  .logo {
    height: 38px;
    min-width: 38px;
  }
}

/* --- Бургер-іконка анімація (центр!) --- */
.burger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
