:root {
    --sun: #F59E0B;
    --sun-deep: #D97706;
    --sun-light: #FEF3C7;
    --ink: #1C1917;
    --ink-soft: #44403C;
    --ink-muted: #78716C;
    --cream: #FFFBF0;
    --white: #FFFFFF;
    --bg: #F7F3EC;
    --card: #FFFFFF;
    --border: #E7E0D5;
    --green: #16A34A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAV ───────────────────────────────────────────── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(28,25,23,0.95);
    backdrop-filter: blur(10px);
    padding: 0 24px;
    height: 64px;
    display: flex; align-items: center;
    border-bottom: 1px solid rgba(245,158,11,0.2);
}
.nav-inner {
    max-width: 1140px; width: 100%; margin: auto;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-family: 'Sora', sans-serif;
    font-weight: 800; font-size: 1.2rem;
    color: var(--white);
    letter-spacing: -0.5px;
}
.logo span { color: var(--sun); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--sun); }
.btn-nav {
    background: var(--sun);
    color: var(--ink) !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600 !important;
}
.btn-nav:hover { background: var(--sun-deep); color: var(--ink) !important; }

/* ── HERO ─────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    background: linear-gradient(to right, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.75)), url('https://images.unsplash.com/photo-1624397640148-949b1732bb0a?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 120px 24px 80px;
}
.hero-rays {
    position: absolute; top: -20%; right: -10%;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,0.18) 0%, rgba(245,158,11,0.04) 50%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}
.hero-rays-2 {
    position: absolute; top: 20%; right: 15%;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 60%);
    animation: pulse 4s ease-in-out 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
}
.hero-content {
    max-width: 1140px; margin: auto; position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.3);
    color: var(--sun);
    font-size: 0.8rem; font-weight: 600;
    padding: 6px 14px; border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-badge::before { content: '☀'; font-size: 1rem; }
.hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.hero h1 em { color: var(--sun); font-style: normal; }
.hero-sub {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    margin-bottom: 36px;
    line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
    display: inline-block;
    background: var(--sun);
    color: var(--ink);
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 700; font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(245,158,11,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,158,11,0.5); }
.btn-secondary {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8);
    padding: 14px 28px; border-radius: 100px;
    font-weight: 500; font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--sun); color: var(--sun); }
.hero-stats {
    display: flex; gap: 36px; margin-top: 48px; padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item { }
.stat-num {
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem; font-weight: 800;
    color: var(--sun); line-height: 1;
}
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* Hero visual card */
.hero-visual {
    background: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(28,25,23,0) 60%);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 24px;
    padding: 32px;
    position: relative;
}
.hero-visual-title {
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem; font-weight: 600;
    color: var(--sun); letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 20px;
}
.savings-preview {
    display: flex; flex-direction: column; gap: 12px;
}
.savings-row {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 14px 18px;
}
.savings-row-label { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.savings-row-val { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem; color: var(--white); }
.savings-row-val.green { color: #4ADE80; }
.savings-total-box {
    background: var(--sun);
    border-radius: 14px; padding: 20px;
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 8px;
}
.savings-total-label { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.savings-total-val { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--ink); }

/* ── SECTION WRAPPER ──────────────────────────────── */
section { padding: 80px 24px; }
.section-inner { max-width: 1140px; margin: auto; }
.section-label {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--sun);
    margin-bottom: 12px;
}
.section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800; letter-spacing: -0.5px;
    color: var(--ink); line-height: 1.2;
    margin-bottom: 16px;
}
.section-sub {
    color: var(--ink-muted); font-size: 1rem; max-width: 560px; line-height: 1.7;
}
.section-head { margin-bottom: 52px; }

/* ── BENEFITS ─────────────────────────────────────── */
#zalety { background: var(--cream); }
.benefits-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.benefit-card {
    background: var(--white);
    border-radius: 20px; padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative; overflow: hidden;
}
.benefit-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--sun);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.benefit-card:hover::before { transform: scaleX(1); }
.benefit-icon {
    font-size: 2rem; margin-bottom: 16px;
    display: block;
}
.benefit-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem; font-weight: 700;
    margin-bottom: 10px;
}
.benefit-card p { color: var(--ink-muted); font-size: 0.93rem; line-height: 1.65; }

/* ── HOW IT WORKS ─────────────────────────────────── */
#jak-to-dziala { background: var(--ink); }
#jak-to-dziala .section-title { color: var(--white); }
#jak-to-dziala .section-sub { color: rgba(255,255,255,0.55); }
.steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute; top: 30px; left: 60px; right: 60px; height: 2px;
    background: linear-gradient(to right, var(--sun), rgba(245,158,11,0.2));
    z-index: 0;
}
.step-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px; padding: 28px 24px;
    position: relative; z-index: 1;
    text-align: center;
    transition: all 0.3s;
}
.step-card:hover { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.3); }
.step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--sun); color: var(--ink);
    font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.step-card h4 {
    font-family: 'Sora', sans-serif; font-weight: 700;
    color: var(--white); font-size: 1rem; margin-bottom: 10px;
}
.step-card p { color: rgba(255,255,255,0.5); font-size: 0.86rem; line-height: 1.6; }

