/* Anitex Medical Components — landing RFQ
   Biel + grafit + niebieski akcent. Mobile-first, bez zewnętrznych zasobów.
   Font: Inter / IBM Plex Sans, jeśli zainstalowane lub dodane jako self-hosted woff2
   (@font-face wstawić tutaj — NIE ładować z Google Fonts: RODO/DACH), inaczej font systemowy. */

:root {
  --ink: #2b2f33;
  --ink-2: #4a5158;
  --ink-3: #5f6770;
  --line: #dfe4e8;
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --accent: #3b82c4;        /* linie, ikony, dekoracje */
  --accent-ink: #235f97;    /* tekst i przyciski — kontrast ≥ 4,5:1 na bieli */
  --accent-tint: #eef5fb;
  --ok: #1d6b45;
  --err: #b3261e;
  --todo-bg: #ffe9a8;
  --todo-ink: #4d3800;
  --radius: 4px;
  --font: "Inter", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--font); font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: break-word; hyphens: auto; text-wrap: balance; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 860px; }
@media (min-width: 768px) { .container { padding-inline: 40px; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #fff; }

/* widoczne tokeny do podmiany */
mark.todo {
  background: var(--todo-bg); color: var(--todo-ink);
  font: 500 0.82em/1.35 var(--mono); letter-spacing: 0;
  padding: 0.1em 0.35em; border-radius: 3px; overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius);
  border: 1.5px solid transparent; font: 600 1rem/1.2 var(--font); text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; text-align: center;
}
.btn--primary { background: var(--accent-ink); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- nagłówek ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .header { background: rgba(255,255,255,.88); backdrop-filter: blur(8px); } }
.header__in { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.05; margin-right: auto; }
.brand__name { font-weight: 700; font-size: 1.25rem; letter-spacing: .12em; }
.brand__sub { font: 500 .66rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }

.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 0; }
.nav a:hover { color: var(--accent-ink); }
.nav.is-open {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
}
.nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }

.lang { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang a { padding: 8px 10px; font: 600 .78rem/1 var(--mono); color: var(--ink-2); text-decoration: none; min-width: 36px; text-align: center; }
.lang a + a { border-left: 1px solid var(--line); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.lang a:hover:not([aria-current="true"]) { background: var(--bg-alt); }

.burger { order: 3; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); }
.header__cta { display: none; }

@media (min-width: 1100px) {
  .burger { display: none; }
  .nav { display: flex; gap: 26px; margin-right: 8px; }
  .header__cta { display: inline-flex; }
}
@media (min-width: 560px) and (max-width: 1099.98px) { .header__cta { display: inline-flex; } }

/* ---------- placeholdery zdjęć ---------- */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: #e4e8eb repeating-linear-gradient(135deg, transparent 0 14px, rgba(43,47,51,.045) 14px 15px);
  color: var(--ink-2); border-radius: var(--radius);
}
.ph__label { font: 500 .72rem/1.45 var(--mono); text-align: center; padding: 14px; max-width: 34ch; }
img.ph { display: block; width: 100%; height: auto; object-fit: cover; background: #e4e8eb; } /* realne zdjęcie w miejscu placeholdera */
.ph--43 { aspect-ratio: 4 / 3; }
.ph--32 { aspect-ratio: 3 / 2; }
.ph--169 { aspect-ratio: 16 / 9; }
.ph--11 { aspect-ratio: 1; }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: calc(100svh - var(--header-h)); padding-block: 56px 48px; isolation: isolate; }
.hero__media, .hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero__media { place-items: end; }
.hero__media .ph__label { max-width: 46ch; text-align: right; padding: 20px; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.93) 55%, rgba(255,255,255,.55) 100%); }
.eyebrow { font: 500 .74rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.1rem, 6.2vw, 4.25rem); max-width: 17ch; letter-spacing: -0.03em; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 56ch; margin-top: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__role { margin-top: 18px; font-size: .9rem; color: var(--ink-2); max-width: 60ch; padding-left: 12px; border-left: 2px solid var(--accent); }
.args { display: grid; gap: 18px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); grid-template-columns: 1fr; max-width: 1000px; }
.args li { display: flex; gap: 12px; align-items: flex-start; }
.args strong { display: block; font-size: .98rem; font-weight: 600; }
.args span { display: block; font-size: .84rem; line-height: 1.45; color: var(--ink-2); margin-top: 2px; }
.ico { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
@media (min-width: 560px) { .args { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .args { grid-template-columns: repeat(4, 1fr); } .hero { padding-block: 72px 56px; } }

/* ---------- pasek zaufania ---------- */
.trust { background: var(--ink); color: #fff; }
.trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; padding-block: 16px; font-size: .9rem; font-weight: 500; }
.trust__list li { padding-inline: 16px; }
.trust__list li + li { border-left: 1px solid rgba(255,255,255,.28); }
@media (max-width: 719.98px) {
  .trust__list { flex-direction: column; align-items: flex-start; gap: 8px; }
  .trust__list li { padding-inline: 0; }
  .trust__list li + li { border: 0; }
}

/* ---------- sekcje ---------- */
.section { padding-block: clamp(64px, 9vw, 124px); }
.section--alt { background: var(--bg-alt); }
.head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker { display: flex; align-items: baseline; gap: 12px; font: 500 .74rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px; }
.kicker__n { color: var(--ink-3); }
.kicker__n::after { content: " /"; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); margin-top: 16px; max-width: 62ch; }
.sub { font-size: 1.2rem; margin-bottom: 24px; }
.note { margin-top: 28px; font-size: .9rem; color: var(--ink-2); padding-left: 12px; border-left: 2px solid var(--line); max-width: 70ch; }

/* ---------- kafle zastosowań ---------- */
.tiles { display: grid; gap: 32px 24px; grid-template-columns: 1fr; }
.tile h3 { font-size: 1.08rem; margin-top: 16px; }
.tile p { font-size: .92rem; color: var(--ink-2); margin-top: 6px; }
@media (min-width: 600px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 44px 28px; } }

