/* ========================================
   PROMPTOZA — strony i grafiki dla małych firm
   Static Stylesheet
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --text: #111111;
  --muted: #6b7280;
  --border: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.3);
  --font-body: 'Geist', system-ui, -apple-system, sans-serif;
  --font-heading: 'Oswald', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== Standardowy kursor systemowy (wyłącza dawny custom cursor / lupę) ===== */
* { cursor: auto !important; }

a,
button,
label,
summary,
select,
[role="button"],
.magnetic-btn,
.tilt-card,
.service-card,
.service-toggle,
.service-action,
.graphic-modal-trigger,
.video-modal-trigger,
.graphic-nav,
.modal-back,
.video-modal-close,
.sound-control,
.footer-social-link { cursor: pointer !important; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea { cursor: text !important; }

.cursor-dot,
.cursor-ring { display: none !important; }

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

@media (min-width: 769px) {
  a, button, input, select, textarea, label {
    cursor: none;
  }
}

/* --- Preloader (dark, white-red brand) --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0c0c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-text {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  display: flex;
  overflow: hidden;
}

/* PROMPT = biały, OZA = czerwony (brand Promptoza) */
.preloader-text .preloader-char { color: #ffffff; }
.preloader-text .preloader-char.is-red { color: var(--primary); }

.preloader-char {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
  animation: preloaderCharReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.preloader-line {
  width: 0;
  height: 3px;
  background: var(--primary);
  margin-top: 1.5rem;
  border-radius: 2px;
  animation: preloaderLineExpand 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes preloaderLineExpand {
  to { width: 120px; }
}


.preloader-sound {
  width: min(320px, calc(100vw - 3rem));
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preloader-sound-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.preloader-sound-track {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.preloader-sound-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #ff3b3b);
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.55);
  transition: width 0.25s ease;
}

.preloader-sound-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  margin: 0.9rem auto 0;
  min-height: 38px;
  padding: 0 1.1rem;
  border: 1px solid rgba(220, 38, 38, 0.42);
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.14);
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: none;
  transition: background 0.26s ease, border-color 0.26s ease, transform 0.26s ease;
}

.preloader-sound-button:hover,
.preloader-sound-button:focus-visible {
  background: rgba(220, 38, 38, 0.9);
  border-color: var(--primary);
  transform: translateY(-1px);
  outline: none;
}

.sound-equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 18px;
  height: 16px;
}

.sound-equalizer span {
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  animation: soundEqualizer 0.72s ease-in-out infinite;
  transform-origin: bottom;
}

.sound-equalizer span:nth-child(2) { animation-delay: 0.12s; }
.sound-equalizer span:nth-child(3) { animation-delay: 0.24s; }
.sound-equalizer span:nth-child(4) { animation-delay: 0.36s; }

.sound-equalizer.is-idle span,
.sound-control:not(.is-playing) .sound-equalizer span,
.preloader-sound-button:not(.is-playing) .sound-equalizer span {
  animation-play-state: paused;
  opacity: 0.68;
}

@keyframes soundEqualizer {
  0%, 100% { height: 6px; }
  25% { height: 15px; }
  50% { height: 9px; }
  75% { height: 13px; }
}

.sound-control {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 9100;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0 0.9rem;
  border: 1px solid rgba(220, 38, 38, 0.42);
  border-radius: 999px;
  background: rgba(10, 12, 12, 0.78);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  transition: background 0.26s ease, border-color 0.26s ease, opacity 0.26s ease, transform 0.26s ease;
  animation: soundPulse 2.33s ease-in-out infinite;
}

@keyframes soundPulse {
  0%, 100% { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(220, 38, 38, 0); }
  50% { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), 0 0 16px 3px rgba(220, 38, 38, 0.5); }
}

.sound-control:hover,
.sound-control:focus-visible {
  background: rgba(220, 38, 38, 0.92);
  border-color: var(--primary);
  outline: none;
  transform: translateY(-1px);
}

.sound-control.is-playing {
  border-color: rgba(220, 38, 38, 0.78);
  background: rgba(220, 38, 38, 0.88);
}

