body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f7fbff;
  color: #333;
}

/* Верхняя шапка */
.top-header {
  background: linear-gradient(90deg, #00c853, #0091ea);
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Главное меню */
.main-header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav {
  display: flex;
  gap: 30px;
  padding: 15px;
}

.nav a {
  text-decoration: none;
  font-weight: bold;
  color: #0091ea;
}

/* Бургер справа */
.burger {
  display: none;
  position: absolute;
  right: 20px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #0091ea;
  transition: 0.4s;
  border-radius: 2px;
}

/* Анимация в крестик */
.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Контейнер */
.container {
  display: flex;
  padding: 20px;
  gap: 20px;
}

main {
  flex: 3;
}

.sidebar {
  flex: 1;
  background: #e3f2fd;
  padding: 15px;
}

/* Заголовки */
h1, h2, h3 {
  color: #00c853;
}

/* Галерея */
.gallery img {
  width: 120px;
  margin: 10px;
  transition: 0.3s;
  cursor: pointer;
}
.gallery img:hover {
  transform: scale(1.2);
}

/* Подвал */
footer {
  background: #0091ea;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 30px 10px;
}

.footer-col {
  width: 40%;
}

.copyright {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* Нижнее меню */
.bottom-menu {
  background: #00c853;
  text-align: center;
  padding: 10px;
}

.bottom-menu a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
}

/* Кнопка вверх */
#toTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 15px;
  border: none;
  background: #0091ea;
  color: white;
  cursor: pointer;
  display: none;
  border-radius: 5px;
}

/* Адаптив */
@media (max-width: 768px) {

  .nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .nav.active {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .container {
    flex-direction: column;
  }

  .sidebar {
    order: 2;
  }

  .footer-col {
    width: 100%;
    margin-bottom: 20px;
  }
}