/* ==========================================================================
   Jakub Wójs — strony internetowe i AI
   Arkusz główny. Kolejność: tokeny → baza → layout → komponenty → sekcje.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENY
   -------------------------------------------------------------------------- */
:root {
  /* tło i płaszczyzny */
  --ink:        #060B18;
  --ink-2:      #0A1224;
  --navy:       #0C1730;
  --navy-2:     #14224A;
  --surface:    rgba(255, 255, 255, .028);
  --surface-2:  rgba(255, 255, 255, .05);
  --line:       rgba(244, 238, 228, .11);
  --line-2:     rgba(244, 238, 228, .2);

  /* treść */
  --cream:      #F4EEE4;
  --muted:      #97A0B8;
  --muted-2:    #6E7794;

  /* akcent */
  --amber:      #E9A33A;
  --gold:       #F6CE86;
  --ember:      #C97B2C;
  --amber-soft: rgba(233, 163, 58, .13);

  /* typografia */
  --f-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --f-accent:  'Instrument Serif', Georgia, serif;

  --t-hero:  clamp(2.6rem, 7.2vw, 6.2rem);
  --t-h1:    clamp(2.2rem, 5.4vw, 4.2rem);
  --t-h2:    clamp(1.9rem, 4vw, 3.2rem);
  --t-h3:    clamp(1.25rem, 2vw, 1.6rem);
  --t-lead:  clamp(1rem, 1.35vw, 1.175rem);
  --t-body:  1rem;
  --t-sm:    .875rem;
  --t-xs:    .75rem;
  --t-label: .6875rem;

  /* rytm */
  --shell:   1240px;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --sect-y:  clamp(4.5rem, 10vw, 9rem);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------------------
   2. BAZA
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* Atrybut hidden musi wygrywać z układem zadanym w CSS. Bez tego element
   z własnym `display` (np. grid) zostaje widoczny mimo hidden — a niewidoczne
   tło modala potrafi wtedy przechwytywać kliknięcia w całej stronie. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* nagłówek jest przyklejony na stałe, więc skok do kotwicy musi
     zostawić na niego miejsce — bez tego tytuł sekcji chowa się pod paskiem */
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  /* każe przeglądarce rysować natywne kontrolki (listy <select>, paski
     przewijania, kalendarze) w ciemnym wariancie — bez tego rozwinięta
     lista wyboru ma białe tło i jasnoszary tekst */
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.028em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

::selection { background: var(--amber); color: var(--ink); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--amber);
  color: var(--ink);
  padding: .75rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* clip (a nie hidden) — nie tworzy kontenera przewijania, więc dekoracje
   wychodzące poza sekcję nie poszerzają dokumentu */
.section { padding-block: var(--sect-y); position: relative; overflow-x: clip; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--hairline { border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }

/* --------------------------------------------------------------------------
   4. TYPOGRAFIA POMOCNICZA
   -------------------------------------------------------------------------- */
.label {
  font-family: var(--f-display);
  font-size: var(--t-label);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
}
.label--amber { color: var(--amber); }

.accent {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -.01em;
}

.lead {
  font-size: var(--t-lead);
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
}

.muted { color: var(--muted); }

/* nagłówek sekcji: (01) ETYKIETA + tytuł */
.sect-head {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sect-head__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.sect-head__num {
  font-family: var(--f-accent);
  font-size: 1.35rem;
  color: var(--amber);
  line-height: 1;
  flex: none;
}
.sect-head__title { font-size: var(--t-h2); }
.sect-head__body { display: grid; gap: 1.5rem; }

@media (min-width: 900px) {
  .sect-head__body {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
  }
}

/* --------------------------------------------------------------------------
   5. PRZYCISKI
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--amber);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  min-height: 48px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: -.005em;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--gold); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { flex: none; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--cream);
  color: var(--cream);
}

.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; min-height: 56px; }
.btn--block { width: 100%; }

/* link ze strzałką */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--cream);
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--line-2);
  transition: border-color .3s var(--ease), color .3s var(--ease), gap .3s var(--ease);
}
.arrow-link:hover { border-color: var(--amber); color: var(--amber); gap: .85rem; }

