/* ==========================================================================
   TORRE Sp. z o.o., system wizualny v2
   Paleta 60 / 30 / 10: papier / granat Torre Navy / cynober (tylko CTA).
   Nagłówki: Playfair Display. Tekst i UI: Schibsted Grotesk.
   Narożniki: ostre (radius 0). Motyw: automatyczny (prefers-color-scheme).
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/playfair-display-latin-ext-wght-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: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/playfair-display-latin-wght-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: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/playfair-display-latin-ext-wght-italic.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: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/playfair-display-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-ext-wght-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: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-wght-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: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geist-mono-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: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geist-mono-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; }

/* ---------- Tokens ---------- */
:root {
  /* 60%: papier */
  --bg: #F4F5F6;
  --surface: #FBFBFC;
  --surface-2: #E8EDF1;
  /* 30%: granat Torre Navy */
  --navy: #0B1F33;
  --navy-2: #13304D;
  --on-navy: #EEF2F6;
  --on-navy-muted: #AEBCCB;
  --ink: #0B1F33;
  --ink-2: #22364B;
  --muted: #4A5969;
  --line: rgba(11, 31, 51, 0.12);
  --line-strong: rgba(11, 31, 51, 0.26);
  /* 10%: cynober, wyłącznie wezwania do działania i akcenty */
  --accent: #C8421D;
  --accent-hover: #A7340F;
  --on-accent: #FFF7F3;
  --accent-soft: rgba(200, 66, 29, 0.08);
  --danger: #B42318;
  /* duotone zdjęć */
  --duo-hi: #DCE4EC;
  --duo-lo: #0B1F33;
  --nav-bg: rgba(244, 245, 246, 0.88);

  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --util-h: 36px;
  --bar-h: 68px;
  --nav-h: calc(var(--util-h) + var(--bar-h));
  --section-y: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);

  --z-nav: 40;
  --z-menu: 45;
  --z-bar: 50;
  --z-skip: 60;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07121E;
    --surface: #0C1B2B;
    --surface-2: #102338;
    --navy: #0E2742;
    --navy-2: #163453;
    --on-navy: #EEF2F6;
    --on-navy-muted: #A9B8C8;
    --ink: #EAF0F5;
    --ink-2: #C8D3DE;
    --muted: #9EACBB;
    --line: rgba(234, 240, 245, 0.1);
    --line-strong: rgba(234, 240, 245, 0.24);
    --accent: #FF7449;
    --accent-hover: #FF9272;
    --on-accent: #07121E;
    --accent-soft: rgba(255, 116, 73, 0.1);
    --danger: #FF8B7B;
    --duo-hi: #B9C7D5;
    --duo-lo: #07121E;
    --nav-bg: rgba(7, 18, 30, 0.86);
  }
}

/* Przejścia między podstronami (View Transitions API) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Base ---------- */
*, *::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;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(56px, 7vw, 104px); }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: var(--z-skip);
  padding: 10px 16px; background: var(--navy); color: var(--on-navy);
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Typografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }

.section-title, .phero__title, .hero__title, .contact__title, .article__title, .ctaband__title,
.open__title, .case__title, .qband__title, .nbox__title, .footer__news-title, .step__verb, .manifesto__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
}
.section-title {
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 20ch;
  text-wrap: balance;
  padding-bottom: 0.06em;
}
/* Akcent: kursywa tego samego kroju w kolorze akcentu */
.section-title em, .phero__title em, .hero__title em, .contact__title em, .ctaband__title em, .open__title em {
  font-style: italic; color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 28px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  background: transparent; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .35s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary::before { background: var(--navy); }
.btn--primary:hover { color: var(--on-navy); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); }
.btn--invert { background: var(--on-navy); color: var(--navy); }
.btn--invert::before { background: var(--accent); }
.btn--invert:hover { color: var(--on-accent); }
.btn__icon { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 4px; transition: color .3s var(--ease);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header: pasek kryzysowy + nawigacja ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-solid, .site-header.is-open {
  background: var(--nav-bg);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -24px rgba(11, 31, 51, 0.35);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}
.utility { height: var(--util-h); background: var(--navy); color: var(--on-navy-muted); font-size: 13.5px; }
.utility__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility__crisis { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.utility__crisis > .icon { width: 16px; height: 16px; color: var(--accent); }
.utility__crisis a { display: inline-flex; align-items: center; gap: 6px; color: var(--on-navy); font-weight: 600; }
.utility__crisis a:hover { color: var(--accent); }
.utility__arrow { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.utility__crisis a:hover .utility__arrow { transform: translateX(3px); }

.nav { height: var(--bar-h); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 24px; height: 24px; fill: var(--accent); transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-90deg); }
.brand__word { font-weight: 700; font-size: 20px; letter-spacing: 0.2em; }

.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 16px; font-weight: 500; }
.nav__links a { position: relative; color: var(--ink-2); transition: color .3s var(--ease); white-space: nowrap; padding-block: 6px; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 16px; }
.lang { display: inline-flex; border: 1px solid rgba(238, 242, 246, 0.3); }
.lang__btn {
  display: inline-grid; place-items: center; padding: 0 8px; height: 24px; min-width: 34px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--on-navy-muted);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lang__btn[aria-current="true"] { background: var(--on-navy); color: var(--navy); }
.lang__btn:not([aria-current="true"]):hover { color: var(--on-navy); }

.nav__burger {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-strong); cursor: pointer;
}
.nav__burger .icon { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: var(--z-menu);
  background: var(--bg); overflow-y: auto;
}
.mobile-menu__links { display: flex; flex-direction: column; padding-block: 16px 48px; }
.mobile-menu__links a {
  font-family: var(--font-display); font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 500; letter-spacing: -0.015em;
  padding-block: 12px; border-bottom: 1px solid var(--line);
}
.mobile-menu__links a.mobile-menu__cta { color: var(--accent); font-style: italic; border-bottom: 0; margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) .mobile-menu__links a { animation: rise .7s var(--ease) both; }
  .mobile-menu__links a:nth-child(2) { animation-delay: 40ms; }
  .mobile-menu__links a:nth-child(3) { animation-delay: 80ms; }
  .mobile-menu__links a:nth-child(4) { animation-delay: 120ms; }
  .mobile-menu__links a:nth-child(5) { animation-delay: 160ms; }
  .mobile-menu__links a:nth-child(6) { animation-delay: 200ms; }
  .mobile-menu__links a:nth-child(7) { animation-delay: 240ms; }
}

