/* Wspólny nagłówek, rozwijane menu i wyszukiwarka wszystkich stron SAP. */
:root { --sap-nav-height: 72px; --sap-green: #17613e; }
.site-header, .search-dialog { --ink: #1b211d; --muted: #525b55; --line: #dce1da; --mist: #f3f5f2; --green: #17613e; --gold: #c8a568; }
.site-header, .search-dialog { font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; font-size: 1rem; line-height: 1.5; letter-spacing: normal; }
.site-header *, .search-dialog * { box-sizing: border-box; }
.site-header a, .search-dialog a { text-decoration: none; color: inherit; }
.site-header summary { list-style: none; cursor: pointer; }
.site-header summary::marker, .site-header summary::-webkit-details-marker { display: none; content: ""; }
.site-header .icon-button svg, .search-dialog .icon-button svg { display: block; }
.site-header .button-nav { display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; border-radius: 999px; font-weight: 550; line-height: 1.2; color: #fff; }
.skip-link:not(:focus), .search-dialog .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100; top: 10px; left: 14px; padding: 10px 18px; border-radius: 24px; background: #fff; color: #111; }
.site-header :focus-visible, .search-dialog :focus-visible { outline: 3px solid #3595b4; outline-offset: 3px; }
.site-header .full-menu { position: static; }
.full-menu > summary { display: flex; }
.full-menu .menu-hide, .full-menu[open] .menu-show { display: none; }
.full-menu[open] .menu-hide { display: inline-flex; }
.full-menu[open] > summary { background: #ffffff21; }
.menu-sheet { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--sap-nav-height)); max-height: calc(100dvh - var(--sap-nav-height)); overflow-y: auto; overscroll-behavior: contain; background: #f6f7f4; color: #252c27; border-block: 1px solid #dce1da; box-shadow: 0 16px 26px #111b131f; }
.menu-columns { width: min(calc(100% - clamp(36px, 9vw, 150px)), 1280px); margin: 0 auto; padding: clamp(20px,2.2vw,34px) 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 8vw, 130px); }
.menu-columns section + section { margin-top: clamp(16px, 2vw, 30px); }
.menu-columns h2 { margin: 0 0 8px; color: #526056; font-size: .875rem; line-height: 1.4; text-align: left; text-transform: uppercase; font-weight: 620; letter-spacing: .08em; }
.menu-columns ul { list-style: none; padding: 0; margin: 0; }
.menu-columns li { margin: 0; }
.menu-columns a { display: block; width: fit-content; max-width: 100%; padding: 4px 0; color: #222c25; font-size: clamp(1rem,1.27vw,1.22rem); line-height: 1.45; }
.menu-columns a:hover, .menu-columns a[aria-current] { color: #135532; text-decoration: underline; text-underline-offset: 4px; }
.site-header .language-list { color: #1b211d; }
.search-dialog .search-results { margin: 0; }
.search-dialog .search-results [hidden] { display: none!important; }
/* Site navigation */
.site-header { position: sticky; top: 0; z-index: 20; background: #101310f5; color: #fff; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.header-inner { max-width: 1570px; margin: auto; min-height: 72px; padding: 0 clamp(18px, 3.9vw, 68px); display: flex; align-items: center; gap: clamp(22px, 3.2vw, 58px); }
.brand { flex: none; display: inline-flex; align-items: center; gap: 11px; }
.brand img { width: 47px; height: 42px; object-fit: contain; }
.brand span { font-size: 1.075rem; font-weight: 640; letter-spacing: -.04em; }
.brand strong { font-weight: 400; }
/* Zakładki: wielkie litery, wyśrodkowane między logo a narzędziami */
.desktop-nav { display: flex; align-items: center; gap: clamp(20px, 2.9vw, 46px); margin-inline: auto; }
.desktop-nav a { position: relative; color: #e1e4df; font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; padding: 26px 0; transition: color .2s; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: #fff; }
.desktop-nav a[aria-current]::after { content: ""; position: absolute; bottom: 16px; left: 0; right: .09em; height: 2px; border-radius: 2px; background: var(--gold); }
.sap-tools { flex: none; display: flex; align-items: center; gap: 10px; }
.sap-tools .button-nav { background: #0071e3; min-height: 40px; padding: .59rem 1.25rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.sap-tools .button-nav:hover { background: #0077ed; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 8px; border: 0; border-radius: 50%; color: inherit; background: transparent; }
.icon-button:hover, .language-menu summary:hover { background: #ffffff1a; }
.icon-button svg { width: 23px; height: 23px; }
.disclosure { position: relative; }
.language-menu summary { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 8px; border-radius: 20px; font-size: .8125rem; font-weight: 500; letter-spacing: .09em; min-height: 42px; }
.language-menu summary svg { width: 12px; height: 12px; }
.dropdown { z-index: 3; position: absolute; right: 0; top: calc(100% + 8px); min-width: 152px; padding: 6px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 34px #14211924; }
.dropdown a, .language-list span { display: block; padding: 9px 14px; border-radius: 9px; font-size: .98rem; }
.dropdown a:hover, .dropdown [aria-current] { background: var(--mist); color: var(--green); }
.search-dialog { width: min(610px,calc(100vw - 28px)); max-height: min(78vh,800px); max-height: min(78dvh,800px); margin: 12vh auto auto; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: white; color: var(--ink); box-shadow: 0 18px 70px #0b180e40; }
.search-dialog::backdrop { background: #0d150f80; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.dialog-head h2 { font-size: 1.8rem; }
.dialog-head button:hover { background: var(--mist); }
.search-field { display: flex; align-items: center; gap: 9px; border: 1px solid #9da99f; border-radius: 24px; padding: 0 14px; }
.search-field:focus-within { outline: 2px solid var(--sap-green); outline-offset: 1px; }
.search-field svg { width: 21px; height: 21px; flex: none; }
.search-field input { width: 100%; min-width: 0; min-height: 46px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-count { font-size: .94rem; margin: 12px 0 6px; }
.search-results { padding: 0; list-style: none; }
.search-results li + li { border-top: 1px solid var(--line); }
.search-results a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; }
.search-results a:hover { color: var(--sap-green); }
.search-results small { font-size: .875rem; color: var(--muted); text-align: right; }
@media (max-width: 1190px) {
  .header-inner { padding-inline: 24px; gap: 24px; }
  .brand span { display: none; }
}
@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .sap-tools { margin-left: auto; }
}
@media (max-width: 870px) {
  :root { --sap-nav-height: 62px; }
  .header-inner { min-height: var(--sap-nav-height); }
  .brand span { display: inline; }
  .brand img { width: 41px; height: 38px; }
}
@media (max-width: 680px) {
  .header-inner { padding: 0 12px 0 16px; gap: 6px; }
  .sap-tools { gap: 3px; }
  /* na telefonie przycisk „Zapytaj o renowację” jest ukryty w górnej listwie (zostaje w menu i na stronach) */
  .sap-tools .button-nav { display: none; }
  .brand span { display: none; }
  .menu-columns { width: calc(100% - 40px); padding-block: 22px; grid-template-columns: 1fr; gap: 23px; }
  .menu-columns a { min-height: 40px; padding: 7px 0; }
  .menu-columns section + section { margin-top: 22px; }
  .site-header .language-menu summary { padding-inline: 3px; }
}
@media (max-width: 355px) {
  .sap-tools .icon-button { width: 34px; }
  .header-inner { padding-inline: 8px; }
  .sap-tools .button-nav { padding-inline: .59rem; }
}

/* ---------- Wyszukiwarka: poprawki (pole 16 px, żeby iPhone nie powiększał strony; bez podwójnej ramki) ---------- */
.search-field input, .search-dialog .search-field input { font: inherit; font-size: 16px; line-height: 1.3; padding: 0; margin: 0; -webkit-appearance: none; appearance: none; border-radius: 0; }
.search-field input:focus, .search-field input:focus-visible, .search-dialog .search-field input:focus-visible { outline: 0; box-shadow: none; }
.search-field:focus-within { outline: 2px solid #0071e3; outline-offset: 1px; border-color: transparent; }
.search-results a span { min-width: 0; }
@media (max-width: 680px) {
  .search-dialog { width: calc(100vw - 20px); max-width: none; max-height: calc(100dvh - 20px); margin: 10px auto auto; padding: 18px 16px; border-radius: 20px; }
  .dialog-head { margin-bottom: 12px; }
  .dialog-head h2 { font-size: 1.35rem; margin: 0; }
  .search-results a { flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 2px; }
  .search-results a span { font-weight: 600; }
  .search-results small { text-align: left; }
}

/* ikona „Zapytaj o renowację” w listwie – tylko na telefonie, gdzie niebieski przycisk jest ukryty */
.sap-tools .quote-icon { display: none; }
@media (max-width: 680px) { .sap-tools .quote-icon { display: inline-flex; color: #fff; background: #0071e3; width: 36px; height: 36px; margin: 0 4px 0 2px; } .sap-tools .quote-icon:hover { background: #0077ed; } .sap-tools .quote-icon svg { width: 20px; height: 20px; } }

/* telefon trzymany poziomo: tak samo jak w pionie – koperta zamiast przycisku „Zapytaj o renowację” */
@media (orientation: landscape) and (max-height: 520px) {
  .sap-tools .button-nav { display: none; }
  .sap-tools .quote-icon { display: inline-flex; color: #fff; background: #0071e3; width: 36px; height: 36px; margin: 0 4px 0 2px; }
  .sap-tools .quote-icon:hover { background: #0077ed; }
  .sap-tools .quote-icon svg { width: 20px; height: 20px; }
}

/* szara listwa „MENU” na górze rozwiniętego menu (jak na starej stronie) */
.menu-sheet::before { content: "MENU"; position: sticky; top: 0; z-index: 1; display: flex; align-items: center; min-height: 40px; padding: 0 clamp(18px, 4.5vw, 75px); background: linear-gradient(180deg, #e2e2e4 0%, #9a9a9e 45%, #4a4a4e 100%); color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.menu-sheet::after { content: ""; position: absolute; z-index: 2; top: 16px; right: clamp(18px, 4.5vw, 75px); border: 5px solid transparent; border-top: 0; border-bottom: 7px solid #fff; }
.menu-sheet { border-top: 0; }
