@font-face {
  font-family: "Afacad";
  src: url("../assets/fonts/Afacad.woff2") format("woff2");
  font-weight: 400 700; /* lub 300 700 w zależności od wersji pliku */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DMSans";
  src: url("../assets/fonts/DMSans.woff2") format("woff2");
  font-weight: 100 900; /* lub 300 700 w zależności od wersji pliku */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GeistMono";
  src: url("../assets/fonts/GeistMono.woff2") format("woff2");
  font-weight: 100 900; /* lub 300 700 w zależności od wersji pliku */
  font-style: normal;
  font-display: swap;
}

:root {
  /* Zmienne layoutu i typografii */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  /* Fonty z odpowiednimi fallbackami */
  --font-display:
    "Afacad", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:
    "DMSans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-mono:
    "GeistMono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono",
    monospace;

  --maxw: 1180px;
}

/* Minimalistyczny Tryb Jasny (Domyślny) */
:root,
[data-theme="light"] {
  --ink: #f4f6f8; /* Jasne, minimalistyczne tło główne */
  --surface: #ffffff; /* Czysta biel dla kart i sekcji */
  --surface-2: #f0f2f5; /* Subtelny szary dla drugorzędnych tłeń */
  --surface-3: #e0e6ec; /* Tła dla podświetleń/hoverów */
  --line: #d0d7de; /* Wyraźniejsze obramowania */
  --line-soft: #e4e9ed; /* Delikatne linie podziału */
  --text: #353942; /* Ciemny odcień jako główny tekst */
  --text-muted: #494e5a; /* Zbalansowany tekst drugorzędny */
  --text-faint: #808ba3; /* Delikatny tekst pomocniczy */
  --logo-text: #484e5b;
  --text-special-heading: #494e5a;

  --header-bg: rgba(255, 255, 255, 0.5);

  --accent: #e98c22; /* Ciepły bursztyn (bardziej czytelny na jasnym) */
  --accent-hover: #db7500;
  --accent-ink: #ffffff; /* Tekst na przyciskach akcentowych */
  --accent-dim: rgba(217, 126, 6, 0.1);
  --glass-dim-medium: rgba(0, 0, 0, 0.2);
  --glass-dim-light: rgba(0, 0, 0, 0.05);
  --hero-gradient: linear-gradient(0deg, #ffffff 0%, #f0f2f5 100%);

  --status: #4d738d; /* Przyciemniony zielony status */
  --status-dim: rgba(22, 163, 74, 0.1);
}

/* Tryb Ciemny */
[data-theme="dark"] {
  --ink: #161e22;
  --surface: #1b2229;
  --surface-2: #1f2b31;
  --surface-3: #263238;
  --line: #2a343a;
  --line-soft: #1f2a2f;
  --text: #edefee;
  --text-muted: #93a2a8;
  --text-faint: #7d8d94;
  --logo-text: #edefee;
  --text-special-heading: #edefee;

  --header-bg: rgba(27, 36, 41, 0.75);

  --accent: #ffa927;
  --accent-hover: #ffbb54;
  --accent-ink: #00151a;
  --accent-dim: rgba(255, 222, 32, 0.12);
  --glass-dim-medium: rgba(255, 255, 255, 0.2);
  --glass-dim-light: rgba(255, 255, 255, 0.05);
  --hero-gradient: linear-gradient(0deg, #1b2229 0%, #161e22 100%);

  --status: #a4fff3;
  --status-dim: rgba(74, 222, 148, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--ink);
  color: var(--text);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.mono {
  font-family: var(--font-mono);
}
section {
  position: relative;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
     SKIP LINK — ukryty domyślnie, widoczny po wejściu focusem
     (klawisz Tab); pozwala pominąć nawigację i przejść od razu
     do głównej treści strony (wymóg WCAG 2.4.1).
     ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-s);
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 16px;
}

/* ============================================================
     HONEYPOT — pułapka antyspamowa dla formularza kontaktowego.
     Pole jest wizualnie i funkcjonalnie ukryte dla realnych
     użytkowników (position off-screen + aria-hidden + tabindex="-1",
     więc nie przeszkadza w nawigacji klawiaturą ani czytnikom
     ekranu), ale nadal obecne w DOM, więc proste boty wypełniające
     każde pole formularza się w nie łapią. Backend (api/contact.php)
     odrzuca ciche zgłoszenia z wypełnionym polem "website".
     ============================================================ */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn:disabled:hover {
  background: var(--accent);
}
.btn-ghost:disabled:hover {
  background: transparent;
  border-color: var(--line);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 400;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--text-muted);
}
.btn-block {
  width: 100%;
}
.btn-glass {
  background: rgba(255, 255, 255, 0.01);
  padding: 13px 25px;
  color: var(--text);
  border-color: var(--glass-dim-medium);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.btn-glass::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 25%;
  height: 3px;
  transform: translateX(-50%);
  background-color: var(--accent);
  border-radius: 0 0 4px 4px;
  transition: 0.25s;
}
.btn-glass:hover {
  background-color: var(--glass-dim-light);
}
.btn-glass:hover::before {
  width: 50%;
}

/* ============================================================
     PASEK POSTĘPU SCROLLA — subtelny „wow”, spójny z motywem danych
     ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 1000;
  transition: width 0.06s linear;
}

.logo svg {
  max-width: 156px;
}

/* ============================================================
     HEADER 
     ============================================================ */
/***************************************************
 * Generated by SVG Artista on 2/25/2026, 1:31:54 PM
 * MIT license (https://opensource.org/licenses/MIT)
 * W. https://svgartista.net
 **************************************************/

@-webkit-keyframes animate-svg-fill-1 {
  0% {
    fill: transparent;
  }

  100% {
    fill: rgb(255, 176, 70);
  }
}

@keyframes animate-svg-fill-1 {
  0% {
    fill: transparent;
  }

  100% {
    fill: rgb(255, 176, 70);
  }
}

.svg-elem-1 {
  -webkit-animation: animate-svg-fill-1 0.6s ease-in 0s both;
  animation: animate-svg-fill-1 0.6s ease-in 0s both;
}

@-webkit-keyframes animate-svg-fill-2 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

@keyframes animate-svg-fill-2 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

.svg-elem-2 {
  -webkit-animation: animate-svg-fill-2 0.6s ease-in 0.1s both;
  animation: animate-svg-fill-2 0.6s ease-in 0.1s both;
}

@-webkit-keyframes animate-svg-fill-3 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

@keyframes animate-svg-fill-3 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

.svg-elem-3 {
  -webkit-animation: animate-svg-fill-3 0.6s ease-in 0.2s both;
  animation: animate-svg-fill-3 0.6s ease-in 0.2s both;
}

@-webkit-keyframes animate-svg-fill-4 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

@keyframes animate-svg-fill-4 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

.svg-elem-4 {
  -webkit-animation: animate-svg-fill-4 0.6s ease-in 0.30000000000000004s both;
  animation: animate-svg-fill-4 0.6s ease-in 0.30000000000000004s both;
}

@-webkit-keyframes animate-svg-fill-5 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

@keyframes animate-svg-fill-5 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

.svg-elem-5 {
  -webkit-animation: animate-svg-fill-5 0.6s ease-in 0.4s both;
  animation: animate-svg-fill-5 0.6s ease-in 0.4s both;
}

@-webkit-keyframes animate-svg-fill-6 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

@keyframes animate-svg-fill-6 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

.svg-elem-6 {
  -webkit-animation: animate-svg-fill-6 0.6s ease-in 0.5s both;
  animation: animate-svg-fill-6 0.6s ease-in 0.5s both;
}

@-webkit-keyframes animate-svg-fill-7 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

@keyframes animate-svg-fill-7 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

.svg-elem-7 {
  -webkit-animation: animate-svg-fill-7 0.6s ease-in 0.7992931540000001s both;
  animation: animate-svg-fill-7 0.6s ease-in 0.7992931540000001s both;
}

@-webkit-keyframes animate-svg-fill-8 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

@keyframes animate-svg-fill-8 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

.svg-elem-8 {
  -webkit-animation: animate-svg-fill-8 0.6s ease-in 0.7000000000000001s both;
  animation: animate-svg-fill-8 0.6s ease-in 0.7000000000000001s both;
}

@-webkit-keyframes animate-svg-fill-9 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

@keyframes animate-svg-fill-9 {
  0% {
    fill: transparent;
  }

  100% {
    fill: var(--logo-text);
  }
}

.svg-elem-9 {
  -webkit-animation: animate-svg-fill-9 0.6s ease-in 0.8s both;
  animation: animate-svg-fill-9 0.6s ease-in 0.8s both;
}

@-webkit-keyframes animate-svg-fill-10 {
  0% {
    fill: transparent;
  }

  100% {
    fill: rgb(255, 176, 70);
  }
}

@keyframes animate-svg-fill-10 {
  0% {
    fill: transparent;
  }

  100% {
    fill: rgb(255, 176, 70);
  }
}

.svg-elem-10 {
  -webkit-animation: animate-svg-fill-10 0.6s ease-in 0.9s both;
  animation: animate-svg-fill-10 0.6s ease-in 0.9s both;
}

.top-link.active {
  color: var(--accent);
  font-weight: 600;
}
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
header.is-scrolled {
  border-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo img {
  width: 28px;
  height: 28px;
  margin-bottom: -6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links > li {
  position: relative;
}
.nav-links > li.has-dropdown {
  display: flex;
  align-items: center;
}
.nav-links a.top-link,
.nav-links span.top-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 20px 14px;
  border-radius: var(--radius-s);
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.nav-links li.has-dropdown a.top-link {
  padding-right: 6px;
}
.nav-links span.top-link {
  cursor: default;
}
.nav-links a.top-link:hover,
.nav-links li.has-dropdown:hover a.top-link,
.nav-links li.has-dropdown.dropdown-open a.top-link {
  color: var(--text);
  background: var(--surface);
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-left: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.dropdown-toggle:hover,
.has-dropdown.dropdown-open .dropdown-toggle {
  color: var(--text);
  background: var(--surface);
}
.chev {
  width: 10px;
  height: 10px;
  transition: transform 0.18s ease;
}
.nav-links li.has-dropdown:hover .chev,
.nav-links li.has-dropdown.dropdown-open .chev {
  transform: rotate(180deg);
}
.dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 280px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.nav-links li.has-dropdown:hover .dropdown,
.nav-links li.has-dropdown.dropdown-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  font-size: 14px;
  color: var(--text);
}
.dropdown a:hover {
  background: var(--surface);
}
.dropdown a span.d {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 400;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  border: none;
}
.nav-cta .tel {
  display: none;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-muted);
}
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: 0.2s;
}
.burger span::before {
  position: absolute;
  top: -6px;
}
.burger span::after {
  position: absolute;
  top: 6px;
}
.mobile-panel {
  display: none;
}
@media (max-width: 880px) {
  .nav-cta .btn-glass {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .nav-cta .btn-primary {
    display: none;
  }
  .burger {
    display: flex;
  }
  .mobile-panel {
    display: block;
    max-height: 0;
    overflow: hidden;
    background: var(--ink);
    border-top: 1px solid var(--line);
    transition: max-height 0.25s ease;
  }
  .mobile-panel.open {
    max-height: 70vh;
    overflow-y: auto;
  }
  .mobile-panel .wrap {
    padding: 18px 24px 28px;
  }
  .mobile-panel a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text-muted);
    transition: 0.25s;
  }
  .mobile-panel a:hover {
    color: var(--accent-hover);
  }
  .mobile-panel .section-label {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    padding-top: 32px;
    padding-bottom: 6px;
    display: block;
  }
  .mobile-panel .btn-primary {
    width: auto;
    display: flex;
    max-width: 180px;
    color: var(--accent-ink);
    margin-top: 16px;
  }
}

