 body {
      margin: 0;
      font-family: Arial, sans-serif;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      overflow-x: hidden;

    }

    header {
      background: linear-gradient(to top, #004080, #cce0ff);
      color: white;
      text-align: center;
      padding: 30px 20px 10px;
    }

    header img {
      border-radius: 0;
      max-width: 100%;
      height: auto;
    }

    nav {
      margin-top: 10px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }

    nav a {
      color: white;
      text-decoration: none;
      font-weight: bold;
      padding: 8px 12px;
      border-radius: 5px;
      transition: background-color 0.3s ease;
    }

    nav a:hover,
    .program-link:hover {
      background-color: #0059b3;
    }

    .program-link {
      color: white;
      text-decoration: none;
      font-weight: bold;
      padding: 8px 12px;
      border-radius: 5px;
      transition: background-color 0.3s ease;
    }

    .title {
      font-size: 36px;
      margin-top: 0;
    }

    main {
      display: flex;
      flex-wrap: wrap;
      flex: 1;
      padding: 20px;
      gap: 20px;
    }

    .sidebar {
  flex: 1 1 117px;
  background-color: #80aaff;
  padding: 20px;
  border-radius: 5px;
  max-width: 100%;
}

    

    .sidebar h3 {
      margin-top: 0;
      color: #003366;
    }

    .content {
      flex: 2 1 300px;
      text-align: left;
      padding: 10px;
      max-width: 100%;
    }

    footer {
      background: linear-gradient(to top, #00264d, #336699);
      color: white;
      padding: 20px;
      text-align: center;
      width: 100%;
      margin-top: auto;
      position: relative;
    }

    footer nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin-bottom: 10px;
    }

    footer nav a {
      color: white;
      text-decoration: none;
      font-weight: bold;
      padding: 8px 12px;
      border-radius: 5px;
      transition: background-color 0.3s ease;
    }

    footer nav a:hover {
      background-color: #0059b3;
    }

    .footer-left {
      font-size: 14px;
      margin-top: 10px;
    }

    @media (max-width: 768px) {
      main {
        flex-direction: column;
        padding: 10px;
      }

      .sidebar,
      .content {
        width: 100%;
        max-width: 100%;
      }

      nav {
        flex-direction: column;
        align-items: center;
      }

      .title {
        font-size: 28px;
      }
    }

    @media (max-width: 480px) {
      nav a {
        font-size: 14px;
        padding: 6px 10px;
      }

      header {
        padding: 20px 10px 5px;
      }

      .title {
        font-size: 24px;
      }
    }

    #gol {
      display: inline;
    }
    .sidebar-links a {
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  color: #007bff;;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.sidebar-links a:hover {
            color: #0056b3; /* Цвет при наведении (для эффекта) */
        }

.fixed-link {
    position: fixed;
    bottom: 0;
    left: 5.6%;
    transform: translateX(-50%);
}
 .link {
            display: inline-block; 
            margin-right: 20px; 
            margin-bottom: 10px; 
            text-decoration: none; 
            color: #007bff; 
            font-weight: bold; 
        }

        .link:hover {
            color: #0056b3; 
        }
        nav{
          font-size: 18px;
        }
        img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
