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

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

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

/* Шапка */
.header {
  background: #fff;
  padding: 15px 20px;
  border-bottom: 2px solid #ddd;
  position: relative;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: bold;
}

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

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

.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;
}

/* Меню */
.top-menu {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.top-menu a,
.bottom-menu a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

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

.sidebar {
  width: 250px;
  background: #fff;
  padding: 15px;
}

.content {
  flex: 1;
  background: #fff;
  padding: 20px;
  font-size: 16px;
  line-height: 1.6;
}

/* Меню над подвалом */
.bottom-menu {
  background: #eaeaea;
  padding: 15px;
  text-align: center;
}

/* Подвал */
.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 15px;
}

/* Адаптив + бургер меню */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .top-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
  }

  .top-menu a {
    padding: 12px 20px;
    border-top: 1px solid #ddd;
  }

  .top-menu.active {
    max-height: 300px;
  }

  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }
}