/* Szablon strony – style strony publicznej */
:root {
  --orange: #e8501c;
  --orange-dark: #c93f10;
  --ink: #232323;
  --muted: #5d5d5d;
  --line: #e4dfd8;
  --paper: #f7f5f2;
  --white: #fff;
  --green: #5cba3c;
  --blue: #1b63b8;
  --radius: 6px;
  --wrap: 1180px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-underline-offset: .15em; }
a:hover { color: var(--orange); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.2vw + .6rem, 2.7rem); }
h2 { font-size: clamp(1.4rem, 1.6vw + .8rem, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #000; color: #fff; padding: 8px 14px; }
:focus-visible { outline: 3px solid #1b63b8; outline-offset: 2px; }

/* ---------- nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { font-size: 1.75rem; font-weight: 600; color: var(--orange); text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--orange-dark); }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav > ul > li { position: relative; }
.nav a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-size: 1rem; border-radius: var(--radius); }
.nav a:hover, .nav li.active > a { color: var(--orange); }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sub { position: absolute; left: 0; top: 100%; min-width: 250px; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 14px 30px rgba(0,0,0,.12); padding: 8px 0 !important; display: none !important; flex-direction: column; align-items: stretch !important; gap: 0 !important; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: flex !important; }
.sub a { padding: 9px 20px; font-size: .96rem; }
.sub-toggle, .burger { display: none; }
.head-phone { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; }
.head-phone:hover { border-color: var(--orange); color: var(--orange); }
.head-login { font-weight: 600; color: #fff; background: var(--ink); text-decoration: none; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: .9rem; margin-left: 8px; }
.head-login:hover { background: var(--orange); }

/* ---------- przyciski ---------- */
.btn { display: inline-block; background: var(--orange); color: #fff !important; padding: 11px 24px; border-radius: var(--radius); text-decoration: none; font-weight: 600; border: 2px solid var(--orange); cursor: pointer; font: inherit; font-weight: 600; line-height: 1.3; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-green { background: var(--green); border-color: var(--green); text-transform: uppercase; font-size: .9rem; letter-spacing: .02em; padding: 10px 28px; }
.btn-green:hover { background: #4aa22d; border-color: #4aa22d; }
.btn-light { background: #fff; color: var(--orange-dark) !important; border-color: #fff; }
.btn-light:hover { background: #fff3ee; border-color: #fff3ee; }
.btn-ghost { background: transparent; color: var(--orange-dark) !important; }
.btn-ghost:hover { background: #fff3ee; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.8); }
.btn-ghost-light:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ---------- slider ---------- */
.hero { position: relative; background: #222; overflow: hidden; }
.slides { position: relative; height: clamp(440px, 62vh, 640px); }
.hero[data-height="low"] .slides { height: clamp(320px, 44vh, 440px); }
.hero[data-height="high"] .slides { height: clamp(520px, 74vh, 760px); }
.hero[data-height="full"] .slides { height: clamp(560px, 88vh, 900px); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; display: flex; align-items: flex-end; overflow: hidden; }
.slide-bg { position: absolute; inset: 0; background: center/cover no-repeat; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,var(--sl-overlay, .45))); }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-in { position: relative; z-index: 2; padding-bottom: 54px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.slide-box { position: relative; display: flex; flex-direction: column; align-items: inherit; gap: 16px; max-width: 100%; }
.slide-text { max-width: 500px; margin: 0; padding: 16px 18px; background: var(--sl-tx-bg, rgba(0,0,0,.62)); border: 2px solid #2d5f9a; color: var(--sl-tx-fg, #fff); font: 600 .95rem/1.55 Roboto, var(--font); text-align: justify; }
.slide-h1 { margin: 0; max-width: 100%; padding: 12px 22px; background: var(--sl-h1-bg, rgba(27,99,184,.82)); color: var(--sl-h1-fg, #eef2fb); font-size: clamp(1.5rem, 3.6vw, 3.1rem); text-transform: uppercase; letter-spacing: -.01em; }
.slide-h2 { margin: -6px 0 0; padding: 8px 22px; background: var(--sl-h2-bg, rgba(27,99,184,.55)); color: var(--sl-h2-fg, #cfe6ff); font-weight: 700; font-size: clamp(1rem, 2vw, 1.7rem); text-transform: uppercase; }
/* rozmiar i wielkość liter */
.hero[data-size="s"] .slide-h1 { font-size: clamp(1.2rem, 2.6vw, 2.2rem); } .hero[data-size="s"] .slide-h2 { font-size: clamp(.9rem, 1.5vw, 1.2rem); }
.hero[data-size="l"] .slide-h1 { font-size: clamp(1.8rem, 5vw, 4.2rem); } .hero[data-size="l"] .slide-h2 { font-size: clamp(1.1rem, 2.6vw, 2.2rem); }
.hero[data-case="keep"] .slide-h1, .hero[data-case="keep"] .slide-h2 { text-transform: none; }
/* położenie tekstu */
.hero[data-v="center"] .slide { align-items: center; } .hero[data-v="center"] .slide-in { padding-bottom: 0; }
.hero[data-v="top"] .slide { align-items: flex-start; } .hero[data-v="top"] .slide-in { padding: 44px 0 0; }
.hero[data-h="center"] .slide-in { align-items: center; text-align: center; } .hero[data-h="right"] .slide-in { align-items: flex-end; text-align: right; }
.hero[data-h="center"] .slide-text, .hero[data-h="right"] .slide-text { text-align: inherit; }
/* style tekstu: przezroczyste tło / tabela / pasek na całą szerokość */
.hero[data-style="clear"] .slide-text, .hero[data-style="clear"] .slide-h1, .hero[data-style="clear"] .slide-h2,
.hero[data-style="box"] .slide-text, .hero[data-style="box"] .slide-h1, .hero[data-style="box"] .slide-h2,
.hero[data-style="bar"] .slide-text, .hero[data-style="bar"] .slide-h1, .hero[data-style="bar"] .slide-h2 { background: transparent; border: 0; padding-left: 0; padding-right: 0; }
.hero[data-style="clear"] .slide-h1, .hero[data-style="clear"] .slide-h2, .hero[data-style="clear"] .slide-text { text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 0 3px rgba(0,0,0,.6); }
.hero[data-style="clear"] .slide-h1 { color: var(--sl-h1-fg, #fff); } .hero[data-style="clear"] .slide-h2 { color: var(--sl-h2-fg, #fff); }
.hero[data-style="box"] .slide-h1 { color: var(--sl-h1-fg, #fff); } .hero[data-style="box"] .slide-h2 { color: var(--sl-h2-fg, #e8f1ff); }
.hero[data-style="bar"] .slide-h1 { color: var(--sl-h1-fg, #fff); } .hero[data-style="bar"] .slide-h2 { color: var(--sl-h2-fg, #e8f1ff); }
.hero[data-style="box"] .slide-box { padding: 22px 28px; background: var(--sl-panel, rgba(0,0,0,.5)); border-radius: 8px; backdrop-filter: blur(2px); }
.hero[data-style="bar"] .slide-box { width: 100%; padding: 20px 0; }
.hero[data-style="bar"] .slide-box::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -100vw; right: -100vw; background: var(--sl-panel, rgba(0,0,0,.5)); }
.hero[data-style="bar"] .slide-box > * { position: relative; }
.hero[data-style="bar"][data-v="bottom"] .slide-in { padding-bottom: 46px; }
/* efekty przejścia */
.hero[data-fx="slide"] .slide { opacity: 1; visibility: hidden; transform: translateX(100%); transition: transform .8s ease, visibility 0s .8s; }
.hero[data-fx="slide"] .slide.is-before { transform: translateX(-100%); }
.hero[data-fx="slide"] .slide.is-active { visibility: visible; transform: none; transition: transform .8s ease, visibility 0s; }
.hero[data-fx="zoom"] .slide-bg { transform: scale(1.18); transition: transform 1.4s ease; }
.hero[data-fx="zoom"] .slide.is-active .slide-bg { transform: none; }
.hero[data-fx="kenburns"] .slide.is-active .slide-bg { animation: slKen 9s ease-out both; }
@keyframes slKen { from { transform: scale(1); } to { transform: scale(1.12); } }
/* animacja tekstu */
.hero[data-anim="up"] .slide.is-active .slide-box, .hero[data-anim="up"] .slide.is-active .sl-btn { animation: slUp .8s .25s ease-out both; }
.hero[data-anim="left"] .slide.is-active .slide-box, .hero[data-anim="left"] .slide.is-active .sl-btn { animation: slLeft .8s .25s ease-out both; }
.hero[data-anim="fade"] .slide.is-active .slide-box, .hero[data-anim="fade"] .slide.is-active .sl-btn { animation: slFade 1s .3s ease-out both; }
@keyframes slUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes slLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes slFade { from { opacity: 0; } to { opacity: 1; } }
.sl-prev, .sl-next { position: absolute; top: 50%; z-index: 3; width: 48px; height: 64px; margin-top: -32px; border: 0; background: transparent; cursor: pointer; }
.sl-prev { left: 10px; } .sl-next { right: 10px; }
.sl-prev span, .sl-next span { display: block; width: 22px; height: 22px; margin: auto; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(45deg); filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.sl-next span { transform: rotate(-135deg); }
.sl-prev:hover span, .sl-next:hover span { border-color: var(--orange); }
.dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; gap: 10px; justify-content: center; }
.dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.dots button.on { background: #fff; }

/* ---------- komunikat ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; justify-content: center; background: #fdebe4; border-bottom: 1px solid #f5c9b8; color: #b3270a; padding: 12px 20px; text-align: center; font-size: 1.05rem; font-weight: 600; }
.notice-ok { background: #e7f5e4; border-bottom-color: #b7dcae; color: #1d6a12; }
.notice-info { background: #fff1de; border-bottom-color: #f6d19b; color: #9a5300; }
.notice-warn { background: #fdebe4; border-bottom-color: #f5c9b8; color: #b3270a; }
.notice p { margin: 0; max-width: 980px; }
.notice button { background: none; border: 0; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }

/* ---------- karty na Home ---------- */
.cards-sec { padding-top: 44px; padding-bottom: 20px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { display: grid; grid-template-columns: 42% 1fr; background: var(--paper); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.card-img { display: block; min-height: 280px; position: relative; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; }
.card-body h2 { font-size: 1.55rem; text-align: center; }
.card-body h2 a { color: var(--ink); text-decoration: none; }
.card-body h2 a:hover { color: var(--orange); }
.card-body p { color: #333; font-size: .98rem; text-align: left; flex: 1; }
.card-body .btn { align-self: flex-start; padding: 8px 20px; }

.motto { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 36px; text-align: center; padding: 44px 0; }
.motto p { margin: 0; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; }
.words { color: var(--blue); display: inline-block; min-width: 4ch; border-bottom: 4px solid rgba(27,99,184,.25); transition: opacity .35s; }
.words.fade { opacity: 0; }

.brands { padding-top: 48px; padding-bottom: 48px; text-align: center; }
.brands h2 { font-size: 1.2rem; color: var(--muted); font-weight: 600; }
.brands ul { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px 44px; justify-content: center; align-items: center; }
.brands img { height: 46px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.brands img:hover { filter: none; opacity: 1; }

/* ---------- strony treści ---------- */
.crumbs { padding-top: 18px; padding-bottom: 6px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page, .contact, section.wrap > h1 { padding-bottom: 16px; }
.page-grid { display: grid; gap: 36px; align-items: start; }
.page.has-img .page-grid { grid-template-columns: minmax(280px, 40%) 1fr; }
.page-img { margin: 0; position: sticky; top: 90px; }
.page-img img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; color: #111; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.page-plain { padding-top: 60px; padding-bottom: 60px; }
.lead { color: var(--muted); font-size: 1.1rem; }
.page-gal { margin-top: 54px; }

/* kafelki: co robimy / galeria */
.tiles { list-style: none; margin: 24px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.tile a { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: #ddd; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile a:hover img { transform: scale(1.05); }
.tile-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; color: #fff; font-weight: 700; font-size: 1.15rem; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.tile p { margin: 10px 2px 0; color: var(--muted); font-size: .95rem; }

/* galeria */
.chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: block; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .95rem; background: #fff; }
.chips a:hover { border-color: var(--orange); color: var(--orange); }
.chips a.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #e8e4de; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.grid a:hover img { transform: scale(1.06); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 30px; }
.pager a, .pager span { min-width: 40px; text-align: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pager .on { background: var(--orange); color: #fff; border-color: var(--orange); }

.lb { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 94vw; max-height: 88vh; object-fit: contain; box-shadow: 0 0 40px rgba(0,0,0,.6); }
.lb button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.lb button:hover { background: rgba(255,255,255,.28); }
.lb .x { top: 16px; right: 16px; } .lb .p { left: 14px; top: 50%; margin-top: -24px; } .lb .n { right: 14px; top: 50%; margin-top: -24px; }
.lb .c { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .9rem; }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin-top: 22px; }
.contact-card p:last-child { margin-bottom: 0; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; box-shadow: 0 8px 26px rgba(0,0,0,.06); }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; font-weight: 400; border: 1px solid #c9c3ba; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { border-color: var(--orange); outline: 0; box-shadow: 0 0 0 3px rgba(232,80,28,.2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.small { font-size: .85rem; color: var(--muted); }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert p { margin: 0; }
.alert.ok { background: #e6f4e1; color: #1f5a10; border: 1px solid #b9dcae; }
.alert.err { background: #fdeceb; color: #8e1d12; border: 1px solid #f0bdb8; }

/* ---------- CTA i stopka ---------- */
.cta { background: var(--orange); color: #fff; margin-top: 56px; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-top: 34px; padding-bottom: 34px; }
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { background: #222; color: #cfcfcf; font-size: .96rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb59a; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: .8em; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-top: 44px; padding-bottom: 30px; }
address { font-style: normal; line-height: 1.8; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin-bottom: 6px; }
.foot-links { border-top: 1px solid #3a3a3a; padding-top: 18px; padding-bottom: 26px; text-align: center; font-size: .9rem; }
.foot-links p { margin: 0 0 10px; }
.foot-tags { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.foot-tags li a { display: block; padding: 4px 12px; border: 1px solid #4a4a4a; border-radius: 999px; background: #2c2c2c; color: #d8d8d8; font-size: .85rem; text-decoration: none; }
.foot-tags li a:hover, .foot-tags li a:focus-visible { border-color: var(--orange); color: #fff; }
.seo-links { margin-top: 4px; }
.foot-banner img { margin: 0 auto; max-width: 100%; height: auto; }
.copy { color: #8d8d8d; }

/* ---------- responsywność ---------- */
@media (max-width: 1020px) {
  .head-phone { display: none; }
  .head-login { padding: 6px 11px; font-size: .85rem; }
  .burger { display: flex; margin-left: auto; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 11px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
  .burger span { display: block; height: 2px; background: var(--ink); transition: .2s; }
  .burger[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(0,0,0,.12); display: none; max-height: calc(100vh - 68px); overflow: auto; margin: 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px 14px; }
  .nav a { padding: 12px 10px; }
  .nav li { position: relative; }
  .has-sub > a::after { display: none; }
  .has-sub > a { padding-right: 56px; }
  .sub-toggle { display: block; position: absolute; right: 0; top: 2px; width: 48px; height: 44px; background: none; border: 0; cursor: pointer; }
  .sub-toggle::after { content: ""; display: block; width: 9px; height: 9px; margin: 0 auto 4px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: .2s; }
  .has-sub.open > .sub-toggle::after { transform: rotate(-135deg); margin-bottom: -2px; }
  .sub { position: static; min-width: 0; box-shadow: none; border: 0; border-left: 3px solid var(--line); margin-left: 10px; border-radius: 0; padding: 0 !important; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none !important; }
  .has-sub.open > .sub { display: flex !important; }
  .cards { grid-template-columns: 1fr; }
  .page.has-img .page-grid { grid-template-columns: 1fr; }
  .page-img { position: static; max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .brand { font-size: 1.5rem; }
  .card { grid-template-columns: 1fr; }
  .card-img { min-height: 0; aspect-ratio: 16/10; }
  .cols { grid-template-columns: 1fr; gap: 26px; }
  .two { grid-template-columns: 1fr; }
  .slides { height: 520px; }
  .slide-text { font-size: .85rem; padding: 12px 14px; }
  .hero[data-style="box"] .slide-box { padding: 14px 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .sl-prev, .sl-next { width: 36px; }
  .notice { font-size: .95rem; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .slide-bg, .slide-box, .sl-btn { animation: none !important; }
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .hero, .cta, .site-footer, .notice { display: none; }
}

/* mapa strony */
.sitemap { list-style: none; padding: 0; margin: 20px 0; }
.sitemap ul { list-style: none; padding-left: 1.4em; margin: .3em 0 .6em; border-left: 3px solid var(--line); }
.sitemap li { margin: .35em 0; }

/* ---------- panel właściciela na stronie publicznej ---------- */
.head-menu { position: relative; margin-left: 8px; }
.head-menu summary { list-style: none; cursor: pointer; margin-left: 0; }
.head-menu summary::-webkit-details-marker { display: none; }
.head-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 270px; white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.16); padding: 8px; z-index: 80; display: flex; flex-direction: column; }
.head-pop .who { margin: 4px 8px 8px; color: #555; font-size: .9rem; }
.head-pop a, .head-pop button { display: block; text-align: left; padding: 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; width: 100%; }
.head-pop a:hover, .head-pop button:hover { background: #f5f1ec; color: var(--orange); }
.head-pop form { margin: 0; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.owner-sec { background: #eef6ec; border-bottom: 1px solid #c9e0c3; padding: 14px 0 18px; }
.owner-sec summary { font-size: 1.15rem; font-weight: 700; cursor: pointer; padding: 6px 0; }
.owner-sec summary small { font-weight: 400; color: #555; font-size: .85rem; }
.owner-sec .hint { margin: 6px 0 12px; }
.owner-sec .alert { padding: 10px 14px; border-radius: 8px; margin: 8px 0; }
.owner-sec .alert.ok { background: #d9efd3; color: #1d5a10; }
.owner-sec .alert.err { background: #fdeceb; color: #8e1d12; }
.owner-bar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; background: #fff; border: 1px solid #c9e0c3; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.owner-bar select { padding: 8px; font-size: 1rem; }
.owner-go { background: #1f8a2d; border-color: #1f8a2d; color: #fff; font-size: 1.05rem; padding: 12px 20px; }
.owner-go:hover { background: #17701f; }
.owner-go:disabled { opacity: .7; cursor: wait; }
.owner-bar .cnt { font-weight: 600; }
.owner-thumbs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.owner-thumbs li { position: relative; background: #fff; border: 3px solid transparent; border-radius: 10px; overflow: hidden; }
.owner-thumbs li.on { border-color: #1f8a2d; }
.owner-thumbs li.done img { opacity: .4; }
.owner-thumbs label { display: block; cursor: pointer; }
.owner-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.owner-thumbs input { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; accent-color: #1f8a2d; }
.owner-thumbs .tick { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-weight: 700; color: #1d5a10; }
.owner-thumbs small { display: block; text-align: center; padding: 3px; color: #555; }
.owner-pager { display: flex; gap: 10px; flex-wrap: wrap; }
.owner-pager a { padding: 10px 16px; background: #fff; border: 1px solid #c9e0c3; border-radius: 8px; text-decoration: none; font-weight: 600; }

/* logo w nagłówku (ustawienie „logo”) */
.brand-logo { height: 40px; width: auto; max-width: 260px; object-fit: contain; display: block; }
/* logotypy z linkiem w sekcji „brands” */
.brands li a { display: block; }

/* ciemny nagłówek (dla jasnego logo) */
.site-header.dark { background: rgba(38,38,40,.97); border-bottom-color: #111; }
.site-header.dark .nav > ul > li > a { color: #fff; }
.site-header.dark .nav > ul > li > a:hover, .site-header.dark .nav > ul > li.active > a { color: var(--orange); }
.site-header.dark .head-phone { color: #fff; border-color: rgba(255,255,255,.35); }
.site-header.dark .head-phone:hover { color: var(--orange); border-color: var(--orange); }
.site-header.dark .head-login { background: var(--orange); }
.site-header.dark .head-login:hover { background: var(--orange-dark); }
.site-header.dark .burger { border-color: rgba(255,255,255,.4); }
.site-header.dark .burger span { background: #fff; }
@media (max-width: 1020px) {
  .site-header.dark .nav { background: #262628; border-bottom-color: #111; }
  .site-header.dark .nav a { color: #fff; }
  .site-header.dark .nav a:hover, .site-header.dark .nav li.active > a { color: var(--orange); }
}

/* własne kolory menu (Ustawienia → Menu i logo) */
.site-header.custom { background: var(--hd-bg); }
.site-header.custom .nav > ul > li > a, .site-header.custom .head-phone { color: var(--hd-fg); }
.site-header.custom .head-phone { border-color: color-mix(in srgb, var(--hd-fg) 35%, transparent); }
.site-header.custom .burger { border-color: color-mix(in srgb, var(--hd-fg) 40%, transparent); }
.site-header.custom .burger span { background: var(--hd-fg); }
.site-header.custom .nav > ul > li > a:hover, .site-header.custom .nav > ul > li.active > a, .site-header.custom .head-phone:hover { color: var(--hd-hv, var(--orange)); }
.site-header.custom .head-phone:hover { border-color: var(--hd-hv, var(--orange)); }
@media (max-width: 1020px) {
  .site-header.custom .nav { background: var(--hd-bg); }
  .site-header.custom .nav a { color: var(--hd-fg); }
  .site-header.custom .nav a:hover, .site-header.custom .nav li.active > a { color: var(--hd-hv, var(--orange)); }
}

/* karty na stronie głównej: prostokątne zdjęcia z opisem na przezroczystym tle (cards_style = photo).
   Układ jest skalowany względem szerokości samej karty (container queries), więc wygląda tak samo na każdej rozdzielczości. */
.cards-photo { gap: min(var(--cg, 20px), 3vw); margin-left: min(var(--cm, 48px), 8vw); margin-right: min(var(--cm, 48px), 8vw); }
.card-photo { display: block; border: 0; border-radius: 8px; background: #ddd; container-type: inline-size; overflow: hidden; }
.card-photo > a { position: relative; display: block; aspect-ratio: 2/1; overflow: hidden; color: #fff; text-decoration: none; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-photo > a:hover img, .card-photo > a:focus-visible img { transform: scale(1.04); }
.card-over { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 1.2cqw; padding: 2.4cqw 3cqw 2.6cqw; background: rgba(0,0,0,.52); text-align: center; backdrop-filter: blur(1px); transition: background .25s; }
.card-over strong { font-size: clamp(.66rem, 3.3cqw, 1.1rem); line-height: 1.25; text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 1px 4px rgba(0,0,0,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-txt { font-size: clamp(.68rem, 2.7cqw, .92rem); line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .card-photo > a:hover .card-txt, .card-photo > a:focus-visible .card-txt { -webkit-line-clamp: unset; display: block; } .card-photo > a:hover .card-over { background: rgba(0,0,0,.7); } }
@media (max-width: 1020px) { .cards.cards-photo { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards.cards-photo { grid-template-columns: 1fr; } .card-photo > a { aspect-ratio: 16/9; } }

/* tło strony (Ustawienia → Tło strony) */
.site-bg { position: fixed; inset: 0; z-index: -1; background: center / cover no-repeat; pointer-events: none; will-change: transform; }
.site-bg[data-effect="parallax"] { top: -12%; bottom: -12%; }
.site-bg[data-effect="zoom"] { animation: bgZoom 36s ease-in-out infinite alternate; }
.site-bg[data-effect="drift"] { inset: -8%; animation: bgDrift 60s ease-in-out infinite alternate; }
body.bg-scroll { position: relative; }
body.bg-scroll .site-bg { position: absolute; }
@keyframes bgZoom { from { transform: scale(1); } to { transform: scale(1.18); } }
@keyframes bgDrift { from { transform: translate(-3%, -2%) scale(1.05); } to { transform: translate(3%, 2%) scale(1.05); } }
body.has-bg { background: transparent; }
@media (prefers-reduced-motion: reduce) { .site-bg { animation: none !important; } }
@media print { .site-bg { display: none; } }

/* baner informacyjny pod sliderem (Ustawienia → Baner informacyjny) */
.infobar { position: relative; background: #2a2d30 center / cover no-repeat; color: #fff; text-align: center; padding: var(--ib-pad, 40px) 0; isolation: isolate; }
.infobar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(33,37,41,var(--ib-ov, .7)); }
.ib-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ib-notice { margin: 0; background: transparent; border: 0; padding: 0; font-weight: 600; font-size: .98rem; color: #9fd0ff; letter-spacing: .02em; }
.ib-notice.notice-warn { color: #ffb4a0; } .ib-notice.notice-ok { color: #a6e59b; } .ib-notice.notice-info { color: #ffd596; }
.ib-logo { width: min(var(--ib-w, 469px), 92%); height: auto; margin: 0 auto; }
.ib-title { margin: 0; color: #fff; font-size: clamp(1.4rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: .02em; }
.ib-text { margin: 0; color: #e4e4e4; font-size: 1.1rem; }
.infobar .owner-sec { width: 100%; max-width: 1000px; margin-top: 18px; background: rgba(255,255,255,.94); border: 1px solid rgba(0,0,0,.15); border-radius: 10px; padding: 10px 18px 16px; text-align: left; color: var(--ink); }
.infobar .owner-sec .wrap { padding: 0; max-width: none; }
.cards-head { text-align: center; margin: 0 0 26px; }
.cards-head h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 2vw + .8rem, 2rem); letter-spacing: .02em; }
.cards-head p { margin: 0; color: var(--muted, #666); text-transform: lowercase; letter-spacing: .04em; }
