/* ==========================================================================
   PRZETNIJ BETON / R-TECH — v3
   Kierunek: prosta, klasyczna struktura one-pagera wg systemu z case study
   gryf.ai (docs/case-studies/gryf-ai.md): jeden krój, jasna baza, ciemne
   panele jako „karty na stronie”, pigułkowe przyciski, jeden powtarzalny ruch
   (blur-in). Akcent = czerwień z logo klienta (#ED2024).

   Kształty (jedna reguła na całą stronę):
   przyciski, pola, badge = pigułka · zdjęcia = 16px · panele = 28px
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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;
}

:root {
  /* baza: chłodna, neutralna szarość. Bez beżu — to beton, nie papier */
  --paper:   #fbfbfb;
  --paper-2: #f3f4f5;
  --paper-3: #e9eaec;          /* panel manifestu */
  --ink:     #191a1d;          /* tekst, ciemne panele */
  --ink-2:   #222428;          /* karty na ciemnym */
  --on-dark: #f4f4f5;

  /* tekst drugorzędny = kolor bazowy z alfą, więc szarości „należą” do tła */
  --muted:      color-mix(in oklab, var(--ink) 66%, transparent);      /* 5.6:1 na --paper */
  --muted-dark: color-mix(in oklab, var(--on-dark) 68%, transparent);

  --stroke:      #dcdee2;
  --stroke-2:    #c9ccd1;
  --stroke-dark: #34373d;

  /* akcent: czerwień z logo. Na przyciskach ciemniejsza, żeby biały tekst miał ≥4.5:1 */
  --red:       #ed2024;        /* logo, kropki, glow */
  --red-btn:   #d11a1f;        /* tło CTA, 5.1:1 z białym */
  --red-btn-h: #b3151a;
  --red-text:  #c4161c;        /* tekst akcentu na jasnym, 5.6:1 */
  --red-soft:  #fdecec;

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --h1: clamp(2.35rem, 1.5rem + 3.4vw, 4.25rem);
  --h2: clamp(1.9rem, 1.35rem + 2.2vw, 3.25rem);
  --h3: clamp(1.45rem, 1.2rem + 1vw, 2.1rem);
  --h4: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);

  --maxw: 80.5rem;             /* 1290px, jak w gryf */
  --gutter: clamp(1.25rem, 3.5vw, 2rem);
  --section-y: clamp(5rem, 9vw, 9rem);

  --r-media: 16px;
  --r-panel: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-nav: 50;
  --z-menu: 60;

  color-scheme: light;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red-btn); outline-offset: 3px; }
::selection { background: var(--red-btn); color: #fff; }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); line-height: 1.12; }
h3 { font-size: var(--h3); line-height: 1.15; }
h4 { font-size: var(--h4); line-height: 1.3; letter-spacing: -0.015em; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--muted); max-width: 52ch; }
.muted { color: var(--muted); }
.sec-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 0.8rem 1.2rem; background: var(--ink); color: #fff; border-radius: 999px;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --- Badge ---------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--paper-3);
  font-size: 0.875rem; font-weight: 500;
  width: fit-content;
}
.badge--red { background: var(--red-soft); color: var(--red-text); }