.preloader:not(.hidden) ~ .sound-control {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .sound-control {
    left: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    min-height: 40px;
    padding: 0 0.75rem;
    cursor: pointer;
  }

  .preloader-sound-button {
    cursor: pointer;
  }
}
/* --- Grain Overlay --- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.03;
  animation: grainShift 0.5s steps(3) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2px, 1px); }
  66%  { transform: translate(1px, -1px); }
  100% { transform: translate(-1px, 2px); }
}

/* --- Vignette --- */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 8999;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.08) 100%);
}

/* --- Particle Canvas --- */
.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* --- Custom Cursor: mini-lupa --- */
.cursor-dot { display: none; }   /* zastąpione lupą (.cursor-ring) */

/* Soczewka lupy */
.cursor-ring {
  position: fixed;
  width: 26px;
  height: 26px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 2px 8px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 10000;
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.3s ease;
}

/* Rączka lupy (dolny-prawy róg soczewki) */
.cursor-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transform: translate(6px, 6px) rotate(45deg);
  transform-origin: left center;
}

/* Najechanie na element interaktywny — lekkie powiększenie */
.cursor-ring.hovering {
  width: 34px;
  height: 34px;
  background: rgba(220, 38, 38, 0.12);
}

.cursor-ring.is-hidden { opacity: 0; }

@media (max-width: 768px) {
  .cursor-ring { display: none; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(-100%);
}

.nav.visible {
  transform: translateY(0);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: logoPulse 2.33s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(220, 38, 38, 0)); }
  50% { filter: drop-shadow(0 0 7px rgba(220, 38, 38, 0.55)); }
}

.nav-logo-red { color: var(--primary); }
.nav-logo-black { color: var(--text); }

.nav:not(.scrolled) .nav-logo-black {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.legal-page .nav .nav-logo-black {
  color: var(--text);
  text-shadow: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: none;
  transition: background 0.26s ease, transform 0.26s ease, box-shadow 0.26s ease;
  animation: navPulse 2.33s ease-in-out infinite;
}

.nav-cta:hover {
  background: var(--primary-dark);
}

@keyframes navPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(220, 38, 38, 0.22), 0 0 12px 2px rgba(220, 38, 38, 0.25); }
  50% { box-shadow: 0 4px 16px rgba(220, 38, 38, 0.28), 0 0 28px 7px rgba(220, 38, 38, 0.6); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-cta { padding: 0.5rem 1.25rem; font-size: 0.8rem; }
  .nav-actions { gap: 0.5rem; }
}

@media (max-width: 380px) {
  .nav { padding: 0.85rem 0.9rem; }
  .nav-cta { padding: 0.45rem 0.9rem; }
  .nav-actions { gap: 0.4rem; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 7rem clamp(1.5rem, 7vw, 8rem) 4rem;
  background-color: #0a0c0c;
}

/* Warstwa wideo — osobny layer, by płynnie animować zoom (transform = bez repaintu) */
.hero-eye {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  object-fit: cover;
  object-position: center center;
  transform-origin: 64% 45%;            /* środek oka w kadrze */
  will-change: transform;
  animation: heroEyeZoom 18s ease-in-out infinite;
}

@keyframes heroEyeZoom {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* Przy włączonym „ogranicz ruch" — łagodniejszy, wolniejszy zoom (zamiast całkowitego wyłączenia) */
@media (prefers-reduced-motion: reduce) {
  .hero-eye { animation: heroEyeZoom 26s ease-in-out infinite; }
  @keyframes heroEyeZoom {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
  }
}

/* Ciemna nakładka: tworzy spokojne pole pod copy i zostawia oko jako dominantę kadru */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 64% 45%, rgba(12, 22, 28, 0.06) 0%, rgba(12, 22, 28, 0.18) 25%, rgba(5, 7, 9, 0.58) 62%, rgba(5, 7, 9, 0.82) 100%),
    linear-gradient(90deg, rgba(5, 7, 9, 0.88) 0%, rgba(5, 7, 9, 0.70) 34%, rgba(5, 7, 9, 0.32) 56%, rgba(5, 7, 9, 0.70) 100%),
    linear-gradient(180deg, rgba(5, 7, 9, 0.22) 0%, rgba(5, 7, 9, 0.72) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 63% 46%, rgba(125, 211, 252, 0.16) 0%, rgba(125, 211, 252, 0.06) 13%, transparent 28%),
    radial-gradient(circle at 64% 46%, transparent 0%, transparent 18%, rgba(220, 38, 38, 0.10) 19%, transparent 32%);
  mix-blend-mode: screen;
  opacity: 0.72;
}

