/* RobimyWeb · podstrony (korzysta z tokenów i komponentów ze style.css) */

/* ---------- Nagłówek podstrony ---------- */
.phero { position: relative; padding: clamp(128px, 17vh, 176px) 0 clamp(40px, 5vw, 72px); overflow: clip; }
.phero__glow {
  position: absolute; inset: -30% -10% auto; height: 130%; pointer-events: none;
  background:
    radial-gradient(46% 55% at 50% 0%, rgba(45,91,255,.15), transparent 70%),
    radial-gradient(26% 36% at 88% 18%, rgba(120,160,255,.2), transparent 70%),
    radial-gradient(22% 30% at 8% 30%, rgba(160,190,255,.16), transparent 70%);
}
.phero__inner { position: relative; display: grid; gap: 22px; justify-items: start; }
.phero__title { font-size: clamp(44px, 7.2vw, 112px); line-height: 1.02; letter-spacing: -.052em; font-weight: 600; max-width: 15ch; }
.phero__title em { font-size: 1.1em; font-weight: 500; letter-spacing: -.02em; }
.phero__lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); max-width: 54ch; }
.phero__stats { display: flex; flex-wrap: wrap; gap: 16px clamp(28px, 4vw, 56px); margin: 10px 0 0; }
.phero__stats div { display: flex; flex-direction: column-reverse; }
.phero__stats dt { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.phero__stats dd { margin: 0; font-size: clamp(34px, 3.6vw, 52px); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.phero--center .phero__inner { justify-items: center; text-align: center; }
.phero--center .phero__title, .phero--center .phero__lead { margin-inline: auto; }

.sec { padding: clamp(64px, 8vw, 120px) 0; }
.sec__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 52px); max-width: 780px; }

