body {
    background-color: rgb(212, 212, 212);
    font-family: 'Poppins', sans-serif;
    margin: 0;
}


h2,h3,h4 {
    color: #000000;
}

* {
    box-sizing: border-box; /* Zásadní pro správné počítání šířky */
}

.sekce {
    background-color: rgb(212, 212, 212); /* Světle šedá */
    padding: 60px 0;          /* Odsazení celého šedého pruhu nahoře a dole */
    width: 100%;   
    color: #000000;       /* Zajistí, že šedá barva jde od kraje ke kraji */
}


.hlavicka {
   position: relative;
   height: 600px;
   width: 100%;
   background: black;
   overflow: hidden;
   color: white;
}

/* Nový obal pro obrázky */
.slider-pozadi {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Zůstane vzadu za textem */
}

/* Styl pro každý jednotlivý obrázek */
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0; /* Ve výchozím stavu jsou obrázky neviditelné */
    transition: opacity 1s ease-in-out; /* Hladké prolínání po dobu 1 sekundy */
}

/* Třída, která obrázek zviditelní */
.slide.aktivni {
    opacity: 1;
}
/* Tmavá poloprůhledná vrstva přes obrázky */
.hlavicka::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* 0.5 znamená 50% průhlednost. Můžete snížit na 0.4 nebo zvýšit na 0.7 */
    z-index: 1; /* Fólie je nad obrázky */
}


.hlavicka-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-left: 25px;
    flex-direction: column;
    color:#ffffff; /* Na ztmaveném pozadí je bílá nejčitelnější */
    padding-top: 120px;
    z-index: 2;
}

.hlavicka h1 {
    font-size: 45px;
    margin: 0;   
}

.hlavicka p {
    font-size: 35px;
    margin: 0;
}

.btn {
    display: inline-block;
    background: green;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
    margin-top: 10px;
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 10px;
    padding-top: 10px;
    font-size: 25px;
}

.btn:hover {
    transform: translateY(-1px);
    background: rgb(2, 155, 2);
}

/* --- OPRAVENÝ PROSTŘEDNÍ TEXT --- */
.prostredniText {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 35px;
    gap: 15px;
    margin: 0 auto;          /* Vycentruje blok */
    max-width: 1300px;       /* Sjednotí šířku */
    text-align: center;
}

.prostredniText h2 {
    font-size: 45px;
    margin: 0;
}

.prostredniText p {
    font-size: 35px;
    margin: 0;
    text-align: center;
    line-height: 1.3;        /* Lepší čitelnost textu */
}

.prostredniText2 {
    font-size: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 5px;
    padding-top: 15px;
    margin: 0 auto;          /* Vycentruje blok */
    max-width: 1300px;       /* Sjednotí šířku */
    text-align: center;      
}


.benefity {
    display: flex;
    align-items: flex-start;
    justify-content: center; /* Změněno na center, aby to bylo uprostřed */
    flex-direction: row;
    gap: 60px;               /* Zvětšená mezera, aby byly hezky roztažené */
    max-width: 1300px;       /* Sjednoceno s ostatními */
    margin: 0 auto;          /* Zaručí středové zarovnání */
    padding: 40px 20px;
    width: 100%;             /* Místo 90% dáme 100%, max-width se postará o zbytek */
}

.benefity-polozka {
    flex: 1;
    text-align: center;
}

.benefity-polozka h3 {
    font-size: 25px;
    margin-bottom: 15px;     /* Větší odstup nadpisu od textu */
    text-align: center;
}

.benefity-polozka p {
    margin: 0;
    font-size: 20px;         /* Zmenšeno z obřích 25px na elegantnějších 20px */
    text-align: center;
    line-height: 1.6;        /* Text hezky dýchá */
    color: #333333;          /* Jemnější barva pro odstavce */
}

/* --- ZBYTEK VAŠEHO KÓDU --- */
.sluzby {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1300px;
    margin: 50px auto;
    padding: 0 20px;
}

.sluzby-okno {
    flex: 1;
    background: rgb(255, 255, 255);
    border: 1px solid;
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    transition: transform 0.3s;
}

.sluzby-okno:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.sluzby-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 5px;
}

