/* --- GLOBÁLNÍ NASTAVENÍ --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary-brown: #5D4037;   
    --secondary-brown: #8D6E63; 
    --accent-gold: #D4AF37;     
    --accent-gold-hover: #B39225; 
    --text-dark: #2D2420;       
    --text-light: #F9F9F9;      
    --bg-light: #FFFAF0;        
    --bg-white: #FFFFFF;
    --bg-warm: #F4EFEA;         
    
    --shadow-soft: 0 10px 40px rgba(93, 64, 55, 0.08); 
    --shadow-premium: 0 25px 50px rgba(93, 64, 55, 0.15);
}

html { scroll-behavior: smooth; }
body { 
    font-family: 'Montserrat', sans-serif; 
    line-height: 1.7; 
    color: var(--text-dark); 
    background-color: var(--bg-light); 
    overflow-x: hidden; 
}

a { text-decoration: none; color: var(--primary-brown); transition: all 0.3s ease; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }

/* --- ANIMACE --- */
.animate-block { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-block.visible { opacity: 1; transform: translateY(0); }

/* --- NAVIGACE --- */
.navbar { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 15px 5%; background-color: rgba(255, 250, 240, 0.98); 
    backdrop-filter: blur(10px); box-shadow: var(--shadow-soft); 
    position: sticky; top: 0; z-index: 1000; 
}
.navbar .logo { 
    font-size: 1.4em; font-weight: 800; color: var(--primary-brown); 
    letter-spacing: -0.5px; text-transform: uppercase; 
}
.navbar nav ul { list-style: none; display: flex; gap: 5px; flex-wrap: nowrap; }
.navbar ul li a { 
    color: var(--text-dark); padding: 8px 12px; font-weight: 600; font-size: 0.85em; 
    border-radius: 50px; white-space: nowrap; 
}
.navbar ul li a:hover, .navbar ul li a.active { 
    color: var(--bg-white); background-color: var(--primary-brown); 
}

/* --- HERO SECTION --- */
.hero-modern { 
    display: flex; align-items: center; justify-content: space-between; 
    padding: 60px 5% 80px 5%; min-height: 85vh; 
    background: radial-gradient(circle at 80% 20%, #fffcf8 0%, #f2ece4 100%);
    gap: 50px; overflow: hidden;
}
.hero-text-side { flex: 1; max-width: 650px; z-index: 2; }
.hero-text-side h1 { font-size: 3.5em; color: var(--primary-brown); margin-bottom: 25px; line-height: 1.1; }
.hero-text-side p { font-size: 1.2em; margin-bottom: 30px; color: var(--secondary-brown); font-weight: 500; }

.hero-image-side { flex: 1; display: flex; justify-content: center; position: relative; z-index: 1; }
.hero-image-side img.main-photo { 
    max-width: 100%; height: auto; border-radius: 30px; 
    box-shadow: 20px 20px 60px rgba(93, 64, 55, 0.2); 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s ease;
}
.hero-image-side:hover img.main-photo { transform: scale(1.05); box-shadow: 0 30px 70px rgba(93, 64, 55, 0.3); }

/* --- TLAČÍTKA --- */
.btn-group { display: flex; gap: 20px; flex-wrap: wrap; }
.cta-button { 
    display: inline-block; background: linear-gradient(45deg, var(--accent-gold), #eac75a); color: white; 
    padding: 16px 36px; font-weight: 800; border-radius: 50px; text-transform: uppercase; 
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); transition: all 0.3s ease; border: none; cursor: pointer; letter-spacing: 1px; font-size: 0.9em; text-align: center;
}
.cta-button:hover { background-color: var(--accent-gold-hover); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4); }
.cta-button.secondary { background: transparent; border: 2px solid var(--primary-brown); color: var(--primary-brown); box-shadow: none; }
.cta-button.secondary:hover { background-color: var(--primary-brown); color: white; transform: translateY(-3px); }

/* --- ČÍSLA --- */
.counter-section { 
    background: linear-gradient(rgba(93, 64, 55, 0.85), rgba(93, 64, 55, 0.95)), url('bg-cisla.jpg');
    background-size: cover; background-position: center;
    color: var(--text-light); padding: 100px 5%; text-align: center; margin-top: -60px; 
    border-radius: 40px 40px 0 0; position: relative; z-index: 10; 
}
.counter-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.counter-item { 
    flex: 1; min-width: 250px; padding: 40px 30px; 
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; 
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(5px); transition: all 0.4s ease;
}
.counter-item:hover { transform: translateY(-15px) scale(1.03); background: rgba(255, 255, 255, 0.15); border-color: var(--accent-gold); }
.counter-item .number { font-size: 3.5em; font-weight: 800; color: var(--accent-gold); display: block; margin-bottom: 5px; }

/* --- SLUŽBY --- */
.services-section { padding: 120px 5%; background-color: var(--bg-warm); }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 100px auto; }
.section-header h2 { font-size: 3.5em; color: var(--primary-brown); margin-bottom: 20px; }

