:root {
  --blue: #007cbc;
  --blue-d: #005f91;
  --blue-l: #e8f4fb;
  --navy: #0e2233;
  --ink: #1b2a36;
  --muted: #5b6b78;
  --line: #e3e9ee;
  --bg-alt: #f5f8fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 34, 51, .06), 0 10px 30px rgba(14, 34, 51, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; color: var(--navy); letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; flex: none; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #ffb300; outline-offset: 2px; border-radius: 4px; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; border-radius: 999px; padding: .8em 1.4em; border: 2px solid var(--blue); transition: background .15s, transform .1s, box-shadow .15s; box-shadow: 0 6px 18px rgba(0, 124, 188, .3); }
.btn:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 1.1rem; padding: .95em 1.6em; }
.btn-sm { padding: .5em 1em; font-size: .95rem; box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); box-shadow: none; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Naglowek */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(14, 34, 51, .06); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { width: 190px; height: auto; }
.nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav ul a:not(.btn):hover { color: var(--blue); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; color: #fff; min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 28, 43, .92) 0%, rgba(10, 28, 43, .78) 45%, rgba(10, 28, 43, .25) 100%); }
.hero-in { position: relative; z-index: 1; padding: 72px 0; max-width: 1160px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 34em; color: #dbe7ef; }
.hero .lead strong { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--blue); margin-bottom: .8em; }
.hero .eyebrow { color: #7cc8ef; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; color: #dbe7ef; font-weight: 600; font-size: .98rem; }
.hero-facts li { display: flex; align-items: center; gap: .5em; }
.hero-facts svg { color: #7cc8ef; }

/* Sekcje */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head p:last-child { color: var(--muted); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card svg { width: 48px; height: 48px; color: var(--blue); background: var(--blue-l); border-radius: 12px; padding: 10px; margin-bottom: 16px; }
.card p { color: var(--muted); margin: 0; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: #dde5ea; }
.gallery a:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after { content: "+"; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 22px; line-height: 34px; text-align: center; opacity: 0; transform: scale(.8); transition: .2s; }
.gallery a:hover::after { opacity: 1; transform: none; }

/* O nas */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about-text p { color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.steps { background: var(--navy); color: #dbe7ef; border-radius: 20px; padding: 34px 32px; box-shadow: var(--shadow); }
.steps h3 { color: #fff; font-size: 1.35rem; margin-bottom: 22px; }
.steps ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.steps b { color: #fff; }
.steps span { font-size: .97rem; }

/* Kontakt */
.contact { background: linear-gradient(135deg, var(--navy) 0%, #12344d 100%); color: #dbe7ef; }
.sec-head-light h2 { color: #fff; }
.sec-head-light .eyebrow { color: #7cc8ef; }
.sec-head-light p:last-child { color: #c4d4df; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
.contact-card:hover { background: var(--blue); transform: translateY(-3px); }
.contact-card svg { width: 30px; height: 30px; color: #7cc8ef; margin-bottom: 8px; }
.contact-card:hover svg { color: #fff; }
.cc-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #a9bfcd; font-weight: 700; }
.contact-card:hover .cc-label { color: #e0f1fb; }
.cc-value { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 800; word-break: break-word; }
.area { display: flex; align-items: center; gap: .5em; margin: 30px 0 0; font-weight: 600; color: #c4d4df; }
.area svg { color: #7cc8ef; }

.foot { background: #081722; color: #8ea3b1; padding: 34px 0 40px; font-size: .95rem; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot a { color: #c4d4df; text-decoration: none; }
.foot-logo { width: 150px; filter: brightness(0) invert(1); opacity: .8; }

/* Pasek dzwonienia (telefon) */
.callbar { display: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(5, 14, 22, .94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: min(92vw, 1100px); max-height: 88vh; text-align: center; }
.lb img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb figcaption { color: #c4d4df; margin-top: 12px; font-size: .95rem; }
.lb button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 32px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .contact-card:last-child { grid-column: span 2; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .top-in { height: 64px; }
  .brand img { width: 160px; }
  .nav-toggle { display: block; }
  .nav ul { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(14, 34, 51, .1); padding: 8px 20px 18px; display: none; }
  .nav ul.open { display: flex; }
  .nav ul a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-cta { margin-top: 14px; }
  .nav-cta .btn { width: 100%; padding: .9em; font-size: 1.05rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: auto; }
  .hero::after { background: linear-gradient(180deg, rgba(10, 28, 43, .75) 0%, rgba(10, 28, 43, .92) 100%); }
  .hero-in { padding: 56px 0 48px; }
  .hero-cta .btn { width: 100%; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 22px; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
  .card svg { grid-row: span 2; margin: 0; }
  .card h3 { margin-bottom: .25em; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery a:nth-child(7n+1) { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .contact-card:last-child { grid-column: auto; }
  .steps { padding: 26px 22px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .callbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; align-items: center; justify-content: center; gap: .6em; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none; padding: 15px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 60, 95, .45); }
  .callbar svg { width: 1.3em; height: 1.3em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