.sluzby-seznam {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.sluzby-seznam1 {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    text-align: left;
}

.sluzby-seznam, .sluzby-seznam1 li {
    margin-bottom: 10px;
    margin-left: 20px;
    position: relative;
}

.sluzby-tlacitko {
    display: block;
    width: fit-content;
    margin-right: auto;
    margin-left: 0;
    padding: 12px 25px;
    background-color:rgb(14, 120, 14);
    color: rgb(255, 255, 255);
    text-decoration: none;
    border: none;
    font-weight: bold;
    border-radius: 8px;
}

.sluzby-tlacitko2 {
    display: block;
    width: fit-content;
    margin-right: auto;
    margin-left: 0;
    padding: 12px 25px;
    background-color:hsla(28, 92%, 47%, 1);
    color: rgb(255, 255, 255);
    text-decoration: none;
    border: none;
    font-weight: bold;
    border-radius: 8px;
}

.sluzby-tlacitko3 {
    display: block;
    width: fit-content;
    margin-right: auto;
    margin-left: 0;
    padding: 12px 25px;
    background-color:rgb(14, 0, 167);
    color: rgb(255, 255, 255);
    text-decoration: none;
    border: none;
    font-weight: bold;
    border-radius: 8px;
}

.sluzby-tlacitko:hover,
.sluzby-tlacitko3:hover,
.sluzby-tlacitko2:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.process-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1300px; 
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.process-step {
  flex: 1; 
  text-align: center;
  position: relative;
  padding: 0 10px;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 25px; 
  left: 50%;
  width: 100%;
  height: 3px;
  background-color: #003366; 
  z-index: -1; 
}

.process-step:last-child::after {
  display: none;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: #003366; 
  color: white;
  border-radius: 50%; 
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  margin: 0 auto 15px auto; 
  box-shadow: 0 0 0 5px #003366; 
}

.step-title {
  font-size: 25px;
  margin: 0 0 10px 0;
  color: #090909;
}

.step-text {
  font-size: 20px;
  color: #0f0f0f;
  line-height: 1.5;
  margin: 0;
}

.references-section {
  max-width: 1550px;
  margin: 0 auto;
  padding: 10px 20px;
  padding-bottom: 40px;
  border: 2px solid black;
  border-radius: 12px;
  background-color:#ebdede;
}

.references-title {
  text-align: left;
  font-size: 28px;
  color: #000000;
  margin-bottom: 15px;
  border-left: 5px solid #000000; 
  padding-left: 15px;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 25px; 
}

.reference-item {
  position: relative; 
  overflow: hidden; 
  border-radius: 8px; 
  background-color: #ebdede;
  aspect-ratio: 4 / 3; 
}

.reference-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  transition: transform 0.4s ease;
  display: block;
}

