.main-block {
  position: relative;
}

.main-block .main-title {
  font-family: var(--second-family);
  font-weight: 600;
/*   font-size: 50px; */
  line-height: 120%;
  width: 110%;
  text-transform: uppercase;
  color: var(--background);
}

.main-block .wrapper {
  display: flex;
  gap: 130px;
  padding-left: calc((100% - 1530px) / 2);
}

.main-content {
  max-width: 620px;
  width: 100%;
  flex-shrink: 0;
  padding: 66px 0 77px;
}

.main-title {
  margin-bottom: 20px;
}

.main-advants.single-item {
  justify-content: center;
}

.main-title span {
  display: block;
  color: var(--second);
  position: relative;
  border-right: 6px solid var(--second);
  border-left: 6px solid var(--second);
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  padding: 10px 3px;
}

.main-title span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 78%;
  transform: translateY(-50%);
  background: var(--second);
  opacity: 0.2;
  pointer-events: none;
}

.main-desc {
  margin-bottom: 40px;
}

.main-desc * {
  font-size: 20px;
  line-height: 130%;
  letter-spacing: 0%;
  color: var(--head-primary);
}

.main-desc strong {
  font-weight: 700;
}

.main-desc *:last-child {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 130%;
  color: var(--background);
}

.main-btn {
  box-shadow: 0 6px 1px 0 #b77d00;
  border-radius: 5px;
  padding: 20px 40px;
  width: 360px;
  height: 70px;
  transition: all 0.3s ease;
  position: relative;
  color: var(--head-primary);
  font-size: 20px;
  font-weight: 500;
  line-height: 120%;
}
.main-btn::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--secondary-hover);
  z-index: -1;
  border-radius: inherit;
  transition: all 0.3s ease-in;
  box-shadow: inherit;
}
.main-btn:hover::before {
  opacity: 1;
}
.main-btn:hover {
  background: none !important;
  color: var(--head-primary);
}

.main-advants {
  margin-top: 10px;
  max-width: 620px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.main-advantage {
  border-radius: 5px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.main-advantage__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

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

.main-advantage__name {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 16px;
  line-height: 140%;
  color: var(--background);
}

.main-products {
  position: relative;
  width: 100%;
}

.main-products__swiper {
  max-width: 500px;
  width: 100%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--second);
}

.main-products__swiper .swiper-slide {
  height: auto;
  opacity: 0 !important;
}

.main-products__swiper .swiper-slide.swiper-slide-active {
  opacity: 1 !important;
}

.main-products__swiper-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.main-products__swiper-background img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.main-products__block {
  /* max-width: 415px; */
  width: 50%;
  height: 100%;
  top: 0;
  right: 0;
  border-radius: 10px;
  overflow: hidden;
  position: absolute;
  flex-shrink: 0;
}

.main-products__photo {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

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

.main-product {
  position: relative;
  z-index: 1;
  padding: 60px 30px;
}

.main-product__tags-wrapper {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 80%;
}

.main-product__tag {
  padding: 8px 10px;
  border-radius: 5px;
  width: fit-content;
  color: var(--head-secondary);
  background: var(--primary);
}

.main-product__image {
  width: 100%;
  height: 300px;
  margin-bottom: 38px;
}

.main-product__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.main-product__title {
  color: var(--head-secondary);
  margin-bottom: 38px;
  width: 80%;
}

.main-product__bottom {
  width: 80%;
  display: flex;
  align-items: center;
  gap: 38px;
}

.main-product__price .price.price-sale {
  color: var(--head-secondary);
  margin-bottom: 15px;
}

.main-product__price .price.price-regular {
  color: var(--secondary-text);
}

.main-product__submit-wrapper {
  padding: 0 !important;
  border: none !important;
}

.main-product__submit-wrapper a {
  gap: 10px;
}

.main-product__submit-wrapper a {
  color: var(--background);
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  background: var(--primary);
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.4s ease-out;
}

.main-product__submit-wrapper a:hover {
  background: var(--primary-hover);
}

.main-products__buttons {
  position: absolute;
  left: 78px;
  bottom: 60px;
  z-index: 10;
  margin-top: 0;
}

.main-background {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  z-index: -1;
  opacity: 0.3;
  filter: blur(5px);
}

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

@media (max-width: 1800px) {
  .main-block .wrapper {
    gap: 30px;
  }
}

@media (max-width: 1540px) {
  .main-block .wrapper {
    flex-direction: column;
    gap: 0px;
    padding: 0 15px;
  }

  .main-content {
    max-width: 40%;
    padding: 40px 0;
  }

  .main-products__swiper {
    max-width: unset;
    width: 100%;
    position: relative;
    top: unset;
    left: unset;
  }

  .banner-right {
    right: 0 !important;
    bottom: 0 !important;
    width: 40% !important;
  }

  .main-products__block {
    margin-top: 15px;
    position: relative;
    width: fit-content;
    top: unset;
    left: unset;
    height: fit-content;
  }

  .main-products__buttons {
    left: 0;
    position: relative;
    bottom: 0;
    height: fit-content;
  }

  .main-products__photo {
    display: none;
  }

  .main-product {
    padding: 30px 15px;
  }

  .main-product__image {
    max-height: unset;
    height: 250px;
  }

  .main-product__image img {
    height: 100%;
  }

  .main-title,
  .main-desc {
    margin-bottom: 20px;
  }

  .main-advants {
    margin-top: 10px;
  }

  .main-background {
    display: none;
  }
  .main-product__title {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .main-content {
    padding: 20px 0 40px;
  }

  .main-btn {
    width: 100%;
  }

  .main-product__bottom {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: flex-start;
  }

  .main-product__price .price.price-sale {
    margin-bottom: 5px;
  }

  .main-product__image {
    height: 150px;
  }

  .main-product__submit-wrapper {
    width: 100%;
  }

  .main-product__title {
    margin-bottom: 15px;
  }

  .main-product__tag {
    padding: 3px 7px;
  }

/*     font-size: 35px; */
  }
}

/* ========== НОВЫЙ БАННЕР ========== */
.mainbanner-block {
  position: relative;
  /* background: linear-gradient(98.87deg, #004FB7 12.83%, #0065EA 50%, #004FB7 87.17%);*/
  border-image-width: 2px;
  /* border-image-source: linear-gradient(113.36deg, #0047CC 7.51%, #0065EA 43.87%, #0047CC 92.49%); fallback */
  overflow: visible;
  isolation: isolate;
}
/*
.mainbanner-block.has-before-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: right bottom;
  background-repeat: no-repeat;
  pointer-events: none;
  background-image: url(images/mainBefore.svg);
  z-index: 0;
  opacity: 50%;
}*/

.mainbanner-block .wrapper {
  position: relative;
  z-index: 2;
}

/* Правая часть с картинкой */
.banner-right {
  position: absolute;
  bottom: -138px;
  right: 140px;
  z-index: 10;
  pointer-events: none;
}

.banner-right__image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.banner-right__image img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-right__points {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.banner-point {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  z-index: 3;
}

.banner-point__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 100px;
  padding: 16px;
  background: var(--background-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.banner-point__btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.banner-point__btn path {
  fill: var(--head-primary);
  transition: fill 0.2s;
}

.banner-point__btn:hover {
  background: var(--secondary-hover);
  transform: scale(1.05);
}

.banner-point__btn:hover path {
  fill: var(--background);
}

.banner-point__tooltip {
  position: absolute;
  bottom: calc(-130% - 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--background-secondary);
  border-radius: 5px;
  padding: 15px;
  min-width: 200px;
  max-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in;
  white-space: normal;
  word-break: break-word;
  z-index: 10;
  pointer-events: none;

  font-weight: 500;
  font-size: 18px;
  line-height: 120%;
  text-align: center;
  color: var(--head-primary);
}

/* Показываем подсказку при наведении (десктоп) */
.banner-point:hover .banner-point__tooltip {
  opacity: 1;
  visibility: visible;
}

/* Для мобильных – показываем по клику (добавляется класс .active) */
.banner-point.active .banner-point__tooltip {
  opacity: 1;
  visibility: visible;
}

/* Сетка преимуществ после баннера */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 180px auto 80px;
  max-width: 1530px;
  padding: 0 15px;
}

.advantages-grid__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.2s;
}

.advantages-grid__icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;

  background: var(--background-secondary);
  border-radius: 5px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantages-grid__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.advantages-grid__content {
  flex: 1;
}

.advantages-grid__title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--head-primary);
}

