/* ===== Font (lokalnie, wariabilny: jedna czcionka na wszystkie grubości) ===== */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin.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;
}

/* ===== Tokeny ===== */
:root {
  --bg: #0E0E10;            /* = kolor ekranu laptopa w ostatnich klatkach */
  --surface: #161619;
  --fg: #EDEDEF;
  --muted: #9C9CA5;
  --line: rgba(237, 237, 239, 0.1);
  --accent: #F2B266;
  --accent-ink: #1A1206;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --section-pad: clamp(88px, 14vh, 160px);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* nazwa firmy zachowuje swój zapis (ArchitectureIT), także w etykietach pisanych wersalikami */
.eyebrow .brand { text-transform: none; letter-spacing: 0.04em; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 15px/1 var(--font);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: #f6c286; }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--big { min-height: 56px; padding: 0 28px; font-size: 16px; }

/* ===== Przejście między stroną główną a podstronami ===== */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vt-out 0.35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ===== Nawigacja ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  background: linear-gradient(rgba(14, 14, 16, 0.75), rgba(14, 14, 16, 0));
}
.nav__logo { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__links a:not(.btn) { position: relative; color: var(--muted); transition: color 0.2s; }
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__links a:not(.btn):hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__lang {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav__links a.nav__lang::after { display: none; }
.nav__lang:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.nav__links a:not(.btn):hover { color: var(--fg); }

/* ===== Hero ===== */
.hero { position: relative; height: 250vh; z-index: 1; }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}
.hero__poster img,
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__poster img { object-fit: cover; }
.hero__canvas { display: block; transform-origin: 50% 50%; will-change: transform; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14, 14, 16, 0.85) 0%, rgba(14, 14, 16, 0) 45%),
    linear-gradient(to right, rgba(14, 14, 16, 0.55) 0%, rgba(14, 14, 16, 0) 55%);
  pointer-events: none;
}
.hero__copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(88px, 13vh, 128px);
  max-width: 720px;
}
.hero__title {
  margin: 14px 0 0;
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__lead { margin: 18px 0 0; max-width: 520px; font-size: clamp(16px, 1.4vw, 19px); color: #c4c4cb; }
.hero__skip {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(14, 14, 16, 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 14px;
  transition: background 0.2s;
}
.hero__skip:hover { background: rgba(14, 14, 16, 0.85); }

/* ograniczony ruch: tylko statyczna pierwsza klatka */
.reduced .hero { height: auto; }
.reduced .hero__canvas { display: none; }

/* ===== Sekcje ===== */
.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter) 0;
}
.section-head { max-width: 720px; margin-bottom: clamp(36px, 6vh, 64px); }
.section-title {
  margin: 12px 0 0;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* projekty zaczynają się ekran wyżej, czyli dokładnie tam, gdzie kończy się hero;
   do tego czasu clip-path przycina je do prostokąta ekranu laptopa */
.projects {
  position: relative;
  z-index: 2;
  margin-top: -100vh;
  margin-top: -100svh;
  /* co najmniej ekran wysokości, żeby po hero nic spod spodu nie prześwitywało */
  min-height: 100vh;
  min-height: 100svh;
  background: rgb(14 14 16 / var(--bg-a, 1));
  clip-path: inset(100% 0 0 0);
  transform-origin: 0 0;
  will-change: transform;
}
.reduced .projects { margin-top: 0; clip-path: none; will-change: auto; }

/* ===== Karty projektów ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card__shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card__shot { transition: box-shadow 0.5s; will-change: transform; }
.card:hover .card__shot { box-shadow: inset 0 0 0 1px rgba(242, 178, 102, 0.35), 0 30px 60px rgba(0, 0, 0, 0.45); }
.card__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__shot img { transform: scale(1.04); }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__name { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.card__industry { margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.card__result { margin: -6px 0 0; font-size: 15px; color: #c4c4cb; }
.card__actions { display: flex; gap: 18px; font-size: 14px; }
.card__open {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: 500 14px var(--font);
  cursor: pointer;
}
/* cała karta klikalna (otwiera szczegóły), link „na żywo” nad nią */
.card__open::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card__live { position: relative; z-index: 1; color: var(--muted); }
.card__live:hover { color: var(--fg); }

/* ===== Strona 404 ===== */
.notfound {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding-top: clamp(140px, 22vh, 220px);
  padding-bottom: var(--section-pad);
}
.notfound .section-title { margin: 0; }
.notfound__text { margin: 0; max-width: 52ch; }
.notfound__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 14px; }
.notfound__art {
  width: min(420px, 100%);
  height: auto;
  margin-bottom: 18px;
  overflow: visible;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notfound__art path { stroke-dasharray: 1; animation: draw 1.6s var(--ease) both; }
.notfound__art .main { stroke: var(--fg); opacity: 0.9; }
.notfound__art .main + .main { animation-delay: 0.35s; }
.notfound__art .accent { stroke: var(--accent); animation-duration: 0.6s; animation-delay: 1.4s; }
@keyframes draw { from { stroke-dashoffset: 1; } }

/* ===== O firmie (podstrona o-firmie.html) ===== */
.subpage { min-height: 100vh; display: flex; flex-direction: column; }
.subpage main { flex: 1; width: 100%; }
.about-page {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding-top: clamp(120px, 18vh, 180px);
  padding-bottom: var(--section-pad);
}
.about-page .company__card { position: sticky; top: 96px; }
.about-page__body { display: grid; gap: clamp(24px, 3.5vw, 36px); }
.about-page__body .section-title { margin-bottom: 0; }
.about-page .about__text a { color: var(--fg); border-bottom: 1px solid var(--accent); }
.about-page__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.about-page__link { color: var(--muted); transition: color 0.2s; }
.about-page__link:hover { color: var(--fg); }
.nav__links a[aria-current="page"] { color: var(--fg); }
.company__card {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(242, 178, 102, 0.18), transparent 60%),
    linear-gradient(160deg, #1b1b1f, #111113);
  box-shadow: inset 0 0 0 1px var(--line);
}
.company__card .eyebrow { margin: 0; }
.company__name {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.company__data { display: grid; gap: 0; margin: 0; }
.company__data div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.company__data dt { color: var(--muted); font-size: 14px; }
.company__data dd { margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.about__text { display: grid; gap: 16px; max-width: 60ch; }
.about__text p { margin: 0; color: #c4c4cb; font-size: clamp(16px, 1.3vw, 18px); }
.about__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.about__facts li { display: grid; gap: 4px; padding: 16px 18px; background: var(--bg); }
.about__facts strong { font-weight: 600; font-size: 16px; }
.about__facts span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.about__stack { display: grid; gap: 12px; }
.about__stack .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.about__stack .tags li {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ===== Jak pracuję ===== */
.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.process__line {
  position: absolute;
  top: 136px; /* wysokość grafiki (96px) + odstęp (18px) + połowa kółka z numerem (22px) */
  left: 22px;
  right: 22px;
  height: 1px;
  background: var(--line);
}
.process__line span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}
.process__step { position: relative; display: grid; gap: 10px; align-content: start; }
/* grafiki z jednej linii: rysują się przy scrollu (--draw-main, --draw-accent ustawia main.js) */
.process__art {
  display: block;
  width: auto;
  height: 96px;
  margin-bottom: 18px;
  overflow: visible;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.process__art path { stroke-dasharray: 1; }
.process__art .main { stroke: var(--fg); stroke-dashoffset: calc(1 - var(--draw-main, 0)); opacity: 0.9; }
.process__art .accent { stroke: var(--accent); stroke-dashoffset: calc(1 - var(--draw-accent, 0)); }
.process__art .dots { stroke-width: 5; stroke-dasharray: none; opacity: var(--draw-accent, 0); }
.reduced .process__art { --draw-main: 1; --draw-accent: 1; }
.process__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.4s, box-shadow 0.4s, background 0.4s;
}
.process__step.is-active .process__num {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(242, 178, 102, 0.12);
}
.process__step h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.process__step p { margin: 0; color: var(--muted); font-size: 16px; }
html:not(.reduced) .process__step { transition: opacity 0.5s; }
html:not(.reduced) .process__step:not(.is-active) { opacity: 0.55; }
.reduced .process__line span { --progress: 1; }

/* ===== Oferta ===== */
.offer__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.offer__item { position: relative; padding: clamp(24px, 3vw, 36px); background: var(--bg); transition: background 0.35s; }
.offer__item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.offer__item:hover { background: #141417; }
.offer__item:hover::before { transform: scaleX(1); }
.offer__item h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.offer__item p { margin: 0; color: var(--muted); font-size: 16px; }
.offer__note { margin: 20px 0 0; font-size: 15px; }
.offer__note a { color: var(--fg); border-bottom: 1px solid var(--accent); }

/* ===== Kontakt ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  padding-bottom: var(--section-pad);
}
.contact .section-title { margin-bottom: 16px; }
.contact__mail {
  display: inline-block;
  margin-top: 18px;
  font-size: 18px;
  border-bottom: 1px solid var(--accent);
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.field { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.field--full { grid-column: 1 / -1; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--fg);
  font: 400 16px/1.4 var(--font);
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; }
.form__note { grid-column: 1 / -1; margin: 0; font-size: 14px; min-height: 1.4em; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn:disabled { opacity: 0.6; cursor: progress; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* ===== Szczegóły projektu ===== */
.detail {
  width: min(1120px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--line);
}
.detail::backdrop { background: rgba(5, 5, 6, 0.75); backdrop-filter: blur(4px); }
.detail[open] { animation: pop 0.35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.detail__inner { position: relative; display: grid; gap: 14px; padding: clamp(20px, 3vw, 36px); }
.detail__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  font-size: 16px;
  cursor: pointer;
}
.detail__title { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.02em; }
.detail .muted { margin: 0; }
.detail .btn { justify-self: start; margin-top: 4px; }

/* galeria: desktop z miniaturami + telefon */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(150px, 17%, 200px);
  gap: 18px;
  align-items: start;
  margin-top: 6px;
}
.gallery[hidden] { display: none; }
.gallery figure { margin: 0; }
.gallery__main img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery__thumbs[hidden] { display: none; }
.gallery__thumb {
  width: 96px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.55;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: opacity 0.2s, box-shadow 0.2s;
}
.gallery__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.gallery__thumb:hover { opacity: 0.85; }
.gallery__thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.gallery__phone {
  padding: 6px;
  border-radius: 28px;
  background: #050506;
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, 0.5);
}
.gallery__phone[hidden] { display: none; }
.gallery__phone img { width: 100%; aspect-ratio: 600 / 1299; object-fit: cover; object-position: top; border-radius: 22px; }

/* suwak przed / po */
.compare[hidden] { display: none; }
.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg);
  user-select: none;
  touch-action: pan-y;
}
.compare img { width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--fg);
  pointer-events: none;
}
.compare__handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-size: 18px;
}
.compare__tag {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 14, 16, 0.7);
  font-size: 12px;
  pointer-events: none;
}
.compare__tag--before { left: 12px; }
.compare__tag--after { right: 12px; }
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
  body { font-size: 16px; }
  /* na wąskim ekranie treść przewija się tuż pod menu, więc dostaje ciemne, rozmyte tło */
  .nav {
    background: rgba(14, 14, 16, 0.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
  }
  .nav__links { gap: 12px; }
  .nav__logo, .nav__links a { white-space: nowrap; }
  .nav__logo { font-size: 15px; }
  .nav__links { font-size: 14px; }
  .nav .btn--small { padding: 0 12px; min-height: 34px; font-size: 13px; }
  .nav__links a:not(.btn):not(.nav__about):not(.nav__lang) { display: none; }
  .hero__copy { bottom: 92px; }
  .hero__skip { left: var(--gutter); right: auto; bottom: 28px; }
  .offer__list { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; gap: 36px; padding-left: 64px; }
  .process__art { height: 80px; margin-bottom: 6px; }
  .process__line { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; }
  .process__line span { height: 100%; transform: scaleY(var(--progress, 0)); transform-origin: top; }
  .process__num { position: absolute; left: -64px; top: -10px; margin: 0; }
  .about-page { grid-template-columns: 1fr; padding-top: 104px; }
  .about-page .company__card { position: static; }
  .contact { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__phone { width: 55%; justify-self: center; }
  .gallery__thumb { width: 72px; }
}
/* pionowy telefon: start jak na canvasie, czyli kadr 1.8× „contain” z wtopionymi krawędziami */
@media (max-width: 767px) and (orientation: portrait) {
  .hero__poster img {
    inset: 50% auto auto 50%;
    width: 180vw;
    height: auto;
    translate: -50% -50%;
    -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .btn::before, .nav__links a::after, .offer__item::before { transition: none; }
  .card, .card__shot img, .btn { transition: none; }
  .detail[open] { animation: none; }
  .notfound__art path { animation: none; }
}
