/* ============================================================
   REALIZACJE — list + single case study
   Inspired by current apposto.pl: spacious, no lines,
   two-column with label+heading left, content right
   ============================================================ */

/* --- Single case study: hero (centered) --------------------- */

.case-study__hero {
  padding-bottom: 0;
}

.case-study__title {
  font-size: clamp(1.625rem, 2.5vw + 0.5rem, 2.25rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: 400;
  max-width: 720px;
  margin-bottom: 20px;
}

.case-study__summary {
  font-size: var(--fs-small);
  color: var(--ink-2);
  line-height: var(--lh-body);
  max-width: 600px;
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.15s;
}

.link-back:hover {
  color: var(--ink);
}

/* --- Banner image ------------------------------------------- */

.case-study__banner {
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.case-study__banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Metadata row ------------------------------------------- */

.case-study__meta-section {
  padding: 40px 0 40px;
}

.case-study__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.case-study__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-study__meta-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.case-study__meta-value {
  font-size: var(--fs-small);
  font-weight: 500;
}

/* --- Two-column content sections (no lines, spacious) ------- */

.case-study__section {
  padding: 36px 0;
}

.case-study__two-col {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
}

.case-study__col-left {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-study__section-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.case-study__section-heading {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: 1.2;
}

.case-study__col-right {
  max-width: 640px;
}

@media (max-width: 768px) {
  .case-study__two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-study__col-left {
    position: static;
  }

  .case-study__section {
    padding: 32px 0;
  }

  .case-study__banner {
    aspect-ratio: 16 / 9;
  }
}

/* --- Prose (Markdown content styling) ----------------------- */

.prose h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: var(--ls-tight);
  color: var(--ink);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
}

.prose p {
  margin-bottom: 14px;
  line-height: var(--lh-body);
  color: var(--ink-2);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin-bottom: 14px;
  padding-left: 20px;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 6px;
  line-height: var(--lh-body);
  color: var(--ink-2);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 6px;
  border-radius: 3px;
}

.prose blockquote {
  border-left: 2px solid var(--line);
  padding-left: 20px;
  margin: 20px 0;
  color: var(--ink-2);
  font-style: italic;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--ink-2);
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: var(--fs-small);
}

.prose thead {
  border-bottom: 2px solid var(--ink);
}

.prose th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 16px 10px 0;
}

.prose td {
  padding: 12px 16px 12px 0;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.prose td:last-child,
.prose th:last-child {
  text-align: right;
  padding-right: 0;
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

/* --- CTA block (dark, left-aligned, full container width) --- */

.cta-block {
  background: var(--inverse-bg);
  border-radius: 12px;
  padding: 56px 64px;
}

.cta-block__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 560px;
}

.cta-block__title {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--inverse-ink);
}

.cta-block__text {
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--inverse-ink-2);
}

.cta-block .btn {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .cta-block {
    padding: 40px 28px;
  }
}
