/* ============================================================
   Raj Sufitów - sufity napinane (redesign v2)
   Kolory z logo: niebieski #3A75AE, krem #FAF2E7, granat #142B44
   Font: Helvetica Neue (systemowy stos)
   Siatka 8pt | mobile-first (375 → 1280)
   ============================================================ */

:root {
  --color-brand:       #3A75AE;
  --color-brand-light: #5B90C2;
  --color-brand-dark:  #2C5D8E;
  --color-navy:        #142B44;
  --color-navy-2:      #1C3A57;
  --color-surface:     #FFFFFF;
  --color-surface-2:   #FAF2E7;
  --color-surface-3:   #F3E8D8;
  --color-border:      #E6DCCD;
  --color-text:        #1F2F42;
  --color-text-muted:  #5C6979;
  --color-on-dark:     #EEF3F8;
  --color-on-dark-mut: rgba(238, 243, 248, .72);
  --color-sky:         #9CC4EA;
  --color-accent:      #3A75AE;
  --color-success:     #2E8B57;
  --color-error:       #C0392B;
  --color-star:        #E8A33D;

  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --radius-lg: 24px;
  --radius:    16px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(20, 43, 68, .06);
  --shadow-md: 0 12px 32px rgba(20, 43, 68, .12);
  --shadow-lg: 0 24px 60px rgba(20, 43, 68, .18);

  --container: 1240px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--color-navy);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.875rem, 4vw, 2.875rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: var(--color-brand); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

section { padding: 1.75rem 0; }
@media (min-width: 900px) { section { padding: 2.75rem 0; } }
.bg-cream { background: var(--color-surface-2); }

.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.0625rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }

