/* =========================================================
   NIVEMI — style.css (NIVEMI 3.1 — „Ciemna galeria”, wersja redakcyjna)
   Ciepły grafit + krem + jeden akcent (mięta). Fonty osadzone.
   Typografia prowadzi: Inter + kursywa Instrument Serif jako podpis marki.
   Mobile-first, bez frameworków. Zero poświat, siatek i szkła.
   ========================================================= */

/* ---------- 0. Fonty (osadzone, assets/fonts/) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-pl-wght.woff2") format("woff2");
  unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-pl-italic.woff2") format("woff2");
  unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}

/* ---------- 1. Tokeny ---------- */
:root {
  --bg:        #11100e;
  --bg-2:      #171512;
  --surface:   rgba(241, 231, 217, .04);
  --surface-2: rgba(241, 231, 217, .07);

  --line:      rgba(241, 231, 217, .10);
  --line-2:    rgba(241, 231, 217, .18);

  --text:      #f3ece2;
  --text-2:    #cbc2b5;
  --text-3:    #9d9487;

  --mint:      #6fe3c4;
  --mint-ink:  #05221b;
  --warm:      #f1e7d9;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;

  --container: 1160px;
  --gutter: 1.6rem;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

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

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, details { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
summary { cursor: pointer; }

/* Atrybut hidden ma pierwszeństwo nad display z klas */
[hidden] { display: none !important; }

:where(a, button, summary, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Baza ---------- */
body {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Blokada przewijania przy otwartym menu: na <html>, żeby body nie stawało się kontenerem przewijania */
:root:has(body.nav-open) { overflow: hidden; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
}

p { color: var(--text-2); }

strong { color: var(--text); font-weight: 600; }

/* Kropka z logo jako motyw: koniec haseł */
.dot { color: var(--mint); }

/* ---------- 4. Pomocnicze ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mint);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: .65rem;
  border-radius: 50%;
  background: var(--mint);
}

.section {
  padding-block: clamp(2.75rem, 7vw, 6rem);
  scroll-margin-top: 5.5rem;
}

/* Nagłówek sekcji jak rozdział: cienka linia na całą szerokość, etykieta, tytuł */
.section__head {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.section__head > * { max-width: 46rem; }

.section__title {
  font-size: clamp(2rem, 1rem + 3.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  margin-bottom: .9rem;
  text-wrap: balance;
}
.section__title--xl { font-size: clamp(2.4rem, 1rem + 5vw, 4.25rem); }

/* Podpis marki: jedno słowo kursywą Instrument Serif (jak w hero i stopce) */
.section__title em,
.portfolio__group-title em {
  font-family: var(--font-display);
  font-size: 1.08em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--warm);
}

.section__lead { font-size: 1.05rem; max-width: 54ch; text-wrap: pretty; }

/* Układ dwukolumnowy od 992 px: nagłówek po lewej, treść po prawej */
.split { display: grid; }
@media (min-width: 992px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
  }
  .split > .section__head { margin-bottom: 0; }
}

/* ---------- 5. Przyciski ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              scale .15s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  --btn-bg: var(--mint);
  --btn-fg: var(--mint-ink);
  --btn-bd: transparent;
}
.btn--primary:hover { --btn-bg: #8be9cf; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-bd: var(--line-2);
}
.btn--ghost:hover { --btn-bg: var(--surface-2); }

.btn--lg { padding: 1.15rem 2.2rem; font-size: .88rem; }

/* Drugorzędne wezwanie: tekst ze strzałką (jeden przycisk na widok) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
  text-decoration: underline 1px transparent;
  text-underline-offset: .4em;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
.link-arrow::after {
  content: "→";
  display: inline-block;
  color: var(--mint);
  transition: translate .35s var(--ease-out);
}
.link-arrow--down::after { content: "↓"; }
.link-arrow:hover,
.link-arrow:focus-visible { text-decoration-color: var(--mint); }
.link-arrow:hover::after { translate: .25rem 0; }
.link-arrow--down:hover::after { translate: 0 .2rem; }

/* ---------- 6. Header i logo ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 16, 14, .94);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header.scrolled {
  background: rgba(17, 16, 14, .98);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.logo__img {
  display: block;
  flex: none;
  width: auto;
  height: 1.625rem;
}
.logo__divider {
  flex: none;
  align-self: stretch;
  width: 1px;
  min-height: 1.6rem;
  background: var(--line-2);
}
.logo__tagline {
  display: none;
  font-size: .6rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 60;
}
.nav-toggle__box { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.nav-toggle__bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Nawigacja — mobile: panel na całą szerokość ekranu */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 6rem var(--gutter) 2.5rem;
  background: var(--bg);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.site-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform var(--dur) var(--ease), visibility 0s linear 0s;
}

.site-nav__list { display: flex; flex-direction: column; gap: .15rem; }
.site-nav__list a {
  display: block;
  padding: .65rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.site-nav__list a:hover { color: var(--mint); padding-left: .3rem; }

.site-nav__cta { align-self: flex-start; }

.site-nav__contact { display: grid; gap: .25rem; }
.site-nav__contact a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 1rem;
  color: var(--text-2);
}
.site-nav__contact a:hover { color: var(--mint); }

/* Kreska między logo a hasłem tylko razem z hasłem (od 768px). */
.logo > .logo__divider { display: none; }

@media (min-width: 768px) {
  .logo__tagline { display: block; }
  .logo > .logo__divider { display: block; }
}

@media (min-width: 992px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    inset: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    background: transparent;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
  }

  .site-nav__list { flex-direction: row; gap: 1.5rem; }
  .site-nav__list a {
    padding: 0;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-2);
    border-bottom: 0;
    position: relative;
  }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 1px;
    background: var(--mint);
    transition: width var(--dur) var(--ease);
  }
  .site-nav__list a:hover { color: var(--text); padding-left: 0; }
  .site-nav__list a:hover::after { width: 100%; }

  .site-nav__cta { padding: .7rem 1.25rem; font-size: .78rem; }
  .site-nav__contact { display: none; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(1.75rem, 5vh, 4rem) 0 clamp(2.75rem, 7vw, 6rem);
}

/* Telefon: tytuł, opis, kadr. Od 992 px tytuł na całą szerokość, pod nim opis + kadr. */
.hero__inner { display: grid; gap: 1.75rem; }

.hero__content { max-width: 34rem; }

.hero__title {
  font-size: clamp(2.3rem, 8.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero__kicker {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  margin-bottom: 1.25rem;
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--text-2);
  text-wrap: pretty;
}
.hero__kicker::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  translate: 0 -.12em;
}
.hero__title-main { display: block; }
.hero__title-accent {
  display: block;
  color: var(--warm);
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.028em;
}
.hero__lead {
  max-width: 44ch;
  font-size: 1.08rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  margin-top: 1.6rem;
}
.hero__actions .btn { width: 100%; min-height: 58px; padding-block: .75rem; font-size: .9rem; }

/* Telefon (< 768 px): mniejszy przycisk o szerokości tekstu, nieco większe hasło */
@media (max-width: 767.98px) {
  .hero__title { font-size: clamp(2.3rem, 10.4vw, 3.4rem); }
  .hero__lead { font-size: 1rem; line-height: 1.6; }
  .hero__actions .btn { width: auto; min-height: 50px; padding: .8rem 1.6rem; font-size: .86rem; letter-spacing: .02em; }
}

.hero__proof { margin-top: 1.25rem; font-size: .88rem; line-height: 1.6; color: var(--text-3); }

/* Wejście hero: nagłówek słowo po słowie spod maski, kropka spada na końcu */
.hero__word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .12em .08em .2em;   /* zapas na ą, ę, j, ó, ć */
  margin: -.12em -.08em -.2em;
}
.hero__word > span {
  display: inline-block;
  transform-origin: 0 100%;
  animation: hero-word .75s var(--ease-out) backwards;
  animation-delay: calc(var(--i) * 45ms + 60ms);
}
.hero__title .dot {
  display: inline-block;
  transform-origin: 50% 85%;
  animation: hero-dot .7s var(--ease) 650ms backwards;
}
.hero__kicker { animation: hero-up .6s var(--ease-out) backwards; }
.hero__actions { animation: hero-up .7s var(--ease-out) 520ms backwards; }
.hero__proof { animation: hero-up .7s var(--ease-out) 600ms backwards; }