/* --- Przyciski: pigułka ze strzałką w dwóch kopiach -----------------------
   Na hover widoczna strzałka ucieka w prawo, druga wjeżdża z lewej. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 54px; padding: 0 1.75rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 1rem; line-height: 1.2;
  white-space: nowrap; cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), scale .4s var(--ease);
}
.btn:hover { scale: 1.02; }
.btn:active { scale: 0.98; }
.btn--red { background: var(--red-btn); color: #fff; }
.btn--red:hover { background: var(--red-btn-h); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #33363c; }
.btn--line { border-color: var(--stroke-2); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--line-dark { border-color: var(--stroke-dark); color: var(--on-dark); }
.btn--line-dark:hover { border-color: var(--on-dark); }
.btn--sm { min-height: 44px; padding: 0 1.25rem; font-size: 0.9375rem; }

.btn__icon { position: relative; width: 18px; height: 18px; overflow: hidden; flex: none; }
.btn__icon svg {
  position: absolute; inset: 0; width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: translate .35s var(--ease);
}
.btn__icon svg:first-child { translate: -22px 0; }
.btn:hover .btn__icon svg:first-child { translate: 0 0; }
.btn:hover .btn__icon svg:last-child { translate: 22px 0; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- Nawigacja: klasyczny biały pasek -------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-stuck { border-bottom-color: var(--stroke); }
.nav__inner {
  height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav__logo img { height: 50px; width: auto; }
.nav__links { display: flex; gap: clamp(1rem, 2vw, 2rem); list-style: none; padding: 0; }
.nav__links a { font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: color .2s ease; white-space: nowrap; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__phone { font-weight: 600; font-size: 0.95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav__phone:hover { color: var(--red-text); }
.nav__toggle {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--stroke-2); border-radius: 999px; background: none; cursor: pointer;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative;
  transition: transform .3s var(--ease), background .2s ease;
}
.nav__toggle span::before, .nav__toggle span::after { content: ''; position: absolute; left: 0; }
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after { top: 5px; }
.nav__toggle[aria-expanded='true'] span { background: transparent; }
.nav__toggle[aria-expanded='true'] span::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span::after { transform: translateY(-5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 76px 0 auto; z-index: var(--z-menu);
  background: var(--paper);
  border-bottom: 1px solid var(--stroke);
  padding: 1rem var(--gutter) 1.5rem;
  display: none;
}
.menu.is-open { display: block; }
.menu ul { list-style: none; padding: 0; }
.menu li a { display: block; padding: 0.85rem 0; font-size: 1.25rem; font-weight: 500; border-bottom: 1px solid var(--stroke); }
.menu .actions { margin-top: 1.25rem; }
.menu .btn { flex: 1 1 100%; }

@media (max-width: 1060px) {
  .nav__links { display: none; }
}
@media (max-width: 760px) {
  .nav__cta .btn, .nav__phone { display: none; }
  .nav__toggle { display: flex; }
  .nav__logo img { height: 38px; }
}

/* --- HERO: tekst po lewej, zdjęcie po prawej ------------------------------ */
.hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3.5rem, 6vw, 5.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__copy { display: grid; gap: 1.5rem; justify-items: start; }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--red-text); }
.hero .lead { max-width: 44ch; }
.hero .actions { margin-top: 0.5rem; }
.hero__media {
  position: relative;
  border-radius: var(--r-media);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: calc(100dvh - 76px - 5rem);
  justify-self: end;
  width: 100%;
  background: var(--paper-3);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4 / 3; max-height: none; }
  .hero__media img { object-position: 50% 35%; }
}
@media (max-width: 560px) {
  .hero .actions { width: 100%; }
  .hero .actions .btn { flex: 1 1 100%; }
}

/* --- LOGOTYPY: marquee z wygaszonymi krawędziami --------------------------- */
.logos { padding-block: clamp(2rem, 4vw, 3rem); border-block: 1px solid var(--stroke); }
.logos__label { text-align: center; font-size: 0.95rem; color: var(--muted); margin-bottom: 1.5rem; }
.logos__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}
.logos__track { display: flex; width: max-content; align-items: center; }
.logos__track img {
  width: auto; height: 2.5rem; max-width: 8.5rem; object-fit: contain;
  margin-inline: clamp(1.25rem, 3vw, 2.5rem);
  opacity: 0.62; transition: opacity .3s ease;
}
.logos__track img:hover { opacity: 1; }

/* --- USŁUGI: lista zakładek + panel --------------------------------------
   Bez JS wszystkie panele leżą jeden pod drugim (czytelne, indeksowalne).
   Z JS lista po lewej przełącza jeden panel po prawej. */
.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.services__tabs { display: none; }
.js .services__tabs {
  display: grid; gap: 0.25rem;
  position: sticky; top: 100px;
}
.tab {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; text-align: left;
  padding: 1rem 1.25rem;
  border: 1px solid transparent; border-radius: 999px;
  background: none; cursor: pointer;
  font-size: 1.0625rem; font-weight: 500; color: var(--muted);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.tab:hover { color: var(--ink); background: var(--paper-2); }
.tab[aria-selected='true'] { background: var(--ink); color: #fff; }
.tab__no { font-size: 0.8125rem; font-variant-numeric: tabular-nums; opacity: 0.7; }

.services__panels { display: grid; gap: 4rem; }
.js .services__panels { display: block; }
.js .service[hidden] { display: none; }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
.service__media {
  border-radius: var(--r-media); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--paper-3);
}
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.service:hover .service__media img { scale: 1.04; }
.service__body { display: grid; gap: 1.25rem; align-content: start; justify-items: start; }
.service__body .lead { font-size: 1.0625rem; }

.checks { list-style: none; padding: 0; display: grid; gap: 1rem; margin-block: 0.25rem 0.5rem; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 0.85rem; align-items: start; }
.checks li::before {
  content: ''; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.6 6.6 9 1.2' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 8px no-repeat;
}
.checks strong { display: block; font-weight: 600; line-height: 1.4; }
.checks span { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.975rem; line-height: 1.5; }

@media (max-width: 1000px) {
  .services__grid { grid-template-columns: 1fr; }
  .js .services__tabs {
    position: static;
    display: flex; gap: 0.5rem; overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 0.25rem;
    scrollbar-width: none;
  }
  .js .services__tabs::-webkit-scrollbar { display: none; }
  .tab { width: auto; flex: none; white-space: nowrap; border-color: var(--stroke); padding: 0.7rem 1.1rem; }
  .tab__no { display: none; }
}
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; }
  .service__media { aspect-ratio: 16 / 11; }
}