.muted { color: var(--color-text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .875rem 1.75rem;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  border-radius: 9999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.btn svg { flex-shrink: 0; transition: transform 150ms ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--color-brand); color: #fff; box-shadow: 0 8px 22px rgba(58, 117, 174, .35); }
.btn-primary:hover { background: var(--color-brand-dark); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-ghost:hover { background: var(--color-navy); color: #fff; }
.btn-light {
  background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-light:hover { background: #fff; color: var(--color-navy); border-color: #fff; }
.btn-white { background: #fff; color: var(--color-brand-dark); }
.btn-white:hover { background: var(--color-surface-2); transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-brand-light);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; }
.brand-name {
  font-weight: 700; font-size: 1.125rem; line-height: 1.05; letter-spacing: .05em;
  text-transform: uppercase; color: var(--color-navy); transition: color 250ms ease;
}
.brand-name small {
  display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .34em;
  color: var(--color-brand); transition: color 250ms ease;
}

.main-nav { display: none; }
.header-actions { display: none; }
@media (min-width: 1080px) {
  .main-nav { display: flex; gap: .25rem; }
  .main-nav a {
    padding: .5rem .875rem; font-size: .9375rem; font-weight: 500;
    color: var(--color-text); text-decoration: none; border-radius: 9999px;
    transition: background 150ms ease, color 150ms ease;
  }
  .main-nav a:hover { background: var(--color-surface-2); color: var(--color-navy); }
  .header-actions { display: flex; align-items: center; gap: 1.25rem; }
  .header-cta { min-height: 46px; padding: .625rem 1.25rem; font-size: .9375rem; }
  .header-phone {
    display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
    font-size: .9375rem; font-weight: 600; color: var(--color-navy); text-decoration: none; transition: color 250ms ease;
  }
  .header-phone:hover { color: var(--color-brand); }
  .page-home .site-header:not(.scrolled) .header-phone { color: #fff; }
}
/* Oferta: rozwijane menu (hover / focus-within) */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: .3rem; }
.nav-item > a svg { transition: transform 200ms ease; }
.nav-item:hover > a svg, .nav-item:focus-within > a svg { transform: rotate(180deg); }
.nav-sub {
  position: absolute; left: 0; top: 100%; padding-top: .5rem; min-width: 240px; z-index: 5;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 200ms ease, transform 350ms cubic-bezier(.32, .72, 0, 1), visibility 0s linear 200ms;
}
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-sub-in {
  display: flex; flex-direction: column; padding: .5rem;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.main-nav .nav-sub a {
  display: block; padding: .8rem 1rem; border-radius: var(--radius-sm); font-weight: 600; color: var(--color-navy);
  transition: background 200ms ease, box-shadow 300ms ease, color 200ms ease;
}
.main-nav .nav-sub a:hover, .main-nav .nav-sub a:focus-visible {
  background: rgba(58, 117, 174, .1); color: var(--color-brand-dark);
  box-shadow: 0 0 0 1px rgba(58, 117, 174, .25), 0 0 22px rgba(58, 117, 174, .35);
}
.page-home .site-header:not(.scrolled) .main-nav .nav-sub a { color: var(--color-navy); }
.mobile-menu-panel nav a.sub { padding-left: 1.75rem; font-size: 1rem; color: var(--color-text-muted); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--color-navy); cursor: pointer;
  transition: background 150ms ease, color 250ms ease;
}
.nav-toggle:hover { background: rgba(20, 43, 68, .08); }
@media (min-width: 1080px) { .nav-toggle { display: none; } }

.site-header.scrolled, .page-sub .site-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.page-home .site-header:not(.scrolled) .brand-name,
.page-home .site-header:not(.scrolled) .main-nav a,
.page-home .site-header:not(.scrolled) .nav-toggle { color: #fff; }
.page-home .site-header:not(.scrolled) .brand-name small { color: var(--color-sky); }
.page-home .site-header:not(.scrolled) .main-nav a:hover,
.page-home .site-header:not(.scrolled) .nav-toggle:hover { background: rgba(255, 255, 255, .14); }

.page-sub main { padding-top: var(--header-h); }

/* Mobile drawer */
.mobile-menu { position: fixed; inset: 0; z-index: 70; display: flex; visibility: hidden; pointer-events: none; }
.mobile-menu.open { visibility: visible; pointer-events: auto; }
.mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(20, 43, 68, .55); opacity: 0; transition: opacity 250ms ease; }
.mobile-menu.open .mobile-menu-backdrop { opacity: 1; }
.mobile-menu-panel {
  position: relative; margin-left: auto; width: min(340px, 88vw); height: 100%;
  background: var(--color-surface); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
  transform: translateX(100%); transition: transform 250ms ease; overflow-y: auto;
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; width: 48px; height: 48px; border: 0; border-radius: var(--radius-sm);
  background: var(--color-surface-2); color: var(--color-navy); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-menu-panel nav { display: flex; flex-direction: column; margin-top: .5rem; }
.mobile-menu-panel nav a {
  padding: .875rem .75rem; font-size: 1.125rem; font-weight: 500;
  color: var(--color-navy); text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu-panel nav a:hover { background: var(--color-surface-2); }
.mobile-menu-panel .btn { margin-top: 1.25rem; }
.mobile-menu-meta { margin-top: 1rem; font-size: .875rem; color: var(--color-text-muted); line-height: 1.6; }
.mobile-menu-meta a { color: var(--color-text); text-decoration: none; }

/* ---------- Hero (video) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 880px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 3.5rem;
  color: #fff; background: var(--color-navy);
}
@media (min-width: 900px) { .hero { align-items: center; padding: calc(var(--header-h) + 4rem) 0 5.5rem; } }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media picture, .hero-media img, .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-video { opacity: 0; transition: opacity 600ms ease; }
.hero-video.is-playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 43, 68, .55) 0%, rgba(20, 43, 68, 0) 30%),
    linear-gradient(0deg, rgba(20, 43, 68, .94) 0%, rgba(20, 43, 68, .5) 55%, rgba(20, 43, 68, .25) 100%);
}
@media (min-width: 900px) {
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(20, 43, 68, .5) 0%, rgba(20, 43, 68, 0) 25%),
      linear-gradient(90deg, rgba(20, 43, 68, .9) 0%, rgba(20, 43, 68, .62) 45%, rgba(20, 43, 68, .12) 100%);
  }
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 660px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 9999px; padding: .375rem 1rem .375rem .5rem;
  font-size: .875rem; font-weight: 500; margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--color-brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--color-sky); }
.hero-lead { font-size: 1.125rem; color: rgba(255, 255, 255, .88); max-width: 560px; margin-bottom: 2rem; }
@media (min-width: 900px) { .hero-lead { font-size: 1.25rem; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
@media (max-width: 479px) { .hero-actions .btn { width: 100%; } }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: .75rem 1.75rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: .9375rem; color: rgba(255, 255, 255, .9);
}
.hero-trust span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-trust svg { color: var(--color-sky); flex-shrink: 0; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.5rem; z-index: 2;
  display: none; width: 44px; height: 44px; border-radius: 50%;
  align-items: center; justify-content: center;
  color: #fff; border: 1px solid rgba(255, 255, 255, .4);
  transform: translateX(-50%);
  animation: bob 2.4s ease-in-out infinite;
}
@media (min-width: 900px) { .hero-scroll { display: inline-flex; } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------- Zalety ---------- */
.features-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.feature {
  position: relative; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.feature:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.feature-num { position: absolute; top: 1.5rem; right: 1.5rem; font-size: .8125rem; font-weight: 600; color: #B9AE9E; letter-spacing: .08em; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--color-brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; box-shadow: 0 8px 20px rgba(58, 117, 174, .3);
}
.feature h3 { margin-bottom: .5rem; }
.feature p { margin: 0; font-size: .9375rem; color: var(--color-text-muted); }

/* ---------- Oferta: 2 rodzaje ---------- */
.types-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
@media (min-width: 900px) { .types-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
/* karty oferty wjeżdżają wolniej niż reszta */
.type-card.reveal { transition-duration: 1000ms, 1400ms; }
.type-card {
  display: flex; flex-direction: column;
  background: var(--color-surface); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
  transition: box-shadow 250ms ease, border-color 250ms ease;
}
.type-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.type-mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 16 / 9; }
.type-mosaic > div { overflow: hidden; }
.type-mosaic > div:first-child { grid-row: 1 / 3; }
.type-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.type-body { padding: 1.125rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 640px) { .type-body { padding: 1.25rem 1.5rem 1.5rem; } }
.type-tag { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-brand); margin-bottom: .5rem; }
.type-body h3 { font-size: 1.25rem; margin-bottom: .375rem; }
.type-body p { color: var(--color-text-muted); font-size: .9375rem; margin-bottom: .75rem; }
.type-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--color-border);
}
.type-price { font-size: 1.25rem; font-weight: 700; color: var(--color-navy); letter-spacing: -0.02em; }
.type-price small { font-size: .875rem; font-weight: 500; color: var(--color-text-muted); }
.type-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; color: var(--color-brand); }
.type-link svg { transition: transform 150ms ease; }
.type-card:hover .type-link svg { transform: translateX(4px); }

/* ---------- Cennik ---------- */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; max-width: 840px; margin: 0 auto; }
@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  transition: box-shadow 200ms ease;
}
.price-card:hover { box-shadow: var(--shadow-md); }
.price-card h3 { margin-bottom: .375rem; }
.price-card .amount { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.03em; color: var(--color-navy); margin-bottom: 1.25rem; }
.price-card .amount small { font-size: .9375rem; font-weight: 500; color: var(--color-text-muted); letter-spacing: 0; }
.price-card ul { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-direction: column; gap: .625rem; font-size: .9375rem; color: var(--color-text-muted); }
.price-card li { display: flex; gap: .625rem; align-items: flex-start; }
.price-card li svg { color: var(--color-brand); flex-shrink: 0; margin-top: .2rem; }
.price-card .btn { margin-top: auto; }
.price-card.featured { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-on-dark); box-shadow: var(--shadow-lg); }
.price-card.featured h3, .price-card.featured .amount { color: #fff; }
.price-card.featured .amount small, .price-card.featured ul { color: var(--color-on-dark-mut); }
.price-card.featured li svg { color: var(--color-sky); }
.price-card .tag {
  position: absolute; top: -13px; left: 1.75rem;
  background: var(--color-brand); color: #fff;
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3125rem .875rem; border-radius: 9999px;
}
.pricing-note { margin-top: 1.75rem; font-size: .875rem; color: var(--color-text-muted); text-align: center; }

/* ---------- Proces ---------- */
.process { background: var(--color-navy); color: var(--color-on-dark); }
.process h2 { color: #fff; }
.process .eyebrow { color: var(--color-sky); }
.steps { position: relative; display: grid; gap: 2rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .steps::before { content: ""; position: absolute; top: 28px; left: 28px; right: 14%; height: 1px; background: rgba(255, 255, 255, .2); }
}
.step { position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-brand); color: #fff;
  font-size: 1.0625rem; font-weight: 700;
  margin-bottom: 1.5rem; box-shadow: 0 0 0 8px var(--color-navy);
}
.step h3 { color: #fff; margin-bottom: .5rem; }
.step p { margin: 0; font-size: .9375rem; color: var(--color-on-dark-mut); }

/* ---------- Realizacje (bento) ---------- */
.gallery-grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; } }
.gallery-item {
  position: relative; border: 0; padding: 0; overflow: hidden;
  border-radius: var(--radius-sm); cursor: zoom-in;
  background: var(--color-surface-3); display: block; width: 100%; height: 100%;
}
.gallery-item.big { grid-column: span 2; grid-row: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20, 43, 68, .5), rgba(20, 43, 68, 0) 50%);
  opacity: 0; transition: opacity 200ms ease;
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
/* główna: pasek bez dziur - dwa małe jedno nad drugim | jedno duże (wysokość dwóch małych) | ... */
.gallery-row { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
.gallery-row .gallery-item { aspect-ratio: 3 / 4; height: auto; }
@media (min-width: 700px) {
  .gallery-row {
    grid-template-columns: 1fr 1.35fr 1fr 1.35fr; grid-template-rows: repeat(2, 150px);
    grid-auto-flow: column; gap: .75rem;
  }
  .gallery-row .gallery-item { aspect-ratio: auto; height: 100%; }
  .gallery-row .gallery-item:nth-child(3n) { grid-row: span 2; }
}
@media (min-width: 1024px) { .gallery-row { grid-template-rows: repeat(2, 200px); gap: .875rem; } }
.gallery-more { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 20, 32, .94); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 84vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background 150ms ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, .28); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox img { max-height: 80vh; }
.lightbox-cap {
  position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  max-width: 92vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: .45rem 1rem; border-radius: 9999px; font-size: .9375rem; color: #fff;
  background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lightbox-cap:empty { display: none; }
.lightbox img { transition: opacity 200ms ease; }
.lightbox.loading img { opacity: 0; }
.lightbox::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff;
  opacity: 0; transition: opacity 150ms ease; animation: lbSpin 800ms linear infinite; pointer-events: none;
}
.lightbox.loading::before { opacity: 1; }
@keyframes lbSpin { to { transform: rotate(360deg); } }
.lightbox.single .lightbox-prev, .lightbox.single .lightbox-next { display: none; }

/* ---------- Realizacje pogrupowane w obiekty (podstrony) ---------- */
.works-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
/* desktop: siatka 6 kolumn, grupa 4 kart = wysoka (2 kol., 2 wiersze) | dwie połówki | wysoka */
@media (min-width: 1024px) {
  .works-grid { grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; gap: 1.25rem; }
  .work.tall-l { grid-column: 1 / 3; grid-row: span 2; }
  .work.mid { grid-column: 3 / 5; }
  .work.tall-r { grid-column: 5 / 7; grid-row: span 2; }
  .work.w2 { grid-column: span 2; }
  .work.w3 { grid-column: span 3; }
  .work.w6 { grid-column: 1 / -1; }
  .work.w2 .work-cover { aspect-ratio: 4 / 3; }
  .work.tall-l .work-cover, .work.tall-r .work-cover { aspect-ratio: auto; flex: 1 1 auto; min-height: 260px; }
  .work.w6 .work-cover { aspect-ratio: 21 / 9; }
  .work.w3 .work-cover { aspect-ratio: 16 / 9; }
}
.work {
  display: flex; flex-direction: column; text-align: left; padding: 0; width: 100%;
  border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; overflow: hidden;
  cursor: pointer; font-family: var(--font); color: var(--color-text);
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.work:hover, .work:focus-visible { box-shadow: var(--shadow-md); border-color: transparent; }
.work-cover { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-surface-3); }
.work-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-count {
  position: absolute; right: .75rem; bottom: .75rem; padding: .3rem .625rem; border-radius: 9999px;
  background: rgba(20, 43, 68, .78); color: #fff; font-size: .75rem; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.work-body { display: flex; flex-direction: column; gap: .375rem; padding: 1rem 1.125rem 1.125rem; }
.work-tag { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-brand); }
.work-title { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--color-navy); }
.work-city { display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; color: var(--color-text-muted); }
.work-city svg { color: var(--color-brand); }
.lightbox-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: .75rem; top: 50%; transform: translateY(-50%); }

