/* ======================================================================
   1. ZÁKLADNÍ RESET A GLOBÁLNÍ STYLY
   ====================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================================================================
   2. HORNÍ KONTAKTNÍ LIŠTA
   ====================================================================== */
.top-bar {
    background-color: #f4f4f4;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
}

/* ======================================================================
   3. HLAVNÍ HLAVIČKA A NAVIGACE
   ====================================================================== */
.main-header {
    background-color: #1a1a1a;
    padding: 5px 0;
    position: relative;
    border-bottom: 3px solid #bc0000;
    z-index: 99;
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.main-header nav {
    display: flex;
    gap: 35px;
    padding-top: 12px;
}

.main-header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-header nav a:hover, 
.main-header nav a.active { color: #bc0000; }

.logo-wrapper {
    flex-shrink: 0;
    z-index: 100;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -20px;
}

.web-logo {
    height: 300px;
    width: auto;
    display: block;
    filter: drop-shadow(0px 6px 12px rgba(0, 0, 0, 0.6));
}

/* ======================================================================
   4. HERO & DYNAMICKÝ OBSAH
   ====================================================================== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)), #333;
    color: #fff;
    padding: 250px 0 25px 0;
    text-align: center;
}

.hero h1 { font-size: 2.5rem; text-transform: uppercase; margin-bottom: 15px; line-height: 1.2; }
.hero .subtitle { font-size: 1.2rem; margin-bottom: 30px; color: #ccc; }

.btn {
    display: inline-block;
    background-color: #bc0000;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
.btn:hover { background-color: #8a0000; }

#dynamic-content-area { scroll-margin-top: 130px; }

.dynamic-content-wrapper {
    width: 96%;
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 15px !important; /* zaoblení sekcí */
    box-sizing: border-box;
    color: #222222; /* font v kontejnerech */
}

/* ======================================================================
   5. SEKCE SLUŽBY
   ====================================================================== */
.services-preview { padding: 60px 0; background-color: #fafafa; text-align: center; }
.services-preview h2 { font-size: 2rem; text-transform: uppercase; margin-bottom: 40px; position: relative; padding-bottom: 10px; }
.services-preview h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; background-color: #bc0000;
}

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }

.service-card {
    background: #fff; padding: 30px 20px; border-left: 5px solid #1a1a1a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none; display: block; color: #1a1a1a;
}
.service-card:hover { transform: translateY(-3px); border-color: #bc0000; }
.service-card h3 { font-size: 1.15rem; color: #1a1a1a; font-weight: 600; }

/* ======================================================================
   6. PARTNEŘI
   ====================================================================== */
.partners-zone { padding: 30px 0; background-color: #fff; text-align: center; /* border-top: 1px solid #eee; */ }
.partners-grid { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; /* padding: 20px 0; */ }
.partner-logo { display: block; width: 150px; }
.partner-logo img { width: 100%; height: auto; filter: grayscale(100%) brightness(0.5); opacity: 0.6; transition: all 0.4s ease; }
.partner-logo:hover img { filter: grayscale(0%) brightness(1); opacity: 1; transform: scale(1.1); }

/* ======================================================================
   7. PATIČKA
   ====================================================================== */
.main-footer { background-color: #1a1a1a; color: #aaa; padding: 40px 0 20px 0; font-size: 0.9rem; border-top: 3px solid #bc0000; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-bottom: 30px; text-align: left; }
.main-footer h3 { color: #fff; margin-bottom: 15px; font-size: 1.1rem; font-weight: 600; }

.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #333; font-size: 0.8rem; color: #777; margin-top: 20px; }
.footer-link { color: #777; text-decoration: none; transition: color 0.2s ease; }
.footer-link:hover { color: #fff; text-decoration: underline; }

a { text-decoration: none; transition: all 0.2s ease; }

/* ======================================================================
   8. RESPONZIVITA
   ====================================================================== */
@media screen and (max-width: 900px) { 
    .services-grid { grid-template-columns: repeat(2, 1fr); } 
}

@media screen and (max-width: 650px) {
    .header-grid { flex-direction: column; gap: 15px; }
    .logo-wrapper { position: relative; left: auto; transform: none; top: 0; padding: 10px 0; }
    .web-logo { height: 240px; }
    
    .main-header nav { padding: 10px 0; justify-content: center; flex-wrap: wrap; gap: 15px; }
    .main-header nav a { padding: 5px 10px; }
    
    /* Dynamický obsah - širší a ošetřený */
    .dynamic-content-wrapper {
        width: 98% !important; 
        margin: 10px auto 20px auto !important;
        /* padding: 20px 15px !important; */ 
        overflow-wrap: anywhere;   
        word-break: break-word;    
    }

    .btn { margin: 5px 0; display: inline-block; width: auto; max-width: 90%; }
    
    .hero { padding: 15px 5px; }
    .hero h1 { font-size: 1.5rem; }
    
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}