/* ============================================================
   Wiktor Godlewski — Portfolio v1
   Klimat: ciemny, kameralny, ciepłe akcenty + odręczne podkreślenia
   ============================================================ */

:root{
  --bg: #150f19;
  --bg-soft: #1f1a23;
  --bg-elevated: #2a2430;
  --line: #352d3c;
  --text: #f4eff6;
  --text-dim: #cabfd1;
  --text-mute: #948a9c;
  --accent: #f2a63a;
  --accent-ink: #2a1a05;
  --accent-2: #97e7fe;
  --rose: #f28aa3;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'WG Display', var(--font-sans);
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, monospace;
  --font-hand: 'Caveat', cursive;

  --radius: 16px;
  --wrap: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

h1, h2, h3{ font-family: var(--font-display); }

.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus{ left: 0; }

/* Cel kotwicy „do góry” — zerowej wysokości, na samej górze dokumentu. */
.anchor-top{ display: block; height: 0; }

.mono{ font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.02em; color: var(--accent); }
.hand{ font-family: var(--font-hand); font-weight: 600; color: var(--accent); }

/* ---------- Browser surfaces ---------- */
::selection{ background: var(--accent); color: var(--accent-ink); }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover{ background: var(--accent); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: transform .18s ease, background .18s ease, border-color .18s ease;
  cursor: pointer;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0,0,0,0.55); }