@keyframes hero-word {
  from { transform: translateY(110%) rotate(6deg); }
  to { transform: none; }
}
@keyframes hero-dot {
  0% { opacity: 0; transform: translateY(-1.3em) scale(.6); }
  40% { opacity: 1; }
  58% { transform: translateY(.04em) scale(1.3, .72); }
  76% { transform: translateY(-.12em) scale(.94, 1.06); }
  100% { opacity: 1; transform: none; }
}
@keyframes hero-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Przełącznik projektów: jeden duży kadr, pod nim podpis, pauza i miniatury */
.hero__show { display: grid; gap: .9rem; min-width: 0; }

.hero__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  touch-action: pan-y;
}
.hero__slides {
  position: absolute;
  inset: 0;
  animation: hero-settle 1.3s var(--ease-out) 150ms backwards;
}
.hero__slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  transition: opacity .15s var(--ease);
}
.hero__slide.is-active { visibility: visible; z-index: 2; }
.hero__slide.is-leaving { visibility: visible; z-index: 1; }
.hero__slide:focus-visible { outline-offset: -4px; }   /* ramka ucina obrys na zewnątrz */
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease);
}
.hero__slide:hover img,
.hero__slide:focus-visible img { transform: scale(1.03); }

.hero__slide.is-active.from-next { animation: hero-wipe-next .9s var(--ease-out) backwards; }
.hero__slide.is-active.from-prev { animation: hero-wipe-prev .9s var(--ease-out) backwards; }
.hero__slide.is-active.from-next img,
.hero__slide.is-active.from-prev img { animation: hero-settle-s .9s var(--ease-out) backwards; }
.hero__slide.is-leaving img { animation: hero-recede .9s var(--ease-out) forwards; }

@keyframes hero-wipe-next {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0); }
}
@keyframes hero-wipe-prev {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}
@keyframes hero-settle-s {
  from { transform: scale(1.06); }
  to { transform: none; }
}
@keyframes hero-recede {
  to { transform: scale(.96); opacity: .4; }
}
@keyframes hero-settle {
  from { transform: scale(1.12); }
  to { transform: none; }
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  animation: hero-up .7s var(--ease-out) 700ms backwards;
}
.hero__cap {
  font-size: .85rem;
  line-height: 1.4;
  color: var(--text-2);
}
.hero__cap.is-client::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: .5rem;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--mint);
}

.hero__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-2);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.hero__pause[hidden] { display: none; }
.hero__pause:hover { color: var(--text); border-color: var(--text-3); }
.hero__pause-icon { width: 14px; height: 14px; }

