/* ============================================================
   ZERO BLOAT THEME - main.css v3
   Poprawki CLS: transition TYLKO na opacity/transform
   Brak transition na border-color, box-shadow, margin, padding
   ============================================================ */

:root {
    --blue:       #2563eb;
    --blue-dark:  #1d4ed8;
    --blue-light: #eff6ff;
    --yellow:     #facc15;
    --text:       #1a1a2e;
    --text-muted: #4a5568;
    --bg:         #ffffff;
    --bg-light:   #f8fafc;
    --radius:     12px;
}

/* ── BASE ──────────────────────────────────────────────────── */
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
ul, ol { padding-left: 1.25rem; }
h1,h2,h3,h4,h5,h6 { font-weight: 800; line-height: 1.2; color: var(--text); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; }
p  { color: var(--text-muted); line-height: 1.7; }

/* ── NAWIGACJA ─────────────────────────────────────────────── */
.site-nav { display: flex; align-items: center; flex: 1; }

.nav-cta {
    margin-left: auto;
    white-space: nowrap;
    font-size: .875rem;
    padding: .6rem 1.25rem;
}

.nav__list { list-style: none; display: flex; gap: .25rem; margin-left: auto; }
.nav__list a {
    text-decoration: none;
    color: var(--text);
    font-size: .9rem;
    font-weight: 500;
    padding: .5rem .75rem;
    border-radius: 6px;
}
/* Hover bez transition żeby uniknąć CLS */
.nav__list a:hover { color: var(--blue); background: var(--blue-light); }

@media (max-width: 768px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 70px; left: 0; right: 0;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,.1);
        padding: 1rem;
        flex-direction: column;
        z-index: 99;
    }
    .site-nav.is-open { display: flex; }
    .nav__list { flex-direction: column !important; width: 100%; gap: 0 !important; }
    .nav__list li { width: 100%; }
    .nav__list a { display: block; padding: .75rem 1rem; font-size: 1rem; }
    .nav-cta { display: none; }
    .nav-toggle { display: block; }
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

