/*
 * Sekcje strony głównej: informacje i newsy 50/50, manifest, usługi, pas kontaktu.
 * Tokeny z base.css (--lc-*). Kotwice przewijają się z uwzględnieniem sticky nagłówka.
 */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.lc-news,
.lc-statement,
.lc-svc,
.lc-strip {
  --lc-a2-rule: rgba(10, 15, 20, 0.16);
  scroll-margin-top: calc(var(--lc-header-h, 88px) + 8px);
}

.lc-news__half {
  scroll-margin-top: calc(var(--lc-header-h, 88px) + 24px);
}

.lc-a2-sr,
.lc-svc__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Informacje i Newsy branżowe (50/50) ---------- */
.lc-news {
  background: var(--lc-paper);
  color: var(--lc-ink);
  padding-block: clamp(72px, 10vw, 150px);
}

.lc-news__split {
  --lc-news-gap: clamp(48px, 7vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: var(--lc-news-gap);
}

/* Połowy dzielą wiersze (nagłówek, karty), więc karty obu stron startują i kończą się równo. */
.lc-news__half {
  position: relative;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  min-width: 0;
}

.lc-news__half + .lc-news__half::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--lc-news-gap) / -2);
  width: 1px;
  background: var(--lc-a2-rule);
}

.lc-news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: clamp(24px, 3vw, 40px);
}

.lc-news__title {
  margin: 0;
  color: var(--lc-ink);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lc-news__lead {
  max-width: 34rem;
  margin: 12px 0 0;
  color: var(--lc-mute);
  font-size: 1rem;
  line-height: 1.55;
}

.lc-news__all,
.lc-statement__link,
.lc-svc__link,
.lc-svc__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.lc-news__all {
  flex: none;
  color: var(--lc-volt-ink);
}

.lc-news__all svg,
.lc-statement__link svg,
.lc-svc__link svg,
.lc-svc__all svg,
.lc-news__more svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.2s ease;
}

.lc-news__all:hover svg,
.lc-statement__link:hover svg,
.lc-svc__link:hover svg,
.lc-svc__all:hover svg,
.lc-news__more:hover svg {
  transform: translateX(4px);
}

.lc-news__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--lc-gap);
  min-width: 0;
}

.lc-news__cell {
  display: flex;
  min-width: 0;
}

.lc-news__cell > * {
  flex: 1 1 auto;
  min-width: 0;
}

.lc-news__cell .lc-card {
  height: 100%;
}

.lc-news__cell .lc-card__body {
  flex: 1 1 auto;
}

.lc-news__fallback {
  padding: 16px 0;
  border-top: 1px solid var(--lc-a2-rule);
}

.lc-news__fallback h3 {
  margin: 8px 0;
  font-weight: 400;
}

.lc-news__more {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--lc-a2-rule);
  border-radius: var(--lc-radius);
  color: var(--lc-ink);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.lc-news__more:hover {
  border-color: var(--lc-volt-ink);
}

.lc-news__more-label {
  color: var(--lc-mute);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lc-news__more-text {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 300;
  line-height: 1.2;
}

.lc-news__more svg {
  color: var(--lc-volt-ink);
}

.lc-news__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  color: var(--lc-mute);
}

.lc-news__empty p {
  max-width: 28rem;
  margin: 0;
}

@media (max-width: 960px) {
  .lc-news__split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    row-gap: clamp(56px, 9vw, 88px);
  }

  .lc-news__half {
    display: block;
    grid-row: auto;
  }

  .lc-news__half + .lc-news__half::before {
    top: calc(clamp(56px, 9vw, 88px) / -2);
    bottom: auto;
    left: 0;
    width: 100%;
    height: 1px;
  }
}

