/* Reset a základní nastavení */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Roboto', sans-serif;
    background-color: #333;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* CENTROVACÍ KONTEJNER */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    height: 100%;
}

.full-width-section {
    width: 100%;
    display: block;
}

/* Typografie */
.text-green {
    color: #4cff00;
    font-weight: 900; 
}
.text-green-bold {
    color: #4cff00;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* 1. HLAVIČKA */
.header-section {
    background-color: #555;
    padding: 30px 0;
    text-align: center;
}
.header-section h1 {
    font-size: 2.2em;
    text-transform: uppercase;
    font-weight: 400; 
    margin: 0;
    letter-spacing: 1px;
}

/* ÚPRAVA PRO MOBILY */
@media (max-width: 950px) {
    .header-section {
        padding: 30px 0;
    }
    .header-section h1 {
        font-size: 2.2em; /* Na mobilu trochu zmenšíme */
    }
    .header-section h1 span.text-green {
        //font-size: 0.5em;
        letter-spacing: 3px;
    }
}

/* 2. HORNÍ PRUH (3D EFEKT) */
.top-strip {
    background: linear-gradient(to bottom,
        #cccccc 0%,
        #cccccc 65%,
        #999999 65%,
        #999999 100%
    );
    color: #111;
    padding: 40px 0 130px 0;
    position: relative;
    min-height: 480px;
    z-index: 30;
}

.top-grid {
    display: grid;
    /* 1fr (prostor pro myš) | Auto (Panel přilepený vpravo) */
    grid-template-columns: 1fr auto; 
    gap: 0;
    height: 100%;
    /* Zarovnáme panel doprava */
    justify-content: end; 
    align-items: center;
}

/* --- MYŠ (ZVĚTŠENÁ) --- */
.rat-image-container {
    height: 100%;
    display: flex;
    align-items: flex-end;
    /* Myš se tlačí doprava k panelu, aby se ho dotýkala */
    justify-content: flex-end; 
    
    position: relative;
    z-index: 50;
    
    /* Překryv, protože panel je fixnutý vpravo */
    margin-right: -80px; 
    margin-bottom: -380px;
}

.rat-img {
    width: 100%;
    max-width: 580px; 
    display: block;
    transform: scale(1.3);
    transform-origin: bottom right;
    pointer-events: none;
}

/* --- PANEL PRO SLUŽBY --- */
.services-panel {
    position: relative;
    z-index: 10;
    
    background: rgba(0,0,0,0.45);
    padding: 20px 40px; 
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    transform: translateY(-30px);
    
    /* Panel se přilepí na pravou stranu kontejneru */
    margin-left: auto; 
}

/* --- VĚTŠÍ IKONY V PANELU --- */
.panel-icons-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px; 
    margin-right: 25px;
    /* Zde jsme zrušili ten border a padding, protože máme nový div */
    padding-right: 0;
}

.panel-icons-col img {
    width: 85px; 
    height: auto;
    display: block;
}

/* --- DĚLÍCÍ ČÁRY V PANELU --- */

/* Základní styl pro obě čáry */
.separator-vertical {
    width: 3px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 2px;
    align-self: center; /* Zarovnání na střed výšky */
    
    /* Výchozí výška (pro pravou čáru) */
    height: 180px;
    min-height: 180px; /* DŮLEŽITÉ: Přepsat staré hodnoty */
}

/* --- TADY UPRAV VÝŠKU LEVÉ ČÁRY --- */
.separator-left {
    height: 180px;      /* Zde nastav výšku levé čáry (u ikon) */
    min-height: 180px;  /* Musí být stejná jako height */
    margin-right: 5px; /* Odstup od DDD nápisů */
}


/* Úprava responzivity pro mobil */
@media (max-width: 950px) {
    .panel-icons-col {
        display: none; /* Na mobilu ikony skryjeme */
    }
}

.services-grid-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.titles-grid {
    display: grid;
    grid-template-columns: max-content max-content;
    row-gap: 2px;
    column-gap: 0;
}

.d-col {
    color: #4cff00;
    font-weight: 900;
    font-size: 1.6em; 
    text-transform: uppercase;
    text-align: right;
    line-height: 1.2;
}

.rest-col {
    color: #fff;
    font-weight: 900;
    font-size: 1.6em;
    text-transform: uppercase;
    text-align: left;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.items-list {
    list-style: none;
    text-align: left;
    margin: 0;
    padding: 0;
}

.items-list li {
    font-weight: 700;
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 4px;
    color: #fff;
    white-space: nowrap;
}


/* --- NOVÝ PRUH: KONTAKTY (WIDE) --- */
.contact-strip {
    background-color: #444; 
    border-top: 1px solid #555;
    padding: 25px 0;
    color: #fff;
}

.contact-wide-layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    align-items: center;
    gap: 30px;
    flex-wrap: wrap; 
}

/* Jednotlivé bloky kontaktu */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05em;
}

.company-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    border-right: 1px solid #666; 
    padding-right: 30px;
}
.company-item h3 {
    color: #4cff00;
    margin: 0;
    font-size: 1.4em;
    font-weight: 900;
}
.company-item strong {
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

/* Ikony v kontaktu */
.contact-item .icon {
    color: #4cff00;
    flex-shrink: 0;
}

.contact-links {
    display: flex;
    flex-direction: column;
}
.contact-links a, .contact-item a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-links a:hover, .contact-item a:hover {
    color: #4cff00;
}


/* BÍLÁ LINKA */
.separator-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    position: relative;
    z-index: 30; 
}

