:root {
  --gold: #eeb10d;
  --gold-dark: #c8920a;
  --black: #000;
  --ink: #111;
  --text: #333;
  --muted: #666;
  --bg: #fff;
  --bg-alt: #f5f5f5;
  --radius: 10px;
  --max: 1180px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; overflow-x: clip; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: 0; top: -100px; }
.skip:focus { top: 10px; left: 10px; z-index: 1000; background: #fff; padding: 8px 12px; }

/* top bar */
.topbar { background: var(--gold); color: var(--black); font-size: 14px; }
.topbar .container { display: flex; justify-content: flex-end; gap: 28px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { text-decoration: underline; }
.topbar svg { width: 14px; height: 14px; fill: currentColor; }

/* header */
/* bez backdrop-filter: tworzy containing block i psuje fixed menu mobilne */
.header { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .94); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo img { width: 76px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.icons { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); display: inline-flex; align-items: center; justify-content: center; transition: transform .2s; }
.icon-btn:hover { transform: scale(1.1); }
.icon-btn svg { width: 15px; height: 15px; fill: var(--black); }
.flag img { width: 34px; border-radius: 3px; transition: transform .2s; }
.flag:hover img { transform: scale(1.1); }
.flag.active img { outline: 2px solid var(--gold); outline-offset: 2px; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 3px; background: var(--gold); margin: 5px 0; border-radius: 2px; transition: .25s; }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: #000; flex-direction: column; align-items: flex-start; padding: 100px 30px 30px; gap: 30px; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility 0s .3s; overflow-y: auto; }
  .nav.open { transform: none; visibility: visible; transition: transform .3s; box-shadow: -10px 0 40px rgba(0,0,0,.5); }
  .nav ul { flex-direction: column; gap: 18px; }
  .nav a { font-size: 18px; }
  .burger { position: relative; z-index: 60; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .topbar .container { justify-content: center; gap: 16px; }
}

/* hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: #000; }
.hero .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.06); }
.hero .slide.on { opacity: 1; animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.hero .inner { position: relative; z-index: 2; padding: 60px 20px; }
.divider { width: 70px; height: 4px; background: var(--gold); margin: 0 auto 22px; border: 0; }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 54px); }
.hero h1 span { color: var(--gold); }
.fancy { font-size: clamp(20px, 3vw, 30px); font-weight: 600; min-height: 1.5em; margin: 0 0 30px; }
.fancy b { color: var(--gold); }
.fancy b::after { content: "|"; animation: blink 1s steps(1) infinite; margin-left: 2px; color: #fff; font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }

.btn { display: inline-block; background: var(--gold); color: var(--black); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; text-decoration: none; padding: 14px 32px; border-radius: 40px; transition: background .2s, transform .2s; }
.btn:hover { background: #fff; transform: translateY(-2px); }

/* page banner */
.banner { position: relative; padding: 110px 20px 90px; text-align: center; background-size: cover; background-position: center; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.banner h1 { position: relative; z-index: 1; color: #fff; font-size: clamp(28px, 5vw, 50px); margin: 0; hyphens: auto; overflow-wrap: break-word; }
.banner .divider { position: relative; z-index: 1; }

/* sections */
.section { padding: 90px 0; }
.section-title { text-align: center; font-size: clamp(28px, 3.5vw, 40px); }
.lead { max-width: 820px; margin: 0 auto 50px; text-align: center; font-size: 17px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .cards { grid-template-columns: 1fr; } }
.cards { row-gap: 70px; }

/* kafelki uslug: zdjecie + tytul, po najechaniu/dotknieciu przenika drugie zdjecie z opisem.
   Bez 3D (preserve-3d) - w emulacji mobilnej psulo renderowanie calej strony. */
.flip { position: relative; outline: none; cursor: pointer; }
.flip-inner { position: relative; aspect-ratio: 11 / 8; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 26px rgba(0,0,0,.18); }
.flip-face { position: absolute; inset: 0; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px 24px 56px; transition: opacity .5s ease, transform .8s ease; }
.flip-front::before, .flip-back::before { content: ""; position: absolute; inset: 0; }
.flip-front::before { background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,0) 100%); }
.flip-back::before { background: rgba(0,0,0,.68); }
.flip-front { align-items: flex-end; }
.flip-front h3 { position: relative; color: #fff; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .5px; margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.flip-back { opacity: 0; transform: scale(1.08); }
.flip-back p { position: relative; color: #fff; margin: 0; font-size: 16px; line-height: 1.6; }
.flip-icon { position: absolute; left: 50%; bottom: -38px; width: 78px; height: 78px; transform: translateX(-50%); z-index: 2; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.flip.flipped .flip-back, .flip:focus-visible .flip-back { opacity: 1; transform: none; }
.flip.flipped .flip-front, .flip:focus-visible .flip-front { opacity: 0; }
.flip:focus-visible .flip-inner { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) {
  .flip:hover .flip-back { opacity: 1; transform: none; }
  .flip:hover .flip-front { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-face { transition: none; }
}
.free { text-align: center; margin: 50px 0 0; font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; color: var(--ink); }
.free span { background: var(--gold); padding: 4px 14px; border-radius: 6px; }

/* skosna gorna krawedz, lekko przezroczyste przyciemnienie (jak w oryginale) */
.why { --skew: 150px; position: relative; background-size: cover; background-position: center; background-attachment: fixed; color: #fff; clip-path: polygon(0 var(--skew), 100% 0, 100% calc(100% - var(--skew)), 0 100%); padding-top: calc(90px + var(--skew)); padding-bottom: calc(90px + var(--skew)); }
.why::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.why .container { position: relative; }
.why .section-title { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.divider { width: 124px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 124 20'%3E%3Cpath d='M2 6c7.5 0 7.5 10 15 10s7.5-10 15-10 7.5 10 15 10 7.5-10 15-10 7.5 10 15 10 7.5-10 15-10 7.5 10 15 10 7.5-10 15-10' fill='none' stroke='%23eeb10d' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } .why { background-attachment: scroll; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { text-align: center; }
.why-item img { width: 130px; margin: 12px auto 30px; border-radius: 50%; box-shadow: 0 0 0 14px rgba(238, 177, 13, .35); }
.why-item h3 { color: var(--gold); font-size: 20px; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.why-item p { margin: 0; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }

.cta { background: var(--bg-alt); text-align: center; }
.cta p { max-width: 760px; margin: 0 auto 16px; font-size: 17px; }
.cta .btn { margin-top: 16px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #eee; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.07); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 10px 18px; line-height: 1; opacity: .8; }
.lightbox button:hover { opacity: 1; color: var(--gold); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #bbb; font-size: 14px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-box { text-align: center; padding: 40px 24px; border-radius: var(--radius); background: #000; color: #fff; text-decoration: none; transition: transform .25s; display: block; }
.contact-box:hover { transform: translateY(-5px); }
.contact-box .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.contact-box .ico svg { width: 28px; height: 28px; fill: #000; }
.contact-box h3 { color: var(--gold); text-transform: uppercase; font-size: 18px; }
.contact-box p { margin: 0; font-size: 18px; word-break: break-word; }

/* legal pages */
.legal .container { max-width: 820px; }
.legal h2 { font-size: 21px; margin: 36px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { overflow-wrap: anywhere; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--gold-dark); }

/* footer */
.footer { background: #000; color: #aaa; font-size: 14px; }
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 30px; padding-bottom: 30px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: #ddd; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.to-top { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.to-top svg { width: 18px; height: 18px; fill: #000; }

/* floating chat button */
.float { position: fixed; left: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.float-btn { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: transform .2s; }
.float-btn.phone { background: var(--gold); }
.float:hover .float-btn { transform: scale(1.08); }
/* zolty dymek obok przycisku WhatsApp */
.float-label { position: relative; background: var(--gold); color: #000; font-size: 15px; font-weight: 500; padding: 6px 16px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.25); white-space: nowrap; }
.float-label::before { content: ""; position: absolute; left: -7px; top: 50%; transform: translateY(-50%); border: 7px solid transparent; border-left: 0; border-right-color: var(--gold); }
.float-btn svg { width: 30px; height: 30px; fill: #fff; }
.float-btn.phone svg { fill: #000; }

/* cookie info banner */
.cookie { position: fixed; right: 20px; bottom: 20px; z-index: 95; max-width: 400px; background: #111; color: #eee; border: 1px solid rgba(238,177,13,.5); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 1.5; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--gold); }
.cookie .btn { padding: 9px 22px; font-size: 13px; flex-shrink: 0; }
@media (max-width: 600px) {
  .cookie { left: 12px; right: 12px; bottom: 80px; max-width: none; padding: 14px; font-size: 13px; }
}

/* language splash */
.splash small a { color: #aaa; }
.splash { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; background: #000 center / cover no-repeat; color: #fff; padding: 40px 20px; }
.splash::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.splash .inner { position: relative; z-index: 1; }
.splash .logo-big { width: 180px; margin: 0 auto 26px; }
.splash h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); }
.splash p { margin: 4px 0; color: #ddd; font-size: 18px; }
.langs { display: flex; gap: 30px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.langs a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; padding: 20px 30px; border: 2px solid rgba(238,177,13,.5); border-radius: var(--radius); transition: .25s; }
.langs a:hover { border-color: var(--gold); background: rgba(238,177,13,.12); color: var(--gold); }
.langs img { width: 80px; border-radius: 4px; }
.splash small { display: block; margin-top: 50px; color: #888; }

/* phones */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .topbar { font-size: 13px; }
  .topbar .container { gap: 6px 16px; padding-top: 6px; padding-bottom: 6px; }
  .header .container { min-height: 68px; }
  .logo img { width: 58px; }
  .hero { min-height: calc(100svh - 100px); }
  .hero .inner { padding: 40px 16px; }
  .fancy { margin-bottom: 24px; }
  .btn { padding: 13px 26px; font-size: 14px; }
  .section { padding: 56px 0; }
  .lead { margin-bottom: 32px; font-size: 16px; }
  .cards { gap: 60px; }
  .flip-back p { font-size: 15px; }
  .flip-icon { width: 70px; height: 70px; bottom: -34px; }
  .why-grid { gap: 34px; margin-top: 34px; }
  .why { --skew: 50px; }
  .why-item img { width: 100px; box-shadow: 0 0 0 10px rgba(238, 177, 13, .35); }
  .banner { padding: 70px 16px 56px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery a { border-radius: 6px; }
  .lightbox button { font-size: 36px; padding: 8px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
  .lb-count { bottom: 22px; }
  .contact-box { padding: 30px 20px; }
  .contact-box p { font-size: 17px; }
  .footer .container { flex-direction: column; text-align: center; padding-bottom: 90px; }
  .footer nav { justify-content: center; }
  .float { left: 14px; bottom: 14px; gap: 12px; }
  .float-btn { width: 52px; height: 52px; }
  .float-label { font-size: 14px; padding: 5px 12px; }
  .splash .logo-big { width: 130px; }
  .langs { gap: 16px; }
  .langs a { padding: 16px 22px; }
  .langs img { width: 64px; }
}
@media (max-width: 360px) {
  .topbar a:last-child { font-size: 12px; }
}

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .slide.on { animation: none; }
}
