.home-image-editor {
  position: relative;
  width: 1920px;
  height: 800px;
  margin-inline: auto;
  background: #fff;
  border-radius: 100px;
  overflow: hidden;
}

.home-image-editor__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-image-editor__bg-dots {
  position: absolute;
  top: 0;
  left: 4px;
  width: 2681px;
  height: 1503px;
  background: url("../img/home-image-editor/bg-dots.webp") center / cover no-repeat;
  opacity: 0.3;
}

.home-image-editor__bg-dots-2 {
  position: absolute;
  top: -695px;
  left: -229px;
  width: 2164px;
  height: 1620px;
  background: url("../img/home-image-editor/bg-dots-2.webp") center / cover no-repeat;
  opacity: 0.05;
}

.home-image-editor__bg-icon {
  position: absolute;
  top: 50%;
  left: 831px;
  width: 1132px;
  height: 968px;
  background: url("../img/home-image-editor/bg-icon.webp") center / cover no-repeat;
  opacity: 0.03;
  transform: translateY(-50%);
}

.home-image-editor__heading {
  position: absolute;
  top: 68px;
  left: 50%;
  z-index: 2;
  width: 707px;
  height: 70px;
  margin: 0;
  transform: translateX(-50%);
  font-family: "Manrope", Helvetica, sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1.3;
  letter-spacing: -0.84px;
  text-align: center;
  color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.home-image-editor__heading-accent {
  font-family: "Barlow Condensed", "Barlow", Helvetica, sans-serif;
  font-weight: 700;
  color: #43328a;
}

.home-image-editor__copy {
  position: absolute;
  top: 258px;
  left: 265px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 500px;
  pointer-events: none;
}

.home-image-editor__copy-title {
  margin: 0;
  flex: none;
  width: 534px;
  max-width: 100%;
  height: 48px;
  font-family: "Manrope", Helvetica, sans-serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.3;
  color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.home-image-editor__copy-title-accent {
  font-family: "Barlow Condensed", "Barlow", Helvetica, sans-serif;
  font-weight: 700;
  color: #43328a;
}

.home-image-editor__copy-body {
  margin: 0;
  flex: none;
  display: flex;
  align-items: flex-start;
  width: 500px;
}

.home-image-editor__copy-body p {
  margin: 0;
  width: 100%;
  font-family: "Manrope", Helvetica, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: #1b1b1b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.home-image-editor__copy-body strong {
  font-weight: 500;
  color: #43328a;
}

.home-image-editor__copy-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  width: 424px;
}

.home-image-editor__cta-wrap {
  display: flex;
  align-items: flex-start;
  flex: none;
  width: 100%;
  padding: 10px 0;
  box-sizing: border-box;
}

.home-image-editor__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 404px;
  height: 71px;
  padding: 24px 26px;
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  background: #43328a;
  font-family: "Manrope", Helvetica, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.home-image-editor__cta:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 3px;
}

.home-image-editor__collage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.home-image-editor__shot {
  position: absolute;
  box-sizing: border-box;
  /* Как в teamwork: хром карточки в CSS, в webp — только UI-контент */
  overflow: hidden;
  background: #fff;
  border: 2px solid #b1b1b1;
  border-radius: 10px;
  box-shadow: 0 5px 10px 0 #b4d2ff;
}

.home-image-editor__shot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-image-editor__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
}

.home-image-editor__shot--editor {
  top: 355.13px;
  left: 878px;
  width: 711.882px;
  height: 340.53px;
  transform: rotate(1deg);
  transform-origin: center center;
  z-index: 2;
}

.home-image-editor__shot--toolbar {
  top: 246px;
  left: 910px;
  width: 585px;
  height: 83px;
  transform: rotate(-2deg);
  transform-origin: center center;
  z-index: 4;
}

.home-image-editor__shot--adjust {
  top: 181px;
  left: 1250px;
  width: 332.685px;
  height: 72.953px;
  transform: rotate(1deg);
  transform-origin: center center;
  z-index: 5;
}

.home-image-editor__deco {
  position: absolute;
  z-index: 3;
  background: transparent;
}

