@charset "UTF-8";
/* ==========================================================================
   Blok: Hero
   Grafit, rozsypane znaki dokumentów w tle, łuk (kształt klienta) na zdjęcie lub dokument,
   pomarańczowy pas z zaletami zachodzący na dolną krawędź.
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: clamp(2rem, 4vw, 3.5rem);
  /* miejsce na zachodzący pas z zaletami */
  padding-bottom: calc(clamp(2.5rem, 5vw, 4rem) + 3.5rem);
  background:
    radial-gradient(58% 70% at 80% 42%, oklch(74.9% 0.169 54 / 0.20), transparent 70%),
    radial-gradient(42% 50% at 6% 96%, oklch(51% 0.151 273 / 0.26), transparent 70%),
    var(--sec-bg, var(--dark));
}

/* --- Tło: rozsypane znaki dokumentów (apostille) --------------------------- */
.hero__marks {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  color: var(--on-dark);
  /* Wygasa ku dołowi i przygasa za tekstem po lewej, żeby nie mieszało się z nagłówkiem. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 52%, transparent 100%), linear-gradient(90deg, rgb(0 0 0 / 0.22) 0, #000 62%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, #000 0, #000 52%, transparent 100%), linear-gradient(90deg, rgb(0 0 0 / 0.22) 0, #000 62%);
          mask-composite: intersect;
}
.hero__defs { position: absolute; }
.hero__marks > svg:not(.hero__defs) {
  position: absolute;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(var(--r, 0deg));
}

/* --- Układ ---------------------------------------------------------------- */
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: clamp(26rem, calc(100svh - var(--header-h) - var(--admin-bar, 0px) - 13rem), 42rem);
}
.hero__content { max-width: 42rem; min-width: 0; }

.hero__title {
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0 0 var(--space-5);
  text-wrap: balance;
}
.hero__lead {
  max-width: 34rem;
  margin-bottom: var(--space-6);
}
.hero__lead p:last-child { margin-bottom: 0; }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__note {
  max-width: 34rem;
  margin: var(--space-5) 0 0;
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
}

.hero__title,
.hero__lead,
.hero__actions,
.hero__note,
.hero__visual {
  animation: rise 0.8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 110ms);
}

/* --- Łuk ------------------------------------------------------------------ */
.hero__visual {
  --w: clamp(15rem, 31vw, 27rem);
  position: relative;
  width: var(--w);
  justify-self: center;
  aspect-ratio: 4 / 5;
  container-type: inline-size;   /* rozmiary wnętrza liczymy w cqw: skala z łukiem */
}
.hero__arch {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* --- Dokument w łuku (gdy nie ma zdjęcia) --------------------------------- */
.hero__scene { position: absolute; inset: 0; }

.doc {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 3.2cqw;
  padding: 6cqw;
  border-radius: 6cqw;
}
.doc i {
  display: block;
  height: 2.4cqw;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.18;
}
.doc i:nth-of-type(2) { width: 84%; }
.doc i:nth-of-type(3) { width: 92%; }
.doc i:nth-of-type(4) { width: 68%; }
.doc i:nth-of-type(5) { width: 78%; }

.doc--front {
  width: 74cqw;
  left: -9cqw;
  bottom: 9cqw;
  background: #fff;
  color: var(--dark);
  transform: rotate(-6deg);
  box-shadow: var(--shadow-lg);
}
.doc__head {
  display: flex;
  align-items: center;
  gap: 3cqw;
  margin-bottom: 1.6cqw;
}
.doc__seal {
  flex: none;
  width: 12cqw;
  height: 12cqw;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doc__title { flex: 1; display: grid; gap: 1.8cqw; }
.doc__title span { display: block; height: 2.8cqw; border-radius: 99px; background: currentColor; opacity: 0.82; }
.doc__title span + span { width: 60%; height: 1.8cqw; opacity: 0.22; }

/* Podpis i odbita pieczątka na dole dokumentu (tusz w niebieskim gwiazdki marki). */
.doc__sign {
  align-self: flex-start;
  width: 34cqw;
  height: auto;
  margin-top: 1cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}
.doc__stamp {
  position: absolute;
  right: 4cqw;
  bottom: 3cqw;
  width: 27cqw;
  height: 27cqw;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.88;
  mix-blend-mode: multiply;
  transform: rotate(-14deg);
}
.doc__stamp circle:nth-child(2) { stroke-width: 1.4; stroke-dasharray: 1.6 3.4; }
.doc__stamp circle:nth-child(3) { stroke-width: 1; }
.doc__stamp path { stroke-width: 5; }

.doc--back {
  width: 56cqw;
  height: 46cqw;
  right: -10cqw;
  top: 15cqw;
  background: var(--dark-3);
  color: var(--orange);
  transform: rotate(7deg);
}
.doc--back i { opacity: 0.55; }

/* --- Kształty marki wokół łuku -------------------------------------------- */
.hero__star { width: 12cqw; height: 12cqw; left: 12cqw; bottom: -4cqw; color: var(--blue); --rot: 0deg; }
.hero__stamp {
  width: 25cqw;
  height: 25cqw;
  right: -5cqw;
  bottom: 12cqw;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 0 0 1.8cqw var(--dark);
  transform: rotate(-12deg);
}
.hero__stamp .icon { width: 46%; height: 46%; }

/* --- Pas z zaletami ------------------------------------------------------- */
.hero-strip {
  position: relative;
  z-index: 3;
  margin-top: -3.5rem;
}
.hero-strip__list {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: var(--space-5) var(--space-6);
  margin: 0;
  padding: clamp(1.25rem, 2.6vw, 2rem) clamp(1.5rem, 4vw, 3.5rem);
  list-style: none;
  background: var(--orange);
  color: var(--dark);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.hero-strip__list li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
}
.hero-strip__list li + li {
  padding-left: var(--space-6);
  border-left: 1px solid oklch(21% 0.010 55 / 0.22);
}
.hero-strip__list .icon { width: 2.4rem; height: 2.4rem; flex: none; stroke-width: 1.6; }

/* --- Węższe ekrany -------------------------------------------------------- */
@media (max-width: 900px) {
  /* Na wąskim ekranie tekst zajmuje całą szerokość, więc znaki w tle ledwie muskają. */
  .hero__marks { opacity: 0.5; }
  .hero__marks > svg:nth-child(3n) { display: none; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: var(--space-7);
  }
  .hero__content { max-width: 36rem; }
  .hero__visual { --w: min(76vw, 21rem); justify-self: start; margin-left: 1.5rem; }
  .hero-strip__list { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: var(--space-3); }
  .hero-strip__list li { padding-block: var(--space-4); }
  .hero-strip__list li + li {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid oklch(21% 0.010 55 / 0.22);
  }
}
@media (max-width: 520px) {
  .hero__actions .btn { flex: 1 1 100%; }
}
