/* ===== Хедер ===== */
.header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  max-width: 1200px;
  width: calc(100% - 2rem);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  top: 0.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.header.scrolled .logo {
  color: var(--accent);
}

.logo img {
  height: 32px;
  margin-right: 0.5rem;
}

/* ===== Навигация (десктоп) ===== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
}

.header.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.header.scrolled .nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== Бургер-кнопка (только на мобилках) ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.burger-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.header.scrolled .burger-line {
  background: var(--text);
}

/* Анимация бургера → крестик */
.burger.is-active .burger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.burger.is-active .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger.is-active .burger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== Оверлей ===== */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* ===== Мобильная версия (до 768px) ===== */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.04);
    z-index: 999;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    width: 100%;
    text-align: center;
    border-radius: 12px;
    transition: all 0.25s ease;
  }

  .nav-links a:hover {
    background: rgba(255, 87, 34, 0.06);
    color: var(--accent);
    transform: scale(1.02);
  }

  .nav-links a::after {
    display: none;
  }
}

/* ===== Футер ===== */
.footer {
  margin-top: 4rem;
  padding: 3rem 1.5rem 2rem;
  background: #1e1e1e;
  color: #ccc;
  border-radius: 40px 40px 0 0;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer__nav a {
  color: #ccc;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__info {
  text-align: center;
  line-height: 2;
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer__info strong {
  color: #fff;
}

.footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.footer__social span {
  opacity: 0.7;
}

.footer__social-link {
  display: inline-flex;
  transition: transform 0.3s ease;
}

.footer__social-link:hover {
  transform: scale(1.15);
}

.footer__icon {
  width: 28px;
  height: 28px;
  filter: invert(1);
}

.footer__bottom {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 1.5rem;
}