/* =========================================================
   MILO CASE STUDY — LUKMEBEL
   Scoped styles only.
   ========================================================= */

.milo-case-study {
  --case-max: 1500px;
  --case-text: #111426;
  --case-muted: #6b7184;
  --case-line: rgba(22, 30, 58, 0.12);
  --case-soft: rgba(247, 249, 253, 0.86);
  --case-sticky-offset: 126px;
  position: relative;
  overflow: clip;
  background: #fff;
  color: var(--case-text);
}

.milo-case-study__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(rgba(84, 106, 175, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(84, 106, 175, 0.15) 1px, transparent 1px);
  background-size: 136px 136px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 96%);
}

.milo-case-study__hero,
.milo-case-study__stats,
.milo-case-study__content,
.milo-case-study__cta {
  position: relative;
  z-index: 1;
}

/* HERO */
.milo-case-study__hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(42px, 6vw, 92px);
  width: min(var(--case-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 54px;
  align-items: start;
}

.milo-case-study__breadcrumbs {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.milo-case-study__breadcrumbs strong {
  font-size: 18px;
  line-height: 1.6;
}

.milo-case-study__breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.milo-case-study__breadcrumbs a:hover,
.milo-case-study__breadcrumbs a:focus-visible {
  color: var(--violet);
}

.milo-case-study__title {
  margin: 0;
  color: #080b21;
  line-height: 1.05;
  letter-spacing: -.04em;
  text-wrap: balance;
  word-spacing: .06em;
  font-size: clamp(40px, 5.2vw, 52px);
  font-weight: 600;
}

.milo-case-study__lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: #9E9E9E;
  font-size: 20px;
  line-height: 1.65;
  font-weight: 300;
}

.milo-case-study__company-meta {
  margin-top: 30px;
  color: #808080;
  font-size: 16px;
}

.milo-case-study__company-meta strong,
.milo-case-study__company-meta>span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.milo-case-study__company-meta strong {
  margin-bottom: 4px;
  color: #171a2d;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.65;
}

.milo-case-study__company-meta span img {
  width: 18px;
}

.milo-case-study__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.milo-case-study__tags span {
  padding: 5px 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(57, 72, 126, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #515151;
  font-size: 13px;
  font-family: "Roboto Mono", monospace;
  text-transform: uppercase;
}

.milo-case-study__tags span img {
  width: 18px;
}

.milo-case-study__quote {
  margin: 0;
}

.milo-case-study__quote blockquote,
.milo-case-study__quote figcaption {
  margin: 0;
}

.milo-case-study__quote--dark {
  width: min(560px, 100%);
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #090b11;
  color: #fff;
}

.milo-case-study__quote--dark blockquote {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.milo-case-study__quote--dark figcaption {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 600;
}

.milo-case-study__hero-media {
  position: relative;
  min-height: 520px;
}

.milo-case-study__hero-media>img {
  display: block;
  width: 100%;
  min-height: 520px;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(37, 50, 96, 0.12);
}

.milo-case-study__quote--floating {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  width: min(350px, calc(100% - 44px));
  padding: 14px 16px;
  border: 1px solid rgba(64, 79, 130, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(32, 44, 88, 0.12);
  backdrop-filter: blur(10px);
}

.milo-case-study__quote--floating::before {
  content: "“";
  display: block;
  margin-bottom: 2px;
  color: #20cfd6;
  font-size: 20px;
  line-height: 1;
}

.milo-case-study__quote--floating blockquote {
  color: #14182a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.milo-case-study__quote--floating figcaption {
  margin-top: 5px;
  color: #747b8f;
  font-size: 8px;
}

/* STATS */
.milo-case-study__stats {
  width: min(var(--case-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 140px;
}

.milo-case-study__stats h2 {
  margin: 0 0 30px;
  font-size: clamp(28px, 3vw, 40px);
}

.milo-case-study__stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 0;
}

.milo-case-study__stats-grid>div {
  min-height: 66px;
  padding: 0 18px;
  border-left: 1px solid var(--case-line);
}

.milo-case-study__stats-grid>div:nth-child(5n + 1) {
  padding-left: 0;
  border-left: 0;
}

.milo-case-study__stats-grid strong,
.milo-case-study__stats-grid span {
  display: block;
}

.milo-case-study__stats-grid strong {
  color: #121526;
  font-size: clamp(26px, 2vw, 30px);
  line-height: 1.05;
}

.milo-case-study__stats-grid span {
  margin-top: 6px;
  color: #515151;
  font-size: 18px;
  line-height: 1.35;
}

.milo-case-study__markets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 48px;
  color: #2f3448;
  font-size: 22px;
}

.milo-case-study__markets-label {
  margin-right: 12px;
  color: #808080;
  font-size: 15px;
  letter-spacing: 0.08em;
  font-family: "Roboto Mono", monospace;
}

/* CONTENT */
.milo-case-study__content {
  display: grid;
  grid-template-columns: 450px minmax(0, 1fr);
  gap: clamp(60px, 8vw, 120px);
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 96px;
  align-items: start;
}

.milo-case-study__sidebar {
  position: sticky;
  top: var(--case-sticky-offset);
}

.milo-case-study__sidebar-block+.milo-case-study__sidebar-block {
  margin-top: 46px;
}

.milo-case-study__sidebar-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.milo-case-study__sidebar-heading::before {
  content: "";
  width: 14px;
  height: 1px;
  background: #111426;
}

.milo-case-study__toc {
  display: grid;
  padding: 12px 0;
  border-top: 1px solid var(--case-line);
  border-bottom: 1px solid var(--case-line);
}

.milo-case-study__toc a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 6px;
  color: #5f6579;
  font-size: 9px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.milo-case-study__toc a span {
  color: #a1a6b4;
  font-size: 8px;
}

.milo-case-study__toc a:hover,
.milo-case-study__toc a:focus-visible,
.milo-case-study__toc a.is-active {
  background: rgba(115, 92, 255, 0.06);
  color: #13172a;
  transform: translateX(2px);
}

.milo-case-study__toc a.is-active span {
  color: var(--violet);
}

.milo-case-study__integrations {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.milo-case-study__integrations li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #656b80;
  font-size: 9px;
}

.milo-case-study__integrations img {
  width: 18px;
  height: 18px;
  padding: 3px;
  object-fit: contain;
  border: 1px solid rgba(67, 82, 137, 0.12);
  border-radius: 5px;
  background: #fff;
}

.milo-case-study__article {
  min-width: 0;
}

.milo-case-study__section {
  scroll-margin-top: calc(var(--case-sticky-offset) + 20px);
  padding: 0 0 72px;
}

.milo-case-study__section+.milo-case-study__section {
  padding-top: 4px;
}

.milo-case-study__section-index {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--case-line);
  color: #848484;
  font-size: 15px;
  font-family: "Roboto Mono", monospace;
}

.milo-case-study__section h2 {
  margin: 24px 0 50px;
  color: #151829;
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: -0.035em;
  font-weight: 500;
}

.milo-case-study__section p,
.milo-case-study__bullets,
.milo-case-study__features {
  color: #61677a;
  font-size: 20px;
  line-height: 1.8;
}

.milo-case-study__section p {
  margin: 0 0 17px;
}

.milo-case-study__statement {
  max-width: 610px;
  padding: 16px 0 16px 24px;
  border-left: 2px solid #18cfd2;
  color: #171a2c !important;
  font-size: clamp(18px, 2vw, 25px) !important;
  font-weight: 500;
  line-height: 1.35 !important;
}

.milo-case-study__bullets {
  margin: 10px 0 20px;
  padding-left: 18px;
}

.milo-case-study__summary {
  color: #1f2337 !important;
  font-weight: 600;
}

.milo-case-study__features {
  columns: 2;
  column-gap: 40px;
  margin: 18px 0 24px;
  padding-left: 18px;
}

.milo-case-study__features li {
  break-inside: avoid;
  margin-bottom: 4px;
}

/* EFFECT */
.milo-case-study__effect-title {
  max-width: 620px;
  color: #171a2d !important;
  font-size: clamp(20px, 2.5vw, 30px) !important;
  font-weight: 600;
  line-height: 1.25 !important;
}

.milo-case-study__effect-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--case-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.milo-case-study__effect-comparison>div {
  padding: 6px 10px;
}

.milo-case-study__effect-comparison span,
.milo-case-study__effect-comparison strong,
.milo-case-study__effect-comparison small {
  display: block;
}

.milo-case-study__effect-comparison span {
  color: #8a90a1;
  font-size: 12px;
  letter-spacing: 0.09em;
}

.milo-case-study__effect-comparison strong {
  margin-top: 8px;
  color: #111426;
  font-size: clamp(24px, 3vw, 38px);
}

.milo-case-study__effect-comparison small {
  margin-top: 3px;
  color: #73798c;
  font-size: 16px;
}

.milo-case-study__effect-comparison>div:last-child strong {
  background: linear-gradient(90deg, #12cfd6, #6e75ff, #dc61ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.milo-case-study__effect-arrow {
  color: #8f96a8 !important;
  font-size: 24px !important;
}

/* BEFORE / AFTER */
.milo-case-study__comparison {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--case-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.milo-case-study__comparison>div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 9px 14px;
  border-top: 1px solid rgba(27, 36, 68, 0.08);
  color: #5f6679;
  font-size: 16px;
}

.milo-case-study__comparison>div:first-child {
  border-top: 0;
}

.milo-case-study__comparison-head {
  color: #25293a !important;
  font-weight: 600;
}

.milo-case-study__comparison i {
  color: #8f96a9;
  font-style: normal;
  text-align: center;
}

.milo-case-study__comparison [role="cell"]:first-child b {
  color: #f19245;
  margin-right: 6px;
}

.milo-case-study__comparison [role="cell"]:last-child b {
  color: #1bc9ae;
   margin-right: 6px;
}

/* CTA */
.milo-case-study__cta {
  margin-top: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 50%, rgba(91, 31, 211, 0.44), transparent 31%),
    linear-gradient(110deg, #050507 0%, #090512 58%, #1c0644 100%);
  color: #fff;
}

.milo-case-study__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 136px 136px;
}

.milo-case-study__cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  width: min(1500px, calc(100% - 48px));
  min-height: 350px;
  margin: 0 auto;
  padding: 140px 0;
}

.milo-case-study__cta-eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-family: "Roboto Mono", monospace;
}

.milo-case-study__cta-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ee7c8;
  box-shadow: 0 0 14px rgba(30, 231, 200, 0.8);
}

