/* Wspólne poprawki dla wszystkich podstron */
.toast {
    visibility: hidden;
    max-width: calc(100vw - 32px);
    min-width: 250px;
    background-color: #1f2937;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 14px 20px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.4s, bottom 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.toast.show { visibility: visible; opacity: 1; bottom: 50px; }
.toast.toast-error { background-color: #b91c1c; }

/* pole-pułapka na boty */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* obrazy nigdy nie wychodzą poza ekran */
img, iframe, video { max-width: 100%; }

/* blok adresu / kontaktu – linki w kolorze tekstu */
.contact-links-inline a { color: inherit; text-decoration: none; }
.contact-links-inline a:hover { text-decoration: underline; }

/* link do strony głównej grupy */
.group-backlink { display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- baner zgody na cookies (wspólny) ---------- */
.cookie-banner {
    position: fixed; z-index: 10000; left: 16px; right: 16px; bottom: 16px;
    max-width: 760px; margin: 0 auto;
    display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap;
    padding: 18px 22px; border-radius: 16px;
    background: #111827; color: #e5e7eb; border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    font: 14px/1.55 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { flex: 1 1 320px; }
.cookie-banner-text strong { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.cookie-banner-text a { color: #93c5fd; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 99px; cursor: pointer; border: 1.5px solid #fff; transition: background .2s, color .2s; }
.cookie-btn-primary { background: #fff; color: #111827; }
.cookie-btn-primary:hover { background: #e5e7eb; }
.cookie-btn-secondary { background: transparent; color: #fff; }
.cookie-btn-secondary:hover { background: rgba(255,255,255,.1); }
@media (max-width: 520px) {
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
    .cookie-banner-actions, .cookie-btn { width: 100%; }
}

/* linki prawne w stopce w jednym wierszu (strona główna, Budownictwo) */
.legal-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- wspólna stopka Grupy (includes/group-footer.php) ---------- */
.gf { background: #0b1220; color: #9ca3af; font: 15px/1.7 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; border-top: 1px solid rgba(255,255,255,.08); }
.gf-inner { max-width: 1100px; margin: 0 auto; padding: 52px 20px 28px; display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1fr; gap: 32px; }
.gf-logo { width: 160px; height: auto; margin-bottom: 14px; }
.gf h3 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
.gf p { margin: 0 0 12px; }
.gf ul { list-style: none; padding: 0; margin: 0; }
.gf li { margin-bottom: 8px; }
.gf a { color: #d1d5db; text-decoration: none; }
.gf a:hover { color: #fff; text-decoration: underline; }
.gf-bottom { max-width: 1100px; margin: 0 auto; padding: 18px 20px 28px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
.gf-bottom p { margin: 0; }
.gf-social { display: flex; gap: 18px; }
@media (max-width: 900px) { .gf-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gf-inner { grid-template-columns: 1fr; padding: 40px 16px 20px; } .gf-bottom { padding: 16px; flex-direction: column; } }

/* klauzula pod formularzami – linki zawsze widoczne */
.fiveInput a, .form-note a, .cookie-banner a { text-decoration: underline; }
.fiveInput a { color: inherit !important; }
