:root {
    /* PALETTE: Emerald & Slate */
    --clr-primary: #10B981;       
    --clr-primary-dark: #059669;  
    --clr-accent: #3b82f6;        
    --clr-dark: #0F172A;          
    --clr-text: #334155;          
    --clr-bg: #F8FAFC;            
    --clr-white: #FFFFFF;
    
    /* Variables */
    --rad-card: 16px;             
    --rad-btn: 10px;
    
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 30px rgba(16, 185, 129, 0.15);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; font-size: 16px; }
body { 
    font-family: 'Outfit', sans-serif; 
    background-color: var(--clr-bg); 
    color: var(--clr-text); 
    line-height: 1.5; 
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: 0.2s ease; }
ul { list-style: none; }
button { font-family: inherit; }

/* UTILS */
.main-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }
.full-w { width: 100%; }

/* ANIMATIONS */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* BUTTONS */
.btn-primary { 
    display: inline-flex; justify-content: center; align-items: center; gap: 8px;
    background: var(--clr-primary); color: #fff;
    font-weight: 700; border-radius: var(--rad-btn);
    padding: 16px 28px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: 0.3s;
}
.btn-primary:hover { background: var(--clr-primary-dark); transform: translateY(-2px); }
.pulse-btn { animation: pulse-green 2s infinite; }