.milo-case-study__cta h2 {
  max-width: 960px;
    margin: 0;
    color: #fff;
    font-size: 44px;
    line-height: 1.25;
    letter-spacing: -0.02rem;
}

.milo-case-study__cta p:not(.milo-case-study__cta-eyebrow) {
  max-width: 960px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 300;
}

.milo-case-study__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}

.milo-case-study__cta-actions a {
  text-decoration: none;
}

.milo-case-study__cta-secondary {
  display: inline-flex;
  min-height: 44px;
  padding: 11px 15px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.milo-case-study__cta-secondary:hover,
.milo-case-study__cta-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

.milo-case-study__cta-inner__undertitle {
  width: fit-content;
  margin-top: 24px;
}

.milo-case-study__cta-arrow {
  align-self: start;
  padding-top: 40px;
  color: rgba(139, 92, 255, 0.72);
  font-size: clamp(58px, 7vw, 96px);
  font-weight: 200;
}

/* Reveal */
[data-case-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms ease, transform 560ms ease;
}

[data-case-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1023px) {
  .milo-case-study__hero {
    grid-template-columns: 1fr;
  }

  .milo-case-study__hero-media {
    min-height: 460px;
  }

  .milo-case-study__hero-media>img {
    min-height: 460px;
  }

  .milo-case-study__stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .milo-case-study__stats-grid>div:nth-child(5n + 1) {
    padding-left: 18px;
    border-left: 1px solid var(--case-line);
  }

  .milo-case-study__stats-grid>div:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }

  .milo-case-study__content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .milo-case-study__sidebar {
    position: static;
  }

  .milo-case-study__toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 10px;
  }

  .milo-case-study__integrations {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {

  .milo-case-study__hero,
  .milo-case-study__stats,
  .milo-case-study__content,
  .milo-case-study__cta-inner {
    width: min(100% - 32px, var(--case-max));
  }

  .milo-case-study__hero {
    padding-top: 42px;
  }

  .milo-case-study__title {
    font-size: clamp(34px, 10vw, 48px);
  }

  .milo-case-study__quote--dark {
    width: 100%;
  }

  .milo-case-study__hero-media,
  .milo-case-study__hero-media>img {
    min-height: 340px;
  }

  .milo-case-study__stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .milo-case-study__stats-grid>div,
  .milo-case-study__stats-grid>div:nth-child(3n + 1),
  .milo-case-study__stats-grid>div:nth-child(5n + 1) {
    padding: 0 12px;
    border-left: 1px solid var(--case-line);
  }

  .milo-case-study__stats-grid>div:nth-child(2n + 1) {
    padding-left: 0;
    border-left: 0;
  }

  .milo-case-study__toc {
    grid-template-columns: 1fr;
  }

  .milo-case-study__integrations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .milo-case-study__features {
    columns: 1;
  }

  .milo-case-study__effect-comparison {
    grid-template-columns: 1fr;
  }

  .milo-case-study__effect-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .milo-case-study__comparison-head {
    display: none !important;
  }

  .milo-case-study__comparison>div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 13px;
  }

  .milo-case-study__comparison i {
    transform: rotate(90deg);
    text-align: left;
  }

  .milo-case-study__cta-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 58px 0;
  }

  .milo-case-study__cta h2 br {
    display: none;
  }

  .milo-case-study__cta-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-case-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .milo-case-study__toc a {
    transition: none;
  }
}

