:root {
    --navy: #1a365d;
    --blue: #2b6cb0;
    --light-blue: #90cdf4;
    --gray: #f7fafc;
    --text: #2d3748;
    --grad: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--gray); color: var(--text); overflow-x: hidden; }

/* ANIMACE */
.reveal { opacity: 1; transform: translateY(0); transition: 0.8s all ease; }

/* HLAVIČKA A NAVIGACE */
header { background: var(--navy); color: white; padding: 3rem 1rem; text-align: center; }
.brand { font-size: 1.2rem; font-weight: 800; color: var(--light-blue); letter-spacing: 2px; }

nav { position: sticky; top: 0; background: rgba(26, 54, 93, 0.95); backdrop-filter: blur(10px); padding: 15px; display: flex; justify-content: center; gap: 10px; z-index: 1000; flex-wrap: wrap; }
nav a { color: white; text-decoration: none; padding: 8px 15px; border-radius: 20px; font-weight: 600; font-size: 0.85rem; transition: 0.3s; cursor: pointer; }
nav a:hover { background: var(--blue); }

/* HLAVNÍ OBSAH */
main { max-width: 1000px; margin: 2rem auto; padding: 0 1rem; }
section { background: white; padding: 2.5rem; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 2rem; }

.page-section { display: none; }
.page-section.active { display: block; }