.hero__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.hero__thumb {
  position: relative;
  display: grid;
  gap: .45rem;
  min-width: 0;
  padding: .6rem 0 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: scale .15s var(--ease);
  animation: hero-curtain .8s var(--ease-out) backwards;
}
.hero__thumb:nth-child(1) { animation-delay: 420ms; }
.hero__thumb:nth-child(2) { animation-delay: 480ms; }
.hero__thumb:nth-child(3) { animation-delay: 540ms; }
.hero__thumb:nth-child(4) { animation-delay: 600ms; }
.hero__thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  opacity: .55;
  transition: opacity .3s var(--ease);
}
.hero__thumb:hover img,
.hero__thumb.is-active img { opacity: 1; }
.hero__pause-text,
.hero__thumb-name {   /* poniżej 768 px tylko dla czytników ekranu */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero__thumb-name {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-3);
  transition: color .3s var(--ease);
}
.hero__thumb.is-active .hero__thumb-name { color: var(--text); }

.hero__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-2);
}
.hero__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__thumb.is-active .hero__progress span { transform: scaleX(1); }
.hero__show.is-auto .hero__thumb.is-active .hero__progress span { animation: hero-progress 5s linear both; }
.hero__show.is-auto.is-paused .hero__thumb.is-active .hero__progress span { animation-play-state: paused; }

@keyframes hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes hero-curtain {
  from { clip-path: inset(100% 0 0 0 round 8px); }
  to { clip-path: inset(0 0 0 0 round 8px); }
}

@media (min-width: 768px) {
  .hero__actions .btn { width: auto; }

  .hero__pause { padding: 0 1rem; }
  .hero__pause-text,
  .hero__thumb-name {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip-path: none;
  }
  .hero__pause-text { overflow: visible; }
}

@media (min-width: 992px) {
  .hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "title title"
      "content show";
    column-gap: clamp(2rem, 4vw, 3.5rem);
    row-gap: clamp(2rem, 3.5vw, 3rem);
    align-items: start;
  }
  .hero__title { grid-area: title; font-size: clamp(3rem, 5.25vw, 4.5rem); }
  .hero__kicker { margin-bottom: 1.5rem; }
  /* Opis przy górnej krawędzi kadru, linia dowodów na wysokości miniatur */
  .hero__content { grid-area: content; display: flex; flex-direction: column; align-self: stretch; }
  .hero__proof { margin-top: auto; padding-top: 1.5rem; }
  .hero__show { grid-area: show; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__word > span,
  .hero__title .dot,
  .hero__kicker,
  .hero__actions,
  .hero__proof,
  .hero__slides,
  .hero__meta,
  .hero__thumb,
  .hero__slide,
  .hero__slide img,
  .hero__progress span { animation: none; }
  .hero__slide img { transition: none; }
  .hero__slide:hover img,
  .hero__slide:focus-visible img { transform: none; }
}

/* ---------- 8. Korzyści i dowody ---------- */
.benefits { display: grid; border-top: 1px solid var(--line); }

.benefit {
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--line);
}
.benefit h3 { font-size: 1.2rem; letter-spacing: -.025em; margin-bottom: .5rem; }
.benefit p { max-width: 38ch; font-size: .95rem; line-height: 1.65; }

.proof {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.proof__title { font-size: 1.2rem; margin-bottom: 1rem; }
.proof .proof__list { gap: .7rem; margin: 0; }

@media (min-width: 768px) {
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .benefit { padding: 2.25rem 1.6rem; }
  .benefit:first-child { padding-left: 0; }
  .benefit:not(:first-child) { border-left: 1px solid var(--line); }
  .proof { padding: 2rem; }
  .proof .proof__list { grid-template-columns: repeat(2, 1fr); gap: .8rem 2rem; }
}

/* ---------- 10. Oferta ---------- */
.plans { display: grid; gap: 1rem; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.6rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease);
}
.plan:hover { border-color: var(--line-2); }

.plan--featured { border-color: rgba(111, 227, 196, .46); background: rgba(111, 227, 196, .035); }
.plan--featured:hover { border-color: rgba(111, 227, 196, .7); }

.plan__badge-wrap {
  position: absolute;
  top: 0;
  left: 1.6rem;
  transform: translateY(-50%);
}
.plan__badge {
  display: inline-flex;
  align-items: center;
  padding: .28rem .8rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mint-ink);
  background: var(--mint);
  border-radius: var(--radius-pill);
}

/* Cena jest kotwicą karty: małe „od”, duża kwota, pod nią czas realizacji */
.plan__name { font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: .75rem; }
.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .45rem;
  margin-bottom: .6rem;
  font-size: clamp(2.1rem, 1.5rem + 1.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.plan__from { font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--text-3); }
.plan--featured .plan__price { color: var(--mint); }
.plan__price--text { font-size: clamp(1.6rem, 1.25rem + 1vw, 2rem); letter-spacing: -.03em; }
.plan__time {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
}
.plan__desc { font-size: .95rem; line-height: 1.6; margin-bottom: 1.1rem; }
.plan .plan__list { margin-bottom: 1.75rem; }

.plan__cta {
  margin-top: auto;
  width: 100%;
  min-height: 48px;
  text-align: center;
}