@media (max-width: 1023px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
}
@media (max-width: 480px) { .utility__crisis > span { display: none; } }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------- Zdjęcia duotone (granat marki) ---------- */
.duo { position: relative; isolation: isolate; overflow: hidden; background: var(--duo-hi); }
.duo img { filter: grayscale(1) contrast(1.12) brightness(1.04); mix-blend-mode: multiply; }
.duo::after { content: ""; position: absolute; inset: 0; background: var(--duo-lo); mix-blend-mode: lighten; pointer-events: none; z-index: 1; }
/* odsłonięcie zdjęcia kurtyną */
.reveal-img::before {
  content: ""; position: absolute; inset: 0; z-index: 2; background: var(--bg);
  transform-origin: top; pointer-events: none; transform: scaleY(0);
}
@media (prefers-reduced-motion: no-preference) {
  .js .reveal-img::before { transform: scaleY(1); transition: transform 1.2s var(--ease-io); }
  .js .reveal-img.is-in::before { transform: scaleY(0); }
  .js .reveal-img img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
  .js .reveal-img.is-in img { transform: scale(1); }
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(24px, 4vw, 56px)); padding-bottom: clamp(56px, 7vw, 96px); }
.hero__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter);
  align-items: end;
  min-height: calc(100dvh - var(--nav-h) - clamp(80px, 11vw, 152px));
}
.hero__copy { grid-column: 1 / span 7; padding-bottom: clamp(8px, 2vw, 32px); }
.hero__title {
  font-size: clamp(3rem, 6.4vw, 6.1rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 13ch;
  padding-bottom: 0.08em;
}
.hero__lead { margin-top: 32px; max-width: 44ch; font-size: clamp(1.1rem, 1.35vw, 1.28rem); line-height: 1.6; color: var(--muted); }
.hero__ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { grid-column: 8 / span 5; align-self: stretch; display: flex; position: relative; }
.hero__media::before {
  content: ""; position: absolute; left: -14px; top: 14%; bottom: 14%; width: 3px; background: var(--accent); z-index: 1;
}
.hero__frame { position: relative; overflow: hidden; width: 100%; min-height: 440px; max-height: calc(100dvh - var(--nav-h) - 96px); }
.hero__frame img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.hero__curtain { position: absolute; inset: 0; background: var(--bg); transform-origin: top; z-index: 3; }

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; align-items: start; gap: 40px; }
  .hero__copy, .hero__media { grid-column: 1 / -1; }
  .hero__copy { padding-top: 24px; }
  .hero__media::before { display: none; }
  .hero__frame { min-height: 0; aspect-ratio: 4 / 3; max-height: none; }
}
@media (max-width: 640px) {
  .hero__frame { aspect-ratio: 4 / 5; }
  .hero__ctas .btn { flex: 1 1 auto; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); color: var(--on-navy); overflow: hidden; padding-block: 26px; }
.marquee__track { display: flex; width: max-content; }
.marquee__list { display: flex; flex: none; }
.marquee__list li {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem); letter-spacing: -0.01em; white-space: nowrap;
  padding-right: clamp(28px, 4vw, 56px);
}
.marquee__list li::after {
  content: ""; width: 9px; height: 9px; margin-left: clamp(28px, 4vw, 56px);
  background: var(--accent); transform: rotate(45deg);
}

/* ---------- Manifesto ---------- */
.manifesto { padding-block: var(--section-y) calc(var(--section-y) * 0.6); }
.manifesto__text {
  font-size: clamp(1.9rem, 3.9vw, 3.6rem);
  line-height: 1.2; letter-spacing: -0.015em;
  max-width: 28ch; text-wrap: pretty;
}
.manifesto__text .w { display: inline; }

