/* ============================
   4COMFORT – Main Stylesheet
   ============================ */

:root {
  --navy:        #1B2B4B;
  --navy-mid:    #243560;
  --navy-deep:   #0D1525;
  --cream:       #FAFAF6;
  --cream-warm:  #F0EAE0;
  --sand:        #DDD7CC;
  --white:       #ffffff;
  --gold:        #C8A96E;
  --gold-dark:   #A8823E;
  --gold-light:  #D9BF90;
  --text:        #1B2B4B;
  --text-muted:  #5E6E8A;
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Montserrat', sans-serif;
  --radius: 6px;
  --radius-lg: 18px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; width: 100%; object-fit: cover; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── REVEAL ANIMATIONS ─────────────────────── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal-up  { transform: translateY(40px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-up.in, .reveal-left.in, .reveal-right.in {
  opacity: 1; transform: none;
}

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease,
              color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 169, 110, 0.38);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── SECTION LABELS ─────────────────────────── */
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 2rem;
}
.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-size: 0.92rem;
}

/* ══════════════════════════════════════════════
   NAVBAR – FLOATING LIQUID GLASS PILL
══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 1100px;
  z-index: 100;
  padding: 0.9rem 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1),
              inset 0 1px 0 rgba(255,255,255,0.15);
  transition:
    background 0.5s ease,
    box-shadow 0.5s ease,
    border-color 0.5s ease;
  animation: navSlideDown 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  overflow: hidden;
}

/* Top shimmer line */
.navbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.55) 25%,
    rgba(200,169,110,0.45) 50%,
    rgba(255,255,255,0.55) 75%,
    transparent 100%
  );
  pointer-events: none;
  animation: shimmerSlide 5s ease-in-out infinite;
}

/* Inner glass depth */
.navbar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  pointer-events: none;
  border-radius: var(--radius-lg);
}

@keyframes navSlideDown {
  from { transform: translateX(-50%) translateY(-100%); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

/* Animacja mobile – TYLKO opacity, zero transform.
   transform w fill-mode:both tworzyłby containing block dla position:fixed
   dzieci (nav-links), przez co overflow:hidden navbaru by je przycinał. */
@keyframes navDropMobile {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmerSlide {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1;   }
}

.navbar.scrolled {
  background: rgba(27, 43, 75, 0.8);
  backdrop-filter: blur(32px) saturate(220%);
  -webkit-backdrop-filter: blur(32px) saturate(220%);
  border-color: rgba(200, 169, 110, 0.2);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-placeholder svg { width: 40px; height: 40px; border-radius: 3px; }
.logo-placeholder.small svg { width: 36px; height: 36px; }
.logo-text, .logo-placeholder span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--white);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold-light); }

/* CTA pill with text swap on hover */
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 50px !important;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  box-shadow: 0 4px 16px rgba(200,169,110,0.38), 0 1px 4px rgba(0,0,0,0.12) !important;
  transition: background 0.3s, box-shadow 0.3s !important;
}
.nav-cta:hover {
  background: var(--gold-dark) !important;
  box-shadow: 0 6px 22px rgba(200,169,110,0.52), 0 2px 8px rgba(0,0,0,0.16) !important;
}
.nav-cta .cta-default,
.nav-cta .cta-hover {
  display: block;
  transition: transform 0.32s ease, opacity 0.32s ease;
  pointer-events: none;
}
.nav-cta .cta-hover {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 16px));
  opacity: 0;
  white-space: nowrap;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}
.nav-cta:hover .cta-default {
  transform: translateY(-16px);
  opacity: 0;
}
.nav-cta:hover .cta-hover {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 1;
}

/* Overlay za panelem menu na mobile */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 499;
  opacity: 0;
  transition: opacity 0.38s ease;
}
.nav-overlay.open {
  display: block;
  opacity: 1;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--white);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 21, 37, 0.9) 0%,
    rgba(27, 43, 75, 0.62) 55%,
    rgba(27, 43, 75, 0.32) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-top: 80px;
}
.hero-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-title span {
  display: block;
  font-size: 0.58em;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-top: 0.2em;
  -webkit-text-stroke: 1.5px var(--gold);
  color: transparent;
}
.hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-counter {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 2;
  display: flex;
  background: rgba(200, 169, 110, 0.14);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-top: 1px solid rgba(200, 169, 110, 0.28);
}
.counter-item {
  flex: 1;
  padding: 1.25rem 2rem;
  border-right: 1px solid rgba(200, 169, 110, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}
.counter-item:last-child { border-right: none; }
.counter-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--white);
  line-height: 1;
}
.counter-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.hero-scroll {
  position: absolute;
  bottom: 100px;
  right: 2rem;
  z-index: 2;
}
.hero-scroll span {
  display: block; width: 1px; height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(200,169,110,0.85));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%       { transform: scaleY(0.65); opacity: 1; }
}

