* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
  }
  
  header {
    background: #0275d8;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  nav {
    display: flex;
    align-items: center;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
  }
  
  .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  .burger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    margin-left: 1rem;
  }
  
  main {
    padding: 2rem;
  }
  
  section {
    margin-bottom: 3rem;
  }
  

  .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .card {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1 1 250px;
    max-width: 300px;
  }
  
  .card i {
    font-size: 2rem;
    color: #0275d8;
    margin-bottom: 0.5rem;
  }
  
  .map-container {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
  }
  
  /* ГАЛЕРИЯ (с Flexbox) */
  #gallery {
    margin-top: 3rem;
  }
  
  .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .gallery-grid img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
  }
  .button {
    background-color: #0275d8;
    color: #fff;
    border: #fff solid 1px;
    border-radius: 10px;
    padding: 10px;
    margin-top:15px;
    text-decoration: none;
    display: block;
  }
  .second{
    width: 800px;
    height: auto;
    text-align: center;
    border: #0275d8 5px solid;
    border-radius: 30px;
    padding: 20px;

  }
  .second img{
    width: 300px;
    height: auto;
    border-radius: 15px;
  }
  .vtori{
      width: 800px;
      height: 450px;
      text-align: center;
      border: #0275d8 5px solid;
      border-radius: 30px;
      padding: 20px;
      display: list-item;
  
    }
  .vtori img{
      width: 300px;
      height: auto;
      border-radius: 15px;
    }
  .dve{
    width: 800px;
    height: auto;
    text-align: center;
    border: #0275d8 5px solid;
    border-radius: 30px;
    padding: 20px;
  }
  .dve img{
    width: 700px;
    height: auto;
    border-radius: 30px;
  }
  .info{
    margin-left: 140px;
    display: flex;
    gap: 100px;
  }
  .first{
    width: 300px;
    height: auto;
    text-align: center;
    border: #0275d8 5px solid;
    border-radius: 30px;
    padding: 10px;
  }
  .first img{
    width: 270px;
    height: auto;
    border-radius: 15px;
  }
  .third{
    width: 300px;
    height: auto;
    text-align: center;
    border: #0275d8 5px solid;
    border-radius: 30px;
    padding: 10px;
  }
  .third img{
    width: 270px;
    height: auto;
    border-radius: 15px;
  }
  /* Малки телефони */
  @media (max-width: 480px) {
    .logo {
      font-size: 1.2rem;
    }
  .third, .second, .first {
    width: 100%;

  }
    .card h3 {
      font-size: 1.1rem;
    }
  
    section {
      padding: 1rem 0.5rem;
    }
  
    .gallery-grid {
      flex-direction: column;
      align-items: center;
    }
  
    .nav-links {
      top: 50px;
    }
  }
  
  /* Таблети */
  @media (max-width: 768px) {
    .cards {
      justify-content: center;
    }
    .third, .second, .first {
        width: 100%;
        
      }
  
    .gallery-grid {
      justify-content: center;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      background: #0275d8;
      width: 100%;
      position: absolute;
      top: 60px;
      left: 0;
    }
  
    .nav-links.nav-active {
      display: flex;
    }
  
    .burger {
      display: block;
    }
  }
  
  /* Лаптопи */
  @media (max-width: 1024px) {
    .cards {
      justify-content: center;
    }
  
    .gallery-grid {
      justify-content: space-around;
    }
  }
  