/* ---------- Dlaczego TORRE ---------- */
.why { padding-top: 0; }
.why__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter); align-items: start; }
.why__grid .section-title { position: sticky; top: calc(var(--nav-h) + 40px); }
.why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); counter-reset: why; }
.why__item { counter-increment: why; padding-block: 32px 40px; border-top: 1px solid var(--line-strong); position: relative; }
.why__item::before {
  content: counter(why, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--accent); margin-bottom: 18px;
}
.why__item::after {
  content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0.18); transform-origin: left;
}
.why__item h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.18; letter-spacing: -0.01em; max-width: 18ch; }
.why__item p { margin-top: 14px; color: var(--muted); max-width: 42ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .why__item::after { transform: scaleX(0); transition: transform 1.2s var(--ease) .3s; }
  .js .why__item.is-in::after { transform: scaleX(0.18); }
}
@media (max-width: 1023px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__grid .section-title { position: static; margin-bottom: 16px; }
}
@media (max-width: 640px) { .why__list { grid-template-columns: 1fr; } }

/* ---------- Kompetencje (bento) ---------- */
.services { padding-top: 0; }
.services .section-title { margin-bottom: clamp(40px, 5vw, 72px); max-width: 24ch; }
.bento {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(280px, auto);
}
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(26px, 2.8vw, 44px);
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--accent-soft), transparent 60%);
  transition: opacity .5s var(--ease);
}
a.tile:hover::after { opacity: 1; }
a.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 48px -32px rgba(11, 31, 51, 0.45); }
.tile__body { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.tile h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem, 2vw, 1.9rem); line-height: 1.12; letter-spacing: -0.01em; max-width: 20ch; }
.tile p { color: var(--muted); max-width: 44ch; font-size: 16.5px; line-height: 1.6; }
.tile__icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: auto; }
.tile__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--accent); }
.tile__more .icon { width: 16px; height: 16px; transition: transform .45s var(--ease); }
a.tile:hover .tile__more .icon { transform: translateX(5px); }
.tile--wide { grid-column: span 2; }
.tile--feature { grid-column: span 2; grid-row: span 2; min-height: 600px; }

.tile--feature, .tile--photo, .tile--accent { background: var(--navy); color: var(--on-navy); box-shadow: none; }
.tile--feature p, .tile--photo p, .tile--accent p { color: var(--on-navy-muted); }
.tile--feature .tile__more, .tile--photo .tile__more, .tile--accent .tile__more { color: var(--on-navy); }
.tile__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3;
  filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; opacity: 0.55;
  transform: scale(1.02); transition: transform 1.4s var(--ease), opacity .8s var(--ease);
}
.tile--feature::before, .tile--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(11, 31, 51, 0) 20%, rgba(11, 31, 51, 0.55) 60%, rgba(11, 31, 51, 0.92) 100%);
}
a.tile--feature:hover .tile__bg, a.tile--photo:hover .tile__bg { transform: scale(1.07); opacity: 0.7; }
.tile--accent { background: var(--navy-2); }

@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--feature { grid-column: span 2; grid-row: span 1; min-height: 480px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile--wide, .tile--feature { grid-column: auto; min-height: 260px; }
  .tile--feature { min-height: 440px; }
}

/* ---------- Podejście (blok granatowy) ---------- */
.approach { background: var(--navy); color: var(--on-navy); }
.approach .section-title { color: var(--on-navy); }
.approach__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.approach__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; }
.approach__intro { margin-top: 24px; max-width: 38ch; color: var(--on-navy-muted); font-size: 1.15rem; }
.approach__progress { margin-top: 48px; width: 3px; height: 180px; background: rgba(238, 242, 246, 0.16); position: relative; }
.approach__progress span {
  position: absolute; inset: 0; background: var(--accent);
  transform-origin: top; transform: scaleY(var(--p, 0.25));
  transition: transform .9s var(--ease);
}
.approach__steps { grid-column: 7 / span 6; counter-reset: st; }
.step { counter-increment: st; position: relative; padding-block: clamp(36px, 4.4vw, 60px); border-top: 1px solid rgba(238, 242, 246, 0.18); transition: opacity .6s var(--ease); }
.step:last-child { border-bottom: 1px solid rgba(238, 242, 246, 0.18); }
.step::before { content: counter(st, decimal-leading-zero); position: absolute; right: 0; top: clamp(36px, 4.4vw, 60px); font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.step__verb { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -0.02em; }
.step p { margin-top: 16px; max-width: 46ch; color: var(--on-navy-muted); font-size: 1.1rem; }
.js .step { opacity: 0.4; }
.js .step.is-active { opacity: 1; }

.qband__inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(64px, 8vw, 120px); padding-block: clamp(36px, 4vw, 52px); position: relative;
}
.qband__inner::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(238, 242, 246, 0.18); }
.qband__icon { width: 52px; height: 52px; color: var(--accent); }
.qband__title { font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.12; letter-spacing: -0.015em; }
.qband__copy p { margin-top: 8px; color: var(--on-navy-muted); max-width: 56ch; }

@media (max-width: 1023px) {
  .approach__grid { grid-template-columns: 1fr; }
  .approach__head, .approach__steps { grid-column: 1 / -1; }
  .approach__head { position: static; margin-bottom: 24px; }
  .approach__progress { display: none; }
  .js .step { opacity: 1; }
}
@media (max-width: 767px) {
  .qband__inner { grid-template-columns: 1fr; }
  .qband__icon { width: 40px; height: 40px; }
  .qband__inner .btn { width: 100%; }
}

