/* Shared hero system for Blog, Prowadzone sprawy and Kontakt. */
.lex-editorial-hero,
.lex-editorial-hero * {
  box-sizing: border-box;
}

.lex-editorial-hero {
  --lex-editorial-ink: #f8f6f0;
  --lex-editorial-muted: rgba(255, 255, 255, 0.76);
  --lex-editorial-gold: #d4b56d;
  background:
    radial-gradient(circle at 82% 22%, rgba(212, 181, 109, 0.15), transparent 30rem),
    linear-gradient(132deg, #081017 0%, #111d27 60%, #19242d 100%);
  color: var(--lex-editorial-ink);
  isolation: isolate;
  min-height: clamp(500px, 52vw, 680px);
  overflow: hidden;
  position: relative;
}

.lex-editorial-hero::before,
.lex-editorial-hero::after {
  border: 1px solid rgba(212, 181, 109, 0.18);
  content: "";
  pointer-events: none;
  position: absolute;
  transform: rotate(18deg);
}

.lex-editorial-hero::before {
  height: 33rem;
  right: -13rem;
  top: -19rem;
  width: 33rem;
}

.lex-editorial-hero::after {
  bottom: -16rem;
  height: 28rem;
  left: -14rem;
  width: 28rem;
}

.lex-editorial-hero__container {
  margin-inline: auto;
  max-width: 1200px;
  padding-inline: clamp(1.2rem, 4vw, 3rem);
  width: 100%;
}

.lex-editorial-hero__layout {
  align-items: center;
  display: grid;
  gap: clamp(2.2rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  min-height: inherit;
  padding-block: clamp(4.6rem, 8vw, 7rem);
  position: relative;
  z-index: 1;
}

.lex-editorial-hero__copy {
  max-width: 710px;
  min-width: 0;
}

.lex-editorial-hero__breadcrumbs {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0 0 clamp(1.6rem, 4vw, 3rem);
}

.lex-editorial-hero__breadcrumbs a {
  color: #f2d991;
  text-decoration: none;
}

.lex-editorial-hero__breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.lex-editorial-hero__eyebrow {
  color: var(--lex-editorial-gold);
  display: inline-block;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 0 0 1rem;
  text-decoration: none;
  text-transform: uppercase;
}

a.lex-editorial-hero__eyebrow:hover {
  color: #fff;
}

.lex-editorial-hero h1,
.lex-editorial-hero__title {
  color: #fff;
  font-size: clamp(2.05rem, 4.1vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.043em;
  line-height: 1.045;
  margin: 0;
  max-width: 760px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.lex-editorial-hero--article h1,
.lex-editorial-hero--article .lex-editorial-hero__title {
  font-size: clamp(1.9rem, 3.35vw, 3rem);
  line-height: 1.08;
}

.lex-editorial-hero__lead {
  color: var(--lex-editorial-muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.72;
  margin: 1.35rem 0 0;
  max-width: 680px;
}

.lex-editorial-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.lex-editorial-button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  justify-content: center;
  min-height: 49px;
  padding: 0.78rem 1.2rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.lex-editorial-button--gold {
  background: var(--lex-editorial-gold);
  border-color: var(--lex-editorial-gold);
  color: #10171d;
}

.lex-editorial-button--ghost {
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
}

.lex-editorial-button:hover {
  background: #fff;
  border-color: #fff;
  color: #10171d;
  transform: translateY(-2px);
}

.lex-editorial-hero__meta {
  align-items: center;
  color: rgba(255, 255, 255, 0.64);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  gap: 0.45rem;
  margin-top: 1.45rem;
}

.lex-editorial-hero__visual {
  align-self: center;
  background: #1d2932;
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.34);
  margin: 0;
  min-height: 360px;
  overflow: visible;
  position: relative;
}

.lex-editorial-hero__visual::before {
  border-left: 2px solid var(--lex-editorial-gold);
  border-top: 2px solid var(--lex-editorial-gold);
  content: "";
  height: 58px;
  left: 14px;
  position: absolute;
  top: 14px;
  width: 58px;
  z-index: 2;
}

.lex-editorial-hero__visual picture {
  display: block;
  height: 100%;
}

.lex-editorial-hero__visual img {
  display: block;
  height: clamp(360px, 34vw, 470px);
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.lex-editorial-hero--index .lex-editorial-hero__visual img,
.lex-editorial-hero--contact .lex-editorial-hero__visual img {
  object-position: 64% center;
}

.lex-editorial-hero--cases .lex-editorial-hero__visual img {
  object-position: 70% center;
}

.lex-editorial-hero__visual figcaption {
  background: rgba(7, 13, 18, 0.94);
  bottom: -1px;
  display: flex;
  flex-direction: column;
  left: 0;
  padding: 0.95rem 1.2rem;
  position: absolute;
  right: 0;
  z-index: 2;
}

.lex-editorial-hero__visual figcaption span {
  color: var(--lex-editorial-gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lex-editorial-hero__visual figcaption strong {
  color: #fff;
  font-size: 0.96rem;
  margin-top: 0.14rem;
}

.lex-editorial-hero a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .lex-editorial-hero__layout {
    gap: 2.25rem;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  }
}

@media (max-width: 760px) {
  .lex-editorial-hero {
    min-height: 0;
  }

  .lex-editorial-hero__layout {
    grid-template-columns: 1fr;
    padding-block: 3.75rem 3rem;
  }

  .lex-editorial-hero__breadcrumbs {
    margin-bottom: 1.8rem;
  }

  .lex-editorial-hero__visual {
    min-height: 0;
    width: 100%;
  }

  .lex-editorial-hero__visual img {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 240px;
  }
}

@media (max-width: 520px) {
  .lex-editorial-hero__actions,
  .lex-editorial-button {
    width: 100%;
  }

  .lex-editorial-hero__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .lex-editorial-hero__meta > span[aria-hidden="true"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lex-editorial-button {
    transition: none;
  }
}

