:root {
    --primary-color: #F7941D; /* Solární žluto-oranžová z loga */
    --dark-bg: #1E1E1E; /* Antracitová / tmavě šedá */
    --light-bg: #F5F5F5;
    --text-color: #333333;
    --white: #FFFFFF;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* Hlavička a Navigace */
header {
    background-color: var(--white);
    padding: 2px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 150px; 
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-bg);
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Sekce - Zobrazení 100% celé fotky (Rámeček) */
.hero {
    /* Hodnoty 0.2 a 0.4 zajistí jen lehké ztmavení, aby vynikla fotka */
    background: linear-gradient(rgba(30, 30, 30, 0.4), rgba(30, 30, 30, 0.6)), url('images/ensolarhome.jpg') center / contain no-repeat !important;
    
    /* Světlejší šedá barva pozadí na bocích (ladí s vaší --light-bg) */
    background-color: #e0e0e0 !important;
    
    width: 100% !important;
    height: 85vh !important; 
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
    box-sizing: border-box;
}

/* Stín pod textem, aby byl dobře čitelný na fotce */
.hero h1, .hero p {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1.0);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 1000px;
}

.btn {
    padding: 15px 30px;
    margin-bottom: 30px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.3rem;
    transition: background 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #ffaa33;
    transform: translateY(-2px);
}

/* Grid produktů */
.products-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--dark-bg);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 20px 20px 10px;
    color: var(--dark-bg);
}

.card p {
    padding: 0 20px 20px;
    font-size: 0.9rem;
}

.card .btn-small {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* --- STYLY PRO PODSTRÁNKY --- */
.page-hero {
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.page-hero p {
    font-size: 1.2rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.info-section {
    padding: 60px 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-list {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.benefits-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.benefits-list li::before {
    content: '✔';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.info-video video {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
}

/* --- ROZŠÍŘENÁ KALKULAČKA --- */
.calculator-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

.calculator-box {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 1100px; 
    width: 95%;
    margin: 0 auto;
}

.calc-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; 
}

.calc-inputs-grid {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    width: 100%;
}

.calc-inputs-grid .input-group {
    flex: 1; 
    min-width: 150px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--dark-bg);
}

.input-group input {
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: var(--primary-color);
}

.results-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    flex-wrap: wrap;
}

.result-box {
    flex: 1;
    min-width: 250px;
    background: var(--dark-bg);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.result-box span {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.result-box strong {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.result-box.diy-box {
    background: var(--primary-color);
    color: #fff;
}

.result-box.diy-box strong {
    color: #fff; 
}

.calc-note {
    margin-top: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    max-width: 700px;
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

/* Patička */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responzivita pro tablety a mobily */
@media (max-width: 768px) {
    header { 
        flex-direction: column !important; 
        gap: 15px !important; 
    }
    
    .hero {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: 10px !important;
        padding: 5vw !important; 
        
        /* I na mobilu zrušen gradient a pozadí je průhledné */
        background: url('images/ensolarhome.jpg') center / contain no-repeat !important;
        background-color: transparent !important;
        
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero h1 { 
        font-size: 4.5vw !important; 
        margin-bottom: 2vw !important;
    }
    
    .hero p {
        font-size: 2.5vw !important;
        margin-bottom: 3vw !important;
        max-width: 95% !important;
    }
    
    .hero .btn {
        padding: 2vw 4vw !important;
        font-size: 3vw !important;
    }
    
    /* Mobilní zobrazení podstránek */
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    /* Mobilní zobrazení kalkulačky */
    .calc-inputs-grid {
        flex-direction: column; 
        gap: 20px;
    }
    
    .results-container {
        flex-direction: column; 
        gap: 15px;
    }
    
    .calculator-box {
        padding: 25px 15px;
    }

}
/* Speciální styl pro třetí box - Pouze konstrukce */
.result-box.skeleton-box {
    background: #4a5568; /* Pěkná ocelově šedá barva */
    color: #fff;
}

.result-box.skeleton-box strong {
    color: #fff;
}
/* Zvýrazněná položka E-SHOP v hlavičce */
header nav ul li a.header-eshop-btn {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(247, 148, 29, 0.3);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

header nav ul li a.header-eshop-btn:hover {
    background-color: #ffaa33;
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 148, 29, 0.4);
}
/* --- OPRAVA RESPONZIVITY PRO MOBILY A TABLETY --- */

/* Mřížka produktů se na menších obrazovkách přizpůsobí */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Na tabletech 2 sloupce */
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr !important; /* Na mobilech 1 sloupec pod sebe */
        gap: 20px !important;
    }
    
    .card {
        width: 100% !important;
    }

    /* Zlepšení zobrazení klikacích dlaždic u carportu na mobilu */
    .delivery-options {
        grid-template-columns: 1fr !important; /* Pod sebou místo vedle sebe */
    }
    
    /* Zmenšení paddingu v hlavičce na mobilech */
    header {
        padding: 10px 15px !important;
    }
    
    nav ul {
        gap: 15px !important;
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* --- ÚPRAVA VZHLEDU PODSTRÁNEK: Obrázek nahoru, text pod ním přes celou šířku --- */
.info-grid {
    display: flex !important;
    flex-direction: column !important; /* Položky půjdou pod sebe */
    gap: 40px !important;
    max-width: 900px !important; /* Rozumná šířka pro pohodlné čtení textu */
    margin: 0 auto !important;
}

/* Obrázek bude nahoře a roztáhne se do šířky */
.info-video {
    width: 100% !important;
}

.info-video img, 
.info-video video {
    width: 100% !important;
    height: 450px !important; /* Pěkná velká výška fotky */
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Textová část pod obrázkem bude mít prostor na delší a podrobnější popis */
.info-text {
    width: 100% !important;
}

.info-text h2 {
    font-size: 2.2rem !important;
    margin-bottom: 20px !important;
    color: var(--dark-bg);
}

.info-text p {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
    color: #444;
}

.benefits-list li {
    font-size: 1.05rem !important;
    margin-bottom: 15px !important;
    line-height: 1.6 !important;
}
/* Responzivní úprava výsledkových boxů (Standard vs. Premium) na mobilech */
@media (max-width: 768px) {
    .results-container {
        grid-template-columns: 1fr !important; /* Na mobilu oba boxy pod sebou */
    }
}
@media (min-width: 992px) {
    .info-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
        align-items: center !important;
    }
}
/* Dokonalé vycentrování textu a videa na střed na výšku */
.info-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    align-items: center !important; /* Toto zajistí, že text i video budou přesně uprostřed vedle sebe */
}