/* ---------- Opinie ---------- */
.reviews-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.review {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 1.25rem;
}
.review-top { display: flex; align-items: center; justify-content: space-between; }
.review .stars { display: flex; gap: .2rem; color: var(--color-star); }
.review .stars .off { color: var(--color-border); }
.review .quote { color: var(--color-surface-3); }
.review p { margin: 0; color: var(--color-text); }
.review footer { display: flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--color-border); }
.review .avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; background: var(--color-surface-2); }
.review b { display: block; font-size: .9375rem; color: var(--color-navy); }
.review small { color: var(--color-text-muted); }
/* nieskończona szyna: karty jadą w lewo (JS), strzałki po bokach */
.reviews-carousel { position: relative; }
.reviews-viewport { overflow: hidden; padding: .25rem 0; outline: none; }
.reviews-viewport:focus-visible { outline: 3px solid var(--color-brand-light); outline-offset: 4px; border-radius: var(--radius); }
.reviews-rail { display: flex; gap: 1.25rem; width: 100%; will-change: transform; }
.reviews-rail .review { flex: 0 0 min(100%, 360px); }
@media (min-width: 640px) { .reviews-rail { gap: 1.5rem; } .reviews-rail .review { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (min-width: 1024px) { .reviews-rail .review { flex-basis: calc((100% - 3rem) / 3); } }
.reviews-btn {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--color-border);
  background: #fff; color: var(--color-navy); cursor: pointer; box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.reviews-btn:hover { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.reviews-prev { left: -.5rem; }
.reviews-next { right: -.5rem; }
@media (min-width: 1340px) { .reviews-prev { left: -3.5rem; } .reviews-next { right: -3.5rem; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; } }
.faq-aside .section-head { margin-bottom: 1.5rem; }
.faq-aside-card {
  background: var(--color-surface-2); border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column; gap: .5rem; align-items: flex-start;
}
.faq-aside-card b { color: var(--color-navy); font-size: 1.0625rem; }
.faq-aside-card .tel { font-size: 1.5rem; font-weight: 700; color: var(--color-navy); text-decoration: none; letter-spacing: -0.01em; }
.faq-aside-card .tel:hover { color: var(--color-brand); }
.faq-aside-card small { color: var(--color-text-muted); }
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 200ms ease, box-shadow 200ms ease; }
.faq-item.open { border-color: var(--color-brand-light); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.375rem; background: none; border: 0; cursor: pointer; min-height: 56px;
  font-family: var(--font); font-size: 1.0625rem; font-weight: 600; color: var(--color-navy); text-align: left;
}
.faq-q svg { flex-shrink: 0; color: var(--color-brand); transition: transform 200ms ease; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 250ms ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.375rem 1.375rem; margin: 0; color: var(--color-text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  padding: 3rem 1.75rem; color: #fff; background: var(--color-navy);
  display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start;
}
.cta-band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 43, 68, .95) 0%, rgba(44, 93, 142, .8) 60%, rgba(44, 93, 142, .5) 100%);
}
.cta-band h2 { color: #fff; margin: 0 0 .5rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .86); font-size: 1.0625rem; }
@media (min-width: 900px) { .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 4rem 3.5rem; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; } }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-row { display: flex; gap: 1rem; align-items: flex-start; }
.contact-row .ico {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px;
  background: var(--color-surface-2); color: var(--color-brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-row b { display: block; color: var(--color-navy); }
.contact-row a { color: var(--color-text); text-decoration: none; }
.contact-row a:hover { color: var(--color-brand); }
.contact-row a.big { font-size: 1.25rem; font-weight: 700; color: var(--color-navy); }
.contact-row a.big:hover { color: var(--color-brand); }
.contact-legal { margin-top: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); font-size: .875rem; color: var(--color-text-muted); }
.contact-legal b { color: var(--color-text); }

.contact-form { background: var(--color-surface-2); border-radius: var(--radius-lg); padding: 1.75rem; }
@media (min-width: 640px) { .contact-form { padding: 2.5rem; } }
.contact-form h3 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .875rem; font-weight: 600; color: var(--color-navy); margin-bottom: .375rem; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: .75rem 1rem;
  font: inherit; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(58, 117, 174, .18); outline: none; }
