:root {
  --brand-blue: #35afea;
  --brand-blue-dark: #168bc5;
  --ink: #111514;
  --muted: #5b6468;
  --paper: #f7fbfd;
  --line: #d8e9f2;
  --panel: #ffffff;
  --accent: #ffc93c;
  --success: #22a36f;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(13, 43, 57, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 82px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ring-heartbeat {
  0%,
  72%,
  100% {
    opacity: 0.45;
    scale: 1;
  }

  16% {
    opacity: 1;
    scale: 1.085;
  }

  30% {
    opacity: 0.6;
    scale: 0.97;
  }

  44% {
    opacity: 0.95;
    scale: 1.055;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(17, 21, 20, 0.08);
  background: rgba(247, 251, 253, 0.92);
  backdrop-filter: blur(16px);
  transform: translateY(0);
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1), opacity 220ms ease;
  will-change: transform;
  /* iOS standalone PWA + Safari edge-to-edge: keep nav content clear of the notch / Dynamic Island. */
  padding-top: env(safe-area-inset-top);
}

.site-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  /* Landscape on iPhone: the notch sits on the left; keep nav content clear of it on both sides. */
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-blue);
}

.brand span {
  display: block;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: #263033;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #e4f6ff;
  color: #072536;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--brand-blue);
  color: #071417;
  box-shadow: 0 14px 30px rgba(53, 175, 234, 0.32);
}

.button.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #eef8fc;
}

.hero-home {
  min-height: calc(100vh - 82px);
  align-items: stretch;
  overflow: hidden;
  background: #111514;
}

.hero-inner,
.section-inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 22px;
}

.hero-home .hero-inner {
  max-width: none;
  padding: 0;
}

.hero-grid {
  position: relative;
  min-height: calc(100vh - 82px);
  padding: 0;
}

.hero-copy {
  position: absolute;
  top: 36px;
  left: 22px;
  right: 22px;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02) 44%, rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 24px 70px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(53, 175, 234, 0.08);
  animation: fade-up 520ms ease both;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02) 32%, transparent 58%),
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.06), transparent 36%);
  opacity: 0.45;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .lead {
  color: #f4fbff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

.hero-copy .eyebrow {
  color: #b9e6fb;
  font-weight: 1000;
}

.hero-copy h1 {
  font-weight: 1000;
}

.hero-copy .lead {
  color: #cfe6ef;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 12px;
  color: #173944;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: 5.8rem;
}

h2 {
  font-size: 3.4rem;
}

h3 {
  font-size: 1.2rem;
}

.lead {
  max-width: 680px;
  margin: 18px auto 0;
  color: #1e383f;
  font-size: 1.24rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #111514;
  box-shadow: none;
  animation: fade-up 620ms ease both;
}

.hero-logo-field {
  --hero-logo-y: 63%;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 95% 96% at 50% var(--hero-logo-y), rgba(53, 175, 234, 0.74), rgba(53, 175, 234, 0.28) 42%, rgba(16, 22, 22, 0.98) 100%),
    #111514;
}

.hero-logo-field::before,
.hero-logo-field::after {
  content: "";
  position: absolute;
  top: var(--hero-logo-y);
  left: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transform-origin: center;
  translate: -50% -50%;
  scale: 1;
  animation: ring-heartbeat 2.8s ease-in-out infinite;
  box-shadow:
    0 0 24px rgba(53, 175, 234, 0.55),
    inset 0 0 18px rgba(53, 175, 234, 0.32);
  will-change: transform, opacity, scale;
}

.hero-logo-field::before {
  width: min(76vw, 820px);
  height: min(76vw, 820px);
}

.hero-logo-field::after {
  width: min(54vw, 560px);
  height: min(54vw, 560px);
  border-color: rgba(53, 175, 234, 0.85);
  box-shadow:
    0 0 32px rgba(53, 175, 234, 0.7),
    inset 0 0 22px rgba(53, 175, 234, 0.38);
  animation-delay: 180ms;
}

.hero-logo-field img {
  position: absolute;
  top: var(--hero-logo-y);
  left: 50%;
  z-index: 1;
  width: min(42vw, 410px);
  border-radius: 50%;
  translate: -50% -50%;
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.48);
}

.spec-strip {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 24px;
  width: min(720px, calc(100% - 40px));
  display: grid;
  transform: translateX(-50%);
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  z-index: 2;
}

.spec-strip div {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02) 48%, rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 16px 40px rgba(3, 20, 26, 0.30),
    0 0 0 1px rgba(53, 175, 234, 0.10);
}

.spec-strip div::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02) 34%, transparent 62%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.06), transparent 34%);
  opacity: 0.45;
}