/* Telefon: dwa zwijane bloki z tytułami (site.js), w środku kompaktowe karty (miniatura po lewej, tytuł i data po prawej) */
@media (max-width: 720px) {
  .lc-news {
    padding-block: 32px;
  }

  .lc-news__split {
    row-gap: 0;
  }

  .lc-news__half {
    border-top: 1px solid var(--lc-a2-rule);
  }

  .lc-news__half:last-child {
    border-bottom: 1px solid var(--lc-a2-rule);
  }

  .lc-news__half + .lc-news__half::before {
    display: none;
  }

  .lc-news__head {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0;
  }

  .lc-news__title {
    font-size: 1.5rem;
    letter-spacing: -0.015em;
  }

  .lc-news__title .lc-fold__btn {
    min-height: 60px;
  }

  html:not(.lc-js) .lc-news__title {
    padding-block: 16px 8px;
  }

  .lc-news__lead {
    margin: 0 0 8px;
    font-size: 1rem;
  }

  .lc-news__all {
    align-self: flex-start;
    min-height: 44px;
    margin-bottom: 4px;
  }

  /* Zwinięty blok: tylko tytuł (lead i link "Wszystkie" wracają po rozwinięciu) */
  .lc-js .lc-news__half:not(.is-open) .lc-news__lead,
  .lc-js .lc-news__half:not(.is-open) .lc-news__all {
    display: none;
  }

  .lc-news__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-bottom: 16px;
  }

  .lc-news__cell .lc-card {
    height: auto;
  }

  .lc-news__more {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 14px 16px;
  }

  .lc-news__more-label {
    display: none;
  }

  .lc-news__more-text {
    font-size: 1.0625rem;
  }
}

/* ---------- Manifest ---------- */
.lc-statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background: var(--lc-night);
  color: var(--lc-paper);
  padding-block: clamp(88px, 13vw, 210px);
}

/* Gwiazdy: trzy warstwy punktów o różnych okresach powtarzania, bardzo słabe (bez obrazków). */
.lc-statement__stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 8% 14%, rgba(242, 244, 243, 0.55), transparent 100%),
    radial-gradient(1px 1px at 27% 61%, rgba(242, 244, 243, 0.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 46% 27%, rgba(242, 244, 243, 0.5), transparent 100%),
    radial-gradient(1px 1px at 63% 83%, rgba(242, 244, 243, 0.35), transparent 100%),
    radial-gradient(1px 1px at 81% 39%, rgba(242, 244, 243, 0.5), transparent 100%),
    radial-gradient(1px 1px at 92% 72%, rgba(242, 244, 243, 0.4), transparent 100%),
    radial-gradient(1px 1px at 16% 90%, rgba(242, 244, 243, 0.3), transparent 100%),
    radial-gradient(1px 1px at 14% 43%, rgba(242, 244, 243, 0.3), transparent 100%),
    radial-gradient(1px 1px at 38% 8%, rgba(242, 244, 243, 0.35), transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 58%, rgba(242, 244, 243, 0.4), transparent 100%),
    radial-gradient(1px 1px at 74% 21%, rgba(242, 244, 243, 0.3), transparent 100%),
    radial-gradient(1px 1px at 88% 92%, rgba(242, 244, 243, 0.35), transparent 100%),
    radial-gradient(1.5px 1.5px at 33% 35%, rgba(55, 230, 200, 0.5), transparent 100%),
    radial-gradient(1px 1px at 71% 66%, rgba(55, 230, 200, 0.4), transparent 100%),
    radial-gradient(1px 1px at 5% 78%, rgba(55, 230, 200, 0.3), transparent 100%);
  background-size:
    620px 620px, 620px 620px, 620px 620px, 620px 620px, 620px 620px, 620px 620px, 620px 620px,
    410px 410px, 410px 410px, 410px 410px, 410px 410px, 410px 410px,
    930px 930px, 930px 930px, 930px 930px;
}

.lc-statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "col fig";
  column-gap: clamp(32px, 6vw, 112px);
  align-items: start;
}

.lc-statement__col {
  grid-area: col;
}

.lc-statement--text .lc-statement__grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "col";
  max-width: 68rem;
}

.lc-statement__head {
  min-width: 0;
}

.lc-statement__head .lc-eyebrow {
  margin: 0 0 clamp(20px, 2.4vw, 32px);
  color: var(--lc-volt);
}

