/* Agentify — wersja „Astro”: biel, duży grotesk, czerwone bloki na czarno-białych zdjęciach. */
:root {
  --red: #ec1c24; --ink: #111113; --gray: #b9b9bd; --muted: #8a8a90; --line: #e6e6e8; --card: #f3f3f4;
  --font: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --gut: max(20px, calc((100% - 1320px) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.wrap { padding-inline: var(--gut); }
.red { color: var(--red); }
.gray { color: var(--gray); font-weight: 300; }
.dot { display: inline-block; width: 9px; height: 9px; background: var(--red); }
.sq { display: block; width: 11px; height: 11px; background: var(--ink); margin-bottom: 14px; }
.small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.more { display: inline-block; margin-top: 10px; font-size: 11px; color: var(--muted); border-bottom: 1px solid currentColor; }
.more:hover { color: var(--red); }

/* zdjęcie czarno-białe + czerwony blok (multiply) */
.ph { position: relative; overflow: hidden; background: #ddd; }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .8s ease; }
.ph::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--red-h, 45%); background: var(--red); mix-blend-mode: multiply; transition: height .6s ease; }
.ph--none::after { display: none; }
a:hover .ph img, .ph:hover img { transform: scale(1.04); }

/* ── nagłówek ── */
.hdr { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 48px; height: 64px; padding-inline: var(--gut); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 700 19px/1 'Outfit', var(--font); letter-spacing: -.01em; }
.brand img { width: 24px; height: 24px; }
.hdr nav { display: flex; gap: 30px; font-size: 12px; color: var(--muted); }
.hdr nav a:hover { color: var(--ink); }
.btn-o { margin-left: auto; padding: 8px 18px; border: 1px solid var(--ink); font-size: 12px; transition: background .2s, color .2s; }
.btn-o:hover { background: var(--ink); color: #fff; }
.burger { display: none; margin-left: 12px; width: 38px; height: 38px; border: 0; background: none; cursor: pointer; }
.burger span { display: block; height: 2px; margin: 6px 6px; background: var(--ink); }
@media (max-width: 900px) {
  .hdr nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gut) 18px; background: #fff; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); transform: translateY(-120%); transition: transform .3s; }
  .hdr nav a { padding: 10px 0; }
  .hdr.open nav { transform: none; }
  .burger { display: block; }
}

/* ── hero ── */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 64px); max-height: 860px; }
.hero__l { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; gap: 24px 40px; padding: 30px 40px 60px max(20px, calc((100vw - 1320px) / 2)); }
.hero__lead { grid-column: 2; align-self: start; font-size: 14px; font-weight: 500; line-height: 1.35; max-width: 200px; }
.hero h1 .gray { font-weight: 300; }
.hero h1 { grid-column: 1 / -1; align-self: end; font-size: clamp(52px, 7.2vw, 118px); line-height: .88; font-weight: 600; letter-spacing: -.055em; }
.hero__tag { font-size: 18px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; max-width: 360px; }
.hero__side { align-self: end; }
.hero__side p { font-size: 12px; color: var(--muted); max-width: 230px; }
.hero__r { position: relative; --red-h: 52%; }
.hero__r img { object-position: 50% 30%; }
.hero__arrow { position: absolute; z-index: 2; left: 0; bottom: 70px; display: grid; place-items: center; width: 64px; height: 64px; background: var(--ink); color: #fff; font-size: 22px; transition: background .2s; }
.hero__arrow:hover { background: var(--red); }
.hero__stats { position: absolute; z-index: 2; right: 28px; bottom: 28px; display: flex; gap: 28px; color: #fff; }
.hero__stats b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.hero__stats span { font-size: 11px; opacity: .85; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; max-height: none; }
  .hero__l { padding: 24px 20px 40px; }
  .hero__r { height: 420px; }
  .hero__stats { gap: 18px; right: 18px; bottom: 18px; }
}

/* ── nagłówki sekcji ── */
.sec { padding: 120px var(--gut) 40px; }
.head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: end; margin-bottom: 60px; }
.head__aside { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.head__aside p { font-size: 12px; color: var(--muted); max-width: 260px; }
.h2 { font-size: clamp(40px, 5.6vw, 84px); line-height: .95; font-weight: 600; letter-spacing: -.045em; text-transform: uppercase; }
.h2--center { text-align: center; }
@media (max-width: 900px) { .sec { padding: 80px 20px 20px; } .head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; } .head > :first-child { order: 2; } }