.tepelnecerpadlo-karta {
    display: flex;             
    flex-direction: row;       
    background: rgb(255, 255, 255);
    border: 1px solid #000000;
    border-radius: 10px;
    overflow: hidden;         
    max-width: 1300px;       
    margin: 50px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tepelnecerpadlo-karta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.karta-img {
    width: 40%;               
    object-fit: cover;        
}


.karta-obsah {
    flex: 1;                  
    padding: 30px 40px;       
    display: flex;
    flex-direction: column;
    justify-content: center;  
}

.btn2 {
    display: inline-block;
    background: #00917e 0%;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
    margin-top: 10px;
    margin-left: 200px;
    margin-right: 200px;
    padding-left: 75px;
    padding-right: 25px;
    padding-bottom: 10px;
    padding-top: 10px;
    font-size: 25px;
}

.btn12 {
    display: inline-block;
    background: #da0707 0%;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
    margin-top: 10px;
    margin-left: 200px;
    margin-right: 200px;
    padding-left: 75px;
    padding-right: 25px;
    padding-bottom: 10px;
    padding-top: 10px;
    font-size: 25px;
}

.btn13 {
    display: inline-block;
    background: #da0707 0%;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
    margin-top: 10px;
    margin-left: 200px;
    margin-right: 200px;
    padding-left: 75px;
    padding-right: 65px;
    padding-bottom: 10px;
    padding-top: 10px;
    font-size: 25px;
    white-space: nowrap;
}

.btn11 {
    display: inline-block;
    background: #00917e 0%;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
    margin-top: 10px;
    margin-left: 200px;
    margin-right: 200px;
    padding-left: 70px;
    padding-right: 25px;
    padding-bottom: 10px;
    padding-top: 10px;
    font-size: 25px;
}
.btn8 {
    display: inline-block;
    background: #a50034;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
    margin-top: 10px;
    margin-left: 200px;
    margin-right: 200px;
    padding-left: 105px;
    padding-right: 25px;
    padding-bottom: 10px;
    padding-top: 10px;
    font-size: 25px;
}
.btn9 {
    display: inline-block;
    background: #a50034;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
    margin-top: 10px;
    margin-left: 200px;
    margin-right: 200px;
    padding-left: 70px;
    padding-right: 25px;
    padding-bottom: 10px;
    padding-top: 10px;
    font-size: 25px;
}
.btn9:hover,
.bnt8:hover{
     transform: translateY(-1px);
    background: #a50034;
}

.btn3:hover,
.btn2:hover {
    transform: translateY(-1px);
    background: #00917e 0%;
}

.bnt7:hover,
.btn6:hover,
.btn4:hover {
    transform: translateY(-1px);
    background:hsla(28, 92%, 47%, 1);
}

.btn5:hover {
    transform: translateY(-1px);
    background: rgb(14, 0, 167);
}
.btn3 {
    display: inline-block;
    background: green;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
    font-size: 25px;
    padding-left: 80px;
}

.btn4 {
    display: inline-block;
    background:hsla(28, 92%, 47%, 1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
    padding-left: 80px;
    font-size: 25px;
}
.btn10 {
    display: inline-block;
    background:#00917e 0%;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
    margin-left: 10px;
    margin-right: 10px;
    padding-left: 70px;
    font-size: 25px;
}

.btn7 {
    display: inline-block;
    background:hsla(28, 92%, 47%, 1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
    padding-left: 120px;
    font-size: 25px;
}
.btn6 {
    display: inline-block;
    background:hsla(28, 92%, 47%, 1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
    margin-top: 10px;
    margin-left: 200px;
    margin-right: 200px;
    padding-left: 75px;
    padding-right: 25px;
    padding-bottom: 10px;
    padding-top: 10px;
    font-size: 25px;
}

.btn5 {
    display: inline-block;
    background:rgb(14, 0, 167);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
    margin-top: 10px;
    margin-left: 200px;
    margin-right: 200px;
    padding-left: 75px;
    padding-right: 25px;
    padding-bottom: 10px;
    padding-top: 10px;
    font-size: 25px;
}



.kotle-obal {
    display: flex;
    gap: 40px;                 
    max-width: 1300px;         
    margin: 50px auto;         
    padding: 0 20px;           
}
.kotle-obal1 {
    display: flex;
    gap: 40px;                 
    max-width: 800px;         
    margin: 50px auto;         
    padding: 0 20px;           
}

.kotle-obal2 {
    display: flex;
    gap: 40px;                 
    max-width: 1700px;         
    margin: 50px auto;         
    padding: 0 20px;           
}

.kotle-karta {
    flex: 1;                   
    display: flex;             
    flex-direction: row;       
    background: rgb(255, 255, 255);
    border: 1px solid #000000;
    border-radius: 10px;
    overflow: hidden;         
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 380px;
}

.kotle-karta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.kotle-img {
    width: 35%; 
    object-fit: cover; 
    object-position: center; 
}
.kotle-img1 {
    width: 35%; 
    object-fit: contain; 
    object-position: center; 
}
.kotle-img2 {
    width: 55%; 
    object-fit:contain; 
    object-position: center; 
}

.kotle-img3 {
    width: 25%; 
    object-fit:contain; 
    object-position: center; 
}
.kotle-obsah {
    flex: 1;                  
    padding: 30px 40px;       
    display: flex;
    flex-direction: column;
    justify-content: center;  
}

.hlavni-paticka {
    background-color: #c3b9b9; 
    color: rgb(0, 0, 0);              
    padding-top: 60px;
    font-size: 20px;           
    font-family: 'Poppins', sans-serif;
}

.paticka-kontejner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* DŮLEŽITÉ: Zarovná všechny sloupce úhledně k hornímu okraji */
    flex-wrap: wrap;
    max-width: 1300px;         
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.paticka-sloupec {
    flex: 1;
    min-width: 250px;
}

/* NOVÉ: Úprava pro logo ve sloupci */
.paticka-sloupec img {
    max-width: 60%; /* Zabrání obrázku, aby přetekl sloupec */
    height: auto;
    display: block;
    /* Pokud je logo příliš velké, můžete mu omezit maximální šířku, např. max-width: 200px; */
    border-radius: 8px; /* Volitelné: přidá hezké zaoblené rohy, pokud obrázek není průhledný */
    margin-top: 10px; /* Srovná logo vizuálně s texty pod nadpisy <h4> */
}

.paticka-sloupec h4 {
    color: rgb(0, 0, 0);
    font-size: 25px;           
    margin-bottom: 20px;
    position: relative;
    margin-top: 0; /* Pojistka, aby nadpisy neuskakovaly dolů */
}

.paticka-sloupec h4::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #000000; 
    margin-top: 10px;
}

.paticka-sloupec p {
    margin: 10px 0;
    line-height: 1.5;
}

.paticka-sloupec a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    transition: color 0.3s ease;
}

.paticka-sloupec a:hover {
    color: #000000; /* Jemné zesvětlení při najetí myší */
}
         
.paticka-spodek {
    background-color: #484848; 
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 15px;
    color: #ffffff;
}

.logo-obal {
    display: flex;
    justify-content: center; 
    align-items: center;     
    gap: 40px;               
    width: 100%;  
    margin: 10px 10px;           
    padding: 10px 10px;      
}

.logo-img {
    max-width: 45%;          
    height: auto;            
    object-fit: contain;     
}

.formular-obal {
    max-width: 600px;
    margin: 50px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); 
}

.formular-obal h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    color: #090909;
    font-size: 35px; 
}

