/* PRÉMIOVÝ DARK MODE DESIGN - Čistý typografický styl zkomprimován */
:root { --bg-dark: #09090b; --bg-card: #18181b; --text-light: #f8fafc; --text-muted: #94a3b8; --accent: #3b82f6; --accent-hover: #2563eb; --accent-glow: rgba(59, 130, 246, 0.4); --border: #27272a; --success: #10b981; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
* { box-sizing: border-box; margin: 0; padding: 0; }

/* OPRAVA: Pozadí přesunuto z body do ::before pro 100% funkčnost na Apple/iOS */
body { font-family: 'Outfit', sans-serif; background-color: var(--bg-dark); color: var(--text-light); line-height: 1.6; overflow-x: hidden; position: relative; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background-image: linear-gradient(to bottom, rgba(30, 27, 75, 0.85), rgba(9, 9, 11, 0.95)), url('../img/d-zakazka-pozadi.jpg'); background-size: cover; background-position: center; pointer-events: none; }

.grid-pattern { position: fixed; inset: 0; z-index: -1; pointer-events: none; background-size: 40px 40px; background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px); mask-image: radial-gradient(circle at center, black, transparent 80%); -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%); }
.container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }

/* --- HLAVIČKA --- */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(9, 9, 11, 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; gap: 3px; font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-light); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.btn-text { font-weight: 700; color: white; text-decoration: none; }
.btn-text:hover { color: var(--accent); }
.btn-primary { background: var(--accent); color: white !important; padding: 0.7rem 1.75rem; border-radius: 8px; font-weight: 700; border: none; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); text-decoration: none; display: inline-block; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 20px var(--accent-glow); transform: translateY(-2px); }
.btn-outline { background: transparent; color: white !important; padding: 0.7rem 1.75rem; border-radius: 8px; font-weight: 700; border: 1px solid #707071; cursor: pointer; transition: 0.3s; text-decoration: none; display: inline-block; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent) !important; background: rgba(255,255,255,0.02); }

/* --- HERO SEKCE --- */
.hero { padding: 11rem 0 6rem 0; text-align: center; }
.hero-logo { width: 300px; margin: 0 auto 2rem auto; display: block; }
.hero-label { font-size: 0.9rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; display: block; }
.hero h1 { font-size: 4.2rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; color: white; letter-spacing: -1px; }
.hero p { font-size: 1.3rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 3.5rem auto; font-weight: 400; }
.hero-buttons { display: flex; justify-content: center; align-items: center; gap: 2rem; }
.btn-large { padding: 1.1rem 3rem; font-size: 1.15rem; }

/* --- STATISTIKY --- */
.stats-wrapper { display: flex; justify-content: center; gap: 4rem; margin-top: 6rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 4rem; }
.stat-item { text-align: left; display: flex; flex-direction: column; gap: 0.25rem; }
.stat-number { font-size: 3.5rem; font-weight: 900; color: white; line-height: 1; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.stat-label { color: var(--text-muted); font-size: 1.05rem; font-weight: 500; }

/* --- LUXUSNÍ PLASTICKÉ IKONY (Gradients & Drop Shadows) --- */
.icon-lux-gold {
    background: linear-gradient(135deg, #fef08a 0%, #eab308 50%, #854d0e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, 0.6));
    display: inline-block;
}
.icon-lux-blue {
    background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 50%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, 0.6));
    display: inline-block;
}
.icon-lux-silver {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 50%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, 0.6));
    display: inline-block;
}

/* --- SPOLEČNÉ SEKCE --- */
.section { padding: 5rem 0; } /* Upraveno z 8rem na 5rem pro lepší kompaktnost na desktopu */
.section-title { margin-bottom: 4rem; }
.section-title h2 { font-size: 2.9rem; font-weight: 800; margin-bottom: 1rem; color: white; letter-spacing: -1px; }
.section-title p { color: var(--text-muted); font-size: 1.25rem; max-width: 700px; }