/* --------------------------------------------------------------------------
   6. NAGŁÓWEK / NAWIGACJA
   -------------------------------------------------------------------------- */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.is-stuck {
  background: rgba(6, 11, 24, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.site-head { transition: background .4s var(--ease), border-color .4s var(--ease); }

.site-head__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 76px;
}

/* logo */
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand__mark { width: 34px; height: 28px; flex: none; overflow: visible; }
.brand__mark path { transition: transform .45s var(--ease-out); transform-origin: center; }
.brand:hover .brand__mark .bracket-l { transform: translateX(-2.5px); }
.brand:hover .brand__mark .bracket-r { transform: translateX(2.5px); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--f-display);
  font-size: .975rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.brand__sub {
  font-family: var(--f-display);
  font-size: .5rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: .28rem;
}

/* nawigacja desktop */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.6rem); }
.nav__link {
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--muted);
  padding: .5rem .1rem;
  position: relative;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: .15rem;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--cream); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* --- podmenu usług ------------------------------------------------------- */
.nav__item { position: relative; }
.nav__item--sub > .nav__link { display: inline-flex; align-items: center; gap: .35rem; }
.nav__chev { transition: transform .35s var(--ease-out); }
.nav__item--sub:hover .nav__chev,
.nav__item--sub:focus-within .nav__chev { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 236px;
  display: grid;
  gap: .1rem;
  padding: .45rem;
  background: rgba(10, 18, 36, .97);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s var(--ease), transform .38s var(--ease-out), visibility .28s;
  z-index: 5;
}
/* mostek na przerwę między linkiem a panelem — bez niego kursor
   „gubi” hover w drodze do podmenu */
.nav__sub::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }

.nav__item--sub:hover .nav__sub,
.nav__item--sub:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav__sub a {
  display: block;
  padding: .62rem .85rem;
  border-radius: 9px;
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--muted);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav__sub a:hover, .nav__sub a:focus-visible { background: var(--surface-2); color: var(--cream); }
.nav__sub a span {
  display: block;
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 400;
  color: var(--muted-2);
  margin-top: .2rem;
}

.head__aside { display: flex; align-items: center; gap: 1rem; flex: none; }