/* ── CALCULATOR ───────────────────────────────────── */
#kalkulator { background: var(--cream); }
.calc-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.calc-form {
    background: var(--white);
    border-radius: 24px; padding: 36px;
    border: 1px solid var(--border);
}
.calc-form h3 {
    font-family: 'Sora', sans-serif; font-weight: 700;
    font-size: 1.1rem; margin-bottom: 24px;
    color: var(--ink);
}
.field { margin-bottom: 22px; }
.field label {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.88rem; font-weight: 600;
    color: var(--ink-soft); margin-bottom: 8px;
}
.field label span { color: var(--sun); font-weight: 700; font-size: 0.95rem; }
input[type="range"] {
    width: 100%; height: 6px;
    -webkit-appearance: none; appearance: none;
    background: var(--border); border-radius: 3px; outline: none;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--sun);
    box-shadow: 0 0 0 4px rgba(245,158,11,0.2);
    cursor: pointer;
}
.calc-results {
    display: flex; flex-direction: column; gap: 20px;
}
.result-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px; padding: 24px 28px;
    transition: all 0.3s;
}
.result-card.highlight {
    background: var(--ink); border-color: var(--sun);
}
.result-label {
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--ink-muted);
    margin-bottom: 8px;
}
.result-card.highlight .result-label { color: rgba(255,255,255,0.5); }
.result-value {
    font-family: 'Sora', sans-serif; font-weight: 800;
    font-size: 2rem; color: var(--ink);
    line-height: 1;
}
.result-card.highlight .result-value { color: var(--sun); font-size: 2.5rem; }
.result-sub { font-size: 0.82rem; color: var(--ink-muted); margin-top: 4px; }
.result-card.highlight .result-sub { color: rgba(255,255,255,0.4); }

/* ── PERSONAL TOUCH ───────────────────────────────── */
#osobiscie { background: var(--white); }
.personal-wrapper {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center;
}
.personal-photo {
    background: linear-gradient(135deg, var(--sun-light) 0%, #FDE68A 100%);
    border-radius: 24px; padding: 40px;
    text-align: center; border: 2px solid var(--sun);
    position: relative;
}
.avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--sun); margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.personal-photo h4 {
    font-family: 'Sora', sans-serif; font-weight: 700;
    font-size: 1.1rem; color: var(--ink);
}
.personal-photo p { font-size: 0.85rem; color: var(--ink-muted); margin-top: 4px; }
.savings-badge {
    background: var(--green); color: white;
    font-family: 'Sora', sans-serif; font-weight: 700;
    font-size: 0.9rem; padding: 8px 16px; border-radius: 100px;
    display: inline-block; margin-top: 16px;
}
.personal-content blockquote {
    font-size: 1.2rem; line-height: 1.7; color: var(--ink);
    font-style: italic; margin-bottom: 24px;
    border-left: 3px solid var(--sun); padding-left: 20px;
}
.personal-content p { color: var(--ink-muted); margin-bottom: 16px; line-height: 1.7; }
.personal-checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.personal-checklist li {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.93rem; color: var(--ink-soft);
}
.personal-checklist li::before {
    content: '✓'; width: 22px; height: 22px; border-radius: 50%;
    background: var(--sun); color: var(--ink);
    font-weight: 800; font-size: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ── FAQ ──────────────────────────────────────────── */
#faq { background: var(--bg); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-item {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px;
    cursor: pointer; transition: all 0.3s;
}
.faq-item:hover { border-color: var(--sun); }
.faq-q {
    font-family: 'Sora', sans-serif; font-weight: 600;
    font-size: 0.95rem; color: var(--ink);
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.faq-q::after { content: '+'; color: var(--sun); font-size: 1.3rem; flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; color: var(--ink-muted); font-size: 0.88rem; margin-top: 12px; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── CONTACT ──────────────────────────────────────── */
#kontakt {
    background: var(--ink);
    padding: 80px 24px;
}
.contact-inner {
    max-width: 680px; margin: auto; text-align: center;
}
#kontakt .section-title { color: var(--white); }
#kontakt .section-sub { color: rgba(255,255,255,0.55); margin: 0 auto 40px; }
.contact-form {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px; padding: 36px;
    text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 13px 16px;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: border 0.2s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--sun); }
.form-field textarea { min-height: 100px; resize: vertical; margin-bottom: 16px; }
.form-field select option { background: var(--ink); color: white; }
.form-field { margin-bottom: 16px; }
.btn-submit {
    width: 100%; padding: 15px;
    background: var(--sun); color: var(--ink);
    border: none; border-radius: 12px;
    font-family: 'Sora', sans-serif;
    font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: all 0.2s;
}
.btn-submit:hover { background: var(--sun-deep); transform: translateY(-1px); }
#form-status {
    margin-top: 16px; text-align: center;
    font-weight: 600; font-size: 0.92rem;
}

/* ── FOOTER ───────────────────────────────────────── */
footer {
    background: #111; color: rgba(255,255,255,0.4);
    text-align: center; padding: 28px 24px;
    font-size: 0.82rem;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
    .hero-content, .calc-wrapper, .personal-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; }
    .benefits-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid::before { display: none; }
    .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    nav .nav-links { display: none; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
}

/* ── ANIMATIONS ───────────────────────────────────── */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── BACK TO TOP ──────────────────────────────────── */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--sun);
    color: var(--ink);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--sun-deep); transform: translateY(-3px); }

/* ── COOKIE BANNER ────────────────────────────────── */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--ink); color: var(--white);
    padding: 16px 24px; z-index: 1000;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.cookie-banner p { margin: 0; max-width: 800px; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-btn {
    padding: 8px 20px; border-radius: 100px; border: none;
    font-family: 'Sora', sans-serif; font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: all 0.2s;
}
.cookie-accept { background: var(--sun); color: var(--ink); }
.cookie-accept:hover { background: var(--sun-deep); }
.cookie-reject { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }
.cookie-reject:hover { border-color: var(--white); color: var(--white); }

/* ── PWA INSTALL BUTTON ───────────────────────────── */
.btn-install {
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--sun);
    color: var(--sun);
    padding: 10px 20px;
    border-radius: 100px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}
.btn-install.visible { display: inline-flex !important; }
.btn-install:hover { background: var(--sun); color: var(--ink); }