.service-row { display: flex; align-items: center; justify-content: space-between; gap: 80px; margin-bottom: 150px; cursor: default; }
.service-row:nth-child(even) { flex-direction: row-reverse; } 

.service-text { flex: 1; max-width: 500px; position: relative; }
.service-text h3 { font-size: 2.8em; color: var(--primary-brown); margin-bottom: 25px; position: relative; display: inline-block; }
.service-text h3::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 40%; height: 6px; background-color: rgba(212, 175, 55, 0.3); border-radius: 3px; transition: width 0.4s ease; }
.service-row:hover .service-text h3::after { width: 100%; background-color: var(--accent-gold); }

.service-features { list-style: none; margin-bottom: 40px; }
.service-features li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-weight: 600; color: var(--primary-brown); }
.service-features li::before { content: '✦'; color: var(--accent-gold); font-size: 1.2em; }
.service-image-wrapper { flex: 1.2; overflow: hidden; border-radius: 20px; box-shadow: 0 30px 60px rgba(93, 64, 55, 0.25); }
.service-image-wrapper img { width: 100%; display: block; transition: transform 0.6s ease; }
.service-row:hover .service-image-wrapper img { transform: scale(1.08); }

/* --- PARTNEŘI --- */
.partners-section { padding: 80px 5%; background: var(--bg-white); text-align: center; }
.partners-box { 
    border: 2px solid var(--bg-warm); padding: 40px; border-radius: 20px; display: inline-block; width: 100%; max-width: 900px;
    background: linear-gradient(160deg, #ffffff 40%, #fbf8f5 100%);
    box-shadow: 0 15px 35px rgba(93, 64, 55, 0.08); transition: transform 0.3s ease;
}
.partners-box:hover { transform: translateY(-5px); }
.partners-text { font-size: 1.5em; font-weight: 700; color: var(--primary-brown); margin-bottom: 10px; }

/* --- FAQ & REFERENCE --- */
.faq-section { padding: 100px 5%; background-color: var(--bg-light); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(93, 64, 55, 0.1); }
.faq-question { width: 100%; text-align: left; padding: 25px 0; font-size: 1.2em; font-weight: 700; color: var(--primary-brown); background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding-right: 20px; }
.faq-question.active .faq-icon { transform: rotate(45deg); }

.testimonials-section { padding: 100px 5%; background-color: var(--bg-warm); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.testimonial-card { background: white; padding: 40px; border-radius: 20px; box-shadow: var(--shadow-soft); border-top: 5px solid var(--accent-gold); transition: transform 0.3s ease; }
.testimonial-card:hover { transform: translateY(-7px); }
.stars { color: var(--accent-gold); letter-spacing: 3px; margin-bottom: 15px; }

/* --- GRID SLUŽEB --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-bottom: 80px; }
.service-card-grid {
    background: #fff; padding: 40px 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(93, 64, 55, 0.05); border: 1px solid rgba(0,0,0,0.03);
    text-align: center; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); display: flex; flex-direction: column; align-items: center; height: 100%;
}
.service-card-grid:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(93, 64, 55, 0.15); border-color: rgba(212, 175, 55, 0.2); }

.service-icon {
    font-size: 3em; margin-bottom: 20px; background: var(--bg-warm); width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--primary-brown); transition: transform 0.4s ease, background 0.4s ease;
}
.service-card-grid:hover .service-icon { transform: scale(1.1) rotate(5deg); background: var(--accent-gold); color: white; }

.service-card-grid h3 { font-size: 1.5em; color: var(--primary-brown); margin-bottom: 15px; position: relative; padding-bottom: 15px; }
.service-card-grid h3::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; background-color: var(--accent-gold); transition: width 0.3s ease; }
.service-card-grid:hover h3::after { width: 80px; }

.service-card-grid p { color: #666; font-size: 0.95em; line-height: 1.6; margin-bottom: 30px; flex-grow: 1; }
.service-link { font-weight: 700; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 1px; font-size: 0.9em; padding: 10px 20px; border: 2px solid transparent; border-radius: 50px; transition: all 0.3s ease; }
.service-card-grid:hover .service-link { background-color: var(--bg-warm); color: var(--primary-brown); padding: 10px 25px; }

/* --- KALKULAČKY --- */
.premium-calc { 
    background: #fff; border-radius: 30px; box-shadow: 0 30px 60px rgba(93, 64, 55, 0.15); 
    padding: 0; margin-bottom: 80px; display: flex; align-items: stretch; overflow: hidden; border: 1px solid rgba(0,0,0,0.05);
}
.calc-controls { flex: 0 0 55%; max-width: 55%; padding: 50px; background-color: #ffffff; }
.calc-controls h2 { font-size: 1.8em; margin-bottom: 40px; color: var(--primary-brown); position: relative; padding-bottom: 15px; }
.calc-controls h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background: var(--accent-gold); }
.input-group { margin-bottom: 35px; }
.input-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-weight: 600; color: #666; font-size: 0.95em; }
.input-value-display { 
    color: var(--primary-brown); font-weight: 800; font-size: 1.1em;
    background: var(--bg-warm); padding: 5px 12px; border-radius: 8px; border: 1px solid rgba(212, 175, 55, 0.2);
    min-width: 120px; text-align: right; font-variant-numeric: tabular-nums;
}
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; background: #eef1f5; border-radius: 10px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); transition: background 0.3s; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 28px; width: 28px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffd700, #D4AF37); margin-top: -10px; box-shadow: 0 4px 10px rgba(212,175,55,0.4), 0 0 0 4px rgba(255,255,255,1); transition: transform 0.2s; }
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.2); }