.clock {
  font-family: var(--f-display);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  flex: none;
}
.burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--cream);
  transform: translate(-50%, -50%);
  transition: transform .4s var(--ease-out), opacity .25s var(--ease);
}
.burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
.burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 4px)); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* menu mobilne */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  padding: 6.5rem var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out), visibility .4s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer__list { display: grid; gap: .25rem; }
.drawer__link {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 4.6vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -.02em;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.drawer__link span { font-family: var(--f-accent); font-size: .8rem; color: var(--amber); }

.drawer__sub {
  display: grid;
  gap: .1rem;
  padding: .6rem 0 .35rem 1.85rem;
  border-bottom: 1px solid var(--line);
}
.drawer__sub a {
  display: block;
  padding: .45rem 0;
  font-family: var(--f-display);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.drawer__sub a::before { content: '— '; color: var(--amber); }
.drawer__sub a:hover { color: var(--cream); }
.drawer__foot { margin-top: auto; display: grid; gap: 1rem; }

@media (max-width: 980px) {
  .nav, .clock { display: none; }
  .burger { display: block; }
  .head__aside .btn { display: none; }
  /* nav (z margin-left:auto) jest ukryta, więc dosuwamy sami */
  .head__aside { margin-left: auto; }
}

/* --------------------------------------------------------------------------
   7. HERO — star voyage
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 8rem 5rem;
  overflow: hidden;
}

#voyage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(115% 80% at 50% 42%, transparent 24%, rgba(6, 11, 24, .55) 62%, var(--ink) 96%),
    linear-gradient(180deg, rgba(6, 11, 24, .5) 0%, transparent 22%, transparent 68%, var(--ink) 100%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem 1.1rem .5rem .75rem;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: rgba(6, 11, 24, .4);
  backdrop-filter: blur(6px);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.hero__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--amber-soft); }
  50%      { opacity: .55; box-shadow: 0 0 0 7px transparent; }
}

.hero__title {
  font-size: var(--t-hero);
  max-width: 17ch;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.hero__lead {
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  font-family: var(--f-display);
  font-size: var(--t-label);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero__scroll i {
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: drop 2.2s var(--ease) infinite;
}
@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 640px) { .hero__scroll { display: none; } }

/* --------------------------------------------------------------------------
   8. MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
  overflow: hidden;
  position: relative;
  background: var(--ink-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  padding-inline: clamp(.75rem, 1.6vw, 1.4rem);
  font-family: var(--f-display);
  font-size: clamp(.8rem, 1.15vw, .95rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__item::after { content: '✦'; color: var(--amber); font-size: .7em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   9. STATYSTYKI
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.stat {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--cream);
  display: block;
  margin-bottom: .7rem;
}
.stat__num em { font-family: var(--f-accent); font-style: italic; color: var(--amber); }
.stat__label {
  font-family: var(--f-display);
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1.5;
}
@media (min-width: 860px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
}

/* --------------------------------------------------------------------------
   10. REALIZACJE — karty
   -------------------------------------------------------------------------- */
.work { display: grid; gap: clamp(1rem, 2vw, 1.35rem); }
@media (min-width: 800px) { .work { grid-template-columns: repeat(6, 1fr); } }

.work__item { grid-column: span 6; }
@media (min-width: 800px) {
  .work__item--wide { grid-column: span 3; }
  .work__item--third { grid-column: span 2; }
}

.card-work {
  display: block;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
  height: 100%;
  transition: border-color .45s var(--ease), transform .55s var(--ease-out);
}
.card-work:hover { border-color: var(--line-2); transform: translateY(-4px); }

.card-work__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy);
}
.card-work__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.1s var(--ease-out), filter .6s var(--ease);
  filter: saturate(.85) brightness(.82);
}
.card-work:hover .card-work__media img { transform: scale(1.045); filter: saturate(1) brightness(.95); }

.card-work__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 11, 24, .75));
  pointer-events: none;
}

.card-work__index {
  position: absolute;
  top: 1rem; left: 1.15rem;
  z-index: 2;
  font-family: var(--f-accent);
  font-size: 1.1rem;
  color: var(--gold);
}

.card-work__go {
  position: absolute;
  top: .95rem; right: .95rem;
  z-index: 2;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(6, 11, 24, .55);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(6px);
  transition: background .35s var(--ease), transform .45s var(--ease-out), border-color .35s var(--ease);
}
.card-work:hover .card-work__go {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  transform: rotate(45deg);
}

