/* =====================================================
   Sekcje 5–10 + stopka. Rytm: jasna (proces) → biała (realizacje) → czarna (dowody)
   → jasna (zespół) → biała (FAQ) → teal (kontakt) → czarna stopka.
   ===================================================== */
.sec { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.sec--light { --ink: #0a0a0a; --ink-muted: rgba(10,10,10,.72); background: #f4f3ec; color: var(--ink); }
.sec--white { --ink: #0a0a0a; --ink-muted: rgba(10,10,10,.72); background: #ffffff; color: var(--ink); }
.sec--dark  { --ink: #ffffff; --ink-muted: rgba(255,255,255,.76); background: #0a0a0a; color: var(--ink); }
.sec--teal  { --ink: #ffffff; --ink-muted: rgba(255,255,255,.8); background: linear-gradient(135deg, #024d52 0%, #006e75 55%, #0a3a3d 100%); color: var(--ink); }
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 900px; }
.sec__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec .title { color: var(--ink); margin-bottom: 18px; }
.sec .title__big { font-size: clamp(32px, 4vw, 62px); text-transform: none; letter-spacing: -.025em; line-height: 1.02; }
.sec .lead { color: var(--ink-muted); max-width: 60ch; margin: 0; }
.sec--light .eyebrow, .sec--white .eyebrow { color: var(--teal); }
.sec--dark .eyebrow, .sec--teal .eyebrow { color: var(--sand); }
.note { font-size: 13px; color: var(--ink-muted); margin: 22px 0 0; }
.sec .btn--ghost { color: var(--ink); }
.sec--dark .btn--primary, .sec--teal .btn--primary { background: var(--sand); color: var(--black); }
.btn--sand { background: var(--sand); color: var(--black); }
.btn--sand:hover { background: var(--sand-soft); transform: translateY(-2px); }

/* ---------- 5. Proces ---------- */
.steps-wrap { position: relative; }
.steps__path { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 110px; pointer-events: none; }
.steps__path path { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; padding: 110px 0 0; }
.step__n {
  position: absolute; top: 40px; left: 0; width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--black); color: var(--sand); font-family: var(--font-display); font-weight: 800; font-size: 24px;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%); box-shadow: 0 0 0 6px #f4f3ec;
}
.step:nth-child(2) .step__n { top: 10px; } .step:nth-child(3) .step__n { top: 46px; } .step:nth-child(4) .step__n { top: 14px; } .step:nth-child(5) .step__n { top: 34px; }
.step h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.step p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.step q { display: block; font-size: 13px; line-height: 1.5; color: var(--teal-dark); border-left: 3px solid var(--teal); padding-left: 10px; quotes: "„" "”"; }
.is-in .step:nth-child(1) { transition-delay: .1s } .is-in .step:nth-child(2) { transition-delay: .25s } .is-in .step:nth-child(3) { transition-delay: .4s } .is-in .step:nth-child(4) { transition-delay: .55s } .is-in .step:nth-child(5) { transition-delay: .7s }

/* ---------- 6. Realizacje: suwak przed/po ---------- */
.cases__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 36px; }
.case h3 { margin: 6px 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.case__tag { margin: 14px 0 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--teal); }
.case__num { margin: 0 0 8px; font-size: 15px; color: var(--ink-muted); }
.case__num strong { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.case__num em { font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: var(--sand-soft); color: var(--teal-dark); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.case__quote { margin: 0; font-size: 14px; color: var(--ink-muted); }

.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: #e8e7df; box-shadow: 0 20px 50px -30px rgba(0,0,0,.45); --cut: 50%; isolation: isolate; }
.ba > .shot, .ba__new { position: absolute; inset: 0; }
.ba__new { clip-path: inset(0 0 0 var(--cut)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; z-index: 3; }
.ba__handle::after { content: "◂ ▸"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 12px; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.ba__label { position: absolute; top: 12px; z-index: 3; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; }
.ba__label--old { left: 12px; } .ba__label--new { right: 12px; background: var(--teal); }

/* makiety poglądowe stron (CSS, bez obrazów) */
.shot { padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.shot i { display: block; border-radius: 4px; flex: none; }
.shot--old { background: #dcdad0; }
.shot--old .s-bar { height: 12px; background: #b9b7ab; border-radius: 6px 6px 0 0; }
.shot--old .s-head { height: 26px; background: #8c8a80; }
.shot--old .s-menu { height: 10px; background: repeating-linear-gradient(90deg, #6d6b63 0 30px, transparent 30px 40px); }
.shot--old .s-img { height: 74px; background: linear-gradient(135deg, #a5a397, #c7c5b9); }
.shot--old .s-line { height: 8px; background: #9a988e; width: 92%; } .shot--old .s-line--short { width: 60%; }
.shot--old .s-btn { height: 20px; width: 34%; background: #6d6b63; border-radius: 2px; }
.shot--new { background: #ffffff; }
.shot--new .s-bar { height: 12px; background: #0a0a0a; border-radius: 6px 6px 0 0; }
.shot--new .s-hero { height: 78px; background: linear-gradient(120deg, #006e75, #024d52 70%); border-radius: 8px; }
.shot--new .s-cta { height: 16px; width: 30%; background: #d1d0b6; border-radius: 999px; }
.shot--new .s-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shot--new .s-card { height: 44px; background: #f0efe6; border: 1px solid #e2e1d6; border-radius: 6px; }
.shot--new .s-line { height: 8px; background: #cfcfc6; width: 80%; } .shot--new .s-line--short { width: 45%; }

/* ---------- 7. Dowody ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 44px; }
.quote { margin: 0; padding: 26px 26px 22px; background: #141414; border: 1px solid rgba(255,255,255,.08); border-top: 3px solid var(--sand); display: grid; gap: 18px; }
.quote blockquote { position: relative; margin: 0; padding-left: 28px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.quote blockquote::before { content: "„"; position: absolute; left: 0; top: -14px; font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--sand); }
.quote figcaption { display: grid; gap: 2px; font-size: 13px; color: var(--ink-muted); }
.quote figcaption b { color: var(--ink); }
.quote figcaption i { font-style: normal; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); margin-top: 6px; }
.stats { list-style: none; margin: 0; padding: 28px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stats strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.02em; line-height: 1; color: var(--sand); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-muted); }
.logos { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.logos li { height: 64px; display: grid; place-items: center; border: 1px dashed rgba(255,255,255,.2); color: rgba(255,255,255,.4); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- 8. Zespół: karty obracane ---------- */
.team__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.member h3 { margin: 16px 0 2px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.member__role { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--teal); }
.member p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.flip { appearance: none; border: 0; padding: 0; background: none; display: block; width: 100%; aspect-ratio: 400 / 560; perspective: 1400px; cursor: pointer; border-radius: 16px; }
.flip:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.flip__face { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; backface-visibility: hidden; transform-style: preserve-3d; transition: transform .9s var(--ease-out); box-shadow: 0 24px 50px -30px rgba(0,0,0,.5); }
.flip { position: relative; }
.flip__face img { width: 100%; height: 100%; object-fit: cover; }
.flip__face--front { transform: rotateY(0deg); }
.flip__face--back { transform: rotateY(180deg); }
.flip.is-flipped .flip__face--front, .flip:hover .flip__face--front { transform: rotateY(-180deg); }
.flip.is-flipped .flip__face--back, .flip:hover .flip__face--back { transform: rotateY(0deg); }
.flip__face::after { content: attr(data-side); }
.is-in .member:nth-child(2) { transition-delay: .15s } .is-in .member:nth-child(3) { transition-delay: .3s }

/* ---------- 9. FAQ ---------- */
.faq__list { display: grid; gap: 10px; }
.faq__list details { background: #f4f3ec; border: 1px solid rgba(10,10,10,.08); border-radius: 12px; padding: 0 22px; }
.faq__list summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--black); color: var(--sand); font-weight: 700; transition: transform .3s; }
.faq__list details[open] summary::after { content: "–"; }
.faq__list p { margin: 0; padding: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--ink-muted); max-width: 70ch; }

/* ---------- 10. Kontakt ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact .title__big { font-size: clamp(30px, 3.4vw, 52px); }
.contact__details { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.contact__details li { display: grid; gap: 2px; font-size: 16px; }
.contact__details span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--sand); }
.contact__details a { color: var(--ink); font-weight: 600; }
.form { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.14); padding: clamp(20px, 3vw, 36px); display: grid; gap: 20px; backdrop-filter: blur(6px); }
.form label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.form input[type="text"], .form textarea {
  font: inherit; font-weight: 500; color: var(--ink); background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.22);
  padding: 13px 14px; border-radius: 10px; outline: none; transition: border-color .2s, background .2s;
}
.form input[type="text"]::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.45); }
.form input[type="text"]:focus, .form textarea:focus { border-color: var(--sand); background: rgba(255,255,255,.12); }
.form textarea { resize: vertical; min-height: 110px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips legend { font-size: 13px; font-weight: 700; letter-spacing: .04em; margin-bottom: 10px; }
.form__chips label { display: inline-block; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.3); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.form__chips input:checked + span { background: var(--sand); border-color: var(--sand); color: var(--black); }
.form__chips input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }
.form__foot { display: grid; gap: 12px; }
.form__legal { margin: 0; font-size: 12px; color: var(--ink-muted); }
.form__legal a { color: var(--sand); }
.form__done { margin: 0; padding: 14px 16px; background: var(--sand); color: var(--black); font-weight: 700; border-radius: 10px; }

/* ---------- Stopka ---------- */
.footer { background: #0a0a0a; color: rgba(255,255,255,.7); padding: 40px 0; }
.footer__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer .topbar__name { color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 500; }
.footer__nav a:hover { color: #fff; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 26px; padding-left: 0; }
  .steps__path { display: none; }
  .step { padding: 0 0 0 76px; min-height: 60px; }
  .step__n, .step:nth-child(n) .step__n { top: 0; left: 0; }
  .cases__grid, .quotes, .team__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .flip:hover .flip__face--front { transform: rotateY(0deg); } .flip:hover .flip__face--back { transform: rotateY(180deg); }
  .flip.is-flipped .flip__face--front { transform: rotateY(-180deg); } .flip.is-flipped .flip__face--back { transform: rotateY(0deg); }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .cases__grid { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .flip__face, .steps__path path { transition: none; }
}

/* tryb deweloperski (?sec=): stan końcowy bez animacji, do zrzutów ekranu */
.dev-static .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.dev-static .chip { animation: none !important; }
.dev-static .panel__art img { transform: none !important; transition: none !important; }

/* informacja o AI w stopce */
.footer__ai { flex-basis: 100%; margin: 4px 0 0; font-size: 12px; color: rgba(255,255,255,.5); }
/* pułapka na boty: pole niewidoczne dla ludzi */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* przycisk „Ustawienia cookies” w stopce wygląda jak link */
.footer__cookies { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer__cookies:hover { color: #fff; }