/* ---------- Sektory ---------- */
.sectors .section-title { margin-bottom: clamp(40px, 5vw, 72px); }
.sectors__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); isolation: isolate; }
.sector { border-bottom: 1px solid var(--line-strong); position: relative; }
.sector::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface-2);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.sector:hover::before, .sector[open]::before { transform: scaleX(1); }
.sector summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 18px;
  padding: 26px 16px;
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.95rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2;
}
.sector summary::-webkit-details-marker { display: none; }
.sector summary > .icon:first-child { width: 26px; height: 26px; color: var(--accent); }
.sector summary span { flex: 1; }
.sector__arrow { width: 22px; height: 22px; color: var(--muted); transition: transform .5s var(--ease), color .3s var(--ease); }
.sector summary:hover .sector__arrow { color: var(--ink); }
.sector[open] .sector__arrow { transform: rotate(90deg); color: var(--accent); }
.sector p { padding: 0 56px 28px 60px; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 767px) {
  .sectors__list { grid-template-columns: 1fr; }
  .sector summary { padding-inline: 8px; }
  .sector p { padding: 0 8px 24px 52px; }
}

/* ---------- Perspektywy: karty ---------- */
.insights-home__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.insights-home__grid { display: grid; grid-template-columns: 3fr 2fr; gap: var(--gutter); }
.insights-home__rest { display: grid; gap: var(--gutter); align-content: start; }
.acard { display: flex; flex-direction: column; gap: 22px; }
.acard__media { position: relative; aspect-ratio: 16 / 10; }
.acard--big .acard__media { aspect-ratio: 16 / 11; }
.acard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.acard:hover .acard__media img { transform: scale(1.05); }
.acard__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.acard__meta span:first-child { color: var(--accent); }
.acard__title {
  margin-top: 10px; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance;
  transition: color .3s var(--ease);
}
.acard--big .acard__title { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.1; }
.acard__lead { margin-top: 14px; color: var(--muted); max-width: 56ch; }
.acard:hover .acard__title { color: var(--accent); }
.insights-home__rest .acard { display: grid; grid-template-columns: 40% 1fr; gap: 20px; align-items: start; }
.ifeat { margin-bottom: clamp(48px, 6vw, 80px); }
.ifeat .acard { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: end; }
.igrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) var(--gutter); }
@media (max-width: 1023px) { .insights-home__grid, .ifeat .acard { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .igrid, .insights-home__rest .acard { grid-template-columns: 1fr; } }

/* ---------- Spółka ---------- */
.company { padding: 0; }
.company__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; }
.company__media { position: relative; }
.company__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.company__copy {
  padding: var(--section-y) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) var(--section-y) clamp(32px, 6vw, 96px);
  display: flex; flex-direction: column; justify-content: center;
}
.company__lead { margin-top: 28px; max-width: 48ch; color: var(--ink-2); font-size: 1.15rem; }
.principles { margin-top: clamp(40px, 5vw, 64px); }
.principles li { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 24px; padding-block: 22px; border-top: 1px solid var(--line-strong); }
.principles h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; font-style: italic; color: var(--accent); }
.principles p { color: var(--ink-2); }
.facts { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 8px; font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 500; line-height: 1.2; }
.leader { margin-top: clamp(40px, 5vw, 56px); display: flex; align-items: center; gap: 18px; }
.leader__mono { width: 58px; height: 58px; display: grid; place-items: center; background: var(--navy); color: var(--on-navy); font-family: var(--font-display); font-style: italic; font-size: 20px; }
.leader__name { font-weight: 600; font-size: 1.1rem; }
.leader__role { color: var(--muted); font-size: 15px; }
@media (max-width: 1023px) {
  .company__grid { grid-template-columns: 1fr; min-height: 0; }
  .company__media { aspect-ratio: 4 / 3; }
  .company__copy { padding: clamp(56px, 10vw, 96px) var(--gutter); }
}
@media (max-width: 640px) {
  .company__media { aspect-ratio: 4 / 5; }
  .principles li { grid-template-columns: 1fr; gap: 6px; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Kontakt i formularze ---------- */
.contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.contact__info { grid-column: 1 / span 5; }
.contact__title { font-size: clamp(2.4rem, 4.8vw, 4.3rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 13ch; text-wrap: balance; padding-bottom: 0.08em; }
.contact__lead { margin-top: 24px; max-width: 40ch; color: var(--ink-2); font-size: 1.15rem; }
.contact__details { margin-top: 48px; display: grid; gap: 20px; }
.contact__details li { display: flex; gap: 14px; align-items: flex-start; }
.contact__details .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.contact__details a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color .3s var(--ease); }
.contact__details a:hover { color: var(--accent); }
.contact .form { grid-column: 7 / span 6; background: var(--surface); padding: clamp(24px, 3.4vw, 48px); box-shadow: inset 0 0 0 1px var(--line), 0 32px 64px -48px rgba(11, 31, 51, 0.5); }

.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field__opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  background: var(--bg); color: var(--ink); font-size: 17px;
  border: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background-color: var(--surface); }
.field__help { font-size: 14.5px; color: var(--muted); }
.field__error { display: none; font-size: 14.5px; color: var(--danger); font-weight: 500; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--danger); }
.field.is-invalid .field__error { display: block; animation: shake .4s var(--ease); }
.field--check { grid-template-columns: 22px 1fr; column-gap: 14px; align-items: start; }
.field--check input {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; min-height: 0; padding: 0; margin-top: 2px;
  cursor: pointer; display: grid; place-items: center; background: var(--bg);
}
.field--check input::after {
  content: ""; width: 12px; height: 7px; border: 2px solid var(--on-accent); border-top: 0; border-right: 0;
  transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .25s var(--ease);
}
.field--check input:checked { background: var(--accent); border-color: var(--accent); }
.field--check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.field--check label { font-weight: 400; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.field--check label a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.field--check .field__error { grid-column: 2; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.form__status { font-size: 15px; color: var(--muted); }
.form__status.is-success { color: var(--ink); font-weight: 500; }
.form__status.is-error { color: var(--danger); }
.form.is-loading button[type="submit"] { opacity: 0.6; pointer-events: none; }
@media (max-width: 1023px) {
  .contact__grid { grid-template-columns: 1fr; gap: 56px; }
  .contact__info, .contact .form { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
  .form__footer .btn { width: 100%; }
}

/* ---------- Nagłówek podstron ---------- */
.phero { padding-top: calc(var(--nav-h) + clamp(36px, 5vw, 80px)); padding-bottom: clamp(48px, 6vw, 88px); background: var(--surface-2); }
.phero__grid { display: grid; gap: var(--gutter); align-items: end; }
.phero__grid--aside { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.phero__title { font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance; padding-bottom: 0.08em; }
.phero__lead { margin-top: 24px; max-width: 56ch; font-size: clamp(1.1rem, 1.35vw, 1.25rem); color: var(--ink-2); }
.phero__icon { justify-self: end; width: clamp(96px, 11vw, 148px); height: clamp(96px, 11vw, 148px); display: grid; place-items: center; background: var(--navy); color: var(--accent); }
.phero__icon .icon { width: 48%; height: 48%; }
@media (max-width: 1023px) {
  .phero__grid--aside { grid-template-columns: 1fr; }
  .phero__icon { justify-self: start; }
}
.crumbs { margin-bottom: clamp(28px, 4vw, 48px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Lista kompetencji ---------- */
.srow-list { border-top: 1px solid var(--line-strong); }
.srow {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 48px minmax(0, 5fr) minmax(0, 6fr) 28px; gap: 24px; align-items: center;
  padding: clamp(26px, 3vw, 40px) 16px; border-bottom: 1px solid var(--line-strong);
}
.srow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.srow:hover::before { transform: scaleY(1); }
.srow__icon { width: 34px; height: 34px; color: var(--accent); }
.srow__title { font-family: var(--font-display); font-size: clamp(1.45rem, 2.4vw, 2.2rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; transition: color .4s var(--ease); }
.srow__lead { color: var(--muted); transition: color .4s var(--ease); }
.srow__arrow { width: 24px; height: 24px; color: var(--muted); transition: transform .45s var(--ease), color .3s var(--ease); }
.srow:hover .srow__title { color: var(--on-navy); }
.srow:hover .srow__lead { color: var(--on-navy-muted); }
.srow:hover .srow__arrow { transform: translate(3px, -3px); color: var(--accent); }
@media (max-width: 767px) {
  .srow { grid-template-columns: 32px 1fr 24px; gap: 8px 16px; padding-inline: 8px; }
  .srow__icon { width: 26px; height: 26px; }
  .srow__lead { grid-column: 2 / 3; grid-row: 2; font-size: 16px; }
}

/* ---------- Treść typograficzna ---------- */
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.75; }
.prose h2 { margin-top: 2.2em; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.18; letter-spacing: -0.01em; color: var(--ink); }
.prose h2 + * { margin-top: 0.8em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.5em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); font-weight: 600; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose blockquote { margin: 2.2em 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--accent); }
.prose blockquote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; color: var(--ink); }
.prose--doc { max-width: 72ch; }
.prose--doc > :first-child { margin-top: 0; }

/* ---------- Strona usługi ---------- */
.svc-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc-intro__text p { font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.65; color: var(--ink-2); }
.svc-intro__text p:first-child { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 1.95rem); line-height: 1.35; color: var(--ink); }
.svc-when { background: var(--navy); color: var(--on-navy); padding: clamp(28px, 3.4vw, 44px); }
.svc-when__title { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; margin-bottom: 22px; }
.svc-when ul { display: grid; gap: 16px; }
.svc-when li, .prep li, .quiz__facts li { display: flex; gap: 12px; align-items: flex-start; }
.svc-when li { color: var(--on-navy); }
.prep li, .quiz__facts li { color: var(--ink-2); }
.svc-when .icon, .prep .icon, .quiz__facts .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 4px; }
@media (max-width: 1023px) { .svc-intro { grid-template-columns: 1fr; } }

.scope { margin-top: clamp(32px, 4vw, 56px); display: grid; counter-reset: sc; }
.scope li { counter-increment: sc; padding-block: 30px; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 7fr); gap: var(--gutter); }
.scope li::before { content: counter(sc, decimal-leading-zero); font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 1.1rem; padding-top: 2px; }
.scope li:last-child { border-bottom: 1px solid var(--line-strong); }
.scope h3 { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 500; line-height: 1.22; }
.scope p { color: var(--ink-2); max-width: 60ch; }
@media (max-width: 640px) { .scope li { grid-template-columns: 1fr; gap: 8px; } }

.deliv { background: var(--surface-2); }
.deliv__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: start; }
.deliv__list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--line-strong);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink);
}
.deliv__list li:first-child { border-top: 1px solid var(--line-strong); }
.deliv__list .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 6px; }
@media (max-width: 1023px) { .deliv__grid { grid-template-columns: 1fr; } }