/* ── SERVICES ───────────────────────────────── */
.services {
  background: var(--cream);
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 4rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--sand);
  margin-top: 1.5rem;
}
.service-card {
  padding: 1.5rem 1.2rem;
  border-right: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  transition: background 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* gold sweep line on hover */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover {
  background: var(--cream-warm);
  box-shadow: inset 0 0 0 1px rgba(200,169,110,0.18);
}
.service-card:hover .service-icon svg { stroke: var(--gold); }
.service-card:hover h3 { color: var(--gold-dark); }

.service-icon { width: 32px; height: 32px; margin-bottom: 0.75rem; }
.service-icon svg {
  width: 100%; height: 100%;
  stroke: var(--navy);
  transition: stroke 0.3s;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--navy);
  transition: color 0.3s;
}
.service-card p {
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── SPECIALTY ──────────────────────────────── */
.specialty {
  background: var(--navy);
  color: var(--white);
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 5rem;
}
.specialty-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.specialty-text .section-label { color: var(--gold); }
.specialty-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.specialty-text h2 span { color: var(--gold); }
.specialty-lead {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
}
.specialty-text p {
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

/* Styled list items */
.specialty-list {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
}
.specialty-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.68);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 1px 4px rgba(0,0,0,0.12);
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  cursor: default;
}
.specialty-list li:hover {
  background: rgba(200,169,110,0.1);
  border-color: rgba(200,169,110,0.3);
  color: var(--white);
}
.specialty-list li:hover .num {
  background: var(--gold);
  color: var(--navy);
}
.specialty-list .num {
  min-width: 26px;
  height: 26px;
  background: rgba(200,169,110,0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}

.specialty-img { position: relative; }
.specialty-img img {
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%       { transform: translateY(-12px) rotate(4deg); }
}

/* Circle badge */
.specialty-badge {
  position: absolute;
  bottom: -1rem;
  left: -1.5rem;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 32px rgba(200, 169, 110, 0.45);
  padding: 0;
  text-align: center;
  gap: 0;
  animation: badgeFloat 4s ease-in-out infinite;
}
.specialty-badge strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
}
.specialty-badge span {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-top: 0.15rem;
}

/* ══════════════════════════════════════════════
   STATS – COMPACT ANIMATED CARD
══════════════════════════════════════════════ */
.stats-section {
  background: var(--navy-mid);
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 2rem 4rem;
}

/* Animated elliptical orbiting rings */
.stats-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(200, 169, 110, 0.1);
  pointer-events: none;
  animation: ringOrbit 18s linear infinite;
}
.stats-section::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 1200px; height: 780px;
  border-radius: 50%;
  border: 1px solid rgba(200, 169, 110, 0.05);
  pointer-events: none;
  animation: ringOrbit 28s linear infinite reverse;
}
@keyframes ringOrbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.stats-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 1100px;
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 169, 110, 0.15);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  padding: 0;
}
.stat {
  flex: 1;
  text-align: center;
  padding: 3rem 1.5rem;
  cursor: default;
  transition: background 0.35s;
}
.stat:hover { background: rgba(200, 169, 110, 0.1); }
.stat:hover .stat-num { color: var(--gold-light); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 6rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.35s;
}
.stat-desc {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 0.6rem;
}
.stat-divider {
  width: 1px;
  background: rgba(200, 169, 110, 0.15);
  align-self: stretch;
}

/* ── TRUST ──────────────────────────────────── */
.trust-section {
  padding: 100px 0 5rem;
  background: var(--cream-warm);
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.trust-img img { height: 460px; object-fit: cover; border-radius: var(--radius); }
.trust-text .section-label { color: var(--gold); }
.trust-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--navy);
}
.trust-text p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.trust-text .btn { margin-top: 1rem; }
.trust-text .btn-primary {
  box-shadow: 0 4px 20px rgba(200,169,110,0.32), 0 1px 6px rgba(0,0,0,0.1);
}
.trust-text .btn-primary:hover {
  box-shadow: 0 8px 28px rgba(200,169,110,0.5), 0 2px 10px rgba(0,0,0,0.12);
}

