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

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

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

.home-yandex__bg-dots-2 {
  position: absolute;
  top: -288px;
  left: -229px;
  width: 2149px;
  height: 1608px;
  background: url("../img/home-yandex/bg-dots-2.webp") center / cover no-repeat;
  opacity: 0.05;
}

.home-yandex__bg-icon {
  position: absolute;
  top: -577px;
  left: -699px;
  width: 2611px;
  height: 1954px;
  background: url("../img/home-yandex/bg-icon.webp") center / cover no-repeat;
  opacity: 0.03;
}

.home-yandex__heading {
  position: absolute;
  top: 68px;
  left: 50%;
  z-index: 2;
  width: 706px;
  height: 57px;
  margin: 0;
  transform: translateX(-50%);
  font-family: "Barlow Condensed", "Barlow", Helvetica, sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -0.84px;
  text-align: center;
  color: #43328a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.home-yandex__heading-trail {
  font-family: "Manrope", Helvetica, sans-serif;
  font-weight: 600;
  color: #000;
}

.home-yandex__br-768 {
  display: none;
}

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

.home-yandex__copy-title {
  margin: 0;
  flex: none;
  width: 500px;
  max-width: 100%;
  height: 46px;
  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-yandex__copy-title-accent {
  font-family: "Barlow Condensed", "Barlow", Helvetica, sans-serif;
  font-weight: 700;
  color: #43328a;
}

.home-yandex__copy-body {
  margin: 0;
  flex: none;
  display: flex;
  align-items: flex-start;
  width: 500px;
  height: 168px;
}

.home-yandex__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-yandex__copy-body strong {
  font-weight: 500;
  color: #43328a;
}

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

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

.home-yandex__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-yandex__cta:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 3px;
}

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

.home-yandex__shot {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  border: 2px solid #b1b1b1;
  border-radius: 10px;
  box-shadow: 0 5px 10px 0 #b4d2ff;
}

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

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

.home-yandex__shot--picker {
  top: 262px;
  left: 287px;
  width: 732.543px;
  height: 425.599px;
  transform: rotate(-1deg);
  transform-origin: center center;
  z-index: 2;
}

