* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
}

header {
  background: #e8f5e9;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo span {
  font-size: 20px;
  font-weight: bold;
  color: green;
}

/* Заголовки */
.title-blue { color: #1e90ff; }
.title-green { color: #2e8b57; }

/* Бургер */
.burger {
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #2e7d32;
  transition: 0.3s;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }

.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Меню */
nav {
  background: #2e7d32;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

nav.active {
  max-height: 300px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

nav li {
  margin: 0 15px;
}

nav a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 12px;
}

/* Контент */
.container {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  gap: 20px;
  padding: 0 15px;
}

.main {
  flex: 3;
  background: #f1f8e9;
  padding: 20px;
}

.sidebar {
  flex: 1;
  background: #c8e6c9;
  padding: 20px;
}

footer {
  background: #2e7d32;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
}

/* 📱 Мобилка */
@media (min-width: 769px) {
  nav {
    max-height: none;
  }

  .burger {
    display: none;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    text-align: center;
  }

  .container {
    flex-direction: column;
  }
}