/* --- MANIFEST: szary panel, scrub po słowach ------------------------------- */
.panel {
  max-width: 1880px;
  margin-inline: clamp(0.5rem, 1.25vw, 1.25rem);
  border-radius: var(--r-panel);
}
@media (min-width: 1920px) { .panel { margin-inline: auto; } }
.manifest { background: var(--paper-3); padding-block: clamp(4.5rem, 10vw, 9rem); }
.manifest__text {
  font-size: clamp(1.75rem, 1rem + 3.2vw, 4.5rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}
.manifest__text strong { font-weight: 600; }

/* --- DLACZEGO / PARAMETRY: ciemny panel z czerwonym glow ------------------- */
.dark {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--on-dark);
  padding-block: clamp(4.5rem, 9vw, 8rem);
}
.dark::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 60% at 100% 100%, rgb(237 32 36 / 0.30), transparent 70%),
    radial-gradient(40% 55% at 0% 0%, rgb(160 60 50 / 0.18), transparent 70%);
}
.dark .muted, .dark .lead { color: var(--muted-dark); }
.dark .badge, .contact__info .badge { background: rgb(255 255 255 / 0.1); color: var(--on-dark); }

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--stroke-dark);
}
.spec { padding: 2rem clamp(1rem, 2vw, 1.75rem) 0 0; display: grid; gap: 0.6rem; align-content: start; }
.spec + .spec { padding-left: clamp(1rem, 2vw, 1.75rem); border-left: 1px solid var(--stroke-dark); }
.spec__value {
  display: flex; align-items: flex-end;
  height: clamp(2.5rem, 1.6rem + 3vw, 4.25rem);
  font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.spec__value--word { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem); }
.spec__value small { font-size: 0.42em; font-weight: 500; letter-spacing: 0; margin-left: 0.2em; color: #ff6b6e; }
.spec h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.spec p { color: var(--muted-dark); font-size: 0.95rem; }
@media (max-width: 900px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec:nth-child(n+3) { margin-top: 1rem; border-top: 1px solid var(--stroke-dark); }
}
@media (max-width: 480px) {
  .specs { grid-template-columns: 1fr; }
  .spec, .spec + .spec { padding-left: 0; border-left: 0; }
  .spec + .spec { margin-top: 1rem; border-top: 1px solid var(--stroke-dark); }
}

.benefits {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.benefits ul { list-style: none; padding: 0; display: grid; gap: 1.75rem; }
.benefits li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; }
.benefits li::before {
  content: ''; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgb(255 255 255 / 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.6 6.6 9 1.2' fill='none' stroke='%23ff6b6e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 10px no-repeat;
}
.benefits h3 { font-size: var(--h4); margin-bottom: 0.35rem; }
.benefits p { color: var(--muted-dark); }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr; } }

/* --- PROCES: oś z kropką, która biegnie po krokach ------------------------- */
.process { position: relative; }
.process__line {
  position: absolute; left: 0; right: 0; top: 27px; height: 2px;
  background: var(--stroke);
}
.process__fill {
  position: absolute; inset: 0; background: var(--red);
  transform: scaleX(0); transform-origin: left center;
}
.process__dot {
  position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgb(237 32 36 / 0.16);
  opacity: 0;
}
.process__steps {
  list-style: none; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem);
}
.step { display: grid; gap: 0.85rem; align-content: start; }
.step__no {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--stroke-2);
  font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), scale .4s var(--ease);
}
.step.is-on .step__no { background: var(--red-btn); border-color: var(--red-btn); color: #fff; scale: 1.05; }
.step h3 { font-size: var(--h4); margin-top: 0.5rem; }
.step p { color: var(--muted); font-size: 0.975rem; }
@media (max-width: 900px) {
  .process__line { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process__fill { transform: scaleY(0); transform-origin: center top; }
  .process__dot { display: none; }
  .process__steps { grid-template-columns: 1fr; gap: 2.25rem; }
  .step { grid-template-columns: 56px 1fr; column-gap: 1.25rem; }
  .step__no { grid-row: span 2; }
  .step h3 { margin-top: 0.75rem; }
  /* oś kończy się na ostatnim kółku, nie ciągnie się pod jego opisem */
  .step:last-child { position: relative; }
  .step:last-child::after { content: ''; position: absolute; left: 0; top: 56px; bottom: -1px; width: 56px; background: var(--paper); }
}

/* --- REALIZACJE: siatka 2×2 z naprzemiennymi szerokościami ----------------- */
.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2rem); }
.work { display: grid; gap: 1rem; align-content: start; }
.work--wide { grid-column: span 7; }
.work--narrow { grid-column: span 5; }
.work__media { border-radius: var(--r-media); overflow: hidden; background: var(--paper-3); aspect-ratio: 16 / 10; }
@media (min-width: 801px) { .work__media { aspect-ratio: auto; height: clamp(17rem, 30vw, 27rem); } }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.work:hover .work__media img { scale: 1.04; }
.work__place { font-size: 0.9rem; font-weight: 500; color: var(--red-text); }
.work h3 { font-size: var(--h4); }
.work p { color: var(--muted); max-width: 48ch; font-size: 0.975rem; }
@media (max-width: 800px) {
  .works { grid-template-columns: 1fr; }
  .work--wide, .work--narrow { grid-column: auto; }
  }