/* Aurora Blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: blobFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: #ea580c;
  bottom: 20%;
  right: 10%;
  animation-delay: -3s;
  animation-duration: 10s;
}

.hero-blob-3 {
  width: 350px;
  height: 350px;
  background: #d97706;
  top: calc(50% - 175px);
  left: calc(50% - 175px);
  animation-delay: -5s;
  animation-duration: 12s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(30px, -40px) scale(1.05); }
  50%      { transform: translate(-20px, 20px) scale(0.95); }
  75%      { transform: translate(40px, 30px) scale(1.03); }
}

/* Grid Texture */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: min(650px, 47vw);
  margin: 0;
  transform: translateY(2vh);
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(5, 7, 9, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-badge.visible {
  animation: fadeInUp 0.6s ease forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.5); }
}

/* Hero Heading */
.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5.4vw, 5.8rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  perspective: 600px;
}

.hero-heading-line {
  display: block;
  overflow: hidden;
}

.hero-heading-char {
  display: inline-block;
  transform: translateY(100%) rotateX(-80deg);
  opacity: 0;
  transform-origin: bottom center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.hero-heading-char.revealed {
  transform: translateY(0) rotateX(0deg);
  opacity: 1;
}

/* Eliminacja mignięcia: ukryj heading dopóki JS nie zawiń liter.
   Klasa zdejmuje się w JS po animacji (lub fallback gdy JS wyłączone). */
.hero-pre-anim #heading-kreujemy,
.hero-pre-anim #heading-wizje {
  visibility: hidden;
}

/* Bez JS: natychmiast widoczne */
.no-js .hero-pre-anim #heading-kreujemy,
.no-js .hero-pre-anim #heading-wizje {
  visibility: visible;
}

.hero-heading-black {
  color: #ffffff;
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.46);
}

.hero-heading-red {
  color: var(--primary);
  text-shadow: 0 10px 34px rgba(220, 38, 38, 0.32);
}

@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 580px;
  margin: 0 0 2.25rem;
  line-height: 1.65;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
}

.hero-subtitle.visible {
  animation: fadeInUp 0.6s ease 0.3s forwards;
}

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

/* Hero Buttons */
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.hero-buttons.visible {
  animation: fadeInUp 0.6s ease 0.5s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: none;
  transition: background 0.26s ease, box-shadow 0.26s ease;
  will-change: transform;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: none;
  transition: border-color 0.26s ease, color 0.26s ease, box-shadow 0.26s ease;
  will-change: transform;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: #ffffff;
  background: rgba(220, 38, 38, 0.16);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.btn-primary:focus-visible,
.btn-outline:focus-visible,
.form-submit:focus-visible {
  outline: 2px solid rgba(220, 38, 38, 0.72);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .hero {
    justify-content: center;
    padding-inline: 2rem;
  }
  .hero-eye { object-position: 58% center; }

  .hero-content {
    max-width: 720px;
    text-align: center;
    transform: translateY(1vh);
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 92vh;
    padding: 6.5rem 1.25rem 3.5rem;
  }
  .hero-eye { object-position: 62% center; }

  .hero-heading {
    font-size: clamp(2.25rem, 11.2vw, 3.35rem);
    line-height: 0.98;
  }

  .hero-badge {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.5rem, 7vw, 8rem);
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 1.2s forwards;
}

@media (max-width: 1100px) {
  .scroll-indicator {
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
  }
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(8px); opacity: 0.3; }
}

