/* ====== STRONA PUBLICZNA ====== */
:root {
  --accent: #0f766e;        /* główny kolor – zmień tutaj */
  --accent-dark: #0b5a54;
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --soft: #f3f4f6;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }

/* nawigacja */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.08); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--ink); }
.main-nav { display: flex; gap: .25rem; }
.main-nav a { padding: .5rem .9rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.main-nav a:hover { background: var(--soft); }
.main-nav a.active { background: var(--accent); color: #fff; }
.brand-logo { width: auto; max-width: 260px; object-fit: contain; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* baner na stronie głównej (tło, efekty i ciemnienie sterowane z panelu przez zmienne --hero-*) */
.hero, .page-hero {
  position: relative; color: #fff; overflow: hidden; background: var(--hero-bg, #1f2937);
}
.hero { min-height: var(--hero-h, 480px); display: flex; align-items: center; }
.page-hero { padding: 3rem 0; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute; top: -12%; bottom: -12%; left: -3%; right: -3%;
  background: center / cover no-repeat; opacity: 0; transition: opacity 1.4s ease;
  filter: var(--hero-filter, none) blur(var(--hero-blur, 0px)); will-change: transform, opacity;
}
.hero-slide.on { opacity: var(--hero-op, 1); }
.fx-parallax .hero-slide { transform: translate3d(0, var(--py, 0px), 0); }
.fx-zoom .hero-slide.on { animation: hero-zoom 22s ease-in-out infinite alternate; }
.fx-pan .hero-slide.on { animation: hero-pan 26s ease-in-out infinite alternate; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.14); } }
@keyframes hero-pan { from { transform: scale(1.1) translateX(-2.5%); } to { transform: scale(1.1) translateX(2.5%); } }
@media (prefers-reduced-motion: reduce) {
  .fx-zoom .hero-slide.on, .fx-pan .hero-slide.on { animation: none; }
  .fx-parallax .hero-slide { transform: none; }
  .hero-slide { transition: none; }
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--hero-tint, 0 0 0) / var(--hero-dark, .45)), rgb(var(--hero-tint, 0 0 0) / calc(var(--hero-dark, .45) * .45))); }
.ov-flat .hero-overlay { background: rgb(var(--hero-tint, 0 0 0) / var(--hero-dark, .45)); }
/* obrazek w tle całej strony */
.page-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--hero-bg, #fff); pointer-events: none; }
body.has-pagebg { background: transparent; }
.hero-inner, .page-hero .wrap { position: relative; }
.hero-counter {
  position: absolute; right: 1rem; bottom: .7rem; z-index: 2; display: flex; align-items: center; gap: .35rem;
  padding: .25rem .8rem; border-radius: 999px; font-size: .8rem; color: #fff;
  background: rgb(0 0 0 / .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.hero-counter b { font-weight: 700; }
.hc-sep { opacity: .6; margin: 0 .15rem; }
.hc-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgb(34 197 94 / .6); animation: hc-pulse 2s infinite; }
@keyframes hc-pulse { 70% { box-shadow: 0 0 0 .45rem rgb(34 197 94 / 0); } 100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0); } }
@media (prefers-reduced-motion: reduce) { .hc-dot { animation: none; } }
.hero-center .hero-inner { text-align: center; }
.hero-center h1, .hero-center p { margin-left: auto; margin-right: auto; }
.hero-center .hero-cta { justify-content: center; }
.hero-box { display: inline-block; max-width: 100%; }
.has-box .hero-box {
  padding: 1.75rem 2.25rem; border-radius: 14px; border: 1px solid rgb(255 255 255 / .22);
  background: rgb(0 0 0 / var(--box-a, .45)); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; }
.hero p { font-size: 1.2rem; max-width: 52ch; margin: 0 0 1.5rem; opacity: .95; }
.page-hero h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .75rem 1.4rem; border-radius: 10px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* sekcje */
.section { padding: 3.5rem 0; }
.section.alt { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.lead { font-size: 1.15rem; max-width: 70ch; }
.empty { color: var(--muted); padding: 2rem 0; }

/* karty oferty */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); box-shadow: 0 2px 14px rgba(0,0,0,.08); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.2rem; }
.price { font-weight: 700; color: var(--accent); font-size: 1.1rem; }

/* galeria */
.grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid a { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--soft); }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.grid a:hover img { transform: scale(1.06); }
.grid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .75rem; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pager a, .pager span { padding: .45rem .85rem; border-radius: 8px; background: var(--soft); text-decoration: none; color: var(--ink); }
.pager .cur { background: var(--accent); color: #fff; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; }
.lb.on { display: flex; }
.lb figure { margin: 0; max-width: 92vw; text-align: center; color: #fff; }
.lb img { max-height: 82vh; max-width: 92vw; margin: 0 auto; border-radius: 6px; }
.lb figcaption { margin-top: .75rem; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; padding: 1rem; line-height: 1; }
.lb-x { top: 0; right: 0; } .lb-p { left: 0; top: 50%; } .lb-n { right: 0; top: 50%; }

/* tekst ze zdjęciem + filmy na stronie głównej */
.section.tight { padding-top: 0; }
.split.has-img { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split.img-left .split-img { order: -1; }
.split-img img { width: 100%; border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.split-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.videos { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* media */
.media-list { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.embed { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-item h3 { margin: .75rem 0 .25rem; font-size: 1.1rem; }
.link-card { display: block; padding: 1.5rem; border-radius: var(--radius); background: var(--soft); text-decoration: none; color: var(--ink); }
.link-card:hover { background: #e5e7eb; }
.link-card small { color: var(--muted); }

/* kontakt */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1.2fr; }
.contact-info p { margin: .3rem 0; }
.map { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.map iframe { width: 100%; height: 100%; border: 0; }
form.cf label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
form.cf input, form.cf textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
}
form.cf input:focus, form.cf textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
form.cf .hp { position: absolute; left: -9999px; }
.alert { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert.ok { background: #dcfce7; color: #166534; }
.alert.err { background: #fee2e2; color: #991b1b; }

/* stopka */
.site-footer { background: #111827; color: #d1d5db; margin-top: 2rem; font-size: .95rem; }
.site-footer a { color: #e5e7eb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding: 3rem 0 2rem; }
.foot-col strong { display: block; color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.foot-col p { margin: .35rem 0; }
.foot-img { margin: 0 0 1rem; }
.foot-img img { width: 150px; height: 150px; object-fit: contain; border-radius: 6px; }
.foot-col p + .foot-img { margin: 1rem 0 0; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin: .4rem 0; }
.foot-seo { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; padding: 1.1rem 0; border-top: 1px solid #1f2937; font-size: .88rem; }
.foot-seo-title { color: #9ca3af; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }
.foot-seo-list { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.foot-seo-list a { color: #cbd5e1; }
.copy { text-align: center; padding: 1.1rem 1rem; border-top: 1px solid #1f2937; font-size: .88rem; color: #9ca3af; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: .5rem 1rem 1rem; box-shadow: 0 8px 12px rgba(0,0,0,.1); }
  .main-nav.open { display: flex; }
  .hero { min-height: min(var(--hero-h, 480px), 420px); }
  .has-box .hero-box { padding: 1.1rem 1.1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .split.has-img { grid-template-columns: 1fr; }
  .split.img-left .split-img { order: 0; }
  .videos { grid-template-columns: 1fr; }
  .media-list { grid-template-columns: 1fr; }
}