/* =========================================================
   CASE STUDY — POPRAWKI SIDEBAR / PROGRESS / HERO FADE
   Dopisać na końcu static/css/case-study.css
   ========================================================= */

/* --- HERO: rozmycie / wygaszenie prawej krawędzi zdjęcia --- */
.milo-case-study__hero-media {
  position: relative;
  min-height: 520px;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
}

.milo-case-study__hero-media>img {
  display: block;
  width: 100%;
  min-height: 520px;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  box-shadow: 0 28px 60px rgba(37, 50, 96, 0.12);
  -webkit-mask-image: linear-gradient(to right,
      #000 0%,
      #000 72%,
      rgba(0, 0, 0, 0.96) 82%,
      rgba(0, 0, 0, 0.45) 94%,
      transparent 100%);
  mask-image: linear-gradient(to right,
      #000 0%,
      #000 72%,
      rgba(0, 0, 0, 0.96) 82%,
      rgba(0, 0, 0, 0.45) 94%,
      transparent 100%);
}

.milo-case-study__hero-media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(26%, 220px);
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.22) 40%,
      rgba(255, 255, 255, 0.68) 72%,
      rgba(255, 255, 255, 0.96) 100%);
  filter: blur(10px);
}

/* --- SIDEBAR --- */
.milo-case-study__sidebar {
  position: sticky;
  top: var(--case-sticky-offset);
}