.scroll-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

/* --- Marquee --- */
.marquee-section {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  user-select: none;
}

.marquee-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Services --- */
.services-section {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 680px;
  margin: 0 0 3rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Wyśrodkowany nagłówek sekcji */
.section-head--center { text-align: center; }
.section-head--center .section-intro { margin-left: auto; margin-right: auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(40px);
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.39s ease, border-color 0.39s ease;
  overflow: hidden;
}

/* --- Tilt effect (wspólny dla wszystkich .tilt-card: usługi, proces, formularz) --- */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.service-card:hover {
  border-color: rgba(220, 38, 38, 0.15);
  box-shadow: 0 8px 40px rgba(220, 38, 38, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.service-card.has-card-toggle {
  cursor: none;
}

.service-number {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* Realizacje (karta stron internetowych) — miniatury stron */
.service-works {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-works[hidden] {
  display: none;
}

.service-works a {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.33s ease, transform 0.33s ease, box-shadow 0.33s ease;
  cursor: none;
}

.service-works a:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.12);
}

.service-work-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
}

.service-work-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-works a {
  transition: border-color 0.43s ease, transform 0.43s ease, box-shadow 0.43s ease;
}

.graphic-works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.graphic-works[hidden] {
  display: none;
}

.graphic-works .service-work-thumb {
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.72);
}

.graphic-works .service-work-thumb img {
  object-fit: contain;
  object-position: center;
  transition: transform 0.68s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-works a:hover .service-work-thumb img {
  transform: scale(1.025);
}

.graphic-works .service-work-label {
  min-height: 44px;
  justify-content: center;
}

.graphic-works .service-work-name {
  font-size: 0.74rem;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-thumb::after {
  content: '▶';
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.24);
}

.facebook-video-thumb {
  background:
    radial-gradient(circle at 50% 46%, rgba(220, 38, 38, 0.24), transparent 34%),
    linear-gradient(135deg, #15171a, #2b2f36);
}

.service-works a:hover .service-work-thumb img {
  transform: scale(1.04);
}

.graphic-works a:hover .service-work-thumb img {
  transform: scale(1.025);
}

.service-work-label {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.6);
}

.service-work-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.service-work-domain,
.service-work-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.service-work-desc {
  margin-top: 0.2rem;
}

.service-toggle,
.service-action {
  margin-top: auto;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  cursor: none;
  text-align: left;
}

.service-toggle.is-open {
  opacity: 1;
}

.service-toggle svg {
  transition: transform 0.39s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-toggle.is-open svg {
  transform: rotate(90deg);
}

.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.39s ease, transform 0.39s ease;
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

.service-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  transition: transform 0.39s ease;
}

.service-card:hover .service-arrow svg {
  transform: translateX(4px);
}

.audience-panel {
  margin-top: 1.5rem;
}

.audience-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin-top: 1rem;
}

.audience-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.audience-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

@media (max-width: 640px) {
  .audience-list { grid-template-columns: 1fr; }
}

/* ============================================================
   Kampania SEO — karta flagowa (pozycjonowanie w erze AI)
   Jedyna ciemna karta w jasnej sekcji — nawiązuje do oka z hero
   (oko = być widzianym; SEO = być znajdowanym przez Google i AI)
   ============================================================ */
.seo-feature {
  position: relative;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.75rem;
  border-radius: 1.25rem;
  overflow: hidden;
  color: #f4f5f6;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(220, 38, 38, 0.22), transparent 46%),
    radial-gradient(90% 120% at 100% 100%, rgba(125, 211, 252, 0.08), transparent 50%),
    #0b0d0e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.seo-feature-glow {
  position: absolute;
  inset: auto -10% -45% 28%;
  height: 75%;
  background: radial-gradient(closest-side, rgba(220, 38, 38, 0.25), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.seo-feature-body { position: relative; z-index: 1; }

.seo-feature { will-change: transform; }

.seo-feature-num {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff6a5a;
  margin-bottom: 1.1rem;
}

.seo-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(220, 38, 38, 0.16);
  border: 1px solid rgba(220, 38, 38, 0.3);
  margin-bottom: 1.25rem;
}

.seo-feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: #ff6a5a;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-feature-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.seo-feature-sub {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #9aa0a6;
}

.seo-feature-desc {
  margin: 1.1rem 0 1.5rem;
  max-width: 46ch;
  color: #c4c8cc;
  font-size: 0.98rem;
  line-height: 1.65;
}

.seo-feature-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.85rem;
}

