:root {
    --primary: #f47c20;
    --primary-dark: #e06a10;
    --dark: #1f2733;
    --darker: #161d27;
    --light-bg: #f4f6f8;
    --text-muted: #6c757d;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    margin: 0;
    color: #1f2733;
    background: #fff;
}

a { text-decoration: none; }

/* NAVBAR */
.navbar {
    background-color: var(--darker);
    padding: 1rem 0;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 1px;
    color: #fff !important;
}
.navbar-brand .ai-badge {
    color: var(--primary);
}
.navbar .nav-link {
    color: #e9ecef !important;
    font-weight: 500;
    margin: 0 .6rem;
    transition: color .2s;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary) !important; }
.btn-cta {
    background-color: var(--primary);
    color: #fff !important;
    font-weight: 600;
    border: none;
    padding: .6rem 1.4rem;
    border-radius: 6px;
}
.btn-cta:hover { background-color: var(--primary-dark); color:#fff; }

/* HERO */
.hero {
    position: relative;
    background: linear-gradient(90deg, rgba(22,29,39,0.92) 0%, rgba(22,29,39,0.55) 60%, rgba(22,29,39,0.25) 100%), url('/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 130px 0;
}
.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.2rem;
}
.hero p.lead { font-size: 1.5rem; max-width: 560px; color:#e9ecef; }
.btn-primary {
    background-color: var(--primary);
    border: none;
    font-weight: 600;
    padding: .8rem 1.8rem;
}
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-outline-light { font-weight: 600; padding: .8rem 1.8rem; }

/* FEATURE CARDS */
.feature-strip {
    margin-top: -60px;
    position: relative;
    z-index: 5;
}
.feature-card {
    background: var(--dark);
    color: #fff;
    border-radius: 12px;
    padding: 1.8rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.feature-card .icon {
    background: var(--primary);
    width: 60px; height: 60px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; flex-shrink: 0;
}
.feature-card h3 { font-size: 1.3rem; margin: 0 0 .3rem; font-weight: 700; }
.feature-card p { margin: 0; color: #adb5bd; font-size: .92rem; }

/* SECTION TITLES */
.section-title {
    font-weight: 800;
    font-size: 2rem;
    display: flex; align-items: center; gap: .6rem;
}
.section-title .bar { width: 6px; height: 32px; background: var(--primary); border-radius: 3px; }

/* PRICE TABLE */
.price-table thead { background: var(--light-bg); }
.price-table th { color: var(--text-muted); font-weight: 600; border: none; }
.price-table td { vertical-align: middle; }
.up { color: #d9534f; font-weight: 600; }
.down { color: #28a745; font-weight: 600; }

/* CALCULATOR */
.calc-result-box { border:1px solid #e3e6ea; border-radius:10px; padding:1.5rem; text-align:center; }
.calc-result-box.total { background:#e9f7ef; }
.calc-result-box h3 { color: var(--primary); font-weight:800; }
.calc-result-box.total h3 { color:#1e7e34; }

/* FOOTER */
footer { background-color: var(--darker); color: #adb5bd; padding: 50px 0 25px; margin-top: 60px; }
footer h5 { color:#fff; margin-bottom:1rem; }
footer a { color:#adb5bd; }
footer a:hover { color: var(--primary); }

/* CHAT */
.chat-box { height: 420px; overflow-y:auto; background:#f8f9fa; padding:1.2rem; }
.chat-bubble-ai { background:#fff; padding:.9rem 1.1rem; border-radius:12px; box-shadow:0 1px 3px rgba(0,0,0,.08); display:inline-block; max-width:80%; }
.chat-bubble-user { background:var(--primary); color:#fff; padding:.9rem 1.1rem; border-radius:12px; display:inline-block; max-width:80%; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .feature-strip { margin-top: 2rem; }
}


/* ===== Dopracowanie i nowe komponenty ===== */

/* Feature card jako link */
a.feature-card { text-decoration: none; transition: transform .18s cubic-bezier(0.23,1,0.32,1), box-shadow .18s; }
a.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
a.feature-card h3 { color:#fff; }

/* Outline CTA */
.btn-outline-cta {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-weight: 600;
    border-radius: 6px;
}
.btn-outline-cta:hover { background: var(--primary); color:#fff; }

/* Page head */
.page-head { background: var(--light-bg); padding: 2.4rem 0; border-bottom: 1px solid #e6e9ec; }
.page-head h1 { margin: .4rem 0 .4rem; }
.page-head p { margin: 0; max-width: 760px; }
.crumbs { font-size: .85rem; color: var(--text-muted); margin-bottom: .4rem; }
.crumbs a { color: var(--primary); }
.crumbs span { color: var(--text-muted); }

/* Category titles */
.cat-title { font-weight: 700; font-size: 1.25rem; margin: 1.5rem 0 .8rem; color: var(--dark); border-left: 4px solid var(--primary); padding-left: .6rem; }

/* Calculator cards grid */
.calc-card {
    display: block; height: 100%;
    background:#fff; border:1px solid #e6e9ec; border-radius: 12px;
    padding: 1.4rem; color: var(--dark);
    transition: transform .18s cubic-bezier(0.23,1,0.32,1), box-shadow .18s, border-color .18s;
}
.calc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.10); border-color: var(--primary); }
.calc-card .calc-icon { background: rgba(244,124,32,.12); color: var(--primary); width:48px; height:48px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:1.4rem; margin-bottom:.8rem; }
.calc-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.calc-card p { font-size: .88rem; color: var(--text-muted); margin-bottom: .6rem; }
.calc-link { color: var(--primary); font-weight: 600; font-size: .9rem; }

/* Calc box / result */
.calc-box, .calc-result, .side-card { background:#fff; border:1px solid #e6e9ec; border-radius:12px; padding:1.6rem; }
.result-table td { padding:.6rem .2rem; border-color:#eef0f2; }
.result-sum td { border-top:2px solid var(--primary); font-size:1.1rem; color: var(--dark); }
.calc-result-empty { text-align:center; color:var(--text-muted); }
.calc-result-empty .empty-icon { font-size:2.6rem; margin-bottom:.6rem; }

/* Side card */
.side-card h6 { color: var(--dark); }
.cat-list li { padding:.35rem 0; border-bottom:1px solid #f0f2f4; }
.cat-list li a { color: var(--dark); }
.cat-list li a:hover, .cat-list li.active a { color: var(--primary); font-weight:600; }

/* Article cards */
.article-card { display:block; height:100%; background:#fff; border:1px solid #e6e9ec; border-radius:12px; padding:1.4rem; color:var(--dark); transition: transform .18s cubic-bezier(0.23,1,0.32,1), box-shadow .18s; }
.article-card:hover { transform: translateY(-3px); box-shadow:0 10px 24px rgba(0,0,0,.10); }
.article-cat { display:inline-block; background:rgba(244,124,32,.12); color:var(--primary); font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.5px; padding:.2rem .6rem; border-radius:20px; margin-bottom:.6rem; }
.article-card h3 { font-size:1.1rem; font-weight:700; margin-bottom:.5rem; }
.article-card p { font-size:.9rem; color:var(--text-muted); margin-bottom:.6rem; }

/* Article body */
.article-body { font-size:1.05rem; line-height:1.75; }
.article-body h2 { font-size:1.4rem; font-weight:700; margin:1.6rem 0 .6rem; color:var(--dark); }
.article-body p { margin-bottom:1rem; color:#3a434f; }
.article-cta { background:var(--light-bg); border-radius:12px; padding:1.6rem; border-left:4px solid var(--primary); }

/* Company cards */
.company-card, .company-profile { position:relative; background:#fff; border:1px solid #e6e9ec; border-radius:12px; padding:1.4rem; height:100%; }
.company-card h3 { font-size:1.15rem; font-weight:700; margin-bottom:.3rem; }
.company-meta { font-size:.85rem; color:var(--text-muted); margin-bottom:.5rem; }
.company-desc { font-size:.9rem; margin-bottom:.9rem; }
.rating { color:#f5a623; font-size:1rem; }
.rating-num { color:var(--text-muted); font-size:.85rem; font-weight:600; margin-left:.3rem; }
.premium-badge { position:absolute; top:.9rem; right:.9rem; background:#ffd54f; color:#5a4500; font-size:.7rem; font-weight:700; padding:.2rem .55rem; border-radius:20px; }
.premium-badge.static { position:static; display:inline-block; margin-bottom:.6rem; }
.contact-box .btn { font-weight:600; }

/* Price change colors (override generic) */
.change-up { color:#d9534f; font-weight:600; }
.change-down { color:#28a745; font-weight:600; }
.change-flat { color:var(--text-muted); font-weight:600; }
.price-table-wrap { background:#fff; border:1px solid #e6e9ec; border-radius:12px; overflow:hidden; }
.price-table-wrap .price-table { margin-bottom:0; }
.price-table-wrap .price-table th { padding:1rem; }
.price-table-wrap .price-table td { padding:.85rem 1rem; }

/* Footer (new class) */
.site-footer { background-color: var(--darker); color:#adb5bd; padding:50px 0 25px; margin-top:60px; }
.site-footer h5 { color:#fff; margin-bottom:1rem; font-size:1.05rem; }
.site-footer .ai-badge { color:var(--primary); }
.site-footer a { color:#adb5bd; }
.site-footer a:hover { color:var(--primary); }
.site-footer ul li { margin-bottom:.4rem; }

/* Buttons active press feedback */
.btn-cta:active, .btn-outline-cta:active { transform: scale(0.97); transition: transform .16s ease-out; }

@media (max-width: 768px) {
    .section-title { font-size:1.5rem; }
    .page-head { padding:1.6rem 0; }
}


/* ===== KALKULATORY — odświeżony wygląd ===== */
.calc-section { margin-bottom: 2.8rem; }
.calc-section-head {
    display: flex; align-items: center; gap: 1rem;
    padding-bottom: .9rem; margin-bottom: 1.4rem;
    border-bottom: 2px solid #eef0f2;
}
.calc-section-icon {
    flex-shrink: 0; width: 54px; height: 54px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 6px 16px rgba(244,124,32,.28);
}
.calc-section-head h2 { font-size: 1.4rem; font-weight: 800; margin: 0; color: var(--dark); display:flex; align-items:center; gap:.6rem; }
.calc-section-head p { margin: .15rem 0 0; font-size: .9rem; color: var(--text-muted); }
.calc-count {
    font-size: .8rem; font-weight: 700; color: var(--primary);
    background: rgba(244,124,32,.12); border-radius: 20px;
    padding: .1rem .6rem; line-height: 1.6;
}

/* Karta kalkulatora — z górnym akcentem */
.calc-card { position: relative; overflow: hidden; padding-top: 1.6rem; }
.calc-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s cubic-bezier(0.23,1,0.32,1);
}
.calc-card:hover::before { transform: scaleX(1); }
.calc-card-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:.4rem; }
.calc-card .calc-icon {
    background: linear-gradient(135deg, rgba(244,124,32,.16), rgba(244,124,32,.06));
    color: var(--primary); width: 52px; height: 52px; border-radius: 12px;
    display:flex; align-items:center; justify-content:center; font-size:1.5rem; margin-bottom:0;
}
.calc-card .calc-link { display:inline-flex; align-items:center; gap:.25rem; margin-top:.4rem; transition: gap .18s ease-out; }
.calc-card:hover .calc-link { gap:.55rem; }

/* Baner CTA pod kalkulatorami */
.calc-cta-banner {
    margin-top: 1.5rem;
    background: linear-gradient(120deg, var(--dark) 0%, var(--darker) 100%);
    border-radius: 16px; padding: 2rem 2.2rem; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
}
.calc-cta-banner h3 { font-size: 1.35rem; font-weight: 800; margin: 0 0 .3rem; color:#fff; }
.calc-cta-banner p { margin: 0; color: #adb5bd; }
.calc-cta-banner .btn-cta { white-space: nowrap; padding:.75rem 1.5rem; font-size:1rem; }

/* ===== ENCYKLOPEDIA — wyróżniony artykuł ===== */
.sticky-side { position: sticky; top: 1.5rem; }
.side-cta { border-top:1px solid #f0f2f4; padding-top:1rem; }
.side-cta p { color: var(--dark); font-weight:600; }

.article-featured {
    display: block; position: relative; overflow: hidden;
    border-radius: 16px; margin-bottom: 1.6rem; color:#fff;
    background: linear-gradient(120deg, rgba(22,29,39,.96), rgba(31,39,51,.82)), url('/img/hero-bg.jpg');
    background-size: cover; background-position: center;
    min-height: 230px;
    transition: transform .2s cubic-bezier(0.23,1,0.32,1), box-shadow .2s;
}
.article-featured:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.25); }
.article-featured-body { padding: 2rem 2.2rem; }
.article-featured h2 { font-size: 1.7rem; font-weight: 800; margin:.5rem 0 .6rem; color:#fff; }
.article-featured p { color:#dfe3e8; max-width: 620px; margin-bottom:.8rem; }
.article-cat.light { background: rgba(255,255,255,.16); color:#ffd9b8; }
.calc-link.light { color:#ffb27a; }

@media (max-width: 768px) {
    .calc-section-head { gap:.7rem; }
    .calc-section-icon { width:46px; height:46px; font-size:1.4rem; }
    .article-featured h2 { font-size:1.4rem; }
    .sticky-side { position: static; }
}


/* === Kafelki miast (strona /miasta) === */
.city-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    height: 100%;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e6e9ec;
    text-decoration: none;
    transition: transform .18s cubic-bezier(0.23,1,0.32,1), border-color .18s, box-shadow .18s;
}
.city-tile:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
}
.city-tile-name { font-weight: 700; color: var(--dark); font-size: 1.02rem; }
.city-tile-go { font-size: .82rem; color: var(--primary); font-weight: 600; }
