.screens {
  overflow: hidden;
  padding-top: 120px;
}

.screens-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 38px;
}

.screens-head h2 {
  max-width: 720px;
}

.screens-head > p {
  max-width: 385px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.55;
}

.screens-shell {
  position: relative;
}

.screens-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
}

.screen-counter {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

.screen-counter b {
  color: var(--ink);
}

.screens-controls > div {
  display: flex;
  gap: 8px;
}

.screen-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #ded3fb;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.screen-arrow:hover,
.screen-arrow:focus-visible {
  background: var(--purple);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.screen-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 2px 10px;
}

.screen-carousel::-webkit-scrollbar {
  display: none;
}

.screen-lightbox-open {
  overflow: hidden;
}

.screen-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(18, 10, 34, .86);
  backdrop-filter: blur(9px);
}

.screen-lightbox[hidden] {
  display: none;
}

.screen-lightbox-panel {
  position: relative;
  width: min(1420px, 100%);
  max-height: calc(100vh - 60px);
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .35);
}

.screen-lightbox-frame {
  max-height: calc(100vh - 76px);
  overflow: hidden;
  border-radius: 14px;
  background: #faf9ff;
}

.screen-lightbox-frame img {
  display: block;
  width: 122%;
  max-width: none;
  max-height: calc(100vh - 76px);
  object-fit: contain;
  object-position: center top;
  transform: translateX(-18%);
}

.screen-lightbox-frame--store img {
  width: 100%;
  transform: none;
}

.screen-lightbox-close {
  position: absolute;
  z-index: 1;
  top: 17px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 50%;
  background: rgba(42, 23, 83, .88);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: transform .2s ease, background .2s ease;
}

.screen-lightbox-close:hover,
.screen-lightbox-close:focus-visible {
  background: var(--purple);
  outline: 2px solid #fff;
  transform: scale(1.07);
}

.screen-card {
  position: relative;
  display: grid;
  flex: 0 0 min(760px, 78vw);
  grid-template-columns: minmax(0, 1.58fr) minmax(210px, .72fr);
  min-height: 345px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #e8e1f7;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(46, 20, 92, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .screen-card:hover {
    z-index: 2;
    box-shadow: 0 25px 55px rgba(46, 20, 92, .16);
    transform: scale(1.025);
  }
}

.screen-shot {
  position: relative;
  min-height: 345px;
  overflow: hidden;
  background: #f8f6ff;
}

.screen-shot::after {
  position: absolute;
  inset: 0;
  border-right: 1px solid #ece5fa;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  content: "";
  pointer-events: none;
}

.screen-shot img {
  display: block;
  width: 122%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: translateX(-18%);
}

.screen-shot--store img {
  width: 100%;
  transform: none;
}

.screen-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 27px;
}

.screen-copy span {
  display: block;
  margin-bottom: 10px;
  color: var(--purple);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.screen-copy h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.32rem;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.screen-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.52;
}

@media (max-width: 760px) {
  .screens {
    padding-top: 82px;
  }

  .screens-head {
    display: block;
    margin-bottom: 25px;
  }

  .screens-head > p {
    margin-top: 16px;
    font-size: .98rem;
  }

  .screen-carousel {
    gap: 14px;
    margin-right: -20px;
    padding-right: 20px;
  }

  .screen-card {
    display: block;
    flex-basis: min(84vw, 390px);
    min-height: 0;
    border-radius: 20px;
  }

  .screen-shot {
    min-height: 226px;
  }

  .screen-copy {
    min-height: 198px;
    padding: 23px 22px 25px;
  }

  .screen-copy h3 {
    font-size: 1.18rem;
  }

  .screen-lightbox {
    padding: 14px;
  }

  .screen-lightbox-panel {
    max-height: calc(100vh - 28px);
    padding: 5px;
    border-radius: 15px;
  }

  .screen-lightbox-frame,
  .screen-lightbox-frame img {
    max-height: calc(100vh - 38px);
    border-radius: 11px;
  }

  .screen-lightbox-close {
    top: 13px;
    right: 13px;
    width: 39px;
    height: 39px;
    font-size: 1.8rem;
  }
}