/* ══════════════════════════════════════════════
   PARTNERS
══════════════════════════════════════════════ */
.partners-section {
  padding: 100px 0 4rem;
  background: var(--navy);
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.partners-section .section-label { color: var(--gold); }
.partners-section .section-title { color: var(--white); }
.partners-desc {
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
}
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.partner-card {
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid var(--gold);
  padding: 1.5rem 1.75rem 1.4rem;
  transition: background 0.28s, box-shadow 0.28s;
}
.partner-card:hover {
  background: rgba(255,255,255,0.052);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}
.partner-cat {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.5;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.partner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.partner-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  background: transparent;
  transition: background 0.22s, border-color 0.22s, color 0.22s,
              transform 0.22s, box-shadow 0.22s;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.partner-chip:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200,169,110,0.3);
}

/* ══════════════════════════════════════════════
   PROJECTS – AUTO-SLIDING CAROUSEL
══════════════════════════════════════════════ */
.projects-section {
  padding: 100px 0 2rem;
  background: var(--cream);
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.projects-section .container { margin-bottom: 0; }
.projects-section .section-desc { display: block; margin-bottom: 0; }
.projects-section .section-title { margin-bottom: 0.5rem; }

.projects-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 1.5rem 0 0;
}
.projects-track {
  display: flex;
  gap: 1.25rem;
  padding: 0.5rem 2rem 0.75rem;
  transition: transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.project-card {
  position: relative;
  flex-shrink: 0;
  width: calc(33.333% - 0.84rem);
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.22);
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.project-card:hover img { transform: scale(1.06); }
.project-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(13, 21, 37, 0.96) 0%, transparent 100%);
  color: var(--white);
}
.project-date {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}
.project-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Project card – "Nowa" badge */
.project-badge-new {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 30px;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* Slider navigation */
.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 0 2rem;
}
.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--sand);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.slider-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: scale(1.08);
}
.slider-btn svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.slider-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sand);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.dot.active {
  background: var(--navy);
  width: 22px;
  border-radius: 4px;
}
.dot:hover:not(.active) { background: var(--text-muted); }

/* ── CONTACT + FOOTER WRAPPER ───────────────── */
.contact-footer-block {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--navy);
}

/* ── CONTACT ────────────────────────────────── */
.contact-section {
  flex: 1;
  padding: 100px 0 2rem;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-inner {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 5rem;
  align-items: center;
}
.contact-person { text-align: center; }
.contact-person img {
  height: 380px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  filter: grayscale(20%);
}
.contact-person-info {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.contact-person-info strong {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-person-info span { font-size: 0.95rem; color: rgba(255,255,255,0.7); }

.contact-form-wrap .section-label { color: var(--gold); }
.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.contact-form-wrap p {
  font-size: 0.86rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.52);
  margin-bottom: 2rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color 0.25s;
  outline: none;
  width: 100%;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.28); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); }
.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
}
.form-check input { width: auto; flex-shrink: 0; margin-top: 3px; accent-color: var(--gold); }
.form-check span { font-size: 0.75rem; color: rgba(255,255,255,0.38); line-height: 1.5; }
.form-check a { color: var(--gold); }

/* ── FOOTER ─────────────────────────────────── */
.footer { background: var(--navy-deep); padding: 0.75rem 0 0.6rem; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.footer-logo .logo-placeholder span { font-size: 1.1rem; }
.footer-contact {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-contact a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.25s;
}
.footer-contact a:hover { color: var(--gold); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.18);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.5rem;
  width: 100%;
  text-align: center;
}
.footer-copy a { color: rgba(255,255,255,0.28); }

