/* =====================================================================
   modern.css - nowa strona główna + motyw ciemny dla całej strony
   Ładowany po polish.css (includes/theme_head.php).
   Motyw: <html data-theme="light|dark"> ustawia skrypt w theme_head.php.
   ===================================================================== */

:root {
    --m-bg: #ffffff;
    --m-surface: #ffffff;
    --m-sunk: #f8fafc;
    --m-ink: #0f172a;
    --m-text: #334155;
    --m-muted: #64748b;
    --m-line: #eceff3;
    --m-accent: #ff6b35;
    --m-accent-ink: #e2551f;
    --m-soft: #fff6f1;
    --m-tint: #ffeee4;
    --m-tint-line: #fbcfb8;
    --m-ok: #1f9d62;
    --m-ok-soft: #e6f6ee;
    --m-hl: linear-gradient(145deg, #ff6b35 0%, #ff8c42 100%);
    --m-r: 18px;
    --m-r-lg: 28px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --m-bg: #0f1218;
    --m-surface: #161a22;
    --m-sunk: #12161d;
    --m-ink: #f1f5f9;
    --m-text: #cbd5e1;
    --m-muted: #94a3b8;
    --m-line: #252b36;
    --m-accent: #ff7a45;
    --m-accent-ink: #ff8a5c;
    --m-soft: #2a1a12;
    --m-tint: #1c1511;
    --m-tint-line: #3d2b20;
    --m-ok: #3ccf8a;
    --m-ok-soft: #12291f;
    /* zmienne z polish.css i style.css */
    --ink: #f1f5f9;
    --text: #cbd5e1;
    --muted: #94a3b8;
    --line: #252b36;
    --tint: #2a1a12;
    --tint-line: #3d2b20;
    --accent-ink: #ff8a5c;
    --light: #12161d;
}

/* ---------------------------------------------------------------------
   Przełącznik motywu (górny pasek)
   --------------------------------------------------------------------- */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--m-muted);
    opacity: .7;
    cursor: pointer;
    transition: opacity .15s ease, color .15s ease;
}
.theme-toggle:hover { opacity: 1; color: var(--m-ink); }
.theme-toggle:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 2px; opacity: 1; }

/* =====================================================================
   STRONA GŁÓWNA (klasy hp-*)
   ===================================================================== */
.hp { background: var(--m-bg); color: var(--m-text); }
.hp h1, .hp h2, .hp h3, .hp h4 { color: var(--m-ink); letter-spacing: -.02em; text-wrap: balance; }
.hp-section { padding: 88px 0; }
.hp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--m-accent-ink);
}
.hp-eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.hp-h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; font-weight: 800; margin: 0; }
.hp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.hp-head > div { display: grid; gap: 14px; max-width: 680px; }

.hp-btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 15px; font-weight: 700; line-height: 1;
    padding: 16px 22px; border-radius: 999px; text-decoration: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn-primary { background: var(--m-accent); color: #fff; }
.hp-btn-primary:hover { background: var(--m-accent-ink); color: #fff; }
.hp-btn-ghost { border: 1.5px solid var(--m-line); background: var(--m-surface); color: var(--m-ink); }
.hp-btn-ghost:hover { border-color: var(--m-accent); color: var(--m-ink); }
.hp-btn-white { background: #fff; color: #0f172a; }
.hp-btn-white:hover { color: #0f172a; }
.hp-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; color: var(--m-ink); text-decoration: none;
    border-bottom: 2px solid var(--m-accent); padding-bottom: 4px;
}
.hp-link:hover { color: var(--m-accent-ink); }
.hp-arr { display: inline-block; transition: transform .15s ease; }
a:hover .hp-arr { transform: translateX(4px); }
.hp a:focus-visible { outline: 3px solid var(--m-accent); outline-offset: 3px; }

/* Hero */
.hp-hero { padding: 64px 0 72px; overflow: hidden; }
.hp-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hp-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--m-ink);
    background: var(--m-surface); border: 1px solid var(--m-line);
    padding: 8px 14px; border-radius: 999px;
}
.hp-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--m-accent); }
.hp-hero h1 { font-size: clamp(42px, 6.4vw, 80px); line-height: .98; font-weight: 800; margin: 22px 0 24px; }
.hp-hero h1 em { font-style: normal; color: var(--m-accent); }
.hp-lead { font-size: 19px; line-height: 1.6; max-width: 540px; margin: 0; }
.hp-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hp-facts { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--m-line); }
.hp-fact b { display: block; font-size: 30px; font-weight: 800; line-height: 1; color: var(--m-ink); font-variant-numeric: tabular-nums; }
.hp-fact span { font-size: 14px; color: var(--m-muted); }

