.sb-cases-page {
  --sb-cases-shell: min(1824px, calc(100% - 224px));
  width: 100%;
  overflow: hidden;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(21, 114, 232, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 114, 232, 0.04) 1px, transparent 1px),
    linear-gradient(120deg, #ffffff 0%, #f8fbff 58%, #effbf3 100%);
  background-size: 88px 88px, 88px 88px, auto;
}

.sb-cases-page .container {
  width: var(--sb-cases-shell);
  max-width: none;
}

.sb-cases-shell {
  padding: 72px 0 108px;
  display: grid;
  gap: 56px;
}

.sb-cases-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.68fr);
  gap: 80px;
  align-items: end;
  padding-bottom: 52px;
  border-bottom: 1px solid #dbe6f4;
}

.sb-cases-hero h1,
.sb-cases-toolbar h2,
.sb-cases-dark-band h2 {
  margin: 0;
  color: #101827;
  font-weight: 600;
  letter-spacing: 0;
}

.sb-cases-hero h1 {
  max-width: 760px;
  font-size: 56px;
  line-height: 1.02;
}

.sb-cases-lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: #5b687a;
  font-size: 20px;
  line-height: 1.65;
}

.sb-cases-hero-note {
  max-width: 620px;
  margin: 0;
  border-left: 2px solid #1572e8;
  padding-left: 24px;
  color: #334155;
  font-size: 18px;
  line-height: 1.7;
}

.sb-cases-hero-note strong {
  color: #101827;
  font-weight: 700;
}

.sb-cases-overview,
.sb-cases-filters,
.sb-cases-filter-block {
  min-width: 0;
  display: grid;
}

.sb-cases-overview {
  gap: 32px;
}

.sb-cases-filters {
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid #dbe6f4;
  border-bottom: 1px solid #dbe6f4;
}

.sb-cases-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: start;
}

.sb-cases-search-field {
  height: 52px;
  display: flex;
  align-items: center;
  border: 1px solid #dbe6f4;
  background: rgba(255, 255, 255, 0.82);
  box-sizing: border-box;
}

.sb-cases-search-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 18px;
  background: transparent;
  color: #101827;
  font: inherit;
  font-size: 15px;
}

.sb-cases-sort-select {
  width: 100%;
  height: 52px;
  display: block;
  align-self: start;
  margin: 0;
  border: 1px solid #dbe6f4;
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  line-height: 52px;
  font-weight: 600;
  box-sizing: border-box;
  appearance: auto;
}

.sb-cases-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 24px;
}

.sb-cases-filter-block {
  gap: 12px;
}

.sb-cases-filter-title {
  display: block;
  margin: 0;
  color: #101827;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}

.sb-cases-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sb-cases-filter-list a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #dbe6f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position 0.34s ease, border-color 0.18s ease, color 0.18s ease;
}