/* --- LIVE DATA (UKÁZKA ZAKÁZEK S KROUŽKY) --- */
.contracts-list { display: flex; flex-direction: column; gap: 1.5rem; }

/* KOMPAKTNÍ ŘÁDEK ZAKÁZKY (Jako v katalogu) */
.contract-row.compact { 
    background: rgba(255, 255, 255, 0.03); 
    padding: 1.25rem 1.5rem; 
    border-radius: 12px; 
    display: flex; 
    gap: 1.25rem; 
    align-items: center; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    color: inherit; 
    border: 1px solid rgba(255,255,255,0.05); 
    position: relative; 
    overflow: visible !important; 
}

.contract-row.compact:hover { 
    background: rgba(255, 255, 255, 0.06); 
    border-color: rgba(59, 130, 246, 0.4); 
    transform: translateX(4px); 
}

.cr-score-col { flex-shrink: 0; width: 65px; text-align: center; }
.cr-main-col { flex: 1; min-width: 0; }
.cr-right-col { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }

.cr-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.badge-type { font-size: 0.75rem; padding: 2px 8px; border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); font-size: 0.75rem; padding: 2px 8px; border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px;}
.badge-warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); font-size: 0.75rem; padding: 2px 8px; border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px;}
.badge-winner { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); font-size: 0.75rem; padding: 2px 8px; border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px;}

.cr-marketing { font-size: 0.6rem; font-weight: 800; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.1; }
.cr-title { font-size: 1.15rem; font-weight: 700; color: white; margin-bottom: 0.25rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}
.cr-subtitle { color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 500; }
.cr-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.days-blue { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); padding: 6px 12px; border-radius: 8px; font-size: 0.95rem; font-weight: 700; display: inline-block; white-space: nowrap; }
.days-red-override { background: rgba(239, 68, 68, 0.1) !important; color: #ef4444 !important; border-color: rgba(239, 68, 68, 0.2) !important; }

/* --- STYLY PRO KROUŽKY (Opportunity Score) --- */
@keyframes progress { 0% { stroke-dasharray: 0, 100; } }
.circular-chart { display: block; width: 60px; height: 60px; max-width: 60px; max-height: 60px; margin: 0 auto; }
.circle-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 3.8; }
.circle { fill: none; stroke-width: 2.8; stroke-linecap: round; }
.circle.animate { animation: progress 1.5s ease-out forwards; }
.percentage { fill: #ffffff; font-family: 'Outfit', sans-serif; font-size: 0.65rem; font-weight: bold; text-anchor: middle; }
.score-wrapper { position: relative; cursor: help; border-radius: 50%; display: inline-block; }
.score-wrapper:hover { z-index: 999; }

/* OPRAVA TOOLTIPU PRO MOBIL (Zabránění utíkání mimo obrazovku) */
.score-tooltip { 
    position: absolute; 
    bottom: calc(100% + 15px); 
    left: 50%; 
    transform: translateX(-50%); 
    background: #18181b; 
    padding: 16px; 
    border-radius: 12px; 
    font-size: 0.85rem; 
    width: max-content; 
    max-width: 320px; 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.3); 
    display: none; 
    z-index: 99999; 
    text-align: left; 
    border: 1px solid #27272a; 
}
.score-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border-width: 8px; border-style: solid; border-color: #18181b transparent transparent transparent; }
.score-tooltip::before { content: ''; position: absolute; top: calc(100% + 1px); left: 50%; transform: translateX(-50%); border-width: 9px; border-style: solid; border-color: #27272a transparent transparent transparent; z-index: -1; }
.score-wrapper:hover .score-tooltip { display: block; animation: tooltipFadeIn 0.2s ease-out forwards; }
@keyframes tooltipFadeIn { 0% { opacity: 0; transform: translate(-50%, 10px); } 100% { opacity: 1; transform: translate(-50%, 0); } }

.pulse-circle { animation: pulseAnim 2s infinite; }
@keyframes pulseAnim { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

/* --- PROČ MY (VLASTNOSTI) --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 4rem; margin: 5rem 0; }
.feature-block { display: flex; flex-direction: column; gap: 1rem; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255,255,255,0.05); padding: 2.5rem; border-radius: 12px; }
.feature-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.feature-icon { font-size: 2.5rem; color: var(--accent); }
.feature-block h3 { font-size: 1.3rem; font-weight: 800; color: white; margin: 0; }
.feature-block p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; margin: 0; }

/* --- PRŮVODCE (GUIDE SEKCE) --- */
.guide-section { background: rgba(37, 99, 235, 0.05); border-top: 1px solid rgba(37, 99, 235, 0.1); border-bottom: 1px solid rgba(37, 99, 235, 0.1); }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.guide-content h2 { font-size: 3rem; font-weight: 900; color: white; margin-bottom: 1.5rem; line-height: 1.1; }
.guide-content p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; }
.guide-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.guide-list li { display: flex; gap: 1rem; align-items: flex-start; }
.guide-list i { color: var(--accent); font-size: 1.5rem; margin-top: 2px; }
.guide-list div strong { display: block; color: white; font-size: 1.1rem; margin-bottom: 0.25rem; }
.guide-list div span { color: var(--text-muted); font-size: 1rem; }

/* --- ANALYTIKA (UKÁZKA GRAFU) --- */
.analytics-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 100%; }
.chart-container { background: rgba(255,255,255,0.01); padding: 3rem; border-radius: 24px; max-width: 100%; overflow: hidden; }