.card-work__body { padding: clamp(1.15rem, 2.2vw, 1.6rem); }
.card-work__title {
  font-size: var(--t-h3);
  margin-bottom: .5rem;
  transition: color .3s var(--ease);
}
.card-work:hover .card-work__title { color: var(--gold); }
.card-work__desc {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-family: var(--f-display);
  font-size: var(--t-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .3rem .7rem;
  white-space: nowrap;
}
.tag--amber { color: var(--amber); border-color: rgba(233, 163, 58, .3); background: var(--amber-soft); }

/* --------------------------------------------------------------------------
   11. FILARY / USŁUGI / PROCES
   -------------------------------------------------------------------------- */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar {
  display: grid;
  gap: .6rem 2rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 820px) {
  .pillar { grid-template-columns: 4rem minmax(0, 15rem) minmax(0, 1fr); align-items: start; }
}
.pillar__num { font-family: var(--f-accent); font-size: 1.2rem; color: var(--amber); }
.pillar__title { font-size: 1.15rem; letter-spacing: -.02em; }
.pillar__text { color: var(--muted); font-size: var(--t-sm); line-height: 1.7; max-width: 56ch; }

/* karty usług */
.services { display: grid; gap: clamp(1rem, 2vw, 1.35rem); }
@media (min-width: 860px) { .services { grid-template-columns: repeat(3, 1fr); } }

.card-svc {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), transparent);
  position: relative;
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .5s var(--ease-out);
}
.card-svc::before {
  content: '';
  position: absolute;
  inset: -40% 50% 60% -40%;
  background: radial-gradient(circle, var(--amber-soft), transparent 68%);
  opacity: 0;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.card-svc:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card-svc:hover::before { opacity: 1; }

.card-svc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}
.card-svc__num { font-family: var(--f-accent); font-size: 1.1rem; color: var(--amber); }
.card-svc__kicker {
  font-family: var(--f-display);
  font-size: var(--t-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.card-svc__title { font-size: var(--t-h3); margin-bottom: .7rem; }
.card-svc__text { color: var(--muted); font-size: var(--t-sm); line-height: 1.7; margin-bottom: 1.5rem; }
.card-svc__list { display: grid; gap: .6rem; margin-bottom: 1.75rem; }
.card-svc__list li {
  display: flex;
  gap: .65rem;
  font-size: var(--t-sm);
  color: var(--cream);
  line-height: 1.5;
}
.card-svc__list li::before { content: '—'; color: var(--amber); flex: none; }
.card-svc__foot { margin-top: auto; }

/* proces */
.process { display: grid; gap: clamp(1rem, 2vw, 1.35rem); counter-reset: step; }
@media (min-width: 760px)  { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .process { grid-template-columns: repeat(4, 1fr); } }

.step {
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.step__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.step__num {
  font-family: var(--f-display);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--navy-2);
  -webkit-text-stroke: 1px var(--line-2);
}
.step__when {
  font-family: var(--f-display);
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}
.step__title { font-size: 1.1rem; }
.step__text { color: var(--muted); font-size: var(--t-sm); line-height: 1.65; }

/* --------------------------------------------------------------------------
   12. O MNIE
   -------------------------------------------------------------------------- */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); } }