.spec-strip strong,
.spec-strip span {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.spec-strip strong {
  display: block;
  color: #f4fbff;
  font-size: 1rem;
  font-weight: 1000;
}

.spec-strip span {
  display: block;
  margin-top: 4px;
  color: #cfe6ef;
  font-size: 0.82rem;
  font-weight: 700;
}

section {
  padding: 76px 0;
}

.hero {
  padding: 0;
}

/* Alternating section tints fade in/out across the FULL section height so
   the seam between two sections is fully transparent on both sides — no
   visible cutoff line. The cyan is a centered ambient wash (echoing the
   heartbeat ring on the logo), never a band at the seam itself. */
#oferta,
#projekt-druk,
#produkty,
#proces {
  position: relative;
  background:
    /* centered ambient cyan wash — sits in the middle of the section, not at edges */
    radial-gradient(ellipse 80% 60% at 50% 50%,
      rgba(53, 175, 234, 0.09) 0%,
      transparent 72%),
    /* tint fades smoothly from 0 → 1 → 0 across the whole section */
    linear-gradient(180deg,
      rgba(238, 248, 252, 0) 0%,
      rgba(238, 248, 252, 0.35) 14%,
      rgba(238, 248, 252, 0.85) 32%,
      rgba(238, 248, 252, 0.95) 50%,
      rgba(238, 248, 252, 0.85) 68%,
      rgba(238, 248, 252, 0.35) 86%,
      rgba(238, 248, 252, 0) 100%);
}

#projektowanie,
#druk,
#materialy {
  position: relative;
  background:
    /* white sections get a subtle centered cyan wash, no edge halos */
    radial-gradient(ellipse 80% 50% at 50% 50%,
      rgba(53, 175, 234, 0.05) 0%,
      transparent 75%);
}

/* Cross-seam glow: each section emits a soft cyan halo that overlaps with
   its neighbors via negative offsets + heavy blur. The pseudo-element is
   wider/taller than the seam zone, so by the time the halo reaches either
   neighboring section it has already softened to almost nothing — no ring,
   no band, just a gentle bloom at the boundary. */
#oferta::after,
#projektowanie::after,
#projekt-druk::after,
#druk::after,
#produkty::after,
#materialy::after,
#proces::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -90px;
  height: 180px;
  background: radial-gradient(ellipse 55% 100% at 50% 50%,
    rgba(53, 175, 234, 0.10) 0%,
    rgba(53, 175, 234, 0.04) 45%,
    transparent 78%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

/* Section content must sit above the seam pseudo-element. */
#oferta > *,
#projektowanie > *,
#projekt-druk > *,
#druk > *,
#produkty > *,
#materialy > *,
#proces > * {
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
  animation: fade-up 520ms ease both;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(13, 43, 57, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  animation: fade-up 560ms ease both;
}

.card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--accent));
  opacity: 0.72;
}

.card:hover {
  border-color: rgba(53, 175, 234, 0.56);
  box-shadow: 0 16px 34px rgba(13, 43, 57, 0.12);
  transform: translateY(-3px);
}

.service-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 22px;
}

.service-card p,
.product-card p,
.material-card p,
.process-step p,
.page-copy p,
.contact-note p {
  color: var(--muted);
}

.service-card .icon,
.material-card .icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: var(--radius);
  background: #e1f5fe;
  color: #063246;
  font-weight: 900;
}

.service-card .button {
  margin-top: auto;
}

.product-card {
  overflow: hidden;
  cursor: pointer;
}

.product-card:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

.product-card::after {
  display: none;
}

.product-visual {
  position: relative;
  min-height: 205px;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 95% 96% at 50% 42%,
      var(--tone-light, rgba(53, 175, 234, 0.74)),
      var(--tone-mid, rgba(53, 175, 234, 0.28)) 42%,
      rgba(16, 22, 22, 0.98) 100%
    ),
    #111514;
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
}

.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 220ms ease, transform 260ms ease;
}

.product-photo[hidden] {
  display: none;
}

.product-card:hover .product-photo:not([hidden]) {
  opacity: 1;
  transform: scale(1);
}

.product-visual span {
  display: grid;
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(16, 22, 22, 0.18);
  color: #fff;
  font-weight: 1000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: opacity 180ms ease, transform 220ms ease;
}

.product-card:hover .product-visual span {
  opacity: 0.12;
  transform: scale(0.94);
}

.product-card:nth-of-type(6n + 1) .product-visual {
  --tone-light: rgba(53, 175, 234, 0.78);
  --tone-mid: rgba(53, 175, 234, 0.30);
}

.product-card:nth-of-type(6n + 2) .product-visual {
  --tone-light: rgba(255, 201, 60, 0.80);
  --tone-mid: rgba(255, 130, 60, 0.32);
}

.product-card:nth-of-type(6n + 3) .product-visual {
  --tone-light: rgba(255, 142, 196, 0.78);
  --tone-mid: rgba(160, 82, 220, 0.34);
}