/* Custom obok filmu „na miarę” */
.custom { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.plan--custom .plan__cta { width: auto; align-self: flex-start; }
#identyfikacja { scroll-margin-top: 5.5rem; }   /* link z FAQ nie chowa karty pod nagłówkiem */

/* „W każdym pakiecie” — ramka z czterema kafelkami */
.offer-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: .75rem; border-radius: 12px; background: rgba(111, 227, 196, .1); color: var(--mint); }
.included { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 2rem 2rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.included__title { margin-bottom: .35rem; text-align: center; font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.included__lead { margin-bottom: 1.6rem; text-align: center; font-size: .95rem; color: var(--text-2); }
.included__list { display: grid; grid-template-columns: 1fr; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.included__list li { padding: 1.1rem 1rem; border: 1px solid var(--line); border-radius: calc(var(--radius) - 4px); background: var(--bg); font-size: .9rem; line-height: 1.5; color: var(--text-2); }
.included__list strong { display: block; margin-bottom: .2rem; font-weight: 600; color: var(--text); }
.included__note { margin-top: 1.2rem; text-align: center; font-size: .85rem; color: var(--text-3); }
@media (min-width: 600px) { .included__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .included__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 599.98px) {
  .included { padding: 1.5rem 1.1rem 1.2rem; }
  .included__list li { display: grid; grid-template-columns: 40px 1fr; column-gap: .9rem; }
  .included__list li .offer-icon { grid-row: span 2; margin: 0; }
}

/* Kroki pod obrazkiem „Logo i identyfikacja” */
.brand-side { display: flex; flex-direction: column; gap: 1.25rem; }
.brand-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; counter-reset: brand-step; }
.brand-steps li { padding: 1rem; border: 1px solid var(--line); border-radius: calc(var(--radius) - 4px); background: var(--surface); font-size: .86rem; line-height: 1.45; color: var(--text-2); }
.brand-steps li::before { counter-increment: brand-step; content: "0" counter(brand-step); display: block; margin-bottom: .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .12em; color: var(--mint); }
.brand-steps strong { display: block; font-size: .92rem; font-weight: 600; color: var(--text); }

.plan__list,
.extra__list,
.care__list,
.proof__list,
.about__list { display: grid; gap: .55rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.plan__list li,
.extra__list li,
.care__list li,
.proof__list li,
.about__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .94rem;
  color: var(--text-2);
}
.plan__list li::before,
.extra__list li::before,
.care__list li::before,
.proof__list li::before,
.about__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

/* Widoczność online, Własność, Opieka — trzy bloki, szczegóły rozwijane */
.extras { display: grid; gap: 1rem; margin-top: 2.25rem; align-items: start; }

.extra {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.extra p { max-width: 65ch; }
.extra__title { font-size: 1.25rem; margin-bottom: .6rem; }
.extra__desc { font-size: .97rem; }
.extra__more { margin-top: .75rem; margin-bottom: 1rem; }
.extra__more summary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.extra__more summary::-webkit-details-marker { display: none; }
.extra__more summary::after {
  content: "";
  width: .5rem;
  height: .5rem;
  margin-top: -.2rem;
  border-right: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.extra__more[open] summary::after { margin-top: .2rem; transform: rotate(225deg); }
.extra__more > * + * { margin-top: .8rem; }
.extra__more p { font-size: .93rem; }
.extra__more .extra__list,
.extra__more .care__list { margin: 0; }
.extra__note { font-size: .85rem; color: var(--text-3); }
.extra__cta { align-self: flex-start; margin-top: auto; }
.extra__price { position: absolute; top: 2.05rem; right: 1.6rem; padding: .3rem .75rem; border: 1px solid rgba(111, 227, 196, .35); border-radius: var(--radius-pill); font-size: .85rem; font-weight: 600; line-height: 1.4; color: var(--mint); white-space: nowrap; }

/* Linki w tekście: podkreślenie „rysuje się” przy najechaniu (detale rzemiosła) */
.hero__proof a,
.section__lead a,
.proof__list a,
.work__facts a,
.plan__list a,
.about__content p a,
.case a:not(.btn):not(.case__back) {
  color: var(--mint);
  padding-bottom: 1px;
  background: linear-gradient(var(--mint), var(--mint)) 0 100% / 0 1px no-repeat,
              linear-gradient(rgba(111, 227, 196, .4), rgba(111, 227, 196, .4)) 0 100% / 100% 1px no-repeat;
  transition: background-size .45s var(--ease-out);
}
.hero__proof a:hover, .hero__proof a:focus-visible,
.section__lead a:hover, .section__lead a:focus-visible,
.proof__list a:hover, .proof__list a:focus-visible,
.work__facts a:hover, .work__facts a:focus-visible,
.plan__list a:hover, .plan__list a:focus-visible,
.about__content p a:hover, .about__content p a:focus-visible,
.case a:not(.btn):not(.case__back):hover,
.case a:not(.btn):not(.case__back):focus-visible { background-size: 100% 1px, 100% 1px; }

/* Od 900 px wszystkie bloki oferty leżą na tej samej siatce trzech kolumn */
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; align-items: stretch; }
  .custom { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.15rem; align-items: start; }
  .custom > .film,
  .custom > .brand-side { grid-column: span 2; }
  .custom--flip > .brand-side { order: -1; }   /* „Logo i identyfikacja”: kadr po lewej, karta po prawej */
  .custom--flip { align-items: stretch; }
  .brand-steps { margin-top: auto; }
  .extras { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; align-items: stretch; }
  .extras:has(.extra__more[open]) { align-items: start; }
}
/* Cztery kroki w jednym rzędzie dopiero od 1000 px — węziej słowa się nie mieszczą */
@media (min-width: 1000px) {
  .brand-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .plan { padding: 1.75rem 1.25rem 1.4rem; overflow-wrap: break-word; }
  .plan__list { gap: .75rem; }
  .plan__desc,
  .plan__list li { font-size: 1rem; }
  .plan__cta { font-size: 1rem; }
  .plan__badge { font-size: .75rem; }
}

/* ---------- 11. Jak pracuję ---------- */
/* Pionowa oś z linią po lewej. Od 992 px: nagłówek i płatność po lewej, oś po prawej. */
.process {
  position: relative;
  display: grid;
  padding-left: 1.75rem;
  border-left: 1px solid var(--line-2);
}

.process__step {
  position: relative;
  padding: 0 0 2rem;
}
.process__step:last-child { padding-bottom: 0; }
.process__step::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem - 3.5px);
  top: .55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}