/* ---------- capabilities ---------- */
.caps { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap { background: #fff; padding: 28px 24px 30px; display: flex; flex-direction: column; min-width: 0; }
.cap h3 { font: 500 .74rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cap__big { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; margin-top: 22px; overflow-wrap: anywhere; }
.cap__big--text { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; }
.cap__big mark.todo { font-size: .42em; line-height: 1.5; vertical-align: middle; }
.cap__unit { font-size: .95rem; font-weight: 600; color: var(--accent-ink); margin-top: 8px; }
.cap__d { font-size: .92rem; color: var(--ink-2); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .caps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .caps { grid-template-columns: repeat(3, 1fr); } .cap { padding: 36px 32px 38px; } }
.duo { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 720px) { .duo { grid-template-columns: 1fr 1fr; } }

/* ---------- proces ---------- */
.process { display: grid; gap: 0; counter-reset: none; }
.process li { position: relative; padding: 0 0 24px 44px; }
.process li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1px; background: var(--line); }
.process li:last-child::before { display: none; }
.process__n { position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--accent); border-radius: 50%; background: #fff; font: 600 .68rem/1 var(--mono); color: var(--accent-ink); }
.process h4 { font-size: 1rem; padding-top: 4px; }
.process p { font-size: .86rem; line-height: 1.45; color: var(--ink-2); margin-top: 6px; }
@media (min-width: 1000px) {
  .process { grid-template-columns: repeat(7, 1fr); }
  .process li { padding: 44px 16px 0 0; }
  .process li::before { left: 28px; right: 0; top: 14px; bottom: auto; width: auto; height: 1px; }
}
.docs { display: grid; gap: 0 40px; margin-top: 36px; border-top: 1px solid var(--line); }
.docs li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .94rem; color: var(--ink-2); }
.docs strong { display: block; color: var(--ink); font-weight: 600; }
@media (min-width: 720px) { .docs { grid-template-columns: 1fr 1fr; } .docs strong { display: inline-block; min-width: 13.5em; padding-right: 12px; } .docs li { display: flex; align-items: baseline; } }

/* ---------- roadmapa ---------- */
.split { display: grid; gap: 48px; margin-top: clamp(48px, 7vw, 88px); }
@media (min-width: 960px) { .split { grid-template-columns: 1.1fr 1fr; gap: 72px; } }
.roadmap li { position: relative; padding: 0 0 28px 30px; border-left: 1px solid var(--line); margin-left: 6px; }
.roadmap li:last-child { padding-bottom: 0; }
.roadmap li::before { content: ""; position: absolute; left: -6.5px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--ink-3); }
.roadmap li.is-done::before { background: var(--accent-ink); border-color: var(--accent-ink); }
.roadmap h4 { font-size: 1.15rem; margin-top: 8px; }
.roadmap p { font-size: .94rem; color: var(--ink-2); margin-top: 4px; }
.roadmap .btn { margin-top: 12px; }
.badge { display: inline-block; font: 600 .66rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px; background: var(--accent-ink); color: #fff; }
.badge--plan { background: #fff; color: var(--ink-2); border: 1px solid var(--ink-3); }
.why { background: var(--bg-alt); padding: clamp(24px, 4vw, 40px); border-top: 3px solid var(--accent); align-self: start; }
.why p { color: var(--ink-2); }
.why__open { margin-top: 20px; font-weight: 600; color: var(--ink) !important; }

/* ---------- case studies ---------- */
.cases { display: grid; gap: 24px; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case { background: #fff; border: 1px solid var(--line); min-width: 0; }
.case .ph { border-radius: 0; }
.case h3 { font-size: 1.08rem; padding: 20px 20px 4px; }
.case dl { padding: 8px 20px 20px; }
.case dl > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.case dt { font: 500 .7rem/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.case dd { font-weight: 500; min-width: 0; }

/* ---------- ludzie ---------- */
.people { display: grid; gap: 32px 28px; }
@media (min-width: 640px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person .ph { max-width: 280px; }
.person h3 { font-size: 1.1rem; margin-top: 18px; }
.person__role { font-weight: 600; color: var(--accent-ink); font-size: .92rem; margin-top: 4px; }
.person p { font-size: .92rem; color: var(--ink-2); margin-top: 6px; }
.person__link { font-size: .86rem !important; }

/* ---------- nearshoring ---------- */
.near { background: var(--accent-tint); border-block: 1px solid #d5e5f3; padding-block: 32px; }
.near p { max-width: 90ch; font-size: 1.02rem; padding-left: 16px; border-left: 3px solid var(--accent); }

/* ---------- RFQ ---------- */
.rfq { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .rfq { grid-template-columns: 1.7fr 1fr; gap: 48px; } }
.form, .result { background: #fff; border: 1px solid var(--line); padding: clamp(20px, 4vw, 40px); }
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { min-width: 0; }
.field label, .field__label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--ink-3); font-size: .82rem; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #8b949d; border-radius: var(--radius); padding: 11px 12px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field ::placeholder { color: #6b737b; opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent-ink); }
.field [aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.field__err { color: var(--err); font-size: .84rem; font-weight: 500; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.drop { position: relative; display: block; border: 1.5px dashed #8b949d; border-radius: var(--radius); padding: 22px 16px; text-align: center; background: var(--bg-alt); cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.drop:hover, .drop.is-over { border-color: var(--accent-ink); background: var(--accent-tint); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.drop__cta { display: block; font-size: .96rem; }
.drop__cta strong { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.drop__hint { display: block; font: 500 .72rem/1.5 var(--mono); color: var(--ink-2); margin-top: 6px; }
.files { display: grid; gap: 6px; margin-top: 10px; }
.files:empty { display: none; }
.files li { display: flex; align-items: center; gap: 10px; font-size: .88rem; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.files .f-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.files .f-size { font: 500 .74rem/1 var(--mono); color: var(--ink-3); flex: none; }
.files button { flex: none; width: 32px; height: 32px; border: 0; background: none; color: var(--ink-2); font-size: 1.2rem; line-height: 1; cursor: pointer; border-radius: var(--radius); }
.files button:hover { background: var(--bg-alt); color: var(--err); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent-ink); flex: none; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form__or { font-size: .86rem; color: var(--ink-3); }
.form__nda { font-size: .92rem; font-weight: 600; }
.form__privacy { font-size: .82rem; color: var(--ink-2); margin-top: -10px; }
@media (max-width: 559.98px) { .form__actions { flex-direction: column; align-items: stretch; } .form__or { text-align: center; } }

.result h3 { font-size: 1.3rem; }
.result p { margin-top: 10px; color: var(--ink-2); }
.result .btn { margin-top: 18px; }
.result--ok { border-top: 3px solid var(--ok); }
.result--fail { border-top: 3px solid var(--err); margin-top: 16px; }

.rfq__side h3 { font: 500 .74rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.rfq__side h3:not(:first-child) { margin-top: 32px; }
.next { counter-reset: n; display: grid; gap: 14px; }
.next li { counter-increment: n; position: relative; padding-left: 38px; font-size: .95rem; }
.next li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--accent); font: 600 .72rem/1 var(--mono); color: var(--accent-ink); background: #fff; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 4px; font-size: 1.1rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--mono); color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--accent-ink); }
.faq details p { padding: 0 4px 24px; color: var(--ink-2); max-width: 70ch; }

/* ---------- stopka ---------- */
.footer { background: var(--ink); color: #d9dde1; font-size: .9rem; padding-top: 56px; }
.footer a { color: #fff; }
.footer a:hover { color: #a9cdec; }
.footer__in { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 800px) { .footer__in { grid-template-columns: 1.2fr 1.2fr 1fr; gap: 48px; } }
.footer p + p { margin-top: 8px; }
.brand--footer { color: #fff; margin-bottom: 14px; }
.brand--footer .brand__sub { color: #a9cdec; }
.footer__role { max-width: 34ch; }
.footer address { line-height: 1.7; }
.footer address strong { color: #fff; }
.footer__lang { display: flex; gap: 16px; margin-top: 16px !important; }
.footer__lang a[aria-current="true"] { text-decoration: none; font-weight: 600; }
.footer mark.todo { font-size: .8em; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.16); padding-block: 18px; font-size: .8rem; color: #b6bcc2; }

@media print { .header, .hero__media, .burger, .lang { display: none; } .rv { opacity: 1; transform: none; } }

/* =====================================================================
   v2 — „więcej życia": realne zdjęcia, kontrast sekcji, ruch, stany hover.
   Nadpisuje reguły bazowe powyżej. Ruch wyłączony przy prefers-reduced-motion.
   ===================================================================== */

/* pasek postępu + cień nagłówka */
.header::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent-ink), var(--accent)); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(43,47,51,.35); }
.nav a { position: relative; }
.nav a[aria-current="true"] { color: var(--accent-ink); }
@media (min-width: 1100px) {
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
}

/* przyciski */
.btn--primary { box-shadow: 0 10px 22px -12px rgba(35,95,151,.75); }
.btn--primary::after { content: "→"; transition: transform .2s; }
.btn--primary:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

/* hero — układ dzielony z realnym zdjęciem */
.hero { display: block; min-height: 0; padding-block: 40px 44px; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero::after { display: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image: linear-gradient(rgba(59,130,196,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,196,.16) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 88% 18%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 70% at 88% 18%, #000 0%, transparent 70%);
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.7vw, 3.7rem); max-width: 16ch; }
.hero__visual { position: relative; margin: 0 0 28px; }
.hero__visual::before { content: ""; position: absolute; right: -12px; top: -12px; width: 42%; height: 46%; background: linear-gradient(135deg, var(--accent), var(--accent-ink)); border-radius: 6px; z-index: -1; }
.hero__visual img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; border-radius: 6px; box-shadow: 0 34px 60px -34px rgba(43,47,51,.6); }
.hero__visual figcaption { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); background: rgba(43,47,51,.82); color: #fff; font: 500 .68rem/1.4 var(--mono); letter-spacing: .04em; padding: 6px 10px; border-radius: 3px; }
.stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: -30px 12px 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 20px 40px -24px rgba(43,47,51,.45); }
.stats > div { display: flex; flex-direction: column-reverse; padding: 14px 12px; min-width: 0; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dd { font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--accent-ink); white-space: nowrap; }
.stats dt { font: 500 .62rem/1.35 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; overflow-wrap: anywhere; }
.args { margin-top: 36px; max-width: none; }
@media (min-width: 1000px) {
  .hero { padding-block: 56px 52px; }
  .hero__grid { grid-template-columns: 1.02fr .98fr; gap: 64px; min-height: min(620px, calc(100svh - var(--header-h) - 250px)); }
  .hero__visual { margin-bottom: 34px; }
  .hero__visual img { aspect-ratio: 5 / 4.4; }
  .stats { position: absolute; left: -28px; right: 28px; bottom: -34px; margin: 0; }
  .stats > div { padding: 18px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__visual img { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero__visual::before { animation: blockIn .9s .15s cubic-bezier(.2,.7,.2,1) both; }
  .stats { animation: riseIn .7s .35s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes heroIn { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
  @keyframes blockIn { from { transform: translate(-24px, 24px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes riseIn { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* pasek zaufania w kolorze akcentu */
.trust { background: linear-gradient(90deg, #1f5688, #2f74b5); }
.trust__list li { display: flex; align-items: center; gap: 8px; }
.trust__list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #9fd0f7; }
.trust mark.todo { font-size: .78em; }

/* nagłówki sekcji */
.kicker::before { content: ""; flex: none; align-self: flex-start; margin-top: .7em; width: 28px; height: 2px; background: var(--accent); }
.kicker__n { white-space: nowrap; flex: none; }

/* placeholdery w stylu rysunku technicznego */
.ph {
  background-color: #eef3f7;
  background-image: linear-gradient(rgba(59,130,196,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,196,.15) 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px;
}
.ph__label::before { content: ""; display: block; width: 30px; height: 30px; margin: 0 auto 8px; opacity: .55; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23235f97' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l1.500-2h7L17 8h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.500'/%3E%3C/svg%3E"); }

/* kafle jako karty */
.tiles { counter-reset: tile; gap: 24px; }
.tile { position: relative; counter-increment: tile; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; padding-bottom: 22px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.tile::before { content: "0" counter(tile); position: absolute; z-index: 1; left: 12px; top: 12px; font: 600 .7rem/1 var(--mono); color: var(--accent-ink); background: #fff; padding: 5px 8px; border-radius: 3px; box-shadow: 0 2px 6px rgba(43,47,51,.12); }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--accent-ink), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.tile .ph { border-radius: 0; }
.tile h3, .tile p { padding-inline: 20px; }
.tile h3 { margin-top: 18px; }
@media (hover: hover) {
  .tile:hover, .case:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(43,47,51,.45); border-color: #c9d6e2; }
  .tile:hover::after { transform: scaleX(1); }
}
@media (min-width: 960px) { .tiles { gap: 28px; } }

/* capabilities — ciemna sekcja, liczby na pierwszym planie */
#capabilities { background: var(--ink); color: #fff; position: relative; isolation: isolate; overflow: hidden; }
#capabilities::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); mask-image: linear-gradient(180deg, #000, transparent 55%); }
#capabilities .kicker { color: #9fd0f7; }
#capabilities .kicker__n { color: #aab3bb; }
#capabilities .lead { color: #c9d0d6; }
.caps { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.16); border-radius: 6px; overflow: hidden; }
.cap { position: relative; background: #30353a; transition: background-color .25s; }
.cap::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.cap h3 { color: #aab8c4; }
.cap__big { color: #fff; }
.cap__unit { color: #9fd0f7; }
.cap__d { color: #c9d0d6; border-top-color: rgba(255,255,255,.16); }
@media (hover: hover) { .cap:hover { background: #383e44; } .cap:hover::before { transform: scaleX(1); } }

/* zdjęcia z podpisem */
.shot { position: relative; margin: 0; overflow: hidden; border-radius: 6px; background: #e4e8eb; }
.shot img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; color: #fff; font: 500 .72rem/1.4 var(--mono); letter-spacing: .04em; background: linear-gradient(180deg, transparent, rgba(20,23,26,.82)); }
@media (hover: hover) { .shot:hover img { transform: scale(1.04); } }

/* proces */
.process__n { transition: background-color .2s, color .2s; }
.process li::before { background: linear-gradient(180deg, var(--accent), var(--line)); }
@media (min-width: 1000px) { .process li::before { background: linear-gradient(90deg, var(--accent), var(--line)); } }
@media (hover: hover) { .process li:hover .process__n { background: var(--accent-ink); color: #fff; border-color: var(--accent-ink); } }
.docs li { position: relative; padding-left: 24px; }
.docs li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* roadmapa */
.roadmap li.is-done::after { content: ""; position: absolute; left: -6.5px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .roadmap li.is-done::after { animation: pulse 2.6s ease-out infinite; }
  @keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.8); opacity: 0; } }
}
.why { border-radius: 6px; background: linear-gradient(160deg, var(--accent-tint), #fff 70%); border: 1px solid #d5e5f3; box-shadow: 0 24px 48px -34px rgba(35,95,151,.55); position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-ink)); }

/* case studies, ludzie */
.case { border-radius: 6px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.person .ph { border-radius: 6px; }
.person img.ph { box-shadow: 0 20px 36px -24px rgba(43,47,51,.5); }

/* nearshoring ze zdjęciem zakładu */
.near { padding-block: clamp(40px, 6vw, 72px); background: linear-gradient(120deg, var(--accent-tint), #fff); }
.near__in { display: grid; gap: 28px; align-items: center; }
.near p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; }
@media (min-width: 900px) { .near__in { grid-template-columns: 1fr 1.1fr; gap: 56px; } }

/* RFQ */
#rfq { background: linear-gradient(180deg, var(--bg-alt), #e9eff5); }
.form, .result { border-radius: 6px; box-shadow: 0 30px 60px -40px rgba(43,47,51,.45); }
.form { border-top: 3px solid var(--accent-ink); }
.field input[type="text"], .field input[type="email"], .field textarea { transition: border-color .15s, box-shadow .15s; }
.field input:hover, .field textarea:hover { border-color: var(--accent-ink); }
@media (min-width: 960px) { .rfq__side { position: sticky; top: calc(var(--header-h) + 24px); } }

/* FAQ */
.faq details[open] summary { color: var(--accent-ink); }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] p { animation: riseIn .3s ease both; }
}

/* wejścia przy przewijaniu (klasy nadaje app.js; bez JS treść jest widoczna) */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.rv.is-in { opacity: 1; transform: none; }

/* zespół: karta bez zdjęcia (inicjały na białym tle) + kontakt */
.avatar--blank { display: grid; place-items: center; max-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font: 600 2.4rem/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.person__contact { margin-top: 10px !important; font-size: .92rem !important; line-height: 1.7; }
.person__contact a { text-decoration: none; font-weight: 500; }
.person__contact a:hover { text-decoration: underline; }

/* park maszynowy — galeria w sekcji Capabilities */
.park { margin-top: 48px; }
.park__head { display: grid; gap: 10px; margin-bottom: 20px; }
.park__head .sub { margin-bottom: 0; color: #fff; }
.park__head p { color: #c9d0d6; max-width: 60ch; }
.park__link { justify-self: start; background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.park__link:hover { background: #fff; color: var(--ink); border-color: #fff; }
.park__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.park__grid .shot img { aspect-ratio: 4 / 3; }
.park__grid .shot figcaption { font-size: .66rem; padding: 24px 12px 10px; }
@media (min-width: 720px) { .park__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } .park__head { grid-template-columns: 1fr auto; align-items: end; } .park__head p { grid-column: 1; } .park__link { grid-column: 2; grid-row: 1 / 3; align-self: center; } }

/* 4 języki w przełączniku — ciaśniej na wąskich ekranach */
@media (max-width: 440px) { .header__in { gap: 10px; } .lang a { padding: 8px 6px; min-width: 0; font-size: .72rem; } .brand__sub { font-size: .58rem; } }
