/* --- Základní nastavení a proměnné --- */
:root {
    --color-black: #111111;
    --color-white: #ffffff;
    --color-red: #d31536;
    --color-gray: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Obalovač pro udržení obsahu */
.container {
    width: 100%;
    max-width: 1800px; /* Zvětšeno z původních 1200px */
    margin: 0 auto;
    padding: 0 40px;   /* Větší odstup od úplných okrajů monitoru */
}

/* --- Tlačítka --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn-red {
    background-color: var(--color-red);
    color: var(--color-white);
}

.btn-red:hover {
    background-color: #b0102b;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.2rem;
}

/* --- Horní lišta (Topbar) --- */
.topbar {
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray);
}

.topbar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-item svg {
    width: 16px;
    height: 16px;
    fill: var(--color-red);
}

/* --- Hlavička a Logo --- */
.header {
    background-color: var(--color-black);
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between; /* Zajistí, že logo je zcela vlevo a menu vpravo */
    align-items: center;
}

.logo-link {
    display: block;
}

.logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* --- Hamburger Menu (Mobile) --- */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    z-index: 101;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-white);
    transition: all 0.3s ease-in-out;
}

/* --- Navigace --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a.nav-link:hover {
    color: var(--color-red);
}

/* --- Úvodní sekce (Hero) --- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Nezapomeň si sem doplnit fotku půdy, pokud ji máš */
    background: url('Fotky/index1.png') no-repeat center center;
    background-color: var(--color-gray); /* Záložní barva, než se načte fotka */
    background-size: cover;
    text-align: center;
}

.hero .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/*KONTAKT*/
/* --- Nové barvy pro sekci kontakt (přidají se k tvým existujícím) --- */
:root {
    --color-card-bg: #1c1c1c;   
    --color-text-gray: #a0a0a0; 
}

/* ========================================= */
/* --- SEKCE KONTAKT (Tmavý vzhled karet)--- */
/* ========================================= */

.contact-section {
     position: relative;
    /* První číslo 0.75 určuje sílu tmavého závoje (čím vyšší, tím tmavší) */
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('Fotky/RDMiretice/PHOTO-2026-07-12-09-48-52.jpg') center/cover no-repeat;
    background-color: var(--color-white);
    padding: 80px 0;
    color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Na mobilu jeden sloupec */
    gap: 30px;
}

.contact-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.contact-card h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-gray);
    padding-bottom: 10px;
}

/* Informační část */
.info-group {
    margin-bottom: 25px;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-gray);
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.info-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s;
}

a.info-value:hover {
    color: var(--color-red);
}

.billing-title {
    font-size: 1.2rem;
    margin: 30px 0 15px 0;
}

.billing-info p {
    color: var(--color-text-gray);
    margin-bottom: 5px;
}

/* Formulářová část */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--color-black);
    border: 1px solid var(--color-gray);
    border-radius: 6px;
    color: var(--color-white);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-gray);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-red);
    outline: none;
    box-shadow: 0 0 5px rgba(211, 21, 54, 0.3);
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 15px;
}

/* --- RESPONZIVITA PRO KONTAKT --- */

/* Mobilní zařízení - menší okraje */
@media (max-width: 767px) {
    .contact-card {
        padding: 25px;
    }
}

/* Tablety a Desktopy - hodí karty vedle sebe */
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr; 
        gap: 40px;
    }
}
/*KONEC KONTAKT*/

