.nw-cases-hero {
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  min-block-size: min(34rem, 100svh);
  color: var(--color-text-invert, #fff);
  background-color: var(--c-navy-900, #101526);
}

.nw-cases-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.nw-cases-hero .nw-cases-hero__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2 * var(--container-pad, 1rem)), 76.125rem);
  max-width: none;
  margin-inline: auto;
  padding: 2rem 0 6rem;
}

.nw-cases-hero__panel {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 43.625rem);
  padding: clamp(1.125rem, 4vw, 1.875rem);
  border-radius: var(--radius-md, 0.5rem);
  background: rgb(5 8 18 / 72%);
  -webkit-backdrop-filter: blur(16.05px);
  backdrop-filter: blur(16.05px);
}

.nw-cases-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  color: #b0d8ff;
  font-family: Inter, var(--font-sans, sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.0325rem;
  text-transform: uppercase;
}

.nw-cases-hero__eyebrow::before {
  content: "";
  flex: 0 0 1.5rem;
  height: 1px;
  background-color: currentColor;
}

.nw-cases-hero__title {
  margin: 0;
  color: inherit;
  font-family: Inter, var(--font-sans, sans-serif);
  font-size: clamp(1.375rem, 4.7vw, 2.5625rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.024em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.nw-cases-hero__summary {
  margin: 0;
  font-family: Inter, var(--font-sans, sans-serif);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
}

.nw-cases-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nw-cases-hero__actions .vg-btn {
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  padding-inline: 20px;
  font: 500 .875rem/1.15 Jost, var(--font-sans, sans-serif);
  text-align: center;
}

.nw-cases-hero__actions .vg-btn--light {
  border: 1px solid #9eb7e4;
}

.nw-cases-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem clamp(0.75rem, 3vw, 1.875rem);
  margin: 0;
}

.nw-cases-hero__stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.nw-cases-hero__stats dt {
  color: #a8d3fe;
  font-family: Jost, var(--font-sans, sans-serif);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25;
}

.nw-cases-hero__stats dd {
  order: -1;
  margin: 0;
  font-family: "Bebas Neue", var(--font-display, sans-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.nw-cases-hero__jump {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 1.25rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  min-height: 3.3125rem;
  margin-inline: auto;
}

.nw-cases-hero__jump img {
  width: 1.875rem;
  height: 3.3125rem;
  object-fit: contain;
  transition: transform 180ms ease-out;
}

.nw-cases-hero__jump:hover img,
.nw-cases-hero__jump:focus-visible img {
  transform: translateY(0.19rem);
}

@media (min-width: 37.5em) {
  .nw-cases-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.875rem;
  }

  .nw-cases-hero__stats {
    justify-content: space-between;
    max-width: 519px;
  }
}

@media (min-width: 48em) {
  .nw-cases-hero {
    min-block-size: clamp(36rem, 56vw, 50.4375rem);
  }

  .nw-cases-hero__bg {
    object-position: center;
  }

  .nw-cases-hero .nw-cases-hero__inner {
    padding-block: 7.5rem;
  }

  .nw-cases-hero__panel {
    background: rgb(5 8 18 / 60%);
    border-radius: 0;
  }

  .nw-cases-hero__jump {
    inset-block-end: 3.5625rem;
  }
}

@media (max-width: 37.49em) {
  .nw-cases-hero__summary-break {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nw-cases-hero__jump img {
    transition: none;
  }

  .nw-cases-hero__jump:hover img,
  .nw-cases-hero__jump:focus-visible img {
    transform: none;
  }
}

.nw-cases-catalog {
  --cases-ink: #1b3454;
  --cases-blue: #1f75ba;
  --cases-border: #dfe5ec;
  padding-block: 60px;
  color: var(--cases-ink);
  background: #fff;
}

.nw-cases-catalog [hidden] {
  display: none;
}

.nw-cases-catalog__inner {
  width: min(1222px, calc(100% - 32px));
  margin-inline: auto;
}

.nw-cases-catalog__head {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.nw-cases-catalog__title {
  margin: 0;
  font: 700 clamp(1.625rem, 3.5vw, 2.25rem)/1.22 Inter, var(--font-sans, sans-serif);
  color: #242328;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.nw-cases-catalog__rule {
  position: relative;
  width: min(100%, 370px);
  height: 1px;
  background: #646269;
}

.nw-cases-catalog__rule::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 30px;
  height: 6px;
  transform: translateX(-50%);
  background: var(--cases-blue);
}

.nw-cases-catalog__intro {
  margin: 0;
  font: 400 .875rem/1.45 Jost, var(--font-sans, sans-serif);
}

.nw-cases-catalog__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  max-width: 802px;
  margin: 30px auto;
}

.nw-cases-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  max-width: 100%;
  padding: 9px 20px;
  border: 1px solid var(--cases-border);
  border-radius: 4px;
  color: var(--cases-ink);
  background: #fff;
  font: 400 .875rem/1.4 Jost, var(--font-sans, sans-serif);
  text-align: center;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.nw-cases-filter__count {
  color: #477ba5;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.nw-cases-filter:hover {
  border-color: var(--cases-blue);
}

.nw-cases-filter[aria-pressed="true"] {
  border-color: var(--cases-blue);
  background: var(--cases-blue);
  color: #fff;
}

.nw-cases-filter[aria-pressed="true"] .nw-cases-filter__count {
  color: #fff;
}

.nw-cases-group + .nw-cases-group {
  margin-top: 30px;
}

.nw-cases-group__title {
  display: table;
  margin: 0 auto 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #646269;
  color: var(--cases-blue);
  font: 700 clamp(1.125rem, 2.1vw, 1.5rem)/1.725 Inter, var(--font-sans, sans-serif);
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.nw-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-cases-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--cases-border);
  background: #fff;
}

.nw-cases-card__media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  aspect-ratio: 281 / 162;
  padding: 4px;
  isolation: isolate;
  background: #edf1f5;
}

