/* =====================================================================
   polish.css - dopracowanie wyglądu podstron (ładowany po style.css)
   Usługi, blog, strony prawne, listy usług i wpisów, kontakt, o nas.
   ===================================================================== */

:root {
    --ink: #0f172a;          /* nagłówki */
    --text: #334155;         /* tekst główny */
    --muted: #64748b;        /* tekst pomocniczy */
    --line: #eceff3;         /* delikatne linie i ramki */
    --tint: #fff6f1;         /* jasne tło akcentu */
    --tint-line: #fde0d2;    /* ramka na jasnym tle akcentu */
    --accent-ink: #e2551f;   /* pomarańcz do tekstu (lepszy kontrast niż --primary) */
}

/* style.css ustawia html, body { overflow-x: hidden } - przez to body staje się
   kontenerem przewijania i nie działa position: sticky (prawa kolumna).
   overflow-x: clip tak samo obcina poziomy nadmiar, ale nie blokuje sticky.
   Starsze przeglądarki bez „clip” zostają przy dotychczasowym „hidden”. */
body {
    overflow-x: hidden;
    overflow-x: clip;
    overflow-y: visible;
}

/* Tekst pomocniczy - w bootstrap.min.css był biały (#fff !important) */
.text-muted { color: var(--muted) !important; }

/* ---------------------------------------------------------------------
   Nagłówek podstrony (pomarańczowy pas z tytułem i okruszkami)
   --------------------------------------------------------------------- */
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    padding: 2.75rem 0 2.5rem;
}
.bg-breadcrumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 220px at 15% 0%, rgba(255, 255, 255, .18), transparent 70%),
        radial-gradient(500px 200px at 90% 100%, rgba(0, 0, 0, .08), transparent 70%);
    pointer-events: none;
}
.bg-breadcrumb .container { position: relative; }
.bg-breadcrumb h1,
.bg-breadcrumb h4 {
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.35rem);
    letter-spacing: -.015em;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto .9rem;
    text-wrap: balance;
}
.bg-breadcrumb .breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .1rem 0;
    background: rgba(255, 255, 255, .16);
    padding: .35rem 1rem;
    border-radius: 999px;
}
.bg-breadcrumb .breadcrumb-item { font-size: .85rem; }

/* ---------------------------------------------------------------------
   Treść artykułu: usługi, blog, regulamin, polityka, cookies
   --------------------------------------------------------------------- */
/* Treść bez „pudełka” - leży bezpośrednio na stronie, jak pozostałe sekcje */
.article-content {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
/* Strony jednokolumnowe (regulamin, polityka, cookies) - wygodna szerokość tekstu */
.section:not(.article-section) .article-content {
    max-width: 920px;
    margin: 0 auto;
}
.article-section { padding-top: 2.75rem; }

.article-image { margin-bottom: 1.75rem; }
.article-image img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: none;
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.65;
    font-weight: 500;
    color: var(--text);
    padding-bottom: 1.4rem;
    margin-bottom: 1.6rem;
    border-bottom: 1px solid var(--line);
}
.article-intro strong { color: var(--ink); }

.article-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
}
.article-body p { margin-bottom: 1.15rem; }
.article-body strong { color: var(--ink); font-weight: 600; }

/* Nagłówki - jednolite, z pomarańczowym paskiem (wcześniej miało go tylko FAQ) */
.article-body h2,
.article-body h2.faq-section {
    position: relative;
    font-size: 1.6rem;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 2.6rem 0 1rem;
    padding-left: 1rem;
}
.article-body h2::before,
.article-body h2.faq-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}
.article-body h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--ink);
    margin: 1.8rem 0 .6rem;
}
.article-body h4 { font-size: 1.05rem; color: var(--ink); margin: 1.5rem 0 .5rem; }
.article-intro + h2,
.svc-summary + h2 { margin-top: .75rem; }

/* Listy punktowane - pomarańczowe znaczniki */
.article-body ul,
.article-body h2.faq-section ~ h3 ~ ul {
    list-style: none;
    padding-left: 0;
    margin: .5rem 0 1.5rem;
}
.article-body ul > li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: .5rem;
    line-height: 1.65;
}
.article-body ul > li::before {
    content: "";
    position: absolute;
    left: .3rem;
    top: .68em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, .15);
}

/* Listy numerowane - kółka z numerem */
.article-body ol,
.article-body h2.faq-section ~ h3 ~ ol {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
    margin: .5rem 0 1.5rem;
}
.article-body ol > li {
    counter-increment: step;
    position: relative;
    padding-left: 2.6rem;
    margin-bottom: .7rem;
    line-height: 1.65;
    min-height: 1.8rem;
}
.article-body ol > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: .05em;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--tint);
    border: 1px solid var(--tint-line);
    color: var(--accent-ink);
    font-size: .85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Linki w treści */
