
        :root { --primary: #003c7c; --success: #28a745; --danger: #dc3545; }
        
        body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 0; 
    color: #333;

    /* Výraznější inženýrský rastr (12% průhlednost) */
    background-color: #eaeff2;
    background-image: 
        linear-gradient(rgba(0, 86, 179, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 86, 179, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
}

        header {
    background: var(--primary);
    color: white;
    padding: 30px 20px;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center; /* Vertikální zarovnání loga na střed textu */
    gap: 30px; /* Mezera mezi logem a nadpisem */
}

.logo-img {
    height: 110px; /* Přiměřená výška loga */
    width: auto;  /* Zachování poměru stran */
    flex-shrink: 0; /* Logo se nebude zmenšovat při nedostatku místa */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); /* Jemný stín pod logem */
}

.header-text {
    text-align: center; /* Text bude zarovnán doleva vedle loga */
}

.header-text h1 {
    margin: 0;
    font-size: 2.2em;
}

/* Responzivita: Na malých mobilech dáme logo nad nadpis */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .header-text {
        text-align: center;
    }
}

        main { max-width: 1000px; margin: 20px auto; padding: 20px; }
        .theory-intro { margin-bottom: 30px; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
        
        .demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .widget-box { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
        .full-width { grid-column: span 2; }
        
        .polymer-banner { background: #e9ecef; padding: 10px; border-left: 4px solid var(--primary); margin-bottom: 15px; font-size: 0.9em; }
        .row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
        .row label { font-weight: bold; min-width: 70px; }
        select, input[type="number"] { padding: 6px; border: 1px solid #ccc; border-radius: 4px; }
        select { flex-grow: 1; }
        input[type="number"] { width: 70px; text-align: right; }
        
        .results-panel { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }
        .red-ok { color: var(--success); font-weight: bold; font-size: 1.2em; }
        .red-bad { color: var(--danger); font-weight: bold; font-size: 1.2em; }
        
        .kin-controls { display: flex; gap: 10px; margin-bottom: 15px; }
        .kin-controls button { padding: 8px 15px; background: var(--primary); color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
        .chart-container { position: relative; height: 350px; width: 100%; }
        
        .software-showcase { margin-top: 40px; }
        .screenshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); /* 3 sloupce */  gap: 25px; margin-top: 30px;}
        .ss-box { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s;}
        .ss-box:hover { transform: translateY(-5px); /* Jemný interaktivní efekt */}
        .ss-placeholder { background: #e2e8f0; height: 160px; /* Prostor pro vaše screenshoty */ display: flex; align-items: center; justify-content: center;
    border: 2px dashed #cbd5e1; margin-bottom: 15px; font-weight: bold; color: #64748b; border-radius: 4px;}

/* Responzivita pro tablety a mobily */
@media (max-width: 992px) {
    .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .screenshot-grid { grid-template-columns: 1fr; }
}

/* Zarovnání delších textů do bloku s dělením slov */
.theory-intro p,
.ss-box p,
.footer-column p {
    text-align: justify;
    
    /* Automatické dělení slov podle pravidel češtiny */
    hyphens: auto;
    -webkit-hyphens: auto; /* Pro prohlížeče Safari (Apple) */
    -ms-hyphens: auto;     /* Pro starší prohlížeče */
}
.cta-section p {
    text-align: center;
}

/* ========================================== */
/* LIGHTBOX A GALERIE                         */
/* ========================================== */

/* Styl pro náhledové obrázky v mřížce */
.ss-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9; /* Vynutí poměr 16:9 i před načtením */
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ss-img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Skryté modální okno na pozadí */
.lightbox {
    display: none; /* Ve výchozím stavu skryto */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Tmavé poloprůhledné pozadí */
    text-align: center;
    backdrop-filter: blur(4px); /* Moderní rozmazání pozadí (podporováno většinou prohlížečů) */
}

/* Zvětšený obrázek uvnitř okna */
.lightbox img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh; /* Omezení výšky na 85% obrazovky (viewport height) */
    margin-top: 5vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 4px;
}

/* Popisek pod obrázkem */
#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1024px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 1.1em;
}

/* Křížek pro zavření */
.zavrit-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.zavrit-btn:hover {
    color: #bbb;
}

/* ========================================== */
/* CTA SEKCE A ZÁPATÍ                         */
/* ========================================== */

.cta-section {
    text-align: center;
    background: #ffffff;
    padding: 60px 20px;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary);
}

.cta-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.cta-section p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Na mobilech skočí pod sebe */
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.cta-button:hover {
    background-color: #004494;
    border-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Styl pro sekundární tlačítko (Manuál) */
.secondary-btn {
    background-color: transparent;
    color: var(--primary);
}

.secondary-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* Styl pro zápatí */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    margin-top: 60px;
    padding: 50px 0 20px 0;
}

/* Úprava zápatí pro 3 sloupce místo 2 */
.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* První sloupec je širší */
    padding: 0 20px;
    gap: 40px;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-column p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #bdc3c7;
}

