.cf {
  overflow-x: clip;
}

.case-ui {
  color: #0d1333;
  font-family: "DM Sans", Arial, sans-serif;
}

.case-ui *,
.case-ui *::before,
.case-ui *::after {
  box-sizing: border-box;
}

.case-ui-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(13, 19, 51, .1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(5, 10, 38, .15);
}

.case-ui-bar,
.case-ui-title,
.case-ui-line,
.case-ui-person,
.case-ui-status,
.case-ui-progress,
.case-ui-tabs {
  display: flex;
  align-items: center;
}

.case-ui-bar {
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 16px 22px;
  border-bottom: 1px solid #e8ebf2;
}

.case-ui-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.case-ui-pin {
  width: 24px;
  height: 24px;
  border: 7px solid #326ad4;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.case-ui-person {
  gap: 9px;
  color: #65708a;
  font-size: 12px;
}

.case-ui-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: #eef3ff;
  color: #2d5bb1;
  font-size: 10px;
  font-weight: 900;
}

.case-ui-body {
  padding: clamp(20px, 3vw, 34px);
}

.case-ui-media {
  position: relative;
  height: clamp(150px, 20vw, 245px);
  overflow: hidden;
  border-bottom: 1px solid #e8ebf2;
  background: #0b1230;
}

.case-ui-media img,
.case-ui-record-photo img,
.case-ui-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.case-ui-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 13, 40, .2), transparent 46%, rgba(213, 0, 190, .1));
  pointer-events: none;
}

.case-ui-media--batch {
  height: clamp(125px, 16vw, 205px);
}

.case-ui-record-photo {
  position: relative;
  height: 132px;
  overflow: hidden;
  margin: -18px -18px 14px;
  border-radius: 17px 17px 0 0;
  background: #101833;
}

