.header {
  background: linear-gradient(135deg, #ff204e 0%, #e6003a 100%);
  box-shadow: 0 4px 20px rgba(255, 32, 78, 0.3);
  position: relative;
  z-index: 1000;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  position: relative;
  z-index: 2;
}

.header__logo-link {
  text-decoration: none;
  transition: all 0.3s ease;
}

.header__logo-link:hover {
  transform: translateY(-2px);
}

.header__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header__logo:hover {
  transform: scale(1.05) translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.header__logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.header__logo:hover img {
  transform: rotate(-5deg) scale(1.1);
}

.header__logo span {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  font-family: "BBH Sans Hegarty", sans-serif;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  margin-top: 0.25rem;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #ffffff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__nav ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.header__nav ul a {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  font-family: "BBH Sans Hegarty", sans-serif;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.header__nav ul a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.1),
    rgba(255, 215, 0, 0.05)
  );
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header__nav ul a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffd700, #ff6b35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.header__nav ul a:hover {
  color: #ffd700;
  transform: translateY(-1px);
  text-shadow: 2px 2px 8px rgba(255, 215, 0, 0.4);
}

.header__nav ul a:hover::before {
  opacity: 1;
}

.header__nav ul a:hover::after {
  width: 80%;
}

.header__btn--menu {
  position: relative; /* для позиционирования внутренних span */
  width: 40px; /* ширина кнопки */
  height: 30px; /* высота кнопки */
  display: flex; /* для центрирования содержимого */
  flex-direction: column;
  justify-content: space-between; /* равные промежутки между линиями */
  background: transparent; /* без фона */
  border: none; /* убираем стандартную рамку кнопки */
  cursor: pointer; /* курсор-указатель */
  padding: 0;
  z-index: 1000; /* чтобы была поверх других элементов */
  transition: transform 0.3s ease; /* плавное нажатие */
}

.header__btn--menu:focus {
  outline: none;
}

.header__btn--menu {
  display: none;
}

/* Каждая линия меню */
.header__btn--menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header__btn--menu:hover span {
  background-color: #f0d617;
}

.header__btn--menu.active span:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}

.header__btn--menu.active span:nth-child(2) {
  opacity: 0;
}

.header__btn--menu.active span:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
}

.header__btn {
  position: relative;
  background: linear-gradient(135deg, #ffd700 0%, #ff6b35 50%, #ff204e 100%);
  border: none;
  padding: 0.75rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: "BBH Sans Hegarty", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  min-width: 140px;
}

.header__btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.7s ease;
}

.header__btn:hover::before {
  left: 100%;
}

.header__btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.6);
  background: linear-gradient(135deg, #ffe040 0%, #ff8c5a 50%, #ff4060 100%);
}

.header__btn:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
}

.header__btn__text {
  position: relative;
  z-index: 2;
}

.header__btn__glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header__btn:hover .header__btn__glow {
  opacity: 1;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
  }
}

@media (max-width: 1060px) {
  .header__nav ul {
    gap: 0.5rem;
  }

  .header__btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 990px) {
  /* Показываем бургер */
  .header__btn--menu {
    display: flex;
  }

  /* Скрываем обычное горизонтальное меню */
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%; /* прячем за экраном */
    width: 250px;
    height: 100vh;
    background: linear-gradient(135deg, #ff204e 0%, #e6003a 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    transition: right 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
  }

  .header__nav.active {
    right: 0;
  }

  .header__nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .header__nav ul a {
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    padding: 0.6rem 1.2rem;
  }

  .header__nav ul a:hover {
    color: #ffd700;
    transform: translateX(5px);
  }

  .header__content {
    justify-content: space-between;
  }
}

.header__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.header__overlay.active {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 768px) {
  .header__content {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header__nav ul a {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }

  .header__btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 550px) {
  .header__logo img {
    width: 45px;
    height: 45px;
  }

  .header__logo {
    gap: 0.5rem;
  }

  .header__logo span {
    font-size: 1rem;
    display: none;
  }
}