.process__num {
  display: inline-block;
  margin-bottom: .3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--mint);
}
.process__step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.process__step p { max-width: 46ch; font-size: .94rem; }

.process__pay {
  max-width: 46ch;
  margin-top: 2.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--mint);
  font-size: 1rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .process__step {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    column-gap: 1rem;
    padding-bottom: 2.25rem;
  }
  .process__num { grid-row: span 2; margin: 0; padding-top: .1rem; }
  .process__step h3 { margin-bottom: .35rem; }
}

@media (min-width: 992px) {
  .split--process {
    grid-template-areas:
      "head steps"
      "pay steps";
    grid-template-rows: auto 1fr;
  }
  .split--process > .section__head { grid-area: head; }
  .split--process > .process { grid-area: steps; margin-top: 2.6rem; }
  .split--process > .process__pay { grid-area: pay; align-self: start; }
}

/* ---------- 12. Portfolio ---------- */
.works { display: grid; gap: clamp(3rem, 6vw, 5rem); }

/* Dwie grupy: realizacja dla klienta i projekty koncepcyjne */
.portfolio__group + .portfolio__group { margin-top: clamp(4.5rem, 9vw, 7rem); }
.portfolio__group-title {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.5rem;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.portfolio__group-title::after {   /* linia do prawej krawędzi — jak podpis działu w katalogu */
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.portfolio__group-lead { max-width: 54ch; margin: -.25rem 0 clamp(2.5rem, 5vw, 3.5rem); font-size: 1.02rem; }

.work { display: grid; gap: 1.75rem; }

/* Kadr: tło w kolorze projektu, zrzut desktop + nachodzący zrzut telefonu */
.work__frame {
  --frame: var(--bg-2);
  --edge: rgba(17, 16, 14, .12);
  --bezel: #1b1a18;
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--frame);
  display: block;
  transition: opacity .15s var(--ease);
}
.work--vanthex .work__frame { --frame: #f2e9d4; }
.work--auren .work__frame { --frame: #e9efed; }
.work--alma .work__frame { --frame: #faf8f5; }
.work--volten .work__frame { --frame: #0a0a0a; --edge: rgba(241, 231, 217, .14); --bezel: #3a3936; }
.work--nordtherm .work__frame { --frame: #0c1a25; --edge: rgba(241, 231, 217, .14); --bezel: #3a3936; }

.work__frame img {
  position: absolute;
  height: auto;
  transition: transform .4s var(--ease);
}
.work__desktop {
  left: 5%;
  top: 7%;
  width: 80%;
  border: 1px solid var(--edge);
  border-radius: 8px;
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .45);
}
.work__phone {
  right: 5%;
  bottom: 6%;
  width: 21%;
  border: 3px solid var(--bezel);
  border-radius: 18px;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .55);
}
.work:hover .work__desktop,
.work:focus-within .work__desktop { transform: translateY(-4%); }
.work:hover .work__phone,
.work:focus-within .work__phone { transform: translateY(-2%); }

/* Kadr realizacji: strona startowa + panel nachodzący + telefon */
.work__frame--client { aspect-ratio: 4 / 3; }
.work__landing {
  left: 4%;
  top: 6%;
  width: 66%;
  border: 1px solid var(--edge);
  border-radius: 8px;
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .45);
}
.work__panel {
  right: 4%;
  bottom: 9%;
  width: 54%;
  border: 1px solid var(--edge);
  border-radius: 8px;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .55);
}
.work__phone--client { right: auto; left: 7%; bottom: 5%; width: 15%; }
.work:hover .work__landing,
.work:focus-within .work__landing { transform: translateY(-4%); }
.work:hover .work__panel,
.work:focus-within .work__panel { transform: translateY(-2%); }
.work__captions {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.5rem;
  margin-top: .7rem;
  font-size: .85rem;
  color: var(--text-2);
}

.work__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem 1rem;
  margin-bottom: .6rem;
}
p.work__label { margin-bottom: .6rem; }
.work__index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--mint);
}
.work__label {
  font-size: .74rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.work__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -.03em;
  margin-bottom: .7rem;
}
.work__desc { max-width: 65ch; font-size: .98rem; line-height: 1.65; }

.work--vanthex .work__title { font-size: clamp(2rem, 4vw, 2.9rem); }
.work__facts { display: grid; gap: .3rem; margin: 0 0 1rem; font-size: .9rem; color: var(--text-2); }
.work--vanthex .work__quote { margin-top: 1.25rem; padding-left: 1.25rem; }
.work--vanthex .work__quote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--text);
}
.work--vanthex .work__quote footer { font-size: .85rem; }

/* Wyróżniki: spokojna lista w linii, rozdzielona kropką z logo */
.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 0;
  margin: 1rem 0 .4rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.work__tags li {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-2);
}
.work__tags li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 .7rem;
  border-radius: 50%;
  background: var(--mint);
  vertical-align: middle;
}

.work__quote {
  max-width: 65ch;
  margin: 0 0 1.25rem;
  padding: .1rem 0 .1rem 1rem;
  border-left: 2px solid var(--mint);
}
.work__quote p { font-size: .9rem; font-style: italic; color: var(--text-2); }
.work__quote footer { margin-top: .4rem; font-size: .78rem; color: var(--text-3); }