.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item:first-child { border-top: 1px solid var(--line-strong); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding-block: 26px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 600; transition: color .3s var(--ease);
}
.faq__item summary:hover { color: var(--accent); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item[open] .sector__arrow { transform: rotate(90deg); color: var(--accent); }
.faq__item p { padding-bottom: 26px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 1023px) { .faq { grid-template-columns: 1fr; } }

.related { border-top: 1px solid var(--line); }
.related__title { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; margin-bottom: 24px; }
.related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related__item {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 16px; padding: 30px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  transition: color .4s var(--ease);
}
.related__item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: translateX(-101%); transition: transform .6s var(--ease); }
.related__item:hover::before { transform: none; }
.related__item:hover { color: var(--on-navy); }
.related__item span { flex: 1; }
.related__icon { width: 28px; height: 28px; color: var(--accent); }
.related__arrow { width: 20px; height: 20px; color: var(--muted); transition: transform .45s var(--ease), color .3s var(--ease); }
.related__item:hover .related__arrow { transform: translate(3px, -3px); color: var(--accent); }
@media (max-width: 640px) { .related__grid { grid-template-columns: 1fr; } }

/* ---------- Pasek CTA ---------- */
.ctaband { background: var(--surface-2); }
.ctaband__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-block: clamp(64px, 8vw, 120px); }
.ctaband__title { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 18ch; padding-bottom: 0.06em; }
.ctaband__text { margin-top: 14px; color: var(--ink-2); max-width: 52ch; }