/* ============================================================
     SCROLL REVEAL — biblioteka animacji wjazdu sekcji/elementów
     ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 0.8, 0.28, 1),
    transform 0.7s cubic-bezier(0.16, 0.8, 0.28, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.16, 0.8, 0.28, 1);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}
.stagger > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}
.band {
  padding: 96px 0;
}
.band.alt {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 16.5px;
}

/* --- stopka — 1:1 z podstrony ofertowej --- */
footer {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent-hover);
}
.footer-logo svg .logo-text {
  fill: var(--logo-text);
}
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-faint);
}

.footer-bottom a:hover {
  color: var(--accent-hover);
}

@media (max-width: 720px) {
  body {
    padding-bottom: 74px;
  }
}
/* --- realizacje (mini portfolio) --- */
#realizacje {
  padding: 100px 0 32px;
}
/* --- Karty realizacji (portfolio) — układ siatki i treść karty;
   niektóre strony (home, o-mnie) mają WŁASNY wariant .work-card
   (np. karuzela) i został on zachowany lokalnie. --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-body {
  padding: 20px;
}
.work-body .cat {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* --- realizacje: niekończąca się karuzela (swipe + strzałki) --- */
.work-carousel-wrap {
  position: relative;
  padding: 0 8px;
}
.work-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-x;
}
.work-viewport::-webkit-scrollbar {
  display: none;
}
.work-viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}
.work-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 32px 0 64px;
}
.work-card {
  flex: 0 0 auto;
  width: 420px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  /* Safari/WebKit: overflow:hidden + border-radius + transform na hover
     bywa niepoprawnie przycinane w starszych wersjach (rogi na chwile
     "kwadratowe" podczas animacji) — wymuszamy prawidlowe przycinanie
     przez maske WebKit zamiast tylko overflow. */
  mask-image: radial-gradient(white, black);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background: var(--surface);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.work-card:hover {
  transform: translateY(-6px);
}
.work-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(150deg, var(--surface-2), var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.work-thumb img {
  pointer-events: none;
}
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  pointer-events: none;
}
.work-card:hover .work-thumb::after {
  animation: sheen 1s ease forwards;
}
@keyframes sheen {
  to {
    transform: translateX(100%);
  }
}
.work-body h4 {
  font-size: 16.5px;
  margin-bottom: 8px;
}
.work-body .metric {
  font-size: 14px;
  color: var(--status);
  font-weight: 600;
  margin-bottom: 16px;
}

.work-arrow {
  position: absolute;
  top: 34%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-s);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: var(--text);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}
