/* --- VARIABLES --- */
:root {
    --fn-primary: #6f42c1;
    --fn-primary-glow: rgba(111, 66, 193, 0.4);
    --fn-secondary: #20c997;
    --fn-bg: #f5f7fa;
    --fn-white: #ffffff;
    --fn-text: #1a1a1b;
    --fn-text-light: #64748b;
    --fn-grad: linear-gradient(135deg, #6f42c1 0%, #a855f7 100%);
    --fn-radius: 30px;
    --fn-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.fn-body {
    font-family: 'Manrope', sans-serif;
    background: var(--fn-bg);
    color: var(--fn-text);
    line-height: 1.5;
    overflow-x: hidden;
}

.fn-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Background Blobs */
.fn-bg-blobs { position: absolute; top: 0; left: 0; width: 100%; height: 800px; overflow: hidden; z-index: -1; }
.fn-blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.2; }
.fn-blob-p { width: 500px; height: 500px; background: var(--fn-primary); top: -200px; right: -100px; }
.fn-blob-s { width: 400px; height: 400px; background: var(--fn-secondary); top: 300px; left: -150px; }

/* Nav */
.fn-nav { height: 80px; display: flex; align-items: center; background: rgba(255,255,255,0.8); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05); }
.fn-nav-flex { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.fn-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--fn-primary); }
.fn-logo span span { color: var(--fn-secondary); }
.fn-logo-ico { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.fn-logo-ico svg { width: 100%; height: 100%; }

.fn-nav-menu { display: flex; gap: 30px; }
.fn-nav-link { font-weight: 600; font-size: 15px; color: var(--fn-text-light); }
.fn-nav-link.active, .fn-nav-link:hover { color: var(--fn-primary); }

/* Hero */
.fn-hero { padding: 60px 0 80px; }
.fn-hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.fn-hero-tag { display: inline-block; padding: 6px 16px; background: rgba(111,66,193,0.1); color: var(--fn-primary); border-radius: 50px; font-size: 13px; font-weight: 800; margin-bottom: 20px; }
.fn-hero-h { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 25px; }
.fn-grad-txt { background: var(--fn-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.fn-hero-p { font-size: 19px; color: var(--fn-text-light); margin-bottom: 40px; }
.fn-hero-stats { display: flex; gap: 40px; }
.fn-h-stat { display: flex; gap: 12px; align-items: center; }
.fn-h-ico { font-size: 26px; background: white; width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; box-shadow: var(--fn-shadow); }
.fn-h-v { font-weight: 800; font-size: 16px; }

/* Calculator */
.fn-hero-calc { background: var(--fn-white); padding: 40px; border-radius: 32px; box-shadow: 0 25px 60px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.02); position: relative; }
.fn-calc-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.fn-calc-l { font-weight: 700; color: var(--fn-text-light); }
.fn-calc-v { font-size: 36px; font-weight: 800; color: var(--fn-primary); }

/* Range Slider Styles */
.fn-range-box { position: relative; height: 32px; margin-bottom: 35px; display: flex; align-items: center; }
.fn-range { 
    width: 100%; 
    height: 100%;
    -webkit-appearance: none; 
    background: transparent; 
    z-index: 5; 
    cursor: pointer;
    margin: 0;
}
.fn-range:focus { outline: none; }

/* Track */
.fn-range::-webkit-slider-runnable-track { height: 8px; background: #f1f5f9; border-radius: 10px; border: none; }
.fn-range::-moz-range-track { height: 8px; background: #f1f5f9; border-radius: 10px; border: none; }

/* Thumb */
.fn-range::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    height: 26px; 
    width: 26px; 
    background: var(--fn-primary); 
    border: 4px solid white; 
    border-radius: 50%; 
    margin-top: -9px; 
    box-shadow: 0 4px 10px rgba(111,66,193,0.3);
    transition: transform 0.2s;
}
.fn-range::-moz-range-thumb { 
    height: 22px; 
    width: 22px; 
    background: var(--fn-primary); 
    border: 4px solid white; 
    border-radius: 50%; 
    box-shadow: 0 4px 10px rgba(111,66,193,0.3);
}
.fn-range:active::-webkit-slider-thumb { transform: scale(1.1); }

/* Progress Fill */
.fn-range-fill { 
    position: absolute; 
    top: 50%; 
    left: 0; 
    height: 8px; 
    background: var(--fn-primary); 
    transform: translateY(-50%); 
    border-radius: 10px; 
    z-index: 1; 
    pointer-events: none;
}

.fn-calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 35px; }
.fn-c-box { background: #f8fafc; padding: 15px; border-radius: 16px; text-align: center; }
.fn-c-box.fn-c-best { background: rgba(32, 201, 151, 0.1); color: var(--fn-secondary); }
.fn-btn-hero { display: block; width: 100%; padding: 20px; background: var(--fn-grad); color: white; text-align: center; border-radius: 20px; font-weight: 800; font-size: 17px; box-shadow: 0 10px 30px rgba(111,66,193,0.4); border: none; cursor: pointer; }

/* Offers Section */
.fn-offers-section { padding: 100px 0 60px; }
.fn-section-head { text-align: center; margin-bottom: 60px; }
.fn-section-head h2 { font-size: 40px; font-weight: 800; margin-bottom: 15px; }
.fn-section-head p { font-size: 18px; color: var(--fn-text-light); max-width: 600px; margin: 0 auto; }

.fn-offers-grid.fn-grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.fn-offers-grid.fn-list-view { display: flex; flex-direction: column; gap: 25px; }

.fn-offer-card { background: white; border-radius: 30px; padding: 32px; position: relative; border: 1px solid rgba(0,0,0,0.04); box-shadow: var(--fn-shadow); transition: 0.4s; display: flex; flex-direction: column; overflow: hidden; }
.fn-offer-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(111, 66, 193, 0.1); }
.fn-card-badge { position: absolute; top: 15px; right: 15px; background: var(--fn-secondary); color: white; padding: 6px 14px; border-radius: 12px; font-size: 12px; font-weight: 800; z-index: 2; }
.fn-card-logo-area { width: 140px; height: 60px; background: #f8fafc; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; overflow: hidden; padding: 10px; border: 1px solid #f1f5f9; }
.fn-card-logo-area img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fn-card-name { font-size: 24px; font-weight: 800; }
.fn-card-rating { font-weight: 800; font-size: 14px; color: #fbbf24; background: #fff9e6; padding: 4px 12px; border-radius: 50px; }
.fn-card-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 30px; }
.fn-info-tile { background: #f8fafc; padding: 15px; border-radius: 20px; display: flex; flex-direction: column; }
.fn-tile-main { grid-column: span 2; flex-direction: row; justify-content: space-between; align-items: center; background: rgba(111,66,193,0.05); }
.fn-info-l { font-size: 11px; text-transform: uppercase; font-weight: 800; color: var(--fn-text-light); }
.fn-info-v { font-weight: 800; font-size: 16px; }
.fn-info-v.fn-accent { font-size: 22px; color: var(--fn-primary); }
.fn-btn-card { display: flex; align-items: center; justify-content: center; width: 100%; padding: 18px; background: var(--fn-grad); color: white; border-radius: 18px; font-weight: 800; gap: 10px; box-shadow: 0 10px 20px rgba(111, 66, 193, 0.3); border: none; cursor: pointer; }
.fn-btn-card span { font-size: 20px; transition: 0.3s; }
.fn-btn-card:hover span { transform: translateX(5px); }

/* Stats Bar */
.fn-stats-bar { background: var(--fn-primary); padding: 50px 0; color: white; position: relative; z-index: 5; margin: 40px 0; border-radius: 40px; box-shadow: 0 20px 40px rgba(111, 66, 193, 0.2); }
.fn-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.fn-stat-n { font-size: 42px; font-weight: 900; margin-bottom: 5px; color: var(--fn-secondary); }
.fn-stat-t { font-size: 15px; opacity: 0.9; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* How It Works (Design Fix) */
.fn-how-sec { padding: 80px 0; background: var(--fn-white); border-radius: 50px; margin-bottom: 60px; box-shadow: 0 -20px 50px rgba(0,0,0,0.02); }
.fn-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.fn-how-item { background: #f8fafc; padding: 40px 30px; border-radius: 30px; text-align: center; position: relative; border: 1px solid #f1f5f9; transition: 0.3s; }
.fn-how-item:hover { background: var(--fn-white); box-shadow: 0 15px 35px rgba(0,0,0,0.05); transform: translateY(-5px); }
.fn-how-ico { width: 60px; height: 60px; background: var(--fn-grad); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; margin: 0 auto 25px; box-shadow: 0 10px 20px rgba(111, 66, 193, 0.2); }
.fn-how-item h3 { font-size: 20px; font-weight: 800; margin-bottom: 15px; color: var(--fn-text); }
.fn-how-item p { font-size: 15px; color: var(--fn-text-light); }

/* FAQ */
.fn-faq-section { padding: 60px 0 100px; }
.fn-faq-list { max-width: 800px; margin: 0 auto; }
.fn-faq-item { background: white; border-radius: 20px; margin-bottom: 15px; border: 1px solid #edf2f7; overflow: hidden; }
.fn-faq-q { padding: 25px 35px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.fn-faq-toggle::after { content: '+'; font-size: 24px; color: var(--fn-primary); }
.fn-faq-item.active .fn-faq-toggle::after { content: '−'; }
.fn-faq-a { padding: 0 35px 25px; color: var(--fn-text-light); display: none; }

/* Legal & Footer */
.fn-legal-section { background: #f1f5f9; padding: 60px 0; font-size: 13px; color: var(--fn-text-light); }
.fn-legal-h { color: var(--fn-text); margin-bottom: 30px; font-weight: 800; font-size: 20px; }
.fn-legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.fn-legal-col h4 { color: var(--fn-text); margin-bottom: 10px; }
.fn-legal-col.fn-full { grid-column: 1 / -1; }
.fn-footer { padding: 80px 0 40px; background: white; border-top: 1px solid #eee; }
.fn-foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.fn-foot-brand .fn-logo { margin-bottom: 20px; }
.fn-foot-contacts p, .fn-foot-links a { margin-bottom: 12px; font-size: 14px; display: block; }
.fn-foot-copy { text-align: center; border-top: 1px solid #f1f5f9; padding-top: 30px; font-size: 12px; color: var(--fn-text-light); }

/* Burger */
.fn-burger { display: none; border: none; background: none; flex-direction: column; gap: 6px; cursor: pointer; }
.fn-burger span { width: 25px; height: 3px; background: var(--fn-primary); border-radius: 2px; }

@media (max-width: 991px) {
    .fn-hero-layout { grid-template-columns: 1fr; text-align: center; }
    .fn-hero-text { display: flex; flex-direction: column; align-items: center; }
    .fn-hero-h { font-size: 42px; }
    .fn-stats-grid, .fn-how-grid { grid-template-columns: 1fr; gap: 30px; }
    .fn-foot-top { grid-template-columns: 1fr; text-align: center; }
    .fn-foot-brand .fn-logo { justify-content: center; }
    .fn-burger { display: flex; }
    .fn-nav-menu { position: fixed; top: 80px; left: 0; width: 100%; background: white; flex-direction: column; padding: 40px; gap: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: none; }
    .fn-nav-menu.active { display: flex; }
    
    /* Mobile Slider Fix */
    .fn-range-box { height: 44px; margin-bottom: 40px; }
    .fn-range::-webkit-slider-thumb { height: 32px; width: 32px; margin-top: -12px; }
}

@media (max-width: 480px) {
    .fn-hero-h { font-size: 34px; }
    .fn-mob-2col.fn-grid-view { grid-template-columns: 1fr 1fr; gap: 10px; }
    .fn-mob-2col .fn-offer-card { padding: 15px; border-radius: 20px; }
    .fn-mob-2col .fn-card-name { font-size: 16px; }
    .fn-mob-2col .fn-card-logo-area { width: 100%; height: 45px; margin-bottom: 15px; }
    .fn-mob-2col .fn-card-rating { font-size: 10px; padding: 2px 8px; }
    .fn-mob-2col .fn-info-tile { padding: 10px; }
    .fn-mob-2col .fn-tile-main { flex-direction: column; align-items: flex-start; }
    .fn-mob-2col .fn-info-v.fn-accent { font-size: 16px; }
}