/* ==========================================================================
   DigitalThree — style.css
   Odwzorowanie projektu Figma "POrtfolio" (1440 px) + wersja mobilna.
   Struktura: 1. Tokeny  2. Baza  3. Layout  4. Komponenty  5. Sekcje
              6. Strony specjalne  7. Responsywność
   ========================================================================== */

/* Inter — self-hosted (OFL). Podzbiory latin + latin-ext (polskie znaki). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.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: 500; font-display: swap; src: url("../fonts/inter-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.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: 600; font-display: swap; src: url("../fonts/inter-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.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: 700; font-display: swap; src: url("../fonts/inter-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.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: 800; font-display: swap; src: url("../fonts/inter-latin-ext-800-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800-normal.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; }

/* 1. Tokeny ---------------------------------------------------------------- */
:root {
  /* Akcent z logo DigitalThree (#00ffb2). Na jasnym tle tekst/ikony w --accent-ink
     (mięta ma tam kontrast 1.3:1); na miętowym tle zawsze ciemny tekst. */
  --accent: #00ffb2;
  --accent-hover: #00e6a0;
  --accent-ink: #007a55;
  --accent-soft: #e0fff4;
  --accent-deep: #05382b;

  --ink: #0d0d0f;
  --body: #414148;
  --muted: #626269;
  --line: #dadad6;
  --line-soft: rgba(13, 13, 15, 0.08);

  --paper: #f5f5f0;
  --paper-2: #eeeee8;
  --input: #f6f6f2;
  --white: #ffffff;

  --night: #070b12;
  --night-2: #0d121c;
  --nav: #0d0d0f;
  --footer: #0a0a0c;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --container: 1312px;
  --gutter: 64px;
  --section-y: 88px;
  --nav-h: 88px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .bg-accent :focus-visible { outline-color: var(--accent); }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--ink); padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.icon { width: 1em; height: 1em; flex: none; stroke-width: 1.6; }

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section > .container { display: flex; flex-direction: column; gap: 40px; }