.advantages-grid__desc {
  font-weight: 300;
  font-size: 16px;
  line-height: 140%;
  color: var(--main-text-primary);
}

/* Адаптив */
@media (max-width: 1200px) {
  .banner-right {
    width: 40%;
    max-width: 450px;
  }
  .advantages-grid {
    gap: 20px;
    margin: 40px auto;
  }
  .advantages-grid__item {
    padding: 20px;
    gap: 15px;
  }

  .advantages-grid__title {
    font-size: 18px;
  }
  .advantages-grid__desc {
    font-size: 14px;
  }
}

@media (max-width: 1100px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .main-content {
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  .main-content {
    max-width: 100%;
  }
  .mainbanner-block.has-before-bg::before {
    display: none;
  }
  .main-block .main-title {
    width: 100%;
  }
  .banner-right {
    display: none;
  }
  .banner-point {
    left: 0 !important;
    top: 0 !important;
    position: relative;
    transform: none;
    margin-bottom: 15px;
    pointer-events: auto;
  }
  .banner-point__tooltip {
    position: relative;
    left: 0 !important;
    top: 0 !important;
    transform: none;
    opacity: 1;
    visibility: visible;
    margin-top: 5px;
    border: 1px solid var(--stroke-secondary);
    background: var(--background-secondary);
    display: block;
    width: 100%;
    max-width: none;
  }
  .banner-point__tooltip::after {
    display: none;
  }
  .banner-right__points {
    position: relative;
    pointer-events: auto;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    left: 15px;
    display: none;
  }
  .banner-right {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
    display: block;
  }
  .banner-right__image {
    display: none;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
    margin: 30px auto;
    padding: 0 15px;
  }
  .advantages-grid__item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 20px;
  }

  .banner-point__btn {
    width: 44px;
    height: 44px;
    display: none;
  }
  .banner-point__btn svg {
    width: 24px;
    height: 24px;
  }
  .main-btn-add {
    min-width: unset !important;
  }
}

.home .main-btn-wrapper {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 10px 16px;
}

.main-btn-add {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 120%;
  color: var(--background);
  min-width: 180px;
}
.main-btn-add b {
  font-weight: 700;
  color: var(--background);
}