.case-ui-record-photo span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(7, 12, 38, .78);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.case-ui-title {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.case-ui-title h3,
.case-ui-title h4 {
  margin: 0;
  color: #0d1333;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.15;
}

.case-ui-title small {
  display: block;
  margin-top: 6px;
  color: #778198;
  font-size: 11px;
}

.case-ui-badge,
.case-ui-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.case-ui-badge {
  min-height: 31px;
  padding: 0 13px;
  background: #e9f8f1;
  color: #16815b;
}

.case-ui-chip {
  min-height: 25px;
  padding: 0 10px;
  background: #eef3ff;
  color: #315dac;
}

.case-ui-chip--gold { background: #fff4dc; color: #946414; }
.case-ui-chip--green { background: #e9f8f1; color: #16815b; }
.case-ui-chip--pink { background: #fceafb; color: #a52493; }

.case-ui-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.case-ui-kpi {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e8ecf5;
  border-radius: 16px;
  background: #f7f9fe;
}

.case-ui-kpi strong {
  display: block;
  margin-bottom: 6px;
  color: #0d1333;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(24px, 3vw, 35px);
  line-height: 1;
}

.case-ui-kpi span {
  color: #68738b;
  font-size: 11px;
  font-weight: 700;
}

.case-ui-table {
  overflow: hidden;
  border: 1px solid #e8ecf5;
  border-radius: 16px;
}

.case-ui-row {
  display: grid;
  grid-template-columns: 1.1fr .8fr .9fr .7fr;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f6;
  color: #46516a;
  font-size: 11px;
}

.case-ui-row:last-child { border-bottom: 0; }
.case-ui-row--head {
  min-height: 38px;
  background: #f7f9fe;
  color: #838ca0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.case-ui-row strong {
  color: #111831;
  font-size: 12px;
}

.case-ui-record {
  display: grid;
  grid-template-columns: minmax(180px, .78fr) minmax(0, 1.22fr);
  gap: 18px;
}

.case-ui-panel {
  padding: 18px;
  border: 1px solid #e8ecf5;
  border-radius: 17px;
  background: #fbfcff;
}

.case-ui-panel h5 {
  margin: 0 0 15px;
  color: #747f97;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.case-ui-line {
  justify-content: space-between;
  gap: 14px;
  min-height: 36px;
  border-bottom: 1px solid #edf0f6;
  color: #69748c;
  font-size: 11px;
}

.case-ui-line:last-child { border-bottom: 0; }
.case-ui-line strong { color: #151c35; text-align: right; }

.case-ui-progress {
  justify-content: space-between;
  gap: 5px;
  margin: 4px 0 20px;
}

.case-ui-step {
  position: relative;
  flex: 1;
  padding-top: 23px;
  color: #8a93a7;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.case-ui-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 15px;
  height: 15px;
  border: 3px solid #cfd5e1;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.case-ui-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 57%;
  width: 86%;
  height: 2px;
  background: #dfe3ec;
}

.case-ui-step.is-done::before,
.case-ui-step.is-current::before {
  border-color: #386ddb;
  background: #386ddb;
}

.case-ui-step.is-current { color: #1e4fae; }

.case-ui-timeline {
  display: grid;
  gap: 13px;
}

.case-ui-event {
  position: relative;
  padding-left: 22px;
  color: #69748c;
  font-size: 10px;
  line-height: 1.4;
}

.case-ui-event::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e504c9, #326ad4);
  box-shadow: 0 0 0 4px #f1eefa;
}

.case-ui-event strong {
  display: block;
  margin-bottom: 2px;
  color: #151c35;
  font-size: 11px;
}

.case-ui-review .case-ui-row {
  grid-template-columns: .72fr .8fr 1.15fr .85fr;
}

.case-ui-evidence {
  display: flex;
  align-items: center;
  gap: 9px;
}

.case-ui-thumb {
  position: relative;
  width: 46px;
  height: 31px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 7px;
  background: #111a39;
}

.case-ui-batch {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 16px;
}

.case-ui-checks {
  display: grid;
  gap: 11px;
}

.case-ui-check {
  position: relative;
  padding: 12px 12px 12px 39px;
  border: 1px solid #e8ecf5;
  border-radius: 12px;
  color: #546079;
  font-size: 11px;
  font-weight: 700;
}

.case-ui-check::before {
  content: "✓";
  position: absolute;
  top: 10px;
  left: 12px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #e9f8f1;
  color: #16815b;
  font-weight: 900;
}

.case-ui-pdf-shell {
  margin-top: 16px;
}

.case-ui-pdf-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #747f97;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-ui-pdf-label::before {
  content: "";
  width: 8px;
  height: 10px;
  border: 1.5px solid #64718d;
  border-radius: 1px;
  box-shadow: inset 0 -3px 0 #eef1f8;
}

.case-ui-pdf {
  position: relative;
  overflow: hidden;
  min-height: 252px;
  border: 1px solid #dfe4ef;
  border-radius: 8px;
  padding: 17px;
  background:
    linear-gradient(135deg, rgba(187, 0, 188, .035), transparent 42%),
    #fff;
  box-shadow: 0 12px 28px rgba(22, 32, 62, .08);
  color: #17213c;
}

.case-ui-pdf::after {
  content: "ILLUSTRATIVE SAMPLE";
  position: absolute;
  left: 50%;
  top: 54%;
  color: rgba(176, 0, 173, .09);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-31deg);
  pointer-events: none;
}

.case-ui-pdf-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #17213c;
}

.case-ui-pdf-mark {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #bd00b7, #3478dd);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.case-ui-pdf-title {
  flex: 1;
}

.case-ui-pdf-title strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-ui-pdf-sub {
  display: block;
  margin-top: 3px;
  color: #788299;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
}

.case-ui-pdf-status {
  border-radius: 999px;
  padding: 5px 7px;
  background: #fff3d9;
  color: #8a6415;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.case-ui-pdf-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  padding: 14px 0 12px;
}

.case-ui-pdf-field {
  min-width: 0;
}

.case-ui-pdf-field span {
  display: block;
  margin-bottom: 2px;
  color: #8a93a8;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.case-ui-pdf-field strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 9px;
  line-height: 1.35;
}

.case-ui-pdf-total {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #dfe4ef;
  padding-top: 11px;
  font-size: 8px;
  font-weight: 800;
}

.case-ui-pdf-total strong {
  color: #152245;
  font-size: 15px;
}

.case-ui-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.case-ui-action span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 8px;
  padding: 0 17px;
  background: linear-gradient(100deg, #d700bf, #3a76dc);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.casefile-widget-band {
  padding: clamp(78px, 8vw, 118px) 5%;
  background: #f5f7fc;
}

.casefile-widget-band__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.casefile-widget-intro {
  max-width: 720px;
  margin-bottom: clamp(38px, 5vw, 64px);
}

.casefile-widget-intro h2 {
  margin: 12px 0 18px;
  color: #0d1333;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1;
}

.casefile-widget-intro p {
  margin: 0;
  color: #5f6a83;
  font-size: 17px;
  line-height: 1.7;
}

.cf .s-break {
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: clamp(410px, 42vw, 620px);
  background: #070c26;
}

.cf .s-break-team {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cf .s-break-ov {
  position: relative;
  min-height: inherit;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(55px, 7vw, 96px) max(5%, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, rgba(5, 9, 34, .97) 0%, rgba(7, 12, 38, .8) 34%, rgba(7, 12, 38, .18) 67%, rgba(7, 12, 38, .04) 100%);
  text-align: left;
}

.cf .s-break-cap {
  max-width: 570px;
  margin: 0;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.04;
}

.cf .s-break-cap .s-break-kicker {
  margin: 0 0 22px;
  color: #91baff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cf .s-break-cap small {
  display: block;
  max-width: 500px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .76);
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.55;
}

.cf .s-break-cap > span:last-child {
  margin-top: 24px;
}

@media (min-width: 861px) {
  .cf .s-track-inner > .case-ui,
  .cf .s-flow-inner > .case-ui {
    position: relative;
    align-self: start;
  }
}

@media (max-width: 760px) {
  .case-ui-card { border-radius: 16px; }
  .case-ui-bar { min-height: 58px; padding: 13px 15px; }
  .case-ui-body { padding: 16px; }
  .case-ui-person span { display: none; }
  .case-ui-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-ui-record,
  .case-ui-batch { grid-template-columns: 1fr; }
  .case-ui-row,
  .case-ui-review .case-ui-row {
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
    padding: 13px;
  }
  .case-ui-row > :nth-child(2),
  .case-ui-row > :nth-child(3) { display: none; }
  .case-ui-row--head { display: none; }
  .case-ui-progress { overflow-x: auto; justify-content: flex-start; padding-bottom: 7px; }
  .case-ui-step { min-width: 74px; }
  .case-ui-media { height: 170px; }
}