.calc-visuals { 
    flex: 0 0 45%; max-width: 45%; background: linear-gradient(145deg, var(--primary-brown), #3E2B24);
    padding: 30px; color: white; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; 
    position: relative; border-left: 5px solid var(--accent-gold);
}
.result-box { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 20px 15px; width: 100%; margin-bottom: 30px; }
.main-result-value { font-size: clamp(1.8rem, 3.5vw, 3em); font-weight: 800; color: var(--accent-gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-container { height: 220px; width: 100%; margin-bottom: 30px; position: relative; display: flex; justify-content: center; align-items: center; }
.chart-circle-bg { stroke: rgba(255,255,255,0.1); stroke-width: 6; }
.chart-circle-fill { stroke: var(--accent-gold); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6)); transition: stroke-dasharray 0.8s; }
#bar-deposited { background: rgba(255,255,255,0.3); border-radius: 6px 6px 0 0; }
#bar-total { background: linear-gradient(to top, var(--accent-gold), #ffd700); border-radius: 6px 6px 0 0; box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
.calc-visuals .cta-button { background: var(--accent-gold); color: var(--text-dark); width: 100%; border: none; }

/* Switch pro inflaci */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: var(--accent-gold); }
input:checked + .slider:before { transform: translateX(24px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* --- OBSAH STRÁNEK & KONTAKTY --- */
.content-page { max-width: 1000px; margin: 60px auto; padding: 60px 5%; background: var(--bg-white); border-radius: 30px; box-shadow: var(--shadow-premium); }
.contact-container { display: flex; gap: 60px; margin-top: 50px; align-items: flex-start; }
.contact-box-style { background: linear-gradient(160deg, #ffffff 40%, #fbf8f5 100%); padding: 40px; border-radius: 20px; border: 1px solid rgba(212,175,55,0.15); border-left: 4px solid var(--accent-gold); width: 100%; box-shadow: 0 15px 35px rgba(93, 64, 55, 0.08); transition: transform 0.3s ease; }
.contact-box-style:hover { transform: translateY(-5px); }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 2px solid #eee; background-color: white; border-radius: 12px; transition: border 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent-gold); outline: none; }
.gdpr-container { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }

/* Nový seznam kontaktů */
.contact-list-new { list-style: none; padding: 0; margin: 0; }
.contact-item-row { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.contact-icon-box { font-size: 1.6em; min-width: 35px; text-align: center; padding-top: 2px; }
.contact-details { display: flex; flex-direction: column; justify-content: center; }
.contact-label { font-weight: 700; color: var(--accent-gold); font-size: 0.8em; text-transform: uppercase; margin-bottom: 3px; }
.contact-value { font-size: 1.1em; font-weight: 700; color: var(--text-dark); line-height: 1.4; }
.contact-value.email-fix { font-size: 1.05em; white-space: nowrap; }

/* O Mně - Bio karta */
.bio-card { background-color: #FFF9F0; border-radius: 15px; border-left: 5px solid #C59D5F; padding: 60px 50px; text-align: center; box-shadow: 0 15px 40px rgba(93, 64, 55, 0.08); max-width: 900px; margin: 60px auto; }
.bio-card h2 { color: #4A3B32; font-size: 2em; margin-bottom: 35px; }
.bio-card p { color: #555; font-size: 1.1em; line-height: 1.8; margin-bottom: 25px; }

/* O Mně - Typografie */
.about-grid { display: flex; gap: 60px; align-items: flex-start; margin-bottom: 80px; }
.philosophy-wrapper { display: flex; flex-direction: column; justify-content: center; height: 100%; padding-right: 40px; }
.philosophy-label { font-size: 0.85em; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; color: var(--accent-gold); margin-bottom: 20px; display: block; position: relative; padding-left: 50px; }
.philosophy-label::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 35px; height: 2px; background-color: var(--accent-gold); }
.philosophy-heading { font-size: 3.2em; line-height: 1.1; color: var(--primary-brown); margin-bottom: 30px; }
.philosophy-heading .light { font-weight: 300; display: block; }
.philosophy-heading .bold { font-weight: 800; display: block; color: var(--text-dark); }
.philosophy-text { font-size: 1.1em; line-height: 1.8; color: #555; margin-bottom: 40px; max-width: 90%; }
.philosophy-quote { border-left: 4px solid var(--accent-gold); padding-left: 25px; margin-top: 20px; }
.philosophy-quote p { font-family: 'Georgia', serif; font-style: italic; font-size: 1.3em; color: var(--primary-brown); }

/* --- PATIČKA --- */
footer { background: var(--primary-brown); color: rgba(255,255,255,0.7); padding: 80px 5% 100px 5%; text-align: center; border-top: 5px solid var(--accent-gold); }
.footer-logo { font-size: 1.8em; font-weight: 800; color: var(--accent-gold); margin-bottom: 15px; display: inline-block; }
.footer-contact a { color: white; margin: 0 15px; font-weight: 600; font-size: 1.1em; }
.mobile-call-btn { display: none; position: fixed; bottom: 20px; left: 20px; right: 20px; background: #25D366; color: white; padding: 15px; border-radius: 50px; text-align: center; font-weight: 700; box-shadow: 0 5px 20px rgba(0,0,0,0.3); z-index: 9999; animation: pulse 2s infinite; }

/* --- RESPONSIVITA (Mobilní verze) --- */
@media (max-width: 1100px) {
    .hero-text-side h1 { font-size: 3em; }
    .hero-modern { gap: 30px; }
    .premium-calc { flex-direction: column; gap: 40px; }
}

@media (max-width: 900px) {
    .navbar { flex-direction: column; gap: 10px; padding: 15px 5%; }
    .navbar nav ul { overflow-x: auto; width: 100%; justify-content: flex-start; padding-bottom: 5px; -webkit-overflow-scrolling: touch; }
    .hero-modern { flex-direction: column-reverse; text-align: center; padding-top: 30px; gap: 30px; }
    .hero-text-side { padding-right: 0; margin-top: 20px; }
    .hero-text-side h1 { font-size: 2.2em; }
    .btn-group { justify-content: center; }
    
    .service-row { flex-direction: column-reverse !important; gap: 30px; margin-bottom: 80px; text-align: center; }
    .service-text h3::after { left: 50%; transform: translateX(-50%); }
    
    .about-grid { flex-direction: column-reverse; gap: 30px; text-align: center; }
    .philosophy-wrapper { padding-right: 0; text-align: left; }
    .contact-container { flex-direction: column; gap: 30px; }
    .contact-value.email-fix { white-space: normal; word-break: break-all; }
    
    .premium-calc { flex-direction: column; padding: 30px 20px; gap: 30px; }
    .calc-controls, .calc-visuals { flex: 0 0 100%; max-width: 100%; padding: 30px 20px; border-left: none; }
    .calc-visuals { border-top: 5px solid var(--accent-gold); }
    .main-result-value { font-size: clamp(2rem, 5vw, 3rem); }
    .content-page { padding: 40px 20px !important; margin: 30px auto; width: 95%; }
    
    .footer-contact { display: flex; flex-direction: column; gap: 10px; }
    .mobile-call-btn { display: block; }
    
    .services-grid { padding: 0 10px; }
}

/* --- DOPLNĚK PRO ZÁLOŽKY KALKULAČEK A UTILITY --- */
.loan-tabs {
    display: flex;
    background: #f0f0f0;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 25px;
    gap: 5px;
}

.loan-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

.loan-tab.active {
    background: #fff;
    color: var(--primary-brown);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.hidden {
    display: none !important;
}

.saving-text {
    font-size: 0.9em; 
    color: #69f0ae; /* Zelená pro úsporu */
    margin-top: 5px;
    font-weight: 600;
}

/* --- GDPR ODKAZ V PATIČCE --- */
.gdpr-link {
    color: rgba(255, 255, 255, 0.4); /* Jemná šedá, aby nesvítila */
    font-size: 0.85em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gdpr-link:hover {
    color: var(--accent-gold); /* Při najetí zezlátne */
    text-decoration: underline;
}

/* --- FIX PRO MOBILNÍ ZOBRAZENÍ (Vložit na konec styles.css) --- */

/* 1. Hlavní pojistka proti ujíždění do strany */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 2. Zalamování dlouhých e-mailů a odkazů */
.contact-value.email-fix, 
.footer-contact a {
    white-space: normal !important; /* Povolí zalomení */
    word-wrap: break-word;
    word-break: break-word; /* Rozdělí slovo, pokud je moc dlouhé */
    display: block; 
}

/* 3. Specifické úpravy pro malé mobily */
@media (max-width: 600px) {
    /* Zrušíme minimální šířku boxů, aby se vešly na úzký displej */
    .contact-info, 
    .contact-box-style {
        min-width: 0 !important; 
        width: 100% !important;
        padding: 25px 15px !important; /* Menší vnitřní okraj */
    }
    
    /* Zmenšíme padding hlavní stránky */
    .content-page {
        width: 95% !important;
        padding: 30px 15px !important;
        margin: 20px auto !important;
    }

    /* Zmenšíme trochu logo v menu, aby neroztahovalo hlavičku */
    .navbar .logo {
        font-size: 1.1em;
        white-space: normal; /* Povolí zalomení loga na dva řádky, pokud je třeba */
    }
}

/* 4. Místo pro fixní tlačítko "Zavolat" */
footer {
    padding-bottom: 120px !important; /* Aby tlačítko nepřekrývalo text */
}