/*FOUKANE IZOLACE*/
/* --- TLAČÍTKA NA KARTÁCH A EFEKTY --- */
.ref-card {
    background-color: var(--color-card-bg, #1c1c1c);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.ref-img-wrap {
    height: 250px;
    overflow: hidden;
}

.ref-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ref-card:hover .ref-img-wrap img {
    transform: scale(1.05); /* Zoom efekt po najetí */
}

.ref-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.btn-detail {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 2px solid var(--color-red, #d31536);
    color: #ffffff;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-detail:hover {
    background-color: var(--color-red, #d31536);
}

/* --- VYSKAKOVACÍ OKNO (MODAL) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* Skryté dokud se na něj neklikne */
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.modal-content {
    background-color: #1a1a1a;
    width: 100%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 10px; right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover { color: var(--color-red, #d31536); }

.modal-body {
    display: flex;
    flex-direction: row;
    height: 550px;
}

.modal-left {
    position: relative;
    width: 55%;
    background-color: #000;
}

.modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.slider-btn:hover { background: var(--color-red, #d31536); }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

.modal-right {
    width: 45%;
    padding: 40px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-right h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    padding-right: 30px;
    color: #fff;
}

.modal-right h4 {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.modal-right ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 25px;
}

.modal-right ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    color: #cccccc;
}

.modal-right ul li::before {
    content: "•";
    color: var(--color-red, #d31536);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.modal-price {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.modal-btn-contact {
    margin-top: auto;
}

/* Responzivita (Mobily) */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        height: auto;
        max-height: 85vh;
    }
    .modal-left { width: 100%; height: 250px; }
    .modal-right { width: 100%; padding: 25px; }
}
/* --- ZÁKLAD A PROMĚNNÉ --- */
:root {
    --color-black: #111111;
    --color-white: #ffffff;
    --color-red: #d31536;
    --color-gray: #333333;
    --color-card-bg: #1c1c1c;   
    --color-text-gray: #a0a0a0; 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- TLAČÍTKA --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-red {
    background-color: var(--color-red);
    color: var(--color-white);
    border: none;
}

.btn-red:hover {
    background-color: #b0102b;
}

/* --- HLAVIČKA A TOPBAR --- */
.topbar {
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray);
}

.topbar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-item svg {
    width: 16px;
    height: 16px;
    fill: var(--color-red);
}

.header {
    background-color: var(--color-black);
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}

.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    z-index: 101;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-white);
    transition: all 0.3s ease-in-out;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a.nav-link:hover {
    color: var(--color-red);
}

/* --- ÚVODNÍ TEXT O IZOLACÍCH --- */
.service-intro {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 60px 0 20px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.intro-text h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--color-text-gray);
    line-height: 1.8;
}

.intro-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-red);
}

.intro-text ul {
    list-style-type: none;
    margin-bottom: 20px;
}

.intro-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.intro-text ul li::before {
    content: "✓";
    color: var(--color-red);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.intro-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
}

/* --- REFERENCE - KARTY --- */
.references-section {
    background-color: var(--color-black);
    padding: 60px 0 80px 0;
    color: var(--color-white);
}

.references-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-gray);
    margin-bottom: 50px;
}

.ref-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.ref-card {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.ref-img-wrap {
    height: 250px;
    overflow: hidden;
}

.ref-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ref-card:hover .ref-img-wrap img {
    transform: scale(1.05);
}

.ref-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ref-content h3 {
    font-size: 1.2rem;
    color: var(--color-red);
    margin-bottom: 20px;
    text-align: center;
}

.btn-detail {
    width: 100%;
    background-color: transparent;
    border: 2px solid var(--color-red);
    color: var(--color-white);
    margin-top: auto;
}

.btn-detail:hover {
    background-color: var(--color-red);
}

/* --- MODÁLNÍ OKNO (POPUP) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-card-bg);
    width: 95%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 10px; right: 20px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: var(--color-red);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-left {
    position: relative;
    width: 100%;
    min-height: 250px;
    background-color: #000;
}

.modal-left img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.slider-btn:hover { background: var(--color-red); }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

.modal-right {
    padding: 30px;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
}

.modal-right h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    padding-right: 30px;
}

.modal-right h4 {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.modal-right ul {
    list-style-type: none;
    margin-bottom: 25px;
}

.modal-right ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    color: #cccccc;
}

.modal-right ul li::before {
    content: "•";
    color: var(--color-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.modal-price {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.modal-btn-contact {
    width: 100%;
    margin-top: auto;
}

/* --- RESPONZIVITA (Mobily -> Desktopy) --- */
@media (max-width: 767px) {
    .topbar { display: none; }
    .hamburger { display: block; }
    .desktop-only { display: none; }
    .container { padding: 0 20px; }
    
    .main-nav {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--color-black);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 100;
        gap: 30px;
    }
    .main-nav.active { left: 0; }
    .main-nav a.nav-link { font-size: 1.5rem; }
    
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (min-width: 768px) {
    .topbar-content { flex-direction: row; justify-content: flex-end; gap: 25px; }
    .mobile-only { display: none; }
    
    .intro-grid { grid-template-columns: 1fr 1fr; }
    .ref-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
    
    .modal-body { flex-direction: row; }
    .modal-left { width: 55%; height: auto; }
    .modal-left img { object-fit: cover; }
    .modal-right { width: 45%; padding: 40px; }
}

/* --- VZHLED VYSKAKOVACÍHO OKNA --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.85); /* Tmavé průhledné pozadí */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Zobrazení po kliknutí */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #1c1c1c;
    width: 95%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.8);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column; /* Na mobilu pod sebou */
    max-height: 90vh;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 10px; right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover { color: #d31536; }

.modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-left {
    position: relative;
    width: 100%;
    min-height: 250px;
    background-color: #000;
}

.modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Roztáhne fotku na celou plochu bez okrajů */
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.slider-btn:hover { background: #d31536; }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

.modal-right {
    padding: 30px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Scrollování textu na malých displejích */
}

/* Rozdělení 50/50 na velkých monitorech */
@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
        height: 600px; /* Pevná výška, aby to vypadalo jako na obrázku */
    }
    .modal-body {
        flex-direction: row;
        width: 100%;
    }
    .modal-left {
        width: 55%;
        height: 100%;
    }
    .modal-right {
        width: 45%;
        padding: 40px;
    }
}
/*KONEC FOUKANYCH IZOLACI*/