.hp-visual { position: relative; min-height: 520px; }
.hp-blob { position: absolute; inset: 30px 0 0 40px; background: var(--m-hl); border-radius: 44% 56% 52% 48% / 48% 42% 58% 52%; }
.hp-phone {
    position: absolute; left: 50%; top: 20px; transform: translateX(-46%) rotate(-7deg);
    width: 250px; height: 500px; border-radius: 42px; background: #1a1c22; padding: 12px;
    box-shadow: 0 40px 80px -20px rgba(15, 23, 42, .45);
}
.hp-screen { width: 100%; height: 100%; border-radius: 32px; background: linear-gradient(160deg, #2a2e3a, #0e1015); overflow: hidden; }
.hp-screen svg { width: 100%; height: 100%; display: block; }
.hp-float {
    position: absolute; background: var(--m-surface); border: 1px solid var(--m-line);
    border-radius: var(--m-r); padding: 16px 18px; box-shadow: 0 20px 50px -20px rgba(15, 23, 42, .3);
}
.hp-ticket { left: -10px; bottom: 56px; width: 270px; display: grid; gap: 10px; }
.hp-ticket .row-t { font-size: 13px; color: var(--m-muted); }
.hp-ticket h4 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.hp-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.hp-progress i { height: 5px; border-radius: 3px; background: var(--m-ok); }
.hp-status {
    display: inline-flex; align-items: center; gap: 6px; width: max-content;
    font-size: 13px; font-weight: 700; color: var(--m-ok); background: var(--m-ok-soft);
    padding: 5px 10px; border-radius: 999px;
}
.hp-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hp-guarantee { right: 0; top: 40px; display: flex; gap: 12px; align-items: center; }
.hp-guarantee .ic {
    width: 42px; height: 42px; border-radius: 12px; background: var(--m-soft); color: var(--m-accent-ink);
    display: grid; place-items: center; font-size: 18px;
}
.hp-guarantee b { display: block; color: var(--m-ink); font-size: 15px; }
.hp-guarantee span { font-size: 13px; color: var(--m-muted); }
@media (max-width: 991.98px) {
    .hp-hero-grid { grid-template-columns: 1fr; }
    .hp-visual { min-height: 460px; max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) {
    .hp-phone { width: 200px; height: 400px; }
    .hp-visual { min-height: 420px; }
    .hp-ticket { width: 240px; left: 0; bottom: 20px; }
    .hp-guarantee { top: 10px; }
}

/* Pas modeli */
.hp-models { border-top: 1px solid var(--m-line); border-bottom: 1px solid var(--m-line); background: var(--m-surface); overflow: hidden; padding: 22px 0; }
.hp-track { display: flex; gap: 48px; width: max-content; animation: hp-slide 40s linear infinite; font-size: 22px; font-weight: 700; color: var(--m-muted); white-space: nowrap; }
.hp-track span { display: inline-flex; gap: 48px; align-items: center; }
.hp-track span::after { content: "✦"; color: var(--m-accent); font-size: 14px; }
@keyframes hp-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hp-track { animation: none; } }

/* Usługi - bento */
.hp-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 16px; }
.hp-svc {
    position: relative; min-width: 0;
    background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r-lg);
    padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
    color: var(--m-text); text-decoration: none; transition: border-color .2s ease, transform .2s ease;
}
.hp-svc:hover { border-color: var(--m-accent); transform: translateY(-3px); color: var(--m-text); }
.hp-svc h3 { font-size: 21px; font-weight: 700; line-height: 1.2; margin: 0; }
.hp-svc p { font-size: 15px; color: var(--m-muted); margin: 8px 0 0; }
.hp-svc { justify-content: flex-start; }
.hp-svc .top { position: relative; }
.hp-svc .thumb {
    display: grid; place-items: center; width: 100%; aspect-ratio: 2 / 1; border-radius: 14px; overflow: hidden;
    background: var(--m-soft); color: var(--m-accent-ink); font-size: 34px;
}
.hp-svc .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.hp-svc:hover .thumb img { transform: scale(1.04); }
.hp-svc .top .go { position: absolute; right: 10px; top: 10px; background: var(--m-surface); border-color: transparent; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.hp-svc .go {
    width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--m-line); flex: none;
    display: grid; place-items: center; color: var(--m-ink); transition: .2s ease;
}
.hp-svc:hover .go { background: var(--m-accent); border-color: var(--m-accent); color: #fff; }
.hp-svc.big {
    grid-column: span 2; grid-row: span 2;
    background: var(--m-hl); border-color: transparent; color: #fff;
    box-shadow: 0 24px 50px -24px rgba(255, 107, 53, .6);
}
.hp-svc.big:hover { border-color: transparent; color: #fff; }
.hp-svc.big h3 { color: #fff; font-size: clamp(28px, 3vw, 38px); }
.hp-svc.big p { color: rgba(255, 255, 255, .9); font-size: 16px; max-width: 420px; }
.hp-svc.big .thumb { aspect-ratio: 16 / 10; border-radius: 18px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 48px; }
.hp-svc.big .top .go { background: #fff; border-color: transparent; color: #e2551f; }
.hp-svc.big .go { border-color: rgba(255, 255, 255, .4); color: #fff; }
.hp-svc.big:hover .go { background: #fff; border-color: #fff; color: #e2551f; }
.hp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.hp-chips span { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .15); color: #fff; }
.hp-svc.full { grid-column: span 4; flex-direction: row; align-items: center; }
.hp-svc.full { gap: 28px; }
.hp-svc.full .top { flex: 0 0 340px; }
@media (max-width: 991.98px) {
    .hp-bento { grid-template-columns: repeat(2, 1fr); }
    .hp-svc.full { grid-column: span 2; }
}
@media (max-width: 575.98px) {
    .hp-bento { grid-template-columns: 1fr; }
    .hp-svc.big, .hp-svc.full { grid-column: span 1; grid-row: span 1; }
    .hp-svc.full { flex-direction: column; align-items: stretch; }
    .hp-svc.full .top { flex: none; }
}

/* Jak to działa */
.hp-process { background: var(--m-sunk); }
.hp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hp-step { position: relative; background: var(--m-surface); border-radius: var(--m-r-lg); padding: 28px; display: grid; gap: 12px; align-content: start; }
.hp-step .n { font-size: 13px; font-weight: 600; color: var(--m-accent-ink); }
.hp-step h3 { font-size: 21px; font-weight: 700; margin: 0; }
.hp-step p { font-size: 15px; color: var(--m-muted); margin: 0; }
.hp-step:not(:last-child)::after {
    content: "→"; position: absolute; right: -14px; top: 30px; z-index: 1;
    width: 28px; height: 28px; border-radius: 50%; background: var(--m-accent); color: #fff;
    display: grid; place-items: center; font-size: 14px;
}
@media (max-width: 991.98px) { .hp-steps { grid-template-columns: repeat(2, 1fr); } .hp-step:not(:last-child)::after { display: none; } }
@media (max-width: 575.98px) { .hp-steps { grid-template-columns: 1fr; } }

/* Dlaczego my */
.hp-trust { background: var(--m-tint); border-top: 1px solid var(--m-tint-line); border-bottom: 1px solid var(--m-tint-line); }
.hp-trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.hp-since { font-size: clamp(110px, 16vw, 200px); line-height: .85; font-weight: 800; color: var(--m-accent); letter-spacing: -.05em; }
.hp-since small { display: block; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--m-muted); margin-top: 18px; }
.hp-trust .hp-lead { font-size: 18px; margin-top: 18px; color: var(--m-muted); max-width: 580px; }
.hp-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--m-tint-line); border: 1px solid var(--m-tint-line); border-radius: var(--m-r-lg); overflow: hidden; margin-top: 36px; }
.hp-reason { background: var(--m-surface); padding: 24px; display: grid; gap: 6px; }
.hp-reason b { font-size: 18px; color: var(--m-ink); }
.hp-reason span { font-size: 14.5px; color: var(--m-muted); }
@media (max-width: 991.98px) { .hp-trust-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 575.98px) { .hp-reasons { grid-template-columns: 1fr; } }

/* Opinie */
.hp-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hp-review { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r-lg); padding: 28px; display: grid; gap: 18px; align-content: space-between; }
.hp-stars { color: var(--m-accent); letter-spacing: 3px; font-size: 16px; }
.hp-review blockquote { font-size: 17px; line-height: 1.5; color: var(--m-ink); margin: 0; }
.hp-who { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--m-muted); }
.hp-av { width: 40px; height: 40px; border-radius: 50%; background: var(--m-soft); color: var(--m-accent-ink); display: grid; place-items: center; font-weight: 700; }
.hp-who b { display: block; color: var(--m-ink); }
@media (max-width: 991.98px) { .hp-reviews { grid-template-columns: 1fr; } }

/* Blog */
.hp-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hp-post { display: grid; gap: 14px; align-content: start; text-decoration: none; color: var(--m-text); }
.hp-post .img { aspect-ratio: 16 / 10; border-radius: var(--m-r); overflow: hidden; background: var(--m-soft); }
.hp-post .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hp-post:hover .img img { transform: scale(1.04); }
.hp-post .d { font-size: 13px; color: var(--m-muted); }
.hp-post h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0; }
.hp-post:hover h3 { color: var(--m-accent-ink); }
@media (max-width: 991.98px) { .hp-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .hp-posts { grid-template-columns: 1fr; } }