/* --- E-BOOK BANNER --- */
.ebook-banner { background: rgba(30, 41, 59, 0.4); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 4rem 2rem; text-align: center; position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

/* --- CENÍK --- */
.pricing-section { padding-top: 2rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; max-width: 900px; margin: 0 auto; margin-top: 2rem; }
.price-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 4rem 3rem; border-radius: 16px; transition: 0.3s; }
.price-card.popular { background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.2); position: relative; }
.price-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: white; font-weight: 700; }
.price-amount { font-size: 4rem; font-weight: 900; color: white; margin-bottom: 2rem; line-height: 1; }
.price-amount span { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; display: block; margin-top: 0.5rem; }
.price-card p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* --- FAQ --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 2rem 0; font-size: 1.25rem; font-weight: 700; color: white; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.faq-answer { padding-bottom: 2rem; color: var(--text-muted); display: none; line-height: 1.7; font-size: 1.1rem; }
.faq-item.active .faq-answer { display: block; animation: fadeIn 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--accent); }

/* --- PATIČKA --- */
footer { background: #000; padding: 5rem 0 3rem 0; border-top: 1px solid var(--border); }
.footer-grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2rem; }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: white; letter-spacing: -0.5px; }
.footer-logo img { width: 240px; margin: 0 auto 2rem auto; display: block; }
.footer-text { color: #8c97a7; font-size: 0.95rem; max-width: 900px; line-height: 1.6; }
.footer-links { display: flex; justify-content: center; gap: 2rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: 0.2s; }
.footer-links a:hover { color: white; }
.copyright { color: #878787; font-size: 0.85rem; margin-top: 2rem; }

/* --- COOKIE LIŠTA --- */
.cookie-banner { position: fixed; bottom: -150%; left: 0; right: 0; background: #000; border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem; display: flex; justify-content: center; align-items: center; gap: 2rem; z-index: 9999; transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.cookie-banner.show { bottom: 0; }
.cookie-text { color: var(--text-muted); font-size: 0.95rem; max-width: 600px; }
.cookie-buttons { display: flex; gap: 1rem; }
.btn-cookie-outline { background: transparent; border: 1px solid #707071; color: white; padding: 0.7rem 1.75rem; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-cookie-outline:hover { background: rgba(255,255,255,0.05); border-color: #94a3b8; }
.btn-cookie-primary { background: #3b82f6; border: none; color: white; padding: 0.7rem 1.75rem; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-cookie-primary:hover { background: #2563eb; }

/* --- SPECIFICKÉ STYLY Z OBORŮ A SEO --- */
.main-hero-logo { height: 150px; width: auto; margin: 0 auto 1.5rem auto; display: block; }
.hero-description { color: #cbd5e1; font-size: 1.25rem; max-width: 800px; margin: 0 auto; line-height: 1.6; }
.cta-banner { background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 12px; padding: 4rem 3rem; text-align: center; margin: 5rem 0; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5); }
.cta-banner h2 { color: white; font-size: 2.2rem; margin: 0 0 1rem 0; font-weight: 800; }
.btn-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #3b82f6; color: white; font-size: 1.1rem; font-weight: 800; padding: 1rem 2.5rem; border-radius: 8px; text-decoration: none; transition: all 0.2s; border: 1px solid transparent; cursor: pointer; }
.btn-cta:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(37,99,235,0.2); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 4rem; margin-top: 1rem; }
.stat-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 2.5rem; border-radius: 12px; text-align: center; }
.stat-card .val { font-size: 3rem; font-weight: 900; color: white; margin: 0.5rem 0; }
.stat-card .lbl { color: #94a3b8; font-size: 1rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

.detail-content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; margin-top: 4rem; }
.contract-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 12px; margin-bottom: 1rem; display: flex; gap: 1.5rem; align-items: center; text-decoration: none; color: inherit; transition: 0.3s; position: relative;}
.contract-card:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(59, 130, 246, 0.5); transform: translateX(5px); }

.blurred-item { filter: blur(6px); opacity: 0.5; pointer-events: none; user-select: none; }
.paywall-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 350px; background: linear-gradient(to bottom, rgba(9,9,11,0) 0%, rgba(9,9,11,0.95) 60%, rgba(9,9,11,1) 100%); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 3rem; z-index: 10; }

