.page-content {
  padding: 0 20px;
}

.welcome-bg {
  width: 100%;
  background-color: #ffe2ec;
  padding: 45px 0;
  margin-bottom: 30px;
  overflow: hidden;
}

.welcome-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 5px 0;
  margin-bottom: 0;
  text-align: left;
}

.welcome-section .welcome-text {
  flex: 1;
  min-width: 0;
}

.welcome-section h1 {
  margin-bottom: 0;
}

.welcome-section p {
  max-width: 640px;
}

.welcome-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 150px;
  flex-shrink: 0;
  transform: translateY(-70px);
  opacity: 0;
  animation: iconsDrop 0.7s ease-out forwards;
}

.welcome-icons img {
  height: auto;
  opacity: 0.8;
}

.welcome-icons img.icon-figma {
  width: 80px;
}

.welcome-icons img.icon-laptop {
  width: 104px;
}

.welcome-icons img.icon-drone {
  width: 104px;
}

@keyframes iconsDrop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-media {
  width: 100%;
}

.main-laptop-video {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.media-row {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.popup-section {
  position: relative;
  width: 50%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  z-index: 20;
  margin-left: 40px;
}

.popup-section.clickable,
.laptop-video.clickable {
  position: relative;
}

.block-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  pointer-events: auto;
}

.popup-section > *:not(.block-link),
.laptop-video > *:not(.block-link) {
  position: relative;
  z-index: 1;
}

.phone-stack {
  position: relative;
  width: 190px;
  height: 380px;
  pointer-events: auto;
}

.phone {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.5s ease-out;
}

.phone-1 {
  z-index: 10;
}

.phone-2 {
  z-index: 30;
}

.phone-3 {
  z-index: 20;
}

.phone-stack.show .phone-1 {
  transform: translateX(245px);
  opacity: 1;
}

.phone-stack.show .phone-2 {
  transform: translateX(120px);
  top: 20px;
  opacity: 1;
  transition-delay: 0.15s;
}

.phone-stack.show .phone-3 {
  transform: translateX(0);
  opacity: 1;
  transition-delay: 0.3s;
}

.laptop-video {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 10;
  min-height: 320px;
  opacity: 0;
  transform: translateX(-120px);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.6s ease-out,
    opacity 0.6s ease-out,
    visibility 0s linear 0.6s;
}

.laptop-video.show {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.6s ease-out,
    opacity 0.6s ease-out,
    visibility 0s linear 0s;
}

.design-laptop {
  padding: 80px 0;
  background: #ffffff;
}

.laptop-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.laptop-visual {
  display: flex;
  justify-content: flex-start;
}

.laptop-visual img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 6px;
  display: block;
}

.laptop-text h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.laptop-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.design-phones {
  padding: 90px 0;
  background: #141314;
  margin-top: 70px;
}

.phone-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.phone-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 16px;
  color: #fff;
}

.phone-text p {
  max-width: 420px;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 12px;
  color: #fff;
}

.phone-visuals {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 60px;
  align-items: center;
  justify-content: end;
}

.phones img {
  width: 450px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.figma-visual img {
  width: 230px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 16px;
}

@media (min-width: 901px) and (max-width: 1135px) {
  .design-phones .phone-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }

  .welcome-icons {
    gap: 80px;
  }

  .welcome-icons img.icon-figma {
    width: 60px;
  }

  .welcome-icons img.icon-laptop {
    width: 74px;
  }

  .welcome-icons img.icon-drone {
    width: 74px;
  }

  .design-phones .phone-text {
    flex: 1;
  }

  .design-phones .phone-visuals {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
  }

  .design-phones .phones img,
  .design-phones .figma-visual img {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
  }

  .laptop-visual img {
    max-width: 460px;
  }
}

@media (max-width: 1000px) {
  .laptop-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
    justify-items: center;
  }

  .design-laptop .laptop-text {
    order: 1;
  }

  .design-laptop .laptop-visual {
    order: 2;
    justify-content: center;
  }

  .laptop-visual img {
    max-width: 420px;
  }
}

@media (max-width: 900px) {
  .media-row {
    flex-direction: row;
    gap: 30px;
  }

  .welcome-icons {
    gap: 70px;
  }

  .welcome-icons img.icon-figma {
    width: 60px;
  }

  .welcome-icons img.icon-laptop {
    width: 74px;
  }

  .welcome-icons img.icon-drone {
    width: 74px;
  }

  .popup-section {
    justify-content: flex-start;
    margin-left: 0;
  }

  .phone-stack {
    width: 150px;
    height: 320px;
  }

  .phone-stack.show .phone-1 {
    transform: translateX(185px);
    opacity: 1;
  }

  .phone-stack.show .phone-2 {
    transform: translateX(95px);
    top: 20px;
    opacity: 1;
  }

  .phone-stack.show .phone-3 {
    transform: translateX(0px);
    opacity: 1;
  }

  .design-phones .phone-visuals {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
  }

  .design-phones .phones,
  .design-phones .figma-visual {
    width: 290px;
    max-width: 100%;
  }

  .design-phones .phones img,
  .design-phones .figma-visual img {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
  }
}

@media (max-width: 600px) {
  .welcome-bg {
    padding: 0 0 30px 0px;
  }

  .welcome-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .welcome-text {
    width: 100%;
  }

  .welcome-text p {
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
  }

  .welcome-icons {
    width: 100%;
    justify-content: center;
    gap: 50px;
  }

  .welcome-icons img.icon-figma {
    width: 40px;
  }

  .welcome-icons img.icon-laptop {
    width: 50px;
  }

  .welcome-icons img.icon-drone {
    width: 50px;
  }

  .page-content {
    padding: 0 16px;
  }

  .media-row {
    flex-direction: column;
    align-items: center;
  }

  .popup-section {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .laptop-video {
    width: 100%;
    justify-content: center;
    min-height: 260px;
    opacity: 1;
    transform: translateX(-120%);
    transition: transform 1.5s ease-out !important;
  }

  .laptop-video.show {
    transform: translateX(0);
  }

  .main-laptop-video {
    max-width: 380px;
  }

  .phone-stack {
    width: 140px;
    height: 260px;
  }

  .phone {
    transform: translateX(-220px);
    opacity: 0;
  }

  .phone-stack.show .phone-1 {
    transform: translateX(85px);
    opacity: 1;
  }

  .phone-stack.show .phone-2 {
    transform: translateX(0);
    top: 20px;
    opacity: 1;
  }

  .phone-stack.show .phone-3 {
    transform: translateX(-85px);
    opacity: 1;
  }

  .design-phones {
    padding: 40px 0;
    margin-top: 0;
  }

  .design-phones .phone-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .design-phones .phone-text,
  .design-phones .phone-visuals {
    width: 100%;
  }

  .design-phones .phone-text p {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .design-phones .phone-visuals {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    justify-content: center;
  }

  .design-phones .phones,
  .design-phones .figma-visual {
    width: min(240px, 100%);
  }

  .design-phones .phones img,
  .design-phones .figma-visual img {
    width: 100%;
    height: auto;
    display: block;
  }

  .design-laptop {
    padding: 40px 0;
  }

  .design-laptop .laptop-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
    justify-items: center;
  }

  .design-laptop .laptop-text {
    order: 1;
  }

  .design-laptop .laptop-visual {
    order: 2;
    justify-content: center;
  }

  .design-laptop .laptop-text p {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .laptop-visual img {
    max-width: 340px;
  }
}