/* ── lista numerowana (co robimy) ── */
.offer { list-style: none; margin: 0; padding: 0; }
.offer li { display: grid; grid-template-columns: 1fr 2fr 1.2fr; align-items: center; gap: 24px; padding: 26px 0; border-top: 1px solid transparent; transition: border-color .3s; }
.offer li:hover { border-color: var(--line); }
.offer .n { font-size: clamp(40px, 4.4vw, 64px); font-weight: 300; color: var(--red); letter-spacing: -.04em; line-height: 1; }
.offer h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; text-transform: uppercase; letter-spacing: -.02em; }
.offer p { font-size: 12px; color: var(--muted); max-width: 260px; }
@media (max-width: 700px) { .offer li { grid-template-columns: 70px 1fr; } .offer p { grid-column: 2; } }

/* ── rząd zdjęć (zastosowania) ── */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px; overflow-x: auto; padding: 0 var(--gut) 20px; scrollbar-width: thin; }
.uc .ph { aspect-ratio: 3 / 4; }
.uc:nth-child(odd) .ph { --red-h: 0%; }
.uc:hover .ph { --red-h: 42%; }
.uc h3 { margin-top: 14px; font-size: 16px; font-weight: 600; }
.uc p { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.uc .tag { display: block; margin-top: 4px; font-size: 11px; color: var(--red); }
.uc-intro { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 76px; }
.uc-intro h2 { font-size: clamp(24px, 2.1vw, 32px); line-height: 1; font-weight: 500; letter-spacing: -.035em; text-transform: uppercase; }

/* ── karty (wyzwania, przebieg) ── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; min-height: 210px; padding: 22px 22px 18px; background: var(--card); transition: background .3s; }
.card:hover { background: #ececee; }
.card__k { font-size: 11px; color: var(--muted); }
.card__q { margin-top: 14px; font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.card__t { margin-top: 8px; font-size: 13px; color: var(--muted); }
.card__f { margin-top: auto; padding-top: 16px; border-top: 1px solid #dcdcdf; font-size: 13px; font-weight: 600; }
.card__f span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.card__f .red { display: inline; font-size: inherit; font-weight: 600; color: var(--red); }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ── produkty: schodkowy rząd jak „team” ── */
.team { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: 0; padding-top: 30px; }
.member { display: block; text-align: center; }
.member .ph { height: var(--h, 260px); --red-h: var(--rh, 40%); background: #111; }
.member .ph img { object-position: top left; }
.member b { display: block; margin-top: 12px; font-size: 12px; font-weight: 600; }
.member span { display: block; font-size: 11px; color: var(--muted); padding: 0 6px; }
.member:hover b { color: var(--red); }
@media (max-width: 1000px) { .team { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 200px; overflow-x: auto; padding-bottom: 12px; } }

/* ── wdrożenie ── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.steps li { list-style: none; padding: 26px 26px 10px 0; }
.steps .n { font-size: 56px; font-weight: 300; color: var(--red); letter-spacing: -.04em; line-height: 1; }
.steps h3 { margin-top: 18px; font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; }
.steps p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.steps { padding: 0; margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 50px; }
.pillars div { padding: 22px; border-left: 3px solid var(--red); background: var(--card); }
.pillars h3 { font-size: 15px; font-weight: 600; }
.pillars p { margin-top: 6px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .steps, .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .pillars { grid-template-columns: 1fr; } }

/* ── technologia ── */
.tech { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.layers { display: grid; gap: 8px; }
.layer { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 22px; background: var(--ink); color: #fff; font-size: 20px; font-weight: 500; letter-spacing: -.01em; text-transform: uppercase; transform: translateX(calc(var(--i) * 18px)); transition: background .3s; }
.layer small { font-size: 11px; text-transform: none; letter-spacing: 0; opacity: .6; font-weight: 400; max-width: 55%; text-align: right; }
.layer:nth-child(2) { background: var(--red); }
.layer:hover { background: var(--red); }
.tech__note { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.tech__note h3 { font-size: 15px; font-weight: 600; }
.tech__note p { margin-top: 6px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .tech { grid-template-columns: 1fr; gap: 30px; } .layer { transform: none; } }

/* ── kontakt ── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-bottom: 100px; }
.contact ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.contact li::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 12px; background: var(--red); }
.form { display: grid; gap: 22px; align-content: start; }
.form .r2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: grid; gap: 4px; font-size: 11px; color: var(--muted); }
.form input, .form textarea { border: 0; border-bottom: 1px solid #cfcfd3; padding: 8px 0; font: 400 16px var(--font); color: var(--ink); background: transparent; border-radius: 0; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form button { justify-self: start; display: inline-flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; cursor: pointer; font: 600 15px var(--font); }
.form button i { display: grid; place-items: center; width: 52px; height: 52px; background: var(--ink); color: #fff; font-style: normal; font-size: 18px; transition: background .2s; }
.form button:hover i { background: var(--red); }
.form__status { font-size: 13px; min-height: 1.3em; }
.form__status.err { color: var(--red); } .form__status.ok { color: #1c8a4c; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .form .r2 { grid-template-columns: 1fr; } }

/* ── stopka ── */
.foot { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between; padding: 28px var(--gut); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.foot a:hover { color: var(--red); }
.foot .alt a { margin-left: 16px; }

/* ── wejścia ── */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── platforma (sekcja Technologia) ── */
.plat { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; background: #f9f5f1; padding-bottom: 60px; margin-top: 80px; }
.plat__img { width: 100%; height: auto; mix-blend-mode: multiply; }
.plat__rule { display: block; width: 46px; height: 2px; background: var(--red); margin: 0 0 28px; }
.plat__h { font-size: clamp(54px, 6.4vw, 104px); line-height: .9; font-weight: 700; letter-spacing: -.05em; text-transform: uppercase; margin-bottom: 30px; }
.plat__row { display: flex; align-items: center; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.plat__row:last-of-type { border-bottom: 0; }
.plat__ic { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border: 1px solid #e3dcd8; border-radius: 10px; background: #fff; color: var(--red); font: 600 18px var(--font); }
.plat__row p { font-size: 19px; line-height: 1.35; letter-spacing: -.01em; }
.plat__art { position: relative; }
.platform { width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.platform g[filter] { transition: transform .6s ease; }
@media (prefers-reduced-motion: no-preference) {
  .platform > g:nth-last-of-type(-n+3) { animation: plFloat 6s ease-in-out infinite; }
  .platform > g:nth-last-of-type(2) { animation-delay: -2s; }
  .platform > g:nth-last-of-type(3) { animation-delay: -4s; }
}
@keyframes plFloat { 50% { translate: 0 -8px; } }
@media (max-width: 900px) { .plat { grid-template-columns: 1fr; } .plat__art { order: -1; } }

/* ── animowany przepływ w nagłówku ── */
.hero__flow { grid-column: 1 / -1; align-self: center; margin: 10px 0 0; }
.flow { width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.flow__e { fill: none; stroke: #d6d6da; stroke-width: 1.4; }
.flow__p { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 14 200; stroke-dashoffset: 14; opacity: 0; filter: url(#fGlow); }
.flow__n rect { fill: #fff; stroke: #d6d6da; stroke-width: 1.4; transition: stroke .35s, fill .35s; }
.flow__ic { fill: none; stroke: #55555c; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.flow__l { font-size: 11px; font-weight: 500; fill: #3a3a40; }
.flow__t { font-size: 12.5px; font-weight: 600; fill: #111113; }
.flow__s { font-size: 9.5px; fill: #9a9aa0; }
.flow__dot { fill: #fff; stroke: #c4c4c9; stroke-width: 1.2; }
.flow__bolt { fill: var(--red); }
.flow__n.on rect { stroke: var(--red); fill: #fff6f6; filter: drop-shadow(0 0 8px rgba(236,28,36,.55)); }
.flow__n.on .flow__ic { stroke: var(--red); }
.flow__n--ok.on rect { fill: var(--red); }
.flow__n--ok.on .flow__ic { stroke: #fff; }
.flow__burst { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); }
.flow__burst.on { animation: flowBurst 1.4s ease-out forwards; }
@keyframes flowBurst { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
@media (max-width: 900px) { .hero__lead { grid-column: 1 / -1; } .hero__flow { margin: 0 -6px; } }
.btn-o { white-space: nowrap; }
@media (max-width: 480px) { .hdr { gap: 14px; } .btn-o { padding: 7px 12px; font-size: 11px; } }