.bg-white { background: var(--white); }
.bg-paper { background: var(--paper); }
.bg-night { background: var(--night); color: #fff; }
.bg-night-2 { background: var(--night-2); color: #fff; }

/* Mgła w ciemnych hero: dwie warstwy miękkich plam światła (mięta z logo + morski błękit),
   które powoli dryfują, i drobne ziarno, które ożywia tło i gasi pasy na gradientach.
   Element <div class="hero-fog"> stoi na początku sekcji; treść (.container) leży nad nim. */
.hero, .author-hero, .article-hero { position: relative; overflow: hidden; }
.hero-fog { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-fog::before, .hero-fog::after { content: ""; position: absolute; will-change: transform; }
.hero-fog::before {
  width: 110%; height: 150%; right: -30%; top: -45%;
  background:
    radial-gradient(closest-side, rgba(0, 255, 178, 0.16), rgba(0, 255, 178, 0) 100%) 70% 30% / 60% 55% no-repeat,
    radial-gradient(closest-side, rgba(34, 211, 238, 0.10), rgba(34, 211, 238, 0) 100%) 25% 70% / 55% 50% no-repeat;
}
.hero-fog::after {
  width: 100%; height: 130%; left: -35%; bottom: -60%;
  background:
    radial-gradient(closest-side, rgba(34, 211, 238, 0.11), rgba(34, 211, 238, 0) 100%) 40% 40% / 70% 60% no-repeat,
    radial-gradient(closest-side, rgba(0, 255, 178, 0.07), rgba(0, 255, 178, 0) 100%) 80% 30% / 45% 45% no-repeat;
}
.hero-fog ~ .container { position: relative; }
/* Na home i O nas mgła leży nad cieniem z lewej (::before), ale pod treścią */
.home-hero .hero-fog, .about-hero .hero-fog { z-index: 1; }
.bg-accent { background: var(--accent-deep); color: #fff; }

.split { display: flex; gap: 80px; align-items: center; }
.split > * { min-width: 0; }
.grow { flex: 1 1 0; min-width: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 4. Komponenty ------------------------------------------------------------ */

/* Typografia */
.display {
  font-size: clamp(40px, 5.3vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.033em;
  font-weight: 700;
}
.h2 {
  font-size: clamp(34px, 3.9vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.h3 {
  font-size: clamp(22px, 1.9vw, 27px);
  line-height: 1.08;
  letter-spacing: -0.026em;
  font-weight: 700;
}
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.65; }
.text { font-size: 16px; line-height: 1.65; color: var(--muted); }
.text-lg { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; color: var(--muted); }
.small { font-size: 13px; line-height: 1.65; color: var(--muted); }
.note { font-size: 14px; line-height: 1.65; color: var(--muted); }
.muted-on-dark { color: rgba(255, 255, 255, 0.7); }
.accent { color: var(--accent-ink); }
.on-dark .accent { color: var(--accent); }

/* Etykieta sekcji (znacznik + uppercase) */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.092em; text-transform: uppercase;
  color: var(--accent-ink);
}
.label::before { content: ""; width: 8px; height: 8px; background: currentColor; flex: none; }
.label--light { color: #fff; }
.label--light-muted { color: rgba(255, 255, 255, 0.7); }
.label--light-muted::before { background: var(--accent); }

/* Logo */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__logo { height: 40px; width: auto; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px;
  min-height: 56px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn__arrow { font-size: 21px; font-weight: 400; line-height: 1; transition: transform .2s; }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--white { background: #fff; color: var(--accent-deep); }
.btn--white:hover { background: var(--accent); }
.btn--outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline .btn__arrow { color: var(--accent-ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--glass { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); color: #fff; }
.btn--glass:hover { background: rgba(255, 255, 255, 0.16); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent-ink);
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow--lg { font-size: 15px; }
.link-arrow--light { color: #fff; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* Chipy / filtry */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; min-height: 39px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1;
  transition: background-color .2s, color .2s, border-color .2s;
}
button.chip:hover, a.chip:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Nagłówek sekcji: tytuł + opis z prawej */
.section-head { display: flex; flex-direction: column; gap: 40px; }
.section-head__row { display: flex; align-items: flex-end; gap: 80px; }
.section-head__row .h2 { flex: 1 1 0; max-width: 862px; }
.section-head__intro { flex: 0 0 370px; font-size: 17px; line-height: 1.65; color: var(--muted); }

/* Karta zakresu usług */
.card {
  display: flex; flex-direction: column; gap: 20px;
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
}
.card__num { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.card .text { margin: 0; }
.card--white { background: #fff; border: 0; padding: 26px; gap: 18px; }

/* Etapy współpracy */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.step { display: flex; flex-direction: column; gap: 20px; padding: 28px; background: var(--paper); }
.step__num { font-size: 48px; font-weight: 700; letter-spacing: -0.042em; line-height: 1; color: var(--accent-ink); }
.step__time { font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-top: -4px; }
.step__title { font-size: 25px; line-height: 1.08; letter-spacing: -0.028em; font-weight: 700; }
.step .text { font-size: 15px; }

/* Pasek doświadczenia */
.stats { padding-block: 32px; }
.stats .container { display: flex; justify-content: space-between; gap: 24px; }
.stat { flex: 0 1 260px; display: flex; flex-direction: column; gap: 8px; }
.stat__value { font-size: 40px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.stat__value--sm { font-size: 22px; letter-spacing: -0.045em; line-height: 1.3; }
.stat__label { font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, 0.7); }

/* Karta realizacji */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 28px; }
.projects--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project { display: flex; flex-direction: column; gap: 22px; }
.project__media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 642 / 370; background: var(--paper-2); }
.projects--3 .project__media { aspect-ratio: 419 / 270; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project:hover .project__media img { transform: scale(1.03); }
.project__body { display: flex; flex-direction: column; gap: 12px; }
.project__meta { font-size: 13px; font-weight: 500; color: var(--muted); white-space: pre-wrap; }
.project__title { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.08; letter-spacing: -0.023em; font-weight: 700; }
.projects--3 .project__title { font-size: clamp(22px, 1.75vw, 25px); }
.project__result { font-size: 16px; line-height: 1.65; font-weight: 600; color: var(--accent-ink); }
.project__title a:hover { color: var(--accent-ink); }

/* FAQ */
.faq { display: flex; gap: 96px; }
.faq__intro { flex: 0 0 400px; display: flex; flex-direction: column; gap: 24px; align-self: flex-start; position: sticky; top: calc(var(--nav-h) + 24px); }
.faq__list { flex: 1 1 0; min-width: 0; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-size: clamp(19px, 1.55vw, 22px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 700;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__toggle { position: relative; width: 24px; height: 24px; flex: none; color: var(--muted); }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 5px; top: 11.2px; width: 14px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.faq__toggle::after { transform: rotate(90deg); }
.faq__item[open] .faq__toggle { color: var(--accent-ink); }
.faq__item[open] .faq__toggle::after { transform: rotate(0deg); opacity: 0; }
.faq__answer { padding: 0 48px 26px 0; margin-top: -10px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* CTA (fioletowy pas) */
.cta { padding-block: 72px; position: relative; overflow: hidden; }
.cta .container { display: flex; align-items: center; gap: 100px; position: relative; }
.cta__invite { flex: 0 1 744px; display: flex; flex-direction: column; gap: 22px; }
.cta__title { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -0.042em; font-weight: 700; }
.cta__text { font-size: 18px; line-height: 1.65; }
.cta__contact { flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; font-size: 16px; line-height: 1.65; }
.cta__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cta__hours { font-size: 13px; }

/* Hero podstron (V1) */
.hero { padding-block: 72px; overflow: hidden; }
.hero .container { display: flex; align-items: center; gap: 52px; }
.hero__content { flex: 0 1 736px; display: flex; flex-direction: column; gap: 26px; }
.hero__content--wide { flex-basis: 1120px; }
.hero__lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.65; color: rgba(255, 255, 255, 0.7); }
.hero__note { font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, 0.7); }
.hero__media { flex: 1 1 0; min-width: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 524 / 340; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media--sculpture { border-radius: 0; aspect-ratio: 524 / 450; }
.hero__media--sculpture img { object-position: 70% 50%; }
/* hero-3d.js w hero podstron (Usługi: węzeł, 404: odłamki); znika razem z rzeźbą na mobile */
.hero .hero__stage { opacity: 0; transition: opacity 1.4s ease; }
.hero.is-3d .hero__stage { opacity: 1; }
.hero__stage canvas { display: block; width: 100%; height: 100%; }

/* Metadane wpisu */
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; line-height: 1.25; }
.post-meta__cat { font-weight: 600; color: var(--accent-ink); }
.post-meta__date { color: var(--muted); }

/* Karta wpisu (siatka) */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 58px 28px; }
.post { display: flex; flex-direction: column; gap: 20px; }
.post__media { display: block; aspect-ratio: 419 / 238; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post:hover .post__media img { transform: scale(1.03); }
.post__body { display: flex; flex-direction: column; gap: 14px; }
.post__title { font-size: clamp(21px, 1.75vw, 25px); line-height: 1.08; letter-spacing: -0.028em; font-weight: 700; }
.post__title a:hover { color: var(--accent-ink); }
.post__excerpt { font-size: 15px; line-height: 1.65; color: var(--muted); }
.post[hidden] { display: none; }

/* Wiersz wpisu (lista archiwum) */
.post-rows { border-bottom: 1px solid var(--line); }
.post-row { display: flex; align-items: center; gap: 34px; padding-block: 30px; border-top: 1px solid var(--line); }
.post-row__media { flex: 0 0 268px; aspect-ratio: 268 / 180; border-radius: 10px; overflow: hidden; background: var(--paper); }
.post-row__media img { width: 100%; height: 100%; object-fit: cover; }
.post-row__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.post-row__title { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.08; letter-spacing: -0.026em; font-weight: 700; }
.post-row__title a:hover { color: var(--accent-ink); }
.post-row__link { flex: 0 0 auto; }

.list-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* Paginacja */
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; flex-wrap: wrap; }
.pagination__pages { display: flex; gap: 12px; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 47px; height: 46px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 15px; color: var(--ink);
}
.page-link:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.page-link[aria-current="page"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* Avatar */
.avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 28px; font-weight: 700; }

/* Spis treści */
.toc { flex: 0 0 300px; align-self: flex-start; position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 24px; padding: 26px; background: var(--paper); border-radius: var(--radius); }
.toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.toc a { display: block; font-size: 14px; line-height: 1.6; color: var(--muted); transition: color .2s; }
.toc a:hover, .toc a.is-active { color: var(--accent-ink); }

/* Nagłówek strony (sticky) */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav); color: #fff;
}
.site-header .container { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Menu: pozycje jako pigułki; aktywna = fioletowa kropka + tło */
.site-nav ul { list-style: none; padding: 0; }
.site-nav__list { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); }
.site-nav__item { position: relative; display: flex; align-items: center; border-radius: 99px; transition: background-color .2s; }
.site-nav__item:hover, .site-nav__item.is-open { background: rgba(255, 255, 255, 0.07); }
.site-nav__item.is-current { background: rgba(0, 255, 178, 0.1); box-shadow: inset 0 0 0 1px rgba(0, 255, 178, 0.28); }
.site-nav__link { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 14px; color: rgba(255, 255, 255, 0.7); transition: color .2s; }
.site-nav__item:hover > .site-nav__link, .site-nav__item.is-current > .site-nav__link { color: #fff; }
.site-nav__item.is-current > .site-nav__link::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.has-sub > .site-nav__link { padding-right: 4px; }
.site-nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 6px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, 0.7); cursor: pointer; }
.site-nav__toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.site-nav__toggle:hover { color: #fff; }
.site-nav__item.is-open .site-nav__toggle .icon { transform: rotate(180deg); }

/* Dropdown */
.subnav {
  position: absolute; top: calc(100% + 18px); left: 50%; z-index: 101; width: 580px;
  padding: 10px; border-radius: var(--radius-lg); background: #15151a; border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 18px; } /* most dla hovera */
.site-nav__item.is-open > .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s, transform .18s; }
@media (hover: hover) and (min-width: 1025px) {
  .has-sub:hover > .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s, transform .18s; }
  .has-sub:hover .site-nav__toggle .icon { transform: rotate(180deg); }
}
.subnav__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.subnav__link { display: block; padding: 12px; border-radius: var(--radius); color: #fff; transition: background-color .2s; }
.subnav__link--card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.subnav__link:hover, .subnav__link[aria-current="page"] { background: rgba(255, 255, 255, 0.06); }
.subnav__icon { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(0, 255, 178, 0.12); color: var(--accent); transition: background-color .2s, color .2s; }
.subnav__icon .icon { width: 20px; height: 20px; }
.subnav__link:hover .subnav__icon { background: var(--accent); color: var(--ink); }
.subnav__link strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.subnav__link span:not(.subnav__icon) { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, 0.55); }
.subnav__link[aria-current="page"] strong { color: var(--accent); }
.subnav__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 6px; padding: 14px 12px 6px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; }
.subnav__label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.subnav__foot a { color: rgba(255, 255, 255, 0.75); transition: color .2s; }
.subnav__foot a:hover, .subnav__foot a[aria-current="page"] { color: #fff; }
.subnav__foot .subnav__all { margin-left: auto; color: var(--accent); font-weight: 600; }
.subnav__foot .subnav__all:hover { color: #fff; }
.site-header__cta { min-width: 210px; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: var(--radius-sm); background: transparent; color: #fff; align-items: center; justify-content: center; font-size: 22px; }
.mobile-nav__cta { display: none; }

/* Stopka */
.site-footer { background: var(--footer); color: #fff; padding: 56px 0 32px; }
.site-footer .container { display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; gap: 38px; }
.footer-studio { flex: 0 0 286px; display: flex; flex-direction: column; gap: 20px; }
.footer-studio p { font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, 0.7); }
.footer-studio p.footer-place { font-size: 13px; }
.footer-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.footer-col h2 { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.footer-col ul { list-style: none; padding: 0; font-size: 13px; line-height: 2.45; }
.footer-col a:hover { color: var(--accent); }
.footer-inline { display: flex; flex-wrap: wrap; column-gap: 6px; }
.footer-inline span[aria-hidden] { color: rgba(255, 255, 255, 0.5); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.13); font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: #fff; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.5); font-size: 13px; }
.to-top .icon { color: var(--accent-ink); font-size: 20px; }

/* Formularze */
.form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field label, .field legend { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 15px 16px;
  background: var(--input); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; line-height: 1.5; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-ink); background: #fff; box-shadow: 0 0 0 3px rgba(0, 122, 85, 0.15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d43a3a; }
.field__error { font-size: 12px; color: #c62828; display: none; }
.field.is-invalid .field__error { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

.choice-list { display: flex; flex-direction: column; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.choice { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.choice:hover { background: var(--paper); }
.choice input { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; min-height: 0; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; flex: none; }
.choice input:checked { border: 4px solid var(--accent-ink); }

.consent { display: flex; gap: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); align-items: flex-start; }
.consent input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: none; border: 1px solid var(--line); border-radius: 4px; background: #fff; margin: 1px 0 0; display: grid; place-content: center; }
.consent input:checked { background: var(--accent-ink); border-color: var(--accent-ink); }
.consent input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.consent a, .form-note a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.form-note { font-size: 12px; line-height: 1.6; color: var(--muted); }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.form-status.is-visible { display: block; }

/* 5. Sekcje strony głównej -------------------------------------------------- */
.home-hero { position: relative; min-height: 860px; background: var(--night); color: #fff; overflow: hidden; display: flex; }
.home-hero__art { position: absolute; top: -30px; left: calc(50% - 140px); width: 920px; height: 920px; object-fit: cover; pointer-events: none; }
/* hero-3d.js: scena pojawia się z ciemności po pierwszej klatce; obrazek tylko jako fallback */
.home-hero .home-hero__stage { opacity: 0; transition: opacity 1.4s ease; }
.home-hero.is-3d .home-hero__stage, .home-hero__stage.is-fallback { opacity: 1; }
.home-hero__stage canvas, .home-hero__stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--night) 0%, var(--night) 35%, rgba(7, 11, 18, 0) 65%); }
.home-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 260px; z-index: 1; background: linear-gradient(180deg, rgba(7, 11, 18, 0), var(--night)); }
.home-hero .container { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding-top: 100px; padding-bottom: 28px; }
.home-hero__content { max-width: 620px; display: flex; flex-direction: column; gap: 36px; margin-block: auto; }
.home-hero__title { font-size: clamp(52px, 6.7vw, 96px); line-height: 0.95; letter-spacing: -0.052em; font-weight: 700; }
.home-hero__lead { max-width: 520px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, 0.7); }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.home-hero__actions .btn { min-height: 58px; padding: 0 28px; gap: 14px; font-size: 16px; }
.home-hero__actions .btn .icon { font-size: 18px; }
.home-stats { display: flex; align-items: center; gap: 48px; margin-top: 64px; }
.home-stat { display: flex; flex-direction: column; gap: 4px; }
.home-stat strong { font-size: 36px; letter-spacing: -0.055em; line-height: 1.2; }
.home-stat span { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.home-stats__sep { width: 1px; height: 40px; background: rgba(255, 255, 255, 0.2); }

.home-section { padding-block: 96px; }
.home-section > .container { display: flex; flex-direction: column; gap: 56px; }
.home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.home-head__title { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.home-title { font-size: clamp(38px, 4.6vw, 68px); line-height: 0.97; letter-spacing: -0.052em; font-weight: 700; }
.home-title--64 { font-size: clamp(38px, 4.45vw, 64px); letter-spacing: -0.055em; }
.home-title--60 { font-size: clamp(38px, 4.2vw, 60px); letter-spacing: -0.058em; }
.home-head__intro { max-width: 340px; font-size: 18px; line-height: 1.6; color: rgba(13, 13, 15, 0.5); }
.link-portfolio { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.link-portfolio .icon { font-size: 20px; transition: transform .2s; }
.link-portfolio:hover .icon { transform: translate(2px, -2px); }

/* Realizacje (strona główna) */
.showcase { display: grid; grid-template-columns: 840fr 448fr; gap: 24px; }
.showcase__side { display: grid; gap: 24px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 13, 15, 0) 0%, rgba(13, 13, 15, 0.82) 100%); }
.tile:hover img { transform: scale(1.03); }
.tile--lg { min-height: 580px; padding: 40px; }
.tile--sm { min-height: 276px; padding: 28px; }
.tile__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.083em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.tile--lg .tile__meta::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--accent); }
.tile--sm .tile__meta { font-size: 11px; letter-spacing: 0.09em; }
.tile__title { font-size: clamp(34px, 3.6vw, 52px); line-height: 0.97; letter-spacing: -0.048em; font-weight: 700; }
.tile--sm .tile__title { font-size: clamp(26px, 2.1vw, 30px); line-height: 1.05; letter-spacing: -0.04em; }
.tile__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 16px; }
.tile__name { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.tile__result { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--accent); }
.tile--sm .tile__result { font-size: 13px; margin-top: 8px; }
.tile__btn { padding: 12px 20px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 6px; background: rgba(255, 255, 255, 0.1); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .2s; }
.tile__btn:hover { background: rgba(255, 255, 255, 0.2); }
.tile-wide { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 260px; padding: 48px; border-radius: var(--radius); overflow: hidden; background: var(--accent-deep); color: #fff; }
.tile-wide__circles { position: absolute; left: 620px; top: -60px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); pointer-events: none; }
.tile-wide__circles::after { content: ""; position: absolute; left: 140px; top: 80px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.13); }
.tile-wide__row { display: flex; align-items: center; gap: 32px; position: relative; }
.tile-wide__title { font-size: clamp(44px, 4.45vw, 64px); line-height: 0.97; letter-spacing: -0.047em; font-weight: 700; }
.tile-wide__name { font-size: 22px; font-weight: 600; margin-bottom: 10px; display: block; }
.tile-wide__result { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--accent); }
.showcase-note { font-size: 13px; color: rgba(13, 13, 15, 0.3); margin-top: -24px; }

/* Oferta (strona główna) */
.offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.offer-card { display: flex; flex-direction: column; gap: 28px; padding: 36px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.offer-card:hover { border-color: rgba(0, 122, 85, 0.35); }
.offer-card__top { display: flex; justify-content: space-between; align-items: center; }
.offer-card__top .icon { font-size: 36px; color: var(--accent-ink); }
.offer-card__num { font-size: 13px; color: rgba(13, 13, 15, 0.3); }
.offer-card__title { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.08; letter-spacing: -0.047em; font-weight: 700; }
.offer-card__text { font-size: 16px; line-height: 1.6; color: rgba(13, 13, 15, 0.5); }
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; color: rgba(13, 13, 15, 0.7); }
.checklist .icon { font-size: 18px; color: var(--accent-ink); margin-top: 1px; }
.offer-card__tags { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: rgba(13, 13, 15, 0.3); }
.offer-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.offer-foot p { font-size: 19px; color: rgba(13, 13, 15, 0.5); }
.offer-foot .btn { gap: 14px; }
.offer-foot .btn .icon { font-size: 18px; }

/* Dlaczego (strona główna) */
.why { position: relative; }
.why::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent-ink); }
.home-section.why > .container { flex-direction: row; gap: 80px; }
.why__intro { flex: 0 0 500px; display: flex; flex-direction: column; gap: 40px; }
.why__intro-head { display: flex; flex-direction: column; gap: 16px; }
.why__intro p.text-lg { max-width: 400px; color: rgba(13, 13, 15, 0.5); }
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 500 / 280; isolation: isolate; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 13, 15, 0), rgba(13, 13, 15, 0.6)); }
.photo-card__caption { position: absolute; left: 20px; top: 20px; font-size: 12px; letter-spacing: 0.083em; color: rgba(255, 255, 255, 0.7); }
.why__list { flex: 1 1 0; min-width: 0; list-style: none; padding: 0; }
.argument { display: flex; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line-soft); }
.argument .icon { font-size: 28px; color: var(--accent-ink); }
.argument h3 { font-size: 23px; letter-spacing: -0.022em; font-weight: 700; margin-bottom: 8px; }
.argument p { font-size: 16px; line-height: 1.5; color: rgba(13, 13, 15, 0.5); }

/* Proces (strona główna) */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process__step { display: flex; flex-direction: column; gap: 20px; padding: 32px; border: 1px solid rgba(13, 13, 15, 0.04); background: var(--paper); }
.process__step:nth-child(even) { background: var(--paper-2); }
.process__step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.process__step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.process__step .process__num { font-size: 56px; font-weight: 700; letter-spacing: -0.054em; line-height: 1; color: var(--accent-ink); }
.process__title { font-size: 26px; line-height: 1.15; letter-spacing: -0.031em; font-weight: 700; }
.process__step p { font-size: 15px; line-height: 1.6; color: rgba(13, 13, 15, 0.5); }

/* O studio (strona główna) */
.home-section.studio > .container { flex-direction: row; align-items: flex-start; gap: 80px; }
.studio__media { position: relative; flex: 0 0 580px; aspect-ratio: 580 / 480; border-radius: var(--radius); overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; }
.studio__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.studio__media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 13, 15, 0) 40%, rgba(13, 13, 15, 0.8) 100%); }
.studio__caption { font-size: 12px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.7); }
.studio__bars { display: flex; align-items: flex-end; gap: 6px; }
.studio__bars span { width: 10px; border-radius: 2px; background: var(--accent-ink); }
.studio__bars span:nth-child(1) { height: 32px; } .studio__bars span:nth-child(2) { height: 48px; } .studio__bars span:nth-child(3) { height: 64px; }
.studio__content { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.studio__title { font-size: clamp(36px, 3.9vw, 56px); line-height: 0.97; letter-spacing: -0.054em; font-weight: 700; }
.studio__lead { font-size: 19px; line-height: 1.6; color: rgba(13, 13, 15, 0.5); }
.studio__text { font-size: 17px; line-height: 1.6; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.mini-stat { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; }
.mini-stat strong { font-size: 32px; letter-spacing: -0.047em; color: var(--accent-ink); line-height: 1.2; }
.mini-stat span { font-size: 13px; }
.link-contact { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; color: var(--accent-ink); }
.link-contact .icon { font-size: 22px; transition: transform .2s; }
.link-contact:hover .icon { transform: translate(2px, -2px); }

/* Technologie (strona główna) */
.tech { padding-block: 72px; border-block: 1px solid var(--line-soft); }
.tech .container { display: flex; gap: 80px; }
.tech__intro { flex: 0 0 480px; display: flex; flex-direction: column; gap: 20px; }
.tech__title { font-size: clamp(30px, 2.65vw, 38px); line-height: 1.1; letter-spacing: -0.039em; font-weight: 700; }
.tech__intro .text-lg { font-size: 17px; color: rgba(13, 13, 15, 0.5); }
.tech__shot { border-radius: 10px; overflow: hidden; aspect-ratio: 480 / 160; }
.tech__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tech__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tech-tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-tile { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.025em; }
.tech-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-pill { padding: 12px 18px; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 15px; color: rgba(13, 13, 15, 0.5); }
.tech__note { font-size: 14px; color: rgba(13, 13, 15, 0.3); }

/* FAQ (strona główna) */
.home-section.home-faq > .container { flex-direction: row; gap: 96px; }
.home-faq__intro { flex: 0 0 400px; display: flex; flex-direction: column; gap: 28px; }
.home-faq__intro p { max-width: 340px; font-size: 17px; line-height: 1.6; color: rgba(13, 13, 15, 0.5); }
.home-faq .faq__item { border-top-color: var(--line-soft); }
.home-faq .faq__item summary { font-size: 21px; letter-spacing: -0.014em; font-weight: 500; padding: 27px 0; }
.home-faq .faq__item[open] summary { font-weight: 700; }
.home-faq .faq__item:not([open]) .faq__toggle { color: rgba(13, 13, 15, 0.5); }
.home-faq .faq__answer { line-height: 1.7; color: rgba(13, 13, 15, 0.5); padding-right: 0; }

/* Kontakt (strona główna) */
.home-contact { position: relative; overflow: hidden; }
.home-contact::before, .home-contact::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.08); pointer-events: none; }
.home-contact::before { width: 500px; height: 500px; left: -80px; top: -120px; }
.home-contact::after { width: 300px; height: 300px; left: 900px; top: 200px; }
.home-section.home-contact > .container { position: relative; flex-direction: row; gap: 80px; }
.home-contact__intro { flex: 0 0 640px; display: flex; flex-direction: column; gap: 32px; }
.home-contact__title { font-size: clamp(42px, 4.7vw, 68px); line-height: 0.97; letter-spacing: -0.059em; font-weight: 700; }
.home-contact__lead { max-width: 500px; font-size: 20px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }
.home-contact__note { font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.home-contact__channels { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.2); align-self: flex-start; }
.home-contact__channels a { display: flex; align-items: center; gap: 14px; }
.home-contact__channels a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-contact__mail { font-size: 24px; font-weight: 600; letter-spacing: -0.013em; }
.home-contact__mail .icon { font-size: 22px; }
.home-contact__phone { font-size: 20px; }
.home-contact__phone .icon { font-size: 20px; }
.form-card { flex: 1 1 0; min-width: 0; padding: 36px; background: #fff; color: var(--ink); border-radius: var(--radius-lg); }
.form-card .form { gap: 22px; }
.form-card__title { font-size: 28px; font-weight: 700; letter-spacing: -0.036em; }
.form-card .field input, .form-card .field textarea { font-size: 15px; }
.form-card .field textarea { min-height: 112px; }
.form-card .btn { gap: 14px; }
.form-card .btn .icon { font-size: 18px; }
.form-card__alt { text-align: center; font-size: 13px; color: var(--muted); }
.form-card__alt a { color: var(--accent-ink); }

/* 6. Strony specjalne ------------------------------------------------------- */

/* O nas */
.about-hero { position: relative; overflow: hidden; }
.about-hero__art { position: absolute; top: -60px; left: calc(50% - 40px); width: 800px; height: 800px; object-fit: cover; pointer-events: none; }
/* hero-3d.js (wariant soft): scena wyłania się po pierwszej klatce i zostaje przygaszona */
.about-hero .about-hero__art { opacity: 0; transition: opacity 1.6s ease; }
.about-hero.is-3d .about-hero__art { opacity: .75; }
.about-hero__art canvas { display: block; width: 100%; height: 100%; }
.about-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 650px; z-index: 1; background: linear-gradient(90deg, var(--night) 0%, var(--night) 43%, rgba(7, 11, 18, 0) 75%); }
.about-hero__inner { position: relative; z-index: 2; min-height: 620px; display: flex; align-items: center; padding-block: 70px; }
.about-hero__content { max-width: 720px; display: flex; flex-direction: column; gap: 28px; }
.about-hero__title { font-size: clamp(44px, 5.7vw, 82px); line-height: 1; letter-spacing: -0.049em; font-weight: 700; }
.about-hero__content .btn { align-self: flex-start; gap: 16px; }
.about-hero__content .btn .icon { font-size: 20px; }
.about-hero .stats { position: relative; z-index: 2; }
.stat__intro { font-size: 20px; line-height: 1.45; color: rgba(255, 255, 255, 0.7); flex: 0 1 300px; }

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.moment { display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--paper); border-radius: var(--radius); }
.moment .moment__year { font-size: 42px; font-weight: 800; letter-spacing: -0.036em; line-height: 1; color: var(--accent-ink); }
.moment h3 { font-size: 22px; line-height: 1.25; font-weight: 700; margin-bottom: 12px; }
.moment p { font-size: 15px; line-height: 1.65; color: var(--muted); }