.about__media { position: relative; }
.about__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-lg);
  filter: saturate(.9) contrast(1.02);
}
.about__ring {
  position: absolute;
  inset: auto -1.5rem -1.5rem auto;
  width: clamp(90px, 16vw, 140px);
  height: clamp(90px, 16vw, 140px);
  opacity: .9;
  pointer-events: none;
}
.about__text h2 { font-size: var(--t-h2); margin-bottom: 1.5rem; }
.about__text p { color: var(--muted); line-height: 1.75; max-width: 58ch; }
.about__text strong { color: var(--cream); font-weight: 500; }
.about__facts {
  display: grid;
  gap: .9rem;
  margin: 2rem 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.about__facts li { display: flex; gap: .9rem; font-size: var(--t-sm); color: var(--muted); }
.about__facts svg { flex: none; color: var(--amber); margin-top: .25rem; }

/* --------------------------------------------------------------------------
   13. OPINIE
   -------------------------------------------------------------------------- */
/* --- opinie Google: podsumowanie + karuzela ------------------------------- */
.reviews {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
@media (min-width: 900px) {
  .reviews { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); }
}

.reviews__score { text-align: center; }
@media (min-width: 900px) { .reviews__score { text-align: left; } }

.reviews__label {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 0 0 .85rem;
}
.reviews__count { font-size: var(--t-sm); color: var(--muted); margin: .85rem 0 1.35rem; }
.reviews__count strong { color: var(--cream); font-weight: 600; }

.reviews__stars, .rev__stars { display: flex; gap: .18rem; }
.reviews__score .reviews__stars { justify-content: center; }
@media (min-width: 900px) { .reviews__score .reviews__stars { justify-content: flex-start; } }
.reviews__stars svg { width: 24px; height: 24px; fill: var(--amber); }
.rev__stars svg { width: 15px; height: 15px; fill: var(--amber); }

.reviews__src {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .5rem 1rem .5rem .7rem;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.reviews__src:hover { border-color: var(--line-2); color: var(--cream); }
.reviews__src svg { width: 17px; height: 17px; flex: none; }

/* karuzela */
.reviews__carousel { position: relative; min-width: 0; }

.reviews__track {
  display: flex;
  gap: clamp(.85rem, 1.6vw, 1.15rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .25rem .25rem 1rem;
  margin: -.25rem;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: var(--r); }

.rev {
  flex: 0 0 min(310px, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.15rem, 2.2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.rev:hover { border-color: var(--line-2); background: var(--surface-2); }

.rev__head { display: flex; align-items: center; gap: .75rem; }
.rev__avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; object-fit: cover; }
.rev__who { min-width: 0; flex: 1; }
.rev__name {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rev__date { display: block; font-size: var(--t-xs); color: var(--muted-2); margin-top: .2rem; }
.rev__g { width: 19px; height: 19px; flex: none; }

.rev__text {
  font-size: var(--t-sm);
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}
.rev.is-open .rev__text { -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }

.rev__more {
  align-self: flex-start;
  margin-top: auto;
  background: none;
  border: 0;
  padding: .2rem 0;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--gold);
  border-bottom: 1px solid rgba(246, 206, 134, .35);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.rev__more:hover { color: var(--amber); border-color: var(--amber); }

.reviews__nav {
  position: absolute;
  top: calc(50% - 1.4rem);
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(6, 11, 24, .86);
  backdrop-filter: blur(8px);
  color: var(--cream);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease), border-color .3s var(--ease);
}
.reviews__nav svg { width: 16px; height: 16px; }
.reviews__nav:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.reviews__nav[disabled] { opacity: 0; pointer-events: none; }
.reviews__nav[data-dir="-1"] { left: -.5rem; }
.reviews__nav[data-dir="1"]  { right: -.5rem; }
@media (min-width: 1100px) {
  .reviews__nav[data-dir="-1"] { left: -1.35rem; }
  .reviews__nav[data-dir="1"]  { right: -1.35rem; }
}

/* --- wideo-rekomendacje --------------------------------------------------- */
.videos__head {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: center;
  text-align: center;
  font-size: var(--t-h3);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

/* nagrania są pionowe (9:16) — karty muszą mieć te same proporcje,
   inaczej object-fit: cover wycina z kadru wąski pasek środka */
.videos {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
  grid-template-columns: minmax(0, 320px);
  justify-content: center;
}
@media (min-width: 700px) {
  .videos { grid-template-columns: repeat(2, minmax(0, 320px)); }
}

.video-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
}
.video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--navy);
  display: block;
}
.video-card__cap {
  padding: 1rem 1.25rem;
  font-family: var(--f-display);
  font-size: var(--t-sm);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.quotes { display: grid; gap: clamp(1rem, 2vw, 1.35rem); }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.quote__mark { font-family: var(--f-accent); font-size: 2.6rem; color: var(--amber); line-height: .6; }
.quote__text { color: var(--cream); line-height: 1.7; font-size: var(--t-sm); flex: 1; }
.quote__who { border-top: 1px solid var(--line); padding-top: 1rem; }
.quote__name { font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); display: block; }
.quote__role {
  font-family: var(--f-display);
  font-size: var(--t-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: .3rem;
  display: block;
}

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.15rem, 2.4vw, 1.65rem) 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-display);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--cream);
  transition: color .3s var(--ease);
}
.faq__btn:hover { color: var(--gold); }
.faq__icon { flex: none; position: relative; width: 16px; height: 16px; }
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  background: var(--amber);
  transform: translate(-50%, -50%);
  transition: transform .4s var(--ease-out), opacity .3s var(--ease);
}
.faq__icon::before { width: 16px; height: 1.5px; }
.faq__icon::after  { width: 1.5px; height: 16px; }
.faq__btn[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.faq__panel[data-open="true"] { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__panel p {
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: 1.75;
  max-width: 72ch;
  margin: 0 0 1.1rem;
}
/* odstęp na dole daje ostatni element, nie każdy akapit — dzięki temu
   odpowiedź może mieć kilka akapitów i listy bez podwójnych przerw */
.faq__panel > div > :last-child { padding-bottom: 1.6rem; }

/* rozbudowane odpowiedzi (np. zakres gwarancji) */
.faq__sub {
  font-family: var(--f-display);
  font-size: var(--t-label) !important;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber) !important;
  margin: 0 0 .9rem !important;
}
.faq__sub--no { color: var(--muted-2) !important; }

.faq__panel ul {
  display: grid;
  gap: .7rem;
  margin: 0 0 1.75rem;
  max-width: 72ch;
}
.faq__panel ul li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: 1.7;
}
.faq__panel ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber);
}
.faq__panel ul.is-no li::before { content: '✕'; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   15. KONTAKT / FORMULARZ
   -------------------------------------------------------------------------- */
.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 940px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }

