/* ==========================================================================
   Blok „Karta CTA” (.cta): granatowa karta z siatką, tekst po lewej, zdjęcie po prawej
   rozpływa się w granacie.
   Źródło (prototyp): assets/css/style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   CTA (version B, 2026-10-30): the navy ground with its mesh, copy on the left and a
   photograph on the right that dissolves into the navy, with no frame around it
   -------------------------------------------------------------------------- */

.cta { padding: clamp(1rem, 3vw, 2rem) 0 clamp(4rem, 8vw, 7.5rem); }
.cta__card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center;
  min-height: clamp(380px, 34vw, 460px);
  border-radius: var(--radius-xl);
  color: #fff;
  background: url("../../assets/img/siatka-granat.svg") center / cover no-repeat, var(--navy-ground);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 6px rgba(22, 42, 67, .1), 0 36px 70px -34px rgba(22, 42, 67, .7);
}
/* the card's own mesh layer is version A's; in B the mesh comes with the navy ground */
.cta__bg { display: none; }
.cta__text { position: relative; z-index: 1; min-width: 0; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4.5vw, 3.75rem); }
/* 4.11.2026, user: „w każdym CTA ta h2 jest za duża” – 40 px at 1440 instead of 56 */
.cta h2 {
  font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.08; margin: 0 0 .8rem;
  color: #fff; letter-spacing: -.03em; text-wrap: balance;
}
.cta h2 strong { font-weight: 700; color: var(--orange-400); }
.cta p { margin: 0 0 1.85rem; color: #c9d4e2; max-width: 50ch; font-size: 1.0625rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
/* on navy the two actions are the orange pill and a light outline */
.cta .btn--navy {
  color: #fff; font-weight: 600; text-shadow: 0 1px 1px rgba(150, 52, 8, .35);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 41%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 59%) no-repeat,
    linear-gradient(180deg, #fa8746 0%, #f2711f 52%, #e35e16 100%);
  background-size: 250% 100%, 100% 100%; background-position: 110% 0, 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 28px -14px rgba(236, 110, 40, .9);
}
.cta .btn--navy:hover {
  color: #fff; background-position: -10% 0, 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 18px 32px -14px rgba(236, 110, 40, 1);
}
.cta .btn--ghost-navy { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .38); }
.cta .btn--ghost-navy:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
/* the photograph fills the right of the card to its edges and fades out towards the copy */
.cta__photo {
  position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 56%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .45) 24%, #000 60%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .45) 24%, #000 60%);
}
.cta__photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 35%;
  transition: transform 1.6s var(--ease);
}
html:not(.no-js) .cta__card:not(.is-inview) .cta__photo img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .cta__photo img { transition: none; }
  html:not(.no-js) .cta__card:not(.is-inview) .cta__photo img { transform: none; }
}

/* computers and laptops (Windows scaling puts many of them at 1024–1100 px): the two actions stand side
   by side – a wider copy column, a narrower photograph and the buttons one step smaller than --lg */
@media (min-width: 901px) {
  .cta__card { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); min-height: clamp(320px, 28vw, 400px); }
  .cta__photo { width: 48%; }
  .cta__actions .btn--lg { font-size: .9375rem; padding: 1em 1.45em; white-space: nowrap; }
}

@media (max-width: 900px) {
  /* the photograph tops the card and dissolves downwards into the copy */
  .cta__card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .cta__photo {
    position: relative; order: -1; width: auto; height: clamp(220px, 46vw, 340px); margin-bottom: -2.5rem;
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  }
  .cta__text { padding: 0 clamp(1.25rem, 5vw, 2.25rem) clamp(1.75rem, 6vw, 2.5rem); }
}

@media (max-width: 560px) {
  .cta__actions .btn { flex: 1 1 100%; justify-content: center; }
}