.principles .container { display: flex; gap: 100px; }
.principles__intro { flex: 0 0 440px; display: flex; flex-direction: column; gap: 28px; }
.principles__list { flex: 1 1 0; min-width: 0; list-style: none; padding: 0; }
.principle { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.principle .icon { font-size: 26px; color: var(--accent-ink); }
.principle h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.principle p { font-size: 15px; line-height: 1.65; color: var(--muted); }

.tech-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tech-group { display: flex; flex-direction: column; gap: 22px; padding: 30px; background: var(--paper); border-radius: var(--radius); }
.tech-group > .icon { font-size: 28px; color: var(--accent-ink); }
.tech-group__kicker { font-size: 12px; letter-spacing: 0.083em; text-transform: uppercase; color: var(--muted); }
.tech-group h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.029em; font-weight: 700; margin-top: -10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tag-list li { padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); line-height: 1.2; }

.cta--about { padding-block: 80px; }
.cta--about::after { content: ""; position: absolute; width: 500px; height: 500px; left: calc(50% + 520px); top: -160px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.13); }
.cta--about .container { gap: 80px; }
.cta--about .cta__title { font-size: clamp(38px, 4.45vw, 64px); line-height: 1.05; letter-spacing: -0.039em; }
.cta--about .btn--white { border-color: var(--accent); gap: 16px; }
.cta--about .btn .icon { font-size: 20px; }

