/* ==========================================================================
   GRAVÍROVÁNÍ MAZOCHOVI - HLAVNÍ STYL
   ========================================================================== */

/* --- 1. PROMĚNNÉ A ZÁKLAD --- */
:root {
    --q-blue: #00508a; 
    --q-dark: #1a1b1c; 
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Candara', 'Optima', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f4f7f9; 
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

section[id], footer[id] { scroll-margin-top: 90px; }

/* --- 2. NAVIGACE A MENU --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8%;
    border-bottom: 2px solid var(--q-blue);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 80, 138, 0.08);
}

.logo-container img { max-height: 50px; width: auto; }

#menu-toggle { display: none; }
.menu-btn { display: none; cursor: pointer; padding: 10px; z-index: 1001; }
.menu-icon { display: block; width: 25px; height: 3px; background: var(--q-blue); position: relative; transition: 0.3s; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; width: 100%; height: 100%; background: var(--q-blue); transition: 0.3s; left: 0; }
.menu-icon::before { top: -8px; }
.menu-icon::after { top: 8px; }

.nav-right { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: #1a1a1a; font-weight: bold; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; transition: color 0.2s; }
.nav-links a:hover { color: var(--q-blue); }
.nav-links a, .dropbtn { -webkit-tap-highlight-color: transparent; outline: none; }

/* Rozbalovací menu */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none; position: absolute; background-color: #fff; min-width: 260px;
    box-shadow: 0 8px 20px rgba(0, 80, 138, 0.12); border-radius: 4px; z-index: 1000;
    top: 100%; left: 0; border-top: 3px solid var(--q-blue);
}
.dropdown-content a {
    color: #1a1a1a; padding: 12px 18px; text-decoration: none; display: block;
    font-size: 0.9rem; text-transform: none; border-bottom: 1px solid #f4f7f9;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: #f4f7f9; color: var(--q-blue); }

.arrow { display: inline-block; transition: transform 0.3s ease; }
.dropbtn.open .arrow { transform: rotate(180deg); }

@media (min-width: 901px) {
    .dropdown:hover .dropdown-content { display: block; }
    .dropdown:hover .arrow { transform: rotate(180deg); }
}

/* --- 3. SPOLEČNÉ KOMPONENTY (Tlačítka, Ikony, Nadpisy) --- */
.btn-poptavka {
    background: var(--q-blue); color: white !important; padding: 12px 24px;
    text-decoration: none; font-weight: bold; border-radius: 4px; font-size: 0.85rem;
    text-transform: uppercase; transition: background 0.3s;
}
.btn-poptavka:hover { background: #003a66; }

.submit-btn {
    background: var(--q-blue); color: white; border: none; padding: 15px 30px; font-size: 1.1rem; font-weight: bold;
    border-radius: 4px; cursor: pointer; text-transform: uppercase; transition: background 0.3s; margin-top: 10px; width: 100%;
}
.submit-btn:hover { background: #003a66; }

.section-title { text-align: center; font-size: 2.2rem; color: #1a1a1a; margin-top: 0; margin-bottom: 40px; }

.social-icons { display: flex; gap: 12px; justify-content: center; margin-top: 10px; }
.social-link svg { height: 1em; width: auto; fill: #fff; vertical-align: middle; transition: opacity 0.3s, transform 0.3s; }
.social-link:hover svg { opacity: 0.8; transform: scale(1.1); }

/* --- 4. HERO SEKCE --- */
/* Výchozí chování pro podstránky (bezpečné vycentrování) */
.hero {
    padding: 60px 8% 60px; 
    display: grid; 
    grid-template-columns: 1.2fr 1fr;
    align-items: center; 
    gap: 50px; 
    background: linear-gradient(180deg, #d3e6f8 0%, #f4f7f9 100%);
}

.hero-photo-container {
    width: 100%;
}

.hero-photo-container img { 
    width: 100%; 
    height: auto; 
    max-height: 400px; /* Pojistka proti obří velikosti landscape fotek na podstránkách */
    border-radius: 12px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.06); 
    object-fit: cover; 
    display: block;
}

/* Modifikátor POUZE pro hlavní stránku s parametry podle tvého přání */
.hero.hero-index {
    align-items: stretch; /* Text dictuje výšku, fotka lícuje s textem */
}

.hero.hero-index .hero-photo-container {
    display: flex;
}

.hero.hero-index .hero-photo-container img { 
    height: 100%; 
    max-height: none; /* Na hlavní stránce limit rušíme */
}

/* Standardní nadpis a text */
.hero-text h1,
.hero h1 { 
    font-size: 2.8rem; 
    color: var(--q-blue); 
    line-height: 1.1; 
    margin-bottom: 20px; 
    margin-top: 0;
}

.hero-text p,
.hero p { 
    font-size: 1.1rem; 
    margin-bottom: 15px; 
    color: #333; 
    max-width: 800px;
}

/* Modifikátor pro vycentrované Hero BEZ fotky (speciálně pro tvůj Kontakt) */
.hero.hero-center { 
    display: block; 
    text-align: center; 
    padding-bottom: 40px; 
}

/* Neprůstřelné vynucení modré barvy a centrování */
.hero.hero-center h1 {
    color: var(--q-blue) !important;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero.hero-center p { 
    margin-left: auto; 
    margin-right: auto; 
    max-width: 700px;
}

/* --- 5. OBSAHOVÉ SEKCE (Strom hodnot, Rozcestníky, Procesy) --- */
.tree-wrapper { position: relative; background: #f4f7f9; z-index: 1; }
.global-tree-line { position: absolute; left: calc(50% - 3px); top: 0; bottom: 0; width: 6px; background: var(--q-blue); z-index: 5; }

.specialization { padding: 20px 8% 40px; text-align: center; position: relative; }
.top-branch-container { width: 100%; max-width: 900px; margin: 0 auto; height: 60px; position: relative; z-index: 2; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; z-index: 10; }
.service-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; background: transparent; padding: 10px; }
.service-photo { width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 20px; overflow: hidden; border: 4px solid var(--q-blue); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); transition: all 0.4s ease; background: #fff; }
.service-card:hover .service-photo { transform: translateY(-8px); border-color: #1a1b1c; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { color: var(--q-blue); font-size: 1.3rem; margin-bottom: 5px; margin-top: 0; transition: color 0.3s; background: #f4f7f9; padding: 0 10px; }
.service-card:hover h3 { color: #1a1b1c; }

.tree-section { padding: 40px 8% 80px; position: relative; }
.tree-container { position: relative; max-width: 900px; margin: 0 auto; }
.tree-item { position: relative; width: 50%; padding: 0 60px; box-sizing: border-box; margin-top: -40px; }
.tree-item:first-child { margin-top: 0; }
.tree-item.left { margin-left: 0; text-align: right; }
.tree-item.right { margin-left: 50%; text-align: left; }
.branch-svg { position: absolute; top: 25px; width: 60px; height: 50px; overflow: visible; z-index: 2; }
.tree-item.left .branch-svg { right: 0; }
.tree-item.right .branch-svg { left: 0; }
.tree-card { background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: all 0.3s ease; position: relative; margin-top: 10px; min-height: 120px; display: flex; flex-direction: column; justify-content: center; z-index: 10; }
.tree-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 80, 138, 0.08); }
.tree-card h3 { color: var(--q-blue); font-size: 1.2rem; margin-top: 0; margin-bottom: 8px; }
.tree-card p { margin: 0; color: #555; font-size: 0.95rem; }

/* Karta rozcestníku */
.topics-section { padding: 40px 8% 80px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; max-width: 1000px; margin: 0 auto; }
.topic-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-top: 4px solid var(--q-blue); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.topic-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 80, 138, 0.08); }
.topic-card img { width: 100%; height: 250px; object-fit: cover; }
.topic-card-content { padding: 30px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.topic-card h3 { color: var(--q-blue); font-size: 1.6rem; margin-top: 0; margin-bottom: 15px; transition: color 0.3s; }
.topic-card:hover h3 { color: var(--q-dark); }
.topic-card span.btn-fake { display: inline-block; margin-top: auto; color: var(--q-blue); font-weight: bold; text-transform: uppercase; font-size: 0.9rem; text-decoration: underline; }

/* Rozdělené info boxy */
.info-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 60px 8%; align-items: center; max-width: 1200px; margin: 0 auto; }
.info-content h3, .info-text h3 { color: var(--q-blue); font-size: 1.8rem; margin-top: 0; margin-bottom: 20px; }
.info-content p, .info-text p { font-size: 1.05rem; color: #333; margin-bottom: 20px; }
.info-image img { width: 100%; height: auto; max-height: 400px; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); object-fit: cover; }

/* Časová osa procesů */
.steps-section { padding: 40px 8% 60px; max-width: 1000px; margin: 0 auto; }
.process-steps { display: flex; flex-direction: column; gap: 30px; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 20px; bottom: 20px; left: 30px; width: 3px; background-color: #e1e8ed; z-index: 1; }
.step-card { background: #fff; padding: 30px 40px 30px 70px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); position: relative; z-index: 2; }
.step-icon { position: absolute; left: 10px; top: 20px; width: 44px; height: 44px; background-color: var(--q-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px #f4f7f9; }
.step-icon svg { width: 22px; height: 22px; fill: currentColor; }
.step-card h3 { color: var(--q-blue); margin-top: 0; margin-bottom: 10px; font-size: 1.4rem; }
.step-card p { margin: 0; color: #444; font-size: 1.05rem; }

/* --- 6. PRODUKTOVÉ KARTY (Ceníky, Materiály) --- */
.pricing-section, .materials-section { padding: 60px 8%; }
.pricing-grid, .materials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; }
.pricing-card, .material-card, .applications-box { background: #fff; border-radius: 8px; padding: 40px 30px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.04); border-top: 4px solid var(--q-blue); transition: transform 0.3s, box-shadow 0.3s; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 80, 138, 0.08); }
.pricing-card h3, .material-card h3, .applications-box h3 { color: var(--q-blue); font-size: 1.5rem; margin-top: 0; margin-bottom: 15px; }

.price-badge { font-size: 2.2rem; font-weight: bold; color: #1a1a1a; margin: 20px 0; display: flex; justify-content: center; align-items: baseline; }
.price-badge span { font-size: 1rem; font-weight: normal; color: #666; margin-left: 5px; }
.price-note { text-align: center; color: #666; font-size: 0.9rem; margin-top: 20px; }

.pricing-details, .material-details, .app-list { list-style: none; padding: 0; margin: 0; color: #555; text-align: left; }
.pricing-details li, .material-details li { padding: 10px 0; border-bottom: 1px solid #eee; position: relative;}
.material-details li { padding-left: 20px; }
.material-details li::before { content: '•'; color: var(--q-blue); font-weight: bold; position: absolute; left: 0; }
.pricing-details li:last-child, .material-details li:last-child { border-bottom: none; }
.app-list li { position: relative; padding-left: 25px; margin-bottom: 15px; font-size: 1.05rem; color: #1a1a1a; }
.app-list li::before { content: '✓'; color: var(--q-blue); font-weight: bold; position: absolute; left: 0; top: 0; }

.color-palette { display: flex; flex-wrap: wrap; gap: 12px; margin: 15px 0; padding-left: 20px; }
.color-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #e1e8ed; box-shadow: 0 2px 5px rgba(0,0,0,0.1); cursor: default; position: relative; transition: transform 0.2s, box-shadow 0.2s; z-index: 1; }
.color-swatch:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); z-index: 100; }
.color-swatch::after { content: attr(data-color); position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); background: var(--q-dark); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.color-swatch:hover::after { opacity: 1; }

/* --- 7. GALERIE A LIGHTBOX --- */
.gallery-section { padding: 20px 8% 60px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 4px 10px rgba(0,0,0,0.05); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0, 80, 138, 0.9); color: #fff; padding: 12px; box-sizing: border-box; transform: translateY(100%); transition: transform 0.3s ease; font-size: 0.95rem; text-align: center; font-weight: bold; }
.gallery-item:hover .gallery-caption { transform: translateY(0); }

.lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.92); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); object-fit: contain; }
#lightbox-caption { color: #fff; margin-top: 15px; font-size: 1.1rem; text-align: center; background: var(--q-blue); padding: 8px 20px; border-radius: 20px; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.2s; user-select: none; z-index: 10000; }
.lightbox-close:hover { color: var(--q-blue); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); cursor: pointer; padding: 16px; color: white; font-weight: bold; font-size: 24px; transition: 0.3s ease; border-radius: 0 3px 3px 0; user-select: none; background: rgba(0,0,0,0.4); border: none; z-index: 10000; }
.lightbox-next { right: 0; border-radius: 3px 0 0 3px; }
.lightbox-prev { left: 0; }
.lightbox-prev:hover, .lightbox-next:hover { background-color: var(--q-blue); }

/* --- 8. FORMULÁŘE A KONTAKT --- */
/* 8.1 Formulář na produktových stránkách (Šedý s levým pruhem) */
.order-form-section { padding: 60px 8%; background: #fff; border-top: 1px solid #e1e8ed; }
.order-form-section .form-container { 
    max-width: 800px; margin: 0 auto; background: #f4f7f9; padding: 40px; 
    border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-left: 4px solid var(--q-blue); border-top: none;
}
.order-form-section .form-container h3 { font-size: 1.8rem; color: var(--q-blue); margin-top: 0; margin-bottom: 10px; }

/* 8.2 Formulář a údaje na stránce Kontakt (Bílé s horním pruhem) */
.contact-section { padding: 40px 8% 80px; }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; align-items: start; }

.contact-grid .form-container { 
    background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    border-top: 4px solid var(--q-blue); border-left: none; max-width: 100%; margin: 0;
}
.contact-grid .form-container h3, .contact-grid .form-container h2 { 
    color: var(--q-blue); font-size: 1.6rem; margin-top: 0; margin-bottom: 25px; 
}

/* 8.3 Společné prvky pro všechny formuláře */
.form-container p { margin-bottom: 25px; color: #555; }
.form-grid, .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px;}
.order-form-section .form-group { margin-bottom: 0;}
.form-group.full-width { grid-column: 1 / -1; }

.form-group label { font-weight: bold; margin-bottom: 5px; font-size: 0.9rem; color: #1a1a1a; }
.order-form-section .form-group label { margin-bottom: 2px;}
.form-hint { font-size: 0.8rem; color: #666; margin-bottom: 6px; }

.form-group input, .form-group select, .form-group textarea { 
    padding: 12px; border: 1px solid #d1d8df; border-radius: 4px; font-family: inherit; font-size: 1rem; transition: border-color 0.3s; box-sizing: border-box; width: 100%; 
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--q-blue); box-shadow: 0 0 0 2px rgba(0, 80, 138, 0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.order-form-section .form-group textarea { min-height: 100px; }

#radky_napoveda { font-size: 0.85rem; color: var(--q-blue); margin-top: 5px; font-weight: bold; display: none; }

/* 8.4 Kontaktní karta vpravo */
.contact-info { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-top: 4px solid var(--q-blue); }
.contact-info h3 { color: var(--q-blue); font-size: 1.6rem; margin-top: 0; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.info-block { margin-bottom: 25px; }
.info-block h4 { color: #1a1a1a; margin: 0 0 5px 0; font-size: 1.1rem; }
.info-block p { margin: 0; color: #555; font-size: 1.05rem; }
.info-block a { color: var(--q-blue); font-weight: bold; text-decoration: none; transition: color 0.2s; }
.info-block a:hover { color: #003a66; text-decoration: underline; }
.map-container { margin-top: 25px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); height: 250px; }

/* --- 9. STAVOVÉ STRÁNKY (404, Děkujeme, Chyba) --- */
body.status-page { text-align: center; padding-top: 10vh; }
.status-box { background: white; max-width: 600px; margin: 0 auto; padding: 50px 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--q-blue); text-align: center; }
.status-box h1 { color: var(--q-blue); margin-top: 0; font-size: 2.5rem; }
.status-box p { font-size: 1.1rem; color: #555; }
.status-box a { display: inline-block; margin-top: 25px; color: white; background: var(--q-blue); padding: 12px 24px; text-decoration: none; border-radius: 4px; font-weight: bold; text-transform: uppercase; transition: background 0.3s; }
.status-box a:hover { background: #003a66; }

/* --- 10. PATIČKA A COOKIE LIŠTA --- */
footer { background: var(--q-dark); color: #ccc; padding: 50px 8%; display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; gap: 40px; border-top: 4px solid var(--q-blue); line-height: 1.8; }
footer > div { flex: 1; min-width: 250px; }
footer h4 { color: #fff; margin-bottom: 15px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; }
footer p { margin-top: 0; margin-bottom: 5px; }
footer a.footer-link { color: #ccc; text-decoration: none; transition: 0.3s; }
footer a.footer-link:hover { color: #fff; border-bottom: 1px solid var(--q-blue); }

#cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #1a1a1a; color: #f4f7f9; padding: 15px 20px; text-align: center; font-family: 'Candara', 'Optima', sans-serif; box-sizing: border-box; z-index: 9999; display: none; }
#cookie-banner p { margin: 0 0 10px 0; font-size: 1rem; }
.cookie-btn { background-color: var(--q-blue); color: white; border: none; padding: 10px 24px; margin: 0 10px; cursor: pointer; border-radius: 4px; font-weight: bold; text-transform: uppercase; transition: background 0.3s; }
.cookie-btn.decline { background-color: #555; }
.cookie-btn:hover { background-color: #003a66; }
.cookie-btn.decline:hover { background-color: #333; }

/* --- 11. MOBILNÍ ZOBRAZENÍ (RESPONZIVITA) --- */
@media (max-width: 900px) {
    .menu-btn { display: block; }
    .nav-right { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-top: 1px solid #eee; gap: 20px; }
    #menu-toggle:checked ~ .nav-right { display: flex; }
    #menu-toggle:checked ~ .menu-btn .menu-icon { background: transparent; }
    #menu-toggle:checked ~ .menu-btn .menu-icon::before { top: 0; transform: rotate(45deg); }
    #menu-toggle:checked ~ .menu-btn .menu-icon::after { top: 0; transform: rotate(-45deg); }
    .nav-links { flex-direction: column; align-items: center; gap: 15px; }
    .btn-poptavka { width: 100%; text-align: center; box-sizing: border-box; }

    .dropdown { width: 100%; text-align: center; display: block; position: static; }
    .dropdown-content { display: none; position: static; box-shadow: none; min-width: 100%; background-color: #fff !important; border-radius: 0; margin-top: 10px; padding: 5px 0; border-top: 1px solid var(--q-blue) !important; border-bottom: 1px solid var(--q-blue) !important; }
    .dropdown-content.show-on-mobile { display: block !important; }
    .dropdown-content a { padding: 12px 15px; text-align: center; background-color: #fff !important; border-bottom: none !important; }

    .hero, .info-split { grid-template-columns: 1fr; text-align: left; padding: 40px 5%; gap: 30px;}
    .hero-text h1 { font-size: 2.2rem; }
    
    /* ÚPRAVA PRO ZMENŠENÍ OBRÁZKU NA MOBILU */
    .hero-photo-container,
    .hero.hero-index .hero-photo-container { 
        max-width: 500px; /* Zvětšeno, aby to ladilo se šířkou karet dole */
        width: 100%;
        margin: 0 auto; 
        display: block !important; /* Vypne flexbox natahování z desktopu */
    }
    .hero-photo-container img,
    .hero.hero-index .hero-photo-container img { 
        width: 100%; 
        height: auto !important; 
        max-height: 400px !important; /* Pojistka: na mobilu fotka nebude nikdy vyšší než 400px */
        object-fit: cover; /* Případný přebytek na výšku se čistě a neviditelně ořízne */
    }
    
    .services-grid, .materials-grid, .form-grid, .contact-grid, .topic-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    
    .global-tree-line, .branch-svg, .top-branch-container { display: none; }
    .tree-section, .materials-section, .gallery-section, .pricing-section, .order-form-section, .contact-section { padding: 40px 5%; }
    .tree-item { width: 100%; margin: 0 0 20px 0 !important; padding: 0 !important; text-align: left !important; }
    .tree-card { border-left: 4px solid var(--q-blue); min-height: auto; margin-top: 0; }
    .tree-card:hover { transform: none; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }

    .form-container, .contact-info, .applications-box { padding: 25px; }
    .contact-grid .form-container { padding: 25px; }
    
    .process-steps::before { left: 25px; }
    .step-card { padding: 25px 25px 25px 60px; }
    .step-icon { left: 5px; width: 40px; height: 40px; }
    .step-icon svg { width: 20px; height: 20px; }
    
    footer { flex-direction: column; gap: 30px; padding: 40px 5%; text-align: center;}
}

/* --- OSOBNÍ PŘÍSTUP (Vycentrovaný text dole na stránkách) --- */
.personal-approach {
    padding: 0 8% 60px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.personal-approach h3,
.personal-approach h2 {
    color: var(--q-blue);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.personal-approach p {
    font-size: 1.1rem;
    color: #333;
}

/* --- 12. ÚPRAVY PRO FÓLIOVOU REKLAMU A NOVOU STRUKTURU --- */

/* Oddělovač v menu */
.nav-separator {
    width: 2px;
    height: 22px;
    background-color: var(--q-blue);
    border-radius: 2px;
}

/* Oddělovací linka v hero sekci */
.hero-separator {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, var(--q-blue), transparent);
    margin: 30px 0 20px;
    opacity: 0.3;
}

/* Nadpis, který funguje jako odkaz */
.hero-subtitle-link {
    font-size: 1.4rem;
    color: var(--q-blue);
    text-decoration: none;
    display: inline-block;
    margin-top: 0;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.hero-subtitle-link:hover {
    color: #003a66;
}

/* Animovaná šipka v nadpisu */
.hero-subtitle-link .arrow-right {
    display: inline-block;
    transition: transform 0.2s ease;
}

.hero-subtitle-link:hover .arrow-right {
    transform: translateX(5px);
}

.hero-subtext {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0 !important; 
    line-height: 1.5;
}

/* Oddělení hlavního tlačítka */
.hero-actions-main {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 80, 138, 0.1); 
}

/* Zvětšení hlavního tlačítka pro větší důraz */
.btn-large {
    font-size: 1.05rem;
    padding: 14px 30px;
    display: inline-block;
}

/* Modifikátor pro 4 sloupce karet na nové podstránce */
@media (min-width: 901px) {
    .services-grid.four-columns {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Responzivita pro mobilní zařízení pro tyto nové prvky */
@media (max-width: 900px) {
    .nav-separator {
        width: 100%;
        height: 2px;
        background-color: var(--q-blue);
        margin: 5px 0;
    }
    .hero-actions-main {
        text-align: center;
    }
    .btn-large {
        width: 100%;
        box-sizing: border-box;
    }
}