/* --- ZÁKLADNÉ PREMENNÉ --- */
:root {
    --primary: #0056b3;
    --secondary: #28a745;
    --accent: #ffc107;
    --dark: #212529;
    --light: #f8f9fa;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; margin: 0; padding: 0; color: var(--dark); background: var(--light); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* --- NAVIGÁCIA (STICKY) --- */
header { background: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; padding: 15px 0; width: 100%; }
.nav-container { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; text-transform: uppercase; z-index: 1001; }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { font-weight: 600; font-size: 16px; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.cta-header { background: var(--primary); color: white !important; padding: 10px 20px; border-radius: 5px; font-weight: bold; white-space: nowrap; transition: 0.3s; }
.cta-header:hover { background: #004494; }
.hamburger { display: none; cursor: pointer; z-index: 1001; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--dark); }

/* --- MOBILNÁ SPODNÁ LIŠTA --- */
.mobile-sticky-bar {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%; height: 50px;
    background: white; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 9999;
}
.mobile-sticky-btn { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; color: white; }
.btn-call { background: var(--primary); }
.btn-order { background: #d90429; }

/* --- HERO --- */
.hero { background: linear-gradient(to right, #ffffff 40%, #f0f9ff 100%); padding: 60px 20px; overflow: hidden; }
.hero-container { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { flex: 1; text-align: left; z-index: 2; }
.hero-image { flex: 1; position: relative; }
.hero h1 { color: var(--dark); font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.hero p { color: #555; font-size: 1.3rem; margin-bottom: 30px; font-weight: 400; }
.main-btn { background: var(--secondary); color: var(--white); padding: 18px 35px; font-size: 1.3rem; border-radius: 8px; font-weight: 800; box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4); display: inline-block; transition: transform 0.2s; text-transform: uppercase; }
.main-btn:hover { transform: scale(1.05); background: #218838; }
.comparison-img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border: 5px solid white; transform: rotate(-2deg); transition: transform 0.3s; }
.badge { position: absolute; top: 20px; right: 20px; background: #d90429; color: white; padding: 10px 15px; border-radius: 50px; font-weight: bold; box-shadow: 0 5px 15px rgba(217, 4, 41, 0.4); font-size: 0.9rem; }

/* --- SEKCIE A SLUŽBY (Doplnené z Indexu) --- */
.section { padding: 80px 20px; max-width: 1140px; margin: 0 auto; scroll-margin-top: 80px; }
.bg-white { background: white; width: 100%; max-width: 100%; }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; font-weight: 800; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card { background: white; border: 1px solid #eee; border-radius: 12px; overflow: hidden; height: 100%; display: flex; flex-direction: column; text-align: center; transition: 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--primary); }
.service-img { height: 220px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }

.fake-btn { display: block; width: 100%; background: var(--light); padding: 12px; font-weight: bold; border-radius: 6px; margin-top: auto; border: 2px solid #ddd; transition: 0.3s; }
.service-card:hover .fake-btn { background: var(--primary); color: white; border-color: var(--primary); }

/* --- CENNÍK & FAQ (ACCORDION) --- */
.accordion-wrapper, .faq-item { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #eee; margin-bottom: 15px; }
.accordion-header, .faq-question { background: white; color: var(--dark); padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1.1rem; transition: background 0.3s; }
.accordion-header { background: var(--primary); color: white; }
.accordion-header:hover { background: #004494; }
.faq-question:hover { background: #f1f5f9; color: var(--primary); }

.accordion-icon, .faq-icon { transition: transform 0.3s; font-size: 1.2rem; }

.accordion-content, .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: white; border-top: 1px solid transparent; }
.faq-answer { padding: 0 20px; color: #555; line-height: 1.6; }

/* Active states */
.accordion-wrapper.active .accordion-content { max-height: 1000px; }
.faq-item.active .faq-answer { max-height: 500px; padding: 20px; border-top: 1px solid #eee; }
.faq-item.active .faq-question { color: var(--primary); }
.accordion-wrapper.active .accordion-icon, .faq-item.active .faq-icon { transform: rotate(180deg); }

.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 15px 25px; border-bottom: 1px solid #eee; text-align: left; }
.price-table tr:last-child td { border-bottom: none; }
.price-val { font-weight: 800; color: var(--secondary); text-align: right; }

/* GALÉRIA */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 40px; }
.gallery-item { height: 200px; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.1); }

/* FORMULÁR */
.form-wrapper { background: linear-gradient(135deg, var(--primary), #003d80); padding: 5px; border-radius: 15px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); margin-top: 50px; }
.contact-inner { background: white; padding: 40px; border-radius: 12px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: #555; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 15px; border: 2px solid #eee; border-radius: 8px; box-sizing: border-box; }
.submit-btn { width: 100%; background: #d90429; color: var(--white); border: none; padding: 20px; font-size: 1.3rem; font-weight: 800; border-radius: 8px; cursor: pointer; text-transform: uppercase; }

/* FOOTER */
footer { background: #1a1a1a; color: #ccc; padding: 60px 20px; font-size: 0.9rem; margin-top: auto; }
.footer-container { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-col h4 { color: white; font-size: 1.2rem; margin-bottom: 20px; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; }
.footer-col p { margin-bottom: 10px; line-height: 1.6; }
.footer-col a { color: #ccc; transition: 0.3s; }
.footer-col a:hover { color: var(--primary); }
.legal-info { font-size: 0.85rem; color: #888; margin-top: 15px; }

.seo-footer-text { max-width: 1140px; margin: 40px auto 0 auto; border-top: 1px solid #333; padding-top: 20px; font-size: 9px; color: #555; text-align: justify; line-height: 1.4; }

/* --- OPTIMALIZÁCIA PRE MOBIL (MAXIMÁLNA KOMPAKTNOSŤ) --- */
@media (max-width: 900px) {
    /* 1. Všeobecné zmenšenie písma a odsadení */
    body { font-size: 15px; }
    h1 { font-size: 1.7rem !important; margin-bottom: 10px !important; }
    h2 { font-size: 1.4rem !important; margin-bottom: 15px !important; }
    h3 { font-size: 1.2rem !important; }
    p { font-size: 0.95rem !important; line-height: 1.5; }
    
    .section { padding: 30px 15px; }
    
    /* 2. Kompaktnejšie Menu */
    header { padding: 10px 0; }
    .logo { font-size: 18px; }
    .mobile-sticky-bar { display: flex; }
    body { padding-bottom: 50px; }
    
    .hamburger { display: block; transform: scale(0.8); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .nav-links { position: fixed; left: -100%; top: 58px; gap: 0; flex-direction: column; background-color: var(--white); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 10px rgba(0,0,0,0.1); padding-bottom: 20px; }
    .nav-links.active { left: 0; }
    .nav-links a { margin: 12px 0; display: block; font-size: 1.1rem; padding: 5px; border-bottom: 1px solid #f0f0f0; width: 90%; margin-left: auto; margin-right: auto;}
    .cta-header { display: none; }

    /* 3. Kompaktné Hero - FIX TLAČIDLA */
    .hero { padding: 30px 15px; }
    .hero-container { flex-direction: column-reverse; text-align: center; gap: 20px; }
    .hero-text { text-align: center; }
    .hero p { font-size: 1rem; margin-bottom: 20px; }
    
    /* ZMENA: Tlačidlo je teraz malé a kompaktné ako na podstránkach */
    .main-btn { padding: 10px 20px; font-size: 0.9rem; width: auto; display: inline-block; }
    
    .badge { padding: 5px 10px; font-size: 0.75rem; top: 10px; right: 10px; }
    
    /* 4. Služby - Menšie karty */
    .services-grid { gap: 15px; }
    .service-card { border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
    .service-img { height: 150px; }
    .service-content { padding: 15px; }
    .fake-btn { padding: 8px; font-size: 0.9rem; margin-top: 10px; }
    
    /* Zmenšenie inline paddingov v kartách recenzií */
    .service-card[style*="padding: 30px"] { padding: 15px !important; }
    .service-card[style*="font-size: 2.5rem"] { font-size: 2rem !important; margin-bottom: 5px !important; }

    /* 5. Cenník a FAQ */
    .accordion-header, .faq-question { padding: 12px 15px; font-size: 1rem; }
    .price-table td { padding: 10px 10px; font-size: 0.9rem; }
    
    /* 6. Formulár */
    .form-wrapper { margin-top: 30px; }
    .contact-inner { padding: 15px; }
    .form-group input, .form-group select, .form-group textarea { padding: 10px; font-size: 1rem; }
    .submit-btn { padding: 15px; font-size: 1.1rem; }
    
    /* 7. Footer */
    footer { padding: 30px 15px; text-align: center; }
    .footer-container { gap: 25px; grid-template-columns: 1fr; }
    .footer-col h4 { font-size: 1.1rem; margin-bottom: 10px; }
}
<style>
/* Základné premenné a reset */
:root {
    --primary: #0056b3; /* Modrá z ProfiTep */
    --success: #28a745; /* Zelená */
    --light: #f8f9fa;
    --dark: #333;
    --border-radius: 12px;
}

/* Hlavný kontajner cenníka */
/* --- FINÁLNY STABILNÝ DIZAJN CENNÍKA (TABUĽKOVÝ) --- */
    #inc-cennik-vypis { max-width: 900px !important; margin: 0 auto !important; padding: 20px !important; }
    
    /* Prevod problematických kariet na čistú tabuľku */
    #inc-cennik-vypis .pricing-grid { display: block !important; background: #fff !important; border-radius: 15px !important; border: 1px solid #dee2e6 !important; overflow: hidden !important; box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important; margin-bottom: 30px !important; padding: 0 !important; }
    #inc-cennik-vypis .pricing-card-main { display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; padding: 15px 25px !important; border: none !important; border-bottom: 1px solid #eee !important; border-radius: 0 !important; max-width: 100% !important; text-align: left !important; margin: 0 !important; transition: background 0.2s; }
    #inc-cennik-vypis .pricing-card-main:hover { background: #f8fbff; }
    #inc-cennik-vypis .pricing-card-main:last-child { border-bottom: none !important; }
    #inc-cennik-vypis .floating-badge { display: none !important; }
    #inc-cennik-vypis .pricing-card-main h3 { font-size: 1.05rem !important; margin: 0 !important; font-weight: 600 !important; color: #333 !important; }
    #inc-cennik-vypis .pricing-card-main .h2 { font-size: 1.15rem !important; margin: 0 !important; color: #0056b3 !important; font-weight: 800 !important; }

    /* Oprava detailnej tabuľky */
    #inc-cennik-vypis .table-responsive { border-radius: 10px !important; border: 1px solid #eee !important; margin-top: 15px; }
    #inc-cennik-vypis .table { width: 100% !important; border-collapse: collapse !important; background: #fff; }
    #inc-cennik-vypis .table td { padding: 12px 20px !important; border-bottom: 1px solid #f5f5f5 !important; text-align: left; }
    #inc-cennik-vypis .table td.text-end { text-align: right !important; font-weight: 700; color: #0056b3; }

    /* Sanoterma Boxy - Oprava cien */
    #inc-cennik-vypis .premium-care-box { background: #fff !important; border: 1px solid #eee !important; border-left: 4px solid #ffc107 !important; border-radius: 12px !important; padding: 20px !important; margin-bottom: 15px !important; transition: all 0.3s ease !important; position: relative; text-align: left !important; }
    #inc-cennik-vypis .premium-care-box:hover { transform: translateY(-3px) !important; background: #fffdf5 !important; }
    #inc-cennik-vypis .premium-care-box .badge.bg-success { background-color: #28a745 !important; color: #fff !important; padding: 6px 12px !important; border-radius: 6px !important; font-weight: 800 !important; float: right; display: inline-block !important; }

    /* Info sekcie */
    #inc-cennik-vypis .p-4.bg-white.rounded-4.border, #inc-cennik-vypis .border-success.border-5 { border: none !important; border-left: 5px solid #0056b3 !important; background: #fff !important; margin-top: 15px !important; padding: 20px !important; text-align: left !important; box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important; }
    #inc-cennik-vypis .border-success.border-5 { border-left-color: #28a745 !important; }

    /* Animácie akordeónov */
    .accordion-content, .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out; }
    .accordion-wrapper.active .accordion-icon, .faq-item.active .faq-icon { transform: rotate(180deg); }
    .collapse:not(.show) { display: none; }
    </style>