.field .error-msg { display: none; align-items: center; gap: .375rem; color: var(--color-error); font-size: .8125rem; margin-top: .375rem; }
.field.invalid input, .field.invalid textarea { border-color: var(--color-error); }
.field.invalid .error-msg { display: flex; }
.form-consent { display: flex; gap: .625rem; align-items: flex-start; font-size: .8125rem; color: var(--color-text-muted); margin-bottom: 1.25rem; }
.form-consent input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--color-brand); flex-shrink: 0; }
.form-success {
  display: none; align-items: center; gap: .625rem; margin-top: 1rem;
  background: rgba(46, 139, 87, .1); border: 1px solid rgba(46, 139, 87, .35); color: var(--color-success);
  font-weight: 600; font-size: .9375rem; padding: .875rem 1rem; border-radius: var(--radius-sm);
}
.form-success.show { display: flex; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: var(--color-on-dark-mut); padding: 4rem 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.3fr; gap: 3rem; } }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name small { color: var(--color-sky); }
.site-footer p { font-size: .9375rem; max-width: 380px; }
.site-footer h4 { color: #fff; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.25rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.site-footer ul a { color: var(--color-on-dark-mut); text-decoration: none; font-size: .9375rem; }
.site-footer ul a:hover { color: #fff; }
.site-footer ul li span { font-size: .9375rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.5rem;
  font-size: .8125rem; color: rgba(238, 243, 248, .55);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}

/* ---------- Floating call button ---------- */
.fab-call {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 55;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--color-brand); color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(58, 117, 174, .45);
}
@media (max-width: 1079px) { .fab-call { display: inline-flex; } }

/* ============================================================
   Podstrony rodzajów (folia.html / tkanina.html)
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  padding: 4.5rem 0 4rem; background: var(--color-navy);
}
@media (min-width: 900px) { .page-hero { padding: 6rem 0 5rem; } }
.page-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 43, 68, .94) 0%, rgba(20, 43, 68, .72) 55%, rgba(20, 43, 68, .35) 100%);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.page-hero p { max-width: 640px; color: rgba(255, 255, 255, .88); font-size: 1.0625rem; margin-bottom: 1.5rem; }
.page-hero .eyebrow { color: var(--color-sky); }
.crumb-back { margin: 0 0 1.5rem; font-size: .875rem; }
.crumb-back a { color: rgba(255, 255, 255, .78); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumb-back a:hover { color: #fff; text-decoration: underline; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; font-size: .9375rem; color: rgba(255, 255, 255, .9); }
.page-hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.page-hero-meta svg { color: var(--color-sky); }

.offer-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .offer-grid { gap: 1.25rem; } }
@media (min-width: 1024px) { .offer-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
@media (max-width: 559px) {
  .offer-caption { padding: 2.5rem .875rem .875rem; }
  .offer-caption b { font-size: .9375rem; }
  .offer-caption span { font-size: .75rem; }
  .offer-price { top: .625rem; left: .625rem; font-size: .75rem; padding: .25rem .5rem; }
  .offer-more { width: 32px; height: 32px; top: .625rem; right: .625rem; }
}
.offer-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  text-align: left; font: inherit; border-radius: var(--radius); overflow: hidden;
  background: var(--color-navy); box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease;
}
.offer-card:hover { box-shadow: var(--shadow-md); }
.offer-card img { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; }
.offer-caption {
  position: absolute; inset: auto 0 0 0; padding: 3rem 1.25rem 1.25rem; color: #fff;
  background: linear-gradient(to top, rgba(14, 30, 48, .94), rgba(14, 30, 48, 0));
}
.offer-caption b { display: block; font-size: 1.125rem; font-weight: 600; margin-bottom: .125rem; }
.offer-caption span { font-size: .875rem; opacity: .85; }
.offer-price {
  position: absolute; top: .875rem; left: .875rem;
  background: rgba(255, 255, 255, .95); color: var(--color-brand-dark);
  font-size: .8125rem; font-weight: 700; padding: .375rem .75rem; border-radius: 9999px;
}
.offer-more {
  position: absolute; top: .875rem; right: .875rem; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .2); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 150ms ease;
}
.offer-card:hover .offer-more { background: var(--color-brand); }

/* Offer modal (wzorniki z cenami) */
.offer-modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 1rem; }
.offer-modal.open { display: flex; }
.offer-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 32, .62); }
.offer-modal-panel {
  position: relative; width: min(940px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid;
}
@media (min-width: 760px) { .offer-modal-panel { grid-template-columns: 1fr 1.1fr; overflow: hidden; } }
.offer-modal-panel > img { width: 100%; height: 240px; object-fit: cover; }
@media (min-width: 760px) { .offer-modal-panel > img { height: 100%; min-height: 460px; } }
.offer-modal-body { padding: 1.75rem; overflow-y: auto; }
@media (min-width: 760px) { .offer-modal-body { padding: 2.25rem; } }
.offer-modal-body h3 { margin: .75rem 0 .5rem; font-size: 1.5rem; }
.offer-modal-body h4 { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); margin: 1.5rem 0 .75rem; }
.offer-modal-price { display: inline-block; background: var(--color-surface-2); color: var(--color-brand-dark); font-weight: 700; font-size: .9375rem; padding: .375rem .875rem; border-radius: 9999px; }
.offer-options { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.offer-options li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed var(--color-border); font-size: .9375rem; }
.offer-options li span:last-child { font-weight: 600; color: var(--color-navy); white-space: nowrap; }
.offer-modal-close {
  position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .94); color: var(--color-navy); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}

/* ---------- Reveal: opacity + jednorazowy wjazd (z lewej / z prawej / z dołu), stan końcowy transform: none
   (bez hover-transformów na kartach ze zdjęciami - to one powodowały drganie) ---------- */
.reveal { opacity: 0; transition: opacity 600ms cubic-bezier(.32, .72, 0, 1), transform 750ms cubic-bezier(.32, .72, 0, 1); transition-delay: var(--d, 0ms); }
.reveal.from-up { transform: translateY(28px); }
.reveal.from-left { transform: translateX(-64px); }
.reveal.from-right { transform: translateX(64px); }
.reveal.visible { opacity: 1; transform: none; }
main { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-video { display: none; }
}

/* ============================================================
   Hero - warianty A / B / C (hero-a.html, hero-b.html, hero-c.html)
   Wspólne: eyebrow-pigułka, przycisk z ikoną w kółku, ramka "double bezel"
   ============================================================ */
.hv { position: relative; overflow: hidden; }
.hv .container { position: relative; z-index: 2; }
.hv h1 em { font-style: normal; color: var(--color-brand); }
.hv-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-brand); background: rgba(58, 117, 174, .1); border: 1px solid rgba(58, 117, 174, .18);
  border-radius: 9999px; padding: .4rem .875rem; margin-bottom: 1.25rem;
}
.hv-eyebrow-dark { color: var(--color-sky); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.hv-lead { font-size: 1.0625rem; color: var(--color-text-muted); max-width: 540px; margin: 0 0 1.75rem; }
@media (min-width: 900px) { .hv-lead { font-size: 1.1875rem; } }
.hv-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 479px) { .hv-actions .btn { width: 100%; } }
.hv-actions-center { justify-content: center; }
.btn-nest { padding-right: .5rem; gap: .75rem; }
.btn-nest .btn-ico {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .18);
  transition: transform 600ms cubic-bezier(.32, .72, 0, 1), background 300ms ease;
}
.btn-nest:hover .btn-ico { transform: translate(3px, -1px) scale(1.05); background: rgba(255, 255, 255, .28); }
.btn-nest:hover svg { transform: none; }
.btn-nest:active { transform: scale(.98); }
.hv-frame {
  position: relative; padding: 6px; border-radius: 30px;
  background: rgba(20, 43, 68, .06);
  box-shadow: 0 0 0 1px rgba(20, 43, 68, .06), 0 30px 70px -20px rgba(20, 43, 68, .35);
}
.hv-frame-dark { background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 90px -20px rgba(0, 0, 0, .7); }
.hv-frame-in {
  position: relative; overflow: hidden; border-radius: 24px; background: var(--color-navy);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .18);
  transform: translateZ(0);
}
.hv-frame-in .hero-media { position: absolute; inset: 0; }
.hv-frame-in::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
/* wejście: JS dodaje html.js i klasę .on z opóźnieniem; bez JS treść widoczna od razu */
.hv-in { transition: opacity 900ms cubic-bezier(.32, .72, 0, 1); }
html.js .hv-in:not(.on) { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hv-in { transition: none; } html.js .hv-in:not(.on) { opacity: 1; } }

