/* Product landing pages (produkty/*.html) — red / black / white Agentify brand, standalone from the main site CSS. */
:root {
  --red: #fb2530; --red-2: #d7262e; --ink: #1f2024; --ink-2: #2a2c31; --line: #e4e5e8; --text: #3c3f46; --muted: #6b6e76; --bg-2: #f4f4f5;
  --head: Oswald, 'Arial Narrow', sans-serif; --font: Roboto, 'Segoe UI', system-ui, sans-serif;
  --gut: max(20px, calc((100% - 1200px) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--text); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 600; line-height: 1.12; color: var(--ink); }
p { margin: 0; }
.wrap { padding-inline: var(--gut); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px 14px 24px; font: 500 15px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; border: 1px solid transparent; transition: background .2s, color .2s, transform .2s; white-space: nowrap; }
.btn--red { background: var(--red); color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); box-shadow: 0 10px 22px -12px rgba(251,37,48,.9); }
.btn--red:hover { background: var(--red-2); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--line { border-color: #cfd1d6; color: var(--ink); }
.btn--line:hover { border-color: var(--red); color: var(--red); }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; height: 70px; padding-inline: var(--gut); background: rgba(31,32,36,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.07); }
.hdr__logo img { height: 34px; width: auto; }
.hdr nav { display: flex; gap: 22px; margin-left: auto; }
.hdr nav a { font-size: 14px; color: rgba(255,255,255,.72); transition: color .2s; }
.hdr nav a:hover { color: #fff; }
.hdr .btn { padding: 10px 22px 10px 18px; font-size: 13px; }
@media (max-width: 960px) { .hdr nav { display: none; } .hdr .btn { margin-left: auto; } }
@media (max-width: 420px) { .hdr__logo img { height: 28px; } .hdr .btn { padding: 9px 18px 9px 14px; font-size: 12px; } }

/* hero */
.hero { position: relative; overflow: hidden; padding: 80px var(--gut) 150px; background: radial-gradient(90% 70% at 85% 30%, rgba(251,37,48,.16), transparent 60%), var(--ink); color: #fff; }
.hero::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: var(--red); clip-path: polygon(0 70%, 58% 20%, 100% 62%, 100% 100%, 0 100%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: #fff; clip-path: polygon(0 94%, 58% 50%, 100% 88%, 100% 100%, 0 100%); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 26px; }
.crumbs a:hover { color: #fff; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.kicker::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--red); box-shadow: 4px 3px 0 rgba(255,255,255,.18); flex: none; }
.hero h1 { margin-top: 18px; font-size: clamp(42px, 5.4vw, 74px); text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__lead { margin-top: 20px; max-width: 560px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.78); }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.2); font-size: 13px; color: rgba(255,255,255,.85); }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3ecf7a; box-shadow: 0 0 10px #3ecf7a; }
.badge--demo::before { background: #f5b83d; box-shadow: 0 0 10px #f5b83d; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__note { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.5); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.stats b { display: block; font: 600 30px/1 var(--head); color: #fff; }
.stats span { display: block; margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.6); max-width: 170px; line-height: 1.4; }

/* hero visual: browser frame + optional phone */
.shot { position: relative; }
.browser { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1); transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #2a2c31; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.browser__bar span { margin-left: 12px; padding: 3px 12px; border-radius: 99px; background: rgba(0,0,0,.35); font: 11px ui-monospace, Consolas, monospace; color: rgba(255,255,255,.55); }
.browser img { width: 100%; }
.phone { position: absolute; right: -14px; bottom: -44px; width: 30%; max-width: 190px; padding: 7px; border-radius: 26px; background: #0c0c0e; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.14); }
.phone img { border-radius: 20px; }
.shot--plain img { border-radius: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.shot--center img { margin: 0 auto; max-width: 360px; }
@media (max-width: 960px) {
  .hero { padding: 48px 20px 120px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .browser { transform: none; }
  .phone { right: 8px; bottom: -30px; width: 32%; }
  .stats { gap: 22px; }
}

/* sections */
.sec { padding: 96px var(--gut); }
.sec--alt { background: var(--bg-2); }
.sec--dark { background: var(--ink); color: rgba(255,255,255,.75); }
.sec--dark h2, .sec--dark h3 { color: #fff; }
.sec__head { max-width: 760px; margin-bottom: 48px; }
.sec__head h2 { margin-top: 14px; font-size: clamp(30px, 3.4vw, 44px); }
.sec__head p { margin-top: 14px; font-size: 17px; color: var(--muted); }
.sec--dark .sec__head p { color: rgba(255,255,255,.6); }
@media (max-width: 720px) { .sec { padding: 68px 20px; } .sec__head { margin-bottom: 34px; } }

/* problem → solution */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pain { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.pain__q { padding: 24px 24px 20px; border-top: 4px solid #c9cbd1; }
.pain__q small, .pain__a small { display: block; font: 500 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pain__q h3 { margin-top: 10px; font-size: 21px; }
.pain__q p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.pain__a { flex: 1; padding: 20px 24px 24px; background: var(--ink); color: rgba(255,255,255,.82); font-size: 15px; }
.pain__a small { color: var(--red); margin-bottom: 8px; }
@media (max-width: 900px) { .pains { grid-template-columns: 1fr; } }

/* feature groups */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feat { padding: 30px 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 34px -28px rgba(0,0,0,.4); }
.feat__n { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--red); color: #fff; font: 600 18px/1 var(--head); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.feat h3 { margin-top: 18px; font-size: 22px; }
.feat ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.feat li { position: relative; padding-left: 22px; font-size: 15px; }
.feat li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr; } }

/* steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; counter-reset: s; }
.steps::before { content: ''; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: rgba(255,255,255,.14); }
.step { position: relative; counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; font: 600 17px/1 var(--head); box-shadow: 0 0 0 6px var(--ink); }
.step h3 { margin-top: 20px; font-size: 20px; }
.step p { margin-top: 8px; font-size: 15px; color: rgba(255,255,255,.65); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* gallery */
.gal { columns: 3 320px; column-gap: 20px; }
.gal figure { break-inside: avoid; margin: 0 0 20px; cursor: zoom-in; }
.gal figure > div { overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 34px -28px rgba(0,0,0,.5); transition: transform .25s, box-shadow .25s; }
.gal figure:hover > div { transform: translateY(-3px); box-shadow: 0 24px 40px -26px rgba(0,0,0,.6); }
.gal figure.is-phone > div { max-width: 240px; margin: 0 auto; padding: 6px; border-radius: 24px; background: #0c0c0e; border: 0; }
.gal figure.is-phone img { border-radius: 18px; }
.gal figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.gal figure.is-phone figcaption { text-align: center; }
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(12,12,14,.92); cursor: zoom-out; }
.lb[hidden] { display: none; }
.lb img { max-width: min(1400px, 100%); max-height: 88vh; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb p { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: rgba(255,255,255,.75); font-size: 14px; }

/* audience + FAQ */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.who { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.who li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); font-size: 15px; }
.who b { display: block; font-family: var(--head); font-weight: 600; font-size: 17px; color: var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 44px 20px 0; list-style: none; cursor: pointer; font: 500 18px/1.35 var(--head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font: 400 26px/1 var(--font); color: var(--red); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; font-size: 15.5px; color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.contact__list li { position: relative; padding-left: 26px; }
.contact__list li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.form { display: grid; gap: 16px; padding: 32px; background: #fff; color: var(--text); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #d4d6db; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border-radius: 0; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: transparent; }
.form .btn { justify-self: start; border: 0; cursor: pointer; }
.form__status { font-size: 14px; min-height: 1.4em; }
.form__status.err { color: var(--red-2); }
.form__status.ok { color: #1c8a4c; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 36px; } .form { padding: 22px; } .form__row { grid-template-columns: 1fr; } }

/* other products + footer */
.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.others a { display: block; padding: 18px 20px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.others a:hover { border-color: var(--red); transform: translateY(-2px); }
.others small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.others b { display: block; margin-top: 6px; font: 600 19px/1.2 var(--head); color: var(--ink); }
.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 30px var(--gut); background: #16171a; color: rgba(255,255,255,.55); font-size: 14px; }
.foot img { height: 28px; width: auto; }
.foot a:hover { color: #fff; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media (max-width: 720px) { .others { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; gap: 16px; } }
