.usecase-styles__howTo {
  position: relative;
  z-index: 1;
  min-height: 788px;
  background: transparent;
  padding: 68px 24px 72px;
  text-align: center;
}

.usecase-styles__howTo > h2,
.usecase-styles__scenes > h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 53px;
}

.usecase-styles__mobileHowToCard {
  display: none;
}

.usecase-styles__stepProgress,
.usecase-styles__stepGrid {
  width: min(1232px, 100%);
  margin-inline: auto;
}

.usecase-styles__stepProgress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}

.usecase-styles__stepProgress::before {
  position: absolute;
  top: 50%;
  right: 16.67%;
  left: 16.67%;
  border-top: 2px dashed #acacac;
  content: "";
  transform: translateY(-50%);
}

.usecase-styles__stepProgress > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.usecase-styles__stepGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 24px;
  text-align: left;
}

.usecase-styles__stepCard {
  height: 344px;
  border-radius: 24px;
  background: #fff;
  padding: 24px;
}

.usecase-styles__stepCard > div {
  width: 100%;
  height: 224px;
  overflow: hidden;
  background: #f3f3f3;
}

.usecase-styles__stepCard > p {
  margin-top: 16px;
  color: #1a1c1c;
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 29px;
}

.usecase-styles__stepCard kbd {
  display: inline-grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  background: #eceef0;
  box-shadow: 0 3px 0 #c8c8c8;
  font: inherit;
  line-height: 1;
  vertical-align: 1px;
}

.usecase-styles__howToStepImage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.usecase-styles__stepCard > p.usecase-styles__windowsShortcutCopy kbd {
  min-width: 98px;
  padding-inline: 12px;
}

.usecase-styles__downloadButton {
  display: inline-flex;
  width: 280px;
  height: 60px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.usecase-styles__downloadButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgb(0 0 0 / 16%);
}

.usecase-styles__scenes {
  background: #fff;
  padding: 128px 24px 200px;
}

.usecase-styles__scenes > h2 {
  text-align: center;
}

.usecase-styles__sceneGroups {
  width: min(1276px, 100%);
  margin: 56px auto 0;
}

.usecase-styles__sceneGroup + .usecase-styles__sceneGroup {
  margin-top: 100px;
}

.usecase-styles__sceneHeader {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
}

.usecase-styles__sceneHeader h3 {
  font-size: 32px;
  font-weight: 700;
  line-height: 38px;
}

.usecase-styles__sceneControls {
  display: flex;
  gap: 10px;
}

.usecase-styles__sceneControls button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  background: #fff;
  color: #666;
  cursor: pointer;
  font-size: 18px;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.usecase-styles__sceneControls button:hover {
  border-color: #999;
  color: #000;
  transform: translateY(-1px);
}

.usecase-styles__sceneControls button:disabled {
  border-color: #e8e8e8;
  color: #c8c8c8;
  cursor: default;
  transform: none;
}

.usecase-styles__sceneList {
  display: grid;
  grid-auto-columns: calc((100% - 96px) / 4);
  grid-auto-flow: column;
  gap: 32px;
  overflow-x: auto;
  margin-top: 32px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.usecase-styles__sceneList::-webkit-scrollbar {
  display: none;
}

.usecase-styles__sceneCard {
  min-width: 0;
  height: 206px;
  border: 1px solid #eee;
  border-radius: 24px;
  background: #fff;
  scroll-snap-align: start;
}

.usecase-styles__sceneCard[data-clickable="true"] {
  transition: background-color 200ms ease;
}

.usecase-styles__sceneCard[data-clickable="true"]:hover,
.usecase-styles__sceneCard[data-clickable="true"]:focus-within {
  background: #f5f5f5;
}

.usecase-styles__sceneCardContent {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  padding: 32px;
  color: inherit;
  text-decoration: none;
}

a.usecase-styles__sceneCardContent {
  cursor: pointer;
}

a.usecase-styles__sceneCardContent:focus-visible {
  outline: 3px solid rgb(12 196 99 / 35%);
  outline-offset: -3px;
}

.usecase-styles__openInNew {
  position: absolute;
  top: 32px;
  right: 32px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 85%);
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}

.usecase-styles__openInNew svg {
  display: block;
}

[dir="rtl"] .usecase-styles__openInNew {
  right: auto;
  left: 32px;
}

[dir="rtl"] .usecase-styles__sceneControls button span {
  transform: scaleX(-1);
}

.usecase-styles__sceneCard[data-clickable="true"]:hover .usecase-styles__openInNew,
.usecase-styles__sceneCard[data-clickable="true"]:focus-within .usecase-styles__openInNew {
  opacity: 1;
}

.usecase-styles__sceneCard img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}