/* ---- A: jasny podział - tekst | wideo w ramce 4:5 ---- */
.hv-a { background: var(--color-surface-2); padding: 2rem 0 2.5rem; }
.hv-a-glow {
  position: absolute; z-index: 1; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  right: -22vw; top: -28vw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(58, 117, 174, .2) 0%, rgba(58, 117, 174, 0) 62%);
}
.hv-a-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .hv-a { padding: 3.5rem 0 4rem; }
  .hv-a-grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 4rem; min-height: min(calc(100svh - var(--header-h) - 7.5rem), 720px); }
}
.hv-a h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 1.25rem; }
.hv-a-trust {
  list-style: none; margin: 2rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid rgba(20, 43, 68, .12);
  display: flex; flex-wrap: wrap; gap: .625rem 1.5rem; font-size: .9375rem; color: var(--color-text);
}
.hv-a-trust li { display: inline-flex; align-items: center; gap: .5rem; }
.hv-a-trust svg { color: var(--color-brand); }
.hv-a-visual { position: relative; }
.hv-a-screen { aspect-ratio: 4 / 4.6; }
@media (min-width: 960px) { .hv-a-screen { aspect-ratio: 4 / 5; } }
.hv-a-card {
  position: relative; z-index: 3; width: max-content; max-width: calc(100% - 1rem);
  margin: -1.75rem 0 0 1rem;
  display: inline-flex; align-items: center; gap: .875rem;
  padding: .75rem 1.25rem .75rem .75rem; border-radius: 9999px;
  background: rgba(255, 255, 255, .86); color: var(--color-navy);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(20, 43, 68, .06), 0 18px 40px -14px rgba(20, 43, 68, .3);
  font-size: .9375rem; line-height: 1.25;
}
.hv-a-card b { display: block; font-weight: 700; }
.hv-a-card small { display: block; font-size: .8125rem; color: var(--color-text-muted); }
.hv-a-card-ico {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-brand); color: #fff;
}
@media (min-width: 960px) { .hv-a-card { position: absolute; left: -2rem; bottom: 2.25rem; margin: 0; } }
.hv-a-strip { display: flex; align-items: center; margin-top: 1.25rem; font-size: .875rem; color: var(--color-text-muted); }
.hv-a-strip img {
  width: 44px; height: 44px; object-fit: cover; border-radius: 50%; margin-right: -10px;
  border: 2px solid var(--color-surface-2); box-shadow: 0 2px 8px rgba(20, 43, 68, .14);
}
.hv-a-strip span { margin-left: 1.25rem; }
@media (min-width: 960px) { .hv-a-strip { position: absolute; right: .5rem; bottom: -1.25rem; margin: 0; padding: .5rem .875rem .5rem .5rem; background: #fff; border-radius: 9999px; box-shadow: 0 0 0 1px rgba(20, 43, 68, .06), 0 14px 30px -12px rgba(20, 43, 68, .28); } .hv-a-strip img { border-color: #fff; width: 38px; height: 38px; } }

/* ---- B: ciemny, kinowy - nagłówek na środku, kaskada 3 kart ---- */
.hv-b { background: #0B1A2B; color: #fff; padding: calc(var(--header-h) + 2.5rem) 0 2.5rem; text-align: center; }
@media (min-width: 900px) { .hv-b { padding: calc(var(--header-h) + 4rem) 0 3.5rem; } }
.hv-b-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(55% 45% at 18% 0%, rgba(58, 117, 174, .55) 0%, rgba(58, 117, 174, 0) 70%),
    radial-gradient(45% 40% at 85% 15%, rgba(156, 196, 234, .22) 0%, rgba(156, 196, 234, 0) 70%),
    radial-gradient(60% 50% at 50% 110%, rgba(58, 117, 174, .35) 0%, rgba(58, 117, 174, 0) 70%),
    #0B1A2B;
}
.hv-b-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hv-b-head { max-width: 760px; margin: 0 auto 2.5rem; }
.hv-b h1 { color: #fff; font-size: clamp(2.5rem, 6.4vw, 5rem); letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 1.25rem; }
.hv-b h1 span { color: var(--color-sky); }
.hv-b .hv-lead { color: rgba(238, 243, 248, .74); margin-inline: auto; }
.hv-b-cascade { display: grid; gap: .875rem; grid-template-columns: 1fr 1fr; }
.hv-b-card { margin: 0; border-radius: 22px; overflow: hidden; background: #112640; }
.hv-b-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hv-b-c { grid-column: 1 / -1; order: -1; }
.hv-b-c .hv-frame-in { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .hv-b-cascade { grid-template-columns: .82fr 1.6fr .82fr; align-items: center; gap: 0; max-width: 1120px; margin: 0 auto; padding: 1rem 0 1.5rem; }
  .hv-b-l, .hv-b-r { position: relative; z-index: 1; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
  .hv-b-l img, .hv-b-r img { aspect-ratio: 4 / 5; }
  .hv-b-l { transform: rotate(-5deg) translate(9%, 4%); }
  .hv-b-r { transform: rotate(5deg) translate(-9%, 4%); }
  .hv-b-c { grid-column: auto; order: 0; position: relative; z-index: 2; }
}
.hv-b-trust {
  list-style: none; margin: 1.75rem auto 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .625rem;
}
.hv-b-trust li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .875rem; border-radius: 9999px; font-size: .875rem;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: rgba(238, 243, 248, .9);
}
.hv-b-trust svg { color: var(--color-sky); }

/* ---- C: nagłówek w dwóch kolumnach + mozaika bento ---- */
.hv-c { background: #fff; padding: 2rem 0 2.5rem; }
@media (min-width: 960px) { .hv-c { padding: 3rem 0 3.5rem; } }
.hv-c-head { display: grid; gap: 1.25rem; margin-bottom: 1.75rem; }
@media (min-width: 960px) {
  .hv-c-head { grid-template-columns: 1.25fr .85fr; align-items: end; gap: 3rem; margin-bottom: 2.5rem; }
  .hv-c-aside { padding-bottom: .25rem; }
}
.hv-c h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 0; }
.hv-c .hv-lead { margin-bottom: 1.25rem; }
.hv-c-bento { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
.hv-c-tile { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: var(--color-surface-3); }
.hv-c-tile img { width: 100%; height: 100%; object-fit: cover; }
.hv-c-tile figcaption {
  position: absolute; left: .75rem; bottom: .75rem;
  padding: .3rem .75rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  background: rgba(255, 255, 255, .86); color: var(--color-navy);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hv-c-video { grid-column: 1 / -1; grid-row: span 2; }
.hv-c-video .hv-frame, .hv-c-video .hv-frame-in { height: 100%; }
.hv-c-video .hv-frame { padding: 5px; border-radius: 26px; }
.hv-c-video .hv-frame-in { border-radius: 21px; }
.hv-c-navy, .hv-c-cream {
  display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem; padding: 1.125rem 1.25rem;
}
.hv-c-navy { background: var(--color-navy); color: #fff; }
.hv-c-navy svg { color: var(--color-sky); margin-bottom: auto; }
.hv-c-navy b { font-size: 2rem; line-height: 1; letter-spacing: -0.03em; }
.hv-c-navy span { font-size: .8125rem; color: rgba(238, 243, 248, .72); }
.hv-c-cream { background: var(--color-surface-2); color: var(--color-navy); }
.hv-c-cream svg { color: var(--color-brand); margin-bottom: auto; }
.hv-c-cream b { font-size: 1.0625rem; }
.hv-c-cream a { font-size: .9375rem; font-weight: 600; color: var(--color-brand-dark); text-decoration: none; }
@media (min-width: 960px) {
  .hv-c-bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; gap: 1rem; }
  .hv-c-video { grid-column: 1 / 8; grid-row: 1 / 3; }
  .hv-c-t1 { grid-column: 8 / 11; grid-row: 1; }
  .hv-c-navy { grid-column: 11 / 13; grid-row: 1; }
  .hv-c-cream { grid-column: 8 / 10; grid-row: 2; }
  .hv-c-t2 { grid-column: 10 / 13; grid-row: 2; }
  .hv-c-navy b { font-size: 2.5rem; }
}

/* ---- B2 (strona główna): kaskada na górze, pod nią tekst | przyciski ---- */
.hv-b2 { text-align: left; padding-top: calc(var(--header-h) + 1.25rem); padding-bottom: 2.25rem; }
@media (min-width: 900px) { .hv-b2 { padding-top: calc(var(--header-h) + 1.75rem); padding-bottom: 3rem; } }
.hv-b2 .hv-b-cascade { margin-bottom: 1.75rem; }
@media (min-width: 900px) { .hv-b2 .hv-b-cascade { padding: .25rem 0 .75rem; margin-bottom: 2rem; } }
.hv-b-row { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .hv-b-row { grid-template-columns: 1.4fr .7fr; align-items: center; gap: 3.5rem; } }
.hv-b2 h1 { font-size: clamp(1.75rem, 7.4vw, 3.75rem); margin-bottom: 1rem; }
.hv-b2 h1 .nowrap { white-space: nowrap; }
.hv-b2 h1 .accent { color: var(--color-sky); }
.hv-b2 .hv-lead { margin: 0; max-width: 640px; }
.hv-b-cta { display: flex; flex-direction: column; gap: .75rem; }
.hv-b-cta .btn { width: 100%; }
.hv-b2 .hv-b-trust { margin: .5rem 0 0; justify-content: flex-start; }

/* ---------- Dokumenty prawne ---------- */
.legal { padding: 2rem 0 3rem; }
@media (min-width: 900px) { .legal { padding: 3rem 0 4.5rem; } }
.legal-doc { max-width: 800px; margin: 0 auto; }
.legal-doc h1 { font-size: clamp(2rem, 4.5vw, 2.875rem); margin-bottom: .5rem; }
.legal-meta { color: var(--color-text-muted); font-size: .9375rem; margin-bottom: 2rem; }
.legal-doc h2 { font-size: 1.25rem; margin: 2.25rem 0 .75rem; letter-spacing: -0.015em; }
.legal-doc p, .legal-doc li { font-size: 1rem; line-height: 1.7; }
.legal-doc ol, .legal-doc ul { padding-left: 1.375rem; margin: 0 0 1rem; }
.legal-doc li { margin-bottom: .5rem; }
.legal-doc li::marker { color: var(--color-brand); font-weight: 600; }
.legal-doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--color-surface-2); padding: .1em .4em; border-radius: 6px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .9375rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .75rem .875rem; border-bottom: 1px solid var(--color-border); }
.legal-table th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); background: var(--color-surface-2); }
@media (max-width: 599px) {
  .legal-table thead { display: none; }
  .legal-table tr { display: block; padding: .75rem 0; border-bottom: 1px solid var(--color-border); }
  .legal-table td { display: block; border: 0; padding: .2rem 0; }
  .legal-table td:first-child { font-weight: 600; color: var(--color-navy); }
}
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
.form-info { font-size: .8125rem; color: var(--color-text-muted); margin: -.5rem 0 1rem; }

/* ---------- Pasek cookies ---------- */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80;
  display: flex; flex-direction: column; gap: .75rem; align-items: stretch;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .96); color: var(--color-text);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: .9375rem; line-height: 1.5; }