.seo-feature-list li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.92rem;
  color: #e3e5e7;
  line-height: 1.45;
}

.seo-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.02em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #dc2626 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 0.72rem no-repeat;
}

.seo-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.55rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #ff3b3b);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.seo-feature-cta svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.seo-feature-cta:hover,
.seo-feature-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(220, 38, 38, 0.42);
}

.seo-feature-cta:hover svg,
.seo-feature-cta:focus-visible svg { transform: translateX(4px); }

.seo-feature-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Signature — mock odpowiedzi asystenta AI */
.seo-answer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.seo-answer-tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9aa0a6;
}

.seo-answer-q p {
  font-size: 0.98rem;
  font-style: italic;
  color: #e9eaec;
}

.seo-answer-a {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem;
  border-radius: 0.85rem;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.seo-answer-avatar {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff5a4a);
}

.seo-answer-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.55);
  animation: seoPulse 2.4s ease-out infinite;
}

@keyframes seoPulse {
  0%   { box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(125, 211, 252, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 211, 252, 0); }
}

.seo-answer-text p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #eef0f1;
}

.seo-answer-text strong { color: #fff; }

.seo-answer-source {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;
  font-size: 0.7rem;
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.22);
}

@media (max-width: 860px) {
  .seo-feature {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seo-answer-pulse { animation: none; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- Process --- */
.process-section {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.process-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.process-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(220, 38, 38, 0.1));
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .process-line { left: 20px; }
}

.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.process-step:nth-child(even) {
  direction: rtl;
}

.process-step:nth-child(even) > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-left: 3.5rem;
  }
  .process-step:nth-child(even) {
    direction: ltr;
  }
}

.process-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid var(--bg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
  z-index: 1;
}

@media (max-width: 768px) {
  .process-dot { left: 20px; top: 0.5rem; }
}

.process-content {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  transition: box-shadow 0.39s ease;
}

.process-content:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.process-step-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.process-step-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.process-spacer {
  /* empty column for alignment */
}

/* --- Contact --- */
.contact-section {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Gradientowy blob podążający za myszką (parallax) */
.contact-glow {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(232, 56, 42, 0.30), rgba(232, 56, 42, 0.10) 45%, rgba(232, 56, 42, 0) 72%),
    radial-gradient(closest-side at 70% 35%, rgba(255, 110, 90, 0.22), rgba(255, 110, 90, 0) 65%);
  filter: blur(70px);
  opacity: 0.9;
  transform: translate3d(-50%, -50%, 0) translate3d(var(--glow-x, 0px), var(--glow-y, 0px), 0);
  will-change: transform;
}

.contact-card {
  position: relative;
  z-index: 1;
  padding: 3rem;
  border-radius: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 60px rgba(17, 17, 17, 0.05);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.39s ease, border-color 0.39s ease;
  overflow: hidden;
}

/* Glare dla tilt karty formularza obsługuje wspólna reguła .tilt-card::above (powyżej) */

.contact-card.tilting {
  box-shadow: 0 20px 60px rgba(220, 38, 38, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: rgba(220, 38, 38, 0.15);
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.22;
}

.contact-title-accent {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--primary);
}

.contact-desc {
  max-width: 560px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 2rem 1.5rem; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1.5px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: border-color 0.26s ease, box-shadow 0.26s ease, background 0.26s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: none;
}

.form-select option {
  background: #fff;
  color: var(--text);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: none;
  transition: background 0.26s ease, box-shadow 0.26s ease, transform 0.26s ease;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}