/* --- RESPONZIVITA --- */

/* Mobilní zařízení (vše pod 768px) */
@media (max-width: 767px) {
    /* Skrytí topbaru na mobilech */
    .topbar {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    /* Mobilní menu na celou obrazovku */
    .main-nav {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--color-black);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 100;
        gap: 30px;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav a.nav-link {
        font-size: 1.5rem;
    }

    /* Animace hamburgeru do křížku */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Tablety a Desktopy (nad 768px) */
@media (min-width: 768px) {
    .topbar-content {
        flex-direction: row;
        justify-content: flex-end;
        gap: 25px;
    }

    .mobile-only {
        display: none;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* ========================================= */
/* --- HP: TRUST BAR --- */
/* ========================================= */
.trust-bar {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 20px 0;
}
.trust-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    text-align: center;
}
.trust-item {
    font-size: 1.1rem;
}

/* ========================================= */
/* --- HP: REFERENCE ZÁKAZNÍKŮ --- */
/* ========================================= */
.testimonials-section {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 80px 0;
    text-align: center;
}
.testimonials-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}
.testimo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.testimo-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.stars {
    color: var(--color-red);
    font-size: 1.5rem;
    margin-bottom: 15px;
}
@media (min-width: 768px) {
    .testimo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================= */
/* --- HP: O MARTINOVI --- */
/* ========================================= */
.about-martin {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 80px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.about-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--color-gray);
}
.about-text h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-red);
}
.about-text ul {
    list-style-type: none;
    margin-bottom: 30px;
}
.about-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: 500;
}
.about-text ul li::before {
    content: "✓";
    color: var(--color-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.about-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
@media (min-width: 768px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================================= */
/* --- HP: VÝHODY --- */
/* ========================================= */
.benefits-section {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 80px 0;
}
.benefits-section h2 { text-align: center; font-size: 2.5rem; }
.benefits-section .section-subtitle { text-align: center; color: var(--color-text-gray); margin-bottom: 50px; }
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.benefit-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 8px;
}
.red-text { color: var(--color-red); margin-bottom: 10px; }
@media (min-width: 768px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================= */
/* --- HP: LOKALITA A DOTACE --- */
/* ========================================= */

/* ==========================================
   PŘEPÍNÁNÍ VIDEO NA PC / FOTKA NA MOBILU
   ========================================== */

/* Ve výchozím stavu (na PC) schováme záložní fotku */
.mobile-only-img {
    display: none;
}

/* Jakmile se obrazovka zmenší na mobil (pod 768px)... */
@media (max-width: 768px) {
    /* ...natvrdo schováme video */
    .desktop-only-video {
        display: none !important;
    }
    /* ...a ukážeme fotku */
    .mobile-only-img {
        display: block !important;
    }
}


/* ==========================================
   DOTACE NA ZATEPLENÍ
   ========================================== */
.dotace-hero {
    padding-top: 80px;
    padding-bottom: 80px;
}

.dotace-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.dotace-hero p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.process-steps {
    list-style: none;
    padding-left: 0;
}

.process-steps li {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.process-steps strong {
    color: var(--color-red, #d31536);
}

.dotace-img-wrapper {
    text-align: center;
}

/* Červený zaoblený rámeček okolo fotky */
.dotace-img {
    border: 4px solid var(--color-red, #d31536);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Úprava dotací pro mobily */
@media (max-width: 768px) {
    .dotace-hero h1 {
        font-size: 1.8rem !important;
    }
    
    .dotace-hero p {
        font-size: 1rem !important;
    }
}

.info-banners {
    background-color: var(--color-white);
    padding: 80px 0;
}
.banners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.banner-box {
    background-color: var(--color-card-bg);
    color: var(--color-white);
    padding: 40px;
    border-radius: 8px;
}
.banner-box.outline {
    background-color: transparent;
    border: 2px solid var(--color-red);
    color: var(--color-black);
}
.banner-box h2 { margin-bottom: 15px; }
@media (min-width: 768px) {
    .banners-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================================= */
/* --- HP: ZÁVĚREČNÉ CTA --- */
/* ========================================= */
.final-cta {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 80px 0;
    text-align: center;
}
.final-cta h2 { font-size: 2.5rem; margin-bottom: 20px; }
.final-cta p { font-size: 1.2rem; color: var(--color-text-gray); margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ========================================= */
/* --- PATIČKA (FOOTER) --- */
/* ========================================= */
.footer {
    background-color: #0a0a0a;
    color: var(--color-text-gray);
    padding: 50px 0 30px;
    border-top: 1px solid #222;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.footer h3 {
    color: var(--color-white);
    margin-bottom: 20px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--color-text-gray);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--color-red);
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
/* --- IKONKY A ODKAZY V PATIČCE --- */
.footer-contact {
    list-style: none;
}
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-contact svg {
    width: 18px;
    height: 18px;
    fill: var(--color-red);
    flex-shrink: 0;
}
.footer-contact a {
    color: var(--color-text-gray);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-contact a:hover {
    color: var(--color-red);
}


/* ========================================= */
/* --- MAPA NA KONTAKTNÍ STRÁNCE --- */
/* ========================================= */
.map-section {
    width: 100%;
    display: block;
    line-height: 0; /* Odstraní případnou mezeru dole */
}
.map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    filter: grayscale(20%) contrast(1.1); /* Lehce utlumí barvy, aby mapa neřvala na tmavém webu */
}

/*FOUKANE IZOLACE */
/* ========================================= */
/* --- PODSTRÁNKA: FOUKANÉ IZOLACE (ZEBRA) --- */
/* ========================================= */

/* Barvy pozadí a textu pro střídání sekcí (Zebra efekt) */
.bg-white { background-color: var(--color-white); }
.bg-black { background-color: var(--color-black); }
.text-white { color: var(--color-white) !important; }
.text-black { color: var(--color-black) !important; }
.text-gray { color: var(--color-text-gray) !important; }
.text-red { color: var(--color-red) !important; }

/* Pomocné třídy */
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.align-center { align-items: center; }
.fs-small { font-size: 0.9rem; }

/* Odsazení */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

/* Úvodní fotka podstránky izolací */
.hero-izolace {
    background: url('Fotky/NSHat/PHOTO-2026-07-12-10-10-02\(3\).jpg') no-repeat center center;
    background-size: cover;
}

/* Fotka u textu "Co je foukaná izolace" */
.info-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: block;
}

/* Odrážky (červená fajfka na bílém podkladu) */
.check-list {
    list-style: none;
    padding-left: 0;
}
.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Mřížka a Karty pro tmavou sekci (Kam aplikujeme) */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.app-card {
    background-color: var(--color-card-bg); /* Tmavá karta na tmavém pozadí */
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--color-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.app-card:hover { 
    transform: translateY(-5px); 
}

/* Dvousloupcové rozvržení (Text + Fotka nebo FAQ) */
.two-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

/* Číslovaný seznam pro postup spolupráce */
.process-list {
    padding-left: 20px;
    line-height: 1.8;
}
.process-list li {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Karty FAQ (Časté dotazy na bílém podkladu) */
.faq-item-light {
    background-color: #f9f9f9; /* Velmi světle šedá karta na bílém pozadí */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    height: 100%;
}
.faq-item-light h4 {
    color: var(--color-red);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* CTA Box obtažený červeně (jako na úvodní stránce) */
.cta-box-outline {
    background-color: transparent;
    border: 2px solid var(--color-red);
    padding: 50px 30px;
    border-radius: 8px;
}

/* Mřížka pro reference ukázek (Před a po) */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.ref-card {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.ref-img-wrap {
    height: 250px;
    overflow: hidden;
}
.ref-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ref-card:hover .ref-img-wrap img {
    transform: scale(1.05);
}
.ref-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ========================================= */
/* --- RESPONZIVITA PRO NOVOU STRÁNKU --- */
/* ========================================= */
@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    .two-col-grid { gap: 30px; }
    .cta-box-outline { padding: 30px 20px; }
}

/*STAVEBNI PRACE*/

.hero-stavba {
    background: url('Fotky/stavebniprace/PHOTO-2026-08-18-15-51-29(2).jpg') no-repeat center center;
    background-size: cover;
}


/* ==========================================
   ÚPRAVY PRO MOBILNÍ VERZI (Méně textu a lepší čitelnost)
   ========================================== */
@media (max-width: 768px) {
    
    /* 1. Zázračná třída pro skrytí nedůležitých věcí na mobilu */
    .hide-mobile {
        display: none !important;
    }

    /* 2. Zmenšení obřích nadpisů, aby nezabíraly půlku displeje */
    h1 {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }
    
    h2 {
        font-size: 1.6rem !important;
    }

    /* 3. Zmenšení mezer mezi sekcemi (aby se tolik nescrollovalo) */
    .section-padding {
        padding: 40px 0 !important;
    }
    
    /* 4. Mírné zmenšení odstavců pro lepší čtení */
    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* ==========================================
   UNIVERZÁLNÍ GALERIE (Karty + Vyskakovací okno)
   ========================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Na PC 3 sloupce */
    gap: 30px;
    margin-top: 40px;
}

/* Tablet: 2 sloupce */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil: 1 sloupec pod sebou (Změnil jsem z 768px na 900px, 
   ať se to přepne do jednoho sloupce dřív, než se to na menších noteboocích začne mačkat) */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
    border: 1px solid #333;
    display: flex; /* Důležité: umožní roztahování vnitřku */
    flex-direction: column;
    height: 100%; /* Všechny karty v řadě budou stejně vysoké */
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: #d31536;
}

.gallery-img-wrap {
    width: 100%;
    height: 240px; /* O trochu vyšší fotka pro hezčí vzhled */
    background: #2a2a2a; /* Šedé pozadí, kdyby náhodou chyběla fotka */
    overflow: hidden;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-card:hover .gallery-img-wrap img {
    transform: scale(1.05);
}

.gallery-content {
    padding: 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Vynutí, aby obsah vyplnil zbytek karty */
}

.gallery-content h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.gallery-btn {
    display: inline-block;
    margin-top: auto; /* TOHLE JE KOUZLO: Vždycky zatlačí tlačítko na úplné dno karty! */
    padding: 10px 20px;
    border: 1px solid #d31536;
    color: #fff;
    border-radius: 4px;
    transition: background 0.3s;
    font-weight: bold;
}

.gallery-card:hover .gallery-btn {
    background: #d31536;
}

/* ... a zbytek pro Vyskakovací okno (Modal) nech tak, jak máš teď ... */

/* Vyskakovací okno (Modal) s rozmazáním (Blur) */
.gallery-modal-bg {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.gallery-modal-box {
    display: flex;
    background: #1a1a1a;
    width: 90%; max-width: 1000px;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
}
.gallery-close {
    position: absolute;
    top: 10px; right: 20px;
    color: white; font-size: 30px;
    cursor: pointer; z-index: 10;
}
.gallery-left {
    flex: 1.5; background: #000; display: flex; align-items: center; justify-content: center; position: relative;
}
.gallery-left img {
    max-width: 100%; max-height: 100%; object-fit: contain;
}
.gallery-right {
    flex: 1; padding: 40px; overflow-y: auto; color: white;
}
.gallery-right ul {
    list-style: none; padding: 0; margin-top: 15px; color: #ccc; line-height: 1.8;
}
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: white; border: none;
    padding: 15px; font-size: 20px; cursor: pointer; transition: 0.3s;
}
.gallery-arrow:hover { background: #d31536; }
.g-prev { left: 0; } .g-next { right: 0; }

@media (max-width: 768px) {
    .gallery-modal-box { flex-direction: column; }
    .gallery-left { min-height: 300px; }
    .gallery-right { padding: 20px; }
}