/* CTA */
.hp-cta { padding: 0 0 88px; }
.hp-cta-box {
    position: relative; overflow: hidden;
    background: var(--m-hl); border-radius: 36px; padding: 56px; color: #fff;
    display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.hp-cta-box::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .1); }
.hp .hp-cta-box h2 { color: #fff; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.02; font-weight: 800; margin: 0; }
.hp-cta-box p { margin: 16px 0 0; font-size: 18px; color: rgba(255, 255, 255, .92); }
.hp-cta-side { position: relative; display: grid; gap: 12px; }
.hp-cta-phone { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; line-height: 1; color: #fff; text-decoration: none; }
.hp-cta-phone:hover { color: #fff; }
.hp-cta-side .addr { font-size: 15px; color: rgba(255, 255, 255, .92); }
.hp-cta-side .hp-btn { width: max-content; }
@media (max-width: 860px) { .hp-cta-box { grid-template-columns: 1fr; padding: 36px 24px; } }

/* =====================================================================
   MOTYW CIEMNY - nadpisania dla istniejących stylów strony
   ===================================================================== */
html[data-theme="dark"] body { background: var(--m-bg); color: var(--m-text); }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3,
html[data-theme="dark"] h4, html[data-theme="dark"] h5, html[data-theme="dark"] h6 { color: var(--m-ink); }
html[data-theme="dark"] .footer h1, html[data-theme="dark"] .footer h2, html[data-theme="dark"] .footer h3,
html[data-theme="dark"] .footer h4, html[data-theme="dark"] .footer h5, html[data-theme="dark"] .footer h6 { color: #fff; }
html[data-theme="dark"] .footer { background: #0b0d12; }

html[data-theme="dark"] .bg-white { background-color: var(--m-surface) !important; }
html[data-theme="dark"] .bg-light { background-color: var(--m-sunk) !important; }
html[data-theme="dark"] .text-dark { color: var(--m-ink) !important; }
html[data-theme="dark"] .top-bar { background-color: var(--m-sunk) !important; }
html[data-theme="dark"] .top-bar-link,
html[data-theme="dark"] .navbar-light .navbar-nav .nav-link { color: var(--m-text); }
html[data-theme="dark"] .navbar-light .navbar-nav .nav-link:hover,
html[data-theme="dark"] .navbar-light .navbar-nav .nav-link.active { color: var(--m-accent); }
html[data-theme="dark"] .navbar { border-bottom: 1px solid var(--m-line); }
html[data-theme="dark"] .navbar-light .navbar-toggler-icon { filter: invert(1) brightness(1.4); }
html[data-theme="dark"] .btn-close { filter: invert(1); }

html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .svc-summary,
html[data-theme="dark"] .svc-siblings a,
html[data-theme="dark"] .aside-card,
html[data-theme="dark"] .about-tile,
html[data-theme="dark"] .about-step,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .contact-item,
html[data-theme="dark"] .feature-box,
html[data-theme="dark"] .stats-card,
html[data-theme="dark"] .value-item {
    background: var(--m-surface);
    border-color: var(--m-line);
    color: var(--m-text);
}
html[data-theme="dark"] .card { --bs-card-bg: var(--m-surface); --bs-card-border-color: var(--m-line); }
html[data-theme="dark"] #searchModal .modal-content { background: var(--m-bg) !important; }
html[data-theme="dark"] #searchModal .input-group-text,
html[data-theme="dark"] #searchModal #searchInput,
html[data-theme="dark"] .search-input-wrapper .input-group { background: var(--m-surface) !important; color: var(--m-ink); }
html[data-theme="dark"] .badge.bg-light { color: var(--m-text) !important; border-color: var(--m-line) !important; }

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background-color: var(--m-sunk);
    border-color: var(--m-line);
    color: var(--m-ink);
}
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus { background-color: var(--m-surface); color: var(--m-ink); border-color: var(--m-accent); }
html[data-theme="dark"] .form-control::placeholder { color: var(--m-muted); }
html[data-theme="dark"] .form-floating > label { color: var(--m-muted); }
html[data-theme="dark"] .form-floating > .form-control:focus ~ label::after,
html[data-theme="dark"] .form-floating > .form-control:not(:placeholder-shown) ~ label::after { background-color: transparent; }

/* o-nas.php ma własny ciemny baner .svc-cta */
html[data-theme="dark"] .svc-cta,
html[data-theme="dark"] .about-stats-dark { background: #1b202b; border: 1px solid var(--m-line); }

html[data-theme="dark"] .pagination .page-link { background: var(--m-surface); color: var(--m-text); border-color: var(--m-line); }
html[data-theme="dark"] .pagination .page-item.disabled .page-link { background: var(--m-sunk); color: var(--m-muted); }

html[data-theme="dark"] .article-body table td,
html[data-theme="dark"] .article-body table th { border-color: var(--m-line); }
html[data-theme="dark"] .article-body code,
html[data-theme="dark"] .article-body pre { background: var(--m-sunk); color: var(--m-ink); }
html[data-theme="dark"] .article-body blockquote { background: var(--m-sunk); color: var(--m-text); }
html[data-theme="dark"] .article-image img,
html[data-theme="dark"] .article-body img { box-shadow: none; }

/* =====================================================================
   PODSTRONY: nagłówek strony (usługi, usługa, blog, wpis)
   ===================================================================== */
.m-phead { position: relative; overflow: hidden; background: var(--m-sunk); border-bottom: 1px solid var(--m-line); padding: 56px 0 52px; }
.m-phead::after { content: ""; position: absolute; right: -120px; top: -140px; width: 360px; height: 360px; border-radius: 50%; background: var(--m-hl); opacity: .28; pointer-events: none; }
.m-phead .container { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: start; }
.m-phead h1 { margin: 0; max-width: 920px; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; color: var(--m-ink); text-wrap: balance; }
.m-phead .m-lead { margin: 0; max-width: 660px; font-size: 16.5px; line-height: 1.6; color: var(--m-text); }
.m-phead .breadcrumb { margin: 0; padding: 0; background: none; font-size: 13px; opacity: .85; }
.m-phead .breadcrumb-item, .m-phead .breadcrumb-item.active { color: var(--m-muted); }
.m-phead .breadcrumb-item a { color: var(--m-muted); text-decoration: none; }
.m-phead .breadcrumb-item a:hover { color: var(--m-accent-ink); }
.m-phead .breadcrumb-item + .breadcrumb-item::before { color: var(--m-muted); opacity: .5; content: "/"; }
.m-cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--m-accent-ink); text-decoration: none; }
a.m-cat:hover { color: var(--m-accent); }
.m-meta { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 14px; color: var(--m-muted); }
.m-meta i { color: var(--m-accent); margin-right: 6px; }
@media (max-width: 767.98px) { .m-phead { padding: 40px 0 36px; } .m-phead .m-lead { font-size: 15px; } }

/* Baner pomocy pod listą (usługi, blog) */
.m-help { margin-top: 48px; background: var(--m-tint); border: 1px solid var(--m-tint-line); border-radius: var(--m-r-lg); padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.m-help h2 { margin: 0; font-size: 24px; font-weight: 800; color: var(--m-ink); }
.m-help p { margin: 6px 0 0; max-width: 580px; color: var(--m-text); }
.m-help .acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.m-pill { display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 999px; background: var(--m-surface); border: 1.5px solid var(--m-line); color: var(--m-ink); font-weight: 700; text-decoration: none; }
.m-pill:hover { border-color: var(--m-accent); color: var(--m-ink); }
.m-pill i { color: var(--m-ok); }

/* =====================================================================
   LISTA USŁUG (uslugi.php)
   ===================================================================== */
.svc-list-section { padding-top: 40px; }
.svc-filter-wrap { position: sticky; top: 76px; z-index: 20; margin: 0 0 36px; }
.svc-filter { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 8px; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 999px; box-shadow: 0 12px 32px -12px rgba(15, 23, 42, .18); scrollbar-width: none; }
.svc-filter::-webkit-scrollbar { display: none; }
.svc-chip { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 999px; color: var(--m-text); font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background .2s ease, color .2s ease; }
.svc-chip i { color: var(--m-accent); font-size: 13px; }
.svc-chip .cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--m-sunk); color: var(--m-muted); font-size: 12px; font-weight: 700; }
.svc-chip:hover { background: var(--m-soft); color: var(--m-ink); }
.svc-chip.active { background: var(--m-ink); color: var(--m-bg); }
.svc-chip.active i { color: var(--m-accent); }
.svc-chip.active .cnt { background: rgba(255, 255, 255, .18); color: inherit; }
html[data-theme="dark"] .svc-chip.active .cnt { background: rgba(15, 18, 24, .15); }
.svc-arrow { position: absolute; top: 1px; bottom: 1px; width: 64px; display: flex; align-items: center; border: 0; padding: 0; background: transparent; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 2; }
.svc-arrow span { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--m-accent); color: #fff; font-size: 13px; }
.svc-arrow-next { right: 1px; justify-content: flex-end; padding-right: 8px; border-radius: 0 999px 999px 0; background: linear-gradient(90deg, transparent, var(--m-surface) 45%); }
.svc-arrow-prev { left: 1px; justify-content: flex-start; padding-left: 8px; border-radius: 999px 0 0 999px; background: linear-gradient(270deg, transparent, var(--m-surface) 45%); }
.svc-filter-wrap.has-more .svc-arrow-next, .svc-filter-wrap.has-less .svc-arrow-prev { opacity: 1; pointer-events: auto; }
@media (max-width: 991.98px) { .svc-chip { flex: 0 0 auto; } }
@media (max-width: 767.98px) { .svc-list-section { padding-top: 28px; } .svc-filter-wrap { top: 64px; margin: 0 0 28px; } .svc-filter { padding: 6px; } }

.svc-cards { scroll-margin-top: 170px; }
.svc-card-img { position: relative; }
.svc-card-price { position: absolute; right: 12px; top: 12px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: var(--m-hl); color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }

/* =====================================================================
   LISTA WPISÓW (blog.php)
   ===================================================================== */
.blog-list-section { padding-top: 56px; }
.blog-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-card { display: flex; flex-direction: column; min-width: 0; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r-lg); overflow: hidden; text-decoration: none; color: var(--m-text); transition: border-color .2s ease, transform .2s ease; }
.blog-card:hover { border-color: var(--m-accent); transform: translateY(-3px); color: var(--m-text); }
.blog-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--m-soft); display: flex; align-items: center; justify-content: center; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-img > i { font-size: 40px; color: var(--m-accent); opacity: .55; }
.blog-card-body { display: grid; gap: 6px; padding: 18px 20px 20px; align-content: start; flex: 1; }
.blog-card-date { font-size: 12.5px; font-weight: 600; color: var(--m-muted); }
.blog-card-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--m-ink); text-wrap: balance; }
.blog-card:hover .blog-card-title { color: var(--m-accent-ink); }
@media (max-width: 991.98px) { .blog-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .blog-cards { grid-template-columns: 1fr; } .blog-card-title { font-size: 19px; } }