.milo-case-study__sidebar-read {
  margin-bottom: 40px;
}

.milo-case-study__reading-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #31374a;
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.milo-case-study__reading-meta img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.95;
}

.milo-case-study__reading-progress {
  position: relative;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #d8d8dc;
}

.milo-case-study__reading-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: #0c0e14;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 140ms linear;
}

.milo-case-study__sidebar-block+.milo-case-study__sidebar-block {
  margin-top: 52px;
}

.milo-case-study__sidebar-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #808080;
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.milo-case-study__sidebar-heading::before {
  display: none;
}

.milo-case-study__sidebar-heading img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.95;
}

/* --- TOC --- */
.milo-case-study__toc {
  display: grid;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid rgba(17, 20, 38, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(17, 20, 38, 0.02);
}

.milo-case-study__toc a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0;
  align-items: baseline;
  padding: 4px 4px;
  border-radius: 8px;
  color: #1c1c1c;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.milo-case-study__toc a span {
  color: #aaaaaa;
  font-size: 15px;
  line-height: 1.45;
  font-family: "Roboto Mono", monospace;
}

.milo-case-study__toc a:hover,
.milo-case-study__toc a:focus-visible {
  background: rgba(13, 13, 13, 0.03);
  color: #000;
  transform: none;
}

.milo-case-study__toc a.is-active {
  background: rgba(17, 20, 38, 0.03);
  color: #000000;
  transform: none;
}

.milo-case-study__toc a.is-active span {
  color: #6d7385;
}

/* --- ROZWIĄZANIA --- */
.milo-case-study__solutions {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.milo-case-study__solutions li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 8px 6px 6px;
  border: 1px solid rgba(17, 20, 38, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #2b3142;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(17, 20, 38, 0.03);
}

.milo-case-study__solutions li img {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 2px;
  border-radius: 7px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 20, 38, 0.06);
}

/* --- dodatkowy monospace tam, gdzie ma sens --- */
.milo-case-study__section-index {
  font-family: "Roboto Mono", monospace;
  letter-spacing: 0.14em;
}

/* żeby anchor dla CTA uwzględniał sticky header */
.milo-case-study__cta {
  scroll-margin-top: calc(var(--case-sticky-offset) + 20px);
}

/* --- MOBILE / TABLET --- */
@media (max-width: 1100px) {
  .milo-case-study__sidebar-read {
    margin-bottom: 32px;
  }

  .milo-case-study__toc {
    padding: 12px 16px;
  }

  .milo-case-study__toc a,
  .milo-case-study__toc a span {
    font-size: 13px;
  }

  .milo-case-study__solutions li {
    font-size: 11px;
  }
}

@media (max-width: 767px) {

  .milo-case-study__reading-meta,
  .milo-case-study__sidebar-heading {
    font-size: 10px;
  }

  .milo-case-study__toc a,
  .milo-case-study__toc a span {
    font-size: 13px;
  }

  .milo-case-study__toc a {
    grid-template-columns: 40px 1fr;
    padding: 11px 2px;
  }

  .milo-case-study__solutions {
    gap: 8px;
  }

  .milo-case-study__solutions li {
    width: fit-content;
    max-width: 100%;
    font-size: 11px;
  }

  .milo-case-study__hero-media::after {
    width: 28%;
  }
}