.article-body a {
    color: var(--accent-ink);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.article-body a:hover { color: var(--primary); }

.article-body img { border-radius: 12px; box-shadow: none; }

/* FAQ - pytania jako wyraźne bloki */
.article-body h2.faq-section ~ h3 {
    font-size: 1.1rem;
    margin-top: 1.4rem;
    margin-bottom: .45rem;
}
.article-body h2.faq-section ~ h3:not(:first-of-type) {
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}
.article-body h2.faq-section ~ h3 + p { color: var(--text); }

/* Blok „Przeczytaj też” / „Zobacz też” jako karta */
.article-body .zobacz-tez {
    margin: 2.6rem 0 .5rem;
    padding: 1.25rem 1.5rem 1rem;
    background: var(--tint);
    border: 1px solid var(--tint-line);
    border-radius: 16px;
}
.article-body .zobacz-tez h2 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--accent-ink);
    margin: 0 0 .6rem;
    padding: 0;
}
.article-body .zobacz-tez h2::before { display: none; }
.article-body .zobacz-tez ul { margin: 0; }
.article-body .zobacz-tez li { padding-left: 1.9rem; margin: .45rem 0; }
.article-body .zobacz-tez li::before {
    content: "\f518";                       /* book-open */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: .85rem;
    color: var(--primary);
    background: none;
    box-shadow: none;
    width: auto;
    height: auto;
    border-radius: 0;
    left: 0;
    top: .2em;
}
.article-body .zobacz-tez a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.article-body .zobacz-tez a:hover { color: var(--accent-ink); text-decoration: underline; }

/* Data publikacji i czas czytania (blog, nad zdjęciem) */
.article-meta,
.article-meta--top {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.4rem;
    margin: 0 0 1.1rem;
    padding: 0;
    border: 0;
    color: var(--muted);
    font-size: .9rem;
}
.article-meta i { color: var(--primary); margin-right: .35rem; }

/* Pole „Potrzebujesz wyceny naprawy?” */
.cta-box {
    border-radius: 18px !important;
    padding: 1.75rem 2rem !important;
}
.cta-box h3 { font-size: 1.35rem; }
.article-footer { border-color: var(--line) !important; }

/* ---------------------------------------------------------------------
   Karta „Czas realizacji, cena i gwarancja” (strona usługi, pod wstępem)
   --------------------------------------------------------------------- */
.svc-summary {
    display: grid;
    grid-template-columns: minmax(230px, .85fr) 1.6fr;
    margin: 0 0 2.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}
.svc-summary--price-only { grid-template-columns: 1fr; }

.svc-summary-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
    padding: 1.6rem 1.75rem;
    color: #fff;
    background: linear-gradient(145deg, var(--primary) 0%, var(--secondary) 100%);
}
.svc-summary-kicker {
    font-size: .74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .9;
}
.svc-summary-amount {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.svc-summary-amount--text { font-size: 1.4rem; }
.svc-summary-note { font-size: .9rem; opacity: .92; line-height: 1.4; }
.article-body .svc-summary-btn,
.svc-summary-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    padding: .6rem 1.05rem;
    border-radius: 10px;
    background: #fff;
    color: var(--accent-ink);
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.article-body .svc-summary-btn:hover,
.svc-summary-btn:hover {
    color: var(--accent-ink);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

.svc-summary-facts { padding: 1.3rem 1.75rem 1.1rem; }
.article-body .svc-summary-title {
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin: 0 0 .35rem;
    padding: 0;
}
.article-body .svc-summary-title::before { display: none; }
.svc-summary dl { margin: 0; }
.svc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .72rem 0;
    border-bottom: 1px dashed #e4e7ec;
}
.svc-summary-row:last-child { border-bottom: 0; padding-bottom: .2rem; }
.svc-summary dt {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
    font-size: .95rem;
    font-weight: 500;
    color: var(--muted);
}
.svc-summary dt i { width: 1.1rem; text-align: center; color: var(--primary); }
.svc-summary dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    text-align: right;
}

/* ---------------------------------------------------------------------
   „Inne usługi: kategoria” (pod treścią usługi)
   --------------------------------------------------------------------- */