/* ---------- Artykuł ---------- */
.readbar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: var(--z-bar); background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .readbar { animation: readbar linear both; animation-timeline: scroll(root); }
}
@keyframes readbar { to { transform: scaleX(1); } }
.article__head { padding-top: calc(var(--nav-h) + clamp(36px, 5vw, 80px)); }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.article__meta span:first-child { color: var(--accent); }
.article__title { margin-top: 22px; font-size: clamp(2.5rem, 5.4vw, 4.8rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 19ch; text-wrap: balance; padding-bottom: 0.06em; }
.article__lead { margin-top: 24px; max-width: 58ch; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.55; color: var(--ink-2); }
.article__media { margin-top: clamp(40px, 5vw, 72px); }
.article__media .duo { aspect-ratio: 2 / 1; }
.article__media img { width: 100%; height: 100%; object-fit: cover; }
.article__layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gutter); padding-block: clamp(48px, 6vw, 96px); }
.article__aside { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.article__author { font-weight: 600; }
.article__share-label { margin-top: 24px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.article__share { margin-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.share-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 16px; color: var(--ink-2); transition: color .3s var(--ease); }
.share-btn .icon { width: 18px; height: 18px; color: var(--accent); }
.share-btn:hover { color: var(--accent); }
.prose--article { max-width: 68ch; font-size: 1.15rem; }
.prose--article > p:first-child { font-family: var(--font-display); font-size: clamp(1.35rem, 1.9vw, 1.65rem); line-height: 1.5; color: var(--ink); }
.prose--article > p:first-child::first-letter {
  float: left; font-family: var(--font-display); font-size: 4.2em; line-height: 0.82; padding: 0.06em 0.12em 0 0; color: var(--accent);
}
@media (max-width: 1023px) {
  .article__layout { grid-template-columns: 1fr; }
  .article__aside { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 24px; }
}

/* ---------- Test gotowości ---------- */
.quiz { max-width: 900px; }
.quiz__intro { display: grid; gap: 32px; justify-items: start; }
.quiz__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; font-weight: 500; }
.quiz__card { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 32px 64px -48px rgba(11, 31, 51, 0.5); padding: clamp(24px, 4vw, 60px); }
.quiz__top { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.quiz__count { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.quiz__bar { flex: 1; height: 3px; position: relative; background: var(--surface-2); }
.quiz__bar span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transition: transform .6s var(--ease); }
.quiz__q { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz__q legend { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.18; margin-bottom: 28px; outline: none; text-wrap: balance; }
.quiz__opt {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; margin-top: 10px;
  border: 1px solid var(--line-strong); cursor: pointer; font-size: 17px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .3s var(--ease);
}
.quiz__opt:hover { border-color: var(--ink-2); transform: translateX(4px); }
.quiz__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz__radio { width: 22px; height: 22px; flex: none; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: border-color .25s var(--ease); }
.quiz__radio::after { content: ""; width: 12px; height: 12px; background: var(--accent); transform: scale(0); transition: transform .3s var(--ease); }
.quiz__opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.quiz__opt:has(input:checked) .quiz__radio { border-color: var(--accent); }
.quiz__opt:has(input:checked) .quiz__radio::after { transform: scale(1); }
.quiz__opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz__err { margin-top: 16px; color: var(--danger); font-size: 15px; font-weight: 500; }
.quiz__nav { margin-top: 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.quiz__result { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); }
.quiz__num { margin-top: 12px; font-size: 1.4rem; color: var(--muted); }
.quiz__num strong { font-family: var(--font-display); font-size: clamp(4.5rem, 10vw, 7.5rem); line-height: 1; font-weight: 500; color: var(--ink); }
.quiz__num span { font-size: 1rem; }
.quiz__band { margin-top: 20px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 500; color: var(--accent); outline: none; }
.quiz__band-text { margin-top: 12px; color: var(--ink-2); }
.quiz__recs h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.quiz__recs ol { margin-top: 16px; counter-reset: rec; }
.quiz__recs li { counter-increment: rec; display: grid; grid-template-columns: 36px 1fr; padding-block: 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
.quiz__recs li::before { content: counter(rec, decimal-leading-zero); font-family: var(--font-display); font-style: italic; color: var(--accent); }
.quiz__disclaimer { margin-top: 24px; font-size: 14.5px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .quiz__card, .quiz__recs li { animation: rise .6s var(--ease) both; }
  .quiz__recs li:nth-child(2) { animation-delay: 80ms; }
  .quiz__recs li:nth-child(3) { animation-delay: 160ms; }
  .quiz__recs li:nth-child(4) { animation-delay: 240ms; }
  .quiz__recs li:nth-child(5) { animation-delay: 320ms; }
}
@media (max-width: 767px) {
  .quiz__result { grid-template-columns: 1fr; }
  .quiz__nav .btn { flex: 1 1 auto; }
}

/* ---------- Linia kryzysowa ---------- */
.ccard { background: var(--navy); color: var(--on-navy); padding: clamp(28px, 3.4vw, 44px); display: grid; gap: 6px; align-content: start; }
.ccard__label { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-muted); }
.ccard__label:not(:first-child) { margin-top: 18px; }
.ccard__phone { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 500; color: var(--on-navy); }
.ccard__mail { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 500; color: var(--on-navy); word-break: break-word; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; justify-self: start; }
.ccard__mail:hover, .ccard__phone:hover { color: var(--accent); }
.ccard__hint { font-size: 14.5px; color: var(--on-navy-muted); }
.crisis__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ccform__title, .prep__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.ccform__lead { color: var(--ink-2); margin-top: -10px; }
.prep { border-top: 3px solid var(--accent); padding-top: 24px; position: sticky; top: calc(var(--nav-h) + 32px); }
.prep ul { margin-top: 20px; display: grid; gap: 16px; }
.cfirst { background: var(--surface-2); }
.cfirst__list { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); counter-reset: cf; }
.cfirst__list li { counter-increment: cf; border-top: 3px solid var(--navy); padding-top: 24px; }
.cfirst__list li::before { content: counter(cf, decimal-leading-zero); display: block; font-family: var(--font-display); font-style: italic; font-size: 2rem; color: var(--accent); margin-bottom: 12px; }
.cfirst__list h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; }
.cfirst__list p { margin-top: 10px; color: var(--ink-2); }
.cafter { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cafter__title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 500; }
.cafter__links { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1023px) {
  .crisis__grid { grid-template-columns: 1fr; }
  .prep { position: static; }
  .cfirst__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .cfirst__list { grid-template-columns: 1fr; } }

/* ---------- Raport i newsletter ---------- */
.report__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.covers { margin-top: clamp(32px, 4vw, 48px); display: grid; }
.covers li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding-block: 30px; border-top: 1px solid var(--line-strong); }
.covers__icon { width: 30px; height: 30px; color: var(--accent); }
.covers h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.covers p { margin-top: 6px; color: var(--ink-2); }
.report__side { display: grid; gap: var(--gutter); position: sticky; top: calc(var(--nav-h) + 32px); }
.report__media { aspect-ratio: 4 / 3; }
.report__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .report__grid { grid-template-columns: 1fr; } .report__side { position: static; } }

