/* ==========================================================
   TwojeWróżby.pl — style główne
   Paleta: jasne tło + akcenty niebieski (#5B6CF1) + fiolet (#8B5CF6)
   ========================================================== */

:root {
    /* Kolory bazowe */
    --bg: #FAFBFF;
    --bg-soft: #F2F4FF;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;

    /* Niebieski → fiolet */
    --primary: #5B6CF1;
    --primary-hover: #4858E0;
    --primary-soft: #E8EBFF;
    --accent: #8B5CF6;
    --accent-hover: #7C4DEC;
    --accent-soft: #F1EBFF;
    --gradient: linear-gradient(135deg, #5B6CF1 0%, #8B5CF6 50%, #C084FC 100%);
    --gradient-subtle: linear-gradient(135deg, #E8EBFF 0%, #F1EBFF 100%);
    --gradient-text: linear-gradient(135deg, #5B6CF1 0%, #8B5CF6 100%);

    /* Tekst */
    --text: #1A1F36;
    --text-muted: #5B6478;
    --text-soft: #8B92A7;
    --text-light: #FFFFFF;

    /* Linie i obwódki */
    --border: #E5E8F2;
    --border-strong: #D1D6E4;

    /* Cienie */
    --shadow-sm: 0 1px 2px rgba(91, 108, 241, 0.05);
    --shadow: 0 4px 14px rgba(91, 108, 241, 0.08);
    --shadow-lg: 0 12px 32px rgba(91, 108, 241, 0.12);
    --shadow-glow: 0 0 32px rgba(139, 92, 246, 0.2);

    /* Promienie */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    /* Typografia */
    --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Layout */
    --container: 1240px;
    --container-narrow: 880px;
    --header-h: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin-bottom: 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* ===== Helpery ===== */
.kicker {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    padding: 6px 14px;
    background: var(--primary-soft);
    border-radius: 99px;
    margin-bottom: 20px;
}
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 15px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gradient);
    color: var(--text-light);
    box-shadow: var(--shadow);
}
.btn-primary:hover {
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-arrow::after { content: '→'; transition: transform .18s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 251, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo .star {
    width: 28px;
    height: 28px;
    background: var(--gradient);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}
.logo .accent { color: var(--primary); font-style: italic; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    transition: all .18s ease;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.lang-switch {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-soft);
    border-radius: 99px;
}
.lang-switch a {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 99px;
    text-transform: uppercase;
}
.lang-switch a.active { background: var(--bg-card); color: var(--primary); box-shadow: var(--shadow-sm); }
.mobile-toggle { display: none; font-size: 22px; color: var(--text); padding: 8px; }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    background: var(--bg);
}
.hero::before {
    content: '';
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(91, 108, 241, 0.08) 30%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(91, 108, 241, 0.06) 0%, transparent 50%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero .lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 auto 36px;
    max-width: 680px;
}
.hero-cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
}
.hero-stars span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
    animation: twinkle 3s ease-in-out infinite;
}
.hero-stars span:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.hero-stars span:nth-child(2) { top: 25%; left: 85%; animation-delay: 0.5s; }
.hero-stars span:nth-child(3) { top: 60%; left: 15%; animation-delay: 1s; }
.hero-stars span:nth-child(4) { top: 75%; left: 78%; animation-delay: 1.5s; }
.hero-stars span:nth-child(5) { top: 40%; left: 5%; animation-delay: 2s; }
.hero-stars span:nth-child(6) { top: 30%; left: 50%; animation-delay: 0.8s; }
.hero-stars span:nth-child(7) { top: 80%; left: 45%; animation-delay: 1.2s; }
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ===== Sekcje ===== */
section { padding: 80px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 12px; }
.section-head .lead { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* ===== Karty kategorii (siatka 13) ===== */
.categories-section { background: var(--bg-soft); }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.cat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid var(--border);
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
    display: block;
    color: var(--text);
}
.cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0;
    transition: opacity .25s ease;
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    color: var(--text);
}
.cat-card:hover::before { opacity: 0.5; }
.cat-card > * { position: relative; z-index: 1; }
.cat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.cat-card h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.cat-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55; }
.cat-card .arrow {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== Featured posts ===== */
.featured-section {}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.post-thumb {
    aspect-ratio: 3 / 2;
    background: var(--gradient-subtle);
    position: relative;
    overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-thumb .cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.post-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.post-body h3 {
    font-size: 19px;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.35;
}
.post-body h3 a { color: var(--text); }
.post-body h3 a:hover { color: var(--primary); }
.post-body p { color: var(--text-muted); font-size: 14px; margin: 0 0 16px; flex: 1; }
.post-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-soft); }