.product-card:nth-of-type(6n + 4) .product-visual {
  --tone-light: rgba(120, 220, 180, 0.78);
  --tone-mid: rgba(34, 163, 111, 0.34);
}

.product-card:nth-of-type(6n + 5) .product-visual {
  --tone-light: rgba(180, 220, 90, 0.80);
  --tone-mid: rgba(100, 160, 50, 0.34);
}

.product-card:nth-of-type(6n) .product-visual {
  --tone-light: rgba(255, 168, 120, 0.80);
  --tone-mid: rgba(220, 90, 90, 0.32);
}

.product-card div:last-child {
  padding: 20px;
}

.material-card,
.process-step,
.contact-note {
  padding: 22px;
}

.material-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.process {
  counter-reset: process;
}

.process-step {
  position: relative;
}

.process-step::before {
  counter-increment: process;
  content: counter(process);
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 0 6px #dff4fd;
}

.contact-band {
  background: #101616;
  color: #fff;
}

.contact-band .section-head p {
  color: #bfd2da;
}

.contact-band .contact-note {
  background: #fff;
  color: var(--ink);
}

.contact-band .contact-note p {
  color: var(--muted);
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4fbff;
  color: var(--ink);
  font-weight: 900;
}

.instagram-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 28px;
}

.quote-form {
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #273136;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbdde5;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-actions {
  justify-content: flex-end;
}

label .label-text {
  display: block;
}

label .req,
label .label-text .req,
.req {
  color: #dc2626 !important;
  font-weight: 800;
  margin-left: 2px;
}

/* Walidacja — czerwone podświetlenie pól z błędem */
.quote-form label.is-invalid .label-text {
  color: #b91c1c;
}
.quote-form label.is-invalid input,
.quote-form label.is-invalid select,
.quote-form label.is-invalid textarea {
  border-color: #dc2626;
  background: #fef2f2;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.quote-form label.is-invalid .file-control {
  border-color: #dc2626;
  background: #fef2f2;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.quote-form label.is-invalid .file-button {
  border-color: #dc2626;
  color: #b91c1c;
}

/* Komunikat pod formularzem (success / error) */
.form-notice {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 600;
}
.form-notice.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.form-notice.is-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.file-field {
  position: relative;
}

.file-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.file-field .file-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 6px 6px 6px;
  border: 1px solid #cbdde5;
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.file-field:hover .file-control,
.file-field input[type="file"]:focus-visible + .file-control {
  background: #f7fbfd;
  border-color: #aacde0;
}

.file-field .file-button {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid #cbdde5;
  border-radius: 8px;
  background: #f7fbfd;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.file-field:hover .file-button {
  background: #eef8fc;
  border-color: #aacde0;
}

.file-field .file-name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-field .file-name.has-file {
  color: var(--ink);
  font-weight: 600;
}

.file-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.45;
}

.page-hero {
  padding: 76px 0 54px;
  border-bottom: 1px solid var(--line);
  background: #dff4fd;
}