.contact__aside h2 { font-size: var(--t-h2); margin-bottom: 1.5rem; }
.contact__mail {
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--gold);
  border-bottom: 1px solid rgba(246, 206, 134, .35);
  padding-bottom: .2rem;
  transition: color .3s var(--ease), border-color .3s var(--ease);
  word-break: break-all;
}
.contact__mail:hover { color: var(--amber); border-color: var(--amber); }

.contact__list { display: grid; gap: 1.1rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; font-size: var(--t-sm); color: var(--muted); }
.contact__list svg { flex: none; color: var(--amber); margin-top: .2rem; }
.contact__list a:hover { color: var(--cream); }

/* Na wąskim ekranie formularz ma być jedną kolumną. Wymuszamy to jawnie
   przez grid-template-columns — bez tego element z `grid-column: span 2`
   tworzy drugą kolumnę niejawną i część pól ustawia się obok siebie. */
.form { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.field { display: grid; gap: .5rem; }
@media (min-width: 620px) {
  .form { grid-template-columns: repeat(2, 1fr); }
  .field { grid-column: span 2; }
  .field--half { grid-column: span 1; }
}
.field label {
  font-family: var(--f-display);
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label span { color: var(--amber); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--cream);
  font-size: var(--t-sm);
  font-family: var(--f-body);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; cursor: pointer; }
/* rozwinięta lista rysuje się natywnie — nadajemy jej kolory strony,
   żeby po kliknięciu tło nie robiło się białe */
.field select option { background: var(--navy); color: var(--cream); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--surface-2);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #E06A5A; }

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-size: var(--t-xs);
  color: var(--muted);
  line-height: 1.6;
}
.consent input { width: 18px; height: 18px; flex: none; margin-top: .15rem; accent-color: var(--amber); }
.consent a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