/* 3. SPODNÍ PRUH */
.bottom-strip {
    background-color: #666;
    padding: 50px 0;
    color: #fff;
}

.bottom-grid {
    display: flex;
    gap: 40px;
}

/* OPRAVA VELIKOSTI IKON DOLE */
.left-icons {
    width: 130px;
    min-width: 130px; /* DŮLEŽITÉ: Zabrání zmenšení */
    flex-shrink: 0;   /* DŮLEŽITÉ: Zabrání smrsknutí v gridu */
    
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-right: 1px solid #888;
    padding-right: 20px;
    padding-top: 7px;
}
.left-icons img {
    width: 100%;
    opacity: 0.9;
}

.text-content {
    flex: 1;
    font-size: 1.05em;
    line-height: 1.7;
    text-align: left;
    max-width: 900px;
}

.text-block {
    margin-bottom: 26px;
}
.text-block p {
    margin-bottom: 12px;
}

/* Ceník */
.price-list {
    list-style: none;
    margin-top: 10px;
}
.price-list li {
    margin: 8px 0;
}
.price-list li::before {
    content: "■";
    color: #4cff00;
    margin-right: 10px;
    font-size: 0.8em;
    position: relative;
    top: -2px;
}

/* PDF tlačítko */
.pdf-download-section {
    text-align: right;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.download-link {
    text-align: right;
    display: inline-block;
    color: #fff;
}
.click-here {
    color: #4cff00;
    font-weight: 900;
    font-size: 1.3em;
    text-transform: uppercase;
}
.pdf-img {
    vertical-align: middle;
    width: 45px;
    margin-bottom: 5px;
    margin-right: 5px;
}
.socials {
    margin-top: 15px;
}
.socials img {
    width: 32px;
    margin-left: 10px;
    transition: transform 0.2s;
}
.socials img:hover {
    transform: scale(1.1);
}

/* 4. PATIČKA */
.footer-section {
    background-color: #444;
    text-align: right;
    padding: 15px 0;
    font-size: 0.8em;
    color: #aaa;
}

/* RESPONZIVITA - MOBILY (max-width 950px) */
@media (max-width: 950px) {
    .header-section h1 { font-size: 1.6em; }

    /* 1. HORNÍ PRUH - Reset */
    .top-strip {
        background: linear-gradient(to bottom, #cccccc 0%, #cccccc 80%, #999999 80%, #999999 100%);
        padding: 40px 0 0 0; 
        min-height: auto;
    }

    .top-grid {
        display: flex;
        flex-direction: column; 
        gap: 0;
    }

    /* 2. PANEL SLUŽEB */
    .services-panel {
        order: 1; 
        margin: 0; 
        transform: scale(0.8); 
        width: 100%;
        max-width: none;
        background: rgba(0,0,0,0.3);
        padding: 20px;
    }

    .panel-icons-col {
        display: none; 
    }

    .services-grid-layout {
        flex-direction: column;
        gap: 15px;
    }

    .separator-vertical {
        width: 100%;
        height: 2px; /* Čára bude vodorovná */
        min-height: 2px; /* Reset výšky na mobilu */
        margin: 0;
    }
    
    .separator-left {
        display: none; /* Na mobilu druhou čáru nepotřebujeme */
    }

    .titles-grid {
        display: grid;
        grid-template-columns: max-content max-content;
        justify-content: center;
    }

    .items-list li {
        text-align: center;
        white-space: normal; 
    }

    /* 3. MYŠ */
    .rat-image-container {
        order: 2; 
        width: 100%;
        justify-content: center;
        align-items: flex-end;
        
        /* Reset okrajů */
        margin-right: 0;
        margin-bottom: 0;
        z-index: 1;
        margin-top: 10px;
    }

    .rat-img {
        /* ZMĚNA: Zvětši toto číslo. 
           Můžeš zkusit třeba 350px, nebo klidně 90% (aby byla skoro přes celý displej) */
        max-width: 90%; 
        
        /* ZMĚNA: Smaž "transform: none;" pokud chceš používat scale, 
           ale lepší je nechat to bez scale a řídit to šířkou výše. */
        /* transform: none; <--- TOTO SMAŽ NEBO ZAKOMENTUJ */
        
        margin: 0 auto; /* Vycentrovat */
        display: block;
        margin-bottom: 28px;
    }

    /* 4. KONTAKTY */
    .contact-wide-layout {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .company-item {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #666;
        padding-bottom: 15px;
        width: 100%;
        align-items: center;
    }

    .contact-item {
        flex-direction: column; 
        gap: 8px;
        justify-content: center;
    }
    
    .contact-links {
        align-items: center;
    }

    /* 5. SPODNÍ PRUH */
    .bottom-grid { 
        flex-direction: column; 
    }

    .left-icons {
        flex-direction: row;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #888;
        padding-bottom: 15px;
        justify-content: center;
        padding-right: 0;
        gap: 20px;
    }
    
    .left-icons img { 
        width: 50px; 
    }

    .text-content { 
        max-width: none; 
    }
}