.seo-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.cpv-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 2.5rem; border-radius: 12px; text-decoration: none; color: white; transition: 0.3s; display: flex; flex-direction: column; gap: 1rem; }
.cpv-card:hover { border-color: #3b82f6; background: rgba(59, 130, 246, 0.05); transform: translateY(-5px); }
.cpv-card h3 { margin: 0; font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; justify-content: space-between; }
.cpv-card p { margin: 0; color: #94a3b8; font-size: 0.95rem; line-height: 1.6; }

.back-link { display: inline-flex; align-items: center; gap: 8px; color: #94a3b8; text-decoration: none; font-weight: 600; margin-bottom: 2rem; transition: color 0.2s; }
.back-link:hover { color: white; }

.pricing-teaser { text-align: center; margin: 6rem 0; padding: 4rem 2rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; }
.pricing-teaser h2 { font-size: 2.2rem; font-weight: 900; color: white; margin-top: 0; margin-bottom: 1rem; }
.pricing-teaser p { color: #94a3b8; font-size: 1.15rem; margin-bottom: 2.5rem; }

.seo-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; margin-top: 5rem; padding-top: 4rem; border-top: 1px solid rgba(255,255,255,0.05); align-items: start; }
.seo-sidebar { text-align: left; position: sticky; top: 100px; }
.seo-article { color: #94a3b8; font-size: 1.1rem; line-height: 1.8; text-align: left; }
.seo-article h2 { color: #ffffff; font-size: 2.2rem; font-weight: 800; margin: 0 0 1.5rem 0; line-height: 1.25; }
.seo-article h3 { color: #e2e8f0; font-size: 1.6rem; font-weight: 700; margin: 2.5rem 0 1rem 0; line-height: 1.35; }
.seo-article p { margin: 0 0 1.5rem 0; }
.seo-article strong { color: white; font-weight: 700; }

.footer-aligned { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; }
.footer-col h4 { color: white; font-weight: 800; font-size: 1.2rem; margin-top: 0; margin-bottom: 1.5rem; }
.footer-col p { color: #64748b; line-height: 1.6; margin: 0 0 1rem 0; }
.footer-col a { color: #94a3b8; text-decoration: none; transition: 0.2s; display: block; margin-bottom: 0.75rem; font-weight: 500; cursor: pointer; }
.footer-col a:hover { color: #3b82f6; }

/* --- MODÁLNÍ OKNA PRO OCHRANU SOUKROMÍ / GDPR --- */
.privacy-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9, 9, 11, 0.85); backdrop-filter: blur(8px);
    display: none; justify-content: center; align-items: center;
    z-index: 10000; opacity: 0; transition: opacity 0.3s ease;
    padding: 1rem;
}
.privacy-modal-overlay.active { display: flex; opacity: 1; }
.privacy-modal-content {
    background: #18181b; border: 1px solid #27272a;
    width: 100%; max-width: 850px; max-height: 90vh;
    border-radius: 16px; overflow-y: auto;
    position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column;
}
.privacy-modal-header {
    padding: 1.5rem 2rem; border-bottom: 1px solid #27272a;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; background: #18181b; z-index: 10;
    border-top-left-radius: 16px; border-top-right-radius: 16px;
}
.privacy-modal-header h2 { margin: 0; font-size: 1.5rem; color: #f8fafc; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.privacy-modal-close {
    background: none; border: none; color: #94a3b8; font-size: 2.5rem;
    cursor: pointer; transition: color 0.2s; line-height: 1; padding: 0;
}
.privacy-modal-close:hover { color: #f8fafc; }
.privacy-modal-body { padding: 2rem; color: #94a3b8; font-size: 1.05rem; line-height: 1.7; flex: 1; text-align: left; }
.privacy-modal-body h3 { color: #f8fafc; font-size: 1.25rem; margin: 2rem 0 1rem 0; font-weight: 700; }
.privacy-modal-body h3:first-child { margin-top: 0; }
.privacy-modal-body p { margin-bottom: 1rem; }
.privacy-modal-body ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.privacy-modal-body li { margin-bottom: 0.5rem; }
.privacy-modal-body strong { color: #cbd5e1; }
.privacy-modal-footer {
    padding: 1.5rem 2rem; border-top: 1px solid #27272a; text-align: right; background: #18181b; border-bottom-left-radius: 16px; border-bottom-right-radius: 16px;
}
.privacy-modal-content::-webkit-scrollbar { width: 8px; }
.privacy-modal-content::-webkit-scrollbar-track { background: #09090b; }
.privacy-modal-content::-webkit-scrollbar-thumb { background: #27272a; border-radius: 4px; }
.privacy-modal-content::-webkit-scrollbar-thumb:hover { background: #3b82f6; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- RESPONZIVITA A MAXIMALIZACE PROSTORU --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .analytics-showcase, .guide-grid { grid-template-columns: 1fr; gap: 3rem; }
    .stats-wrapper { flex-direction: column; gap: 2rem; align-items: center; text-align: center; }
    .stat-item { align-items: center; }
}

/* Upravený responzivní tooltip pro menší zařízení */
@media (max-width: 500px) {
    .score-tooltip {
        left: 0; 
        transform: translateX(-10px); 
        width: 85vw; 
        max-width: none;
    }
    .score-tooltip::after, .score-tooltip::before {
        left: 35px; 
    }
}

@media (max-width: 768px) {
    /* PŘIDÁNO: Správný padding pro mobilní sekce včetně tabulky a e-booku */
    .section { padding: 3rem 0; }
    .ebook-banner { padding: 2.5rem 1.5rem !important; }

    .container { padding: 0 1rem; }
    .features-grid, .pricing-grid { grid-template-columns: 1fr; }
    .logo { font-size: 1.25rem; }
    .nav-links .btn-primary { padding: 0.55rem 1rem; font-size: 0.9rem; }
    .nav-links .btn-text { display: none; }
    .hero { padding-top: 130px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-description { font-size: 1.1rem; }
    .section-title h2, .guide-content h2, .analytics-showcase h2 { font-size: 2rem !important; }
    .pricing-section, .faq-container { padding-top: 5rem; margin-top: 2rem; }
    .price-card { padding: 2.5rem 1.5rem; max-width: 97%; margin: 0 auto; }
    .cookie-banner { flex-direction: column; text-align: center; gap: 1rem; padding: 1.5rem 1rem; }
    .cookie-buttons { flex-direction: column; width: 100%; }
    .cookie-buttons button { width: 100%; }
    .hero-buttons { flex-direction: column; gap: 1rem; }
    .hero-buttons a { width: 100%; text-align: center; }
    
    .detail-content-grid { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
    .seo-grid { grid-template-columns: 1fr; gap: 3rem; }
    .seo-sidebar { position: static; }
    .seo-sidebar img { max-width: 100% !important; margin-top: 2rem; }
    .cta-banner { padding: 2.5rem 1.5rem; margin: 3rem 0; }
    .pricing-teaser { padding: 2.5rem 1.5rem; margin: 3rem 0; }
    .cpv-card { padding: 1.5rem; }
    .feature-block { padding: 1.5rem; }
    .stat-card { padding: 1.5rem; }
    .seo-article h2 { font-size: 1.8rem; }
    .seo-article h3 { font-size: 1.4rem; }
    
    /* RESPONZIVITA - KOMPAKTNÍ ROZLOŽENÍ ZAKÁZEK */
    .contract-row.compact { 
        padding: 1rem; 
        flex-wrap: wrap; 
        gap: 0.75rem; 
    }
    
    .cr-score-col { width: 55px; } 
    
    .cr-main-col { 
        flex: 1; 
        min-width: 60%; 
    }
    
    .cr-right-col { 
        flex-basis: 100%; 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
        border-top: 1px solid rgba(255,255,255,0.05); 
        padding-top: 0.5rem; 
        margin-top: 0.25rem; 
    }
    
    .contract-card { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem 1rem; }
    .contract-card > div:first-child { position: absolute; top: 1rem; right: 1rem; text-align: right; width: auto; flex-shrink: unset; }
    .contract-card > div:nth-child(2) { padding-right: 65px; width: 100%; }
    .contract-card > div:last-child { width: 100%; text-align: left; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1rem; margin-top: 0.5rem; }
    .contract-card > div:last-child div { text-align: left; }
    
    .chart-container { padding: 1.5rem; }
    .chart-container i.ph-book-open-text { font-size: 8rem !important; }
    
    .privacy-modal-header { padding: 1.25rem 1.5rem; }
    .privacy-modal-header h2 { font-size: 1.25rem; }
    .privacy-modal-body { padding: 1.5rem; font-size: 1rem; }
    .privacy-modal-close { font-size: 2rem; }
}

/* Vylepšení pro velmi malé mobily (iPhone SE apod.) */
@media (max-width: 480px) {
    .cr-subtitle { gap: 6px; font-size: 0.8rem; }
    .cr-title { font-size: 1.05rem; }
    .separator { display: none; }
    .cr-subtitle span { display: block; width: 100%; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* --- ÚPRAVA PRO MOBILNÍ ZAŘÍZENÍ (Vlož úplně na konec souboru style.css) --- */
@media (max-width: 768px) {
    
    /* 1. Oprava vnitřního a vnějšího odsazení pro E-book */
    .ebook-banner { 
        padding: 2.5rem 1.5rem !important; /* Vnitřní prostor okolo textu */
        margin: 3rem 0 !important;         /* Vnější prostor nad a pod celým boxem */
    }

    /* 2. Oprava vnějšího odsazení pro nadpis srovnávací tabulky */
    .comp-header {
        margin-top: 3rem !important;       /* Odstup nadpisu shora od E-booku */
        margin-bottom: 1.5rem !important;  /* Odstup nadpisu zdola od samotné tabulky */
        text-align: center;
    }

}