.form__submit { grid-column: 1 / -1; }
.form__msg {
  grid-column: 1 / -1;
  font-size: var(--t-sm);
  padding: .9rem 1.1rem;
  border-radius: var(--r-sm);
  display: none;
}
.form__msg.is-ok   { display: block; background: rgba(233, 163, 58, .12); border: 1px solid rgba(233, 163, 58, .35); color: var(--gold); }
.form__msg.is-err  { display: block; background: rgba(224, 106, 90, .12); border: 1px solid rgba(224, 106, 90, .4); color: #F0A597; }

/* --------------------------------------------------------------------------
   16. CTA + STOPKA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 130% at 50% 118%, rgba(233, 163, 58, .16), transparent 62%),
    var(--ink-2);
}
.cta-band .shell { text-align: center; }
.cta-band__title {
  font-size: clamp(2.1rem, 6vw, 4.6rem);
  max-width: 16ch;
  margin: 0 auto 2rem;
}
.cta-band .hero__cta { justify-content: center; }

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--ink);
}
.foot__grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .foot__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 3rem; } }

.foot__col h3 {
  font-family: var(--f-display);
  font-size: var(--t-label);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.foot__col ul { display: grid; gap: .7rem; }
.foot__col a { font-size: var(--t-sm); color: var(--muted); transition: color .3s var(--ease); }
.foot__col a:hover { color: var(--amber); }
.foot__intro { color: var(--muted); font-size: var(--t-sm); line-height: 1.7; max-width: 40ch; margin-top: 1.25rem; }

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--muted-2);
}
.foot__socials { display: flex; gap: .6rem; }
.foot__socials a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.foot__socials a:hover { color: var(--ink); background: var(--amber); border-color: var(--amber); }

/* --------------------------------------------------------------------------
   17. PODSTRONY — nagłówek, treść, case study
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  padding-block: clamp(9rem, 16vw, 13rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-head::before {
  content: '';
  position: absolute;
  inset: -60% 0 auto 0;
  height: 150%;
  background: radial-gradient(58% 48% at 50% 60%, rgba(20, 34, 74, .85), transparent 72%);
  pointer-events: none;
}
.page-head > * { position: relative; }
.page-head__title { font-size: var(--t-h1); max-width: 20ch; margin-block: 1.5rem; }
.page-head__lead { font-size: var(--t-lead); color: var(--muted); max-width: 58ch; line-height: 1.7; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; font-size: var(--t-xs); color: var(--muted-2); }
.crumbs a { transition: color .3s var(--ease); }
.crumbs a:hover { color: var(--amber); }
.crumbs span { opacity: .5; }

/* pasek meta w case study */
.meta-bar {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
@media (min-width: 700px)  { .meta-bar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .meta-bar { grid-template-columns: repeat(4, 1fr); } }
.meta {
  padding: clamp(1.15rem, 2.2vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}
.meta:last-child { border-bottom: 0; }
@media (min-width: 1040px) {
  .meta { border-bottom: 0; border-right: 1px solid var(--line); }
  .meta:last-child { border-right: 0; }
}
.meta__k {
  font-family: var(--f-display);
  font-size: var(--t-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: block;
  margin-bottom: .6rem;
}
.meta__v { font-family: var(--f-display); font-size: .975rem; font-weight: 500; color: var(--cream); line-height: 1.45; }

.shot {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy);
}
.shot img { width: 100%; }
.shot figcaption {
  padding: .9rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--muted-2);
  font-family: var(--f-display);
  letter-spacing: .04em;
}

/* treść długa */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-block: 2.75rem 1.1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-block: 2rem .75rem; }
.prose p { color: var(--muted); line-height: 1.8; }
.prose strong { color: var(--cream); font-weight: 500; }
.prose ul { display: grid; gap: .8rem; margin-block: 1.25rem 1.75rem; }
/* uwaga: nie flex — inaczej <strong> i tekst po nim stają się
   osobnymi elementami flex i wiersz rozjeżdża się na dwie kolumny */
.prose ul li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: .9375rem;
}
.prose ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber);
}
.prose a { color: var(--gold); border-bottom: 1px solid rgba(246, 206, 134, .3); }
.prose a:hover { border-color: var(--gold); }

/* wyniki */
.results { display: grid; gap: clamp(1rem, 2vw, 1.35rem); }
@media (min-width: 760px) { .results { grid-template-columns: repeat(2, 1fr); } }

/* Od szerokości laptopa siatka ma sześć kolumn: przy czterech blokach każdy
   zajmuje trzy (czyli dwa w rzędzie), przy dokładnie trzech — po dwie, więc
   mieszczą się w jednym rzędzie zamiast zostawiać dziurę w układzie 2+1.
   Zapis :first-child:nth-last-child(3) to sposób na policzenie rodzeństwa
   bez :has() — działa też w starszych przeglądarkach. */
@media (min-width: 1000px) {
  .results { grid-template-columns: repeat(6, 1fr); }
  .results > * { grid-column: span 3; }
  .results > :first-child:nth-last-child(3),
  .results > :first-child:nth-last-child(3) ~ * { grid-column: span 2; }
}
.result {
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  border: 1px solid rgba(233, 163, 58, .22);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--amber-soft), transparent);
  display: flex;
  gap: 1rem;
}
.result svg { flex: none; color: var(--amber); margin-top: .2rem; }
.result p { color: var(--cream); font-size: var(--t-sm); line-height: 1.7; }

/* wariant negatywny — czego gwarancja nie obejmuje.
   Bez bursztynu i bez poświaty, żeby wzrok nie czytał tego jako zalety */
.result--no {
  border-color: var(--line);
  background: var(--surface);
}
.result--no svg { color: var(--muted-2); }
.result--no p { color: var(--muted); }

/* cytat wyróżniony */
.pull {
  border-left: 2px solid var(--amber);
  padding: .5rem 0 .5rem 1.75rem;
  margin-block: 2.5rem;
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -.02em;
  color: var(--cream);
  max-width: 42ch;
}