/* HEADER */
.site-navbar { background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid #e2e8f0; height: 74px; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.brand-logo { display: flex; align-items: center; gap: 10px; color: var(--clr-dark); font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }
.brand-icon { color: var(--clr-primary); display: flex; background: #ecfdf5; padding: 6px; border-radius: 8px; }

.menu-links nav { display: flex; gap: 32px; }
.link-item { font-size: 15px; font-weight: 500; color: var(--clr-text); position: relative; }
.link-item:hover { color: var(--clr-primary); }

.menu-toggler { display: none; border: none; background: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.menu-toggler span { display: block; width: 24px; height: 2px; background: var(--clr-dark); transition: 0.3s; }

/* HERO */
.intro-section { padding: 60px 0 80px; }
.intro-grid { display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center; }

/* Hero Text */
.trust-badges { display: flex; gap: 15px; margin-bottom: 24px; flex-wrap: wrap; }
.badge-item { background: #fff; border: 1px solid #e2e8f0; color: #475569; padding: 8px 14px; border-radius: 30px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.bi-icon { font-size: 16px; }

.intro-content h1 { font-size: 56px; line-height: 1.1; color: var(--clr-dark); margin-bottom: 24px; font-weight: 800; letter-spacing: -1.5px; }
.highlight { color: var(--clr-primary); }
.intro-desc { font-size: 18px; color: #64748b; margin-bottom: 40px; max-width: 480px; line-height: 1.6; }

.features-row { display: flex; gap: 30px; align-items: center; }
.feat-box { display: flex; align-items: center; gap: 12px; }
.fb-icon { width: 44px; height: 44px; background: #f1f5f9; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.fb-txt { display: flex; flex-direction: column; }
.fb-txt strong { font-size: 16px; color: var(--clr-dark); }
.fb-txt span { font-size: 12px; color: #94a3b8; }
.feat-sep { height: 40px; width: 1px; background: #e2e8f0; }

/* --- CALCULATOR REDESIGN --- */
.loan-calculator {
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid #fff;
    transition: 0.3s;
}
.calc-glow:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Tabs */
.calc-tabs { display: flex; background: #f1f5f9; padding: 4px; border-radius: 12px; margin-bottom: 30px; }
.tab-btn { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #64748b; cursor: pointer; transition: 0.3s; }
.tab-btn.active { background: #fff; color: var(--clr-dark); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* Display */
.calc-display-area { text-align: center; margin-bottom: 30px; }
.cl-label { font-size: 12px; text-transform: uppercase; font-weight: 700; color: #94a3b8; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.cl-value-wrap { display: flex; justify-content: center; align-items: flex-start; gap: 5px; }
.cl-value { font-size: 48px; font-weight: 800; color: var(--clr-dark); line-height: 1; letter-spacing: -1px; }
.cl-currency { font-size: 24px; font-weight: 600; color: #cbd5e1; margin-top: 6px; }

/* Slider */
.calc-control { margin-bottom: 35px; position: relative; }
.range-wrap { position: relative; height: 12px; }
.calc-input {
    width: 100%; -webkit-appearance: none; height: 12px; border-radius: 6px; background: #e2e8f0; outline: none; cursor: pointer;
}
.calc-input::-webkit-slider-thumb {
    -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%;
    background: #fff; border: 2px solid var(--clr-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.2s; margin-top: -2px;
}
.calc-input::-webkit-slider-thumb:hover { transform: scale(1.15); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }

.range-limits { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #94a3b8; font-weight: 600; }

/* Stats Grid */
.calc-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; }
.cs-item { background: #f8fafc; padding: 15px; border-radius: 12px; border: 1px solid #f1f5f9; }
.cs-item.wide { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; }

.cs-lbl { font-size: 11px; text-transform: uppercase; color: #94a3b8; display: block; margin-bottom: 4px; font-weight: 700; }
.cs-val { font-size: 16px; font-weight: 800; color: var(--clr-dark); }
.cs-val.accent { color: var(--clr-primary); }
.cs-val.success { color: var(--clr-primary-dark); }

/* Probability Bar */
.prob-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.prob-track { width: 100%; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.prob-fill { height: 100%; background: var(--clr-primary); border-radius: 3px; transition: width 0.5s ease; }

/* Summary */
.calc-summary { margin-bottom: 20px; border-top: 1px dashed #e2e8f0; padding-top: 20px; }
.cs-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.cs-row span { color: #64748b; }
.cs-row strong { color: var(--clr-dark); font-size: 18px; }

.calc-disclaimer { margin-top: 20px; text-align: center; font-size: 12px; color: #cbd5e1; display: flex; align-items: center; justify-content: center; gap: 6px; }
.lock-icon { font-size: 14px; }

/* --- OFFERS LIST --- */
.offers-area { padding: 0px 0; background: #f8fafc; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 50px; }
.section-header h2 { font-size: 36px; color: var(--clr-dark); margin-bottom: 15px; font-weight: 800; }
.section-header p { color: #64748b; font-size: 18px; }

.offers-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.offer-unit {
    background: #fff; border-radius: 24px;
    padding: 24px; position: relative;
    /* 3D Border Effect */
    border: 1px solid #fff;
    border-bottom: 4px solid #e2e8f0; 
    
    transition: all 0.25s ease-out;
    display: flex; flex-direction: column;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden; 
}

/* Hover Effect: Press down */
.offer-unit:hover { 
    border-bottom-color: var(--clr-primary); 
    transform: translateY(-4px); 
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.2); 
}

/* Stylish Corner Badge */
.offer-tag {
    position: absolute; top: 0; right: 0;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%); 
    color: #fff;
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 8px 16px;
    border-bottom-left-radius: 18px;
    box-shadow: -2px 2px 10px rgba(16, 185, 129, 0.2);
    z-index: 5;
}
.offer-tag::before { content: '★ '; color: #fff; margin-right: 2px; }

/* Card Top Section */
.offer-top { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 25px; margin-top: 10px; padding-right: 5px; 
}

.offer-logo { 
    height: 40px; width: 120px; 
    display: flex; align-items: center; 
    /* COLORED LOGO (Removed grayscale) */
    opacity: 1; 
    transition: 0.3s ease;
}
.offer-logo img { max-height: 100%; max-width: 100%; object-fit: contain; object-position: left; }

.offer-sum { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.offer-sum small { 
    font-size: 10px; color: #94a3b8; text-transform: uppercase; font-weight: 700; 
    background: #f1f5f9; padding: 2px 6px; border-radius: 4px; margin-bottom: 4px;
}
.offer-sum span { font-size: 20px; font-weight: 800; color: var(--clr-dark); letter-spacing: -0.5px; }

/* Parameters Grid (More Volume / Chips) */
.offer-params { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; 
    margin-bottom: 24px;
    /* Inset look container */
    background: #F8FAFC; 
    border-radius: 16px; 
    padding: 8px;
    border: 1px solid #F1F5F9;
}
.op-col { 
    /* Chip Look */
    background: #fff; 
    padding: 10px 14px; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); /* Slight lift */
    transition: 0.3s;
    text-align: center;
}
.offer-unit:hover .op-col { border-color: #cbd5e1; transform: translateY(-1px); }

.op-col span { 
    font-size: 9px; color: #64748b; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; 
    display: block; 
}
.op-col strong { font-size: 14px; color: var(--clr-dark); font-weight: 800; }

/* Action Button (COLORED & FILLED) */
.btn-outline { 
    display: flex; justify-content: center; align-items: center; gap: 8px;
    width: 100%; padding: 16px;
    
    /* Filled Style */
    background: var(--clr-primary);
    color: #fff;
    border: none;
    font-weight: 700; font-size: 15px;
    border-radius: 14px; 
    
    /* Shadow */
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-outline::after { content: '→'; transition: 0.3s; opacity: 0.7; transform: translateX(0); font-weight: 800; }

.btn-outline:hover { 
    background: var(--clr-primary-dark); 
    color: #fff; 
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4); 
    transform: translateY(-2px);
}
.btn-outline:hover::after { opacity: 1; transform: translateX(4px); }

/* STEPS */
.process-block { padding: 100px 0; }
.process-container { background: #fff; border: 1px solid #f1f5f9; border-radius: 30px; padding: 60px; box-shadow: var(--shadow-soft); }
.process-steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 50px; margin-top: 50px; }

.ps-item { text-align: center; }
.ps-icon-box { 
    width: 80px; height: 80px; margin: 0 auto 25px; 
    background: #ecfdf5; border-radius: 50%; color: var(--clr-primary);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.ps-icon-box::after { content: ''; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px; border: 1px solid #d1fae5; border-radius: 50%; }

.ps-item h3 { font-size: 20px; margin-bottom: 12px; color: var(--clr-dark); font-weight: 800; }
.ps-item p { font-size: 15px; color: #64748b; line-height: 1.6; }

/* FAQ */
.faq-section { padding: 0 0 100px; }
.narrow { max-width: 800px; }
.acc-item { border-bottom: 1px solid #f1f5f9; }
.acc-head { padding: 25px 0; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; color: var(--clr-dark); font-size: 18px; }
.acc-body { display: none; padding-bottom: 25px; color: #64748b; line-height: 1.6; font-size: 16px; }
.acc-item.active .acc-body { display: block; }
.acc-item.active .arr { transform: rotate(180deg); color: var(--clr-primary); }
.arr { transition: 0.3s; color: #cbd5e1; font-weight: 400; }

/* LEGAL TEXT (Detailed for Ads) */
.info-block { padding: 60px 0; background: #fff; border-top: 1px solid #f1f5f9; font-size: 12px; color: #94a3b8; line-height: 1.6; }
.info-text-area h3 { font-size: 14px; margin-bottom: 20px; color: #64748b; font-weight: 700; text-transform: uppercase; }
.info-text-area p { margin-bottom: 12px; }

/* Grid for Legal Text */
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* FOOTER */
.site-footer { background: var(--clr-dark); color: #94a3b8; padding: 80px 0 40px; }
.footer-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }

.ft-logo { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 15px; }
.ft-nav, .ft-contacts { display: flex; flex-direction: column; gap: 15px; }
.ft-nav h4, .ft-contacts h4 { color: #fff; font-size: 18px; margin-bottom: 5px; font-weight: 700; }
.ft-nav a { transition: 0.2s; }
.ft-nav a:hover { color: var(--clr-primary); transform: translateX(5px); }
.ft-phone { color: #fff; font-weight: 700; font-size: 20px; }

.footer-copy { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; text-align: center; font-size: 13px; opacity: 0.4; }

/* ADSENSE MOBILE */
.ad-wrapper-mob {
    grid-column: 1 / -1; width: 100%; min-height: 250px; background: #f8fafc;
    display: none; 
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .intro-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .intro-content { margin-bottom: 0; }
    .trust-badges, .features-row { justify-content: center; }
    
    /* MOBILE CALCULATOR WIDTH FIX */
    .loan-calculator { 
        max-width: 500px; 
        margin: 0 auto; 
        width: 100%; /* Force 100% width */
        padding: 20px; /* Reduced padding (same as offer cards) */
    }
    
    .menu-links { position: absolute; top: 74px; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 30px; border-bottom: 1px solid #e2e8f0; display: none; box-shadow: var(--shadow-soft); }
    .menu-links.show { display: flex; }
    .menu-links nav { flex-direction: column; align-items: center; gap: 20px; }
    .menu-toggler { display: flex; }
    
    /* MOBILE OFFERS FIX */
    .offers-list { 
        display: flex; 
        flex-direction: column; 
        gap: 20px; 
        max-width: 500px; 
        margin: 0 auto; 
        width: 100%; 
    }
    
    .offer-unit {
        width: 100%;
        padding: 20px; 
    }

    .process-steps { grid-template-columns: 1fr; gap: 30px; }
    
    .ad-wrapper-mob { display: block; }
}

@media (max-width: 768px) {
    .legal-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
    .intro-content h1 { font-size: 38px; }
    .calc-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .cs-item.wide { grid-column: span 2; }
    .footer-row { grid-template-columns: 1fr; text-align: center; }
    .ft-contacts { align-items: center; }
    .section-header h2 { font-size: 28px; }
}