/* ---------- Filtry (chipy) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 38px; padding: 0 14px; white-space: nowrap; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color .25s, color .25s, transform .3s var(--ease); }
.fchip b { font-size: 12px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fchip i { font-size: 16px; }
.fchip:hover { background: rgba(13,16,21,.05); color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.fchip[aria-pressed="true"] b { color: rgba(255,255,255,.6); }
.fchip:active { transform: scale(.97); }

/* ---------- Pas CTA nad stopką ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 28px;
  padding: clamp(28px, 4.4vw, 60px); border-radius: 32px; background: #0F1219; color: #fff;
}
.cta-band::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 180%; z-index: -1; background: radial-gradient(closest-side, rgba(45,91,255,.45), transparent); filter: blur(20px); }
.cta-band h2 { font-size: clamp(32px, 4.2vw, 62px); line-height: 1.04; letter-spacing: -.045em; font-weight: 600; }
.cta-band h2 em { color: #9DB2FF; font-size: 1.08em; }
.cta-band p { margin-top: 14px; color: rgba(255,255,255,.72); max-width: 48ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.cta-band .btn--light { background: #fff; }
.cta-band .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.08); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; box-shadow: 0 20px 44px -16px rgba(13,16,21,.6); }
.toast i { color: #7BE3A6; font-size: 18px; }
.toast a { height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink); display: inline-flex; align-items: center; font-weight: 500; font-size: 13.5px; }

/* ================= REALIZACJE ================= */
.wall { position: relative; margin-top: clamp(36px, 5vw, 64px); height: clamp(300px, 36vw, 500px); overflow: hidden; perspective: 1400px;
  -webkit-mask: linear-gradient(to bottom, transparent 0%, #000 16%, #000 74%, transparent 100%); mask: linear-gradient(to bottom, transparent 0%, #000 16%, #000 74%, transparent 100%); }
.wall__rows { position: absolute; left: 50%; top: 50%; width: 200%; display: grid; gap: 18px; transform: translate(-50%, -50%) rotateX(30deg) rotateZ(-9deg); transform-style: preserve-3d; }
.wall__row { display: flex; gap: 18px; width: max-content; will-change: transform; }
.wall__row img { width: clamp(220px, 20vw, 330px); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; background: var(--surface-2); box-shadow: 0 0 0 1px rgba(255,255,255,.8), 0 24px 44px -20px rgba(28,44,92,.45); }

.wl { padding-top: clamp(24px, 3vw, 40px); }
.wl-bar { position: sticky; top: 86px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 8px; margin-bottom: clamp(24px, 3vw, 36px); border-radius: 20px; background: rgba(245,246,248,.84); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 0 0 1px rgba(13,16,21,.05), 0 12px 30px -20px rgba(28,44,92,.35); }
.wl-tools { display: flex; align-items: center; gap: 12px; padding-right: 4px; }
.wl-count { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }

.rgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 32px) clamp(16px, 2vw, 28px); }
.rcard { position: relative; grid-column: span 6; display: grid; gap: 14px; align-content: start; }
.rcard.s4 { grid-column: span 4; } .rcard.s5 { grid-column: span 5; } .rcard.s6 { grid-column: span 6; } .rcard.s7 { grid-column: span 7; } .rcard.s8 { grid-column: span 8; } .rcard.s12 { grid-column: span 12; }
.rcard__screen { position: relative; height: clamp(250px, 29vw, 440px); border-radius: 20px; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px rgba(13,16,21,.05), 0 22px 50px -32px rgba(28,44,92,.5); container-type: size; isolation: isolate; }
.rcard__screen img { display: block; width: 100%; }
.rcard__screen .is-full { transition: transform 1.3s var(--ease); }
.rcard__screen .is-static { height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
@media (hover: hover) {
  .rcard:hover .is-full, .rcard:focus-within .is-full { transform: translateY(calc(-100% + 100cqh)); transition: transform 6s cubic-bezier(.45, .05, .5, 1); }
  .rcard:hover .is-static { transform: scale(1.045); }
}
.rcard__hint { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(13,16,21,.8); color: #fff; font-size: 12.5px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .45s var(--ease); pointer-events: none; }
.rcard:hover .rcard__hint { opacity: 1; transform: none; }
.rcard__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.rcard__meta h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.03em; font-weight: 600; line-height: 1.15; }
.rcard__meta p { margin-top: 3px; font-size: 14.5px; color: var(--ink-3); }
.rcard__open { position: static; display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 18px; transition: background-color .3s, color .3s, transform .5s var(--ease); }
.rcard__open::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 20px; }
.rcard:hover .rcard__open { background: var(--ink); color: #fff; transform: rotate(-45deg); }
.rcard__open:focus-visible { outline-offset: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.tag i { font-size: 14px; }
.tag--ai { background: #0F1219; color: #fff; }
.tag--ai i { color: #9DB2FF; }
.tag--own { background: var(--accent-soft); color: var(--accent-ink); }
a.tag { transition: background-color .2s, color .2s; }
a.tag:hover { background: var(--ink); color: #fff; }
.tags--mono .tag { font-family: var(--mono); font-size: 12px; font-weight: 400; }

.rlist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.rlist li { border-bottom: 1px solid var(--line-2); }
.rrow { width: 100%; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr) 64px 46px; align-items: center; gap: 20px; padding: 24px 10px; text-align: left; border-radius: 16px; transition: padding .45s var(--ease), background-color .3s; }
.rrow b { font-size: clamp(24px, 2.8vw, 40px); letter-spacing: -.045em; font-weight: 600; line-height: 1.05; }
.rrow span { font-size: 15px; color: var(--ink-2); }
.rrow .rrow__year { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.rrow i { justify-self: end; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 18px; transition: background-color .3s, color .3s, transform .5s var(--ease); }
.rrow:hover { padding-left: 22px; background: var(--surface); }
.rrow:hover i { background: var(--ink); color: #fff; transform: rotate(-45deg); }
.rfloat { position: fixed; left: 0; top: 0; z-index: 40; width: 360px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .35s; box-shadow: 0 30px 70px -24px rgba(28,44,92,.55), 0 0 0 1px rgba(255,255,255,.8); }
.rfloat.is-on { opacity: 1; }
.rfloat img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* okno case study */
.case { width: min(1200px, calc(100vw - 32px)); max-width: none; height: calc(100dvh - 32px); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 28px; background: var(--bg); color: var(--ink); overflow: hidden; box-shadow: 0 40px 120px -30px rgba(13,16,21,.55); }
.case::backdrop { background: rgba(13,16,21,.42); backdrop-filter: blur(6px); }
.case__panel { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: clamp(20px, 3vw, 40px); display: grid; gap: clamp(22px, 3vw, 34px); align-content: start; }
.case__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.case__client { font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.case__head h2 { margin-top: 4px; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.05em; font-weight: 600; }
.case__head p { margin-top: 12px; max-width: 62ch; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); }
.case__actions { display: flex; flex: none; gap: 8px; }
.case__media { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.case__media.no-phone { grid-template-columns: 1fr; }
.browser { border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px rgba(13,16,21,.06), 0 30px 70px -40px rgba(28,44,92,.6); }
.browser__bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.browser__dots i:nth-child(2) { background: #FEBC2E; } .browser__dots i:nth-child(3) { background: #28C840; }
.browser__url { flex: 1; max-width: 380px; height: 26px; margin: 0 auto; border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.browser__url i { color: #0F8C45; font-size: 12px; }
.browser__view { position: relative; height: clamp(300px, 48vh, 540px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.browser__view img { display: block; width: 100%; }
.browser__view .is-static { height: 100%; object-fit: cover; object-position: top; }
.browser__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); }
.phone { position: relative; width: clamp(180px, 18vw, 236px); aspect-ratio: 390 / 844; padding: 9px; border-radius: 36px; background: #14161B; box-shadow: inset 0 0 0 1px #2A2E37, 0 30px 60px -24px rgba(13,16,21,.55); }
.phone::before { content: ""; position: absolute; top: 17px; left: 50%; z-index: 1; width: 64px; height: 18px; margin-left: -32px; border-radius: 10px; background: #14161B; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; }
.case__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .75fr); gap: clamp(20px, 3vw, 40px); }
.case__body h3 { margin-bottom: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.case__body h3 + .tags { margin-bottom: 22px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 16px; line-height: 1.45; }
.checklist i { margin-top: 2px; font-size: 18px; color: var(--accent); flex: none; }
.case__facts { display: grid; gap: 14px; align-content: start; }
.case__facts div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.case__facts dt { font-size: 12.5px; color: var(--ink-3); }
.case__facts dd { margin: 0; font-size: 15.5px; font-weight: 500; }
.case__video { border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.case__video video { display: block; width: 100%; height: auto; }
.case__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-2); }

/* ---------- Responsywność podstron ---------- */
@media (max-height: 520px) and (min-width: 600px) { .phero { padding-top: 96px; } }
@media (max-width: 980px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
  .case__body { grid-template-columns: 1fr 1fr; }
  .case__facts { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .rgrid { grid-template-columns: 1fr; }
  .rcard, .rcard.s4, .rcard.s5, .rcard.s6, .rcard.s7, .rcard.s8, .rcard.s12 { grid-column: 1; }
  .rcard__screen { height: 240px; }
  .wl-bar { top: 74px; border-radius: 16px; }
  .wl-bar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .wl-tools { width: 100%; justify-content: space-between; }
  .rrow { grid-template-columns: minmax(0, 1fr) 44px; }
  .rrow span, .rrow .rrow__year { display: none; }
  .case { width: 100vw; height: 100dvh; border-radius: 0; }
  .case__head { flex-direction: column-reverse; }
  .case__actions { width: 100%; justify-content: space-between; }
  .case__media { grid-template-columns: 1fr; }
  .phone { display: none; }
  .case__body { grid-template-columns: 1fr; }
  .case__facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- 404 i polityka prywatności ---------- */
.nf { min-height: 82vh; min-height: 82dvh; display: grid; align-items: center; }
.nf__code { font-size: clamp(96px, 22vw, 240px); line-height: .9; font-weight: 600; letter-spacing: -.07em; background: linear-gradient(180deg, var(--ink) 30%, rgba(13,16,21,.12)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.legal { max-width: 760px; padding-bottom: clamp(72px, 9vw, 128px); }
.legal h2 { margin-top: 48px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.03em; font-weight: 600; scroll-margin-top: 100px; }
.legal h3 { margin-top: 24px; font-size: 17px; font-weight: 600; }
.legal p { margin-top: 10px; color: var(--ink-2); line-height: 1.65; }
.legal__table { margin-top: 16px; overflow-x: auto; border-radius: 16px; box-shadow: var(--shadow-sm); background: var(--surface); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; background: var(--surface-2); }
.legal tr:last-child td { border-bottom: 0; }
.legal code { font-family: var(--mono); font-size: 12.5px; }

/* ---------- Suwak przed i po (case study) ---------- */
.case__ba h3 { margin-bottom: 12px; font-size: 17px; font-weight: 600; }
.ba { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 18px; background: var(--surface-2); box-shadow: var(--shadow); touch-action: pan-y; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(13,16,21,.12); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); font-size: 20px; box-shadow: var(--shadow); }
.ba__tag { position: absolute; top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(13,16,21,.78); color: #fff; font-size: 12.5px; font-weight: 500; backdrop-filter: blur(8px); pointer-events: none; }
.ba__tag--l { left: 12px; }
.ba__tag--r { right: 12px; background: var(--accent); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(.ba__range:focus-visible) .ba__knob { outline: 3px solid var(--accent); outline-offset: 3px; }
.case__note { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.case__ask { margin-top: 16px; justify-self: start; }
