/* Wizytówka mocio.co — styl inspirowany motywem Oscar (Designova) */
:root {
  --accent: #48fc88;
  --accent-dark: #1fd765;
  --ink: #111111;
  --ink-2: #444;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --bg: #fff;
  --bg-soft: #f6f6f4;
  --rail: 84px; /* pusty margines po lewej, w którym „pływa” pastylka */
  --pad: clamp(20px, 5vw, 80px);
  --radius: 4px;
  --hover: .4s cubic-bezier(.25, .8, .25, 1); /* czas i krzywa wszystkich hoverów */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }

/* ---------- Pastylka z social media (przypięta po lewej) ---------- */
.rail {
  position: fixed; left: calc((var(--rail) - 56px) / 2); top: 50%; z-index: 30;
  width: 56px; padding: 22px 0; border-radius: 999px; background: var(--ink);
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.5);
  transform: translateY(-50%);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
/* Wjeżdża z lewej chwilę po załadowaniu pierwszego ekranu (klasa is-shown z main.js) */
.js .rail { opacity: 0; transform: translate(-40px, -50%); }
.js .rail.is-shown { opacity: 1; transform: translateY(-50%); }
.rail__social { display: flex; flex-direction: column; align-items: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.rail .social__icon { width: 30px; height: 30px; background-color: #fff; }
.rail .social__link:hover .social__icon,
.rail .social__link:focus-visible .social__icon { background-color: var(--accent); }

/* ---------- Nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  /* tło i linia na całą szerokość okna; logo nadal wyrównane z treścią */
  padding: 18px var(--pad) 18px calc(var(--rail) + var(--pad));
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  transition: box-shadow .2s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__progress { display: none; }
.nav__brand { display: flex; align-items: center; flex: none; }
.nav__brand img { width: 150px; }
.nav__menu { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav__menu a:not(.btn) {
  text-decoration: none; font-size: 14px; font-weight: 500; position: relative; padding: 4px 0;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent);
  transition: right var(--hover);
}
.nav__menu a:not(.btn):hover::after { right: 0; }
.nav__toggle { display: none; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border: 2px solid var(--ink); border-radius: var(--radius);
  font: 600 14px/1 var(--font); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: background var(--hover), color var(--hover), border-color var(--hover), transform var(--hover);
}
.btn span { transition: transform var(--hover); }
.btn:hover span { transform: translateX(4px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--lg { padding: 18px 34px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Wspólne ---------- */
main, .footer { margin-left: var(--rail); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.2em;
}
.eyebrow--accent { color: var(--accent); }
.section { padding: clamp(72px, 10vw, 140px) var(--pad); }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__title { font-size: clamp(32px, 4.5vw, 56px); }
.section__lead { font-size: 18px; color: var(--ink-2); }
.muted { color: var(--muted); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  --overhang: clamp(24px, 4vw, 64px); /* o ile slider wysuwa się w lewo na biel */
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: calc(100vh - 80px);
}
.hero__left {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 60px calc(var(--overhang) + 32px) 80px var(--pad);
}
.hero__title { font-size: clamp(34px, 3.6vw, 60px); font-weight: 800; margin-bottom: .45em; text-wrap: balance; }
.hero__lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 32em; }
.hero__lead strong { color: var(--ink); background: linear-gradient(transparent 62%, var(--accent) 62%); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.hero__right {
  position: relative; background: var(--accent);
  display: flex; flex-direction: column; justify-content: center; gap: 40px; /* na równi z tekstem po lewej */
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px) clamp(40px, 5vw, 72px) 0;
}
.hero__id { margin-left: clamp(24px, 4vw, 64px); }
.hero__name { margin: 0 0 .3em; font-size: clamp(22px, 2vw, 30px); font-weight: 600; line-height: 1.2; }
.hero__tag {
  margin: 0; font-size: clamp(12px, 1vw, 14px); font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
/* Slider projektów (home + /projekty): grafiki z img/projekty/, crossfade z main.js */
.slides {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.slides img.is-active { opacity: 1; }
.hero__slider { margin-left: calc(-1 * var(--overhang)); }

/* „Przewiń w dół” — tylko desktop; kółko myszy zjeżdża w dół w pętli */
.scroll-cue {
  position: absolute; left: var(--pad); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 8px; font-weight: 500; line-height: normal; text-align: center; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.scroll-cue__mouse { display: block; fill: currentColor; fill-rule: evenodd; }
.scroll-cue__wheel { animation: scroll-wheel 1.8s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes scroll-wheel {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(7px); opacity: 0; }
  61%  { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Wejście elementów przy ładowaniu strony */
.js [data-intro] { opacity: 0; transform: translateY(24px); }
.is-loaded [data-intro] {
  opacity: 1; transform: none;
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 120ms);
}

/* ---------- Marki ---------- */
.brands { padding: clamp(48px, 6vw, 88px) var(--pad); border-bottom: 1px solid var(--line); }
.brands__label { margin-bottom: clamp(20px, 3vw, 40px); }
.logos {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 32px);
  list-style: none; margin: 0 auto; padding: 0; max-width: 1200px;
}
.logos__cell { position: relative; aspect-ratio: 2 / 1; overflow: hidden; }
/* Logo rysowane maską — każdy plik wychodzi jednolicie w kolorze --ink */
.logos__logo {
  position: absolute; inset: 0; background-color: var(--ink);
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
  transition: transform .8s cubic-bezier(.7, 0, .2, 1), opacity .8s cubic-bezier(.7, 0, .2, 1),
              filter .8s cubic-bezier(.7, 0, .2, 1);
}
.logos__logo.is-enter { transform: translateY(45%); opacity: 0; filter: blur(6px); transition: none; }
.logos__logo.is-leave { transform: translateY(-45%); opacity: 0; filter: blur(6px); }

/* ---------- Usługi ---------- */
.services {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); /* zawsze pełne rzędy: 3+3 / 2+2+2 / 1 */
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service {
  position: relative; display: flex; flex-direction: column;
  padding: 40px 36px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg); transition: background var(--hover);
}
.service:hover { background: var(--bg-soft); }
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--accent); transition: width .6s cubic-bezier(.25, .8, .25, 1);
}
.service:hover::before { width: 100%; }
.service__no { font-size: 13px; font-weight: 700; color: var(--accent-dark); letter-spacing: .1em; margin-bottom: 26px; }
.service h3 { font-size: 22px; }
.service p { color: var(--ink-2); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 26px; padding: 0; }
.tags li { font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); }
.service__link { margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.service__link {
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 4px;
  transition: text-decoration-color var(--hover);
}
.service__link:hover { text-decoration-color: var(--accent); }

/* ---------- Proces ---------- */
.section--dark { background: var(--ink); color: #fff; }
.section--dark .section__title { color: #fff; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px;
}
.step { border-top: 1px solid #333; padding-top: 26px; }
.step span { display: block; font-size: 44px; font-weight: 800; color: var(--accent); margin-bottom: 14px; line-height: 1; }
.step h3 { font-size: 19px; }
.step p { color: #b9b9b9; font-size: 15px; }

/* ---------- O mnie ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__photo { position: relative; }
/* Kadr 1:1 (ok. 35% niższy niż dawne 2:3); zdjęcie docelowo 1200 × 1200 px */
.about__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 15%; }
/* Zielony akcent: plakietka wysunięta poza prawy dolny róg zdjęcia */
.about__badge {
  position: absolute; right: clamp(-40px, -3vw, -16px); bottom: clamp(28px, 4vw, 56px);
  width: clamp(136px, 11vw, 160px); aspect-ratio: 1; margin: 0; padding: 16px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  background: var(--accent); color: var(--ink);
  font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.45);
}
.about__badge strong { display: block; margin-bottom: 8px; font-size: clamp(34px, 3.2vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.about__text p { font-size: 17px; color: var(--ink-2); max-width: 36em; }
.about__text .btn { margin-top: 12px; }

/* ---------- W liczbach ---------- */
.stats { padding: clamp(56px, 7vw, 100px) var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.stats__item { padding: 0 clamp(20px, 2.5vw, 40px); }
.stats__item:first-child { padding-left: 0; }
.stats__item + .stats__item { border-left: 1px solid var(--line); }
.stats__num {
  margin: 0 0 clamp(24px, 3vw, 48px); font-size: clamp(48px, 5.4vw, 96px); font-weight: 800;
  line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stats__item h3 { font-size: 20px; margin-bottom: .4em; }
.stats__item p:last-child { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: start; background: var(--bg-soft); }
.contact__info { position: sticky; top: 110px; }
.contact__info > p { font-size: 17px; color: var(--ink-2); }
.contact__list { margin: 32px 0 0; }
.contact__list dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact__list dd { margin: 4px 0 20px; font-size: 20px; font-weight: 600; }
/* Zielona kreska zwija się na hover od prawej do lewej, tekst lekko przygasa */
.contact__list a {
  text-decoration: none; padding-bottom: 3px;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 3px no-repeat;
  transition: background-size var(--hover), opacity var(--hover);
}
.contact__list a:hover { background-size: 0 3px; opacity: .5; }

.form { background: #fff; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: block; margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: 400 15px/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1px solid #d4d4d4; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(72,252,136,.45); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d93025; }
.field--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field--chips legend { width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 14px; font-size: 13px; border: 1px solid #d4d4d4; border-radius: 99px; transition: border-color var(--hover), background var(--hover);
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 4px 0 20px; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.consent.is-invalid { color: #d93025; }
.h-captcha { margin-bottom: 20px; min-height: 78px; }
.hp { position: absolute !important; left: -9999px !important; }
.form__status { margin: 16px 0 0; font-size: 15px; font-weight: 600; min-height: 1.5em; }
.form__status.is-ok { color: #0a7a3a; }
.form__status.is-error { color: #d93025; }

/* ---------- Portfolio (/projekty) ---------- */
/* Treść wyśrodkowana w oknie: z prawej tyle samo miejsca co z lewej (pasek + margines) */
.work-hero, .work { padding-left: var(--pad); padding-right: calc(var(--rail) + var(--pad)); }
.work-hero {
  position: relative;
  display: grid; align-items: start;
  /* lewa krawędź slidera: 12 px za środkiem okna (Figma), zielone pole: 155 px za środkiem */
  grid-template-columns: calc(50% + 12px) auto; /* 50% obszaru treści = środek okna, bo marginesy są symetryczne */
  padding-top: 47px; padding-bottom: clamp(48px, 3.8vw, 73px); /* slider i tytuł na jednej wysokości */
}
/* Zielone pole: od prawej krawędzi okna, schodzi za pierwszy rząd kafelków */
.work-hero::before {
  content: ""; position: absolute; z-index: -1;
  top: 0; right: 0; left: calc(50% + 155px - var(--rail) / 2);
  bottom: calc(-1 * clamp(130px, 10.75vw, 207px));
  background: var(--accent);
}
.work-hero__copy { max-width: 643px; padding: 0 40px 0 0; } /* tekst 603 px jak w Figmie */
.work-hero__title { font-size: clamp(40px, 3.4vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -.01em; margin: 0 0 37px; }
.work-hero__lead { margin: 0; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; color: var(--ink); }
.work-hero__lead strong { display: block; font-size: clamp(20px, 1.6vw, 24px); font-weight: 700; line-height: 1.306; }
.work-hero__slider { width: clamp(320px, 30.9vw, 594px); box-shadow: 0 28px 56px -28px rgba(0,0,0,.45); } /* 594 × 445 w Figmie */

/* Filtry — zielona kreska jak w menu: wjeżdża na hover, zostaje pod aktywnym */
.filters { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 42px; }
.filters__btn {
  position: relative; padding: 4px 0; background: none; border: 0; cursor: pointer;
  font: 600 14px/19px var(--font); text-transform: uppercase; color: var(--ink);
  transition: color var(--hover);
}
.filters__btn::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent);
  transition: right var(--hover);
}
.filters__btn:hover::after, .filters__btn[aria-pressed="true"]::after { right: 0; }
.filters__btn[aria-pressed="true"] { color: var(--muted); }

.work { padding-bottom: clamp(72px, 10vw, 140px); }
.work__grid {
  --cols: 4;
  position: relative; /* punkt odniesienia dla animacji przetasowania */
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 24px;
  list-style: none; margin: 0; padding: 0;
}
.work__tile { padding-bottom: 16px; }
.work__media { position: relative; aspect-ratio: 380 / 260; overflow: hidden; margin-bottom: 12px; background: var(--bg-soft); }
.work__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.work__tile:hover .work__media img { transform: scale(1.06); }
.work__media--frame { border: 1px solid #f1f1f1; } /* jasne grafiki na białym tle */
.work__media.is-missing img { visibility: hidden; }
.work__title { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 19px; letter-spacing: 0; }
/* Na hover kafelka pod nazwą wsuwa się zielona kreska (jak w menu), razem z zoomem obrazka */
.work__title span {
  padding-bottom: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat;
  transition: background-size var(--hover);
}
.work__tile:hover .work__title span { background-size: 100% 2px; }
.work__cat { margin: 0; font-size: 14px; line-height: 19px; color: var(--muted); }
.work__error { grid-column: 1 / -1; color: #d93025; font-weight: 600; }

/* Wejście przy przewijaniu: kaskadowo w rzędzie (--i = numer kolumny z main.js) */
.work__tile.reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.work__tile.reveal.is-visible { transition-delay: calc(var(--i, 0) * 90ms); }
.work__grid.is-filtered .work__tile { transition-delay: 0s; }
/* Filtrowanie: wychodzące/wchodzące kafelki zanikają z lekkim pomniejszeniem */
.work__tile.is-out, .work__tile.reveal.is-out { opacity: 0; transform: scale(.96); transition-duration: .25s; }

/* ---------- Stopka ---------- */
.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, .5fr) auto; /* kontakt: e-mail + telefon w jednej linii */
  grid-template-areas:
    "logo  menu    contact"
    "legal privacy top";
  grid-template-rows: 1fr auto;
  gap: 48px 40px; min-height: 400px;
  padding: clamp(56px, 7vw, 88px) var(--pad) 40px;
  border-top: 1px solid var(--line);
}
.footer a { text-decoration: none; transition: color var(--hover); }
.footer__logo { grid-area: logo; align-self: start; justify-self: start; }
.footer__logo img { width: clamp(132px, 14.4vw, 192px); }
.footer__menu { grid-area: menu; display: flex; flex-direction: column; gap: 6px; }
.footer__menu a { font-size: 19px; font-weight: 600; line-height: 1.4; }
.footer__menu a:hover, .footer__privacy:hover, .footer__top:hover { color: var(--accent-dark); }
.footer__contact { grid-area: contact; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.footer__reach { margin: 0; font-size: 19px; font-weight: 600; text-align: right; }
.footer__reach span { margin: 0 .35em; color: var(--muted); font-weight: 400; }
/* Zielona kreska wsuwa się na hover od lewej do prawej (selektor mocniejszy niż .footer a) */
.footer .footer__mail {
  padding-bottom: 3px; white-space: nowrap;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 3px no-repeat;
  transition: background-size var(--hover), color var(--hover);
}
.footer .footer__mail:hover { background-size: 100% 3px; }
/* Dolny rząd: © / Prywatność / Do góry w jednej linii */
.footer__legal { grid-area: legal; align-self: end; font-size: 15px; color: var(--muted); }
.footer__legal p { margin: 0; font-weight: 500; }
.footer__privacy { grid-area: privacy; align-self: end; font-size: 15px; color: var(--muted); }
.footer__top { grid-area: top; justify-self: end; align-self: end; font-size: 15px; font-weight: 600; }
.footer__top span { display: inline-block; transition: transform var(--hover); }
.footer__top:hover span { transform: translateY(-3px); }

.social { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.social__link { display: block; border-radius: 50%; }
.social__icon {
  display: block; width: 40px; height: 40px; background-color: var(--ink);
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  transition: background-color var(--hover), transform var(--hover);
}
.social__link:hover .social__icon,
.social__link:focus-visible .social__icon { background-color: var(--accent); transform: translateY(-2px); }
.social__icon--linkedin  { --icon: url("../img/social/linkedin.png"); }
.social__icon--dribbble  { --icon: url("../img/social/dribbble.png"); }
.social__icon--behance   { --icon: url("../img/social/behance.png"); }
.social__icon--instagram { --icon: url("../img/social/instagram.svg"); }

/* ---------- Prywatność ---------- */
.privacy { max-width: 620px; width: calc(100% - 32px); border: 0; padding: clamp(24px, 4vw, 44px); font-size: 15px; color: var(--ink-2); }
.privacy::backdrop { background: rgba(0,0,0,.55); }
.privacy h2 { color: var(--ink); font-size: 24px; }

/* ---------- Animacje ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.service.reveal { transition: opacity .7s ease, transform .7s ease, background var(--hover); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .logos__logo.is-enter, .logos__logo.is-leave { transform: none; filter: none; }
  .js [data-intro] { opacity: 1; transform: none; transition: none; }
  .scroll-cue__wheel { animation: none; }
  .js .rail { transform: translateY(-50%); transition: opacity .6s ease; }
  .work__tile.reveal, .work__tile.reveal.is-out { transform: none; transition: none; }
  .work__tile:hover .work__media img { transform: none; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 1600px) {
  .work-hero__lead br { display: none; } /* złamanie wiersza z Figmy tylko na szerokich ekranach */
}
@media (max-width: 1400px) {
  .work__grid { --cols: 3; }
}
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__num { font-size: clamp(56px, 8vw, 88px); }
  .stats__item { padding: 32px clamp(20px, 3vw, 40px); }
  .stats__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats__item:nth-child(-n+2) { padding-top: 0; }
  .stats__item:nth-child(n+3) { padding-bottom: 0; }
}
@media (max-width: 900px) {
  :root { --rail: 0px; }
  .rail { display: none; }
  .nav { justify-content: space-between; padding: 14px 16px; }
  .nav__brand { display: flex; }
  /* Pasek postępu przewijania (szerokość z --progress ustawianego w main.js) */
  .nav__progress {
    display: block; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
    background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--ink); transition: transform .25s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 24px; background: #fff; box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .2s;
  }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__menu .btn { margin-top: 18px; padding: 16px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__left { padding: 48px 16px 56px; }
  .hero__right { padding: 36px 16px 16px; gap: 28px; }
  .hero__id { margin-left: 0; }
  .hero__tag { letter-spacing: .14em; }
  .hero__slider { margin-left: 0; }
  .scroll-cue { display: none; }

  /* Portfolio: tekst nad sliderem, slider w zielonym pasie na całą szerokość */
  .work-hero, .work { padding-left: 16px; padding-right: 16px; }
  .work-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
  .work-hero::before { display: none; }
  .work-hero__copy { max-width: none; padding: 0; }
  .work-hero__title { margin-bottom: 20px; }
  .work-hero__media { margin: 0 -16px; padding: 32px 16px; background: var(--accent); }
  .work-hero__slider { width: auto; max-width: 480px; }
  /* Filtry w jednym rzędzie, przewijane palcem */
  .filters {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 20px; padding: 0 16px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters__btn { flex: none; }
  .work__grid { --cols: 2; gap: 16px; }
  .work__tile { padding-bottom: 8px; }
  .work__media { margin-bottom: 10px; }
  .work__title { font-size: 14px; line-height: 18px; }
  .work__cat { font-size: 12px; line-height: 16px; }

  .about, .contact { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; margin-right: 28px; }
  .contact__info { position: static; }
  .section { padding-left: 16px; padding-right: 16px; }
  .brands, .cta, .footer { padding-left: 16px; padding-right: 16px; }
  .footer {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo logo" "menu menu" "reach reach" "social top" "legal privacy";
    min-height: 0; gap: 36px 16px;
  }
  /* e-mail/telefon i ikony jako osobne pola gridu, żeby „Do góry” stanęło obok ikon */
  .footer__contact { display: contents; }
  .footer__reach { grid-area: reach; text-align: left; }
  .footer .social { grid-area: social; }
  .footer__top { align-self: center; }
  .footer__privacy { justify-self: end; }
}
@media (max-width: 600px) {
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .footer__reach { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer__reach span { display: none; }
  .about__badge { width: 152px; padding: 18px 14px; font-size: 10px; letter-spacing: .06em; }
  .about__badge strong { font-size: 36px; }
  .service { padding: 32px 22px 28px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__list { grid-template-columns: 1fr; }
  .stats__item, .stats__item:nth-child(n) { padding: 32px 0; border-left: 0; }
  .stats__item + .stats__item { border-top: 1px solid var(--line); }
  .stats__item:first-child { padding-top: 0; }
  .stats__item:last-child { padding-bottom: 0; }
  .logos__cell:nth-child(n+5) { display: none; }
}