/* nawigacja projekt → projekt */
.next-work {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.next-work:hover { border-color: var(--line-2); background: var(--surface-2); }
.next-work__title { font-size: var(--t-h3); margin-top: .5rem; }

/* --------------------------------------------------------------------------
   18. ANIMACJE WEJŚCIA
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .95s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* --------------------------------------------------------------------------
   19. DROBIAZGI
   -------------------------------------------------------------------------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- cele dotykowe na telefonie ------------------------------------------
   Linki w stopce, okruszkach i na liście kontaktowej mają wysokość samego
   tekstu (17–20 px), co na dotyku jest za mało. Powiększamy pole kliknięcia,
   jednocześnie zmniejszając odstęp listy, żeby rytm został ten sam. */
@media (max-width: 700px) {
  .foot__col ul { gap: .1rem; }
  .foot__col a,
  .contact__list a,
  .crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }
  .contact__list li { align-items: center; }
  .contact__list svg { margin-top: 0; }
}

.orbit-deco {
  position: absolute;
  right: -12%;
  top: 12%;
  width: clamp(280px, 42vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(233, 163, 58, .11), transparent 58%);
  filter: blur(24px);
  pointer-events: none;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   20. ZGODA NA PLIKI COOKIES
   Baner pierwszego wejścia, okno preferencji i pływająca ikona do zmiany
   decyzji. Bez zewnętrznych bibliotek — wybór trzyma localStorage.
   -------------------------------------------------------------------------- */
.cc {
  position: fixed;
  inset: auto 0 0;
  z-index: 200;
  background: rgba(10, 18, 36, .97);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, .45);
  transform: translateY(110%);
  transition: transform .5s var(--ease-out);
}
.cc.is-in { transform: none; }

.cc__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(1.15rem, 2.5vw, 1.75rem) var(--gutter);
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 940px) {
  .cc__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; }
}

.cc__title { font-size: 1.05rem; margin-bottom: .5rem; }
.cc__text p { font-size: var(--t-sm); color: var(--muted); line-height: 1.65; max-width: 78ch; }
.cc__text a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

.cc__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cc__actions .btn { min-height: 44px; padding-inline: 1.25rem; font-size: var(--t-xs); }

/* --- okno preferencji --- */
.cc-modal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: var(--gutter); }
.cc-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 8, 18, .78); backdrop-filter: blur(3px); }

.cc-modal__box {
  position: relative;
  width: min(640px, 100%);
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  overflow: hidden;
}

.cc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}
.cc-modal__head h2 { font-size: 1.15rem; }
.cc-modal__x {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  flex: none;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.cc-modal__x:hover { color: var(--cream); border-color: var(--line-2); }

.cc-modal__body { padding: clamp(1.25rem, 2.5vw, 1.6rem); overflow-y: auto; }
.cc-modal__body > p { font-size: var(--t-sm); color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }

.cc-cat { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.cc-cat:last-child { padding-bottom: 0; }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.cc-cat__head h3 { font-size: .975rem; }
.cc-cat p { font-size: var(--t-xs); color: var(--muted); line-height: 1.7; margin: 0; }
.cc-cat__always {
  font-family: var(--f-display);
  font-size: var(--t-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  flex: none;
}

/* przełącznik */
.cc-switch { position: relative; flex: none; width: 46px; height: 26px; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch span {
  position: absolute;
  inset: 0;
  background: var(--navy-2);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  pointer-events: none;
}
.cc-switch span::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .3s var(--ease-out), background .3s var(--ease);
}
.cc-switch input:checked + span { background: var(--amber); border-color: var(--amber); }
.cc-switch input:checked + span::after { transform: translateX(20px); background: var(--ink); }
.cc-switch input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }

.cc-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.cc-modal__foot .btn { flex: 1 1 auto; min-height: 44px; font-size: var(--t-xs); padding-inline: 1rem; }

/* --- pływająca ikona --- */
.cc-fab {
  position: fixed;
  left: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 190;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(10, 18, 36, .92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  color: var(--muted);
  cursor: pointer;
  opacity: .55;
  transition: opacity .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease-out);
}
.cc-fab:hover { opacity: 1; color: var(--amber); border-color: var(--amber); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .cc { transition: none; }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .028;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
