.sb-segments {
  --sb-segments-shell: min(1824px, calc(100% - 224px));

  padding: 96px 0;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-white);
}

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

.sb-segments-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  column-gap: 80px;
  row-gap: 24px;
  align-items: end;
  margin-bottom: 72px;
}

.sb-segments-heading span {
  grid-column: 1 / -1;
  color: #1572e8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.sb-segments-heading h2 {
  max-width: 820px;
  margin: 0;
  color: #111827;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.sb-segments-heading p {
  max-width: 580px;
  margin: 0;
  color: #4b5563;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.68;
}

.sb-segments-index {
  border-top: 1px solid rgba(217, 226, 239, 0.58);
}

.sb-segment-row {
  position: relative;
  min-height: 128px;
  display: grid;
  grid-template-columns: 72px minmax(260px, 0.9fr) minmax(320px, 1fr) minmax(170px, auto) 44px;
  column-gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(217, 226, 239, 0.58);
  color: #111827;
  text-decoration: none;
  transition: background 0.18s ease, padding 0.18s ease;
}

.sb-segment-row::after {
  content: "→";
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  color: #1572e8;
  background: #ffffff;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sb-segment-row:hover,
.sb-segment-row:focus {
  color: #111827;
  background: rgba(255, 255, 255, 0.74);
  padding-right: 18px;
  padding-left: 18px;
  text-decoration: none;
}

.sb-segment-row:hover::after,
.sb-segment-row:focus::after {
  color: #ffffff;
  border-color: #1572e8;
  background: #1572e8;
  transform: translateX(3px);
}

.sb-segment-row span {
  color: rgba(21, 114, 232, 0.36);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.sb-segment-row strong {
  color: #111827;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.sb-segment-row p {
  max-width: 560px;
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.58;
}

.sb-segment-row em {
  justify-self: end;
  padding: 8px 12px;
  border: 1px solid rgba(217, 226, 239, 0.58);
  border-radius: 999px;
  color: #374151;
  background: #ffffff;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.sb-segments-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.sb-segments-toggle {
  min-width: 190px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #073fb8 0 50%, #1572e8 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-position 0.34s ease;
}

.sb-segments-toggle:hover,
.sb-segments-toggle:focus {
  color: #ffffff;
  background-position: 0 0;
  outline: 0;
}

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

@media (max-width: 1099.98px) {
  .sb-segments {
    --sb-segments-shell: calc(100% - 56px);
    padding: 96px 0;
  }

  .sb-segments-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 56px;
  }

  .sb-segments-heading h2 {
    max-width: 780px;
    font-size: 44px;
  }

  .sb-segments-heading p {
    max-width: 700px;
    font-size: 18px;
  }

  .sb-segment-row {
    grid-template-columns: 54px minmax(220px, 0.8fr) minmax(0, 1fr) 44px;
    column-gap: 22px;
  }

  .sb-segment-row em {
    display: none;
  }

  .sb-segment-row strong {
    font-size: 28px;
  }
}

@media (max-width: 767.98px) {
  .sb-segments {
    --sb-segments-shell: calc(100% - 24px);
    padding: 72px 0;
  }

  .sb-segments-heading {
    margin-bottom: 42px;
  }

  .sb-segments-heading h2 {
    font-size: 36px;
    line-height: 1.18;
  }

  .sb-segments-heading p {
    font-size: 16px;
    line-height: 1.72;
  }

  .sb-segment-row {
    min-height: auto;
    grid-template-columns: 1fr 42px;
    gap: 18px;
    padding: 26px 0;
  }

  .sb-segment-row:hover,
  .sb-segment-row:focus {
    padding-right: 0;
    padding-left: 0;
    background: #ffffff;
  }

  .sb-segment-row span {
    grid-column: 1 / -1;
    font-size: 16px;
  }

  .sb-segment-row strong {
    font-size: 26px;
  }

  .sb-segment-row p {
    grid-column: 1 / -1;
    max-width: none;
    font-size: 16px;
    line-height: 1.65;
  }

  .sb-segment-row::after {
    grid-column: 2;
    grid-row: 2;
    width: 42px;
    height: 42px;
  }

  .sb-segments-actions {
    justify-content: stretch;
    margin-top: 28px;
  }

  .sb-segments-toggle {
    width: 100%;
    min-height: 56px;
    font-size: 16px;
  }
}
