/* --- ZÁKLADNÍ NASTAVENÍ A PROMĚNNÉ --- */
:root {
    --color-black: #0d0d0d;
    --color-white: #ffffff;
    --color-grey: #f4f4f4;
    --color-accent: #333333;
    --font-primary: 'Jura', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

body {
    margin: 0; padding: 0; font-family: var(--font-secondary);
    color: var(--color-black); background-color: var(--color-white); line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary); font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- HLAVIČKA --- */
.site-header { background: var(--color-black); color: var(--color-white); padding: 20px 0; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 50px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-family: var(--font-primary); font-size: 1.1rem; transition: color 0.3s; }
.main-nav a:hover, .main-nav a.active { color: #999; border-bottom: 2px solid #999; }
.cart-icon-link {
    font-family: var(--font-primary); border: 1px solid #fff; padding: 5px 15px;
    border-radius: 4px; transition: 0.3s;
}
.cart-icon-link:hover { background: #fff; color: #000; }
.sub-header-strip {
    background: #1a1a1a; color: #555; padding: 5px 0; font-size: 0.8rem;
    letter-spacing: 4px; text-align: center;
}

/* --- OBECNÉ PRVKY --- */
.page-title { text-align: center; margin: 50px 0 30px; font-size: 2.5rem; }
.styled-input {
    width: 100%; padding: 12px; border: 1px solid #ccc; background: #f9f9f9;
    font-family: var(--font-secondary); margin-bottom: 15px; box-sizing: border-box;
}
.btn-next, .btn-submit, .btn-save-part, .cta-button {
    background: var(--color-black); color: var(--color-white); border: none;
    padding: 15px 30px; font-family: var(--font-primary); font-weight: bold;
    cursor: pointer; transition: 0.3s; text-transform: uppercase; display: inline-block; text-align: center;
}
.btn-next:hover, .btn-submit:hover, .btn-save-part:hover, .cta-button:hover { background: #333; }
.btn-prev {
    background: #ccc; color: #000; border: none; padding: 15px 30px;
    font-family: var(--font-primary); font-weight: bold; cursor: pointer; margin-right: 10px;
}

/* --- TEXT NA ÚVODNÍ STRÁNCE (Oprava zarovnání) --- */
.intro-text {
    display: block;
    width: 100%;
    text-align: center !important; /* Vynutí střed pro kontejner */
    margin-top: 40px;
    margin-bottom: 40px;
}

.intro-text h1 {
    text-align: center !important; /* Vynutí střed pro nadpis */
    width: 100%;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.intro-text p {
    text-align: center !important; /* Vynutí střed pro odstavec */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
    line-height: 1.6;
}

/* --- KARTY (INDEX, ESHOP) --- */
.services-grid, .product-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-bottom: 50px;
}
.service-card, .product-card {
    border: 1px solid #eee; transition: 0.3s; background: #fff; display: flex;
    flex-direction: column; height: 100%;
    flex: 0 1 350px;
    min-width: 280px;
}
.service-card:hover, .product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); transform: translateY(-5px);
}
.image-wrapper, .card-img-wrapper {
    width: 100%; height: 250px; overflow: hidden; position: relative;
    background-color: #f9f9f9; border-bottom: 1px solid #eee; display: flex; justify-content: center; align-items: center;
}
.image-wrapper img, .card-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.service-card:hover .image-wrapper img, .product-card:hover .card-img-wrapper img { transform: scale(1.05); }

.service-card h3, .card-title { text-align: center; margin-top: 20px; padding: 0 15px; }
.card-content { padding: 0 20px 20px; flex-grow: 1; display: flex; flex-direction: column; }
.service-card p { color: #666; margin-bottom: 15px; text-align: center; padding: 0 15px 15px;}
.card-price {
    text-align: center; font-size: 1.1rem; color: #555; margin-top: 10px; margin-bottom: 20px;
}

/* --- COOKIE LIŠTA --- */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: #1a1a1a; color: #fff; padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2); display: none; z-index: 10000; text-align: center;
}
.cookie-content {
    max-width: 1200px; margin: 0 auto; display: flex;
    justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap;
}
.btn-cookie {
    background-color: #fff; color: #000; border: none; padding: 10px 20px;
    font-weight: bold; cursor: pointer; border-radius: 4px;
}

/* --- KONTAKTY (OPRAVA ROZLOŽENÍ 50/50) --- */
.contact-content-wrapper {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
    justify-content: space-between;
    align-items: flex-start;
}
.contact-form-column, .address-map-column {
    flex: 1; /* Každý sloupec zabere 50% */
}
.company-address-box {
    background: #f9f9f9; padding: 30px;
    border-left: 5px solid var(--color-black);
    font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px;
}
.general-contact-info a { font-weight: bold; }
.map-responsive iframe { width: 100%; }


/* --- KONFIGURÁTOR POPTÁVEK --- */
.step-indicator {
    display: flex; justify-content: space-between; margin-bottom: 40px;
    border-bottom: 1px solid #ddd; padding-bottom: 10px;
    max-width: 800px; margin: 0 auto 40px;
}
.step { color: #ccc; font-family: var(--font-primary); font-weight: bold; }
.step.active { color: var(--color-black); }
.form-step { max-width: 1000px; width: 100%; margin: 0 auto; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.step-title { margin-top: 0; margin-bottom: 30px; border-bottom: 2px solid var(--color-black); padding-bottom: 10px; }
.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; margin-bottom: 30px; }
.material-card {
    border: 1px solid #cccccc; border-radius: 8px; padding: 20px 10px;
    text-align: center; cursor: pointer; transition: all 0.2s ease;
    background: #ffffff; position: relative;
}
.material-card:hover { border-color: #666; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.material-card.active { border: 3px solid #000000 !important; background-color: #f0f8ff !important; box-shadow: 0 0 10px rgba(0,0,0,0.15); }
.material-card.active::after {
    content: '✔'; position: absolute; top: 5px; right: 8px; color: #000;
    font-weight: bold; font-size: 1.2rem; background: #fff; border-radius: 50%;
    width: 20px; height: 20px; line-height: 20px; text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.mat-icon { font-size: 2.5rem; margin-bottom: 10px; color: #555; transition: 0.3s; }
.material-card.active .mat-icon { color: #000 !important; transform: scale(1.1); }
.material-card h4 { margin: 10px 0 5px; font-size: 1rem; }
.config-panel { background: #f9f9f9; padding: 30px; border-radius: 8px; margin-bottom: 30px; border: 1px solid #eee; }
.large-select { font-size: 1.1rem; padding: 15px; height: auto; }
.btn-small-edit { background: none; border: none; text-decoration: underline; cursor: pointer; color: blue; margin-left: 10px; }
.sheet-limit-box {
    margin-top: 5px; margin-bottom: 25px; padding: 15px; background-color: #fff9c4;
    border-left: 5px solid #fbc02d; color: #333; font-weight: bold; font-size: 1.1rem;
    display: none; border-radius: 4px;
}
.sheet-limit-box:not(:empty) { display: block; animation: fadeIn 0.3s; }
.ral-config-box {
    background: #eef; padding: 15px; border-radius: 4px; margin-top: -15px;
    margin-bottom: 20px; border: 1px solid #ccd; animation: fadeIn 0.3s; display: none;
}
.ral-config-box label { font-weight: bold; color: #444; }
.method-tabs { display: flex; margin-bottom: 20px; border-bottom: 2px solid #ddd; }
.method-tab {
    flex: 1; text-align: center; padding: 15px; cursor: pointer; font-weight: bold;
    color: #888; background: #f9f9f9; border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.method-tab.active {
    background: #fff; color: var(--color-black); border: 2px solid #ddd;
    border-bottom: 2px solid #fff; margin-bottom: -2px;
}
.method-content { display: none; animation: fadeIn 0.3s; }
.method-content.active { display: block; }
.upload-box {
    border: 2px dashed #ccc; padding: 40px; text-align: center; border-radius: 8px;
    margin-bottom: 20px; cursor: pointer; background: #fff;
}
.upload-label i { font-size: 3rem; display: block; margin-bottom: 10px; color: #999; }
.shape-config-box {
    background: #fff; border: 1px solid #ddd; padding: 25px; border-radius: 4px; margin-bottom: 20px;
}
.shape-icon-preview { text-align: center; font-size: 3rem; color: #333; margin-bottom: 15px; }
.dimension-inputs {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px; margin-top: 15px; background: #f4f4f4; padding: 15px; border-radius: 4px;
}
.row { display: flex; gap: 20px; margin-bottom: 15px; }
.col { flex: 1; }
.full-width { width: 100%; margin-top: 20px; }
.center { display: flex; justify-content: center; }
.parts-summary-list { margin-top: 40px; border-top: 1px solid #eee; padding-top: 20px; }
.saved-part-item {
    border: 1px solid #eee; padding: 15px; margin-bottom: 10px;
    background: #fff; border-left: 4px solid #333;
}

.site-footer {
    background: #f4f4f4; padding: 40px 0; text-align: center;
    color: #666; margin-top: 50px; border-top: 1px solid #ddd;
}
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px; margin-bottom: 60px;
}
.gallery-item { border: 1px solid #ddd; background: #fff; transition: 0.3s; }
.gallery-item:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.gallery-img-box { height: 250px; overflow: hidden; background: #f9f9f9; cursor: zoom-in; }
.gallery-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover .gallery-img-box img { transform: scale(1.05); }
.gallery-info { padding: 20px; }
.gallery-info h3 {
    font-size: 1.2rem; margin-bottom: 10px;
    border-bottom: 2px solid var(--color-black); display: inline-block;
}

.hamburger { display: none; color: white; font-size: 1.8rem; cursor: pointer; padding: 10px; }

/* =========================================================
   STYLY PRO DETAILNÍ SLUŽBY
   ========================================================= */
.machine-section { margin-bottom: 60px; }
.machine-header { text-align: center; margin-bottom: 30px; }

.machine-img-large {
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto 30px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #eee;
}

.machine-img-large img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Celý stroj bude vidět */
}

/* Tabulky (OPRAVA ŠÍŘKY) */
.table-block {
    width: 100%;
    max-width: 900px; /* Stejná šířka jako text */
    margin: 0 auto;   /* Vycentrování */
    overflow-x: auto;
}
.data-table { border-collapse: collapse; width: 100%; margin-top: 20px; min-width: 500px; }
.data-table th, .data-table td { border: 1px solid #ddd; padding: 12px; text-align: left; }
.data-table th { background-color: #f4f4f4; }

/* Seznamy */
.tech-list, .feature-list { margin-bottom: 20px; max-width: 900px; margin-left: auto; margin-right: auto; }
.tech-list li, .feature-list li { margin-bottom: 8px; border-bottom: 1px dotted #ccc; padding-bottom: 4px; }
.two-column-list { column-count: 2; column-gap: 40px; }

/* Sekce povrchové úpravy */
.surface-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 30px; max-width: 900px; margin-left: auto; margin-right: auto; }
.surface-box { flex: 1; min-width: 300px; background: #f9f9f9; padding: 25px; border-radius: 8px; border: 1px solid #eee; }
.surface-box h3 { border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-bottom: 20px; }
.check-list li { position: relative; padding-left: 25px; border: none; }
.check-list li::before { content: '✔'; position: absolute; left: 0; color: green; font-weight: bold; }

.services-cta { text-align: center; margin-top: 60px; padding: 40px; background: #f4f4f4; border-radius: 8px; }
.services-cta h3 { margin-bottom: 20px; }

.text-block { max-width: 900px; margin: 0 auto 30px; text-align: justify; }
.divider { border: 0; border-top: 1px solid #ddd; margin: 60px 0; }

.eu-project-section { text-align: center; margin-top: 60px; padding: 20px; }
.eu-banner-wrapper img { max-width: 100%; height: auto; }

/* RESPONSIVITA */
@media (max-width: 1024px) {
    .container { width: 100%; padding: 0 15px; }
    .method-tab { padding: 12px 5px; font-size: 0.95rem; }
}
@media (max-width: 768px) {
    .container { max-width: 100%; }
    .header-content { flex-wrap: wrap; position: relative; }
    .hamburger { display: block; order: 2; margin-right: 15px; }
    .logo-link { flex-grow: 1; }
    .cart-icon-link { order: 3; }
    .main-nav {
        display: none; width: 100%; order: 4; margin-top: 15px;
        border-top: 1px solid #333; background-color: var(--color-black);
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; margin: 0; }
    .main-nav a { display: block; padding: 15px 0; border-bottom: 1px solid #222; text-align: center; width: 100%; color: #fff; }
    
    /* Na mobilu pod sebe (Kontakty) */
    .contact-content-wrapper { flex-direction: column; gap: 30px; }
    
    .material-grid { grid-template-columns: repeat(2, 1fr); }
    .method-tab { padding: 10px 5px; font-size: 0.9rem; }
    
    .machine-img-large { height: 250px; }
    .two-column-list { column-count: 1; }
    .text-block { text-align: left; }
}