:root {
    --primary-color: #1e293b;
    --primary-dark: #0f172a;
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #64748b;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    padding-bottom: 70px;
    transition: background-color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: flex;
    flex-direction: column;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 20px;
    line-height: 1;
    display: inline-block;
}

header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
    width: 100%;
}

.header-content {
    width: 80%;
    max-width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    max-width: 100%;
}

.btn-contact-modal {
    background: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-contact-modal:hover { background: #ffffff; color: #000000; }

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
}

nav.main-nav {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-wrapper { 
    width: 80%;
    max-width: 80%;
    margin: 0 auto;
}

.nav-list { 
    display: flex; 
    justify-content: center; 
    gap: 10px; 
    padding: 10px 0; 
    list-style: none;
    flex-wrap: wrap;
    width: 100%;
}

.nav-link {
    background: transparent;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none; /* Zajišťuje, že položky v menu nebudou podtržené */
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--sec-color, var(--primary-color));
    background: #f8fafc;
    border-color: var(--sec-color, var(--primary-color));
}

.container { 
    width: 80%;
    max-width: 80%;
    margin: 1.5rem auto; 
    padding: 0;
    flex: 1;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 6px solid var(--primary-color);
    transition: border-color 0.3s ease;
    width: 100%;
}

.hero-banner {
    position: relative;
    width: 100%;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    background-color: #2c3e50;
    display: flex;
    align-items: flex-end;
}

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 70%); }
.hero-title-box { position: relative; z-index: 2; padding: 1.5rem 2rem; color: #ffffff; width: 100%; }
.hero-title-box h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.2; }
.hero-title-box p { font-size: 0.95rem; opacity: 0.9; }

.subtabs-nav { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    background: #f8fafc; 
    border-bottom: 2px solid #e2e8f0; 
    width: 100%;
}

.subtab-btn {
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.subtab-btn:hover, .subtab-btn.active { 
    color: var(--primary-color); 
    border-bottom-color: var(--primary-color); 
    background: #ffffff; 
}

.card-body { padding: 1.8rem 2.2rem; width: 100%; }
.subtab-content { display: none; width: 100%; }
.subtab-content.active { display: block; }

.rich-content {
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.75;
}

.rich-content p, .rich-content div {
    margin-bottom: 0.9rem;
}

.rich-content b, .rich-content strong {
    font-weight: 700;
    color: #0f172a;
}

.rich-content i, .rich-content em {
    font-style: italic;
}

.rich-content u {
    text-decoration: underline;
}

.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.rich-content h1 { font-size: 1.6rem; }
.rich-content h2 { font-size: 1.35rem; }
.rich-content h3 { font-size: 1.15rem; }
.rich-content h4 { font-size: 1.05rem; }

.rich-content ul {
    list-style-type: disc !important;
    margin: 0.8rem 0 1.2rem 2rem !important;
    padding-left: 0.5rem !important;
}

.rich-content ol {
    list-style-type: decimal !important;
    margin: 0.8rem 0 1.2rem 2rem !important;
    padding-left: 0.5rem !important;
}

.rich-content li {
    display: list-item !important;
    margin-bottom: 0.4rem !important;
    padding-left: 0.2rem !important;
}

.rich-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background: #f8fafc;
    color: #64748b;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
}

.rich-content th, .rich-content td {
    border: 1px solid #cbd5e1;
    padding: 9px 12px;
    text-align: left;
}

.rich-content th {
    background: #f1f5f9;
    font-weight: 600;
}

.rich-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.rich-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
}

.price-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.price-table th, .price-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.price-table td.price { font-weight: 700; color: var(--primary-color); font-size: 1rem; white-space: nowrap; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 1rem; width: 100%; }
.portfolio-card { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; transition: transform 0.2s, box-shadow 0.2s; }
.portfolio-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.portfolio-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.portfolio-info { padding: 1rem; }

.form-group { margin-bottom: 1.2rem; width: 100%; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.4rem; }
.form-control { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; font-size: 1rem; }
.btn-submit { background: var(--primary-color); color: #fff; border: none; padding: 14px 28px; border-radius: 8px; font-weight: 600; cursor: pointer; width: 100%; max-width: 300px; transition: opacity 0.2s; }
.btn-submit:hover { opacity: 0.9; }

.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #000000;
    border-top: 1px solid #333;
    z-index: 3000;
    grid-template-columns: 1fr 1fr;
}

.mobile-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.mobile-sticky-btn.call { background: var(--primary-color); }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2000; justify-content: center; align-items: center; padding: 1rem; }
.modal-overlay.active { display: flex; }
.contact-bw-card { background: #111111; color: #ffffff; border: 2px solid #333; border-radius: 16px; width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto; }
.contact-bw-header { padding: 1.2rem 1.5rem; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; background: #000; }
.contact-bw-body { padding: 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.bw-info-list { display: flex; flex-direction: column; gap: 1.2rem; }
.bw-map-container { border: 1px solid #333; border-radius: 12px; overflow: hidden; height: 240px; filter: grayscale(100%); width: 100%; }

@media (max-width: 768px) {
    .header-content, .nav-wrapper, .container { 
        width: 100% !important; 
        max-width: 100% !important; 
        padding-left: 1rem; 
        padding-right: 1rem; 
    }
    .card-body { padding: 1.2rem 1rem; }
    .hamburger-btn { display: flex; }
    
    nav.main-nav { display: none; }
    nav.main-nav.open { display: block; }
    
    .nav-list { flex-direction: column; align-items: stretch; gap: 6px; }
    .nav-link { justify-content: center; border-radius: 8px; }

    .mobile-sticky-bar { display: grid; }
    .subtab-btn { flex: 1 1 45%; padding: 10px 8px; font-size: 0.85rem; }
    .header-content { justify-content: space-between; text-align: left; }
    .hero-title-box { padding: 1rem; }
    .hero-title-box h1 { font-size: 1.3rem; }
}