/* Kontakt */
.contact-hero { position: relative; overflow: hidden; padding-block: 56px; }
.contact-hero__art { position: absolute; right: calc(50% - 820px); top: -190px; width: 500px; height: 500px; object-fit: cover; pointer-events: none; }
/* hero-3d.js (Formularz wyceny: romby z logo), wyśrodkowane w pionie w niskim hero */
.contact-hero__stage { top: 50%; right: max(0px, calc(50% - 700px)); width: 460px; height: 460px; margin-top: -230px; opacity: 0; transition: opacity 1.4s ease; }
.contact-hero.is-3d .contact-hero__stage { opacity: 1; }
.contact-hero__stage canvas { display: block; width: 100%; height: 100%; }
.contact-hero .container { position: relative; }
.contact-hero__content { max-width: 940px; display: flex; flex-direction: column; gap: 22px; }
.contact-hero__title { font-size: clamp(40px, 4.9vw, 70px); line-height: 1.08; letter-spacing: -0.043em; font-weight: 700; }
.contact-hero__content p { max-width: 720px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.7); }

.contact-main { padding-block: 72px; }
.contact-main .container { display: flex; gap: 96px; align-items: flex-start; }
.contact-aside { flex: 0 0 450px; display: flex; flex-direction: column; gap: 32px; }
.contact-data { display: flex; flex-direction: column; gap: 24px; }
.contact-data__title { font-size: 36px; letter-spacing: -0.039em; font-weight: 700; }
.contact-line { display: flex; align-items: center; gap: 16px; font-size: 24px; font-weight: 600; }
.contact-line .icon { font-size: 24px; color: var(--accent-ink); }
.contact-line--mail { color: var(--accent-ink); letter-spacing: -0.025em; }
.contact-line:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-hours { display: flex; flex-direction: column; gap: 14px; padding: 22px 0; border-block: 1px solid var(--line); font-size: 16px; }
.contact-hours p:last-child { font-size: 15px; line-height: 1.6; color: var(--muted); }
.contact-next { display: flex; flex-direction: column; gap: 18px; padding: 26px; background: #fff; border-radius: var(--radius); }
.contact-next .icon { font-size: 26px; color: var(--accent-ink); }
.contact-next h3 { font-size: 24px; font-weight: 700; }
.contact-next p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.contact-form { flex: 1 1 0; min-width: 0; padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contact-form__head { display: flex; flex-direction: column; gap: 8px; }
.contact-form__head h2 { font-size: 30px; letter-spacing: -0.033em; font-weight: 700; }
.contact-form__submit { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-form__submit .btn { gap: 16px; }
.contact-form__submit .btn .icon { font-size: 20px; }
.contact-form__submit p { font-size: 12px; line-height: 1.5; color: var(--muted); text-align: right; }

/* Usługi (przegląd) */
.pillar { display: flex; align-items: center; gap: 72px; }
.pillar__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pillar__media { flex: 0 0 548px; aspect-ratio: 548 / 390; border-radius: var(--radius); overflow: hidden; }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; }
.pillar__features { font-size: 16px; line-height: 1.65; color: var(--muted); }

/* Ścieżka zakupowa / Core Web Vitals */
.cards-white { display: grid; gap: 18px; }
.card-white { display: flex; flex-direction: column; gap: 18px; padding: 26px; background: #fff; border-radius: var(--radius); }
.card-white .card-white__num { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.card-white__title { font-size: 23px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.card-white p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.card-white--metric { padding: 28px; gap: 16px; }
.card-white.card-white--metric .card-white__num { font-size: 42px; color: var(--accent-ink); letter-spacing: 0; }
.card-white--metric .card-white__title { font-size: 25px; }
.card-white--metric p { font-size: 16px; }

/* Plan (lista z numerami) */
.plan { list-style: none; padding: 0; }
.plan__item { display: flex; gap: 40px; padding: 24px 0; border-top: 1px solid var(--line); }
.plan__item .plan__num { flex: 0 0 70px; font-size: 32px; font-weight: 700; color: var(--accent-ink); line-height: 1.1; }
.plan__item h3 { font-size: 25px; line-height: 1.08; letter-spacing: -0.028em; font-weight: 700; margin-bottom: 10px; }
.plan__item p { font-size: 18px; line-height: 1.65; color: var(--muted); }

/* Problem / rozwiązanie */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
.pair h3 { font-size: 27px; line-height: 1.08; letter-spacing: -0.026em; font-weight: 700; margin-bottom: 16px; }
.pair--case { gap: 64px; }
.pair--case h3 { font-size: 28px; margin-bottom: 22px; }

/* Lokalny partner */
.local { display: flex; align-items: center; gap: 80px; }
.local__media { flex: 0 0 540px; aspect-ratio: 540 / 390; border-radius: var(--radius); overflow: hidden; }
.local__media img { width: 100%; height: 100%; object-fit: cover; }
.local__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.local__title { font-size: clamp(32px, 3.35vw, 48px); line-height: 1.08; letter-spacing: -0.015em; font-weight: 700; }

/* Studium przypadku */
.case-meta { padding-block: 32px; }
.case-meta .container { display: flex; gap: 70px; }
.case-meta dl { display: contents; }
.case-meta dl > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.case-meta dt { font-size: 13px; color: var(--muted); }
.case-meta dd { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 600; }
.case-shot { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1312 / 730; }
.case-shot img { width: 100%; height: 100%; object-fit: cover; }
.case-url { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 16px; color: var(--muted); }
.case-result { padding-block: 64px; }
.case-result .container { display: flex; align-items: center; gap: 80px; }
.case-result .case-result__value { color: #fff; font-size: clamp(72px, 7.8vw, 112px); font-weight: 700; letter-spacing: -0.054em; line-height: 1.2; }
.case-result h2 { font-size: clamp(28px, 2.9vw, 42px); line-height: 1.08; letter-spacing: -0.017em; font-weight: 700; margin-bottom: 16px; }
.case-result p { font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, 0.7); }

/* Archiwum portfolio (kategoria) */
.feature-project { display: flex; align-items: center; gap: 64px; }
.feature-project__media { flex: 0 0 700px; aspect-ratio: 700 / 440; border-radius: var(--radius); overflow: hidden; }
.feature-project__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-project__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.feature-project__title { font-size: clamp(32px, 3.05vw, 44px); line-height: 1.08; letter-spacing: -0.016em; font-weight: 700; }

/* Blog: polecany */
.featured { display: flex; align-items: center; gap: 52px; }
.featured__media { flex: 0 0 736px; aspect-ratio: 736 / 450; border-radius: var(--radius); overflow: hidden; }
.featured__media img { width: 100%; height: 100%; object-fit: cover; }
.featured__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.featured__title { font-size: clamp(30px, 3vw, 43px); line-height: 1.08; letter-spacing: -0.016em; font-weight: 700; }

/* Artykuł */
.article-hero { padding: 44px 0 64px; }
.article-hero .container { display: flex; flex-direction: column; gap: 34px; }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.7); }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; }
.breadcrumbs a:hover { color: #fff; }
.article-hero h1 { max-width: 1160px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 16px; }
.tag-pill { display: inline-flex; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 999px; font-size: 13px; line-height: 1.2; }
.tag-pill:hover { border-color: rgba(255, 255, 255, 0.5); }
.article-cover { padding: 56px 0 16px; }
.article-cover figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1312 / 630; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { padding-block: 64px; }
.article-layout .container { display: flex; gap: 100px; }
.prose { flex: 0 1 812px; min-width: 0; display: flex; flex-direction: column; gap: 42px; }
.prose__lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.65; font-weight: 500; }
.prose section { display: flex; flex-direction: column; gap: 26px; }
.prose h2 { font-size: clamp(28px, 2.5vw, 36px); line-height: 1.08; letter-spacing: -0.019em; font-weight: 700; }
.prose h3 { font-size: clamp(21px, 1.75vw, 25px); line-height: 1.08; letter-spacing: -0.028em; font-weight: 700; margin-bottom: -12px; }
.prose p, .prose li { font-size: clamp(17px, 1.32vw, 19px); line-height: 1.8; color: var(--body); }
.prose ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.prose li::marker { color: var(--accent-ink); }
.summary-box { display: flex; flex-direction: column; gap: 24px; padding: 32px; background: var(--paper); border-radius: var(--radius); }
.summary-box h2 { font-size: clamp(26px, 2.2vw, 32px); }
.summary-box a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.author-box { display: flex; align-items: center; gap: 20px; padding: 28px 0; border-block: 1px solid var(--line); flex-wrap: wrap; }
.author-box__data { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }
.author-box__name { font-size: 26px; line-height: 1.08; letter-spacing: -0.027em; font-weight: 700; }
.author-box .chips { flex: 1 1 200px; justify-content: flex-start; }
.prev-post { display: flex; flex-direction: column; gap: 22px; }
.prev-post__card { display: flex; align-items: center; gap: 24px; }
.prev-post__media { flex: 0 0 210px; aspect-ratio: 210 / 150; border-radius: var(--radius-sm); overflow: hidden; }
.prev-post__media img { width: 100%; height: 100%; object-fit: cover; }
.prev-post__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* Polityka prywatności */
.legal-layout { padding-block: 80px; }
.legal-layout .container { display: flex; gap: 100px; }
.legal { flex: 0 1 812px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.legal section { display: flex; flex-direction: column; gap: 22px; }
.legal h2 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.08; letter-spacing: -0.023em; font-weight: 700; }
.legal p, .legal li { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; color: var(--muted); }
.legal ul { padding-left: 1.2em; }
.legal li::marker { color: var(--accent-ink); }
.legal a { color: var(--accent-ink); }
.toc--legal ol { gap: 14px; counter-reset: none; }
.toc--legal a { line-height: 1.55; }

/* Nagłówek archiwum autora */
.author-hero { padding-block: 64px; }
.author-hero .container { display: flex; flex-direction: column; gap: 28px; }
.author-hero__row { display: flex; align-items: center; gap: 28px; }
.author-hero__row p { font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, 0.7); margin-top: 14px; }

/* Animacje wejścia (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .hero-fog::before { animation: fog-drift-a 26s ease-in-out infinite alternate; }
  .hero-fog::after { animation: fog-drift-b 34s ease-in-out infinite alternate; }
}
@keyframes fog-drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-9%, 6%, 0) scale(1.12); } }
@keyframes fog-drift-b { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(12%, -8%, 0) scale(0.95); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 7. Responsywność ---------------------------------------------------------- */

/* Laptop */
@media (max-width: 1280px) {
  :root { --gutter: 48px; }
  .site-nav__list { gap: 0; }
  .site-nav__link { padding-inline: 11px; }
  .has-sub > .site-nav__link { padding-right: 2px; }
  .site-header__cta { min-width: 0; padding-inline: 20px; gap: 14px; }
  .home-hero__art { left: calc(50% - 60px); width: 760px; height: 760px; top: 20px; }
  .showcase { grid-template-columns: 1fr 1fr; }
  .tile-wide__circles { left: 55%; }
  .why__intro, .tech__intro, .home-faq__intro, .faq__intro { flex-basis: 360px; }
  .studio__media { flex-basis: 46%; }
  .home-contact__intro { flex-basis: 48%; }
  .pillar__media, .local__media { flex-basis: 44%; }
  .feature-project__media { flex-basis: 52%; }
  .featured__media { flex-basis: 54%; }
  .faq, .home-section.home-faq > .container { gap: 64px; }
  .principles .container, .article-layout .container, .legal-layout .container { gap: 64px; }
  .contact-main .container { gap: 56px; }
  .contact-aside { flex-basis: 400px; }
}

/* Tablet */
@media (max-width: 1024px) {
  :root { --gutter: 32px; --section-y: 72px; --nav-h: 72px; }

  /* Nawigacja mobilna */
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .site-nav {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
    display: flex; flex-direction: column; gap: 32px;
    padding: 32px var(--gutter) 40px; background: var(--nav);
    overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; border-radius: 0; background: none; }
  .site-nav__item { flex-wrap: wrap; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-nav__item:hover, .site-nav__item.is-open, .site-nav__item.is-current { background: none; box-shadow: none; }
  .site-nav__link { flex: 1; gap: 12px; padding: 18px 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.8); }
  .site-nav__item.is-current > .site-nav__link::before { width: 8px; height: 8px; border-radius: 0; background: var(--accent); }
  .site-nav__toggle { width: 44px; height: 44px; margin-right: -10px; border-radius: var(--radius-sm); }
  .site-nav__toggle .icon { width: 22px; height: 22px; }
  .subnav, .site-nav__item.is-open > .subnav {
    position: static; flex-basis: 100%; width: auto; padding: 0 0 18px; border: 0; border-radius: 0; background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none; display: none;
  }
  .site-nav__item.is-open > .subnav { display: block; }
  .subnav::before { display: none; }
  .subnav__list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .subnav__link { padding: 10px 0; }
  .subnav__link:hover, .subnav__link[aria-current="page"] { background: none; }
  .subnav__icon { width: 36px; height: 36px; }
  .subnav__link--card { grid-template-columns: 36px minmax(0, 1fr); }
  .subnav__foot { padding: 14px 0 0; font-size: 15px; gap: 8px 18px; }
  .subnav__foot .subnav__all { margin-left: 0; flex-basis: 100%; }
  .mobile-nav__cta { display: flex; flex-direction: column; gap: 16px; }
  .mobile-nav__cta .btn { width: 100%; justify-content: space-between; }
  .mobile-nav__contact { font-size: 15px; line-height: 1.8; color: rgba(255, 255, 255, 0.7); }
  body.nav-open { overflow: hidden; }
  .brand__logo { height: 32px; }

  /* Siatki */
  .grid-3, .offer, .tech-groups, .projects--3, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4, .steps, .process, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__step:first-child { border-radius: var(--radius) 0 0 0; }
  .process__step:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
  .process__step:nth-child(3) { border-radius: 0 0 0 var(--radius); }
  .process__step:last-child { border-radius: 0 0 var(--radius) 0; }

  /* Sekcje dzielone → kolumna */
  .split, .pillar, .local, .feature-project, .featured, .home-section.studio > .container, .home-section.why > .container,
  .tech .container, .home-section.home-contact > .container, .principles .container, .faq, .home-section.home-faq > .container,
  .contact-main .container, .cta .container, .hero .container, .case-result .container { flex-direction: column; align-items: stretch; gap: 40px; }
  .pillar__media, .local__media, .feature-project__media, .featured__media, .studio__media,
  .why__intro, .tech__intro, .home-contact__intro, .principles__intro, .faq__intro, .home-faq__intro,
  .contact-aside, .cta__invite, .hero__content { flex: 0 0 auto; width: 100%; }
  .faq__intro { position: static; }
  .pillar--reverse .pillar__media { order: -1; }
  .pillar .pillar__media { order: -1; }
  .hero__media { flex: 0 0 auto; width: 100%; max-width: 720px; }
  .hero__media--sculpture { display: none; }
  .section-head__row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head__intro { flex: 0 0 auto; max-width: 560px; }
  .home-head { flex-direction: column; align-items: flex-start; gap: 24px; }

  .stats .container { flex-wrap: wrap; row-gap: 28px; }
  .stat { flex: 1 1 40%; }

  .home-hero { min-height: 0; }
  .home-hero::before { background: linear-gradient(180deg, rgba(7, 11, 18, 0.2) 0%, rgba(7, 11, 18, 0.65) 45%, var(--night) 75%); }
  .home-hero__art { left: auto; right: -200px; top: -40px; width: 640px; height: 640px; opacity: .85; }
  .home-hero .container { padding-top: 260px; padding-bottom: 32px; }
  .home-stats { flex-wrap: wrap; gap: 24px 32px; margin-top: 56px; }

  .showcase { grid-template-columns: 1fr; }
  .showcase__side { grid-template-columns: 1fr 1fr; }
  .tile--lg { min-height: 480px; }

  .about-hero__art { left: auto; right: -260px; top: -40px; width: 620px; height: 620px; }
  .about-hero::before { height: 100%; background: linear-gradient(90deg, var(--night) 0%, rgba(7, 11, 18, 0.85) 55%, rgba(7, 11, 18, 0.2) 100%); }
  .about-hero__inner { min-height: 520px; }
  .stat__intro { flex: 1 1 100%; }
  .cta--about::after { display: none; }

  .contact-hero__art { right: -200px; opacity: .6; }
  .contact-main .container { gap: 40px; }

  .article-layout .container, .legal-layout .container { flex-direction: column; gap: 40px; }
  .toc { position: static; flex: 0 0 auto; width: 100%; }
  .prose, .legal { flex: 0 0 auto; }

  .case-meta .container { flex-wrap: wrap; gap: 24px 40px; }
  .case-meta dl > div { flex: 1 1 40%; }
  .pair { gap: 40px; }

  .footer-top { flex-wrap: wrap; row-gap: 40px; }
  .footer-studio { flex: 1 1 100%; max-width: 420px; }
  .footer-col { flex: 1 1 40%; }

  .post-row__media { flex-basis: 220px; }
}

/* Telefon */
@media (max-width: 720px) {
  :root { --gutter: 20px; --section-y: 64px; --nav-h: 68px; }

  .grid-2, .grid-3, .grid-4, .offer, .tech-groups, .projects, .projects--3, .posts,
  .steps, .process, .timeline, .pair, .form-row, .showcase__side { grid-template-columns: 1fr; }
  .process__step, .process__step:first-child, .process__step:nth-child(2), .process__step:nth-child(3), .process__step:last-child { border-radius: 0; }
  .process__step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .process__step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .steps { gap: 2px; }
  .step { padding: 24px; gap: 14px; }
  .step__num { font-size: 40px; }
  .step__title { font-size: 22px; }

  .section > .container { gap: 32px; }
  .home-section { padding-block: 64px; }
  .home-section > .container { gap: 40px; }

  .btn { min-height: 52px; padding: 0 22px; gap: 16px; font-size: 15px; white-space: normal; text-align: left; }
  .actions { gap: 16px 20px; }
  .actions .btn { flex: 1 1 100%; justify-content: space-between; }

  .home-hero__art { right: -180px; top: -20px; width: 480px; height: 480px; }
  .home-hero .container { padding-top: 200px; }
  .home-hero__content { gap: 26px; }
  .home-hero__actions .btn { flex: 1 1 100%; justify-content: space-between; min-height: 56px; }
  .home-stats { gap: 20px 24px; margin-top: 44px; }
  .home-stats__sep { display: none; }
  .home-stat { flex: 1 1 40%; }
  .home-stat strong { font-size: 30px; }

  .tile--lg { min-height: 440px; padding: 24px; }
  .tile--sm { min-height: 260px; padding: 22px; }
  .tile__foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .tile-wide { padding: 28px; min-height: 0; }
  .tile-wide__row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .tile-wide__circles { left: 40%; top: -120px; }
  .showcase-note { margin-top: -16px; }

  .offer-card { padding: 26px; gap: 22px; }
  .offer-card__top .icon { font-size: 32px; }
  .offer-foot { flex-direction: column; align-items: stretch; }
  .offer-foot p { font-size: 17px; }

  .home-section.why > .container { gap: 32px; }
  .why__intro { gap: 28px; }
  .argument { gap: 16px; padding: 22px 0; }
  .argument h3 { font-size: 20px; }

  .process__step { padding: 24px; }
  .process__step .process__num { font-size: 44px; }
  .process__title { font-size: 22px; }

  .studio__media { aspect-ratio: 4 / 3.4; padding: 22px; }
  .studio__lead { font-size: 17px; }
  .mini-stat { flex: 1 1 30%; padding: 16px; }
  .mini-stat strong { font-size: 24px; }

  .tech { padding-block: 56px; }
  .tech-tile { font-size: 17px; padding: 16px 18px; }
  .tech-pill { font-size: 14px; padding: 10px 14px; }

  .home-faq .faq__item summary { font-size: 18px; padding: 22px 0; }
  .faq__item summary { padding: 22px 0; }
  .faq__answer { padding-right: 0; }

  .home-contact::after { display: none; }
  .home-contact__lead { font-size: 17px; }
  .home-contact__mail { font-size: 19px; }
  .home-contact__phone { font-size: 18px; }
  .form-card, .contact-form { padding: 22px; border-radius: var(--radius); }
  .form-card__title, .contact-form__head h2 { font-size: 24px; }
  .contact-form__submit { flex-direction: column; align-items: stretch; }
  .contact-form__submit p { text-align: left; }
  .contact-form__submit .btn { justify-content: space-between; }

  .stats { padding-block: 28px; }
  .stats .container { gap: 22px 16px; }
  .stat__value { font-size: 30px; }
  .stat__value--sm { font-size: 20px; }

  .hero { padding-block: 48px 56px; }
  .hero .container { gap: 32px; }
  .hero__content { gap: 20px; }

  .cta { padding-block: 56px; }
  .cta .container { gap: 32px; }
  .cta__contact .btn { width: 100%; justify-content: space-between; }
  .cta__text { font-size: 17px; }

  .card { padding: 24px; gap: 14px; }
  .card-white, .card-white--metric { padding: 22px; }
  .plan__item { gap: 18px; flex-direction: column; }
  .plan__item .plan__num { flex-basis: auto; font-size: 28px; }
  .plan__item h3 { font-size: 21px; }
  .plan__item p { font-size: 16px; }

  .pillar, .local, .feature-project, .featured { gap: 28px; }
  .pillar__body .actions .btn { flex: 0 1 auto; }
  .moment .moment__year { font-size: 36px; }

  .about-hero__art { right: -240px; top: 0; width: 480px; height: 480px; }
  .about-hero.is-3d .about-hero__art { opacity: .55; }
  .about-hero::before { background: linear-gradient(180deg, rgba(7, 11, 18, 0.35), var(--night) 70%); }
  .about-hero__inner { min-height: 0; padding-block: 120px 56px; }
  .about-hero__content .btn { align-self: stretch; justify-content: space-between; }

  .principle { padding: 20px 0; }
  .principle h3 { font-size: 19px; }

  .contact-hero { padding-block: 48px; }
  .contact-hero__art { display: none; }
  .contact-hero__content p { font-size: 17px; }
  .contact-data__title { font-size: 30px; }
  .contact-line { font-size: 19px; word-break: break-word; }

  .case-meta .container { gap: 20px; }
  .case-meta dl > div { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .case-meta dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .case-meta dd { font-size: 15px; text-align: right; }
  .case-shot { aspect-ratio: 4 / 3; }
  .case-shot img { object-position: top left; }
  .case-url { flex-direction: column; align-items: stretch; }
  .case-url .btn { justify-content: space-between; }
  .case-result { padding-block: 48px; }
  .case-result .container { gap: 12px; }

  .featured__body .btn, .feature-project__body .btn { align-self: stretch; justify-content: space-between; }

  .post-row { flex-direction: column; align-items: stretch; gap: 18px; padding-block: 24px; }
  .post-row__media { flex: 0 0 auto; aspect-ratio: 16 / 9; }
  .list-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pagination { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }

  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .local .chips, .author-box .chips, .pair .chips { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }

  .article-hero { padding: 32px 0 44px; }
  .article-hero .container { gap: 24px; }
  .byline { gap: 14px; font-size: 14px; }
  .byline .avatar { width: 48px; height: 48px; font-size: 22px; }
  .article-cover { padding-top: 24px; }
  .article-cover figure { aspect-ratio: 4 / 3; }
  .article-layout { padding-block: 40px 56px; }
  .prose { gap: 34px; }
  .prose section { gap: 20px; }
  .prose h3 { margin-bottom: -8px; }
  .summary-box { padding: 22px; }
  .prev-post__card { flex-direction: column; align-items: stretch; }
  .prev-post__media { flex: 0 0 auto; aspect-ratio: 16 / 9; }
  .toc { padding: 22px; }

  .legal-layout { padding-block: 48px; }
  .legal { gap: 36px; }

  .author-hero { padding-block: 44px; }
  .author-hero__row { flex-direction: column; align-items: flex-start; gap: 18px; }

  .footer-top { gap: 32px 20px; }
  .footer-col { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; gap: 10px; padding-top: 28px; }
  .site-footer { padding-top: 48px; }
}

/* ==========================================================================
   8. CMS — elementy dodane przy wdrożeniu do Digital Three CMS
   (treść z edytora, komunikaty formularzy). Na końcu pliku, żeby nie zmieniać
   kolejności reguł z projektu.
   ========================================================================== */

/* Błędy formularza zwrócone przez serwer */
.form-errors { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius-sm); background: #fdecec; color: #a3261f; font-size: 14px; font-weight: 600; }
.form-errors p { margin: 0; }

/* Tekst z edytora w sekcjach case study (odpowiednik .text-lg z projektu) */
.case-text { display: flex; flex-direction: column; gap: 14px; }
.case-text p, .case-text li { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; color: var(--muted); }
.case-text ul { padding-left: 1.2em; }
.case-text li::marker { color: var(--accent-ink); }
.case-text a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.case-text h3 { margin-bottom: 8px; }

/* Wpis: <blockquote> w edytorze = „summary box” z projektu */
.prose blockquote { display: flex; flex-direction: column; gap: 18px; padding: 32px; margin: 0; background: var(--paper); border-radius: var(--radius); }
.prose blockquote a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--night-2); color: #e7e7ef; font-size: 14px; line-height: 1.6; }
.prose code { font-size: 0.92em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.legal h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.2; font-weight: 700; }

@media (max-width: 720px) {
  .prose blockquote { padding: 22px; }
}

/* Formularz wyceny (konfigurator, page--formularz-wyceny.php + js/quote.js) */
.quote { max-width: 920px; margin: 0 auto; padding: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.quote__progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; counter-reset: none; }
.quote__progress li { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 3px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.quote__progress li span { font-size: 12px; font-weight: 500; }
.quote__progress li.is-done { border-top-color: rgba(0, 122, 85, 0.4); color: var(--ink); }
.quote__progress li[aria-current="step"] { border-top-color: var(--accent-ink); color: var(--accent-ink); }
.quote__form { gap: 32px; }
.quote__step { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; border: 0; min-width: 0; }
.quote__form:not(.is-wizard) .quote__step + .quote__step { padding-top: 32px; border-top: 1px solid var(--line); }
.quote__form.is-wizard .quote__step:not(.is-current) { display: none; }
.quote__num { margin: 0; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.quote__title { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.quote__title:focus { outline: none; }
.quote__lead { margin: -8px 0 4px; color: var(--muted); }
.quote__types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quote-type { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 18px 50px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.quote-type:hover { border-color: var(--accent-ink); }
.quote-type input { position: absolute; left: 18px; top: 20px; appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; display: grid; place-content: center; }
.quote-type input:checked { background: var(--accent-ink); border-color: var(--accent-ink); }
.quote-type input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.quote-type input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.quote-type:has(input:checked) { border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(0, 122, 85, 0.12); }
.quote-type__label { font-weight: 600; }
.quote-type__desc { font-size: 14px; color: var(--muted); }
.quote__group { display: flex; flex-direction: column; gap: 12px; }
.quote__group[hidden] { display: none; }
.quote__group-title { margin: 0; font-size: 14px; font-weight: 700; }
.quote__checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.quote__checks .consent { color: var(--ink); font-size: 14px; cursor: pointer; }
.quote__stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.quote__error { margin: 0; color: #d43a3a; font-size: 14px; }
.quote__nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 8px; }
.quote__nav [data-quote-next], .quote__nav [data-quote-submit] { margin-left: auto; }
.quote__nav [hidden] { display: none; }
.quote__done { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.quote__done:focus { outline: none; }
.quote__done > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--accent); color: var(--ink); }
@media (max-width: 760px) {
  .quote { padding: 24px 18px; }
  .quote__progress li { font-size: 0; gap: 0; }
  .quote__progress li span { font-size: 12px; }
  .quote__types, .quote__checks { grid-template-columns: 1fr; }
}