.svc-siblings { margin: 2.75rem 0 1rem; }
.svc-siblings h2 {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    margin-bottom: .9rem;
}
.svc-siblings ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .6rem;
}
.svc-siblings li { margin: 0; padding: 0; }
.svc-siblings li::before { display: none; }
.svc-siblings a {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    height: 100%;
    color: var(--ink);
    text-decoration: none;
    align-items: center;
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-weight: 500;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.svc-siblings a::after {
    content: "\f054";                       /* chevron-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: .7rem;
    color: var(--primary);
    margin-left: .25rem;
}
.svc-siblings a:hover {
    border-color: var(--tint-line);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}
.svc-siblings a:hover { color: var(--ink); }
.svc-siblings a > span:first-child { flex: 1; }
.svc-siblings .p { color: var(--accent-ink); font-weight: 700; white-space: nowrap; }

/* ---------------------------------------------------------------------
   Listy kart (usługi, blog, strona główna)
   --------------------------------------------------------------------- */
.card {
    border: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .04);
}
.card:hover {
    border-color: var(--tint-line);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .09);
}
.card-img-top { height: 220px; }
.card-body { padding: 1.25rem 1.35rem 1.1rem; }
.card-title { color: var(--ink) !important; line-height: 1.35; }
.card-text { color: var(--muted) !important; line-height: 1.55; }

/* ---------------------------------------------------------------------
   Prawa kolumna (usługi i blog na komputerze)
   --------------------------------------------------------------------- */
.article-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
/* Klasę is-sticky dodaje skrypt na stronie, gdy kolumna mieści się w oknie */
.article-aside.is-sticky { position: sticky; top: 96px; }

/* Telefon w karcie ceny (pod przyciskiem wyceny) */
.svc-summary-call {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .7rem;
    font-size: .88rem;
    color: #fff;
    opacity: .95;
    text-decoration: none;
}
.svc-summary-call strong { font-weight: 700; }
.svc-summary-call i { font-size: .8rem; }
.svc-summary-call:hover { color: #fff; opacity: 1; text-decoration: underline; }
.article-body .svc-summary-call { color: #fff; text-decoration: none; }

/* Karta ceny w wąskiej kolumnie: cena na górze, wiersze pod nią */
.article-aside .svc-summary { grid-template-columns: 1fr; margin: 0; }
.article-aside .svc-summary-price { padding: 1.4rem 1.5rem; }
.article-aside .svc-summary-amount { font-size: 2rem; }
.article-aside .svc-summary-facts { padding: 1.1rem 1.5rem .9rem; }
.article-aside .svc-summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
    padding: .55rem 0;
}
.article-aside .svc-summary dt { font-size: .85rem; }
.article-aside .svc-summary dd { text-align: left; padding-left: 1.75rem; font-size: .98rem; }
.svc-summary-title { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .35rem; }

.aside-card {
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
}
.aside-kicker {
    display: block;
    margin-bottom: .45rem;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}
.aside-title { margin: 0 0 .35rem; font-size: 1.2rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.aside-small { display: block; margin: .2rem 0 0; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.aside-phone {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: .1rem 0 .35rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
    text-decoration: none;
}
.aside-phone i { font-size: 1rem; color: var(--primary); }
.aside-phone:hover { color: var(--accent-ink); }
.aside-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 1rem 0 .75rem;
    padding: .7rem 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.aside-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 107, 53, .3); }
.aside-help { background: var(--tint); border-color: var(--tint-line); box-shadow: none; }
.aside-help .aside-phone { font-size: 1.1rem; }

.aside-latest ul { list-style: none; margin: 0; padding: 0; }
.aside-latest li + li { border-top: 1px solid var(--line); }
.aside-latest a {
    display: flex;
    gap: .85rem;
    align-items: center;
    padding: .75rem 0;
    text-decoration: none;
}
.aside-latest li:first-child a { padding-top: .2rem; }
.aside-latest li:last-child a { padding-bottom: 0; }
.aside-latest img {
    flex: 0 0 68px;
    width: 68px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
}
.aside-latest .t {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .93rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
}
.aside-latest a:hover .t { color: var(--accent-ink); }
.aside-latest .d { display: block; margin-top: .15rem; font-size: .8rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   Telefon / mały ekran
   --------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .bg-breadcrumb { padding: 2rem 0 1.75rem; }
    .article-section { padding-top: 1.75rem; }
    .article-image img { max-height: 240px; border-radius: 12px; }
    .article-intro { font-size: 1.08rem; }
    .article-body { font-size: 1rem; }
    .article-body h2,
    .article-body h2.faq-section { font-size: 1.32rem; margin-top: 2rem; }
    .article-body h3 { font-size: 1.1rem; }

    .svc-summary { grid-template-columns: 1fr; }
    .svc-summary-price { padding: 1.25rem 1.25rem 1.35rem; }
    .svc-summary-amount { font-size: 1.75rem; }
    .svc-summary-facts { padding: 1rem 1.25rem .9rem; }
    .svc-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: .1rem;
        padding: .6rem 0;
    }
    .svc-summary dt { font-size: .85rem; }
    .svc-summary dd { font-size: 1rem; text-align: left; padding-left: 1.75rem; }
    .bg-breadcrumb .breadcrumb { border-radius: 14px; padding: .4rem .85rem; }

    .article-body .zobacz-tez { padding: 1rem 1.1rem .8rem; }
    .cta-box { padding: 1.35rem 1.25rem !important; }
}