/* ===== Marketing / long-form content ===== */
.marketing-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.marketing-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text);
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px;
    font-family: var(--font-display);
    font-weight: 500;
}
.marketing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 920px;
    margin: 0 auto;
}
.marketing-block {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s ease;
}
.marketing-block:hover { box-shadow: var(--shadow); }
.marketing-block h2 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: var(--text);
    scroll-margin-top: calc(var(--header-h) + 20px);
}
.marketing-block p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 16px;
}
.marketing-block p:last-child { margin-bottom: 0; }
.marketing-block ul {
    margin: 16px 0;
    padding-left: 0;
}
.marketing-block ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.6;
}
.marketing-block ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 14px;
}
.marketing-block strong { color: var(--primary); font-weight: 600; }

/* ===== TOC strony głównej (boczny dla long-form) ===== */
.home-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 0 auto 48px;
    max-width: 920px;
}
.home-toc h3 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.home-toc ol {
    list-style: none;
    columns: 2;
    column-gap: 32px;
}
.home-toc ol li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
    counter-increment: toc-item;
    break-inside: avoid;
}
.home-toc ol li::before {
    content: counter(toc-item, decimal-leading-zero);
    color: var(--accent);
    font-weight: 700;
    margin-right: 10px;
    font-size: 13px;
}
.home-toc ol { counter-reset: toc-item; }
.home-toc a { color: var(--text-muted); font-size: 14px; }
.home-toc a:hover { color: var(--primary); }

/* ===== FAQ akordeon ===== */
.faq-section { background: var(--bg); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .2s ease;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    color: var(--primary);
    font-size: 24px;
    font-weight: 400;
    transition: transform .25s ease;
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer {
    padding: 0 24px 22px;
    color: var(--text-muted);
    line-height: 1.65;
}
.faq-item .answer p { margin-bottom: 12px; }
.faq-item .answer p:last-child { margin-bottom: 0; }
.faq-item .answer ul { margin: 10px 0; padding-left: 8px; }
.faq-item .answer ul li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.faq-item .answer ul li::before { content: '✦'; position: absolute; left: 0; color: var(--accent); }
.faq-item .answer strong { color: var(--primary); font-weight: 600; }
.faq-item .answer em { font-style: italic; color: var(--text); }
.faq-item .answer a { color: var(--primary); border-bottom: 1px solid var(--primary-soft); }

/* ===== Footer CTA ===== */
.cta-section {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255, 255, 255, 0.9); max-width: 560px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-section .btn {
    background: white;
    color: var(--primary);
}
.cta-section .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }

/* ===== Footer ===== */
.site-footer {
    background: #1A1F36;
    color: rgba(255,255,255,0.75);
    padding: 56px 0 32px;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.site-footer h4 {
    color: white;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
}
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: white; }
.site-footer .logo { color: white; margin-bottom: 16px; }
.site-footer .tagline { color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ==========================================================
   Szablon kategorii
   ========================================================== */
.cat-hero {
    padding: 60px 0 50px;
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--accent-soft) 100%);
    position: relative;
    overflow: hidden;
}
.cat-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, color-mix(in srgb, var(--cat-color) 30%, transparent), transparent 70%);
    pointer-events: none;
}
.cat-hero .container { position: relative; z-index: 1; }
.cat-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: center;
}
.cat-hero-text h1 {
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--cat-color), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cat-hero-text .lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 540px;
}
.cat-hero-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}
.cat-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span:not(:first-child):not(:last-child) { color: var(--text-soft); }

.cat-description { padding: 60px 0; background: var(--bg); }
.cat-description .lead-intro {
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.55;
    color: var(--text);
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.cat-body { font-size: 16px; line-height: 1.7; }
.cat-body h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 36px 0 14px;
    color: var(--text);
}
.cat-body h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 10px;
    color: var(--primary);
}
.cat-body p { margin-bottom: 14px; color: var(--text); }
.cat-body ul { margin: 16px 0 20px; }
.cat-body ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    line-height: 1.6;
}
.cat-body ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent);
}
.cat-body strong { color: var(--primary); font-weight: 600; }
.cat-body a { color: var(--primary); border-bottom: 1px solid var(--primary-soft); }
.cat-body a:hover { border-color: var(--accent); }