.sb-cases-filter-list a.is-active {
  color: #ffffff;
  border-color: #1572e8;
  background-image: linear-gradient(90deg, #073fb8 0 50%, #1572e8 50% 100%);
}

.sb-cases-filter-list a.is-active:hover,
.sb-cases-filter-list a.is-active:focus {
  background-position: 0 0;
}

.sb-cases-area {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.sb-cases-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid #dbe6f4;
}

.sb-cases-toolbar h2 {
  font-size: 42px;
  line-height: 1.06;
}

.sb-cases-toolbar p {
  margin: 12px 0 0;
  max-width: 720px;
  color: #5b687a;
  font-size: 17px;
  line-height: 1.65;
}

.sb-cases-count {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #dbe6f4;
  border-radius: 999px;
  color: #334155;
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.sb-cases-list {
  min-width: 0;
  display: grid;
  border-top: 1px solid #dbe6f4;
}

.sb-cases-row {
  display: grid;
  grid-template-columns: 82px minmax(160px, 0.52fr) minmax(0, 1fr) minmax(160px, 240px) 128px;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid #dbe6f4;
  min-width: 0;
}

.sb-cases-row-logo {
  width: 76px;
  height: 76px;
  border: 1px solid #c9d8ea;
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #101827;
  font-size: 28px;
  font-weight: 400;
}

.sb-cases-row-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 10px;
}

.sb-cases-row-logo span {
  color: #101827;
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
}

.sb-cases-row-title {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.sb-cases-row-title strong {
  min-width: 0;
  color: #101827;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}

.sb-cases-row-title strong,
.sb-cases-row-title span,
.sb-cases-row-copy {
  overflow-wrap: anywhere;
}

.sb-cases-row-title span {
  color: #5b687a;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.sb-cases-row-copy {
  margin: 0;
  color: #5b687a;
  font-size: 16px;
  line-height: 1.62;
}

.sb-cases-row-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sb-cases-row-tags span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dbe6f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.sb-cases-empty {
  padding: 36px 0;
  border-bottom: 1px solid #dbe6f4;
  color: #5b687a;
  font-size: 16px;
  line-height: 1.6;
}

.sb-cases-row-action {
  min-width: 0;
  justify-self: end;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #1572e8;
  border-radius: 999px;
  background: linear-gradient(90deg, #073fb8 0 50%, #1572e8 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-position 0.34s ease, border-color 0.18s ease, color 0.18s ease;
}

.sb-cases-row-action:hover,
.sb-cases-row-action:focus {
  color: #ffffff;
  border-color: #1267d4;
  background-position: 0 0;
}

.sb-cases-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-top: 26px;
}

.sb-cases-pagination-summary {
  color: #5b687a;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.sb-cases-pagination-mobile-summary {
  display: none;
}

.sb-cases-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sb-cases-pagination-pages a,
.sb-cases-pagination-pages span {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #dbe6f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position 0.34s ease, border-color 0.18s ease, color 0.18s ease;
}

.sb-cases-pagination-pages a.is-active {
  color: #ffffff;
  border-color: #1572e8;
  background-image: linear-gradient(90deg, #073fb8 0 50%, #1572e8 50% 100%);
}

.sb-cases-pagination-pages a.is-active:hover,
.sb-cases-pagination-pages a.is-active:focus {
  background-position: 0 0;
}

.sb-cases-dark-band {
  padding: 54px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    #07111f;
  background-size: 76px 76px, 76px 76px, auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.sb-cases-dark-band h2 {
  max-width: 560px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.06;
}

.sb-cases-dark-band p {
  margin: 0;
  color: #aebbd0;
  font-size: 18px;
  line-height: 1.7;
}

@media (max-width: 1499.98px) {
  .sb-cases-page {
    --sb-cases-shell: min(1520px, calc(100% - 120px));
  }
}

@media (max-width: 1099.98px) {
  .sb-cases-page {
    --sb-cases-shell: calc(100% - 56px);
  }

  .sb-cases-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sb-cases-hero h1,
  .sb-cases-lead,
  .sb-cases-hero-note {
    max-width: none;
  }

  .sb-cases-filter-grid {
    grid-template-columns: 1fr;
  }

  .sb-cases-row {
    grid-template-columns: 82px minmax(0, 0.75fr) minmax(0, 1fr);
  }

  .sb-cases-row-tags,
  .sb-cases-row-action {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .sb-cases-page {
    --sb-cases-shell: calc(100% - 64px);
  }

  .sb-cases-page .container {
    padding-left: 0;
    padding-right: 0;
  }

  .sb-cases-shell {
    padding: 42px 0 64px;
    gap: 42px;
  }

  .sb-cases-hero {
    padding-bottom: 34px;
  }

  .sb-cases-hero h1 {
    font-size: 38px;
    line-height: 1.06;
  }

  .sb-cases-lead {
    margin-top: 22px;
    font-size: 18px;
  }

  .sb-cases-hero-note {
    font-size: 16px;
  }

  .sb-cases-search-row {
    grid-template-columns: 1fr;
  }

  .sb-cases-toolbar {
    display: grid;
  }

  .sb-cases-toolbar h2,
  .sb-cases-dark-band h2 {
    font-size: 34px;
  }

  .sb-cases-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .sb-cases-row-logo {
    width: 82px;
    height: 82px;
    font-size: 28px;
  }

  .sb-cases-row-copy,
  .sb-cases-row-tags,
  .sb-cases-row-action {
    grid-column: 2;
  }

  .sb-cases-dark-band {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 26px;
  }

  .sb-cases-pagination {
    display: grid;
    justify-content: stretch;
    gap: 14px;
    padding-top: 24px;
  }

  .sb-cases-pagination-summary {
    display: none;
  }

  .sb-cases-pagination-mobile-summary {
    display: block;
    color: #5b687a;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
  }

  .sb-cases-pagination-pages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  .sb-cases-pagination-pages > :not(:first-child):not(:last-child) {
    display: none;
  }

  .sb-cases-pagination-pages a,
  .sb-cases-pagination-pages span {
    min-width: 0;
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    font-size: 14px;
  }

  .sb-cases-pagination-pages span:first-child,
  .sb-cases-pagination-pages span:last-child {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.54);
  }
}

@media (max-width: 480px) {
  .sb-cases-hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .sb-cases-lead {
    font-size: 17px;
    line-height: 1.62;
  }

  .sb-cases-hero-note {
    padding-left: 18px;
  }

  .sb-cases-filter-list a,
  .sb-cases-row-tags span {
    font-size: 12px;
  }
}
