/* ============================================================
   WEBPLESS INTERACTIVE — Landing Page v2 "Editorial"
   Jasny, redakcyjny design: hairline borders, mono-etykiety,
   wielka typografia, zero blur/glass (wydajność).
   ============================================================ */

:root {
  /* Marka */
  --blue:       #338dbe;   /* primary */
  --blue-deep:  #023f72;   /* hover / logo */
  --blue-muted: #7bbfda;
  --blue-50:    #eef7fc;
  --blue-100:   #d3ecf7;
  --blue-200:   #a8d8ef;

  /* Neutralne — chłodny, czysty podkład (spójny z niebieskim marki) */
  --paper:      #F5F7FA;
  --surface:    #ffffff;
  --ink:        #0B1220;
  --muted:      #4A5568;
  --line:       #DCE1E8;
  --line-soft:  #E9EDF2;

  --radius: 20px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
  /* clip: pre-animacyjne translateX elementów .anim nie może tworzyć poziomego scrolla */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--blue-100); color: var(--blue-deep); }

section[id], aside[id] { scroll-margin-top: 84px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================================
   TYPOGRAFIA
   ============================================================ */

.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; }
h4, h5 { font-family: var(--font-body); letter-spacing: -0.01em; }

/* Mono etykieta — sygnatura designu */
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #445060;
}
.mono-label b, .mono-label strong { color: var(--blue); font-weight: 800; }

/* Słowo konturowe w nagłówkach */
.text-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
@media (max-width: 767px) {
  .text-outline { -webkit-text-stroke: 1.2px var(--ink); }
}
.text-outline-blue {
  color: transparent;
  -webkit-text-stroke: 2px var(--blue);
}
@media (max-width: 767px) {
  .text-outline-blue { -webkit-text-stroke: 1.2px var(--blue); }
}

/* Gradient marki — nagłówek w laptopie hero */
.brand-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo */
.logo-font { font-family: var(--font-mono); }
.logo-text { font-weight: 800; color: var(--blue-deep); letter-spacing: -0.04em; }
.logo-brackets { color: var(--blue); font-weight: 400; }

/* ============================================================
   NAGŁÓWKI SEKCJI — indeks + hairline
   ============================================================ */

.section-index {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.section-index::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-index .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px -4px rgba(2, 63, 114, 0.4);
}
.section-index .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #313d4b;
  white-space: nowrap;
}

/* Znaczniki "+" na krawędziach sekcji */
.plus-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--line);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* ============================================================
   TŁA
   ============================================================ */

.bg-grid {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
}
.bg-grid-fade {
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 78%);
}

/* ============================================================
   NAWIGACJA
   ============================================================ */

.nav-bar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(220, 225, 232, 0.9);
  box-shadow: 0 4px 24px -12px rgba(11, 18, 32, 0.12);
}

.nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--blue); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--blue);
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after { width: 100%; }

/* ============================================================
   PRZYCISKI
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  padding: 16px 28px;
  border-radius: 14px;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.2s ease, background-color 0.2s ease,
              border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; padding: 15px 22px; }
}
.btn .btn-arrow { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, #338dbe 0%, #1c5c82 65%, #023f72 100%);
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(2, 63, 114, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2876a5 0%, #1c5c82 50%, #023f72 100%);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(2, 63, 114, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #232a33; transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  color: var(--ink);
  border: 1px solid #C6CEDA;
  box-shadow: 0 2px 8px -4px rgba(11, 18, 32, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-sm { padding: 11px 20px; font-size: 12px; border-radius: 11px; }

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #313d4b;
  white-space: nowrap;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 56px;
}
.marquee-item .sep { color: var(--blue); font-weight: 800; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SZKŁO — umiarkowane blury (wydajność scrolla)
   ============================================================ */