.work-arrow svg {
  width: 18px;
  height: 18px;
}
.work-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-50%) scale(1.08);
}
.work-arrow:active {
  transform: translateY(-50%) scale(0.96);
}
.work-arrow.prev {
  left: -20px;
}
.work-arrow.next {
  right: -20px;
}
@media (max-width: 720px) {
  .work-arrow {
    width: 38px;
    height: 38px;
  }
  .work-arrow svg {
    width: 15px;
    height: 15px;
  }
  .work-arrow.prev {
    left: -12px;
  }
  .work-arrow.next {
    right: -12px;
  }
  .work-card {
    width: 78vw;
    max-width: 300px;
  }
}

/* --- marquee logotypów --- */
.logo-strip {
  margin-top: 70px;
  padding-top: 36px;
  border-top: 1px solid var(--line-soft);
  position: relative;
  z-index: 1;
}
.logo-strip .cap {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

/* Zmieniony track - usunięty gap */
.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollLeft 20s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* Nowa klasa grupy */
.marquee-group {
  display: flex;
  gap: 56px;
  padding-right: 56px; /* KLUCZOWE: Ten sam odstęp na końcu, co gap. Dzięki temu matematyka się zgadza! */
}

/* Zaktualizowany selektor dla spanów */
.marquee-group span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-faint);
  opacity: 0.65;
  white-space: nowrap;
}

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