.cookie-bar .btn { min-height: 44px; padding: .625rem 1.25rem; }
@media (min-width: 768px) {
  .cookie-bar { left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 560px; flex-direction: row; align-items: center; gap: 1.25rem; padding-right: 1rem; }
  .cookie-bar .btn { flex-shrink: 0; }
}
.fab-call { transition: transform 200ms ease; }
body.has-cookie-bar .fab-call { transform: translateY(-64px); }

/* B2: nagłówek wyśrodkowany nad kaskadą */
.hv-b2 .hv-b-head { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: none; margin: 0 auto 1.5rem; }
.hv-b2 .hv-b-head .hv-eyebrow { align-self: flex-start; }
.hv-b2 .hv-b-row { display: block; }
.hv-b2 .hv-lead { max-width: none; margin: 0 0 1.25rem; font-size: clamp(1.0625rem, 2.15vw, 1.6875rem); line-height: 1.4; text-wrap: balance; text-align: center; }
/* bieżąca linia atutów */
.hv-ticker {
  overflow: hidden; padding: .625rem 0;
  border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hv-ticker-rail { display: flex; width: max-content; animation: hvTicker 51s linear infinite; }
.hv-ticker-rail span {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(238, 243, 248, .85);
}
.hv-ticker-rail span svg { color: var(--color-sky); }
.hv-ticker-rail span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--color-sky); margin: 0 1.75rem; opacity: .7; }
.hv-ticker:hover .hv-ticker-rail { animation-play-state: paused; }
@keyframes hvTicker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hv-ticker-rail { animation: none; } }
.hv-b2 .hv-b-head h1 { font-size: clamp(1.75rem, 5.2vw, 3.5rem); }
.hv-b2 .hv-b-head h1 { margin-bottom: 0; }
@media (min-width: 900px) { .hv-b2 .hv-b-head { margin-bottom: 1.75rem; } }
.mobile-menu-panel .btn + .btn { margin-top: .5rem; }