.blog-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.blog-pager a, .blog-pager span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1.5px solid var(--m-line); background: var(--m-surface); color: var(--m-ink); font-weight: 700; text-decoration: none; }
.blog-pager a:hover { border-color: var(--m-accent); color: var(--m-ink); }
.blog-pager .on { background: var(--m-accent); border-color: var(--m-accent); color: #fff; }
.blog-pager .off { opacity: .4; }
.blog-pager .gap { border: 0; background: none; min-width: 20px; padding: 0; color: var(--m-muted); }

/* =====================================================================
   SZCZEGÓŁY USŁUGI / WPISU
   ===================================================================== */
.article-section { padding-top: 56px; }
.article-image img { border-radius: var(--m-r-lg); box-shadow: none; }
.article-aside .aside-card.aside-hl { background: var(--m-hl); border-color: transparent; color: #fff; }
.article-aside .aside-hl .aside-kicker, .article-aside .aside-hl .aside-small { color: rgba(255, 255, 255, .9); }
.article-aside .aside-hl .aside-title { color: #fff; }
.article-aside .aside-hl .aside-btn { background: #fff; color: #0f172a; }
.article-aside .aside-hl .aside-btn:hover { color: #0f172a; box-shadow: 0 8px 20px rgba(15, 23, 42, .2); }
.article-aside .aside-hl .aside-phone, .article-aside .aside-hl .aside-phone i { color: #fff; }
.m-art-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--m-line); }
.m-art-foot .hp-btn { padding: 14px 20px; }

/* Baner kontaktowy na listach (jak CTA strony głównej) + karta "Przeczytaj też" */
.m-cta { margin-top: 64px; }
.hp-cta-box.m-cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.hp-cta-side .addr { display: grid; gap: 2px; }
.hp-cta-side .addr > span { white-space: nowrap; }
@media (max-width: 575.98px) { .m-cta { margin-top: 48px; } }
.article-body .zobacz-tez { background: var(--m-hl); border: 0; color: #fff; }
.article-body .zobacz-tez h2 { color: rgba(255, 255, 255, .85); }
.article-body .zobacz-tez li::before { color: #fff; }
.article-body .zobacz-tez a, .article-body .zobacz-tez a:hover { color: #fff; }

/* =====================================================================
   O NAS (ab-*)
   ===================================================================== */
.ab-text { font-size: 17px; line-height: 1.65; color: var(--m-text); margin: 18px 0 0; max-width: 600px; }
.ab-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.ab-stats > div { background: var(--m-sunk); border: 1px solid var(--m-line); border-radius: var(--m-r-lg); padding: 26px 24px; display: grid; gap: 6px; }
.ab-stats b { font-size: clamp(30px, 3.4vw, 42px); line-height: 1; font-weight: 800; color: var(--m-accent); letter-spacing: -.02em; }
.ab-stats span { font-size: 14.5px; color: var(--m-muted); }
.ab-stats > div:first-child { background: var(--m-hl); border-color: transparent; }
.ab-stats > div:first-child b, .ab-stats > div:first-child span { color: #fff; }
.ab-reasons { margin-top: 0; grid-template-columns: repeat(4, 1fr); }
.ab-brands { display: flex; flex-wrap: wrap; gap: 10px; }
.ab-brands span { padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--m-line); background: var(--m-surface); font-size: 16px; font-weight: 600; color: var(--m-muted); }
.ab-brands span.on { background: var(--m-hl); border-color: transparent; color: #fff; font-weight: 700; }
@media (max-width: 991.98px) { .ab-stats, .ab-reasons { grid-template-columns: repeat(2, 1fr); } .ab-stats { margin-top: 40px; } }
@media (max-width: 575.98px) { .ab-stats { gap: 10px; } .ab-stats > div { padding: 20px 16px; } .ab-reasons { grid-template-columns: 1fr; } .ab-text { font-size: 16px; } }

/* =====================================================================
   KONTAKT (ct-*)
   ===================================================================== */
.ct-section { padding-top: 48px; }
.ct-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: start; }
.ct-list { display: grid; gap: 12px; }
.ct-item { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r-lg); color: var(--m-text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.ct-item:hover { border-color: var(--m-accent); color: var(--m-text); transform: translateY(-2px); }
.ct-ic { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: var(--m-soft); color: var(--m-accent-ink); display: grid; place-items: center; font-size: 17px; }
.ct-item small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); margin-bottom: 2px; }
.ct-item b { display: block; font-size: 17px; color: var(--m-ink); word-break: break-word; }
.ct-item-hl { background: var(--m-hl); border-color: transparent; }
.ct-item-hl .ct-ic { background: rgba(255, 255, 255, .2); color: #fff; }
.ct-item-hl small { color: rgba(255, 255, 255, .85); }
.ct-item-hl b { color: #fff; font-size: 22px; }
a.ct-item-hl:hover { border-color: transparent; }
.ct-form { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r-lg); padding: 32px; }
.ct-form h2 { margin: 0; font-size: 26px; font-weight: 800; color: var(--m-ink); letter-spacing: -.02em; }
.ct-note { margin: 6px 0 22px; font-size: 14px; color: var(--m-muted); }
.ct-form .form-control { border-radius: 12px; border-color: var(--m-line); }
.ct-form .form-control:focus { border-color: var(--m-accent); box-shadow: 0 0 0 3px rgba(255, 107, 53, .15); }
.ct-submit { border: 0; width: 100%; justify-content: center; }
.ct-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ct-map { margin-top: 24px; border: 1px solid var(--m-line); border-radius: var(--m-r-lg); overflow: hidden; line-height: 0; }
html[data-theme="dark"] .ct-map iframe { filter: invert(.9) hue-rotate(180deg); }
@media (max-width: 991.98px) { .ct-grid { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .ct-section { padding-top: 28px; } .ct-form { padding: 22px 18px; } .ct-item { padding: 16px; } .ct-map iframe { height: 320px; } }

/* =====================================================================
   PASEK SZYBKIEGO KONTAKTU (tylko telefon)
   ===================================================================== */
.m-dock { display: none; }
@media (max-width: 767.98px) {
    .m-dock {
        position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 1000;
        display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; padding: 6px;
        background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 999px;
        box-shadow: 0 12px 32px -8px rgba(15, 23, 42, .35);
        transform: translateY(140%); opacity: 0; pointer-events: none;
        transition: transform .3s ease, opacity .3s ease;
    }
    .m-dock.show { transform: none; opacity: 1; pointer-events: auto; }
    .m-dock a {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        padding: 13px 10px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1;
        text-decoration: none; white-space: nowrap;
    }
    .m-dock-call { color: var(--m-ink); }
    .m-dock-call i { color: var(--m-accent); }
    .m-dock-call:hover { color: var(--m-ink); }
    .m-dock-go, .m-dock-go:hover { background: var(--m-hl); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .m-dock { transition: none; } }

/* Menu mobilne - większy tekst */
@media (max-width: 991.98px) {
    .navbar-collapse .navbar-nav { padding: 8px 0 14px; }
    .navbar-collapse .navbar-nav .nav-link { font-size: 19px; font-weight: 600; padding: 13px 4px; }
    .navbar-collapse .navbar-nav .nav-item + .nav-item .nav-link { border-top: 1px solid var(--m-line); }
}

/* =====================================================================
   KLASY ZAMIAST STYLI INLINE
   ===================================================================== */
.nav-ext { font-size: .75em; }
.hp-h2-gap { margin-top: 14px; }
.hp-section-flush { padding-top: 0; }
.site-notice .container { line-height: 1.4; }
.ct-textarea { min-height: 160px; }
.form-floating > .ct-textarea { height: 160px; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-map iframe { display: block; border: 0; }

/* Okno wyszukiwania */
.search-modal-content { background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%); }
.search-close { font-size: 1.5rem; }
.search-group { border-radius: 1rem; overflow: hidden; }
.search-input { font-size: 1.1rem; }
.search-tag { font-weight: 500; }

/* Wyniki wyszukiwania (js/search.js) */
.sr-state { text-align: center; padding: 48px 0; color: var(--m-muted); }
.sr-state > i { font-size: 48px; color: var(--m-accent); opacity: .3; margin-bottom: 18px; }
.sr-state h5 { color: var(--m-ink); font-weight: 700; margin-bottom: 6px; }
.sr-state p { margin: 12px 0 0; }
.sr-state h5 + p { margin-top: 0; }
.sr-head { margin: 0 0 18px; font-size: 15px; color: var(--m-muted); }
.sr-head strong { color: var(--m-ink); }
.sr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sr-card { display: flex; flex-direction: column; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r-lg); overflow: hidden; color: var(--m-text); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.sr-card:hover { border-color: var(--m-accent); transform: translateY(-3px); color: var(--m-text); }
.sr-img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--m-soft); color: var(--m-accent-ink); font-size: 32px; overflow: hidden; }
.sr-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.sr-card:hover .sr-img img { transform: scale(1.04); }
.sr-badge { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.2; color: #fff; background: var(--m-hl); }
.sr-badge-blog { background: #0f172a; }
.sr-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.sr-title { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--m-ink); }
.sr-intro { font-size: 14px; line-height: 1.55; color: var(--m-muted); }
.sr-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--m-accent-ink); }
.sr-meta span + span { font-weight: 500; color: var(--m-muted); }
@media (max-width: 991.98px) { .sr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .sr-grid { grid-template-columns: 1fr; } }

/* Strona 404 */
.e404 { text-align: center; }
.e404-code { font-size: clamp(110px, 22vw, 220px); line-height: .9; font-weight: 800; letter-spacing: -.05em; background: var(--m-hl); -webkit-background-clip: text; background-clip: text; color: transparent; }
.e404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