.glass {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 32px rgba(11, 18, 32, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateZ(0);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 60px rgba(11, 18, 32, 0.12), 0 2px 8px rgba(11, 18, 32, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateZ(0);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 12px rgba(11, 18, 32, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.glass-dark {
  background: rgba(16, 24, 39, 0.5);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Miękkie plamy światła w tle sekcji */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  pointer-events: none;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.85; }
}
.blob-pulse { animation: pulse-soft 9s ease-in-out infinite; will-change: opacity; }
.is-scrolling .blob-pulse { animation-play-state: paused; }

/* ============================================================
   KOLORY TONALNE USŁUG — łamią monotonię, ułatwiają skanowanie
   ============================================================ */

.tone-blue   { --tone: #2876a5; --tone-bg: #E4F1F9; --tone-bd: #A8D8EF; }
.tone-purple { --tone: #7c3aed; --tone-bg: #F3EFFE; --tone-bd: #DDD1FB; }
.tone-orange { --tone: #EA580C; --tone-bg: #FFF1E6; --tone-bd: #FED7AA; }
.tone-green  { --tone: #059669; --tone-bg: #E7F8F1; --tone-bd: #A7F3D0; }
.tone-indigo { --tone: #4F46E5; --tone-bg: #EEF0FE; --tone-bd: #C7D2FE; }
.tone-amber  { --tone: #B45309; --tone-bg: #FEF5E7; --tone-bd: #FDE68A; }
.tone-red    { --tone: #DC2626; --tone-bg: #FDECEC; --tone-bd: #FECACA; }

[class*="tone-"] .svc-ico {
  background: var(--tone-bg);
  border-color: var(--tone-bd);
  color: var(--tone);
}
[class*="tone-"] .price-chip {
  color: var(--tone);
  background: var(--tone-bg);
  border-color: var(--tone-bd);
}
.card-hover[class*="tone-"]:hover { border-color: var(--tone-bd); }
.card-hover[class*="tone-"]:hover .svc-ico,
.why-cell[class*="tone-"]:hover .svc-ico {
  background: var(--tone);
  border-color: var(--tone);
  color: #fff;
}
.card-hover[class*="tone-"]:hover .card-num { color: var(--tone); }
.why-cell[class*="tone-"]:hover { background: var(--tone-bg); }

/* ============================================================
   SEKCJA CIEMNA (portfolio) — nadpisania
   ============================================================ */

.section-dark .section-index::after { background: rgba(255, 255, 255, 0.12); }
.section-dark .section-index .lbl { color: #C8D2DE; }
.section-dark .mono-label { color: #93A3B5; }
.section-dark .mono-label b { color: #7bbfda; }
.section-dark .card-arrow {
  border-color: rgba(255, 255, 255, 0.16);
  color: #93A3B5;
}
.section-dark .work-frame {
  border-color: rgba(255, 255, 255, 0.12);
  background: #101827;
}

/* ============================================================
   KARTY
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 10px 28px -20px rgba(11, 18, 32, 0.12);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  border-color: var(--blue);
  box-shadow: 0 30px 60px -30px rgba(2, 63, 114, 0.35);
}

/* Numer karty w tle */
.card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #AEB8C4;
  font-weight: 800;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}
.card-hover:hover .card-num { color: var(--blue); }

/* Ikona usługi */
.svc-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  color: var(--blue-deep);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.card-hover:hover .svc-ico {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(51, 141, 190, 0.5);
}

/* Chip ceny */
.price-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #023f72;
  background: #E4F1F9;
  border: 1px solid var(--blue-200);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Strzałka narożna karty */
.card-arrow {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.card-hover:hover .card-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: rotate(45deg);
}

/* Karta VIP — ciemna */
.card-vip {
  background: var(--ink);
  border: 1px solid #262c35;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.card-vip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.card-vip::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(51,141,190,0.22) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.card-vip:hover {
  transform: translateY(-5px);
  box-shadow: 0 40px 80px -40px rgba(2, 63, 114, 0.6);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */

.work-card { display: block; }
.work-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--line-soft);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.work-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-frame {
  border-color: var(--blue);
  box-shadow: 0 30px 60px -30px rgba(2, 63, 114, 0.3);
}
.work-card:hover .card-arrow {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: rotate(45deg);
}
.work-card:hover .work-frame img { transform: scale(1.04); }

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 25, 0.55);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 12px;
  transform: translateY(8px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-overlay span { transform: translateY(0); }

.work-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 7px 12px;
  border-radius: 9px;
}
.work-tag i { color: var(--blue); }

/* ============================================================
   PANEL WIZARDA
   ============================================================ */

.wizard-panel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  height: 660px;
  box-shadow: 0 40px 80px -50px rgba(2, 63, 114, 0.35);
}
@media (max-width: 1023px) {
  .wizard-panel { height: 620px; }
}

/* Pasek okna nad wizardem */
.wizard-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  flex-shrink: 0;
}
.wizard-chrome .dots { display: flex; gap: 6px; }
.wizard-chrome .dots span { width: 9px; height: 9px; border-radius: 50%; }
.wizard-chrome .dots span:nth-child(1) { background: #FF5F57; }
.wizard-chrome .dots span:nth-child(2) { background: #FEBC2E; }
.wizard-chrome .dots span:nth-child(3) { background: #28C840; }
.wizard-chrome .url {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Kafelki wyboru usługi w wizardzie (markup generowany przez JS) */
.svc-tile {
  background-color: var(--paper);
  border-color: var(--line) !important;
}
.svc-tile:hover {
  background-color: var(--blue-50);
  border-color: var(--blue) !important;
  box-shadow: 0 6px 16px -6px rgba(51, 141, 190, 0.3);
  transform: translateY(-2px);
}
.svc-tile .svc-icon {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue);
}
.svc-tile:hover .svc-icon {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.svc-tile .svc-cta { color: var(--blue); opacity: 0.55; }
.svc-tile:hover .svc-cta { opacity: 1; }
.svc-tile:hover .svc-arrow {
  opacity: 1;
  transform: translateY(0);
  background: var(--blue);
  color: #fff;
}

.svc-tile-vip {
  background-color: var(--ink);
  border-color: var(--ink) !important;
}
.svc-tile-vip p { color: #fff !important; }
.svc-tile-vip p + p { color: #8b94a1 !important; }
.svc-tile-vip .svc-icon {
  background: rgba(51, 141, 190, 0.18);
  border: 1px solid rgba(51, 141, 190, 0.35);
  color: var(--blue-muted);
}
.svc-tile-vip:hover {
  border-color: var(--blue) !important;
  box-shadow: 0 8px 24px -8px rgba(2, 63, 114, 0.6);
  transform: translateY(-2px);
}
.svc-tile-vip:hover .svc-icon { background: var(--blue); color: #fff; }
.svc-tile-vip .svc-cta { color: var(--blue-muted); }
.svc-tile-vip:hover .svc-cta { color: #fff; }
.svc-tile-vip:hover .svc-arrow {
  opacity: 1;
  transform: translateY(0);
  background: var(--blue);
  color: #fff;
}

/* Przyciski kroków wizarda */
.step-btn {
  background-color: var(--surface);
  border-color: #C6CEDA;
  color: #313d4b;
}
.step-btn:hover {
  background-color: var(--blue-50);
  border-color: var(--blue);
  color: var(--blue-deep);
}
.step-btn.is-on {
  border-color: var(--blue) !important;
  background-color: var(--blue) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(51, 141, 190, 0.3);
}

/* Range input */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
}
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  background: var(--line);
  border-radius: 3px;
}
input[type=range]::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  margin-top: -7.5px;
  box-shadow: 0 2px 8px rgba(51, 141, 190, 0.35);
  border: 2.5px solid #ffffff;
}
input[type=range]::-moz-range-track {
  height: 5px;
  background: var(--line);
  border-radius: 3px;
}
input[type=range]::-moz-range-thumb {
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: var(--blue);
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(51, 141, 190, 0.35);
  cursor: pointer;
}

/* ============================================================
   FORMULARZ KONTAKTOWY
   ============================================================ */

.field-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #313d4b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.input-base {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-base::placeholder { color: #A8ADB5; font-weight: 500; }
.input-base:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51, 141, 190, 0.14);
}

.cf-select {
  width: 100%;
  padding: 13px 42px 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cf-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51, 141, 190, 0.14);
}

/* ============================================================
   STATUS / ZEGAR
   ============================================================ */

@keyframes pulse-green {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes pulse-red {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.bg-green-pulse { background-color: #22c55e; animation: pulse-green 2s infinite; }
.bg-red-pulse   { background-color: #ef4444; animation: pulse-red 2s infinite; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow: 0 2px 10px rgba(11, 18, 32, 0.07);
  border-radius: 999px;
  padding: 7px 14px;
}
/* Klasy .btn/.status-pill nadpisują tailwindowe `hidden` (kolejność CSS),
   więc widoczność w nawigacji sterowana jest tutaj */
@media (max-width: 767.98px) {
  .nav-cta { display: none; }
}
@media (max-width: 639.98px) {
  .nav-bar .status-pill { display: none; }
}

/* ============================================================
   PROCES — 4 kroki na linii
   ============================================================ */

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
}
@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
}
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .process-grid::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 40px;
    right: 40px;
    height: 1px;
    background: var(--line);
  }
}

.process-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--blue);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}
.process-step:hover .process-num {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(51, 141, 190, 0.55);
}

/* ============================================================
   DLACZEGO — siatka z hairline dividerami
   ============================================================ */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 640px)  { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-cell {
  background: var(--surface);
  padding: 32px 28px;
  transition: background-color 0.3s ease;
}
.why-cell:hover { background: #EAF3FA; }
.why-cell:hover .svc-ico {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ============================================================
   SOCIAL / STOPKA
   ============================================================ */

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.2s ease;
}
.social-icon:hover { transform: translateY(-3px); }
.social-icon.fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.social-icon.yt:hover { background: #FF0000; border-color: #FF0000; color: #fff; }
.social-icon.li:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.social-icon.gm:hover { background: #34A853; border-color: #34A853; color: #fff; }

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: #9CA3AF;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.footer-social-btn:hover { transform: translateY(-2px); background: var(--blue); border-color: var(--blue); color: #fff; }

.footer-link {
  font-size: 13px;
  font-weight: 600;
  color: #8b94a1;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-link:hover { color: #fff; padding-left: 4px; }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px)  { .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .footer-cols { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem; } }

/* ============================================================
   ANIMACJE WEJŚCIA (scroll reveal)
   ============================================================ */

.anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.anim--left  { transform: translateX(-28px); }
.anim--right { transform: translateX(28px); }
.anim--fade  { transform: translateY(10px); }
.anim.in-view { opacity: 1; transform: none; will-change: auto; }

/* Hero — animacja startowa bez JS */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-rise { animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-rise-1 { animation-delay: 0.05s; }
.hero-rise-2 { animation-delay: 0.15s; }
.hero-rise-3 { animation-delay: 0.25s; }
.hero-rise-4 { animation-delay: 0.35s; }
.hero-rise-5 { animation-delay: 0.45s; }

/* Delikatny float dla dekoracji hero */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes float-y-delayed {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}
.animate-float-y { animation: float-y 5s infinite ease-in-out; will-change: transform; }
.animate-float-y-delayed { animation: float-y-delayed 6s infinite ease-in-out; will-change: transform; }

.is-scrolling .animate-float-y,
.is-scrolling .animate-float-y-delayed,
.is-scrolling .marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-rise { animation: none; }
  .marquee-track { animation: none; }
  .animate-float-y, .animate-float-y-delayed { animation: none; }
  .bg-green-pulse, .bg-red-pulse { animation: none; }
  .blob-pulse { animation: none; }
}

/* ============================================================
   WYDAJNOŚĆ — content-visibility na sekcjach poza pierwszym ekranem
   Przeglądarka pomija render off-screen → szybszy paint.
   contain-intrinsic-size rezerwuje wysokość, żeby nie skakał scroll.
   ============================================================ */
#realizacje,
#proces,
#dlaczego,
#kontakt,
footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* ============================================================
   POPUP ZGÓD COOKIES (RODO) — responsywny
   ============================================================ */
.cookie-banner {
  position: fixed;
  z-index: 90;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 460px;
  margin: 0 auto;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px -12px rgba(11, 18, 32, 0.28);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .45s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-banner__text {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.cookie-banner__text a {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 700;
}
.cookie-banner__text a:hover { color: var(--blue-deep); }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.cookie-btn--accept {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
}
.cookie-btn--accept:hover { filter: brightness(1.07); }
.cookie-btn--reject {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.cookie-btn--reject:hover { background: var(--paper); }

@media (max-width: 420px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 18px 18px; }
  .cookie-btn { flex-basis: 100%; }
}

/* ============================================================
   STRONY PRAWNE (polityka prywatności / cookies / klauzula)
   ============================================================ */
.legal-page { background: var(--paper); color: var(--ink); min-height: 100vh; }
.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.legal-header .legal-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-body { padding: 48px 0 96px; }
.legal-body h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.legal-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 40px;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal-body h3 { font-weight: 700; font-size: 1rem; margin: 22px 0 8px; }
.legal-body p, .legal-body li {
  font-size: 15px;
  line-height: 1.7;
  color: #33404f;
  font-weight: 500;
}
.legal-body p { margin-bottom: 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px 22px; }
.legal-body li { margin-bottom: 7px; }
.legal-body a { color: var(--blue); text-decoration: underline; font-weight: 600; }
.legal-body a:hover { color: var(--blue-deep); }
.legal-body strong { color: var(--ink); font-weight: 700; }
.legal-body .legal-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 20px 0;
}
.legal-body table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 13.5px; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.legal-body th { background: var(--paper); font-weight: 700; }
.legal-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal-back {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.legal-back:hover { color: var(--blue-deep); }
.legal-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 12px; color: var(--muted); }
