/* =====================================================================
   enobo.pl - strona Realizacje (/realizacje/) i archiwa tematów
   Wersja 1, 21.10.2026 - na podstawie makiety "Realizacje enobo - propozycja"

   Klasy z prefiksem enb-rz-. Selektory zaczynają się od .enb-rz, żeby
   wygrywały z regułami motywu (h1-h6, a:hover, a:focus, Bootstrap dl/dd).
   Krój Poppins ładuje motyw. Skala: 46 / 34 / 32 / 26 / 22 / 18 / 15 / 14 / 13 / 12 px.
   ===================================================================== */

.enb-rz {
  --enb-rz-navy: #07112d;
  --enb-rz-ink: #07112d;
  --enb-rz-text: #3d4260;
  --enb-rz-muted: #5b6078;
  --enb-rz-violet: #563bd1;
  --enb-rz-violet-h: #6a4fe6;
  --enb-rz-violet-d: #3f27b0;
  --enb-rz-lilac: #b9a6ff;
  --enb-rz-tint: #f1eefe;
  --enb-rz-line: #e8e9f1;
  --enb-rz-alt: #f6f7fb;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--enb-rz-ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
.enb-rz *,
.enb-rz *::before,
.enb-rz *::after {
  box-sizing: border-box;
}
.enb-rz h1,
.enb-rz h2,
.enb-rz h3,
.enb-rz p,
.enb-rz ul,
.enb-rz li,
.enb-rz dl,
.enb-rz dt,
.enb-rz dd {
  margin: 0;
  padding: 0;
}
.enb-rz ul {
  list-style: none;
}
.enb-rz li::before {
  content: none;
}
.enb-rz a {
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.enb-rz a:focus-visible {
  outline: 2px solid var(--enb-rz-violet);
  outline-offset: 2px;
  transition: none;
}
.enb-rz .enb-rz-hero a:focus-visible,
.enb-rz .enb-rz-cta-box a:focus-visible {
  outline-color: var(--enb-rz-lilac);
}
.enb-rz .enb-rz-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.enb-rz .enb-rz-wrap {
  max-width: 1224px; /* 1176 px treści - krawędź jak w nagłówku strony */
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------------
   1. Nagłówek strony (zastępuje section.breadcrumb_area.case_study)
   Odstęp górny liczony od nagłówka motywu: 156 px od 1024 px w górę,
   76 px poniżej. Nowy nagłówek przesuwa treść o różnicę, więc tekst
   zaczyna się 72 px (40 px na telefonie) pod jego dolną krawędzią.
   --------------------------------------------------------------------- */
.enb-rz .enb-rz-hero {
  padding: 228px 0 64px;
  background:
    radial-gradient(circle at 86% 18%, rgba(108, 82, 231, 0.42), rgba(0, 0, 0, 0) 42%),
    radial-gradient(circle at 8% 92%, rgba(108, 82, 231, 0.16), rgba(0, 0, 0, 0) 40%),
    var(--enb-rz-navy);
  color: #ffffff;
}
.enb-rz .enb-rz-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--enb-rz-lilac);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.enb-rz .enb-rz-eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--enb-rz-lilac);
}
.enb-rz .enb-rz-title {
  max-width: 820px;
  margin-top: 20px;
  color: #ffffff;
  font-family: inherit;
  font-size: 46px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}
.enb-rz .enb-rz-lead {
  max-width: 700px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.6;
}
.enb-rz .enb-rz-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.enb-rz .enb-rz-stats li {
  display: flex;
}
.enb-rz .enb-rz-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  text-decoration: none;
}
.enb-rz .enb-rz-stat:hover {
  border-color: rgba(185, 166, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}
.enb-rz .enb-rz-stat-v {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
}
.enb-rz .enb-rz-stat-l {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.45;
}
.enb-rz .enb-rz-stat-c {
  margin-top: auto;
  padding-top: 8px;
  color: var(--enb-rz-lilac);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}
.enb-rz .enb-rz-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.enb-rz .enb-rz-hero--term .enb-rz-topics {
  margin-top: 36px;
}
.enb-rz .enb-rz-topic {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.enb-rz .enb-rz-topic span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}
.enb-rz .enb-rz-topic:hover {
  border-color: #ffffff;
  color: #ffffff;
}
.enb-rz .enb-rz-topic[aria-current="page"] {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--enb-rz-navy);
}
.enb-rz .enb-rz-topic[aria-current="page"] span {
  color: var(--enb-rz-muted);
}

/* ---------------------------------------------------------------------
   2. Sekcje
   --------------------------------------------------------------------- */
.enb-rz .enb-rz-sec {
  padding: 80px 0;
  background: #ffffff;
}
.enb-rz .enb-rz-sec--alt {
  background: var(--enb-rz-alt);
}
.enb-rz .enb-rz-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 32px;
}
.enb-rz .enb-rz-h2 {
  color: var(--enb-rz-ink);
  font-family: inherit;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}