.work__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  padding-top: .6rem;
}

@media (min-width: 992px) {
  .work {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
  .works > .work:nth-child(even) { grid-template-columns: 5fr 7fr; }
  .works > .work:nth-child(even) .work__frame { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .work__frame img { transition: none; }
  .work:hover .work__desktop,
  .work:focus-within .work__desktop,
  .work:hover .work__phone,
  .work:focus-within .work__phone,
  .work:hover .work__landing,
  .work:focus-within .work__landing,
  .work:hover .work__panel,
  .work:focus-within .work__panel { transform: none; }
}

/* ---------- 13. O mnie ---------- */
.about__inner {
  display: grid;
  gap: 2.25rem;
  align-items: center;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.about__media {
  position: relative;
  width: 100%;   /* bez tego kontener kurczy się do 0 przed wczytaniem zdjęcia (skok układu) */
  max-width: 20rem;
  margin-inline: auto;
}
.about__media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
}
.about__content p + p { margin-top: 1rem; }
.about__content .about__list { margin: 1.5rem 0 0; }

@media (min-width: 768px) {
  .about__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); }
  .about__media { max-width: 24rem; margin-inline: 0; }
}

/* ---------- 14. FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line-2); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  position: relative;
  padding: 1.3rem 2.75rem 1.3rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  list-style: none;
  transition: color var(--dur) var(--ease);
}
.faq__item summary:hover { color: var(--mint); }
.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: 50%;
  width: .6rem;
  height: .6rem;
  margin-top: -.35rem;
  border-right: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] summary::after { transform: rotate(225deg); margin-top: -.15rem; }

.faq__item p {
  max-width: 62ch;
  padding: 0 0 1.5rem;
  font-size: .97rem;
}

@media (min-width: 992px) {
  .split--faq > .section__head { position: sticky; top: 7rem; }
}

/* ---------- 15. Kontakt ---------- */
.section--contact { padding-bottom: clamp(3rem, 6vw, 5rem); }

.contact__panel { display: grid; gap: 0; }

.contact__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  max-width: 32rem;
  margin-inline: auto;
  padding: 0 0 2.5rem;
  text-align: center;
}
.contact__info .eyebrow { margin-bottom: .2rem; }
.contact__info .section__title { margin-bottom: .3rem; }
.contact__lead { max-width: 46ch; margin-bottom: 1rem; }