.page-hero .lead {
  max-width: 820px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.page-copy {
  padding: 28px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.check-list li::before {
  content: "✓";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #dff6eb;
  color: var(--success);
  font-weight: 900;
}

.side-panel {
  align-self: start;
  padding: 22px;
  background: linear-gradient(180deg, #101616, #17323d);
  color: #fff;
}

.side-panel p {
  color: #bfd2da;
}

.site-footer {
  padding: 28px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #101616;
}

.footer-inner {
  display: flex;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #d5e7ee;
}

.footer-logo {
  width: 58px;
  height: 58px;
  border: 2px solid var(--brand-blue);
  border-radius: 50%;
  object-fit: cover;
}

.footer-instagram {
  margin-top: 0;
  border-color: rgba(53, 175, 234, 0.48);
  background: rgba(53, 175, 234, 0.14);
  color: #fff;
}

.footer-instagram:hover {
  background: rgba(53, 175, 234, 0.24);
}

/* Galeria zdjęć produktów (lightbox) */
.gallery-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}

.gallery {
  width: min(94vw, 1180px);
  max-width: 94vw;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}

.gallery::backdrop {
  background: rgba(7, 12, 13, 0.88);
  backdrop-filter: blur(4px);
}

.gallery[open] {
  display: grid;
  animation: gallery-open 220ms ease-out both;
}

.gallery[open]::backdrop {
  animation: gallery-backdrop 220ms ease-out both;
}

@keyframes gallery-open {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gallery-backdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  height: min(82vh, 820px);
}

.gallery-figure {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.gallery-figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.gallery-figure figcaption {
  position: absolute;
  left: 50%;
  bottom: -36px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #cfdde2;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.gallery-btn {
  width: 56px;
  height: 56px;
  margin: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.gallery-btn:hover {
  background: rgba(53, 175, 234, 0.30);
  transform: scale(1.04);
}

.gallery-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  transform: none;
}

.gallery-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .hero-home {
    min-height: calc(100vh - 144px);
  }

  .hero-grid {
    min-height: calc(100vh - 144px);
  }

  .contact-layout,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 100%;
  }

  .hero-logo-field img {
    width: min(58vw, 360px);
  }

  .grid.three,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 12px 16px;
  }

  .hero-inner,
  .section-inner {
    padding: 0 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .nav-links a {
    flex: 1 1 auto;
    text-align: center;
  }

  h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .hero-home {
    min-height: auto;
    overflow: visible;
    background: #111514;
  }

  .hero-grid {
    display: grid;
    gap: 16px;
    min-height: auto;
    padding: 16px;
    border-radius: var(--radius);
    background:
      radial-gradient(ellipse 110% 70% at 50% 58%, rgba(53, 175, 234, 0.55), rgba(53, 175, 234, 0.18) 45%, rgba(16, 22, 22, 0.98) 100%),
      #111514;
  }

  .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    max-width: none;
    margin: 0;
    padding: 22px 18px;
    z-index: 3;
  }

  .hero-actions .button {
    width: 100%;
  }

  section {
    padding: 54px 0;
  }

  .section-head,
  .footer-inner,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .grid.three,
  .grid.four,
  .form-grid,
  .spec-strip {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    position: relative;
    display: grid;
    gap: 14px;
    min-height: auto;
    overflow: visible;
    background: transparent;
  }

  .hero-logo-field {
    --hero-logo-y: 50%;
    position: relative;
    inset: auto;
    aspect-ratio: 1 / 1;
    min-height: 0;
    width: 100%;
    overflow: visible;
    border-radius: var(--radius);
    background: transparent;
    z-index: 1;
    isolation: isolate;
  }

  .hero-logo-field::before,
  .hero-logo-field::after {
    display: block;
  }

  .hero-logo-field img {
    width: min(54vw, 220px);
    box-shadow: none;
  }

  .hero-logo-field::before {
    width: min(82vw, 420px);
    height: min(82vw, 420px);
  }

  .hero-logo-field::after {
    width: min(60vw, 300px);
    height: min(60vw, 300px);
  }

  .spec-strip {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
    z-index: 3;
  }

  .gallery {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
  }

  .gallery-stage {
    height: 100vh;
    height: 100dvh;
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-prev,
  .gallery-next {
    position: absolute;
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
    width: 48px;
    height: 48px;
    margin: 0;
    z-index: 2;
  }

  .gallery-prev {
    left: max(18px, calc(env(safe-area-inset-left) + 12px));
  }

  .gallery-next {
    right: max(18px, calc(env(safe-area-inset-right) + 12px));
  }

  .gallery-figure figcaption {
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  }
}


/* === Baner instalacji PWA ============================================ */
.pwa-install {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  max-width: 460px;
  margin-inline: auto;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(17, 21, 20, 0.94);
  color: #f4fbff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 64px rgba(7, 24, 36, 0.45),
    0 0 0 1px rgba(53, 175, 234, 0.18) inset,
    0 0 28px rgba(53, 175, 234, 0.18);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  font-family: inherit;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease;
}

.pwa-install.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pwa-install__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease;
}

.pwa-install__close:hover,
.pwa-install__close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.pwa-install__body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 28px;
}

.pwa-install__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  background: #fff;
  padding: 4px;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pwa-install__text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.pwa-install__text p {
  margin: 4px 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(244, 251, 255, 0.78);
}

.pwa-install__actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pwa-install__cta {
  width: 100%;
  background: var(--brand-blue);
  color: #fff;
  border-color: transparent;
  font-size: 0.92rem;
  padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(53, 175, 234, 0.35);
}

.pwa-install__cta:hover {
  background: var(--brand-blue-dark);
}

.pwa-install__ios {
  font-size: 0.84rem;
  color: rgba(244, 251, 255, 0.85);
}

.pwa-install__ios summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-weight: 600;
  color: #f4fbff;
  transition: background 160ms ease;
}

.pwa-install__ios summary::-webkit-details-marker {
  display: none;
}

.pwa-install__ios summary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pwa-install__ios[open] summary {
  background: rgba(53, 175, 234, 0.18);
  border-color: rgba(53, 175, 234, 0.4);
}

.pwa-install__ios ol {
  margin: 12px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.5;
}

.pwa-install__ios li strong {
  color: #fff;
}

@media (min-width: 640px) {
  .pwa-install__actions {
    flex-direction: row;
    align-items: center;
  }
  .pwa-install__cta {
    width: auto;
    flex-shrink: 0;
  }
  .pwa-install__ios {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-install {
    transition: opacity 200ms ease;
    transform: none;
  }
}