/* SEKCE O MNĚ */
.about-top-flex { display: flex; align-items: flex-start; gap: 2.5rem; flex-wrap: wrap; }
.about-text-top { flex: 1; min-width: 250px; }
.about-text-top h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.about-text-top .subtitle { color: var(--blue); font-weight: 600; margin-bottom: 0.5rem; }
.about-photo { flex-shrink: 0; }
.certifications-block { margin-top: 1rem; }
.cert-grid-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cert-item-small { 
    background: var(--gray); 
    padding: 18px 10px; 
    border-radius: 12px; 
    text-align: center; 
    border: 1px solid #edf2f7;
}
.cert-item-small span { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.cert-item-small h4 { font-size: 0.85rem; }
.profile-img { 
    width: 220px; 
    height: 220px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 5px solid white; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* CERTIFIKÁTY */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 20px; }
.cert-item { background: var(--gray); padding: 20px; border-radius: 15px; text-align: center; border: 1px solid #edf2f7; }

/* --- ROZCESTNÍK (HUB) --- */
.calc-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.hub-card { 
    background: white; padding: 30px; border-radius: 20px; border: 1px solid #eee; 
    text-align: center; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.hub-card:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.hub-icon { font-size: 3rem; margin-bottom: 15px; display: block; }
.hub-link { color: var(--blue); font-weight: bold; margin-top: 15px; display: block; }

/* --- ČLÁNKY --- */
.article-card { border: 1px solid #f0f0f0; }
.article-full-text { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; line-height: 1.7; }
.cta-box { background: var(--gray); padding: 20px; border-radius: 15px; border-left: 5px solid var(--blue); margin-top: 20px; }

/* KALKULAČKY */
.main-calc-card { background: var(--gray); padding: 2rem; border-radius: 20px; }
.input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.input-group label { display: block; font-size: 0.75rem; font-weight: bold; margin-bottom: 5px; }
.input-group input { width: 100%; padding: 10px; border: 1px solid #cbd5e0; border-radius: 8px; }
.main-result { text-align: center; margin: 20px 0; border: 3px solid var(--blue); padding: 20px; border-radius: 15px; background: white; }
.chart-wrapper { height: 350px; background: white; border-radius: 15px; padding: 10px; }

/* KVÍZ — OPRAVA: přidáno display:none přímo v CSS, aby overlay nebyl viditelný před načtením JS */
#quiz-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.85); 
    display: none; 
    justify-content: center; 
    align-items: center; 
    z-index: 9999; 
    backdrop-filter: blur(5px); 
}
#quiz-modal { background: white; border-radius: 20px; width: 95%; max-width: 500px; overflow: hidden; }
.quiz-header { background: var(--grad); padding: 25px; text-align: center; color: white; }
.quiz-q { display: flex; align-items: center; gap: 10px; padding: 10px 25px; border-bottom: 1px solid #eee; }
.score-circle { width: 100px; height: 100px; border-radius: 50%; border: 5px solid var(--blue); margin: 20px auto; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: var(--blue); }

/* RECENZE - čistě CSS animace, bez JavaScriptu */
.reviews-css-wrapper { overflow: hidden; width: 100%; margin-top: 20px; }
.reviews-css-track {
    display: flex;
    width: calc(100% * 6);
    animation: reviewsSlide 18s infinite;
}
.reviews-css-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: calc(100% / 6);
    box-sizing: border-box;
}
@keyframes reviewsSlide {
    0%        { transform: translateX(0); }
    13%       { transform: translateX(0); }
    16.66%    { transform: translateX(calc(-100% / 6)); }
    29.66%    { transform: translateX(calc(-100% / 6)); }
    33.32%    { transform: translateX(calc(-200% / 6)); }
    46.32%    { transform: translateX(calc(-200% / 6)); }
    49.98%    { transform: translateX(calc(-300% / 6)); }
    62.98%    { transform: translateX(calc(-300% / 6)); }
    66.64%    { transform: translateX(calc(-400% / 6)); }
    79.64%    { transform: translateX(calc(-400% / 6)); }
    83.30%    { transform: translateX(calc(-500% / 6)); }
    96.30%    { transform: translateX(calc(-500% / 6)); }
    100%      { transform: translateX(0); }
}
.review-card { background: var(--gray); padding: 25px; border-radius: 15px; border-bottom: 4px solid #f39c12; }
.review-card p { line-height: 1.6; margin-bottom: 12px; }
.review-card span { font-weight: 600; color: var(--blue); font-size: 0.9rem; }
.stars { color: #f39c12; font-size: 1.1rem; margin-bottom: 10px; }

/* PARTNEŘI */
#partneri { background: white; padding: 2.5rem; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 2rem; }
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.partner-item { display: flex; align-items: center; justify-content: center; width: 130px; height: 70px; background: var(--gray); border-radius: 12px; border: 1px solid #edf2f7; padding: 10px; transition: 0.3s; }
.partner-item:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.08); transform: translateY(-2px); }
.partner-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-name-fallback { display: none; font-weight: 700; color: var(--navy); font-size: 0.9rem; text-align: center; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 2rem; }
.blog-card { background: white; border-radius: 20px; border: 1px solid #edf2f7; padding: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.blog-tag { display: inline-block; background: var(--light-blue); color: var(--navy); font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.blog-card h2 { font-size: 1.3rem; color: var(--navy); margin-bottom: 0.5rem; }
.blog-date { font-size: 0.85rem; color: #a0aec0; margin-bottom: 1.2rem; }
.blog-body h3 { font-size: 1rem; color: var(--navy); margin: 1.2rem 0 0.5rem; }
.blog-body p { line-height: 1.7; color: var(--text); margin-bottom: 0.5rem; }
.blog-cta { background: var(--gray); border-left: 4px solid var(--blue); padding: 1rem 1.5rem; border-radius: 10px; margin-top: 1.5rem; }
.blog-cta p { margin-bottom: 0.8rem; font-weight: 600; }

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .testimonial-slide { min-width: 100%; }
    .about-top-flex { flex-direction: column; align-items: center; text-align: center; }
    .profile-img { width: 180px; height: 180px; }

    /* Dlaždice odbornosti — 2x2 na mobilu */
    .cert-grid-row { grid-template-columns: repeat(2, 1fr); }

    /* Kalkulačky hub — pod sebou */
    .calc-hub-grid { grid-template-columns: 1fr; }

    /* Recenze — jedna pod druhou */
    .reviews-css-page { grid-template-columns: 1fr; }
    .reviews-css-track { width: calc(100% * 12); }
    .reviews-css-page { width: calc(100% / 12); }

    /* Kvíz — nepřesahuje okraj */
    #quiz-modal { width: 92%; max-width: 420px; }
    .quiz-q { padding: 8px 12px; font-size: 0.88rem; }
    .quiz-header h2 { font-size: 1.1rem; }
    #quiz-steps { padding: 15px !important; }

    /* Partneři */
    .partners-grid { gap: 10px; }
    .partner-item { width: 95px; height: 52px; }

    /* Navigace */
    nav { gap: 4px; padding: 8px; }
    nav a { font-size: 0.72rem; padding: 5px 8px; }
}
.contact-flex { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 1.5rem; }
.contact-text p { margin-bottom: 0.5rem; font-size: 1.1rem; }
.qr-area { display: flex; gap: 30px; justify-content: center; }
.qr-item { text-align: center; }
.qr-item img { display: block; width: 120px; height: 120px; border-radius: 8px; border: 2px solid #edf2f7; }
.qr-item p { margin-top: 8px; font-weight: 600; color: var(--navy); font-size: 0.9rem; }

/* TLAČÍTKA */
.btn { background: var(--blue); color: white; padding: 12px 25px; border-radius: 30px; text-decoration: none; display: inline-block; font-weight: bold; border: none; cursor: pointer; transition: 0.3s; }
.btn-outline { background: transparent; border: 2px solid var(--blue); color: var(--blue); padding: 10px 25px; border-radius: 30px; cursor: pointer; font-weight: bold; margin-top: 15px; }

/* FOOTER */
.footer-bar { background: var(--navy); color: white; padding: 20px; text-align: center; margin-top: 2rem; }