.usecase-styles__sceneCard h4 {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.usecase-styles__sceneCard p {
  width: calc(100% + 14px);
  margin-top: 8px;
  color: #5d5f5f;
  font-size: 16px;
  line-height: 24px;
}

@media (max-width: 1023px) {
  .usecase-styles__howTo {
    min-height: 0;
    padding: 64px 20px 72px;
  }

  .usecase-styles__howTo > h2,
  .usecase-styles__scenes > h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .usecase-styles__stepProgress {
    display: none;
  }

  .usecase-styles__stepGrid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }

  .usecase-styles__stepCard {
    width: min(392px, 100%);
    height: auto;
    min-height: 332px;
    margin-inline: auto;
  }

  .usecase-styles__stepCard::before {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    margin: -6px auto 18px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    content: counter(step);
    counter-increment: step;
    font-weight: 700;
  }

  .usecase-styles__stepGrid {
    counter-reset: step;
  }

  .usecase-styles__stepCard > div {
    height: 200px;
  }

  .usecase-styles__downloadButton {
    margin-top: 40px;
  }

  .usecase-styles__scenes {
    padding: 72px 20px 96px;
  }

  .usecase-styles__scenes > h2 {
    max-width: 560px;
    margin-inline: auto;
  }

  .usecase-styles__sceneGroups {
    margin-top: 50px;
  }

  .usecase-styles__sceneGroup + .usecase-styles__sceneGroup {
    margin-top: 70px;
  }

  .usecase-styles__sceneHeader h3 {
    font-size: 25px;
    line-height: 32px;
  }

  .usecase-styles__sceneControls button {
    width: 34px;
    height: 34px;
  }

  .usecase-styles__sceneList {
    display: flex;
    gap: 20px;
    width: calc(100% + 20px);
    overflow-x: auto;
    margin-top: 24px;
    scroll-snap-type: x mandatory;
  }

  .usecase-styles__sceneCard:last-child {
    margin-right: 20px;
  }

  [dir="rtl"] .usecase-styles__sceneCard:last-child {
    margin-right: 0;
    margin-left: 20px;
  }

  .usecase-styles__sceneCard {
    width: min(78vw, 295px);
    min-width: min(78vw, 295px);
    height: 206px;
  }
}

@media (max-width: 767px) {
  .usecase-styles__howTo {
    min-height: 450px;
    background: linear-gradient(180deg, #f7f8f7 74.97%, #fff 99.84%);
    padding: 83px 20px 80px;
  }

  .usecase-styles__howTo > h2 {
    font-size: 30px;
    line-height: 36px;
  }

  .usecase-styles__stepGrid,
  .usecase-styles__downloadButton {
    display: none;
  }

  .usecase-styles__mobileHowToCard {
    position: relative;
    display: block;
    width: min(335px, 100%);
    height: 212px;
    margin: 40px auto 0;
    border-radius: 16px;
    background: #fff;
    text-align: left;
  }

  .usecase-styles__mobileHowToLine {
    position: absolute;
    top: 44px;
    left: 29px;
    width: 123px;
    height: 1px;
    transform: rotate(90deg);
    transform-origin: left center;
  }

  [dir="rtl"] .usecase-styles__mobileHowToLine {
    right: 29px;
    left: auto;
    transform: rotate(-90deg);
    transform-origin: right center;
  }

  .usecase-styles__mobileHowToCard ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .usecase-styles__mobileHowToCard li {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1c1c;
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
  }

  [dir="rtl"] .usecase-styles__mobileHowToCard li {
    right: 16px;
    left: 16px;
  }

  .usecase-styles__mobileHowToCard li:nth-child(1) {
    top: 18px;
  }

  .usecase-styles__mobileHowToCard li:nth-child(2) {
    top: 62px;
  }

  .usecase-styles__mobileHowToCard li:nth-child(3) {
    top: 120px;
  }

  .usecase-styles__mobileHowToCard li:nth-child(4) {
    top: 164px;
  }

  .usecase-styles__mobileHowToCard li > img,
  .usecase-styles__mobileHowToDoneIcon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
  }

  .usecase-styles__mobileHowToCard li:nth-child(2) span:last-child {
    width: 266px;
    line-height: 20px;
  }

  .usecase-styles__mobileHowToDoneIcon {
    position: relative;
    display: block;
  }

  .usecase-styles__mobileHowToDoneIcon img:first-child {
    position: absolute;
    inset: 0;
    width: 26px;
    height: 26px;
  }

  .usecase-styles__mobileHowToDoneIcon img:last-child {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 520px) {
  .usecase-styles__sceneHeader {
    align-items: flex-end;
    gap: 12px;
  }

  .usecase-styles__sceneHeader h3 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .usecase-styles__downloadButton,
  .usecase-styles__sceneControls button,
  .usecase-styles__sceneCard[data-clickable="true"],
  .usecase-styles__openInNew {
    transition: none;
  }
}