/* Honeypot — ukryty przed ludźmi, widoczny dla botów */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Status formularza (aria-live) */
.form-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
}
.form-status.success { color: #16a34a; }
.form-status.error { color: var(--primary); }
.form-status.loading { color: var(--muted); }

/* Stany przycisku submit */
.form-submit.is-sending { opacity: 0.75; pointer-events: none; }
.form-submit.is-success { background: #16a34a; }

/* Błędy walidacji */
.form-error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}


/* --- Video modal --- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(220, 38, 38, 0.16), transparent 34%),
    rgba(8, 8, 9, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.video-modal-panel {
  position: relative;
  width: min(980px, 100%);
  overflow: hidden;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 0.8rem;
  background: rgba(18, 18, 20, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  color: #fff;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.is-open .video-modal-panel {
  transform: translateY(0) scale(1);
}

.modal-back {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.modal-back span { font-size: 1.1rem; line-height: 1; }

.modal-back:hover,
.modal-back:focus-visible {
  border-color: var(--primary);
  background: rgba(220, 38, 38, 0.88);
  transform: translateX(-2px);
  outline: none;
}

/* Header nie zachodzi pod przycisk „Wróć" */
.modal-back + .video-modal-close + .video-modal-header { padding-left: 7rem; }

.video-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 20;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: none;
  transition: border-color 0.26s ease, background 0.26s ease, transform 0.26s ease;
}

.video-modal-close::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
  border-color: var(--primary);
  background: rgba(220, 38, 38, 0.88);
  transform: rotate(90deg);
  outline: none;
}

.video-modal-header {
  position: relative;
  z-index: 5;
  padding: 1.1rem 4.3rem 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal-label {
  margin: 0 0 0.25rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-modal-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-modal-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  background: #050505;
  cursor: auto;
}

.video-modal-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: auto;
}

.video-modal.is-vertical {
  padding-block: 1rem;
}

.video-modal.is-vertical .video-modal-panel {
  display: flex;
  flex-direction: column;
  width: min(460px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
}

.video-modal.is-vertical .video-modal-frame {
  aspect-ratio: auto;
  height: min(82vh, 800px);
  max-height: calc(100vh - 9rem);
}

.video-modal.is-vertical .video-modal-frame iframe {
  width: 100%;
  height: 100%;
}

.graphic-modal-panel {
  width: min(920px, 100%);
}

.graphic-modal-frame {
  display: grid;
  place-items: center;
  min-height: min(70vh, 720px);
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(220, 38, 38, 0.12), transparent 36%),
    #0a0c0c;
}

.graphic-modal-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: 0.45rem;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  transition: opacity 0.25s ease;
  /* Subtelne, samoczynne przybliżanie i oddalanie wyświetlanego zdjęcia */
  animation: photoBreath 8s ease-in-out infinite;
  will-change: transform;
}

@keyframes photoBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}

/* Przy „ogranicz ruch" — jeszcze delikatniej, ale efekt zostaje */
@media (prefers-reduced-motion: reduce) {
  .graphic-modal-frame img {
    animation: photoBreath 11s ease-in-out infinite;
  }
  @keyframes photoBreath {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.022); }
  }
}

.graphic-modal-frame img.is-swapping { opacity: 0; }

