@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

/* CSS Document */
body {
  margin: 20px;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  background-color: #010b1c;
  color: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header {
  width: 100%;
  padding: 20px 30px;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #010b1c;
}

h2{
	font-size: 30px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #FFFFFF;
	margin-bottom: 40px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
}

.logo {
  flex-shrink: 0;
  font-size: 34px;
  font-weight: 700;
  text-decoration: none;
  color: #FFFFFF;
  z-index: 21;
}

.logo:hover {
	color: #00bfff;
}

/* Меню */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: color 0.3s ease;
	font-size: 18px;
  padding: 12px 18px;
	text-transform: uppercase;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #00bfff;
	text-decoration: underline;
	font-weight: 500;
	text-underline-offset: 4px;
}

/* Скрыть checkbox */
#menu-toggle {
  display: none;
}

/* Иконка бургер-меню */
.burger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

.burger span {
  display: inline-block;
  transition: opacity 0.3s ease;
}

/* Изначально скрыт крестик */
.burger .close {
  display: none;
}

/* Когда меню активно — показать крестик, скрыть бургер */
#menu-toggle:checked + .burger .open {
  display: none;
}

#menu-toggle:checked + .burger .close {
  display: inline-block;
}

/* Чтобы бургер и крестик не смещали элементы */
.burger {
  position: relative;
  z-index: 20; /* выше меню */
}

/* Адаптация */
@media (max-width: 768px) {
	.logo {
  font-size: 25px;
}
	
  .burger {
    display: block;
  }

   .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background-color: #011024;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    display: none;
    z-index: 10;
    transition: all 0.3s ease-in-out;
  }
	
	.nav-links li a {
	font-size: 15px;
}

  #menu-toggle:checked + .burger + .nav-links {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .logo {
    font-size: 25px;
    flex-shrink: 0;
  }

  .burger {
    display: block;
  }

  .nav-links {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  background-color: #011024;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  padding-top: 100px; /* расстояние от верха */
  display: none;
  z-index: 10;
  transition: all 0.3s ease-in-out;
}


  .nav-links li a {
    font-size: 15px;
  }

  #menu-toggle:checked + .burger + .nav-links {
    display: flex;
  }
}