/* Карточка уже в webp — без белой подложки и CSS-тени (иначе «вторая рамка») */
.home-yandex__shot.home-yandex__shot--connect {
  top: 197px;
  left: 657px;
  width: 425.264px;
  height: 122.922px;
  transform: rotate(1deg);
  transform-origin: center center;
  z-index: 4;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-yandex__shot--connect img {
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 5px 10px rgba(180, 210, 255, 0.85));
}

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

  .home-yandex__bg-dots {
    top: -238px;
    left: -159px;
    width: 1709px;
    height: 958px;
    background-image: url("../img/home-yandex/bg-dots-1440.webp");
  }

  .home-yandex__bg-dots-2 {
    top: -499px;
    left: -185px;
    width: 1659px;
    height: 1242px;
    background-image: url("../img/home-yandex/bg-dots-2-1440.webp");
  }

  .home-yandex__bg-icon {
    top: -502px;
    left: -652px;
    width: 2277px;
    height: 1704px;
    background-image: url("../img/home-yandex/bg-icon-1440.webp");
  }

  .home-yandex__heading {
    top: 68px;
    width: 613px;
    height: 53px;
    font-size: 38px;
    letter-spacing: -0.76px;
  }

  .home-yandex__copy {
    top: 229px;
    left: 876px;
    gap: 10px;
    width: 500px;
  }

  .home-yandex__copy-title {
    width: 500px;
    height: 46px;
    font-size: 32px;
  }

  .home-yandex__copy-body {
    width: 450px;
    height: 168px;
  }

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

  .home-yandex__copy-actions {
    width: 424px;
  }

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

  .home-yandex__shot {
    border-width: 1px;
  }

  .home-yandex__shot--picker {
    top: 234.42px;
    left: 167px;
    width: 595.931px;
    height: 346.229px;
  }

  .home-yandex__shot.home-yandex__shot--connect {
    top: 167px;
    left: 458px;
    width: 344.368px;
    height: 94.002px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 1023px) and (min-width: 750px) {
  .home-yandex {
    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-yandex;
  }

  .home-yandex__bg-dots {
    top: calc(-238 / 900 * 100%);
    left: calc(-150 / 768 * 100%);
    width: calc(2030 / 768 * 100%);
    height: calc(1138 / 900 * 100%);
    background-image: url("../img/home-yandex/bg-dots-768.webp");
  }

  .home-yandex__bg-dots-2 {
    top: calc(-15 / 900 * 100%);
    left: calc(-184 / 768 * 100%);
    width: calc(1223 / 768 * 100%);
    height: calc(915 / 900 * 100%);
    background-image: url("../img/home-yandex/bg-dots-2-768.webp");
  }

  .home-yandex__bg-icon {
    top: calc(-310 / 900 * 100%);
    left: 50%;
    width: calc(1933 / 768 * 100%);
    height: calc(1447 / 768 * 100cqi);
    background-image: url("../img/home-yandex/bg-icon-768.webp");
    transform: translateX(calc(-50% - 7.5 / 768 * 100%));
  }

  .home-yandex__br-768 {
    display: block;
  }

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

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

  .home-yandex__copy-title {
    width: 100%;
    height: auto;
    font-size: 3.125cqi; /* 24/768 */
    text-align: center;
  }

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

  .home-yandex__copy-body p {
    font-size: 2.083cqi; /* 16/768 */
    text-align: center;
  }

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

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

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

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

  .home-yandex__shot--picker {
    top: calc(206.89 / 900 * 100%);
    left: calc(93 / 768 * 100%);
    width: calc(548.361 / 768 * 100%);
    height: calc(318.591 / 768 * 100cqi);
  }

  .home-yandex__shot.home-yandex__shot--connect {
    top: calc(154 / 900 * 100%);
    left: calc(356 / 768 * 100%);
    width: calc(316.879 / 768 * 100%);
    height: calc(86.499 / 768 * 100cqi);
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 749px) {
  .home-yandex {
    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-yandex;
  }

  .home-yandex__bg-dots {
    top: 0;
    left: calc(-150 / 360 * 100%);
    width: calc(1275 / 360 * 100%);
    height: calc(715 / 700 * 100%);
    background-image: url("../img/home-yandex/bg-dots-360.webp");
  }

  .home-yandex__bg-dots-2 {
    top: calc(20 / 700 * 100%);
    left: calc(-112 / 360 * 100%);
    width: calc(993 / 360 * 100%);
    height: calc(743 / 700 * 100%);
    background-image: url("../img/home-yandex/bg-dots-2-360.webp");
  }

  .home-yandex__bg-icon {
    top: calc(-53 / 700 * 100%);
    left: calc(50% - 0.5 / 360 * 100%);
    width: calc(943 / 360 * 100%);
    height: calc(706 / 360 * 100cqi);
    background-image: url("../img/home-yandex/bg-icon-360.webp");
    transform: translateX(-50%);
  }

  .home-yandex__br-768 {
    display: block;
  }

  .home-yandex__heading {
    top: calc(55 / 700 * 100%);
    left: calc(50% + 0.5 / 360 * 100%);
    width: calc(285 / 360 * 100%);
    height: auto;
    transform: translateX(-50%);
    font-size: 5.556cqi; /* 20/360 */
    line-height: 1.2;
    letter-spacing: -0.111cqi; /* -0.4/360 */
  }

  .home-yandex__copy {
    top: calc(442 / 700 * 100%);
    left: calc(50% + 0.5 / 360 * 100%);
    transform: translateX(-50%);
    gap: calc(10 / 360 * 100cqi);
    width: calc(315 / 360 * 100%);
    height: calc(198 / 360 * 100cqi);
    align-items: stretch;
    pointer-events: auto;
  }

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

  .home-yandex__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-yandex__copy-body p {
    font-size: 3.333cqi; /* 12/360 */
    line-height: 1.4;
    text-align: center;
  }

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

  .home-yandex__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-yandex__cta {
    width: calc(247 / 360 * 100cqi);
    height: calc(46 / 360 * 100cqi);
    max-width: none;
    padding: 0;
    font-size: 3.889cqi; /* 14/360 */
  }

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

  .home-yandex__shot--picker {
    top: calc(208.33 / 700 * 100%);
    left: calc(22 / 360 * 100%);
    width: calc(305.29 / 360 * 100%);
    height: calc(177.37 / 360 * 100cqi);
  }

  .home-yandex__shot.home-yandex__shot--connect {
    top: calc(170 / 700 * 100%);
    left: calc(148 / 360 * 100%);
    width: calc(191.008 / 360 * 100%);
    height: calc(52.139 / 360 * 100cqi);
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}