/* --- FAQ ------------------------------------------------------------------ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-grid .sec-head { margin-bottom: 0; position: sticky; top: 110px; }
.faq-aside { display: grid; gap: 0.35rem; margin-top: 1rem; }
.faq-aside a { font-size: var(--h4); font-weight: 600; }
.faq-aside a:hover { color: var(--red-text); }
.faq { border: 1px solid var(--stroke); border-radius: 24px; padding: 0.5rem clamp(1.25rem, 3vw, 2rem); background: #fff; }
.faq__item + .faq__item { border-top: 1px solid var(--stroke); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.35rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em;
}
.faq__icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--stroke-2);
  display: grid; place-items: center; transition: rotate .35s var(--ease), background-color .3s ease;
}
.faq__icon::before { content: ''; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; translate: 0 -2px; }
.faq__q[aria-expanded='true'] .faq__icon { rotate: 180deg; background: var(--paper-2); }
.faq__a { overflow: hidden; }
.js .faq__a { height: 0; }
.faq__a p { color: var(--muted); padding-bottom: 1.5rem; max-width: 62ch; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .sec-head { position: static; }
}

/* --- KONTAKT / WYCENA ------------------------------------------------------ */
.contact { background: var(--paper-2); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
.contact__info {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--on-dark);
  border-radius: var(--r-panel);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid; gap: 1.25rem; align-content: start;
}
.contact__info::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 55% at 100% 100%, rgb(237 32 36 / 0.32), transparent 70%);
}
.contact__info p { color: var(--muted-dark); }
.contact__place { margin-top: auto; padding-top: 1.5rem; font-size: 0.925rem; }
.needs { list-style: none; padding: 0; display: grid; gap: 0.85rem; margin-top: 0.25rem; }
.needs li { display: grid; grid-template-columns: 22px 1fr; gap: 0.85rem; align-items: start; }
.needs li::before {
  content: ''; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: rgb(255 255 255 / 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.6 6.6 9 1.2' fill='none' stroke='%23ff6b6e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 8px no-repeat;
}

/* Zamiast formularza: dwie karty-linki. E-mail otwiera się z szablonem pytań. */
.contact__reach { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.reach {
  display: grid; gap: 0.5rem; justify-items: start; align-content: start;
  background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-panel);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  transition: border-color .3s ease;
}
.reach:hover { border-color: var(--stroke-2); }
.reach__label { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.reach__value { font-size: var(--h3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.reach__value--mail { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2rem); overflow-wrap: anywhere; }
.reach__note { color: var(--muted); max-width: 40ch; }
.reach .btn { margin-top: 1rem; }
.reach:hover .btn { scale: 1.02; }
.reach:hover .btn--red { background: var(--red-btn-h); }
.reach:hover .btn--line { border-color: var(--ink); }
.reach:hover .btn__icon svg:first-child { translate: 0 0; }
.reach:hover .btn__icon svg:last-child { translate: 22px 0; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* --- STOPKA --------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer__logo img { height: 52px; width: auto; }
.footer p { color: var(--muted-dark); font-size: 0.95rem; }
.footer h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer ul a { color: var(--muted-dark); font-size: 0.95rem; transition: color .2s ease; }
.footer ul a:hover { color: var(--on-dark); }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--stroke-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.875rem; color: var(--muted-dark);
}
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; } }

/* --- Pasek mobilny --------------------------------------------------------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav);
  display: none; gap: 0.5rem; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--stroke);
}
.callbar .btn { flex: 1; min-height: 48px; }
@media (max-width: 760px) {
  .callbar { display: flex; }
  body { padding-bottom: 72px; }
}

/* --- Ruch: blur-in ukrywa tylko, gdy JS żyje i ruch jest dozwolony --------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