.lc-statement__title {
  margin: 0;
  color: var(--lc-paper);
  font-size: clamp(2.375rem, 6.4vw, 5.75rem);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.lc-statement__text {
  max-width: 40rem;
  margin-top: clamp(32px, 4.4vw, 64px);
}

.lc-statement__body p {
  margin: 0 0 1.25em;
  color: rgba(242, 244, 243, 0.78);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.lc-statement__body > p:first-child {
  color: rgba(242, 244, 243, 0.92);
  font-size: clamp(1.1875rem, 1.9vw, 1.5rem);
  font-weight: 300;
  line-height: 1.55;
}

.lc-statement__body > :last-child,
.lc-statement__body .lc-fold__in > :last-child {
  margin-bottom: 0;
}

.lc-statement__link {
  margin-top: clamp(24px, 3vw, 40px);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--lc-volt);
  color: var(--lc-volt);
}

.lc-statement__fig {
  grid-area: fig;
  margin: 0;
  overflow: hidden;
  border-radius: var(--lc-radius);
  background: var(--lc-deep);
  align-self: stretch;
  min-height: 0;
}

.lc-statement__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/*
 * Zasada UX (dwie kolumny na komputerze): krótszy element jedzie za dłuższym (sticky), niezależnie od strony. Obie kolumny są sticky:
 * dłuższa wyznacza wysokość sekcji i nie ma gdzie jechać, więc jedzie krótsza (tekst albo obraz manifestu).
 * Sekcja używa overflow: clip (nie hidden), żeby nie tworzyć kontenera przewijania, który psuje sticky.
 */
@media (min-width: 960px) {
  .lc-statement__col,
  .lc-statement__fig {
    position: sticky;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--lc-bar-h-s, 64px) + 28px);
    align-self: start;
  }
}

@media (max-width: 960px) {
  .lc-statement__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "fig"
      "col";
    grid-template-rows: none;
  }

  .lc-statement__fig {
    margin-bottom: clamp(32px, 6vw, 56px);
  }

  /* Na małym ekranie obraz najpierw, kadrowany lekko (szerszy, bez pełnej wysokości). */
  .lc-statement__img {
    aspect-ratio: 4 / 3;
    object-position: 50% 62%;
  }

  .lc-statement__text {
    max-width: 38rem;
  }
}

/* Telefon: niski kadr obrazu (16:9), nagłówek i pierwszy akapit, reszta pod "Czytaj dalej" */
@media (max-width: 720px) {
  .lc-statement {
    padding-block: 40px 48px;
  }

  .lc-statement__fig {
    margin-bottom: 24px;
  }

  .lc-statement__img {
    aspect-ratio: 16 / 9;
    object-position: 50% 58%;
  }

  .lc-statement__head .lc-eyebrow {
    margin-bottom: 14px;
  }

  .lc-statement__title {
    font-size: clamp(1.875rem, 8.6vw, 2.375rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .lc-statement__text {
    margin-top: 20px;
  }

  .lc-statement__body p {
    margin-bottom: 1em;
    font-size: 1rem;
    line-height: 1.65;
  }

  .lc-statement__body > p:first-child {
    font-size: 1.125rem;
    line-height: 1.55;
  }

  .lc-js .lc-statement__text.lc-fold .lc-statement__body > p:first-child {
    margin-bottom: 0;
  }

  .lc-js .lc-statement__text.lc-fold .lc-fold__in > :first-child {
    margin-top: 16px;
  }

  .lc-statement .lc-fold__more {
    color: var(--lc-paper);
  }

  .lc-statement__link {
    min-height: 44px;
    margin-top: 12px;
    padding-bottom: 6px;
  }
}

/* ---------- Usługi: numerowany rejestr ---------- */
.lc-svc {
  background: var(--lc-paper);
  color: var(--lc-ink);
  padding-block: clamp(72px, 10vw, 150px);
}

.lc-svc__head {
  max-width: 44rem;
}

.lc-svc__head .lc-sechead {
  margin-bottom: 0;
}

.lc-svc__head .lc-sechead__title {
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.lc-svc__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 7vw, 112px);
  margin: clamp(40px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--lc-a2-rule);
}

.lc-svc__item {
  display: grid;
  grid-template-columns: 2.75rem 2rem minmax(0, 1fr);
  column-gap: clamp(12px, 1.6vw, 24px);
  align-items: start;
  padding-block: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--lc-a2-rule);
}