/* ── TOAST ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast--error { border-left-color: #e05252; }

/* ── PAGE HEADER (subpages) ─────────────────── */
.page-header {
  background: var(--navy);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
}
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.01em;
}
.page-header .section-label { color: var(--gold); margin-bottom: 1rem; }
.page-header p {
  color: rgba(255,255,255,0.45);
  margin-top: 1rem;
  max-width: 600px;
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ── GALLERY PAGE ───────────────────────────── */
.gallery-grid { padding: 5rem 0; background: var(--cream); }
.gallery-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  background: none;
  border: 1px solid var(--sand);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.gallery-masonry { columns: 3; column-gap: 1.25rem; }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item img { width: 100%; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(27, 43, 75, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.gallery-overlay svg {
  width: 32px; height: 32px;
  stroke: var(--white);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { background: rgba(27, 43, 75, 0.4); }
.gallery-item:hover .gallery-overlay svg { opacity: 1; }
.gallery-item-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(13,21,37,0.9), transparent);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-item-label { transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.25s;
  line-height: 1;
}
.lightbox-close:hover { color: var(--gold); }

/* ── PRIVACY PAGE ───────────────────────────── */
.privacy-content { padding: 5rem 0 7rem; background: var(--cream); }
.privacy-content .container { max-width: 820px; }
.privacy-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.privacy-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin: 1.75rem 0 0.5rem;
}
.privacy-content p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.privacy-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.privacy-content ul li {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.privacy-content .intro-box {
  background: var(--cream-warm);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
}
.privacy-content .intro-box p { margin: 0; color: var(--text); font-weight: 500; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  /* Services – 3 kolumny zostają (3×3 = 9) */
  .services-grid { grid-template-columns: repeat(3, 1fr); }

  /* Partners */
  .partner-card { padding: 1.25rem 1.4rem 1.2rem; }
  .partner-chip { font-size: 0.7rem; padding: 0.34rem 0.8rem; }

  /* Specialty – 2 kolumny zostają, zmniejszamy gap i obrazek */
  .specialty-inner { gap: 3rem; }
  .specialty-img img { height: 380px; }
  .specialty-badge { bottom: 0; left: 0.5rem; }

  /* Trust – 2 kolumny zostają, zmniejszamy gap i obrazek */
  .trust-inner { gap: 3rem; }
  .trust-img img { height: 380px; }

  /* Contact – 2 kolumny z węższym zdjęciem */
  .contact-inner { grid-template-columns: 240px 1fr; gap: 3rem; }
  .contact-person img { height: 260px; }

  .gallery-masonry { columns: 2; }
  .project-card { width: calc(50% - 0.63rem); }
}

@media (max-width: 768px) {

  /* ── Scroll snap – proximity: snap effect without trapping content ── */
  html { scroll-snap-type: y proximity; }

  /* ── Navbar – full-width bar on mobile ── */
  /* WAŻNE: usuwamy backdrop-filter – tworzy on nowy containing block
     dla position:fixed dzieci, przez co nav-links ląduje wewnątrz
     navbaru i jest przycinane przez overflow:hidden                  */
  .navbar {
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0 0 16px 16px;
    animation: navDropMobile 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(13, 21, 37, 0.92);
    /* Navbar MUSI być powyżej overlay (z-index:499).
       Nav-links jest wewnątrz stacking context navbaru,
       więc podniesienie navbaru do 600 wynosi cały panel menu ponad overlay. */
    z-index: 600;
  }
  .navbar.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(13, 21, 37, 0.97);
  }
  .hamburger {
    display: flex;
    position: relative;
    z-index: 210;
  }

  /* Panel menu – teraz prawidłowo relative do viewport */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 75vw;
    max-width: 320px;
    height: 100vh;
    background: rgba(13, 21, 37, 0.99);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 5rem 2rem 3rem;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(200, 169, 110, 0.15);
    border-radius: 0;
    z-index: 500;
    box-shadow: -8px 0 32px rgba(0,0,0,0.45);
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links li:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
  .nav-links a {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    padding: 1.1rem 0;
    width: 100%;
    color: rgba(255,255,255,0.82);
  }
  .nav-links a:hover,
  .nav-links a.active { color: var(--gold); }
  .nav-links .nav-cta {
    margin-top: 1.5rem;
    width: 100%;
    display: block !important;
    text-align: center;
    padding: 0.8rem 1rem !important;
    border-radius: 6px !important;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-cta { min-width: auto !important; }

  /* ── Hero – full screen, fixed counter at bottom ── */
  .hero {
    height: 100vh;
    min-height: 600px;
    padding-bottom: 0;
    scroll-snap-align: start;
  }
  .hero-content {
    padding: 100px 1.5rem 1.5rem;
  }
  .hero-title { font-size: clamp(1.8rem, 7vw, 3rem); }
  .hero-sub {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 100%;
  }
  .hero-actions { gap: 0.75rem; }
  .hero-counter {
    position: absolute;
    bottom: 0; left: 0; right: 0;
  }
  .counter-item { padding: 0.9rem 0.5rem; }
  .counter-num { font-size: 1.5rem; }
  .counter-label { font-size: 0.52rem; letter-spacing: 0.12em; }
  .hero-scroll { display: none; }

  /* ── Services – 2-col compact grid ── */
  .services {
    min-height: auto;
    padding: 85px 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    scroll-snap-align: start;
  }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card { padding: 1rem 0.9rem; }
  .service-card h3 { font-size: 0.75rem; }
  .service-card p {
    font-size: 0.7rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .service-icon { width: 26px; height: 26px; margin-bottom: 0.5rem; }

  /* ── Specialty – single column, compact ── */
  .specialty {
    min-height: auto;
    padding: 85px 0 3rem;
    scroll-snap-align: start;
  }
  .specialty-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .specialty-img { order: -1; }
  .specialty-img img { height: 220px; }
  .specialty-badge {
    width: 78px; height: 78px;
    bottom: -0.5rem; left: 0.5rem;
  }
  .specialty-badge strong { font-size: 1.55rem; }
  .specialty-list {
    grid-template-columns: 1fr;
    gap: 0.32rem;
    margin-top: 1rem;
  }
  .specialty-list li { padding: 0.45rem 0.65rem; font-size: 0.73rem; }
  .specialty-text p { font-size: 0.82rem; }

  /* ── Stats – 2×2 grid, full screen ── */
  .stats-section {
    min-height: 100vh;
    padding: 85px 1.25rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
  }
  .stats-grid {
    flex-wrap: wrap;
    border-radius: 14px;
    width: 100%;
  }
  .stat {
    flex: 0 0 50%;
    min-width: 50%;
    padding: 2.5rem 1rem;
    text-align: center;
  }
  .stat-divider { display: none; }
  .stat-num { font-size: clamp(3rem, 10vw, 4.5rem); }
  .stat-desc { font-size: 0.6rem; }

  /* ── Trust – single column, compact ── */
  .trust-section {
    min-height: auto;
    padding: 85px 0 3rem;
    scroll-snap-align: start;
  }
  .trust-inner { grid-template-columns: 1fr; gap: 2rem; }
  .trust-img img { height: 230px; }
  .trust-text h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); }

  /* ── Partners – single column on mobile ── */
  .partners-section {
    min-height: auto;
    padding: 85px 0 3rem;
  }
  .partners-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .partner-card { padding: 1.1rem 1.2rem; }
  .partner-cat { margin-bottom: 0.75rem; padding-bottom: 0.65rem; }
  .partner-chip { font-size: 0.68rem; padding: 0.3rem 0.75rem; white-space: normal; }
  .trust-text p { font-size: 0.84rem; }

  /* ── Projects carousel ── */
  .projects-section {
    min-height: auto;
    padding: 85px 0 2rem;
    justify-content: flex-start;
    scroll-snap-align: start;
  }
  .project-card { width: calc(85vw); height: 300px; }

  /* ── Contact + Footer wrapper (mobile) ── */
  .contact-footer-block { min-height: 100vh; }

  /* ── Contact – compact, person as avatar ── */
  .contact-section {
    padding: 85px 0 1.5rem;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  .contact-person { text-align: center; }
  .contact-person img {
    height: 180px;
    width: 180px;
    border-radius: 50%;
    margin: 0 auto;
    object-fit: cover;
    object-position: center top;
  }
  .contact-person-info { margin-top: 0.75rem; }
  .contact-form-wrap h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .contact-form .btn-primary { width: 100%; text-align: center; display: block; }
  .form-row { grid-template-columns: 1fr; }

  /* ── Gallery ── */
  .gallery-masonry { columns: 1; }

  /* ── Page header (galeria.html) ── */
  .page-header { padding: 5rem 0 2.5rem; }
  .page-header h1 { font-size: clamp(2rem, 10vw, 3.5rem); }

  /* ── Footer ── */
  .footer { padding: 1.25rem 0 1rem; }
  .footer-inner { gap: 0.75rem; }
  .footer-contact { flex-direction: column; gap: 0.75rem; }
  .footer-links { gap: 1rem; justify-content: center; }
  .footer-copy { font-size: 0.6rem; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; width: 100%; }
  .counter-num { font-size: 1.3rem; }
  .counter-label { font-size: 0.48rem; }

  /* Services – 1 kolumna na małych telefonach */
  .services { padding: 75px 0 1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-icon { width: 22px; height: 22px; margin-bottom: 0.4rem; }
  .service-card { padding: 0.85rem 0.75rem; }

  /* Stats */
  .stat { flex: 0 0 100%; min-width: 100%; padding: 2rem 1.5rem; }
  .stat-num { font-size: 4rem; }

  /* Specialty */
  .specialty-img img { height: 180px; }

  /* General typography */
  .section-title { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .section-label { font-size: 0.62rem; }

  /* Projects */
  .project-card { width: calc(90vw); height: 280px; }

  /* Contact */
  .contact-person img { height: 150px; width: 150px; }
}

@media (max-width: 390px) {
  .counter-item { padding: 0.7rem 0.3rem; }
  .counter-num { font-size: 1.2rem; }
  .hero-title { font-size: clamp(1.5rem, 7.5vw, 2rem); }
  .service-card h3 { font-size: 0.7rem; }
  .stat-num { font-size: 3.5rem; }
}


/* ── NISKIE EKRANY: laptopy z viewport < 820px ─ */
/* mandatory snap + 100px padding + 3-col grid: przy 768px treść  */
/* musi się zmieścić w 100vh – redukujemy tylko padding i marginesy */
@media (max-height: 820px) and (min-width: 769px) {
  .services         { padding: 80px 0 2rem; }
  .services .section-title { margin-bottom: 0.75rem; }
  .services-grid    { margin-top: 0.5rem; }
  .service-card     { padding: 1rem 1rem; }
  .specialty        { padding: 80px 0 3rem; }
  .stats-section    { padding: 80px 2rem 3rem; }
  .trust-section    { padding: 80px 0 3rem; }
  .projects-section { padding: 80px 0 1.5rem; }
  .partners-section { padding: 80px 0 2rem; }
  .partner-card     { padding: 1.1rem 1.4rem; }
  .contact-section  { padding: 80px 0 1.5rem; }
  /* Zmniejszamy obrazy w trust i specialty żeby mieściły się w 100vh */
  .specialty-img img  { height: 340px; }
  .trust-img img      { height: 340px; }
  .contact-person img { height: 220px; }
}

/* ══════════════════════════════════════════════
   GALERIA – KARTY PROJEKTÓW (nowy układ)
══════════════════════════════════════════════ */
.portfolio-grid {
  padding: 5rem 0 7rem;
  background: var(--cream);
}
.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .portfolio-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portfolio-cards { grid-template-columns: 1fr; } }

.project-card-portfolio {
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(27,43,75,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
.project-card-portfolio:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(27,43,75,0.16);
}
.project-card-portfolio .card-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.project-card-portfolio .card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card-portfolio:hover .card-thumb img {
  transform: scale(1.07);
}
.card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,21,37,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
}
.project-card-portfolio:hover .card-thumb-overlay { opacity: 1; }
.card-thumb-overlay svg {
  width: 48px; height: 48px;
  stroke: var(--white);
  stroke-width: 1.5;
  fill: none;
}
.project-card-portfolio .card-body {
  padding: 1.4rem 1.6rem 1.6rem;
}
.project-card-portfolio .card-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.project-card-portfolio .card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.project-card-portfolio .card-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.project-card-portfolio .card-count svg {
  width: 14px; height: 14px;
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* ── PROJECT LIGHTBOX (pełnoekranowa galeria projektu) ── */
.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(9,14,25,0.97);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.project-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.plb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.plb-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.04em;
}
.plb-counter {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.plb-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  transition: color 0.2s;
}
.plb-close:hover { color: var(--gold); }

/* Main image view */
.plb-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.plb-main img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.plb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background 0.2s, color 0.2s;
  backdrop-filter: blur(8px);
}
.plb-nav-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.plb-nav-btn.prev { left: 1.25rem; }
.plb-nav-btn.next { right: 1.25rem; }
.plb-nav-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.5; fill: none; }

/* Thumbnail strip */
.plb-thumbs {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1.5rem;
  overflow-x: auto;
  flex-shrink: 0;
  background: rgba(0,0,0,0.4);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.plb-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.55;
}
.plb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.plb-thumb.active { border-color: var(--gold); opacity: 1; }
.plb-thumb:hover { opacity: 0.85; }