.footer-column a {
    color: #3498db;
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.85em;
    color: #95a5a6;
}

/* Responzivita zápatí pro mobily */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* ========================================== */
/* FIREMNI HOMEPAGE IDUS                      */
/* ========================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.home-page main,
.software-page main {
    width: min(1120px, calc(100% - 32px));
}

.site-hero,
.software-hero {
    position: relative;
    overflow: hidden;
    padding: 0 20px 42px;
    background:
        linear-gradient(135deg, rgba(0, 60, 124, 0.98), rgba(0, 86, 179, 0.92)),
        radial-gradient(circle at 78% 22%, rgba(40, 167, 69, 0.28), transparent 36%);
    color: #fff;
}

.site-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.12));
    pointer-events: none;
}

.top-nav {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
}

.brand-logo-img {
    display: block;
    width: 126px;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.brand-text {
    color: #9fd2ff;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    padding: 10px 13px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 14px;
    border-radius: 4px;
    font-weight: 700;
}

.hero-shell {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    min-height: 410px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: center;
    gap: 44px;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: #63d18f;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-lead {
    max-width: 520px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.07rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-panel {
    align-self: stretch;
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.metric-row {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.metric-row span {
    display: block;
    color: #9fd2ff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-row strong {
    display: block;
    margin-top: 5px;
    font-size: 1.25rem;
    color: #fff;
}

.intro-band,
.software-feature,
.workflow-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.intro-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: -34px auto 40px;
    padding: 28px;
    position: relative;
    z-index: 3;
    border-top: 5px solid var(--primary);
}

.intro-band h2,
.section-heading h2,
.software-copy h2,
.workflow-section h2 {
    margin: 0;
    color: #1f2d3a;
}

.intro-band p {
    max-width: 780px;
    margin: 12px 0 0;
    line-height: 1.7;
    color: #53616f;
}

.text-link {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.text-link:hover {
    text-decoration: underline;
}

.services-section,
.workflow-section {
    margin-top: 42px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    background: #fff;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary);
}

.service-icon {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    height: 34px;
    padding: 0 8px;
    border-radius: 4px;
    color: #fff;
    background: #003c7c;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.service-card h3 {
    margin: 0 0 10px;
    color: #1f2d3a;
}

.service-card p {
    margin: 0;
    color: #53616f;
    line-height: 1.65;
}

.software-feature {
    margin-top: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 30px;
    padding: 28px;
    border-left: 5px solid var(--primary);
}

.software-copy p {
    color: #53616f;
    line-height: 1.7;
}

.check-list {
    margin: 20px 0 28px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.check-list li {
    position: relative;
    padding-left: 26px;
    color: #34495e;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 12px;
    height: 2px;
    background: #28a745;
}

.software-preview {
    display: flex;
    align-items: center;
}

.software-preview img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #c9d6e2;
    box-shadow: 0 12px 30px rgba(0, 60, 124, 0.18);
}

.workflow-section {
    padding: 28px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.workflow-grid div {
    border-left: 3px solid #28a745;
    padding-left: 18px;
}

.workflow-grid span {
    color: #0056b3;
    font-weight: 900;
}

.workflow-grid h3 {
    margin: 8px 0 8px;
    color: #1f2d3a;
}

.workflow-grid p {
    margin: 0;
    color: #53616f;
    line-height: 1.6;
}

.about-section {
    margin-top: 42px;
    padding: 28px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-left: 5px solid var(--primary);
}

.about-textbox {
    padding: 22px;
    background: #f6f9fc;
    border: 1px solid #d7e2ec;
    border-radius: 8px;
}

.about-textbox h3 {
    margin: 0 0 12px;
    color: #1f2d3a;
}

.about-textbox p {
    margin: 0 0 12px;
    color: #53616f;
    line-height: 1.7;
}

.about-textbox p:last-child {
    margin-bottom: 0;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.certificate-slot {
    aspect-ratio: 4.25 / 3;
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 16px;
    border: 2px dashed #a9bfd1;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(0, 60, 124, 0.04), rgba(40, 167, 69, 0.04)),
        #f8fbfd;
    color: #607386;
    font-weight: 800;
    text-align: center;
}

.company-cta {
    border-top-color: #28a745;
}

.inquiry-section {
    margin-top: 32px;
    padding: 20px 22px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-top: 5px solid var(--primary);
}

.inquiry-section .section-heading p {
    max-width: 820px;
    color: #53616f;
    line-height: 1.45;
    margin: 8px 0 0;
}

.inquiry-form {
    display: grid;
    gap: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.inquiry-form label {
    display: grid;
    gap: 5px;
    color: #1f2d3a;
    font-weight: 700;
    font-size: 0.95rem;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c9d6e2;
    border-radius: 4px;
    color: #243342;
    background: #fff;
    font: inherit;
}

.inquiry-form textarea {
    resize: vertical;
    min-height: 96px;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    outline: 2px solid rgba(0, 86, 179, 0.22);
    border-color: #0056b3;
}

.anti-spam-question {
    max-width: 250px;
}

.form-submit {
    justify-self: start;
    cursor: pointer;
}

.required-mark {
    color: #dc3545;
    font-weight: 900;
}

.form-note {
    margin: -2px 0 0;
    color: #53616f;
    font-size: 0.88rem;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status-success {
    border-top-color: #28a745;
}

.form-status-error {
    border-top-color: #dc3545;
}

.form-result-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0, 60, 124, 0.72), rgba(0, 43, 92, 0.82)),
        linear-gradient(rgba(0, 86, 179, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 86, 179, 0.12) 1px, transparent 1px);
    background-size: auto, 20px 20px, 20px 20px;
}

.form-result-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    margin: 0 auto;
    padding: 32px 16px;
}

.form-result-card {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 8px;
    padding: 36px 30px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    border-top: 7px solid var(--primary);
}

.form-result-card h1 {
    margin: 18px 0 12px;
    color: #1f2d3a;
}

.form-result-card p {
    margin: 0 auto 26px;
    color: #53616f;
    line-height: 1.65;
}

.form-result-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin: 0 auto;
    border-radius: 50%;
    color: #fff;
    background: #0056b3;
    font-size: 2.5rem;
    font-weight: 900;
}

.form-result-card.form-status-success {
    border-top-color: #28a745;
}

.form-result-card.form-status-success .form-result-icon {
    background: #28a745;
}

.form-result-card.form-status-error {
    border-top-color: #dc3545;
}

.form-result-card.form-status-error .form-result-icon {
    background: #dc3545;
}

.on-dark.secondary-btn {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.on-dark.secondary-btn:hover {
    background: #fff;
    color: var(--primary);
}

.software-hero {
    padding-bottom: 32px;
}

.software-hero .header-container {
    padding-top: 26px;
}

@media (max-width: 900px) {
    .hero-shell,
    .software-feature {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.28);
        padding: 14px 0 0;
    }

    .service-grid,
    .workflow-grid,
    .certificate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .top-nav {
        min-height: 72px;
        align-items: flex-start;
        padding-top: 14px;
    }

    .brand-text {
        display: none;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 68px;
        padding: 12px;
        background: rgba(0, 43, 92, 0.96);
        border-radius: 4px;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero-shell {
        min-height: 0;
        padding-top: 30px;
    }

    .intro-band {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 20px;
    }

    .service-grid,
    .workflow-grid,
    .certificate-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .demo-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .row {
        align-items: stretch;
        flex-wrap: wrap;
    }
}