.form-skupina {
    margin-bottom: 20px;
}

.form-skupina label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.kontaktni-formular input,
.kontaktni-formular textarea {
    width: 100%;                  
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;           
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;    
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.kontaktni-formular input:focus,
.kontaktni-formular textarea:focus {
    outline: none;
    border-color: #16610c;        
    background-color: #ffffff;
}

.btn-odeslat {
    display: block;
    width: 100%;                  
    background: #16610c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    margin-top: 10px;
}

.btn-odeslat:hover {
    transform: translateY(-2px);
    background: rgb(2, 155, 2);   
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* =========================================
   KOMPLETNÍ RESPONZIVITA (Tablety a Mobily)
   ========================================= */

/* --- TABLETY A MENŠÍ NOTEBOOKY (do 1024px) --- */
@media (max-width: 1024px) {
    /* Reference - ze 4 sloupců na 2 */
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Kotle a tepelná čerpadla - přeskládání pod sebe */
    .tepelnecerpadlo-karta, 
    .kotle-karta {
        flex-direction: column;
    }

    /* === OPRAVA OBRÁZKŮ PRO TABLETY I MOBILY === */
    .karta-img, 
    .kotle-img, 
    .kotle-img1, 
    .kotle-img2, 
    .kotle-img3 {
        width: 100%;
        height: auto; /* Obrázek si sám přirozeně spočítá výšku podle šířky mobilu */
        max-height: 400px; /* Zabrání tomu, aby byl na tabletu zbytečně obří */
        object-fit: cover; /* Perfektně vyplní šířku karty bez bílých pruhů */
        object-position: center;
        padding: 0; /* Zrušeno odsazení - obrázek sedne přesně k okrajům karty */
        border-bottom: 1px solid #eeeeee; /* Volitelná jemná linka oddělující fotku od textu */
    }

    .sluzby-img {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: cover; 
        padding: 0;
    }

    /* Zabrání tomu, aby byly 3 sloupce na tabletu moc úzké - zalomí je po dvou */
    .benefity,
    .sluzby {
        flex-wrap: wrap;
    }
    
    .benefity-polozka,
    .sluzby-okno {
        flex: 1 1 calc(50% - 40px); /* Budou po dvou na řádku */
        min-width: 300px;
    }

    /* Reset extrémních okrajů u tlačítek na tabletu */
    .btn2, .btn11, .btn8, .btn9, .btn6, .btn5, .btn10 {
        margin-left: 0;
        margin-right: 0;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
}

/* --- MOBILNÍ TELEFONY (do 768px) --- */
@media (max-width: 768px) {
    /* Úprava hlavičky (zmenšení fontů a mezer) */
    .hlavicka {
        height: auto;
        min-height: 400px;
    }
    
    .hlavicka-text {
        padding-top: 80px;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
        align-items: center; 
    }

    .hlavicka h1 { font-size: 32px; }
    .hlavicka p { font-size: 22px; }
    
    .prostredniText h2, 
    .prostredniText2 { font-size: 28px; }
    .prostredniText p { font-size: 20px; }

    /* Sloupce (Benefity, Služby) úplně pod sebe (1 sloupec) */
    .benefity, 
    .sluzby, 
    .kotle-obal, 
    .kotle-obal1, 
    .kotle-obal2 {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }

    .benefity-polozka,
    .sluzby-okno {
        flex: 1 1 100%;
        min-width: 100%;
    }

    /* Procesy - skrytí spojovacích čar a seřazení pod sebe */
    .process-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .process-step::after {
        display: none; /* Skryje horizontální čáry na mobilu */
    }

    /* Reference - z 2 sloupců na 1 */
    .references-grid {
        grid-template-columns: 1fr;
    }

    /* Sjednocení VŠECH zbylých tlačítek pro mobil */
    .btn, .btn3, .btn4, .btn7, .btn13, .btn12,
    .sluzby-tlacitko, .sluzby-tlacitko2, .sluzby-tlacitko3 {
        padding-left: 20px;
        padding-right: 20px;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        display: block;
    }

    /* Úprava odsazení a zarovnání uvnitř karet na mobilu */
    .karta-obsah, 
    .kotle-obsah {
        padding: 20px 15px;
        text-align: center;
    }

    /* Patička na střed */
    .paticka-kontejner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .paticka-sloupec h4::after {
        margin: 10px auto; 
    }
    
    .paticka-sloupec img {
        margin: 0 auto 15px auto; 
    }
    
    /* Zmenšení formuláře na šířku displeje */
    .formular-obal {
        padding: 20px;
        margin: 30px 15px;
    }
}