.btn-accent{ background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover{ background: #ffb84f; }
.btn-ghost{ background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }
.btn-lg{ padding: 15px 30px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(21, 15, 25, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px;
}
/* Bez logo: menu trzyma się lewej krawędzi, akcje zostają po prawej. */
.nav{ display: flex; gap: 28px; }

.header-actions{ display: flex; align-items: center; gap: 18px; }
.lang-switch{ display: flex; align-items: center; gap: 2px; }
.lang-switch a{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; min-height: 26px; padding: 0 4px;
  color: var(--text-mute); transition: color .15s;
}
.lang-switch a:hover{ color: var(--accent); }
.lang-switch a[aria-current="page"]{ color: var(--accent); }
.lang-switch span{ color: var(--text-mute); opacity: 0.7; }
.nav a{ font-size: 0.95rem; color: var(--text-dim); transition: color .15s; }
.nav a:hover{ color: var(--accent); }

.header-cta{ white-space: nowrap; }

.burger{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
}
.burger span{ width: 18px; height: 2px; background: var(--text); margin: 0 auto; display: block; }

/* ---------- Hero ---------- */
.hero{ padding: 72px 0 40px; }
.hero-grid{ max-width: 760px; }
.hero-copy h1{
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.05; margin: 0 0 24px; font-weight: 800; letter-spacing: -0.01em;
}
.lead{ font-size: 1.1rem; color: var(--text-dim); max-width: 46ch; margin: 0 0 28px; }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }
.tag{ margin: 0 0 8px; }

.trustedby{ margin-top: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.trustedby-label{ font-size: 0.95rem; letter-spacing: 0.04em; }
.trustedby-logos{ display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.trustedby-logo{
  display: block; height: 96px; width: auto;
  background-repeat: no-repeat; background-position: left center; background-size: contain;
  opacity: 0.82; filter: grayscale(1) brightness(1.4); transition: opacity .2s, filter .2s;
}
.trustedby-logo:hover{ opacity: 1; filter: none; }

/* ---------- No-save assets ---------- */
.no-save{
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-user-drag: none;
}

/* ---------- Sections ---------- */
.section{ padding: 96px 0; }
.section-alt{ background: var(--bg-soft); }
.section-title{
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin: 0 0 16px; line-height: 1.2;
}
.section-lead{ color: var(--text-dim); max-width: 58ch; font-size: 1.05rem; margin: 0 0 40px; }

/* ---------- Projects ---------- */
.filters{ display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-btn{
  background: transparent; border: 1px solid var(--line); color: var(--text-dim);
  padding: 9px 18px; border-radius: 999px; font-family: var(--font-sans);
  font-size: 0.9rem; cursor: pointer; transition: all .15s;
}
.filter-btn:hover{ border-color: var(--accent); color: var(--accent); }
.filter-btn.is-active{ background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

.underline-wrap{ position: relative; display: inline-block; padding-bottom: 0.1em; }
.sig-underline{
  position: absolute; left: 0; bottom: -0.08em; width: 100%; height: 0.4em; overflow: visible;
}
/* Domyślnie kreska jest narysowana; chowamy ją do animacji tylko przy działającym JS. */
.sig-underline path{
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 200;
}
.js .sig-underline path{ stroke-dashoffset: 200; }
.js .reveal.is-visible .sig-underline path{
  transition: stroke-dashoffset 0.9s cubic-bezier(.65,0,.35,1) 0.3s;
  stroke-dashoffset: 0;
}

.project-mosaic{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.tile{
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elevated);
  box-shadow: 0 28px 56px -32px rgba(10,7,13,0.76);
  transition: box-shadow .3s ease, border-color .3s ease;
  cursor: pointer; font-family: var(--font-sans); text-align: left; padding: 0;
}
.tile:hover, .tile:focus-visible{ border-color: var(--accent); box-shadow: 0 32px 64px -28px rgba(0,0,0,0.7); }
.tile.is-disabled{ cursor: default; }
.tile.is-disabled:hover{ border-color: var(--line); }

.tile-media{ position: absolute; inset: 0; overflow: hidden; display: block; }
.tile-stage{
  height: 100%; width: 100%; display: block; transform-style: preserve-3d; transform-origin: 50% 55%;
  transform: rotateX(7deg) rotateY(-9deg) scale(1.16);
  transition: transform 1.1s cubic-bezier(.22,1,.36,1);
}
.tile:hover .tile-stage, .tile:focus-visible .tile-stage{ transform: rotateX(3deg) rotateY(-4deg) scale(1.08); }
.tile-stage img{
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: top center;
  filter: brightness(.94);
}

.tile-stage--flat{
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 16px; height: 100%;
}
.tile-stage--flat.accent-amber{ background-image: linear-gradient(135deg, #3a2a12, #6b4514 55%, #f2a63a 130%); }
.tile-stage--flat.accent-blue{ background-image: linear-gradient(135deg, #12303a, #14556b 55%, #97e7fe 130%); }
.tile-stage--flat.accent-rose{ background-image: linear-gradient(135deg, #3a1220, #6b1436 55%, #f28aa3 130%); }
.tile-mono{ font-family: var(--font-hand); font-size: 2.4rem; font-weight: 600; color: rgba(255,255,255,0.9); }
/* Kafel bez zrzutu strony: znak marki na środku, nie monogram w rogu. */
.tile-stage--mark{
  display: flex; align-items: center; justify-content: center;
  padding: 12%; background: #000;
  transform: none;
}
.tile:hover .tile-stage--mark, .tile:focus-visible .tile-stage--mark{ transform: none; }
/* Wyższa specyficzność niż `.tile-stage img`, które wymusza cover na zrzutach —
   inaczej znak byłby kadrowany do proporcji kafla i przycięty. */
.tile-stage--mark img.tile-mark{
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform 1.1s cubic-bezier(.22,1,.36,1);
}
.tile:hover .tile-stage--mark img.tile-mark,
.tile:focus-visible .tile-stage--mark img.tile-mark{ transform: scale(1.05); }

.tile-badge{
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.7rem; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(21,15,25,0.6); backdrop-filter: blur(6px);
  color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em;
}
.tile-badge.is-firma{ color: var(--accent-2); border-color: rgba(151,231,254,0.4); }
.tile-badge.is-wolny{ color: var(--accent); border-color: rgba(242,166,58,0.4); }
.tile-badge.is-placeholder{ color: var(--rose); border-color: rgba(242,138,163,0.4); }

/* Przyciemnienie musi wystarczyć także pod jasnym zrzutem strony,
   inaczej biały podpis i strzałka gubią kontrast. */
.tile-label{
  position: absolute; inset: auto 0 0; z-index: 1; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; padding: 64px 18px 18px;
  background: linear-gradient(#18141c00, #18141c73 45%, #18141ceb);
}
/* Kafel ze znakiem stoi na czerni — pełne przyciemnienie tylko przygaszałoby
   dolną część logo, a podpis i tak ma tam kontrast. */
.tile:has(.tile-stage--mark) .tile-label{
  padding-top: 40px;
  background: linear-gradient(#00000000, #00000059 60%, #000000b3);
}
.tile-name{
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text); line-height: 1.15;
}
.tile-arrow{ width: 34px; height: 34px; color: var(--text-dim); flex: none; transition: color .2s, transform .2s; }
.tile:hover .tile-arrow, .tile:focus-visible .tile-arrow{ color: var(--accent); transform: translate(2px, -2px); }

/* ---------- About ---------- */
.about-grid{ display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: stretch; }
/* Kolumna ze zdjęciem rozciąga się na wysokość tekstu, a pasek social mediów
   jest dociśnięty do jej dołu — dzięki temu ikony kończą się równo z opisem. */
.about-visual{ display: flex; flex-direction: column; }
/* flex-basis 0 sprawia, że to długość opisu wyznacza wysokość wiersza,
   a zdjęcie wypełnia resztę — ikony kończą się równo z ostatnią linijką tekstu. */
.about-portrait{
  flex: 1 1 0; min-height: 0; margin-bottom: 20px;
  border-radius: var(--radius); position: relative; overflow: hidden;
  box-shadow: 0 28px 56px -32px rgba(10,7,13,0.76);
}
.about-portrait img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.8) contrast(1.05);
}
.about-portrait::after{
  content: ""; position: absolute; inset: 0; background: var(--bg);
  opacity: .3; mix-blend-mode: soft-light; pointer-events: none;
}
.about-copy .section-title{ margin-bottom: 28px; }
.about-text p{
  color: var(--text-dim); font-size: 1.2rem; line-height: 1.6;
  max-width: 54ch; margin: 0 0 22px;
}
.about-text p:last-child{ margin-bottom: 0; }
/* Caveat ma niższy x-height niż Inter — powiększone, żeby optycznie zgadzało się z tekstem. */
.about-text .hand{ font-size: 1.32em; line-height: 1; }

/* Pasek jak w referencji: podpis po lewej, ikony po prawej, cienka linia nad nimi. */
.about-socials{
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line);
}
.about-socials-label{ margin: 0; white-space: nowrap; }

.social-links{ display: flex; justify-content: flex-start; gap: 16px; }
.social-links a{
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  color: var(--text-dim); transition: color .2s, border-color .2s, transform .2s;
}
.social-links a:hover{ color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.social-links--footer a{ width: 32px; height: 32px; }

/* ---------- Services ---------- */
.services-list{ border-top: 1px solid var(--line); }
.service-row{
  display: grid; grid-template-columns: 160px 260px 1fr; gap: 28px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transform: translateX(0); transition: transform .25s ease;
}
.service-row:hover{ transform: translateX(10px); }
.service-tag{ margin: 0; }
.service-row h3{ margin: 0; font-size: 1.2rem; }
.service-row p:not(.service-tag){ margin: 0; color: var(--text-dim); font-size: 0.95rem; max-width: 60ch; }

/* ---------- Steps ---------- */
.steps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
/* Cienka, neutralna linia jak w liście usług — akcent niesie numer kroku, nie krawędź. */
.step{ display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 18px; }
.step-num{ margin: 0 0 10px; }
.step h3{ margin: 0 0 8px; font-size: 1.05rem; }
.step p{ margin: 0; color: var(--text-dim); font-size: 0.92rem; }
/* margin-top:auto wyrównuje „Dostajesz” do dołu wszystkich czterech kolumn,
   niezależnie od długości opisu — linie oddzielające układają się w jednej osi. */
.step > p:not(.step-get){ margin-bottom: 16px; }
.step-get{
  margin-top: auto !important; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--text) !important;
}
.step-get-label{
  display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}

/* ---------- Contact ---------- */
.kontakt-inner{ text-align: center; max-width: 720px; }
.kontakt .section-lead{ margin-left: auto; margin-right: auto; }

.contact-form{
  text-align: left; max-width: 480px; margin: 0 auto 24px; display: flex;
  flex-direction: column; gap: 18px;
}
.form-row{ display: flex; flex-direction: column; gap: 8px; }
.form-row label{ font-size: 0.9rem; color: var(--text-dim); }
.form-row input, .form-row textarea{
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: var(--font-sans); font-size: 0.98rem;
  resize: vertical;
}
/* Myszą: samo podświetlenie ramki. Klawiaturą: dodatkowo widoczny pierścień fokusa. */
.form-row input:hover, .form-row textarea:hover{ border-color: var(--text-mute); }
.form-row input:focus, .form-row textarea:focus{ border-color: var(--accent); }
.form-row input[aria-invalid="true"], .form-row textarea[aria-invalid="true"]{ border-color: var(--rose); }
.form-row input[aria-invalid="true"]:focus-visible,
.form-row textarea[aria-invalid="true"]:focus-visible{ outline-color: var(--rose); }
.contact-form .btn{ align-self: flex-start; }
.req{ color: var(--accent); font-weight: 600; }
.form-note{ margin: 0 0 6px; color: var(--text-mute); font-size: 0.82rem; }
.form-status{ min-height: 1.2em; font-size: 0.9rem; color: var(--text-mute); margin: 0; }
.form-status.is-success{ color: var(--accent-2); }
.form-status.is-error{ color: var(--rose); }

.contact-meta{ margin: 40px 0 0; }
/* Adres jest tu drugą drogą kontaktu, nie przypisem — dlatego rozmiar nagłówka,
   lekka grubość i brak podkreślenia, tak jak w referencji. */
.contact-mail{
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.2vw, 2.5rem);
  font-weight: 400; letter-spacing: -0.03em; line-height: 1.15;
  color: var(--text); transition: color .18s ease;
}
.contact-mail:hover{ color: var(--accent); }
.inline-link{ color: var(--text-mute); text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover{ color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer{ border-top: 1px solid var(--line); padding: 28px 0; }
.footer-rights{
  margin: 0; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.footer-inner{ display: flex; justify-content: space-between; align-items: center; color: var(--text-mute); font-size: 0.85rem; flex-wrap: wrap; gap: 10px; }
.footer-inner a:hover{ color: var(--accent); }
.footer-links{ display: flex; align-items: center; gap: 20px; }
.footer-links a{
  display: inline-flex; align-items: center; min-height: 26px;
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.link-btn{
  background: none; border: none; padding: 0; font-family: var(--font-sans); font-size: 0.85rem;
  color: var(--text-mute); cursor: pointer; letter-spacing: 0.03em;
}
.link-btn:hover{ color: var(--accent); }

.to-top{ gap: 7px; }
/* Strzałka rysowana ręcznie, w duchu odręcznych akcentów (Caveat):
   grubsza kreska, wygięty trzon, asymetryczny grot i lekkie pochylenie pisma. */
.to-top-arrow{ width: 17px; height: 17px; transform: rotate(5deg); transition: transform .2s ease; }
.to-top:hover .to-top-arrow{ transform: rotate(5deg) translateY(-3px); }

/* ---------- Privacy modal ---------- */
.privacy-actions{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.privacy-link{ color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Modal ---------- */
.modal-overlay{
  position: fixed; inset: 0; background: rgba(10, 7, 13, 0.78);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 300;
  backdrop-filter: blur(4px);
}
.modal-overlay[hidden]{ display: none; }
.modal{
  position: relative; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px; max-width: 480px; width: 100%;
  animation: modalIn .25s ease;
}
@keyframes modalIn{ from{ opacity: 0; transform: translateY(12px) scale(.98); } to{ opacity: 1; transform: translateY(0) scale(1); } }
.modal-head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-close{
  background: none; border: none; padding: 4px; flex: none;
  color: var(--text-mute); font-size: 1rem; cursor: pointer; line-height: 1;
}
.modal-close:hover{ color: var(--accent); }

/* Okno z żywą stroną: szersze i wyższe, żeby dało się ją realnie przeglądać. */
.modal-overlay--wide .modal{ max-width: min(1140px, 94vw); padding: 24px; }
.modal-embed{
  margin-top: 18px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  height: min(72vh, 720px);
}
.modal-embed iframe{ width: 100%; height: 100%; border: 0; display: block; }
.modal-thumb{
  height: 220px; border-radius: 10px; margin-top: 18px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 14px;
  background-size: cover; background-position: top center;
}
.modal-thumb.accent-amber{ background-image: linear-gradient(135deg, #3a2a12, #6b4514 55%, #f2a63a 130%); }
.modal-thumb.accent-blue{ background-image: linear-gradient(135deg, #12303a, #14556b 55%, #97e7fe 130%); }
.modal-thumb.accent-rose{ background-image: linear-gradient(135deg, #3a1220, #6b1436 55%, #f28aa3 130%); }
.modal-thumb span{ font-family: var(--font-hand); font-size: 2.2rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.modal h3{ margin: 0; font-size: 1.3rem; }
.modal-head .tag{ margin: 0 0 4px; }
.modal p{ color: var(--text-dim); margin: 0; font-size: 0.95rem; }
.modal-thumb[hidden], .modal-embed[hidden]{ display: none; }
/* Modal prywatności nie ma nagłówka z tytułem — przycisk zamykania zostaje w rogu. */
#privacy-overlay .modal{ padding: 36px; }
#privacy-overlay .modal-close{ position: absolute; top: 16px; right: 16px; }
#privacy-overlay h3{ margin: 0 0 12px; }

/* ---------- Reveal on scroll ----------
   Ukrywamy TYLKO wtedy, gdy JavaScript naprawdę działa (klasa .js na <html>).
   Bez niego — albo gdy skrypt się wywali — treść po prostu jest widoczna,
   zamiast zostać na zawsze przy opacity: 0. */
.js .reveal{ opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- Ograniczony ruch ----------
   Treść pozostaje w pełni widoczna: żadnych wjazdów, przechyłów ani rysowania kresek. */
/* ---------- FAQ ---------- */
.faq-list{ list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); }
.faq-item{ padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.faq-item + .faq-item{ padding-top: 10px; }
.faq-item summary{
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 12px 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-q{ font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.faq-item summary:hover .faq-q{ color: var(--accent); }
/* znacznik + / − rysowany, nie glif z czcionki */
.faq-mark{ position: relative; flex: none; width: 16px; height: 16px; margin-top: 6px; }
.faq-mark::before, .faq-mark::after{
  content: ""; position: absolute; background: var(--text-mute); transition: transform .2s ease, background .2s ease;
}
.faq-mark::before{ inset: 7px 0 7px 0; height: 2px; }
.faq-mark::after{ inset: 0 7px 0 7px; width: 2px; }
.faq-item summary:hover .faq-mark::before, .faq-item summary:hover .faq-mark::after{ background: var(--accent); }
.faq-item details[open] .faq-mark::after{ transform: scaleY(0); }
.faq-a{ padding: 0 0 14px; max-width: 62ch; }
.faq-a p{ margin: 0; color: var(--text-dim); line-height: 1.7; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal{ opacity: 1; transform: none; }
  .sig-underline path{ stroke-dashoffset: 0; }
  .tile-stage, .tile:hover .tile-stage, .tile:focus-visible .tile-stage{ transform: none; }
  .tile-stage--mark img.tile-mark,
  .tile:hover .tile-stage--mark img.tile-mark,
  .tile:focus-visible .tile-stage--mark img.tile-mark{ transform: none; }
  .btn:hover, .service-row:hover, .social-links a:hover, .to-top:hover .to-top-arrow{ transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; }
  /* Jedna kolumna: zdjęcie wraca do stałych proporcji, bo nie ma się już do czego dopasować. */
  .about-visual{ max-width: 360px; }
  .about-portrait{ flex: none; aspect-ratio: 4 / 5; }
  .about-socials{ grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .steps{ grid-template-columns: repeat(2, 1fr); }
  .project-mosaic{ grid-template-columns: 1fr; }
  .service-row{ grid-template-columns: 120px 1fr; }
  .service-row h3{ grid-column: 2; }
  .service-row p:not(.service-tag){ grid-column: 2; }
}

@media (max-width: 720px){
  /* Menu pojawia się tuż pod nagłówkiem zamiast przejeżdżać po nim.
     `visibility` trzyma je poza kolejnością Tab, dopóki jest zamknięte. */
  .nav{
    position: fixed; top: 72px; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); flex-direction: column; padding: 18px 24px; gap: 16px;
    box-shadow: 0 24px 40px -28px rgba(0,0,0,0.8);
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open{
    visibility: visible; opacity: 1; transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  /* Rozwinięte menu to pozycje dotykane palcem — 24px wysokości linku to za mało. */
  .nav a{ padding: 6px 0; }
  /* Hamburger po lewej, przełącznik języka i CTA po prawej. */
  .burger{ display: flex; order: -1; }
  .header-actions{ gap: 14px; }
  .header-cta{ padding: 10px 18px; font-size: 0.9rem; }
  .steps{ grid-template-columns: 1fr; }
  .service-row{ grid-template-columns: 1fr; }
  .service-row h3{ grid-column: 1; }
  .service-row p:not(.service-tag){ grid-column: 1; }
}