.cat-posts { padding: 80px 0; background: var(--bg-soft); }
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.empty-state p { color: var(--text-muted); margin-bottom: 24px; max-width: 480px; margin-inline: auto; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.pagination .page-link {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--text);
    font-weight: 500;
    transition: all .18s ease;
}
.pagination .page-link:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-info { color: var(--text-muted); font-size: 14px; }

.other-cats { padding: 80px 0; }

/* ==========================================================
   Szablon wpisu
   ========================================================== */
.post-hero {
    padding: 32px 0 0;
    background: var(--bg);
}
.post-hero .container { max-width: var(--container-narrow); }
.post-hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    margin: 20px 0 16px;
    line-height: 1.15;
}
.post-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.post-meta-top .cat-link {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.post-meta-top time { color: var(--text-soft); }
.post-intro {
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text);
    margin: 24px 0 36px;
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}
.post-hero-img {
    margin: 0 calc(-1 * 24px) 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.post-hero-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }

.post-toc {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 48px;
    border: 1px solid var(--border);
}
.post-toc h3 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.post-toc ol {
    list-style: none;
    counter-reset: toc-item;
}
.post-toc ol li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    counter-increment: toc-item;
}
.post-toc ol li:last-child { border-bottom: none; }
.post-toc ol li::before {
    content: counter(toc-item, decimal-leading-zero);
    color: var(--accent);
    font-weight: 700;
    margin-right: 12px;
    font-family: var(--font-display);
}
.post-toc a { color: var(--text); }
.post-toc a:hover { color: var(--primary); }

.post-content { padding: 0 0 80px; background: var(--bg); }
.post-content .container { max-width: var(--container-narrow); }
.post-section {
    margin-bottom: 56px;
    scroll-margin-top: calc(var(--header-h) + 20px);
}
.post-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.25;
}
.post-section h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--primary);
}
.post-section p { font-size: 17px; line-height: 1.75; margin-bottom: 18px; color: var(--text); }
.post-section ul, .post-section ol { margin: 18px 0 22px; }
.post-section ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.65;
}
.post-section ul li::before { content: '✦'; position: absolute; left: 0; color: var(--accent); }
.post-section ol { padding-left: 24px; list-style: decimal; }
.post-section ol li { margin-bottom: 10px; line-height: 1.65; }
.post-section strong { color: var(--primary); font-weight: 600; }
.post-section em { font-style: italic; color: var(--text); }
.post-section code {
    background: var(--bg-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.92em;
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    color: var(--accent);
}
.post-section a { color: var(--primary); border-bottom: 1px solid var(--primary-soft); }
.post-section a:hover { border-color: var(--accent); }
.post-section blockquote {
    border-left: 3px solid var(--accent);
    padding: 8px 0 8px 24px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-muted);
}

.post-inline-img {
    margin: 48px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.post-inline-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.post-inline-img figcaption {
    font-size: 13px;
    color: var(--text-muted);
    padding: 10px 16px;
    background: var(--bg-card);
    text-align: center;
    font-style: italic;
}

.post-faq {
    background: var(--bg-soft);
    padding: 56px 0;
}
.post-faq .container { max-width: var(--container-narrow); }
.post-faq h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 28px;
    text-align: center;
}

.post-related {
    padding: 56px 0;
    background: var(--bg);
}
.post-related .container { max-width: var(--container); }
.post-related h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 28px;
    text-align: center;
}
.post-related .posts-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0 32px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}
.post-tags a {
    padding: 6px 14px;
    background: var(--bg-soft);
    color: var(--text-muted);
    border-radius: 99px;
    font-size: 13px;
    transition: all .18s ease;
}
.post-tags a:hover { background: var(--primary-soft); color: var(--primary); }

/* ===== Responsywność ===== */
@media (max-width: 960px) {
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    section { padding: 60px 0; }
    .hero { padding: 60px 0 50px; }
    .marketing-block { padding: 28px 24px; }
    .home-toc ol { columns: 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cat-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .cat-hero-img { max-width: 480px; }
}
@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero .lead { font-size: 1rem; }
    .cat-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
}
