@media screen and (max-width: 1024px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 30px 30px;
      }
      
      .logo {
        flex: 1;
      }

      
      
      nav {
        flex: 2;
        display: flex;
        justify-content: center;
      }
      
      nav ul {
        display: flex;
        justify-content: center;
        gap: 20px; /* Zmenšenie medzier */
        list-style: none;
        margin: 0;
        padding: 0;
      }
      
      nav ul li a {
        font-size: 15px;
        padding: 8px 10px;
      }
      
      
  }

@media screen and (max-width: 768px) {

    header {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 10px;
        display: flex;
      }
    
      .logo {
        justify-content: center;
        width: 100%;
        margin-bottom: 10px;
      }
    
      .logo img {
        margin: 0 auto;
      }
      
    
      nav ul {
        flex-direction: column;
        background: white;
        width: 100%;
        align-items: center;
      }
    
      nav ul li {
        margin: 5px 0;
      }
    
      nav ul li a {
        font-size: 16px;
        padding: 10px;
        text-align: center;
      }

    /* Navigácia */
    nav ul {
      flex-direction: column;
      align-items: center;
      background: white;
    }
  
    nav ul li {
      margin: 10px 0;
    }
  
    .dropdown-menu {
      position: static;
      width: 100%;
      border-radius: 0;
    }
  
    
    
    .mobile-break {
        display: inline;
      }
    

    .page-hero h1 {
        text-align: center;
        font-size: 24px;
        line-height: 1.3; /* voliteľne pre krajší riadok */
    }
  
    .service-item {
      font-size: 16px;
      padding: 15px;
    }
  
    .btn {
      padding: 12px 18px;
      font-size: 16px;
    }
  
    .grid {
      grid-template-columns: 1fr; /* jeden stĺpec */
      display: flex;
      flex-direction: column;
      gap: 20px; /* medzera medzi položkami */
      align-items: center; /* zarovnanie na stred */
    }

    .grid-item {
        width: 90%; /* šírka každého boxu na mobiloch */
        text-align: center;
      }
    
  
    .logo {
      width: 200px;
      height: 60px;
      background-size: contain;
    }
  
    /* Footer */
    .footer-container {
      flex-direction: column;
      align-items: center;
      gap: 30px;
    }
  
    .footer-section {
      text-align: center;
      align-items: center;
    }
  
    .kontakt-social-icons {
      align-items: center;
    }

    .page-hero h1 {
        font-size: 28px;
        padding: 20px 0;
      }
    
      .container {
        width: 90%;
        margin: 0 auto;
        padding: 20px;
      }
    
      .service-item {
        font-size: 16px;
        padding: 20px;
      }
    
      .content p,
      .content h2,
      .content h3 {
        font-size: 16px;
        text-align: center;
      }
    
      .btn {
        font-size: 16px;
        padding: 10px 15px;
        width: 100%;
        display: block;
        margin: 0 auto;
      }
    
      .services-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
      }

      body {
        font-size: 16px;
        line-height: 1.6;
        padding: 0 10px; /* okraje pre mobil */
      }
    
      h1, h2 {
        font-size: 22px;
      }
    
      .btn, .btn-submit {
        font-size: 16px;
        padding: 10px 15px;
      }
      .services-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
      }
    
      .service-item {
        width: 100%;
        padding: 20px;
        font-size: 16px;
      }
      h3 {
        font-size: 20px;
        margin-bottom: 10px;
      }
  
      p {
        font-size: 16px;
        text-align: center;
        margin: 10px auto;
        max-width: 90%;
      }

      .btn, .btn-submit {
        font-size: 16px;
        padding: 12px 16px;
        width: 90%;
        margin: 10px auto;
        display: block;
      }
    
      .services-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
      }
    
      .service-item {
        width: 90%;
        font-size: 16px;
        padding: 20px;
        text-align: center;
      }
    
      .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
    
      .footer-section {
        width: 100%;
        margin-bottom: 20px;
      }
      .content, .container, section {
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        box-sizing: border-box;
        background-color: white;
    }
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
        align-items: center;
    }
      
      .service-item {
        width: 90% !important;
        max-width: 400px;
        padding: 20px;
        text-align: center;
        box-sizing: border-box;
      }
      .gallery {
        display: flex;
        flex-direction: column;
        align-items: center; /* horizontálne vycentrovanie */
        gap: 15px; /* medzery medzi obrázkami */
        padding: 10px;
      }
      
      .gallery img {
        max-width: 100%; /* obrázky sa nezväčšia nad šírku kontajnera */
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
      }

}

