:root {
    --primary: #FF7B00;
    --primary-dark: #cc6200;
    --dark: #1E293B;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --text: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light-bg);
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { 
    text-align: center; 
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-placeholder h1 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-placeholder span {
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.btn-nav {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-nav:hover {
    background-color: var(--primary-dark);
}

.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
}

.hero {
    background: linear-gradient(rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.8)), url('img/hlavni-stavba.jpg') no-repeat center center/cover;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero h2 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    color: var(--dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 15px auto 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 30px;
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.stats {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.features {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0;
}

.features .section-title {
    color: var(--white);
}

.features-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.features-text ul {
    list-style: none;
    margin-top: 20px;
}

.features-text li {
    margin-bottom: 15px;
    font-size: 1.2rem;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

.gallery-section {
    padding: 80px 0;
    background-color: var(--white);
}

/* TADY JE TA OPRAVENÁ, PŘESNĚ VYCENTROVANÁ MŘÍŽKA */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-rows: 250px;
    justify-content: center;
    align-items: center;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    transition: transform 0.3s, filter 0.3s;
}

.gallery-img:hover {
    transform: scale(1.02);
    filter: brightness(0.9);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: var(--primary);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.contact {
    padding: 80px 0;
}

.contact-boxes {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary);
}

.contact-box span {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-box strong {
    font-size: 1.2rem;
    color: var(--dark);
}

.contact-box a:hover {
    color: var(--primary);
}

footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
}

/* RESPONZIVITA PRO MENŠÍ OBRAZOVKY A TABLETY */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hamburger {
        display: block;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    
    nav.active {
        display: flex;
    }
    
    nav a {
        margin: 15px 0;
        font-size: 1.2rem;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    /* Na tabletu uděláme 2 perfektní sloupce */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* RESPONZIVITA PRO MOBILY */
@media (max-width: 600px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .prev-btn, .next-btn {
        padding: 10px 15px;
        font-size: 20px;
    }
    
    /* Na mobilu uděláme 1 sloupec */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}