/* === Шапка и навигация === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #111;
  z-index: 1000;
  transition: padding 0.3s ease;
}
header.shrink {
  padding: 8px 20px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  width: 100%;
}

.left-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #c084fc;
  text-decoration: none;
}

/* === Бургер-меню === */
.burger {
  font-size: 28px;
  cursor: pointer;
  color: #c084fc;
  display: none;
  z-index: 1001;
}

/* === Навигация === */
nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 10px 0;
  transition: max-height 0.3s ease;
}

nav a {
  position: relative;
  color: #c084fc;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.3s ease;
  overflow: hidden;
}

/* Вспышка при наведении */
nav a::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.3) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.5s ease;
  pointer-events: none;
}

nav a:hover::before {
  transform: scale(1);
}

nav a:hover {
  color: #c084fc;
  text-shadow: 0 0 8px #c084fc;
}

/* Звёздочка при наведении */
nav a::after {
  content: "✨";
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 14px;
  color: #c084fc;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

nav a:hover::after {
  opacity: 1;
  transform: scale(1.2);
}

/* === Социальные иконки === */
.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(78%) sepia(48%) saturate(746%) hue-rotate(230deg) brightness(95%) contrast(92%);
  transition: transform 0.3s;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* === Адаптация на мобильных === */
@media (max-width: 768px) {
  .burger {
    display: block;
  }
header.shrink {
  padding: 0;
}
   nav {
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.show {
    max-height: 500px;
    background-color: #111; /* достаточно для всех ссылок */
  }

  nav a {
    font-size: calc(var(--index)*1.8);
    padding: 6px 12px;
    border-radius: 0;
    width: 100%
  }

  .burger {
    display: block;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