.lc-svc__item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.lc-svc__num {
  color: var(--lc-volt-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  line-height: 2.1;
}

.lc-svc__icon {
  display: block;
  color: var(--lc-ink);
  line-height: 0;
  padding-top: 4px;
}

.lc-svc__icon svg {
  width: 28px;
  height: 28px;
}

.lc-svc__body {
  min-width: 0;
}

.lc-svc__name {
  margin: 0;
  color: var(--lc-ink);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lc-svc__blurb {
  margin: 10px 0 0;
  color: var(--lc-mute);
  font-size: 1rem;
  line-height: 1.6;
}

.lc-svc__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin: 18px 0 0;
}

.lc-svc__price {
  font-size: 0.9375rem;
  font-weight: 500;
}

.lc-svc__link,
.lc-svc__all {
  color: var(--lc-volt-ink);
}

.lc-svc__foot {
  margin: clamp(28px, 4vw, 48px) 0 0;
}

@media (max-width: 960px) {
  .lc-svc__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Telefon: rejestr zwinięty do wierszy "numer, ikona, tytuł, plus" (site.js); dotknięcie wiersza rozwija opis, cenę i link */
@media (max-width: 720px) {
  .lc-svc {
    padding-block: 40px 44px;
  }

  .lc-svc__head .lc-sechead__title {
    font-size: clamp(1.75rem, 7.6vw, 2rem);
  }

  .lc-svc__list {
    margin-top: 20px;
  }

  .lc-svc__item {
    position: relative;
    grid-template-columns: 1.75rem 24px minmax(0, 1fr);
    column-gap: 12px;
    padding-block: 0;
  }

  .lc-svc__num,
  .lc-svc__icon {
    display: flex;
    align-items: center;
    align-self: start;
    min-height: 56px;
    padding-top: 0;
    line-height: 1;
  }

  .lc-svc__icon svg {
    width: 24px;
    height: 24px;
  }

  .lc-svc__name {
    font-size: 1.1875rem;
  }

  .lc-svc__name .lc-fold__btn {
    min-height: 56px;
    padding-block: 8px;
  }

  html:not(.lc-js) .lc-svc__name {
    padding-block: 14px 6px;
  }

  /* Cały wiersz nagłówka jest celem dotyku (numer i ikona są ozdobne), a link w panelu zostaje osobnym celem */
  .lc-svc__name .lc-fold__btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
  }

  .lc-svc__blurb {
    margin: 0;
    line-height: 1.55;
  }

  .lc-svc__meta {
    gap: 0 20px;
    margin: 8px 0 8px;
  }

  .lc-svc__link,
  .lc-svc__all {
    min-height: 44px;
  }

  .lc-svc__foot {
    margin-top: 12px;
  }
}

/* ---------- Pas kontaktu ---------- */
.lc-strip {
  background: var(--lc-volt);
  color: var(--lc-ink);
  padding-block: clamp(40px, 6vw, 80px);
}

.lc-strip__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px clamp(24px, 5vw, 72px);
}

.lc-strip__title {
  max-width: 24ch;
  margin: 0;
  color: var(--lc-ink);
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lc-strip__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px clamp(20px, 3vw, 40px);
}

.lc-strip__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lc-strip__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lc-ink);
  font-weight: 500;
  text-decoration: none;
}

.lc-strip__contact a:hover span {
  text-decoration: underline;
}

.lc-strip__contact svg {
  width: 20px;
  height: 20px;
}

.lc-strip .lc-strip__btn {
  border-color: var(--lc-ink);
  background: var(--lc-ink);
  color: var(--lc-paper);
}

.lc-strip .lc-strip__btn:hover {
  background: var(--lc-night);
  color: var(--lc-volt);
}

@media (max-width: 720px) {
  .lc-strip {
    padding-block: 32px;
  }

  .lc-strip__in {
    gap: 16px;
  }

  .lc-strip__title {
    font-size: 1.5rem;
  }

  .lc-strip__actions {
    gap: 8px;
  }

  .lc-strip__contact {
    flex-direction: column;
    gap: 0;
  }

  .lc-strip__contact a {
    min-height: 44px;
  }

  .lc-strip__in,
  .lc-strip__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lc-strip__actions .lc-btn {
    justify-content: center;
    text-align: center;
  }
}