.contact__status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: .4rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}
.contact__status-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.contact__phone {
  display: grid;
  gap: .4rem;
  justify-items: center;
  margin-top: 1.2rem;
}
.contact__phone-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact__phone-link {
  display: inline-block;
  font-size: clamp(2.1rem, 9.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
}
.contact__phone-link:hover,
.contact__phone-link:focus-visible { color: var(--mint); }

.contact__wa {
  width: max-content;
  max-width: none;
  margin-inline: auto;
  margin-top: .2rem;
  padding: .9rem 1.5rem;
  font-size: .82rem;
}
.contact__wa-icon { flex: none; width: 16px; height: 16px; }

.contact__email { font-size: .95rem; margin-top: 1rem; }
.contact__email a {
  color: var(--text-3);
  border-bottom: 1px solid var(--line-2);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.contact__email a:hover,
.contact__email a:focus-visible {
  color: var(--text);
  border-color: var(--text-3);
}
.contact__note { font-size: .88rem; color: var(--text-3); }

/* Formularz w <details>: na telefonie zwinięty, na desktopie otwarty */
.contact__form {
  width: 100%;
  max-width: 32rem;
  margin: 2.5rem auto 0;
  border-top: 1px solid var(--line);
}
.contact__form-summary {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.4rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  text-align: center;
  cursor: pointer;
  list-style: none;
}
.contact__form-summary::-webkit-details-marker { display: none; }
.contact__form-summary::after {
  content: "+";
  margin-left: .5rem;
  color: var(--text-3);
}
.contact__form[open] > .contact__form-summary::after { content: "–"; }

.contact__form-card { padding: 1rem 0 1rem; }
.contact__form-title { display: none; font-size: 1.35rem; margin-bottom: .5rem; }

.cform { display: grid; gap: 1.15rem; }

.cfield { display: grid; gap: .4rem; }

.cfield__label {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
}
.cfield__optional { font-weight: 400; color: var(--text-3); }

.req { color: #ff9d95; font-weight: 600; }

.cfield__input {
  width: 100%;
  padding: .85rem .95rem;
  font: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.cfield__input::placeholder { color: var(--text-3); }
.cfield__input:hover { border-color: rgba(241, 231, 217, .3); }
.cfield__input:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(111, 227, 196, .14);
  background: var(--surface-2);
}
.cfield__input--area { resize: vertical; min-height: 8rem; }

select.cfield__input {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 50%, calc(100% - .95rem) 50%;
  background-size: .35rem .35rem;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
  cursor: pointer;
}
select.cfield__input option { background: var(--bg-2); color: var(--text); }

.cfield__input[aria-invalid="true"] {
  border-color: #ff8a80;
  background: rgba(255, 138, 128, .08);
}
.cfield__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(255, 138, 128, .22);
}

.cfield__error { font-size: .82rem; color: #ff9d95; }

/* Honeypot — niewidoczny dla użytkownika, dostępny dla botów */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cform__actions { display: grid; gap: .75rem; margin-top: .25rem; }
.cform__hint { font-size: .82rem; color: var(--text-3); }
.cform__hint a {
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
}
.cform__hint a:hover,
.cform__hint a:focus-visible {
  color: var(--text);
  border-color: var(--text-3);
}

.cform__status {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.15rem;
  color: var(--text);
  background: rgba(111, 227, 196, .1);
  border: 1px solid rgba(111, 227, 196, .42);
  border-left: 3px solid var(--mint);
  border-radius: var(--radius-sm);
}
.cform__status-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.cform__status-text { font-size: .92rem; color: var(--text-2); margin-bottom: 1rem; }

.cform__error {
  margin-bottom: 1.25rem;
  padding: .9rem 1.05rem;
  font-size: .9rem;
  color: #ffb4ac;
  background: rgba(255, 138, 128, .1);
  border: 1px solid rgba(255, 138, 128, .4);
  border-left: 3px solid #ff8a80;
  border-radius: var(--radius-sm);
}

@media (max-width: 991.98px) {
  .contact__panel .cform__status {
    margin-top: 0;
    padding: .85rem 1rem;
    background: rgba(111, 227, 196, .07);
    border: 0;
    border-left: 2px solid var(--mint);
    border-radius: 0 8px 8px 0;
  }
  .contact__panel .cform__status-title { font-size: 1rem; }
  .contact__panel .cform__status-text { font-size: .88rem; margin-bottom: .85rem; }
}

@media (min-width: 768px) {
  .cform__actions {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
  }
  .contact__panel > .contact__form,
  .contact__info { min-height: 100%; }
}

@media (min-width: 992px) {
  .contact__panel {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: stretch;
    border: 1px solid var(--line-2);
    border-radius: 18px;
    background: var(--surface);
    overflow: hidden;
  }
  .contact__info {
    align-items: flex-start;
    text-align: left;
    max-width: none;
    margin-inline: 0;
    padding: 3.2rem 2.5rem;
  }
  .contact__phone { justify-items: start; }
  .contact__phone-link { font-size: clamp(1.75rem, 2.2vw, 2.1rem); }
  .contact__wa { width: auto; margin-inline: 0; padding: 1.15rem 2.2rem; font-size: .88rem; }
  .contact__wa-icon { width: 18px; height: 18px; }

  .contact__form { max-width: none; margin: 0; border-top: 0; border-left: 1px solid var(--line); }
  .contact__form-summary { display: none; }
  .contact__form-card { padding: 2.5rem 2.25rem; }
  .contact__form-title { display: block; }
}

/* ---------- 16. Stopka ---------- */
.site-footer {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer__closing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.footer__statement {
  max-width: 18ch;
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}
.footer__statement em {
  font-family: var(--font-display);
  font-size: 1.12em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.02em;
  color: var(--warm);
}

.footer__inner { display: grid; gap: 2rem; }

.footer__brand { display: flex; align-items: center; gap: .75rem; }
.footer__brand .logo__img { height: 1.25rem; }
.footer__brand .logo__divider { min-height: 2rem; }
.footer__body { display: flex; flex-direction: column; gap: .1rem; }
.footer__tag { font-size: .82rem; color: var(--text-3); }

.footer__nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .88rem; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); transition: color var(--dur) var(--ease); }
.footer__nav a:hover { color: var(--mint); }

.footer__meta { display: grid; font-size: .85rem; }
.footer__meta p {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-3);
}
.footer__meta a { display: inline-flex; align-items: center; color: var(--mint); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
}
.footer__bottom p { color: var(--text-3); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
.footer__social { display: flex; gap: .25rem; margin: 0 0 0 -.4rem; padding: 0; list-style: none; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-3);
  transition: color var(--dur) var(--ease);
}
.footer__social a:hover,
.footer__social a:focus-visible { color: var(--mint); }
.footer__social svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 600px) {
  :root { --gutter: 2rem; }

  .footer__inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer__meta { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .footer__closing { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer__inner { grid-template-columns: 1.2fr 1.4fr 1fr; }
  .footer__meta { grid-column: auto; justify-items: end; }
  .footer__meta p { min-height: 2rem; }
  .footer__bottom { flex-direction: row; justify-content: space-between; gap: 1rem; }
  .footer__bottom p { white-space: nowrap; }
  .footer__social { margin: 0; }
}

/* ---------- 17. Pasek kontaktu na telefonie ---------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}
/* Atrybut hidden musi wygrywać z display: grid powyżej. */
.mobile-cta[hidden] { display: none; }
.mobile-cta__btn { min-height: 48px; }
.mobile-cta .btn--ghost { --btn-bg: var(--bg-2); }
@keyframes mobile-cta-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}
.mobile-cta:not([hidden]) { animation: mobile-cta-in .3s var(--ease); }
@media (min-width: 768px) {
  .mobile-cta { display: none; }
}

/* ---------- 18. Animacje reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 19. Case study (projekty/…) ---------- */
.case .section__head { margin-bottom: 2rem; }
.case .section__head > * { max-width: 48rem; }
.case__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 1rem;
  font-size: .88rem;
  color: var(--text-2);
  transition: color var(--dur) var(--ease);
}
.case__back:hover { color: var(--mint); }

.case__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .94rem;
  color: var(--text-2);
}

.case__shot { margin: 0 0 3rem; }
.case__shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}

.case__block { margin-bottom: 3rem; }
.case__block h2,
.case__block > p,
.case__block > ul,
.case__quote { max-width: 48rem; }
.case__block h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: .85rem; }
.case__block > p { font-size: 1.02rem; }
.case__block .plan__list li { font-size: 1rem; }

