<style>
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
    }

    body {
      background: #f4f4f4;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

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

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

    nav {
      display: none;
      flex-direction: column;
      background: #333;
      position: absolute;
      top: 60px;
      right: 0;
      width: 200px;
    }

    nav a {
      color: #fff;
      padding: 12px;
      text-decoration: none;
      border-bottom: 1px solid #444;
    }

    nav a:hover {
      background: #444;
    }

    #menu-toggle {
      display: none;
    }

    .burger {
      font-size: 24px;
      cursor: pointer;
      display: block;
    }

    #menu-toggle:checked + .burger + nav {
      display: flex;
    }

    main {
      flex: 1;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .content, .sidebar {
      background: #fff;
      padding: 20px;
    }

    footer {
      background: #222;
      color: #fff;
      text-align: center;
      padding: 15px;
    }

    /* Tablete и PC */
    @media (min-width: 768px) {
      nav {
        position: static;
        display: flex !important;
        flex-direction: row;
        background: none;
        width: auto;
      }

      nav a {
        border: none;
        margin-left: 15px;
      }

      .burger {
        display: none;
      }

      main {
        flex-direction: row;
        max-width: 1100px;
        margin: 0 auto;
      }

      .content {
        flex: 3;
      }

      .sidebar {
        flex: 1;
      }
    }
  </style>