.nw-cases-card__image {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nw-cases-card__number {
  display: grid;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  background: #fff;
  font: 400 .875rem/1.25 Jost, var(--font-sans, sans-serif);
}

.nw-cases-card__category {
  padding: 6px 10px;
  color: #fff;
  background: var(--cases-blue);
  font: 500 .6875rem/1.3 Inter, var(--font-sans, sans-serif);
  overflow-wrap: anywhere;
  text-align: right;
}

.nw-cases-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  min-height: 180px;
  padding: 20px;
}

.nw-cases-card__title {
  flex: 1;
  margin: 0;
  color: var(--cases-ink);
  font: 500 1rem/1.19 Jost, var(--font-sans, sans-serif);
  overflow-wrap: anywhere;
}

.nw-cases-card__open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--cases-blue);
  font: 600 .6875rem/1.5 Inter, var(--font-sans, sans-serif);
  letter-spacing: .05em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.nw-cases-card__open:hover {
  text-decoration: underline;
  text-underline-offset: .22em;
}

.nw-cases-card__open img,
.nw-cases-catalog__more img {
  flex: none;
}

.nw-cases-catalog__more {
  display: flex;
  width: fit-content;
  min-width: min(231px, 100%);
  justify-content: space-between;
  margin: 30px auto 0;
  padding-inline: 20px;
}

.nw-cases-catalog__empty {
  margin: 30px 0 0;
  text-align: center;
}

.nw-cases-dialog {
  position: fixed;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  color: #1b3454;
  background: #fff;
  box-shadow: 0 16px 56px #06192d55;
}

.nw-cases-dialog::backdrop {
  background: #08182ec2;
}

.nw-cases-dialog__content {
  position: relative;
  padding: 24px;
}

.nw-cases-dialog__close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: #fff;
  color: #1b3454;
  font: 400 1.65rem/1 Inter, sans-serif;
  cursor: pointer;
}

.nw-cases-dialog__category,
.nw-cases-dialog__title {
  margin: 0 44px 12px 0;
}

.nw-cases-dialog__category {
  font-size: .875rem;
  color: #1f75ba;
}

.nw-cases-dialog__title {
  color: #1b3454;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.nw-cases-dialog__image {
  display: block;
  width: 100%;
  aspect-ratio: 281 / 162;
  margin-top: 16px;
  object-fit: cover;
}

.nw-cases-dialog__note {
  margin: 16px 0 0;
}

@media (max-width: 63.99em) {
  .nw-cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 47.99em) {
  .nw-cases-catalog {
    padding-block: 44px;
  }

  .nw-cases-catalog__filters {
    gap: 8px;
  }

  .nw-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .nw-cases-card__body {
    min-height: 0;
    gap: 10px;
    padding: 14px;
  }
}

@media (max-width: 30em) {
  .nw-cases-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nw-cases-filter {
    transition: none;
  }
}
