/* site.css — style dodane w 2026-10 (menu rozwijane, kafelki, tabela techniczna,
   panel dokumentów, baner wideo, przycisk wyceny). Ładowany po main.css. */

/* ---------- Dostępność: widoczny focus ---------- */
.menu a:focus-visible,
.menu-group-toggle:focus-visible,
#menuToggle:focus-visible,
.quote-btn:focus-visible,
.quote-dialog button:focus-visible,
.quote-dialog a:focus-visible,
.download-panel a:focus-visible,
#portfolio li a:focus-visible {
    outline: 3px solid #1589D2;
    outline-offset: 2px;
}

/* ---------- Menu: przewijanie + grupa rozwijana ---------- */
.menu-wrap { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 40px; box-sizing: border-box; }
.menu a[aria-current="page"] { color: #fff; }
.menu-group-toggle {
    display: block;
    width: calc(100% - 20px);
    margin: 0 0 0 20px;
    padding: 8px 0;
    border: 0;
    background: none;
    color: gray;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 16px;
    text-align: left;
    cursor: pointer;
}
.menu-group-toggle::after { content: "\25BE"; float: right; margin-right: 12px; }
.menu-group-toggle[aria-expanded="true"]::after { content: "\25B4"; }
.menu-group-toggle:hover,
.menu-group-toggle[aria-expanded="true"] { color: #fff; }
.menu-group-label { display: block; margin: 0 0 0 20px; padding: 8px 0; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; line-height: 16px; }
.menu-sub { margin: 0 0 4px 12px; border-left: 1px solid #444; }
.menu-sub[hidden] { display: none; }
.menu-sub a { font-weight: 400; }

/* ---------- Kafelki strony głównej: widoczny podpis (zamiast podpisu tylko po najechaniu) ---------- */
#portfolio li a:after { content: none !important; }
#portfolio li a { display: block; position: relative; }
#portfolio li a img { display: block; width: 100%; height: auto; }
#portfolio .tile-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 10px 12px 12px;
    border-bottom: 7px solid #f2f2f2;
    background: rgba(242, 242, 242, .92);
    color: #333;
    text-align: left;
}
#portfolio .tile-title { margin: 0 0 2px; font-size: 16px; line-height: 20px; font-weight: 700; color: #1a1a1a; }
#portfolio .tile-desc { display: block; font-size: 13px; line-height: 17px; color: #444; }

/* ---------- Sekcje podstron produktu ---------- */
.spec-section { background: #ebebeb; padding: 25px 0 40px; margin-top: 20px; }
.spec-section h2 { margin: 0 0 20px; text-align: center; font-size: 28px; line-height: 34px; color: #333; }
.spec-wrap { width: 100%; max-width: 100%; overflow: hidden; }
.spec-table { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; }
.spec-table th,
.spec-table td { padding: 10px; line-height: 22px; text-align: left; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.spec-table thead th { color: #fff; background: #2f2f2f; }
.spec-table tbody th { font-weight: 400; color: #333; }
.spec-table tbody td { font-weight: 700; color: #333; }
.spec-table tbody tr:nth-child(even) > * { background: #e9e9e9; }
.spec-table tbody tr:nth-child(odd) > * { background: #f2f2f2; }
.spec-table col.spec-col-name { width: 34%; }
.spec-note { margin-top: 12px; font-size: 14px; line-height: 20px; text-align: center; }

/* ---------- Panel „Dokumenty do pobrania” (jak na stronie Lagur) ---------- */
.download-section { padding: 25px 0 40px; }
.download-panel {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 28px;
    background: #f0f0f0;
    text-align: left;
}
.download-panel__title { margin: 0 0 14px; font-size: 24px; line-height: 30px; font-weight: 400; color: #333; }
.download-panel__list { margin: 0; padding: 0; list-style: none; }
.download-panel__list li { margin: 0 0 10px; }
.download-panel__text { margin: 0; }
.download-panel__button { color: #1589D2; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.download-panel__button:hover,
.download-panel__button:focus { color: #0D5786; text-decoration: underline; }
.download-panel__meta { margin-left: 8px; font-size: 13px; color: #666; white-space: nowrap; }

/* ---------- Baner z wideo (strona główna) ---------- */
#headerwrap.has-video { position: relative; overflow: hidden; background: #3a0d0d url(../img/banner-poster.jpg) no-repeat center center; -webkit-background-size: cover; background-size: cover; }
#headerwrap .hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
#headerwrap.has-video::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .18); z-index: 1; pointer-events: none; }
#headerwrap.has-video > .container { position: relative; z-index: 2; }

/* ---------- Przycisk „Zapytaj o wycenę” ---------- */
.quote-btn {
    display: inline-block;
    padding: 12px 22px;
    border: 0;
    border-radius: 4px;
    background: #0D5786;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
}
.quote-btn:hover { background: #094163; color: #fff; }
.quote-fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + var(--cookiebar-h, 0px));
    z-index: 9;
    border-radius: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.quote-inline { margin: 20px 0 10px; text-align: center; }
.quote-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.quote-overlay[hidden] { display: none; }
.quote-dialog { position: relative; width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto; padding: 24px 24px 20px; background: #fff; color: #222; border-radius: 6px; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }
.quote-dialog h2 { margin: 0 40px 14px 0; font-size: 22px; line-height: 28px; color: #0D5786; }
.quote-dialog p { margin: 0 0 12px; font-size: 15px; line-height: 22px; }
.quote-dialog .quote-row { margin: 0 0 12px; }
.quote-dialog a.quote-link { display: block; padding: 10px 12px; border: 1px solid #0D5786; border-radius: 4px; color: #0D5786; font-size: 16px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.quote-dialog a.quote-link:hover { background: #0D5786; color: #fff; }
.quote-dialog .quote-mail-text { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.quote-dialog .quote-mail-text code { padding: 4px 6px; background: #f0f0f0; color: #222; font-size: 14px; overflow-wrap: anywhere; }
.quote-dialog .quote-copy { padding: 6px 12px; border: 1px solid #0D5786; border-radius: 4px; background: #fff; color: #0D5786; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.quote-dialog .quote-copy:hover { background: #0D5786; color: #fff; }
.quote-dialog .quote-status { min-height: 20px; margin: 0; font-size: 13px; color: #2a6b2a; }
.quote-dialog .quote-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; background: transparent; color: #444; font-size: 26px; line-height: 40px; cursor: pointer; }
.quote-dialog .quote-close:hover { color: #000; }

@media (max-width: 767px) {
    .menu-wrap { left: 60px; }
    .spec-table th, .spec-table td { padding: 8px 6px; font-size: 14px; line-height: 20px; }
    .spec-section h2 { font-size: 22px; line-height: 28px; }
    .download-panel { padding: 18px 16px; }
    .download-panel__title { font-size: 20px; line-height: 26px; }
    .download-panel__meta { display: block; margin: 2px 0 0; }
    #portfolio .tile-title { font-size: 15px; }
    .quote-fab { right: 12px; bottom: calc(12px + var(--cookiebar-h, 0px)); padding: 11px 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    #headerwrap .hero-video { display: none; }
}


/* <picture> wewnątrz kafelków i galerii zachowuje się jak sam obrazek */
#portfolio li a picture,
.process li picture { display: block; }

/* Telefon: napis w banerze mieści się w jednej linii (wcześniej łamany co 3–5 liter) */
@media (max-width: 767px) {
    #headerwrap h1 { font-size: 11vw; letter-spacing: 1px; margin-top: 90px; word-break: normal; overflow-wrap: normal; }
    #headerwrap .spacer { margin-top: 160px; }
}

/* Lagur: sekcje .container.lagur-section traciły boczne marginesy i przepełniały ekran telefonu o 15 px */
.lagur-page section.container.lagur-section { padding-left: 15px; padding-right: 15px; }

/* Telefon: kafelki w 2 kolumnach zamiast 3 (przy 3 kolumnach miniatury mają ok. 120 px i podpisy się nie mieszczą) */
@media (max-width: 767px) {
    .grid li { width: 50%; }
    #portfolio .tile-caption { padding: 8px 8px 10px; }
    #portfolio .tile-title { font-size: 14px; line-height: 18px; }
    #portfolio .tile-desc { font-size: 12px; line-height: 16px; }
}

/* Nagłówki zdegradowane z h1 do h2 (jeden h1 na stronę) wyglądają dokładnie jak dawny h1 */
h2.h1 { font-weight: 300; color: #333; }

/* ---------- Zgoda na cookies / treści zewnętrzne ---------- */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; background: #fff; color: #222; border-top: 3px solid #0D5786; box-shadow: 0 -4px 18px rgba(0, 0, 0, .25); }
.consent-banner__inner { max-width: 1170px; margin: 0 auto; padding: 14px 15px 16px; }
.consent-banner__text { margin: 0 0 10px; font-size: 14px; line-height: 21px; }
.consent-banner__text a { color: #0D5786; text-decoration: underline; }
.consent-banner__settings { margin: 0 0 12px; }
.consent-banner__settings[hidden], .consent-banner__save[hidden] { display: none; }
.consent-banner__settings label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 400; line-height: 20px; }
.consent-banner__settings input { margin-right: 8px; }
.consent-banner__buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.consent-banner__buttons .quote-btn { padding: 10px 18px; font-size: 14px; }
.consent-banner__link { padding: 10px 6px; border: 0; background: none; color: #0D5786; font-family: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.consent-banner a:focus-visible, .consent-banner button:focus-visible, .consent-banner input:focus-visible { outline: 3px solid #1589D2; outline-offset: 2px; }
.consent-embed { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; background: #e9e9e9; color: #333; text-align: center; }
.consent-embed p { margin: 6px 0; font-size: 15px; line-height: 22px; }
@media (max-width: 767px) { .consent-banner__inner { padding: 10px 12px 12px; } .consent-banner__text { font-size: 13px; line-height: 18px; } .consent-banner__buttons .quote-btn { flex: 1 1 auto; } }

/* ---------- Polityka prywatności ---------- */
.policy { padding: 10px 15px 40px; }
.policy p, .policy li { text-align: left; }
.policy h2 { margin: 28px 0 10px; font-size: 24px; line-height: 30px; }
.policy p, .policy li { font-size: 16px; line-height: 26px; }
.policy table { width: 100%; margin: 10px 0 20px; border-collapse: collapse; table-layout: fixed; }
.policy table th, .policy table td { text-align: left !important; padding: 8px 10px; border: 1px solid #ccc; text-align: left; vertical-align: top; overflow-wrap: anywhere; font-size: 14px; line-height: 20px; }
.policy thead th { background: #2f2f2f; color: #fff; }
.policy .todo { background: #fff3a8; padding: 0 3px; }
@media (max-width: 767px) {
    .policy table, .policy tbody, .policy tr, .policy table td { display: block; width: 100% !important; box-sizing: border-box; }
    .policy thead { position: absolute; left: -9999px; }
    .policy table colgroup { display: none; }
    .policy tr { margin: 0 0 14px; border: 1px solid #ccc; }
    .policy table td { border: 0; border-bottom: 1px solid #e3e3e3; font-size: 14px; }
    .policy table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-weight: 700; color: #0D5786; }
}


/* Sekcja pytań i odpowiedzi (FAQ) */
.faq { text-align: left; max-width: 900px; margin: 0 auto; }
.faq h2 { margin: 10px 0 14px; font-size: 28px; line-height: 34px; text-align: center; }
.faq h3 { margin: 18px 0 4px; font-size: 18px; line-height: 24px; font-weight: 700; color: #0D5786; }
.faq p { margin: 0 0 8px; text-align: left; font-size: 16px; line-height: 26px; }
h2.h3 { font-weight: 300; color: #333; }
.desc h2 { text-align: left; }

#call h2 { color: #fff; }
.process li h3 { margin: 18px 0 8px; font-size: 20px; line-height: 26px; text-align: center; }
.process li h2.h1 { margin-top: 20px; }

/* ---------- Baner strony głównej: bez napisu, logo obok przycisku menu, wysokość dopasowana do ekranu ---------- */
#headerwrap.has-video { height: clamp(340px, 58vh, 620px); min-height: 0; padding-top: 0; margin-top: -10px; }
#headerwrap.has-video > .container { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; }
#headerwrap.has-video > .container .row { height: 100%; }
#headerwrap.has-video > .container .row > div { position: static; height: 100%; }
#headerwrap.has-video .spacer { display: none; }
#headerwrap.has-video .fa-angle-down { position: absolute; left: 50%; bottom: 16px; margin-left: -9px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
#headerwrap .hero-logo { position: absolute; top: 20px; right: 72px; z-index: 5; display: block; padding: 4px 10px; background: rgba(255, 255, 255, .92); border-radius: 4px; line-height: 0; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
#headerwrap .hero-logo img { display: block; height: 32px; width: auto; }
@media (max-width: 767px) {
    #headerwrap.has-video { height: clamp(260px, 44vh, 420px); }
    #headerwrap .hero-logo { top: 20px; right: 68px; padding: 3px 8px; }
    #headerwrap .hero-logo img { height: 28px; }
}

/* ---------- Strona główna: sekcje z kafelkami ---------- */
.tile-section-head { clear: both; padding: 18px 15px 6px; text-align: center; }
.tile-section-head h2 { margin: 0 0 8px; font-size: 30px; line-height: 36px; }
.tile-section-head p { max-width: 820px; margin: 0 auto; text-align: center; font-size: 16px; line-height: 24px; }
#portfolio ul.grid { clear: both; }
#services h2 { color: #fff; margin: 0 0 12px; font-size: 28px; line-height: 34px; text-align: center; }
@media (max-width: 767px) { .tile-section-head h2 { font-size: 24px; line-height: 30px; } .tile-section-head p { font-size: 14px; line-height: 20px; } }

/* Zdjęcia zawsze w oryginalnych proporcjach (atrybuty width/height w HTML nie mogą rozciągać obrazków) */
img { height: auto; }
.walls-full { padding: 20px 0 10px; text-align: center; }
.walls-full img { display: block; width: 100%; max-width: 1170px; margin: 0 auto; height: auto; }

/* Strona zbiorcza: karty rozwiązań */
.cards { display: flex; flex-wrap: wrap; gap: 20px; margin: 10px 0 20px; }
.card-item { flex: 1 1 280px; max-width: calc(33.333% - 14px); background: #fff; padding: 0 0 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.card-item .card-img { display: block; }
.card-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card-item h3 { margin: 12px 14px 6px; font-size: 20px; line-height: 26px; }
.card-item p { margin: 0 14px 8px; font-size: 15px; line-height: 22px; text-align: left; }
.card-item .card-more { font-weight: 700; }
@media (max-width: 991px) { .card-item { max-width: calc(50% - 10px); } }
@media (max-width: 575px) { .card-item { max-width: 100%; } }


/* ---------- Kafelki strony głównej: równe wysokości (4:3), wiersze wyrównane do środka ---------- */
#portfolio ul.grid { display: flex; flex-wrap: wrap; justify-content: center; max-width: 69em; margin: 30px auto; padding: 0; height: auto !important; }
#portfolio ul.grid li { position: static !important; float: none; width: 33.333%; box-sizing: border-box; opacity: 1; transform: none; animation: none; }
#portfolio li a img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 767px) { #portfolio ul.grid li { width: 50%; } }

/* Blokada na szczury: pionowy schemat montażu nie rozciąga się na całą szerokość */
img[src*="szczur-montaz"] { width: 100%; max-width: 520px; height: auto; margin: 0 auto; }

/* Polityka prywatności: czcionka o 25% mniejsza (tylko strona polityki, klasa policy-small; inne strony z klasą .policy bez zmian) */
.policy-small h1 { font-size: 27px; }
.policy-small h2 { font-size: 18px; line-height: 23px; }
.policy-small p, .policy-small li { font-size: 12px; line-height: 20px; }
.policy-small table th, .policy-small table td { font-size: 10.5px; line-height: 15px; }
@media (max-width: 767px) {
    .policy-small table td { font-size: 10.5px; }
}

/* ---------- Audyt 2026-11-01: dostępność (WCAG 2.2 AA) i układ na wąskich ekranach ---------- */
/* Długie słowa w nagłówkach (np. „przeciwpowodziowe”) nie wychodzą poza ekran 320 px */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 400px) { h1 { -webkit-hyphens: auto; hyphens: auto; } }

/* .container w .container: wewnętrzny miał stałą szerokość (750/970 px) i przepełniał ekran 768–1199 px */
.container .container { width: auto; padding-left: 0; padding-right: 0; }

/* Zamknięte menu: linki poza ekranem nie dostają fokusu z klawiatury ani nie są czytane */
.menu:not(.menu-open) .menu-wrap { visibility: hidden; }
#menuToggle { background: rgba(0, 0, 0, .6); }
.menu .contact { cursor: pointer; }
.menu .contact:focus-visible { outline: 3px solid #5fb4ea; outline-offset: 2px; }

/* Kontrast linków: ciemniejszy niebieski na jasnym tle, jaśniejszy w ciemnej stopce (min. 4,5:1) */
a, .download-panel__button { color: #0f6cab; }
#cf a, #cf a:hover, #cf a:focus { color: #5fb4ea; }
.gray { color: #6b6b6b !important; }
/* Linki w tekście odróżnione nie tylko kolorem */
p a:not([class]), li a:not([class]), td a:not([class]) { text-decoration: underline; }
.menu a, #portfolio li a, .process li a { text-decoration: none; }

/* Zastępnik mapy/filmu w ciemnej stopce: ciemny tekst na jasnym tle (wcześniej biały na jasnoszarym) */
#cf .consent-embed, #cf .consent-embed p, #cf .consent-embed strong { color: #333; }
#cf .consent-embed a { color: #0f6cab; }

/* Widoczny fokus klawiatury na wszystkich linkach (main.css usuwa obrys: a:focus { outline: 0 }) */
a:focus-visible, summary:focus-visible, .table-scroll:focus-visible { outline: 3px solid #0f6cab; outline-offset: 2px; }
#cf a:focus-visible { outline-color: #5fb4ea; }
/* main.css: .grid li a i .process li a mają outline: 0 (wyższa specyficzność) */
.grid li a:focus-visible, .process li a:focus-visible { outline: 3px solid #0f6cab; outline-offset: 2px; }
