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

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

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0b388d;
    opacity: 0.9;
    color: #fff;
    padding: 40px 20px;
}

.Logo img {
    width: 220px;
    height: auto;
    margin-right: 20px;
}

.header_text {
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid #fdfdfd;
    padding: 10px 20px;
}

.header_text:hover {
    background-color: #26b4b9;
    color: #0b388d;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    background: #18aec9;
    padding: 10px 0;
}

nav a {
    color: #fffefe;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
    font-family: Avant Garde,Avantgarde,Century Gothic,CenturyGothic,AppleGothic,sans-serif;

}

nav a:hover {
    text-decoration: underline;
}

.background {
    filter: brightness(95%);
}

.content{
    color: #221a1a;
    text-align: center;
    margin-bottom:350px ;
    font-size: 1rem;

}

.opisanie{
    font-size:20px ;
    margin-top: 50px;
}

.container {
    display: flex;
    margin-top: 0;
}

.sidebar {
    width: 300px;
    background-color: #f9f9f9;
    padding: 25px;
    border-right: 1px solid #ccc;
    font-size: 1.1rem;
}



.main-content {
    flex-grow: 1;
    padding: 20px;
}


.article-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}


.article-box {
    width: 200px;
    height: 250px;
    background-color: #e8f3f4;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.article-box img {
    max-width: 100%;
    max-height: 140px;
    margin-bottom: 10px;
    object-fit: contain;
}


.sidebar label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.sidebar input[type="checkbox"] {
    transform: scale(1.3); /* Bigger checkbox */
}


.article-box {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    position: absolute; 
}

.article-box.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.team-section {
    padding: 50px 20px;
    background-color: #f0f0f0;
    text-align: center;
     border: 2px solid #2b2a2a;
}

.team-section h2 {
    font-size: 2.2rem;
    color: #0b388d;
    margin-bottom: 40px;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.team-member {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.team-member h3 {
    margin: 10px 0 5px;
    color: #18aec9;
}

.team-member p {
    color: #333;
    font-size: 0.95rem;
}


@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .Logo img {
    width: 180px;
    margin: 0 auto 10px;
  }

  .header_text {
    font-size: 1.8em;
    padding: 8px 16px;
  }

  nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 5px;
    z-index: 10;
  position: relative;
  }

  .container {
    flex-direction: column;
    padding: 10px;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ccc;
    padding: 15px;
  }

  .main-content {
    padding: 15px;
  }

  .article-grid {
    justify-content: center;
    gap: 15px;
  }

  .article-box {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .team-container {
    gap: 20px;
  }

  .team-member {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
.header, nav {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
.article-box,
.team-member {
  width: 90%;
  max-width: 320px;
}
.content {
  padding-top: 20px; 
}
.opisanie {
  padding-top: 20px;
}

}