/* B2: "linie świetlne" na tle - jak profile LED w suficie napinanym */
.hv-b2 .hv-b-bg { overflow: hidden; }
.hv-line {
  position: absolute; height: 3px; border-radius: 3px; transform-origin: left center;
  background: linear-gradient(90deg, rgba(255, 233, 196, 0) 0%, #FFE9C4 12%, #FFF6E6 50%, #FFE9C4 88%, rgba(255, 233, 196, 0) 100%);
  box-shadow: 0 0 8px 2px rgba(255, 236, 200, .55), 0 0 36px 10px rgba(255, 222, 170, .22), 0 0 90px 24px rgba(255, 210, 150, .1);
  opacity: .7; animation: hvLine 7s ease-in-out infinite;
}
.hv-line-1 { top: 16%; left: -6%; width: 62%; transform: rotate(13deg); }
.hv-line-2 { top: 60%; left: 42%; width: 66%; transform: rotate(-15deg); animation-delay: -2.5s; }
.hv-line-3 { top: 84%; left: -4%; width: 34%; transform: rotate(-7deg); animation-delay: -4.5s; opacity: .5; }
@keyframes hvLine { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
@media (max-width: 767px) { .hv-line { height: 2px; } .hv-line-1 { top: 22%; width: 90%; } .hv-line-2 { top: 64%; left: 20%; width: 95%; } }
@media (prefers-reduced-motion: reduce) { .hv-line { animation: none; } }

/* ---------- Blog: lista i artykuły ---------- */
.blog { padding: 2rem 0 3rem; }
@media (min-width: 900px) { .blog { padding: 3rem 0 4rem; } }
.blog .crumb-back a { color: var(--color-text-muted); }
.blog .crumb-back a:hover { color: var(--color-navy); }
.blog .section-head { max-width: 720px; }
.blog h1 { font-size: clamp(2rem, 4.5vw, 2.875rem); }
.posts-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .posts-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff;
  transition: box-shadow 250ms ease, border-color 250ms ease;
}
.post-card:hover, .post-card:focus-visible { box-shadow: var(--shadow-md); border-color: transparent; }
.post-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--color-surface-3); overflow: hidden; }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.125rem 1.25rem 1.25rem; flex: 1; }
.post-tag { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-brand); }
.post-card-title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; color: var(--color-navy); }
.post-card-desc { font-size: .9375rem; line-height: 1.55; color: var(--color-text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-more { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .9375rem; font-weight: 600; color: var(--color-brand); }

.article { padding: 1.5rem 0 3rem; }
@media (min-width: 900px) { .article { padding: 2.5rem 0 4.5rem; } }
.article-doc { max-width: 760px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .875rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--color-text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--color-navy); text-decoration: underline; }
.article-head h1 { font-size: clamp(1.875rem, 4.6vw, 2.875rem); line-height: 1.12; margin: .5rem 0 1rem; }
.article-meta { font-size: .9375rem; color: var(--color-text-muted); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-border); }
.post-body { font-size: 1.0625rem; line-height: 1.75; color: var(--color-text); }
.post-body .lead { font-size: 1.25rem; line-height: 1.6; color: var(--color-navy); margin-bottom: 1.75rem; }
.post-body h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 2.5rem 0 .875rem; letter-spacing: -0.02em; }
.post-body h3 { font-size: 1.1875rem; margin: 1.75rem 0 .5rem; }
.post-body p { margin: 0 0 1.125rem; }
.post-body ul, .post-body ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.post-body li { margin-bottom: .5rem; }
.post-body li::marker { color: var(--color-brand); font-weight: 600; }
.post-body a { color: var(--color-brand-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(58, 117, 174, .4); }
.post-body a:hover { text-decoration-color: var(--color-brand); }
.post-body blockquote { margin: 1.75rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--color-brand); background: var(--color-surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 1.75rem; font-size: .9375rem; display: block; overflow-x: auto; }
.post-table th, .post-table td { text-align: left; vertical-align: top; padding: .75rem .875rem; border-bottom: 1px solid var(--color-border); min-width: 120px; }
.post-table th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); background: var(--color-surface-2); }
.article-cta { margin: 3rem 0 0; padding: 1.75rem; border-radius: var(--radius); background: var(--color-navy); color: var(--color-on-dark); }
.article-cta h2 { color: #fff; font-size: 1.5rem; margin: 0 0 .5rem; }
.article-cta p { color: var(--color-on-dark-mut); margin: 0 0 1.25rem; }
.article-cta-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.article-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.article-cta .btn-ghost:hover { background: #fff; color: var(--color-navy); }
@media (max-width: 479px) { .article-cta-btns .btn { width: 100%; } }
.related { max-width: var(--container); margin: 3.5rem auto 0; }
.related h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }

/* okno karty oferty: bez mignięcia poprzedniego zdjęcia */
.offer-modal-panel > img { transition: opacity 200ms ease; background: var(--color-surface-2); }
.offer-modal-panel.loading > img { opacity: 0; }
.offer-modal-panel::before {
  content: ""; position: absolute; z-index: 1; left: 50%; top: 120px; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; border: 3px solid var(--color-border); border-top-color: var(--color-brand);
  opacity: 0; transition: opacity 150ms ease; animation: lbSpin 800ms linear infinite; pointer-events: none;
}
.offer-modal-panel.loading::before { opacity: 1; }
@media (min-width: 760px) { .offer-modal-panel::before { left: 25%; top: 50%; } }

/* ---------- Telefon: Oferta, Cennik, Jak działamy w 2 kolumnach ---------- */
@media (max-width: 639px) {
  .types-grid, .pricing-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  /* Oferta */
  .type-mosaic { aspect-ratio: 4 / 3; }
  .type-body { padding: .875rem .75rem 1rem; }
  .type-tag { font-size: .6875rem; letter-spacing: .1em; margin-bottom: .375rem; }
  .type-body h3 { font-size: 1.0625rem; line-height: 1.25; }
  .type-body p { font-size: .8125rem; line-height: 1.5; margin-bottom: .5rem; }
  .type-meta { flex-direction: column; align-items: flex-start; gap: .25rem; padding-top: .75rem; }
  .type-price { font-size: 1.0625rem; }
  .type-price small { font-size: .75rem; }
  .type-link { font-size: .875rem; gap: .375rem; }
  /* Cennik */
  .price-card { padding: 1.5rem .875rem 1rem; }
  .price-card .tag { left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; font-size: .5625rem; letter-spacing: .05em; padding: .3125rem .625rem; }
  .price-card { padding-top: 1.75rem; }
  .price-card h3 { font-size: 1.0625rem; line-height: 1.25; }
  .price-card .amount { font-size: 1.5rem; margin-bottom: .875rem; }
  .price-card .amount small { font-size: .75rem; }
  .price-card ul { font-size: .8125rem; gap: .5rem; margin-bottom: 1.25rem; }
  .price-card li { gap: .4rem; }
  .price-card .btn { padding-left: .5rem; padding-right: .5rem; font-size: .875rem; text-align: center; }
  /* Jak działamy */
  .step::before { width: 44px; height: 44px; font-size: .9375rem; margin-bottom: 1rem; box-shadow: 0 0 0 6px var(--color-navy); }
  .step h3 { font-size: 1.0625rem; line-height: 1.25; }
  .step p { font-size: .8125rem; line-height: 1.5; }
}

/* Telefon: stopka - opis firmy na całą szerokość, Oferta i Kontakt obok siebie */
@media (max-width: 899px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid li, .footer-grid a { overflow-wrap: anywhere; }
  .footer-grid ul { font-size: .875rem; }
}

/* Telefon: Dlaczego my - karuzela ze snapem */
.features-dots { display: none; }
@media (max-width: 639px) {
  .features-grid {
    display: flex; gap: .875rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -1rem; padding: .5rem 1rem 1rem; scroll-padding: 0 1rem;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .features-grid::-webkit-scrollbar { display: none; }
  .features-grid .feature { flex: 0 0 66%; scroll-snap-align: start; padding: 1.5rem 1.25rem 1.25rem; }
  .features-grid .feature.reveal { opacity: 1; transform: none; transition: box-shadow 200ms ease, border-color 200ms ease; }
  .feature-num { top: 1.125rem; right: 1.125rem; }
  .feature-icon { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 1.125rem; }
  .features-dots { display: flex; justify-content: center; gap: 0; }
  .features-dots button {
    width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .features-dots button::before {
    content: ""; width: 8px; height: 8px; border-radius: 9999px; background: #CBBFAE;
    transition: width 200ms ease, background 200ms ease;
  }
  .features-dots button[aria-current="true"]::before { width: 24px; background: var(--color-brand); }
  .features-dots button:focus-visible { outline: 3px solid var(--color-brand-light); outline-offset: -6px; border-radius: 12px; }
}
@media (max-width: 639px) and (prefers-reduced-motion: reduce) { .features-dots button::before { transition: none; } }

/* Telefon: mniejsze odstępy między blokami */
@media (max-width: 639px) {
  section { padding: 1rem 0; }
  .section-head { margin-bottom: 1.125rem; }
  .section-head p { font-size: 1rem; }
  .features-grid { padding-bottom: .25rem; }
  .features-dots { margin-top: -.25rem; margin-bottom: -.5rem; }
  .pricing-note { margin-top: 1rem; }
}

/* ---------- Przełącznik języka ---------- */
.lang-sw { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; padding: 0 .5rem;
  background: none; border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: .875rem; font-weight: 600; letter-spacing: .04em; color: var(--color-navy);
  transition: color 150ms ease, background 150ms ease;
}
.lang-btn:hover { background: rgba(58, 117, 174, .1); }
.lang-btn:focus-visible { outline: 3px solid var(--color-brand-light); outline-offset: 2px; }
.page-home .site-header:not(.scrolled) .lang-btn { color: #fff; }
.page-home .site-header:not(.scrolled) .lang-btn:hover { background: rgba(255, 255, 255, .12); }
.lang-menu {
  position: absolute; top: 100%; right: 0; min-width: 160px; padding: .375rem; margin-top: .25rem; z-index: 60;
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
}
.lang-sw:hover .lang-menu, .lang-sw:focus-within .lang-menu, .lang-sw.open .lang-menu {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.lang-menu a {
  display: flex; align-items: center; min-height: 44px; padding: 0 .875rem; border-radius: 10px;
  font-size: .9375rem; font-weight: 500; color: var(--color-navy); text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}
.lang-menu a:hover { background: var(--color-surface-2); }
.lang-menu a[aria-current="true"] { background: var(--color-navy); color: #fff; }
.lang-row { display: flex; gap: .5rem; margin-top: 1rem; }
.lang-row a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  border: 1px solid var(--color-border); border-radius: 12px; font-size: .9375rem; font-weight: 600;
  color: var(--color-navy); text-decoration: none;
}
.lang-row a[aria-current="true"] { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.lang-row a:focus-visible { outline: 3px solid var(--color-brand-light); outline-offset: 2px; }

/* wersje językowe: dłuższe nagłówki łamią się równo, bez sierot */
h1, h2, h3 { text-wrap: balance; }

/* długie słowa w tłumaczeniach (RU/UK) w wąskich kartach: łamanie wyrazów zamiast wychodzenia poza kartę */
@media (max-width: 639px) {
  .type-body h3, .type-body p, .price-card h3, .price-card li, .step h3, .step p, .feature h3, .feature p {
    overflow-wrap: break-word; hyphens: manual;
  }
  .step h3, .type-body h3, .price-card h3 { font-size: 1rem; }
}

/* ---------- Kupon promocyjny (pojawia się po 10 s) ----------
   Wygląd: bilet z perforacją - po lewej jasny odcinek z dużym "5%", po prawej granat z tekstem i przyciskiem;
   po górnej krawędzi przebiega linia światła (jak linie LED w hero). Kolory z tokenów --color-*. */
.promo {
  --stub: 104px; --notch: 11px;
  position: fixed; z-index: 70; left: 1rem; right: 1rem; top: 76px;
  filter: drop-shadow(0 18px 34px rgba(20, 43, 68, .38));
  opacity: 0; transform: translateY(-18px) scale(.98); pointer-events: none;
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.promo[hidden] { display: none; }
.promo.show { opacity: 1; transform: none; pointer-events: auto; }
.promo-card {
  position: relative; overflow: hidden; border-radius: 18px; color: #fff;
  display: grid; grid-template-columns: var(--stub) 1fr; grid-template-areas: "stub badge" "stub text" "stub cta";
  align-items: center; column-gap: 1rem; row-gap: .375rem; padding: .875rem 2.75rem .875rem 0;
  background: linear-gradient(135deg, #142B44 0%, #1d3d60 100%);
  /* wycięcia biletu na styku odcinków */
  -webkit-mask: radial-gradient(circle var(--notch) at var(--stub) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at var(--stub) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
/* linia światła po górnej krawędzi */
.promo-card::before {
  content: ""; position: absolute; top: 0; left: var(--stub); right: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, transparent 35%, #FFF6E6 50%, transparent 65%, transparent 100%);
  background-size: 220% 100%; background-position: 130% 0;
  box-shadow: 0 0 14px 2px rgba(255, 233, 196, .5);
  animation: promoSweep 4.8s ease-in-out 1.2s infinite;
}
/* perforacja */
.promo-card::after {
  content: ""; position: absolute; top: calc(var(--notch) + 4px); bottom: calc(var(--notch) + 4px); left: var(--stub); width: 0;
  border-left: 2px dashed rgba(255, 255, 255, .28);
}
.promo-stub {
  grid-area: stub; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: -.875rem 0; padding: .875rem .5rem; color: var(--color-navy);
  background: linear-gradient(160deg, #cfe4f7 0%, #9CC4EA 55%, #7fb0e0 100%);
}
.promo-pct { font-size: 2.875rem; line-height: .95; font-weight: 800; letter-spacing: -.04em; }
.promo-pct i { font-style: normal; font-size: 1.5rem; letter-spacing: 0; margin-left: .0625rem; vertical-align: .85rem; }
.promo-off { margin-top: .25rem; font-size: .6875rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.promo-badge {
  grid-area: badge; justify-self: start; font-size: .6875rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-sky); padding-left: .125rem;
}
.promo-badge::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: .5rem; vertical-align: .25em; background: var(--color-sky); border-radius: 2px; }
.promo-text { grid-area: text; margin: 0; font-size: 1rem; line-height: 1.35; color: #fff; }
.promo-text strong { font-weight: 800; white-space: nowrap; border-bottom: 2px solid rgba(156, 196, 234, .55); }
.promo-cta {
  grid-area: cta; justify-self: start; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  margin-top: .125rem; padding: 0 1.125rem; border-radius: 9999px; font-size: .9375rem; font-weight: 700; white-space: nowrap;
  color: var(--color-navy); background: #fff; text-decoration: none;
  transition: background 150ms ease, transform 150ms ease, gap 150ms ease;
}
.promo-cta:hover { background: var(--color-sky); gap: .75rem; }
.promo-cta:active { transform: scale(.98); }
.promo-cta:focus-visible, .promo-close:focus-visible { outline: 3px solid var(--color-sky); outline-offset: 2px; }
.promo-close {
  position: absolute; top: 2px; right: 2px; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px;
  background: none; color: rgba(255, 255, 255, .7); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: color 150ms ease, background 150ms ease;
}
.promo-close:hover { color: #fff; background: rgba(255, 255, 255, .12); }
@keyframes promoSweep { 0% { background-position: 130% 0; } 55%, 100% { background-position: -30% 0; } }
@media (min-width: 768px) {
  .promo { --stub: 118px; top: auto; left: 1.5rem; right: auto; bottom: 1.5rem; width: 396px; transform: translateY(18px) scale(.98); }
  .promo.show { transform: none; }
  .promo-card { padding: 1rem 3rem 1rem 0; row-gap: .5rem; }
  .promo-stub { margin: -1rem 0; padding: 1rem .5rem; }
  .promo-pct { font-size: 3.5rem; }
  .promo-pct i { font-size: 1.75rem; vertical-align: 1.05rem; }
  .promo-text { font-size: 1.125rem; }
}
@media (prefers-reduced-motion: reduce) { .promo, .promo-card::before { transition: none; animation: none; } }

/* strona Kontakt: niższy hero, formularz od razu pod nim */
.page-hero-slim { padding-top: 7.5rem; padding-bottom: 3rem; min-height: 0; }
.page-hero-slim p { margin-bottom: 0; }
@media (max-width: 767px) { .page-hero-slim { padding-top: 6.5rem; padding-bottom: 2rem; } }

/* Formularz wyceny: bardziej zwarty (pola nadal min. 44 px wysokości) */
.contact-form { padding: 1.25rem; max-width: 460px; width: 100%; justify-self: end; border-radius: var(--radius); }
@media (min-width: 640px) { .contact-form { padding: 1.5rem; } }
.contact-form h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.form-row { gap: .75rem; margin-bottom: .75rem; }
.field label { font-size: .8125rem; margin-bottom: .25rem; }
.field input, .field select { min-height: 44px; padding-top: .5rem; padding-bottom: .5rem; font-size: .9375rem; }
.form-consent { font-size: .75rem; gap: .5rem; margin-bottom: 1rem; line-height: 1.45; }
.form-info { font-size: .75rem; margin-bottom: .875rem; }
.contact-form .btn { min-height: 46px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr minmax(0, 460px); gap: 4rem; } }
@media (max-width: 1023px) { .contact-form { justify-self: stretch; max-width: none; } }

/* karta formularza kończy się pod przyciskiem (nie rozciąga się do wysokości lewej kolumny) */
.contact-form { align-self: start; }

/* ---------- Własna lista wyboru ---------- */
.field input:not([type="hidden"]) { border-radius: 12px; }
.select { position: relative; }
.select-btn {
  width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .5rem .875rem .5rem 1rem; text-align: left; font: inherit; font-size: .9375rem; cursor: pointer;
  color: var(--color-navy); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.select-btn:hover { border-color: var(--color-brand-light); }
.select-btn:focus-visible, .select.open .select-btn { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(58, 117, 174, .18); }
.select-btn svg { flex-shrink: 0; color: var(--color-brand); transition: transform 200ms ease; }
.select.open .select-btn svg { transform: rotate(180deg); }
.select-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.select-val.is-empty { color: var(--color-text-muted); font-weight: 400; }
.select-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: .375rem; list-style: none;
  max-height: 280px; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--color-border); border-radius: 14px; box-shadow: 0 18px 44px rgba(20, 43, 68, .2);
  animation: selectIn 160ms ease-out;
}
.select-list[hidden] { display: none; }
.select-list li {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; padding: .5rem .75rem;
  border-radius: 10px; font-size: .9375rem; color: var(--color-navy); cursor: pointer;
  transition: background 120ms ease;
}
.select-list li svg { flex-shrink: 0; opacity: 0; color: var(--color-brand); }
.select-list li.is-active { background: var(--color-surface-2); }
.select-list li[aria-selected="true"] { font-weight: 700; color: var(--color-brand); }
.select-list li[aria-selected="true"] svg { opacity: 1; }
/* pierwsze dwie pozycje (brak wyboru / konsultacja) odcięte od listy rodzajów */
.select-list li:nth-child(2) { margin-bottom: .25rem; padding-bottom: .5rem; border-bottom: 1px solid var(--color-border); border-radius: 10px 10px 0 0; }
@keyframes selectIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .select-list { animation: none; } .select-btn svg { transition: none; } }