.enb-rz .enb-rz-sec-sub {
  color: var(--enb-rz-muted);
  font-size: 15px;
  line-height: 1.5;
}
.enb-rz .enb-rz-empty {
  color: var(--enb-rz-text);
  font-size: 16px;
  line-height: 1.6;
}
.enb-rz .enb-rz-empty a {
  color: var(--enb-rz-violet);
  font-weight: 600;
  text-decoration: none;
}

/* ---------------------------------------------------------------------
   3. Karty z wynikami
   --------------------------------------------------------------------- */
.enb-rz .enb-rz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.enb-rz .enb-rz-tags li,
.enb-rz .enb-rz-tags > span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--enb-rz-tint);
  color: var(--enb-rz-violet-d);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}
.enb-rz .enb-rz-client {
  color: var(--enb-rz-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}
.enb-rz .enb-rz-client strong {
  color: var(--enb-rz-ink);
  font-weight: 600;
}
.enb-rz .enb-rz-card-title {
  font-family: inherit;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}
.enb-rz .enb-rz-card-title a {
  color: var(--enb-rz-ink);
  text-decoration: none;
}
.enb-rz .enb-rz-card-title a:hover {
  color: var(--enb-rz-violet);
}
.enb-rz .enb-rz-metrics {
  display: grid;
  border-top: 1px solid var(--enb-rz-line);
}
.enb-rz .enb-rz-metric {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--enb-rz-line);
}
.enb-rz .enb-rz-metric dt {
  color: var(--enb-rz-violet);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
.enb-rz .enb-rz-metric dd {
  color: var(--enb-rz-text);
  font-size: 14px;
  line-height: 1.45;
}
.enb-rz .enb-rz-meta {
  color: var(--enb-rz-muted);
  font-size: 13px;
  line-height: 1.5;
}
.enb-rz .enb-rz-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 44px;
  color: var(--enb-rz-violet);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.enb-rz .enb-rz-more:hover {
  color: var(--enb-rz-violet-d);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.enb-rz .enb-rz-card-media {
  display: block;
  line-height: 0;
}
.enb-rz .enb-rz-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: var(--enb-rz-line);
}
.enb-rz .enb-rz-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--enb-rz-muted);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}
.enb-rz .enb-rz-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.enb-rz .enb-rz-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--enb-rz-line);
  border-radius: 20px;
  background: #ffffff;
}
.enb-rz .enb-rz-feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 40px;
  padding: 28px;
}
.enb-rz .enb-rz-feature + .enb-rz-feature,
.enb-rz .enb-rz-pair + .enb-rz-feature,
.enb-rz .enb-rz-pair,
.enb-rz .enb-rz-pair + .enb-rz-pair {
  margin-top: 32px;
}
.enb-rz .enb-rz-sec-head + .enb-rz-pair {
  margin-top: 0;
}
.enb-rz .enb-rz-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

/* ---------------------------------------------------------------------
   4. Wcześniejsze projekty (cały wiersz jest linkiem)
   --------------------------------------------------------------------- */
.enb-rz .enb-rz-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.enb-rz .enb-rz-row {
  display: grid;
  grid-template-columns: 120px 64px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.5fr) 24px;
  align-items: center;
  gap: 24px;
  padding: 16px 24px 16px 16px;
  border: 1px solid var(--enb-rz-line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--enb-rz-ink);
  text-decoration: none;
}
.enb-rz .enb-rz-row:hover {
  border-color: #cfc7f7;
  box-shadow: 0 8px 24px rgba(7, 17, 45, 0.06);
  color: var(--enb-rz-ink);
}
.enb-rz .enb-rz-row-img {
  display: block;
  width: 120px;
  height: 80px;
  max-width: none;
  object-fit: cover;
  border-radius: 10px;
  background: var(--enb-rz-line);
}
.enb-rz .enb-rz-row-year {
  color: var(--enb-rz-muted);
  font-size: 14px;
  font-weight: 600;
}
.enb-rz .enb-rz-row-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.enb-rz .enb-rz-row-name strong {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
}
.enb-rz .enb-rz-row-name span {
  color: var(--enb-rz-muted);
  font-size: 13px;
  line-height: 1.4;
}
.enb-rz .enb-rz-row-res {
  color: var(--enb-rz-ink);
  font-size: 15px;
  line-height: 1.45;
}
.enb-rz .enb-rz-row .enb-rz-ic-arrow {
  justify-self: end;
  color: var(--enb-rz-violet);
  transition: transform 0.2s;
}
.enb-rz .enb-rz-row:hover .enb-rz-ic-arrow {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------------
   5. Zaproszenie do rozmowy (przed newsletterem i stopką)
   --------------------------------------------------------------------- */
.enb-rz .enb-rz-cta {
  padding: 0 0 96px;
  background: #ffffff;
}
.enb-rz .enb-rz-cta--alt {
  background: var(--enb-rz-alt);
}
.enb-rz .enb-rz-cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 48px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(108, 82, 231, 0.45), rgba(0, 0, 0, 0) 45%),
    var(--enb-rz-navy);
  color: #ffffff;
}
.enb-rz .enb-rz-cta-title {
  color: #ffffff;
  font-family: inherit;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}