.nbox { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: start; background: var(--navy); color: var(--on-navy); padding: clamp(28px, 4vw, 56px); }
.nbox--stack { grid-template-columns: 1fr; }
.nbox__title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.12; }
.nbox__text { margin-top: 10px; color: var(--on-navy-muted); }
.nbox .field label, .footer .field label { color: var(--on-navy); }
.nbox .field input, .footer .field input { background: rgba(238, 242, 246, 0.06); border-color: rgba(238, 242, 246, 0.3); color: var(--on-navy); }
.nbox .field input:focus, .footer .field input:focus { background-color: rgba(238, 242, 246, 0.1); }
.nbox .field--check label, .footer .field--check label { color: var(--on-navy-muted); }
.nbox .field--check label a, .footer .field--check label a { color: var(--on-navy); }
.nbox .field--check input, .footer .field--check input { background: transparent; }
.nbox .form__status, .footer .form__status { color: var(--on-navy); }
@media (max-width: 767px) { .nbox { grid-template-columns: 1fr; } }
.form--compact { gap: 16px; }
.news__row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.news__row .btn { height: 54px; }
.news__row .field { position: relative; }
.news__row .field__error { position: absolute; top: 100%; margin-top: 4px; }
.form--news .form__status:empty { display: none; }
@media (max-width: 480px) { .news__row { grid-template-columns: 1fr; } .news__row .field__error { position: static; } }