.home-image-editor__deco--lines {
  top: 364px;
  left: 1416.99px;
  width: 295px;
  height: 221px;
  transform: rotate(2deg);
  transform-origin: center center;
  background: transparent;
  z-index: 6;
  overflow: hidden;
  filter: drop-shadow(0 5px 20px #b4d2ff);
}

.home-image-editor__deco--lines img {
  display: block;
  width: 100%;
  height: 100%;
  /* Same as Figma: object-cover on the image fill */
  object-fit: cover;
  object-position: center;
  background: transparent;
}

.home-image-editor__shot picture,
.home-image-editor__deco picture {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 1679px) {
  .home-image-editor {
    width: 1440px;
    height: 700px;
    zoom: calc(100cqw / 1440px);
    margin-inline: 0;
  }

  .home-image-editor__bg-dots {
    top: 0;
    left: 4px;
    width: 1395px;
    height: 782px;
    background-image: url("../img/home-image-editor/bg-dots-1440.webp");
  }

  .home-image-editor__bg-dots-2 {
    top: -277px;
    left: -102px;
    width: 1494px;
    height: 1118px;
    background-image: url("../img/home-image-editor/bg-dots-2-1440.webp");
  }

  .home-image-editor__bg-icon {
    top: 50%;
    left: 494px;
    width: 1006px;
    height: 860px;
    background-image: url("../img/home-image-editor/bg-icon-1440.webp");
    transform: translateY(calc(-50% + 10px));
  }

  .home-image-editor__heading {
    top: 68px;
    width: 532px;
    height: 54px;
    font-size: 38px;
    letter-spacing: -0.76px;
  }

  .home-image-editor__copy {
    top: 226px;
    left: 138px;
    gap: 10px;
    width: 500px;
  }

  .home-image-editor__copy-title {
    width: 512px;
    max-width: 100%;
    height: 46px;
    font-size: 32px;
  }

  .home-image-editor__copy-body {
    width: 450px;
  }

  .home-image-editor__copy-body p {
    font-size: 18px;
  }

  .home-image-editor__copy-actions {
    width: 424px;
  }

  .home-image-editor__cta {
    width: 321px;
    height: 61px;
    font-size: 18px;
  }

  .home-image-editor__shot {
    border-width: 1px;
  }

  .home-image-editor__shot--editor {
    top: 290.43px;
    left: 684px;
    width: 598.648px;
    height: 286.358px;
  }

  .home-image-editor__shot--toolbar {
    top: 198.66px;
    left: 710.92px;
    width: 491.948px;
    height: 69.796px;
  }

  .home-image-editor__shot--adjust {
    top: 144px;
    left: 996.83px;
    width: 279.767px;
    height: 61.347px;
  }

  .home-image-editor__deco--lines {
    top: 297.89px;
    left: 1137.27px;
    width: 248.076px;
    height: 185.843px;
  }
}

@media (max-width: 1023px) and (min-width: 750px) {
  .home-image-editor {
    width: 100%;
    height: auto;
    min-height: 0;
    zoom: unset;
    aspect-ratio: 768 / 900;
    margin-inline: 0;
    overflow: hidden;
    container-type: inline-size;
    container-name: home-image-editor;
  }

  .home-image-editor__bg-dots {
    top: 0;
    left: calc(4 / 768 * 100%);
    width: calc(1646 / 768 * 100%);
    height: calc(923 / 900 * 100%);
    background-image: url("../img/home-image-editor/bg-dots-768.webp");
  }

  .home-image-editor__bg-dots-2 {
    top: calc(-40 / 900 * 100%);
    left: calc(-244 / 768 * 100%);
    width: calc(1286 / 768 * 100%);
    height: calc(963 / 900 * 100%);
    background-image: url("../img/home-image-editor/bg-dots-2-768.webp");
  }

  .home-image-editor__bg-icon {
    top: calc(50% - 26.5 / 900 * 100%);
    left: 50%;
    width: calc(879 / 768 * 100%);
    height: calc(751 / 768 * 100cqi);
    background-image: url("../img/home-image-editor/bg-icon-768.webp");
    transform: translate(-50%, -50%);
  }

  .home-image-editor__heading {
    top: calc(55 / 900 * 100%);
    left: calc(50% + 0.5 / 768 * 100%);
    width: calc(389 / 768 * 100%);
    height: auto;
    font-size: 3.646cqi;
    letter-spacing: -0.073cqi;
  }

  .home-image-editor__copy {
    top: calc(559 / 900 * 100%);
    left: 50%;
    transform: translateX(-50%);
    gap: calc(10 / 768 * 100cqi);
    width: calc(500 / 768 * 100%);
    align-items: center;
  }

  .home-image-editor__copy-title {
    width: 100%;
    height: auto;
    font-size: 3.125cqi;
    text-align: center;
  }

  .home-image-editor__copy-body {
    width: calc(450 / 500 * 100%);
    height: auto;
    justify-content: center;
  }

  .home-image-editor__copy-body p {
    font-size: 2.083cqi;
    text-align: center;
  }

  .home-image-editor__copy-actions {
    width: 100%;
    align-items: center;
  }

  .home-image-editor__cta-wrap {
    justify-content: center;
    padding: calc(10 / 768 * 100cqi) 0 0;
  }

  .home-image-editor__cta {
    width: calc(321 / 768 * 100cqi);
    height: calc(58 / 768 * 100cqi);
    padding: 0;
    font-size: 2.344cqi;
  }

  .home-image-editor__shot {
    border-width: 1px;
    border-radius: 5px;
  }

  .home-image-editor__shot--editor {
    top: calc(259.86 / 900 * 100%);
    left: calc(119 / 768 * 100%);
    width: calc(522.791 / 768 * 100%);
    height: calc(250.035 / 768 * 100cqi);
  }

  .home-image-editor__shot--toolbar {
    top: calc(179.73 / 900 * 100%);
    left: calc(142.52 / 768 * 100%);
    width: calc(429.611 / 768 * 100%);
    height: calc(60.944 / 768 * 100cqi);
  }

  .home-image-editor__shot--adjust {
    top: calc(132 / 900 * 100%);
    left: calc(392.19 / 768 * 100%);
    width: calc(244.317 / 768 * 100%);
    height: calc(53.566 / 768 * 100cqi);
  }

  .home-image-editor__deco--lines {
    top: calc(266.37 / 900 * 100%);
    left: calc(514.83 / 768 * 100%);
    width: calc(216.641 / 768 * 100%);
    height: calc(162.27 / 768 * 100cqi);
  }
}

@media (max-width: 749px) {
  .home-image-editor {
    width: 100%;
    height: auto;
    min-height: 0;
    zoom: unset;
    aspect-ratio: 360 / 700;
    margin-inline: 0;
    overflow: hidden;
    container-type: inline-size;
    container-name: home-image-editor;
  }

  .home-image-editor__bg-dots {
    top: 0;
    left: calc(4 / 360 * 100%);
    width: calc(1249 / 360 * 100%);
    height: calc(700 / 700 * 100%);
    background-image: url("../img/home-image-editor/bg-dots-360.webp");
  }

  .home-image-editor__bg-dots-2 {
    top: 0;
    left: calc(-217 / 360 * 100%);
    width: calc(940 / 360 * 100%);
    height: calc(704 / 700 * 100%);
    background-image: url("../img/home-image-editor/bg-dots-2-360.webp");
  }

  .home-image-editor__bg-icon {
    top: calc(50% - 85.5 / 700 * 100%);
    left: calc(50% + 0.5 / 360 * 100%);
    width: calc(417 / 360 * 100%);
    height: calc(357 / 360 * 100cqi);
    background-image: url("../img/home-image-editor/bg-icon-360.webp");
    transform: translate(-50%, -50%);
  }

  .home-image-editor__heading {
    top: calc(55 / 700 * 100%);
    left: calc(40 / 360 * 100%);
    width: calc(281 / 360 * 100%);
    height: calc(44 / 360 * 100cqi);
    transform: none;
    font-size: 5.556cqi;
    line-height: 1.3;
    letter-spacing: -0.111cqi;
  }

  .home-image-editor__copy {
    top: calc(443 / 700 * 100%);
    left: calc(23 / 360 * 100%);
    transform: none;
    gap: calc(10 / 360 * 100cqi);
    width: calc(315 / 360 * 100%);
    height: calc(198 / 360 * 100cqi);
    align-items: stretch;
    pointer-events: auto;
  }

  .home-image-editor__copy-title {
    flex: none;
    width: 100%;
    height: calc(18 / 360 * 100cqi);
    margin: 0;
    font-size: 4.444cqi;
    line-height: 1;
    text-align: center;
    overflow: hidden;
  }

  .home-image-editor__copy-body {
    flex: none;
    width: 100%;
    height: calc(104 / 360 * 100cqi);
    min-height: 0;
    margin-top: 0;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: calc(8 / 360 * 100cqi);
    box-sizing: border-box;
  }

  .home-image-editor__copy-body p {
    font-size: 3.333cqi;
    line-height: 1.4;
    text-align: center;
  }

  .home-image-editor__copy-actions {
    flex: none;
    width: 100%;
    height: calc(56 / 360 * 100cqi);
    align-items: center;
  }

  .home-image-editor__cta-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: calc(10 / 360 * 100cqi) 0 0;
    box-sizing: border-box;
  }

  .home-image-editor__cta {
    width: calc(247 / 360 * 100cqi);
    height: calc(46 / 360 * 100cqi);
    max-width: none;
    padding: 0;
    font-size: 3.889cqi;
  }

  .home-image-editor__shot {
    border-width: 1px;
    border-radius: 5px;
  }

  .home-image-editor__shot--editor {
    top: calc(227.65 / 700 * 100%);
    left: calc(20 / 360 * 100%);
    width: calc(317.417 / 360 * 100%);
    height: calc(151.843 / 360 * 100cqi);
  }

  .home-image-editor__shot--toolbar {
    top: calc(165.98 / 700 * 100%);
    left: calc(35 / 360 * 100%);
    width: calc(260.843 / 360 * 100%);
    height: calc(37.009 / 360 * 100cqi);
  }

  .home-image-editor__shot--adjust {
    top: calc(137 / 700 * 100%);
    left: calc(186.6 / 360 * 100%);
    width: calc(148.339 / 360 * 100%);
    height: calc(32.529 / 360 * 100cqi);
  }

  .home-image-editor__deco--lines {
    top: calc(239 / 700 * 100%);
    left: calc(247 / 360 * 100%);
    width: calc(131.536 / 360 * 100%);
    height: calc(98.545 / 360 * 100cqi);
  }
}
