/* Globální stylizace */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary: #FDC115;       /* Firemní výrazná žlutá */
    --primary-hover: #e0a800; /* Tmavší žlutá pro interakci */
    --dark: #0f172a;          /* Moderní tmavé pozadí (Slate 900) */
    --dark-light: #1e293b;    /* Světlejší tmavá pro vnitřní prvky */
    --bg-light: #f8fafc;      /* Čisté světlé pozadí pro sekce */
    --text-main: #334155;     /* Hlavní text */
    --text-muted: #64748b;    /* Vedlejší popisy */
    --white: #ffffff;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* Navigace */
.navbar {
    background-color: var(--dark);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links .nav-item {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links .nav-item:not(.btn-nav):hover {
    color: var(--primary);
}

.nav-links .nav-item.active:not(.btn-nav) {
    color: var(--primary);
}

.nav-links .nav-item:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links .nav-item.active:not(.btn-nav)::after {
    width: 100%;
}

.nav-links .btn-nav {
    background-color: var(--primary);
    color: var(--dark) !important;
    text-decoration: none;
    margin-left: 25px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-links .btn-nav:hover {
    background-color: var(--primary-hover);
    color: var(--dark) !important;
}

/* Hero Sekce */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.95)), 
                url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
    height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 35px;
}

/* Výchozí styly pro tlačítka na desktopu */
.hero-buttons {
    display: flex;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: transparent;
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* --- HORNÍ LIŠTA PARTNERŮ --- */
.partners {
    background-color: var(--dark);
    padding: 35px 0;
    border-bottom: 4px solid var(--primary);
}

.partners .partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partners .partner-logo-img img {
    height: 32px;
    width: auto;
    display: block;
    filter: grayscale(1) brightness(0) invert(0.95);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.partners .partner-logo-img img:hover {
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 1;
    transform: scale(1.05);
}

/* Nadpisy sekcí */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--dark);
}

.badge {
    background-color: var(--dark);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* O NÁS */
.about {
    background-color: var(--white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    margin: 15px 0;
    color: var(--dark);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: var(--bg-light);
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.stat-card h3 {
    font-size: 26px;
    color: var(--dark);
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

/* PRODUKTY */
.products {
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-header i {
    font-size: 24px;
    color: var(--primary);
    background-color: rgba(253, 193, 21, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.product-header h3 {
    font-size: 22px;
    color: var(--dark);
}

/* --- ČISTÉ CIK-CAK ROZBALOVÁNÍ --- */
.toggle-checkbox {
    display: none;
}

.trigger-container {
    text-align: center;
    margin-top: 50px;
}

.btn-show-more {
    cursor: pointer;
    margin-left: 0 !important;
    background-color: var(--primary);
    color: var(--dark);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(253, 193, 21, 0.2);
    transition: all 0.3s ease;
}

.btn-show-more:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 193, 21, 0.3);
}

.expandable-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0, 0, 0.2, 1), opacity 0.4s ease;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.toggle-checkbox:checked ~ .expandable-content {
    max-height: 12000px; 
    opacity: 1;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e2e8f0;
}

.toggle-checkbox:checked ~ .trigger-container {
    display: none;
}

.features-subtitle {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 60px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: block;
}

.feature-text {
    flex: 1.2;
}

.feature-badge {
    color: var(--primary-hover);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

.feature-text h4 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* CENÍK */
.pricing {
    background-color: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.price-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    position: relative;
}

.price-card.popular {
    background-color: var(--dark);
    color: var(--white);
    border-color: var(--primary);
    padding: 50px 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--dark);
    padding: 4px 15px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.price-card h3 { font-size: 24px; margin-bottom: 5px; }
.price-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 25px; }
.price-card.popular .price-subtitle { color: #94a3b8; }
.price-value { font-size: 36px; font-weight: 800; margin-bottom: 30px; color: var(--dark); }
.price-card.popular .price-value { color: var(--primary); }
.price-value span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.price-card.popular .price-value span { color: #94a3b8; }

.price-features { list-style: none; text-align: left; margin-top: 20px; }
.price-features li { margin-bottom: 12px; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.price-features li i { color: #10b981; }
.price-features li.disabled { color: #94a3b8; text-decoration: line-through; opacity: 0.6; }
.price-features li.disabled i { color: #ef4444; }

/* SAMOSTATNÁ SEKCE REFERENCE */
.real-references {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.real-references .partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.real-references .partner-logo-img {
    background-color: var(--white);
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    max-width: 220px;
    flex: 1;
}

.real-references .partner-logo-img img {
    height: 24px;
    width: auto;
    display: block;
}

/* --- ČISTÉ SEKCE KONTAKTU (STRUKTURA VEDLE SEBE BEZ FORMULÁŘE) --- */
.contact {
    background-color: var(--white);
}

.contact-box {
    background-color: var(--dark);
    border-radius: 16px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertikální zarovnání na střed */
    color: var(--white);
    gap: 40px;
}

.contact-left {
    flex: 1.2;
}

.contact-left h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.contact-left p {
    color: #94a3b8;
    font-size: 16px;
}

.contact-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--dark); /* Světlejší tmavé pozadí pro odlišení karty */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #334155;
}

.contact-right .info-item {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-right .info-item i {
    color: var(--primary);
    font-size: 22px;
    background-color: rgba(253, 193, 21, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.contact-right .info-item span {
    font-weight: 500;
}

/* Patička */
footer {
    background-color: var(--dark);
    padding: 30px 0;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 14px;
}

.footer-content { display: flex; justify-content: space-between; }
.footer-links a { color: #64748b; text-decoration: none; margin-left: 20px; }
.footer-links a:hover { color: var(--white); }

/* Responzivní design */
@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }
    .feature-image {
        width: 100%;
    }
    .feature-image img {
        max-height: 240px;
    }
    
    /* Na mobilních zařízeních se texty a údaje poskládají přehledně pod sebe */
    .contact-box {
        flex-direction: column;
        align-items: stretch;
        padding: 40px 30px;
    }
    .contact-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 32px; }
    .partners .partners-grid, .real-references .partners-grid { justify-content: center; gap: 25px; }
    .price-card.popular { padding: 40px 30px; }
    .real-references .partner-logo-img { max-width: 45%; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .info-item{
        font-size: medium !important;
    }

    /* AKTUALIZACE: Řazení pod sebou, mezera a zarovnání tlačítek DOLEVA na mobilu */
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start; /* Toto srovná tlačítka přesně k levé straně */
        gap: 15px;              /* Udělá mezi nimi čistou malou mezeru */
    }
    .btn-secondary {
        margin-left: 0;         /* Resetuje původní desktopové odsazení zleva */
    }
}

@media (max-width: 480px) {
    .about-stats { grid-template-columns: 1fr; }
}

