/* ===== SPARK THEME — Elektryk, czysty, pomarańczowy, profesjonalny ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Lato:wght@400;700&family=Raleway:wght@400;500;600;700;800&family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
  --c-primary:   #E64A19;
  --c-primary-d: #BF360C;
  --c-accent:    #1565C0;
  --c-bg:        #FAFAFA;
  --c-bg-card:   #FFFFFF;
  --c-bg-alt:    #FFF3E0;
  --c-text:      #212121;
  --c-text-muted:#757575;
  --c-border:    #EEEEEE;
  --c-success:   #2E7D32;
  --c-danger:    #C62828;
  --shadow:      0 1px 8px rgba(0,0,0,.1);
  --shadow-hover:0 4px 20px rgba(230,74,25,.15);
  --radius:      8px;
  --font-h: 'Montserrat', sans-serif;
  --font-b: 'Lato', sans-serif;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:var(--font-b);color:var(--c-text);background:var(--c-bg);line-height:1.7}
img{max-width:100%;height:auto;display:block}
a{color:var(--c-primary);text-decoration:none}
a:hover{color:var(--c-primary-d)}
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 24px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

h1,h2,h3,h4{font-family:var(--font-h);font-weight:700;line-height:1.25}
h1{font-size:clamp(1.8rem,4.5vw,3rem)}
h2{font-size:clamp(1.3rem,3vw,2rem)}
h3{font-size:1.15rem}
p{margin-bottom:1rem}

.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.75rem;min-height:44px;border-radius:var(--radius);font-family:var(--font-h);font-weight:700;font-size:.92rem;border:2px solid transparent;cursor:pointer;transition:.18s ease}
.btn--primary{background:var(--c-primary);color:#fff;border-color:var(--c-primary)}
.btn--primary:hover{background:var(--c-primary-d);color:#fff;box-shadow:var(--shadow-hover);transform:translateY(-2px)}
.btn--outline{background:transparent;color:var(--c-primary);border-color:var(--c-primary)}
.btn--outline:hover{background:var(--c-primary);color:#fff}
.btn--lg{padding:.9rem 2.25rem;font-size:1rem}

/* NAV */
.site-nav{background:#fff;border-bottom:3px solid var(--c-primary);position:sticky;top:0;z-index:100;box-shadow:var(--shadow)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:flex;align-items:center;gap:.5rem;font-family:var(--font-h);font-weight:800;font-size:1.25rem;color:var(--c-text)}
.logo span{color:var(--c-primary)}
.nav-links{display:flex;list-style:none;gap:0; align-items: center;align-items:center}
.nav-links a{display:block;font-family:var(--font-h);font-weight:600;font-size:.85rem;color:var(--c-text);padding:.8rem 1rem;min-height:44px;transition:.15s}
.nav-links a:hover{color:var(--c-primary)}
.nav-cta{background:var(--c-primary) !important;color:#fff !important;border-radius:var(--radius) !important;margin-left:.5rem;padding:.65rem 1.25rem !important align-self: center;}
.nav-cta:hover{background:var(--c-primary-d) !important}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:.5rem}
.nav-toggle svg{width:24px;height:24px;stroke:var(--c-text)}

/* HERO — split layout with checklist */
.hero{background:linear-gradient(135deg,#FFF3E0 0%,#FFEBE0 50%,#FBE9E7 100%);padding:5rem 0 4rem;border-bottom:3px solid var(--c-primary);position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;inset:0;background-image:radial-gradient(circle,var(--c-primary) 1px,transparent 1px);background-size:32px 32px;opacity:.05}
.hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;position:relative}
.hero-text .label{font-family:var(--font-h);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--c-primary);background:rgba(230,74,25,.08);padding:.25rem .75rem;border-radius:50px;display:inline-block;margin-bottom:1.25rem}
.hero-text h1{margin-bottom:1rem}
.hero-text p{font-size:1.05rem;color:var(--c-text-muted);margin-bottom:2rem;max-width:440px}
.hero-checks{list-style:none;display:flex;flex-direction:column;gap:.5rem;margin-bottom:2rem}
.hero-checks li{display:flex;align-items:center;gap:.6rem;font-size:.9rem}
.hero-checks li::before{content:'';display:block;width:20px;height:20px;background:var(--c-primary);border-radius:50%;flex-shrink:0;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");background-size:12px;background-position:center;background-repeat:no-repeat}
.hero-image{border-radius:var(--radius);overflow:hidden;box-shadow:0 20px 60px rgba(230,74,25,.15);aspect-ratio:4/3;background:#f0f0f0}
.hero-image img{width:100%;height:100%;object-fit:cover}

/* SECTIONS */
.section{padding:72px 0}
.section--alt{background:#fff}
.section--orange{background:var(--c-bg-alt)}
.section-head{margin-bottom:2.5rem}
.section-head .label{font-family:var(--font-h);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--c-primary);display:block;margin-bottom:.5rem}
.section-head h2{margin-bottom:.5rem}
.section-head p{color:var(--c-text-muted);max-width:500px}

/* PILL BADGES */
.pill-badge{display:inline-flex;align-items:center;gap:.3rem;background:rgba(230,74,25,.08);color:var(--c-primary);border:1px solid rgba(230,74,25,.2);padding:.2rem .75rem;border-radius:50px;font-size:.75rem;font-weight:700;font-family:var(--font-h)}
.pill-badge--accent{background:rgba(21,101,192,.08);color:var(--c-accent);border-color:rgba(21,101,192,.2)}
.pill-badge--success{background:rgba(46,125,50,.08);color:var(--c-success);border-color:rgba(46,125,50,.2)}
.card__badges{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.75rem}

/* CARDS */
.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.25rem}
.card{background:#fff;border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow);border:1px solid var(--c-border);transition:.18s ease;border-top:3px solid var(--c-primary)}
.card:hover{box-shadow:var(--shadow-hover);transform:translateY(-3px) scale(1.01)}
.card h3{margin-bottom:.5rem;font-size:1rem}
.card p{font-size:.88rem;color:var(--c-text-muted);margin:0}

/* STATS */
.stats-bar{background:var(--c-primary);padding:2rem 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;text-align:center}
.stat__num{font-family:var(--font-h);font-weight:800;font-size:2rem;color:#fff;display:block}
.stat__label{font-size:.78rem;color:rgba(255,255,255,.75)}

/* POSTS */
.posts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem}
.post-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--c-border);display:flex;flex-direction:column;transition:.18s}
.post-card:hover{box-shadow:var(--shadow-hover);transform:translateY(-3px)}
.post-card__img{aspect-ratio:16/9;overflow:hidden}
.post-card__img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.post-card:hover .post-card__img img{transform:scale(1.04)}
.post-card__body{padding:1.25rem;flex:1;display:flex;flex-direction:column}
.post-card__meta{display:flex;gap:.75rem;font-size:.78rem;color:var(--c-text-muted);margin-bottom:.5rem}
.post-card__cat{color:var(--c-primary);font-weight:700}
.post-card h3{font-size:1rem;margin-bottom:.5rem}
.post-card h3 a{color:var(--c-text)}
.post-card h3 a:hover{color:var(--c-primary)}
.post-card p{font-size:.87rem;color:var(--c-text-muted);flex:1;margin:0}
.post-card__link{margin-top:.75rem;font-family:var(--font-h);font-weight:700;font-size:.82rem;color:var(--c-primary)}

/* CTA */
.cta-block{background:linear-gradient(135deg,var(--c-primary),var(--c-primary-d));color:#fff;padding:4rem;border-radius:var(--radius);text-align:center}
.cta-block h2{color:#fff;margin-bottom:1rem}
.cta-block p{color:rgba(255,255,255,.82);margin-bottom:2rem;max-width:500px;margin-left:auto;margin-right:auto}
.cta-block .btn--primary{background:#fff;color:var(--c-primary);border-color:#fff}
.cta-block .btn--primary:hover{background:rgba(255,255,255,.9)}

/* PAGE HEADER */
.page-header{background:linear-gradient(135deg,var(--c-primary),var(--c-primary-d));color:#fff;padding:3rem 0}
.page-header h1{color:#fff;margin-bottom:.5rem}
.page-header p{color:rgba(255,255,255,.78)}

/* ARTICLE */
.article-layout{display:grid;grid-template-columns:1fr 300px;gap:2.5rem;align-items:start}
.article-body{background:#fff;border-radius:var(--radius);padding:2.5rem;box-shadow:var(--shadow)}
.article-body h2{margin:2rem 0 1rem;color:var(--c-primary);font-size:1.5rem}
.article-body h3{margin:1.5rem 0 .75rem}
.article-body p{margin-bottom:1rem}
.article-body ul,.article-body ol{padding-left:1.5rem;margin-bottom:1rem}
.article-body li{margin-bottom:.4rem}
.article-body strong{color:var(--c-primary-d)}
.article-body a{color:var(--c-primary);text-decoration:underline}
.article-body blockquote{border-left:4px solid var(--c-primary);padding:1rem 1.5rem;background:var(--c-bg-alt);border-radius:0 var(--radius) var(--radius) 0;margin:1.5rem 0;font-style:italic}
.article-header{margin-bottom:2rem}
.reading-time{font-size:.78rem;color:var(--c-text-muted,#888)}
.article-meta{display:flex;flex-wrap:wrap;gap:.75rem;font-size:.82rem;color:var(--c-text-muted)}
.article-meta .tag{background:var(--c-primary);color:#fff;padding:.2rem .7rem;border-radius:50px;font-size:.72rem;font-weight:700;font-family:var(--font-h)}

/* FAQ */
.faq{margin:2rem 0}
.faq__item{border:1px solid var(--c-border);border-radius:var(--radius);margin-bottom:.5rem;overflow:hidden}
.faq__q{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;cursor:pointer;font-family:var(--font-h);font-weight:600;background:var(--c-bg);gap:1rem}
.faq__q::after{content:'+';font-size:1.4rem;color:var(--c-primary);flex-shrink:0}
.faq__item.open .faq__q::after{content:'−'}
.faq__a{display:none;padding:1rem 1.25rem;color:var(--c-text-muted);border-top:1px solid var(--c-border);font-size:.9rem}
.faq__item.open .faq__a{display:block}

/* Sidebar */
.sidebar{display:flex;flex-direction:column;gap:1.5rem}
.sidebar-widget{background:#fff;border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow)}
.sidebar-widget h3{font-size:.9rem;margin-bottom:1rem;font-family:var(--font-h);color:var(--c-text);border-bottom:2px solid var(--c-primary);padding-bottom:.5rem}
.sidebar-widget ul{list-style:none}
.sidebar-widget ul li{padding:.4rem 0;border-bottom:1px solid var(--c-border);font-size:.88rem}
.sidebar-widget ul li:last-child{border:none}
.sidebar-cta{background:linear-gradient(135deg,var(--c-primary),var(--c-primary-d)) !important;color:#fff}
.sidebar-cta h3{color:#fff !important;border-bottom-color:rgba(255,255,255,.3) !important}
.sidebar-cta p{color:rgba(255,255,255,.82);font-size:.9rem;margin-bottom:1rem}
.sidebar-cta .btn{width:100%;justify-content:center;background:#fff;color:var(--c-primary)}

/* RANKING */
.ranking-meta{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem;font-size:.82rem}
.ranking-methodology summary{cursor:pointer;color:var(--c-primary,#0077cc);font-weight:600;list-style:none}
.ranking-methodology summary::marker,.ranking-methodology summary::-webkit-details-marker{display:none}
.ranking-methodology p{margin-top:.5rem;color:var(--c-text-muted,#666);font-size:.8rem;max-width:600px}
.ranking-updated{color:var(--c-text-muted,#888);font-size:.75rem;white-space:nowrap}
.ranking-table-note { font-size: .78rem; color: var(--c-text-muted, #888); padding: .5rem 1rem .75rem; margin: 0; text-align: right; font-style: italic; }
.ranking-table-wrap{overflow-x:auto;overflow:hidden;border-radius:var(--radius);box-shadow:var(--shadow);margin:2rem 0}
.ranking-table{width:100%;border-collapse:collapse;font-size:.88rem}
.ranking-table th{background:var(--c-primary);color:#fff;padding:.75rem .85rem;text-align:center;font-family:var(--font-h);font-size:.78rem;font-weight:700;white-space:nowrap}
.ranking-table td{padding:.7rem .85rem;text-align:center;border-bottom:1px solid var(--c-border);vertical-align:middle}
.ranking-table .col-platform{text-align:left}
.row--winner td{background:rgba(230,74,25,.04)}
.feat--yes{color:var(--c-success);font-size:1.1rem;font-weight:700}
.feat--no{color:var(--c-danger);font-size:1.1rem}
.badge{display:inline-block;padding:.15rem .5rem;font-size:.7rem;font-weight:700;margin-left:.3rem;background:#FFF3E0;color:#BF360C;border:1px solid var(--c-primary);border-radius:50px}
.platform-link{color:var(--c-primary);font-weight:700;text-decoration:underline}
.rating-block{display:flex;flex-direction:column;gap:.3rem;font-size:.8rem;text-align:left}
.rating-item{display:flex;align-items:center;gap:.3rem;white-space:nowrap}
.rating-logo{height:14px;width:auto}
.stars{display:inline-flex;gap:1px}
.star--full,.star--half{color:#F59E0B}
.star--empty{color:#D1D5DB}
.no-data{font-style:italic;color:var(--c-text-muted);font-size:.78rem}
.btn-ranking{display:inline-block;padding:.45rem 1.1rem;background:var(--c-primary);color:#fff;border-radius:var(--radius);font-size:.82rem;font-weight:700;font-family:var(--font-h)}
.btn-ranking:hover{background:var(--c-primary-d);color:#fff}
.no-link{color:var(--c-text-muted)}
.platform-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem;margin:2rem 0}
.platform-card{background:#fff;border:2px solid var(--c-border);border-radius:var(--radius);padding:1.5rem}
.platform-card--winner{border-color:var(--c-primary)}
.platform-card__header{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem}
.platform-card__rank{font-size:1.5rem}
.platform-card__name{font-family:var(--font-h);font-weight:700}
.platform-card__ratings{display:flex;flex-direction:column;gap:.25rem;font-size:.82rem;margin-bottom:.75rem}
.platform-card__desc{font-size:.85rem;color:var(--c-text-muted);margin-bottom:1rem}

/* BREADCRUMBS */
.breadcrumbs{padding:.6rem 0;font-size:.82rem}
.breadcrumbs__list{display:flex;flex-wrap:wrap;list-style:none;align-items:center;gap:.2rem}
.breadcrumbs__item{display:flex;align-items:center;gap:.2rem}
.breadcrumbs__item a{color:rgba(255,255,255,.75)}
.breadcrumbs__sep{color:rgba(255,255,255,.4)}
.breadcrumbs__item span[aria-current]{color:#fff}

/* FOOTER */
.site-footer{background:#212121;color:rgba(255,255,255,.6);padding:3rem 0 1.5rem;margin-top:4rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2rem;margin-bottom:2rem}
.footer-brand .logo{color:#fff;margin-bottom:.75rem}
.footer-brand p{font-size:.85rem;max-width:240px}
.footer-col h4{font-family:var(--font-h);font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--c-primary);margin-bottom:.75rem}
.footer-col ul{list-style:none}
.footer-col ul li{margin-bottom:.4rem}
.footer-col ul li a{color:rgba(255,255,255,.55);font-size:.85rem}
.footer-col ul li a:hover{color:var(--c-primary)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding-top:1.25rem;display:flex;justify-content:space-between;font-size:.78rem;flex-wrap:wrap;gap:.75rem}

@media(max-width:1024px){.article-layout{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:768px){.hero-inner{grid-template-columns:1fr}.hero-image{display:none}.nav-links{display:none;flex-direction:column;position:absolute;top:64px;left:0;right:0;background:#fff;border-bottom:3px solid var(--c-primary);padding:1rem}.nav-links.open{display:flex}.nav-toggle{display:block}.stats-grid{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr 1fr}.ranking-table-wrap{-webkit-overflow-scrolling:touch}}
@media(max-width:480px){.section{padding:48px 0}.cards-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}}

/* ---- TABLE & CARD HOVER ---- */
.ranking-table tbody tr { transition: background .15s ease; }
.ranking-table tbody tr:hover td { background: rgba(0,0,0,.04) !important; }
.platform-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.platform-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.14); border-color: var(--c-primary) !important; }
/* ---- STAT TILES (category blocks) ---- */
.stats-bar{padding:2rem 0}
.stats-grid{gap:1.25rem}
.stat{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);border-radius:12px;padding:1.35rem 1rem;transition:background .18s}
.stat:hover{background:rgba(255,255,255,.22)}
.stat__num{font-size:1.7rem;line-height:1.1}
.stat__label{font-size:.8rem;font-weight:600;letter-spacing:.04em;margin-top:.3rem}


/* ---- PLATFORM CARD SCORE BAND ---- */
.platform-card { overflow: hidden; display: flex; flex-direction: column; }
.platform-card__score-band { display: flex; align-items: center; gap: .5rem; padding: .65rem 1rem; color: #fff; }
.platform-card__score-num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.platform-card__score-lbl { font-size: .72rem; opacity: .85; flex: 1; }
.platform-card__score-band .stars { font-size: .85rem; }
.platform-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.platform-card__google { font-size: .82rem; margin-bottom: .6rem; }
.platform-card__note { font-size: .78rem; color: var(--c-text-muted, #888); margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--c-border, #e5e7eb); }
.platform-card__desc { flex: 1; }
.platform-card { padding: 0; }

/* ---- PLATFORM CARD BUTTON FIX ---- */
.platform-card__body .btn { display: flex; width: 100%; justify-content: center; box-sizing: border-box; margin-top: auto; }
.platform-card__body .btn--primary { color: var(--btn-text, #fff); }
.platform-card__note { text-align: center; }

/* ---- TABLE FIXES ---- */
.badge { white-space: nowrap; }
.col-platform { white-space: nowrap; }
.col-action { width: 1%; white-space: nowrap; text-align: center; }
.btn-ranking { white-space: nowrap; display: inline-block; min-width: 0; }
/* Fix nested stats-grid from render_stats_bar */
.stats-grid > .stats-grid { display: contents; }

.related-posts{margin-top:2rem;padding-top:1.5rem;border-top:2px solid var(--c-border,#e5e7eb)}
.related-posts__title{font-size:1rem;font-weight:700;margin-bottom:.75rem;color:var(--c-primary,#0077cc)}
.related-posts__list{list-style:none;padding:0;margin:0}
.related-posts__list li{padding:.45rem 0;border-bottom:1px solid var(--c-border,#e5e7eb)}
.related-posts__list li:last-child{border-bottom:none}
.related-posts__list a{color:var(--c-text,#333);font-size:.9rem;text-decoration:none}
.related-posts__list a:hover{color:var(--c-primary,#0077cc)}
/* ---- PAGE HEADER CONTRAST FIX ---- */
.page-header .article-meta,
.page-header .article-meta time,
.page-header .reading-time{color:rgba(255,255,255,.82)}
.page-header .article-meta .tag{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.25)}
.page-header .breadcrumbs__item a{color:rgba(255,255,255,.9)}
.page-header .breadcrumbs__sep{color:rgba(255,255,255,.45)}
.page-header .breadcrumbs__item span[aria-current]{color:#fff;font-weight:600}

/* ---- TYPOGRAPHY REFINEMENT ---- */
h1{letter-spacing:-.02em}
h2{letter-spacing:-.01em;font-weight:700}
h3{font-weight:600}
