:root {
  --bg: #09090b;
  --surface: #121215;
  --surface-hover: #18181b;
  --border: #27272a;
  --border-subtle: #1f1f23;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Kinowa halacja taśmy 35mm (biel + ciepła poświata) */
  --halacja-35mm: 
    0 0 8px rgba(255, 255, 255, 0.45),
    0 0 22px rgba(255, 75, 43, 0.28),
    0 0 45px rgba(255, 65, 108, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Nawigacja */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
}

.hero-left {
  flex: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-shadow: var(--halacja-35mm);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background-color: var(--text);
  color: #000;
  border: 1px solid var(--text);
}

.btn-primary:hover {
  background-color: #d4d4d8;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface);
  border-color: var(--text-muted);
}

/* Hero - Prawa kolumna ("Co robię?") */
.hero-services {
  flex-shrink: 0;
  width: auto;
  min-width: 290px;
  padding: 0;
}

.services-divider {
  width: 150px;
  height: 2px;
  background-color: #ffffff;
  margin-bottom: 1.25rem;
}

.services-heading {
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-shadow: var(--halacja-35mm);
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.services-list li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #f4f4f5;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.check-icon {
  width: 17px;
  height: 17px;
  min-width: 17px;
  stroke: #ffffff;
}

.btn-more {
  display: inline-block;
  padding: 0.65rem 2.25rem;
  border: 1.5px solid #ffffff;
  border-radius: 9999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  background: transparent;
}

.btn-more:hover {
  background-color: #ffffff;
  color: #000000;
}

/* Klienci / Karuzela */
.clients {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.clients-label {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.clients-carousel {
  width: 100%;
  overflow: hidden;
  display: flex;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
  animation: marquee 28s linear infinite;
}

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

.client-item {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: var(--halacja-35mm);
}

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

/* Sekcje ogólne */
section {
  padding: 5rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: var(--halacja-35mm);
}

/* Grid Wideo */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem 1.75rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: grayscale(15%);
}

.video-card:hover .thumbnail-container img {
  transform: scale(1.02);
  filter: grayscale(0%);
}

.play-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.video-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.video-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* O mnie */
.hero-pre {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-shadow: var(--halacja-35mm);
}

.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/* Kontakt */
.contact-card {
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 3.5rem 2.5rem;
  border-radius: 4px;
}

.contact-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  text-shadow: var(--halacja-35mm);
}

.contact-card p {
  color: var(--text-muted);
  max-width: 550px;
  margin-bottom: 2rem;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
}

/* Responsywność */
@media (max-width: 850px) {
  .hero-container {
    flex-direction: column;
    gap: 3.5rem;
  }
  .client-item {
    font-size: 1.35rem;
  }
  .clients-track {
    gap: 2rem;
    padding-right: 2rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 2rem 1.5rem;
  }
  footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}