/* ── PRZYCISKI — BEZ transition ───────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.2;
    /* NIE MA transition — to był główny powód CLS */
}
.btn--primary  { background: var(--blue);    color: #fff; border-color: var(--blue); }
.btn--primary:hover  { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--outline  { background: transparent;    color: var(--blue); border-color: var(--blue); }
.btn--outline:hover  { background: var(--blue-light); }
.btn--yellow   { background: var(--yellow);  color: var(--text); border-color: var(--yellow); font-weight: 800; }
.btn--yellow:hover   { background: #eab308; }
.btn--full     { width: 100%; }

/* ── HERO ──────────────────────────────────────────────────── */
.hero { padding: 4rem 0; background: linear-gradient(135deg,#f0f7ff 0%,#fff 60%); }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero__title { font-size: clamp(1.75rem,4vw,2.75rem); margin-bottom: 1rem; }
.hero__lead  { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.75rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__img { width: 100%; height: auto; border-radius: 16px; object-fit: cover; }
.hero__img-placeholder { aspect-ratio: 4/3; background: #e8f4fd; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.hero__img-placeholder svg { width: 100%; height: 100%; border-radius: 16px; }

@media (max-width: 768px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__image { display: none; }
}

/* ── FEATURES ──────────────────────────────────────────────── */
.features { padding: 3rem 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.features__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
.features__icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; background: var(--blue-light); border-radius: 50%; margin: 0 auto 1rem; }
.features__title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.features__desc  { font-size: .875rem; color: var(--text-muted); }

@media (max-width: 900px) { .features__list { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .features__list { grid-template-columns: 1fr; } }

/* ── CONTENT SECTIONS ─────────────────────────────────────── */
.content-section { padding: 5rem 0; }
.content-section--bg-light { background: var(--bg-light); }
.content-section__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.content-section--reversed .content-section__inner { direction: rtl; }
.content-section--reversed .content-section__inner > * { direction: ltr; }
.content-section__img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4/3; }
.content-section__img-placeholder { aspect-ratio: 4/3; background: linear-gradient(135deg,#dbeafe,#eff6ff); border-radius: var(--radius); }
.content-section__title { margin-bottom: 1rem; }
.content-section__subtitle { font-size: 1rem; margin: 1.5rem 0 .75rem; }
.content-section__content p { margin-bottom: 1rem; }
.content-section__content .btn { margin-top: 1.5rem; }

@media (max-width: 768px) {
    .content-section__inner { grid-template-columns: 1fr; gap: 2rem; }
    .content-section--reversed .content-section__inner { direction: ltr; }
}

/* ── CHECK LIST ────────────────────────────────────────────── */
.check-list { list-style: none; padding: 0; }
.check-list li {
    padding: .35rem 0 .35rem 1.75rem;
    position: relative;
    font-size: .9rem;
    color: var(--text-muted);
}
.check-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    background: var(--blue);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ── OPINIE ────────────────────────────────────────────────── */
.testimonials { padding: 5rem 0; background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 3rem; }
.testimonial { background: #fff; border-radius: var(--radius); padding: 2.5rem; box-shadow: 0 4px 20px rgba(37,99,235,.1); text-align: center; max-width: 720px; margin: 0 auto; }
.testimonial__quote { font-size: 3rem; color: var(--blue); line-height: 1; margin-bottom: .5rem; }
.testimonial__text  { font-size: 1rem; line-height: 1.8; color: var(--text-muted); font-style: italic; margin-bottom: 1.25rem; }
.testimonial__stars { color: var(--yellow); font-size: 1.25rem; margin-bottom: .75rem; }
.testimonial__author { font-weight: 700; color: var(--text); }

/* ── BLOG PREVIEW (strona główna) ─────────────────────────── */
.blog-preview { padding: 5rem 0; }
.blog-preview__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-bottom: 2.5rem; }
.blog-preview__cta  { text-align: center; }

@media (max-width: 900px) { .blog-preview__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .blog-preview__grid { grid-template-columns: 1fr; } }

/* ── POST CARD ─────────────────────────────────────────────── */
.post-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    /* BEZ transition box-shadow — to był jeden z powodów CLS */
}
.post-card__img-wrap { display: block; overflow: hidden; aspect-ratio: 16/9; position: relative; }
.post-card__img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body  { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card__title { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; line-height: 1.4; }
.post-card__title a { color: var(--text); text-decoration: none; }
.post-card__title a:hover { color: var(--blue); }
.post-card__excerpt { font-size: .875rem; flex: 1; margin-bottom: 1rem; }
.post-card__footer  { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid #f1f5f9; }
.post-card__date    { font-size: .8rem; color: #94a3b8; }
.post-card__read-more { font-size: .85rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.post-card__cat     { margin-bottom: .75rem; }

.tag { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: var(--blue-light); color: var(--blue); padding: .25rem .75rem; border-radius: 100px; text-decoration: none; }
.tag--secondary { background: #f1f5f9; color: var(--text-muted); }

/* ── KONTAKT ───────────────────────────────────────────────── */
.contact-section { padding: 5rem 0; background: var(--bg-light); }
.contact-section__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-section__title { margin-bottom: 1rem; }

.contact-form__group { margin-bottom: 1.25rem; }
.contact-form__label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: .375rem; }
.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    /* BEZ transition border-color — powodował CLS */
    outline: none;
}
.contact-form__input:focus,
.contact-form__textarea:focus { border-color: var(--blue); }
.contact-form__textarea { resize: vertical; }
.contact-form__group--checkbox { display: flex; align-items: flex-start; gap: .75rem; }
.contact-form__group--checkbox input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--blue); }
.contact-form__group--checkbox label { font-size: .85rem; color: var(--text-muted); }

@media (max-width: 768px) { .contact-section__inner { grid-template-columns: 1fr; gap: 2rem; } }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer-cta { background: var(--blue); padding: 3rem 0; }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-cta__title    { font-size: 1.5rem; color: #fff; margin-bottom: .25rem; }
.footer-cta__subtitle { color: rgba(255,255,255,.8); }

.footer-main { background: #1e293b; padding: 3rem 0; }
.footer-main__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-col__site-name { font-size: 1.25rem; font-weight: 800; color: #fff; }
.footer-col__desc  { color: #94a3b8; font-size: .875rem; margin-top: .75rem; margin-bottom: 1.25rem; }
.footer-col__title { color: #fff; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }

.footer-nav { list-style: none; padding: 0; }
.footer-nav li + li { margin-top: .5rem; }
.footer-nav a { color: #94a3b8; text-decoration: none; font-size: .875rem; }
.footer-nav a:hover { color: #fff; }

.footer-contact { font-style: normal; }
.footer-contact p + p { margin-top: .5rem; }
.footer-contact a { color: #94a3b8; text-decoration: none; font-size: .875rem; }
.footer-contact a:hover { color: #fff; }

.footer-col__social { display: flex; gap: .75rem; }
.social-link {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    /* color ustawiony statycznie, bez transition */
    color: #94a3b8;
    text-decoration: none;
}
.social-link:hover { background: var(--blue); color: #fff; }

.footer-bottom { background: #0f172a; padding: 1.25rem 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom__copy { font-size: .8rem; color: #64748b; }
.footer-bottom__legal { display: flex; gap: 1rem; }
.footer-bottom__legal a { font-size: .8rem; color: #64748b; text-decoration: none; }
.footer-bottom__legal a:hover { color: #94a3b8; }

@media (max-width: 768px) {
    .footer-main__grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-cta__inner { flex-direction: column; text-align: center; }
}

/* ── SINGLE POST ───────────────────────────────────────────── */
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; padding: 3rem 0; }
.post-header { margin-bottom: 2rem; }
.post-header__title { font-size: clamp(1.5rem,3.5vw,2.25rem); margin-bottom: .75rem; }
.post-meta { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: #94a3b8; margin-top: .75rem; }
.post-thumbnail { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.post-thumbnail__img { width: 100%; height: auto; }

.post-body { font-size: 1rem; line-height: 1.8; color: var(--text-muted); }
.post-body h2,.post-body h3,.post-body h4 { color: var(--text); margin: 2rem 0 .75rem; }
.post-body p { margin-bottom: 1.25rem; }
.post-body ul,.post-body ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.post-body li { margin-bottom: .375rem; }
.post-body a { color: var(--blue); }
.post-body img { border-radius: 8px; margin: 1.5rem 0; }
.post-body blockquote { border-left: 4px solid var(--blue); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--blue-light); border-radius: 0 8px 8px 0; font-style: italic; }

.post-tags { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.post-tags__label { font-size: .875rem; color: #94a3b8; }

.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; }
.post-navigation__next { text-align: right; }
.post-navigation__label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; margin-bottom: .375rem; }
.post-navigation__link { font-size: .9rem; font-weight: 600; color: var(--blue); text-decoration: none; }

@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; } }

/* ── SIDEBAR (wspólny) ─────────────────────────────────────── */
.sidebar { position: sticky; top: 90px; align-self: start; }

.widget { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 2px 16px rgba(0,0,0,.06); margin-bottom: 1.5rem; }
.widget__title { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 2px solid #f1f5f9; }

.widget--cta { background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%); text-align: center; }
.widget-cta__icon { width: 56px; height: 56px; background: rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.widget--cta .widget__title { color: #fff; border-bottom-color: rgba(255,255,255,.15); }
.widget--cta p { color: rgba(255,255,255,.8); font-size: .875rem; margin-bottom: 1.25rem; }

.sidebar-posts { list-style: none; padding: 0; }
.sidebar-posts__item { display: flex; flex-direction: column; padding: .75rem 0; border-bottom: 1px solid #f1f5f9; }
.sidebar-posts__item:last-child { border-bottom: none; }
.sidebar-posts__link { font-size: .875rem; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.4; margin-bottom: .25rem; }
.sidebar-posts__link:hover { color: var(--blue); }
.sidebar-posts__date { font-size: .75rem; color: #94a3b8; }

/* ── ARCHIWUM / BLOG ───────────────────────────────────────── */

/* Hero bloga */
.blog-hero {
    background: linear-gradient(135deg, #1e293b 0%, #1d4ed8 100%);
    padding: 3rem 0;
}
.blog-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.blog-hero__eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--yellow); margin-bottom: .5rem; }
.blog-hero__title   { font-size: clamp(1.5rem,3.5vw,2.25rem); color: #fff; margin-bottom: .5rem; }
.blog-hero__desc    { color: rgba(255,255,255,.7); font-size: .9rem; max-width: 520px; }
.blog-hero__stats   { display: flex; gap: 1.5rem; flex-shrink: 0; }
.blog-stat { text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 1rem 1.25rem; }
.blog-stat__num   { display: block; font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1; }
.blog-stat__label { font-size: .7rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 640px) {
    .blog-hero__inner { flex-direction: column; align-items: flex-start; }
    .blog-hero__stats { display: none; }
}

/* Pasek kategorii */
.blog-cats { padding: 1.5rem 0; background: #fff; border-bottom: 1px solid #e2e8f0; }
.blog-cats__title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; margin-bottom: .875rem; }
.blog-cats__list  { list-style: none; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.blog-cat-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--bg-light);
    border: 1.5px solid #e2e8f0;
    border-radius: 100px;
    padding: .35rem 1rem;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.blog-cat-pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.blog-cat-pill--active { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.blog-cat-pill__count { font-size: .7rem; background: #e2e8f0; color: #64748b; padding: .1rem .4rem; border-radius: 100px; font-weight: 700; }
.blog-cat-pill--active .blog-cat-pill__count { background: rgba(37,99,235,.15); color: var(--blue); }

/* Wyróżniony wpis */
.blog-featured { padding: 2.5rem 0 0; }
.blog-featured__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
}
.blog-featured__img-wrap { overflow: hidden; }
.blog-featured__img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.blog-featured__content { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.blog-featured__label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); background: var(--text); padding: .25rem .75rem; border-radius: 4px; display: inline-block; margin-bottom: 1rem; width: fit-content; }
.blog-featured__meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .875rem; }
.blog-featured__date { font-size: .8rem; color: #94a3b8; }
.blog-featured__title { font-size: clamp(1.125rem,2vw,1.5rem); margin-bottom: .875rem; line-height: 1.3; }
.blog-featured__title a { color: var(--text); text-decoration: none; }
.blog-featured__title a:hover { color: var(--blue); }
.blog-featured__excerpt { margin-bottom: 1.5rem; font-size: .9rem; }

@media (max-width: 768px) {
    .blog-featured__inner { grid-template-columns: 1fr; }
    .blog-featured__content { padding: 1.5rem; }
    .blog-featured__img { min-height: 200px; }
}

/* Główny layout bloga */
.blog-main { padding: 2.5rem 0 4rem; }
.blog-layout { display: grid; grid-template-columns: 1fr 260px; gap: 2.5rem; align-items: start; }
.blog-section-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 2px solid #f1f5f9; }

/* Siatka wpisów 2 kolumny */
.posts-grid--blog { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; margin-bottom: 2.5rem; }

/* Karta bez zdjęcia też wygląda dobrze */
.post-card--blog { border: 1.5px solid #f1f5f9; }
.post-card--blog .post-card__body { padding: 1.25rem; }

.post-card__cat-badge {
    position: absolute; top: .625rem; left: .625rem;
    background: var(--blue); color: #fff;
    font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    padding: .2rem .55rem; border-radius: 100px;
    pointer-events: none;
}

.post-card__meta-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .625rem; flex-wrap: wrap; }
.post-card__date,
.post-card__reading-time { display: flex; align-items: center; gap: .3rem; font-size: .72rem; color: #94a3b8; }

.post-card__cta { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; font-weight: 700; color: var(--blue); text-decoration: none; margin-top: auto; padding-top: .875rem; }
.post-card__cta:hover { text-decoration: underline; }

/* Karta bez miniatury — kolorowy top-border */
.post-card--blog:not(:has(.post-card__img-wrap)) {
    border-top: 3px solid var(--blue);
}

/* Brak wpisów */
.no-posts { text-align: center; padding: 3rem 2rem; background: var(--bg-light); border-radius: var(--radius); }
.no-posts svg { margin: 0 auto 1.5rem; }
.no-posts p { margin-bottom: 1.5rem; }

@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } }
@media (max-width: 580px) { .posts-grid--blog { grid-template-columns: 1fr; } }

/* Sidebar bloga — sticky */
.blog-sidebar { position: sticky; top: 90px; }

/* Wyszukiwarka */
.widget--search .widget__title { margin-bottom: .875rem; }
.blog-search__inner {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.blog-search__inner:focus-within { border-color: var(--blue); }
.blog-search__input { flex: 1; padding: .6rem .875rem; border: none; font-size: .875rem; font-family: inherit; color: var(--text); background: transparent; outline: none; }
.blog-search__btn   { background: var(--blue); color: #fff; border: none; padding: 0 .875rem; cursor: pointer; display: flex; align-items: center; }
.blog-search__btn:hover { background: var(--blue-dark); }

/* Kategorie sidebar */
.sidebar-cats { list-style: none; padding: 0; }
.sidebar-cats__item + .sidebar-cats__item { border-top: 1px solid #f1f5f9; }
.sidebar-cats__link { display: flex; align-items: center; justify-content: space-between; padding: .55rem 0; text-decoration: none; color: var(--text-muted); font-size: .875rem; }
.sidebar-cats__link:hover, .sidebar-cats__link--active { color: var(--blue); font-weight: 600; }
.sidebar-cats__count { background: #f1f5f9; color: #64748b; font-size: .7rem; font-weight: 700; padding: .15rem .45rem; border-radius: 100px; }
.sidebar-cats__link--active .sidebar-cats__count { background: var(--blue-light); color: var(--blue); }

/* Popularne wpisy sidebar */
.sidebar-popular { list-style: none; padding: 0; }
.sidebar-popular__item { display: flex; align-items: flex-start; gap: .75rem; padding: .625rem 0; border-bottom: 1px solid #f1f5f9; }
.sidebar-popular__item:last-child { border-bottom: none; }
.sidebar-popular__num { flex-shrink: 0; width: 24px; height: 24px; background: var(--blue-light); color: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; }
.sidebar-popular__text { flex: 1; min-width: 0; }
.sidebar-popular__link { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8rem; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.4; margin-bottom: .2rem; }
.sidebar-popular__link:hover { color: var(--blue); }
.sidebar-popular__date { font-size: .7rem; color: #94a3b8; }

/* ── PAGINACJA ─────────────────────────────────────────────── */
.pagination { padding: 1.5rem 0; }
.pagination .page-numbers { display: flex; list-style: none; padding: 0; gap: .375rem; flex-wrap: wrap; }
.pagination .page-numbers li a,
.pagination .page-numbers li span { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--text); background: #f8fafc; border: 1px solid #e2e8f0; }
.pagination .page-numbers li .current,
.pagination .page-numbers li a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── STRONA STATYCZNA ──────────────────────────────────────── */
.page-layout { padding: 3rem 0; max-width: 800px; margin: 0 auto; }
.page-header { margin-bottom: 2rem; }
.page-header__title { font-size: clamp(1.5rem,3vw,2rem); }
.page-thumbnail { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.page-body { font-size: 1rem; line-height: 1.8; }
.page-body h2,.page-body h3 { margin: 2rem 0 .75rem; }
.page-body p { margin-bottom: 1.25rem; }

/* ── 404 ───────────────────────────────────────────────────── */
.error-404 { text-align: center; padding: 6rem 1rem; }
.error-404__code  { font-size: 8rem; color: var(--blue-light); line-height: 1; margin-bottom: .5rem; }
.error-404__title { font-size: 1.75rem; margin-bottom: 1rem; }
.error-404__desc  { margin-bottom: 2rem; }

/* ── BREADCRUMBS ───────────────────────────────────────────── */
.breadcrumbs { margin-bottom: 1.5rem; }
.breadcrumbs__list { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; font-size: .8rem; }
.breadcrumbs__item a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs__item a:hover { color: var(--blue); }
.breadcrumbs__item + .breadcrumbs__item::before { content: '›'; color: #cbd5e1; margin-right: .5rem; }
.breadcrumbs__item[aria-current="page"] { color: #94a3b8; }

/* ── ACCESSIBILITY ─────────────────────────────────────────── */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100%; left: 0; background: var(--blue); color: #fff; padding: .75rem 1.5rem; z-index: 9999; font-weight: 700; }
.skip-link:focus { top: 0; }

/* ── PRINT ─────────────────────────────────────────────────── */
@media print {
    .site-header,.site-footer,.sidebar,.contact-section { display: none; }
    .post-layout { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   PODSTRONA USŁUGI — page-usluga.php
   ══════════════════════════════════════════════════════════════ */

/* ── HERO USŁUGI ─────────────────────────────────────────────── */
.service-hero {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 4rem 0;
    overflow: hidden;
    position: relative;
}

.service-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-hero__eyebrow {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--blue);
    margin-bottom: .75rem;
}

.service-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1rem;
}

.service-hero__lead {
    font-size: 1rem;
    color: #78350f;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-hero__btn {
    font-size: 1rem;
    padding: .875rem 2rem;
}

.service-hero__image-wrap {
    position: relative;
}

.service-hero__img-frame {
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.service-hero__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
    border-radius: 12px;
}

.service-hero__img-placeholder {
    aspect-ratio: 4/3;
    background: rgba(37,99,235,.15);
    border-radius: 12px;
}

@media (max-width: 768px) {
    .service-hero__inner { grid-template-columns: 1fr; }
    .service-hero__image-wrap { display: none; }
    .service-hero { padding: 2.5rem 0; }
}

/* ── LAYOUT TREŚĆ + SIDEBAR ──────────────────────────────────── */
.service-layout {
    padding: 3rem 0;
}

.service-layout__inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .service-layout__inner { grid-template-columns: 1fr; }
    .service-sidebar { display: none; } /* na mobile ukryj sidebar */
}

/* ── TREŚĆ ARTYKUŁU (the_content()) ─────────────────────────── */
.service-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.service-body h1,
.service-body h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    color: var(--text);
    margin: 2.5rem 0 .875rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #f1f5f9;
}

.service-body h3 {
    font-size: 1.125rem;
    color: var(--text);
    margin: 2rem 0 .625rem;
}

.service-body p { margin-bottom: 1.25rem; }

.service-body ul,
.service-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.service-body li { margin-bottom: .375rem; }

.service-body ol { counter-reset: service-ol; padding-left: 0; list-style: none; }
.service-body ol > li {
    counter-increment: service-ol;
    padding-left: 2.5rem;
    position: relative;
    margin-bottom: 1.5rem;
}
.service-body ol > li::before {
    content: counter(service-ol);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1;
}

.service-body ul li { padding-left: 1.5rem; position: relative; list-style: none; }
.service-body ul li::before {
    content: '';
    position: absolute;
    left: 0; top: .55em;
    width: 8px; height: 8px;
    background: var(--blue);
    border-radius: 50%;
}

.service-body strong { color: var(--text); font-weight: 700; }
.service-body a { color: var(--blue); }
.service-body blockquote {
    border-left: 4px solid var(--blue);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--blue-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* ── SIDEBAR LISTA OFERTY ────────────────────────────────────── */
.service-sidebar { position: sticky; top: 90px; }

.service-offer-list {
    list-style: none;
    padding: 0;
}

.service-offer-list li {
    padding: .5rem 0 .5rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    font-size: .875rem;
    color: var(--text-muted);
}

.service-offer-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-size: .5rem;
    top: .7em;
}

.service-offer-list li:last-child { border-bottom: none; }

.service-offer-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .875rem;
}

.service-offer-list a:hover { color: var(--blue); }

/* Miniatury w sidebar dla polecanych postów */
.sidebar-posts__item { display: flex; gap: .75rem; }
.sidebar-posts__thumb { flex-shrink: 0; }
.sidebar-posts__thumb-img { width: 70px; height: 52px; object-fit: cover; border-radius: 6px; }

/* ── CTA BANER DOLNY — pełna szerokość z tłem ────────────────── */
.service-cta-banner {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue) 0%, #1e3a8a 100%);
}

.service-cta-banner__bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.service-cta-banner__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .3;
    display: block;
}

.service-cta-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(29,78,216,.95) 0%, rgba(29,78,216,.7) 60%, rgba(29,78,216,.4) 100%);
}

.service-cta-banner__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-cta-banner__eyebrow {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--yellow);
    margin-bottom: .5rem;
}

.service-cta-banner__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: #fff;
    margin-bottom: .375rem;
    line-height: 1.15;
}

.service-cta-banner__subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,.75);
    font-weight: 500;
}

.service-cta-banner__cta {
    flex-shrink: 0;
    font-size: 1.05rem;
    padding: 1rem 2.5rem;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .service-cta-banner { padding: 3.5rem 0; }
    .service-cta-banner__inner { flex-direction: column; text-align: center; }
    .service-cta-banner__cta { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   DROPDOWN MENU
   ══════════════════════════════════════════════════════════════ */
.nav__list li { position: relative; }

.nav__list .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    list-style: none;
    padding: .5rem;
    z-index: 200;
}

.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu { display: block; }

.nav__list .sub-menu li { width: 100%; }

.nav__list .sub-menu a {
    display: block;
    padding: .55rem .875rem;
    border-radius: 6px;
    font-size: .875rem;
    color: var(--text);
    white-space: nowrap;
    background: transparent;
}

.nav__list .sub-menu a:hover { color: var(--blue); background: var(--blue-light); }

/* Strzałka przy pozycjach z submenu */
.nav__list li:has(> .sub-menu) > a::after {
    content: ' ▾';
    font-size: .65rem;
    opacity: .6;
}

/* Mobile — submenu rozwijane normalnie w pionie */
@media (max-width: 768px) {
    .nav__list .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--blue-light);
        border-radius: 0;
        padding: 0 0 0 .75rem;
        margin: .25rem 0;
        display: block; /* zawsze widoczne na mobile */
    }
    .nav__list .sub-menu a { font-size: .9rem; padding: .5rem .75rem; }
}

/* ══════════════════════════════════════════════════════════════
   CONTACT FORM 7 — nadpisanie domyślnych stylów
   ══════════════════════════════════════════════════════════════ */

.wpcf7 { width: 100%; }

.wpcf7-form p {
    margin-bottom: 1.125rem;
}

.wpcf7-form label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .375rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
    display: block;
    box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: var(--blue);
}

.wpcf7-form textarea {
    resize: vertical;
    min-height: 130px;
}

/* Checkbox */
.wpcf7-form .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--blue);
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin: 0;
}

.wpcf7-form .wpcf7-acceptance label {
    font-size: .85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Przycisk submit */
.wpcf7-form input[type="submit"],
.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .875rem 1.75rem;
    background: var(--blue);
    color: #fff;
    border: 2px solid var(--blue);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

/* Walidacja — błędy */
.wpcf7-not-valid {
    border-color: #ef4444 !important;
}

.wpcf7-not-valid-tip {
    font-size: .8rem;
    color: #ef4444;
    margin-top: .25rem;
    display: block;
}

/* Komunikat po wysłaniu */
.wpcf7-response-output {
    margin-top: 1.25rem !important;
    padding: .875rem 1.25rem !important;
    border-radius: 8px !important;
    font-size: .9rem !important;
    border: none !important;
}

.wpcf7-mail-sent-ok {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border-left: 4px solid #22c55e !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-spam-blocked {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-left: 4px solid #ef4444 !important;
}

.wpcf7-validation-errors {
    background: #fffbeb !important;
    color: #92400e !important;
    border-left: 4px solid #f59e0b !important;
}

/* ══════════════════════════════════════════════════════════════
   MODUŁY KURSU EFR — siatka 3 kart
   ══════════════════════════════════════════════════════════════ */
.modules-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.modules-section .section-title {
    margin-bottom: 3rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.module-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    border: 1.5px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.module-card__icon {
    width: 56px;
    height: 56px;
    background: var(--blue-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.module-card__title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: .375rem;
}

.module-card__subtitle {
    font-size: .875rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .875rem;
}

.module-card__text {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.module-card__list {
    margin-top: auto;
}

.module-card__list li {
    font-size: .875rem;
}

@media (max-width: 900px) {
    .modules-grid { grid-template-columns: 1fr; }
}