/* Odtwarzacz wideo wewnątrz galerii grafik (pionowy Short) */
.graphic-modal-frame iframe {
  display: block;
  height: min(74vh, 780px);
  aspect-ratio: 9 / 16;
  width: auto;
  max-width: 100%;
  border: 0;
  border-radius: 0.6rem;
  background: #000;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

/* [hidden] musi wygrać z display:block powyżej */
.graphic-modal-frame img[hidden],
.graphic-modal-frame iframe[hidden] { display: none; }

/* Strzałki przewijania galerii grafik */
.graphic-nav {
  position: absolute;
  top: 56%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.graphic-nav svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.graphic-nav-prev { left: 0.85rem; }
.graphic-nav-next { right: 0.85rem; }

.graphic-nav:hover,
.graphic-nav:focus-visible {
  background: rgba(220, 38, 38, 0.9);
  border-color: var(--primary);
  outline: none;
}

.graphic-nav-prev:hover,
.graphic-nav-prev:focus-visible { transform: translateY(-50%) translateX(-3px); }

.graphic-nav-next:hover,
.graphic-nav-next:focus-visible { transform: translateY(-50%) translateX(3px); }

body.video-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .video-modal {
    padding: 0.75rem;
  }

  .video-modal-panel {
    border-radius: 0.65rem;
  }

  .video-modal-header {
    padding: 0.95rem 3.7rem 0.8rem 1rem;
  }

  .video-modal-close {
    width: 48px;
    height: 48px;
  }

  .graphic-modal-frame {
    min-height: 62vh;
    padding: 0.75rem;
  }

  .graphic-modal-frame img {
    max-height: 66vh;
  }

  .graphic-nav {
    width: 42px;
    height: 42px;
  }
  .graphic-nav-prev { left: 0.5rem; }
  .graphic-nav-next { right: 0.5rem; }
}
/* --- Footer --- */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-logo-red { color: var(--primary); }
.footer-logo-black { color: var(--text); }

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.39s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.39s ease, border-color 0.39s ease;
  cursor: none;
}

.footer-social-link:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.39s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 6px var(--brand-glow, transparent));
}

/* Oficjalne logotypy marek — kolory wbudowane w SVG, bez nadpisywania fill */

/* Glow w kolorze marki per-ikona (na samej ikonce, stale) */
.social-yt { --brand-glow: rgba(255, 0, 0, 0.6); }
.social-fb { --brand-glow: rgba(24, 119, 242, 0.6); }
.social-ig { --brand-glow: rgba(214, 36, 159, 0.6); }

/* Hover: stonowany przyrost ikony */
.footer-social-link:hover svg { transform: scale(1.08); }

/* Instagram: tworzymy gradient marki jako wbudowany defs (dodany w HTML) */

.footer-accent-line {
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 1.5rem;
  flex-wrap: wrap;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.footer-link {
  color: var(--muted);
  transition: color 0.26s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--primary);
}

.footer-link:focus-visible {
  outline: 2px solid rgba(220, 38, 38, 0.55);
  outline-offset: 4px;
  border-radius: 6px;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* --- Legal pages --- */
.legal-page {
  min-height: 100vh;
  background: #f8f8f7;
  color: var(--text);
}

.legal-main {
  position: relative;
  z-index: 2;
  padding: 9rem 2rem 4rem;
}

.legal-shell {
  width: min(900px, 100%);
  margin: 0 auto;
}

.legal-eyebrow {
  margin: 0 0 0.85rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.legal-lead {
  max-width: 720px;
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.legal-content {
  display: grid;
  gap: 1.25rem;
}

.legal-section {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
}

.legal-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-section p:last-child,
.legal-section ul:last-child,
.legal-section ol:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: var(--primary);
  font-weight: 700;
}

.legal-note {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(220, 38, 38, 0.06);
}

@media (max-width: 768px) {
  .legal-main { padding: 7rem 1.25rem 3rem; }
  .legal-section { padding: 1.15rem; }
}

/* --- FAQ --- */
.faq-section {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(220, 38, 38, 0.15);
}

.faq-item[open] {
  border-color: rgba(220, 38, 38, 0.2);
  box-shadow: 0 8px 40px rgba(220, 38, 38, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background:
    linear-gradient(var(--primary), var(--primary)) center / 2px 14px no-repeat,
    linear-gradient(var(--primary), var(--primary)) center / 14px 2px no-repeat;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(135deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .faq-section { padding: 4rem 1.25rem; }
  .faq-question { font-size: 1rem; padding: 1.15rem 1.25rem; }
  .faq-answer { padding: 0 1.25rem 1.25rem; }
}

@media (max-width: 480px) {
  .service-card { padding: 1.5rem; border-radius: 1rem; }
  .contact-card { border-radius: 1.15rem; }
  .footer-bottom { gap: 0.45rem 1rem; }
}