.case__quote {
  margin: 0;
  padding: .2rem 0 .2rem 1.25rem;
  border-left: 3px solid var(--mint);
}
.case__quote p { font-size: 1.05rem; font-style: italic; color: var(--text); }
.case__quote footer { margin-top: .7rem; font-size: .88rem; color: var(--text-3); }

.case__cta {
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.case__cta h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: .7rem; }
.case__cta p { max-width: 46ch; margin: 0 auto 1.5rem; }

/* ---------- 20. Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal { opacity: 1 !important; transform: none !important; }

  .btn:hover, .plan:hover { transform: none; }
  .extra__more summary::after { transition: none; }
  .mobile-cta:not([hidden]) { animation: none; }
}

/* ---------- 21. Przejścia między stronami (View Transitions) ---------- */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: .3s; }

::view-transition-group(vanthex-shot) {
  animation-duration: .55s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}

.case__shot--lead img { view-transition-name: vanthex-shot; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---------- 22. Galeria przy przewijaniu (efekt WOW 4) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .work.reveal { opacity: 1; transform: none; transition: none; }
    .work__frame { view-timeline: --work block; animation: work-open linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .work__desktop, .work__landing, .work__panel { animation: work-rise linear both; animation-timeline: --work; animation-range: entry 5% cover 45%; }
    .work__phone { animation: work-phone linear both; animation-timeline: --work; animation-range: entry 15% cover 55%; }
    .work__body { animation: work-text linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
    .process { view-timeline: --process block; }
    .process::after { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: var(--mint); transform-origin: 50% 0; pointer-events: none; animation: process-draw-y linear both; animation-timeline: --process; animation-range: cover 25% cover 70%; }
  }
}
@keyframes work-open { from { clip-path: inset(6% 5% round 24px); scale: .96; } to { clip-path: inset(0 round var(--radius)); scale: 1; } }
@keyframes work-rise { from { translate: 0 14%; } to { translate: 0 0; } }
@keyframes work-phone { from { translate: 0 55%; } to { translate: 0 0; } }
@keyframes work-text { from { translate: 0 24px; } to { translate: 0 0; } }
@keyframes process-draw-y { from { scale: 1 0; } to { scale: 1 1; } }

/* ---------- 23. Detale rzemiosła (efekt WOW 6) ---------- */
.cursor-label { position: fixed; left: 0; top: 0; z-index: 60; display: grid; place-items: center; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); font-size: .8rem; font-weight: 600; letter-spacing: .02em; pointer-events: none; opacity: 0; scale: .3; transition: opacity .25s var(--ease), scale .35s var(--ease-out); }
.cursor-label.is-on { opacity: 1; scale: 1; }
.has-cursor-label { cursor: none; }

[data-magnet] { transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), scale .15s var(--ease), translate .5s cubic-bezier(.2, 1.6, .4, 1); }
[data-magnet].is-near { transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), scale .15s var(--ease), translate .12s linear; }
[data-magnet] > span { display: inline-block; transition: translate .5s cubic-bezier(.2, 1.6, .4, 1); }
[data-magnet].is-near > span { transition-duration: .12s; transition-timing-function: linear; }

@media (prefers-reduced-motion: no-preference) {
  .contact__status-dot::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--mint); border-radius: 50%; animation: status-pulse 2.4s var(--ease-out) infinite; }
}
@keyframes status-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(3); opacity: 0; } }

@media (hover: none) {
  .btn:active, .hero__thumb:active { scale: .97; }
  .work__frame:active, .hero__slide:active { opacity: .85; }
}

/* ---------- 24. Filmy (poster od razu, wideo dopiero w kadrze — main.js, sekcja 12) ---------- */
.film--branze { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.film--telefon { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.film__poster, .film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film__video { opacity: 0; transition: opacity .6s var(--ease); }
.film.is-playing .film__video { opacity: 1; }
.film.is-failed .film__video { display: none; }

.film__toggle {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(17, 16, 14, .62);
  color: var(--text);
  cursor: pointer;
  scroll-margin: 6rem 0;   /* przy fokusie z klawiatury nie chowa się pod nagłówkiem ani paskiem kontaktu */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.film__toggle:hover { background: rgba(17, 16, 14, .86); border-color: var(--text-3); }

/* Ikona: dwie kreski = pauza, trójkąt = odtwórz */
.film__toggle::before {
  content: "";
  width: 12px;
  height: 14px;
  border-inline: 4px solid currentColor;
}
.film__toggle[data-state="play"]::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent currentColor;
}

@media (max-width: 599px) {
  /* Na wąskim ekranie mniejszy przycisk, żeby nie zasłaniał kadru (nadal min. 36 px do kliknięcia) */
  .film__toggle { top: .5rem; right: .5rem; width: 2.25rem; height: 2.25rem; }
  .film__toggle::before { width: 10px; height: 12px; border-inline-width: 3px; }
  .film__toggle[data-state="play"]::before { margin-left: 3px; border-width: 6px 0 6px 10px; }
}

.film__cap {
  max-width: 72ch;
  margin-top: .9rem;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text-3);
}
.film__label { margin-right: .35rem; color: var(--text-2); font-weight: 500; }
.film__label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 .5rem .15em 0;
  border-radius: 50%;
  background: var(--mint);
}

/* Zadanie 2.2: Standard NIVEMI */
.proof__title em {
  font-family: var(--font-display);
  font-size: 1.08em;
  font-style: italic;
  font-weight: 400;
}
.proof .eyebrow { margin-bottom: .5rem; }
.proof__lead {
  margin: -.35rem 0 1rem;
  font-size: .9rem;
  color: var(--text-2);
}