/* ---------- Kariera ---------- */
.careers__media .duo { aspect-ratio: 9 / 4; }
.careers__media img { width: 100%; height: 100%; object-fit: cover; }
.open { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; background: var(--navy); color: var(--on-navy); padding: clamp(32px, 5vw, 80px); }
.open__title { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.08; }
.open__text { margin: 16px 0 30px; color: var(--on-navy-muted); max-width: 56ch; }
.open__clause { font-size: 14px; color: var(--on-navy-muted); line-height: 1.6; }
@media (max-width: 1023px) { .open { grid-template-columns: 1fr; } }

/* ---------- Studia przypadków ---------- */
.case + .case { border-top: 1px solid var(--line); }
.case__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.case__media { aspect-ratio: 4 / 3; position: sticky; top: calc(var(--nav-h) + 32px); }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__client { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.case__client span { color: var(--accent); }
.case__title { margin-top: 16px; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; }
.case__part { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 20px; }
.case__part h3 { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.3rem; color: var(--accent); }
.cases-home__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; }
.cases-home__media { aspect-ratio: 4 / 3; }
.cases-home__media img { width: 100%; height: 100%; object-fit: cover; }
.cases-home__client { margin-top: 24px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cases-home__title { margin: 12px 0 28px; font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 500; }
@media (max-width: 1023px) {
  .case__grid, .cases-home__grid { grid-template-columns: 1fr; }
  .case__media { position: static; }
  .case__part { grid-template-columns: 1fr; gap: 8px; }
}
.nf__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Stopka (granatowa) ---------- */
.footer { background: var(--navy); color: var(--on-navy); padding-top: clamp(64px, 8vw, 112px); padding-bottom: 32px; overflow: hidden; }
.footer__news { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid rgba(238, 242, 246, 0.14); }
.footer__news-title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; }
.footer__news-text { margin-top: 10px; color: var(--on-navy-muted); max-width: 44ch; }
.footer__cols { display: grid; grid-template-columns: 2fr 1.2fr 1.3fr 1.6fr; gap: var(--gutter); padding-block: clamp(40px, 5vw, 64px); }
.footer__title { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; font-size: 16px; color: var(--on-navy); }
.footer__col a { transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__col address { color: var(--on-navy-muted); }
.footer__word {
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(4.5rem, 19vw, 17rem); line-height: 0.8; letter-spacing: 0.06em;
  color: var(--on-navy); margin: 0 0 -0.04em -0.03em;
}
.footer__legal {
  margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid rgba(238, 242, 246, 0.14);
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 32px;
  font-size: 13.5px; line-height: 1.6; color: var(--on-navy-muted);
}
.footer__legal p { max-width: 96ch; }
.footer__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer__meta a { text-decoration: underline; text-underline-offset: 3px; }
.footer__meta a:hover { color: var(--on-navy); }
@media (max-width: 1023px) {
  .footer__news { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) { .footer__legal { grid-template-columns: 1fr; } .footer__meta { align-items: flex-start; } }
@media (max-width: 480px) { .footer__cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   Ruch (wyłączany przy prefers-reduced-motion)
   ========================================================================== */
/* Dzielenie nagłówków na słowa (JS): każde słowo wysuwa się spod maski */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.si { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .js [data-split-ready] .si { transform: translateY(110%); transition: transform 1.05s var(--ease); transition-delay: calc(var(--i) * 45ms); }
  .js [data-split-ready].is-in .si { transform: none; }

  .hero__in { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 350ms); }
  .hero__curtain { animation: curtain 1.3s var(--ease-io) 0.1s forwards; }
  .hero__frame img { transform: scale(1.16); animation: settle 2.2s var(--ease) 0.1s forwards; }
  @supports (animation-timeline: view()) {
    .hero__frame { animation: parallax linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .company__media img { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }

  .marquee__track { animation: marquee 60s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }

  .js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  @supports (animation-timeline: view()) {
    .manifesto__text .w {
      opacity: 0.2;
      animation: word linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 45%;
    }
  }
}

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes curtain { to { transform: scaleY(0); } }
@keyframes settle { to { transform: scale(1); } }
@keyframes parallax { to { transform: translateY(10%); } }
@keyframes drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.12) translateY(3%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes word { to { opacity: 1; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__curtain { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (max-width: 640px) {
  .cafter__links { width: 100%; }
  .cafter__links .btn { width: 100%; white-space: normal; height: auto; min-height: var(--h); padding-block: 12px; text-align: center; }
}