.enb-rz .enb-rz-cta-text {
  max-width: 620px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.6;
}
.enb-rz .enb-rz-cta-act {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.enb-rz .enb-rz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 10px;
  background: var(--enb-rz-violet);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.enb-rz .enb-rz-btn:hover {
  background: var(--enb-rz-violet-h);
  color: #ffffff;
}
.enb-rz .enb-rz-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.enb-rz .enb-rz-cta-phone:hover {
  color: var(--enb-rz-lilac);
}
.enb-rz .enb-rz-cta-phone .enb-rz-ic {
  width: 18px;
  height: 18px;
  color: var(--enb-rz-lilac);
}

/* ---------------------------------------------------------------------
   6. Szerokości
   --------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .enb-rz .enb-rz-row {
    grid-template-columns: 96px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.4fr) 24px;
  }
  .enb-rz .enb-rz-row-img {
    width: 96px;
    height: 64px;
  }
  .enb-rz .enb-rz-row-year {
    display: none;
  }
  /* Węższa kolumna tekstu w dużej karcie - obraz i tekst po połowie */
  .enb-rz .enb-rz-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }
}
/* Tablet: dwie karty obok siebie mają ok. 300 px treści - wynik nad opisem */
@media (min-width: 768px) and (max-width: 1023px) {
  .enb-rz .enb-rz-pair .enb-rz-metric {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .enb-rz .enb-rz-pair .enb-rz-metric dt {
    font-size: 24px;
  }
}
@media (max-width: 1023px) {
  .enb-rz .enb-rz-hero {
    padding: 116px 0 40px;
  }
  .enb-rz .enb-rz-title {
    font-size: 34px;
  }
  .enb-rz .enb-rz-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
  }
  .enb-rz .enb-rz-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
  }
  .enb-rz .enb-rz-row {
    grid-template-columns: 96px minmax(0, 1fr) 24px;
    row-gap: 10px;
  }
  .enb-rz .enb-rz-row-img {
    grid-row: 1 / span 3;
    align-self: start;
  }
  .enb-rz .enb-rz-row-name,
  .enb-rz .enb-rz-row-tags,
  .enb-rz .enb-rz-row-res {
    grid-column: 2 / 3;
  }
  .enb-rz .enb-rz-row .enb-rz-ic-arrow {
    grid-row: 1;
    grid-column: 3;
  }
  .enb-rz .enb-rz-cta-box {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 28px;
  }
}
@media (max-width: 767px) {
  .enb-rz .enb-rz-wrap {
    padding: 0 20px;
  }
  .enb-rz .enb-rz-title {
    font-size: 30px;
  }
  .enb-rz .enb-rz-lead {
    font-size: 16px;
  }
  .enb-rz .enb-rz-stat {
    padding: 16px;
  }
  .enb-rz .enb-rz-stat-v {
    font-size: 26px;
  }
  .enb-rz .enb-rz-stat-l {
    font-size: 13px;
  }
  /* Tematy w jednym rzędzie, przewijane w poziomie do krawędzi ekranu */
  .enb-rz .enb-rz-topics {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 28px;
    margin-right: -20px;
    padding-top: 20px;
    padding-right: 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .enb-rz .enb-rz-topics::-webkit-scrollbar {
    display: none;
  }
  .enb-rz .enb-rz-sec {
    padding: 56px 0;
  }
  .enb-rz .enb-rz-h2 {
    font-size: 26px;
  }
  .enb-rz .enb-rz-card-title {
    font-size: 19px;
  }
  .enb-rz .enb-rz-metric {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }
  .enb-rz .enb-rz-metric dt {
    font-size: 22px;
  }
  .enb-rz .enb-rz-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .enb-rz .enb-rz-feature + .enb-rz-feature,
  .enb-rz .enb-rz-pair + .enb-rz-feature,
  .enb-rz .enb-rz-feature + .enb-rz-pair,
  .enb-rz .enb-rz-pair + .enb-rz-pair {
    margin-top: 20px;
  }
  .enb-rz .enb-rz-card {
    padding: 20px;
  }
  .enb-rz .enb-rz-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px 16px;
    padding: 14px;
  }
  .enb-rz .enb-rz-row-img {
    grid-row: auto;
    width: 72px;
    height: 72px;
  }
  .enb-rz .enb-rz-row-name {
    grid-column: 2;
  }
  .enb-rz .enb-rz-row-tags,
  .enb-rz .enb-rz-row-res {
    grid-column: 1 / -1;
  }
  .enb-rz .enb-rz-row .enb-rz-ic-arrow {
    display: none;
  }
  .enb-rz .enb-rz-cta {
    padding-bottom: 64px;
  }
  .enb-rz .enb-rz-cta-title {
    font-size: 26px;
  }
  .enb-rz .enb-rz-cta-act {
    align-items: stretch;
  }
  .enb-rz .enb-rz-btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .enb-rz a,
  .enb-rz .enb-rz-row .enb-rz-ic-arrow {
    transition: none;
  }
}
