body {
    background-color: white;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

h1 { font-size: 48px; }
h2 { font-size: 28px; padding-left: 15%; padding-top: 2%; }
p { font-size: 18px; }

.hlavicka {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 15%;
    gap: 10%;
    box-sizing: border-box;
}

#obrazek {
    width: 50vh;
    height: 50vh;
    flex-shrink: 0;
    background: url(prvniobrazek.png);
    background-size: cover;
}

#logo {
    width: 35vh;
    height: 35vh;
    flex-shrink: 0;
    background-color: blue;
    background-image: url(Logo_1.png);
    background-size: cover;
    border-radius: 55%;
}


/* Reference*/
.reference{
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 80%;
    margin: 0 15%;
 
}
/* ----------- Boxy služby / ceník ----------- */
.sluzby, .cenik {
    display: flex;
    flex-wrap: wrap;             /* zalamování na menších obrazovkách */
    justify-content: space-between;
    align-items: stretch;        /* stejné výšky boxů */
    width: 80%;
    margin: 0 auto;
    gap: 20px;
}

.sluzby > div, .cenik > div,
.navrhWebu, .opravaWebu, .spravaWebu,
.navrhWebuCenik, .opravaWebuCenik, .spravaWebuCenik {
    flex: 1 1 calc(25% - 20px);  /* 4 boxy vedle sebe */
    min-height: 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid gray;      /* jemná čára kolem boxů */
    border-radius: 2%;
    padding: 10px;
    box-sizing: border-box;
    background-color: #fff;
    background-color: #afdfee;
}

/* Nadpisy uvnitř boxů */
.sluzby h3, .cenik h3 {
    font-family: 'Poppins';
    font-size: 23px;
    text-align: center;
}

.cenik h4{
    font-family: 'Poppins';
    font-size: 28px;
    text-align: center;
}

#ikona, #ikona2 {
    flex-shrink: 0;
    width: 5vh;
    height: 5vh;
    border-radius: 120%;
    background-size: contain;
}
#ikona { background-image: url(Ikonka.png); }
#ikona2 { background-image: url(Ikonka2.png); }

/* ----------- UL sekce ----------- */
.ulSekce {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    width: 80%;
    margin-left: 15%;
    gap: 20px;
}

.ulSekce li {
    flex: 1 1 calc(25% - 20px);
    display: flex;
    padding-left: 15%;
    

    box-sizing: border-box;
}

/* ----------- Tlačítka ----------- */
.tlacitko1 {
    background-color: blue;
    color: white;
    font-size: 16px;
    padding: 12px 125px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin-left: 15%;
    text-decoration: none;
}

.tlacitko {
    background-color: blue;
    color: white;
    font-size: 16px;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin-left: 17%;
    margin-bottom: 10%;
    margin-right: 15%;
    text-decoration: none;
}

/* ----------- Footer ----------- */
footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
    border-top: 1px solid #ccc;
}



.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 5%;
}

.contact-form input,
.contact-form textarea {
  width: 94%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0077ff;
  box-shadow: 0 0 5px rgba(0, 119, 255, 0.3);
}

.contact-form button {
  padding: 18px 35px;
  background: #0077ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.contact-form button:hover {
  background: #005fcc;
}

/* ----------- Responzivní styly ----------- */
@media screen and (max-width: 1024px) {
    .container, .sluzby, .cenik, .ulSekce, .reference, .contact-form {
        flex-direction: column;
        width: 90%;
        margin: 0 auto;
        gap: 15px;
    }

    .sluzby > div, .cenik > div,
    .navrhWebu, .opravaWebu, .spravaWebu,
    .navrhWebuCenik, .opravaWebuCenik, .spravaWebuCenik, .reference, .contact-form {
        flex: 1 1 100%;
        min-height: 250px;
    }
}

@media screen and (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 24px; padding-left: 5%; }
    p { font-size: 16px; }

    .hlavicka, .reference, .contact-form {
        flex-direction: column;
        align-items: center;
        padding: 10px 5%;
    }

    .sluzby, .cenik, .ulSekce {
        flex-direction: column;
        width: 100%;
        margin: 0 auto;
        gap: 15px;
    }

    .sluzby > div, .cenik > div,
    .navrhWebu, .opravaWebu, .spravaWebu,
    .navrhWebuCenik, .opravaWebuCenik, .spravaWebuCenik, .reference, .contact-form {
        flex: 1 1 100%;
        min-height: 250px;
    }

    .tlacitko1 {
        width: 100vw;
        max-width: 100vw;
        margin-left: 23%;
        padding: 12px 50px;
        box-sizing: border-box;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
