.home-new-facts {
  margin-top: clamp(18px, 2vw, 28px);
  margin-bottom: clamp(18px, 2vw, 28px);
}

.home-new-facts__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-new-facts__item {
  min-width: 0;
  transition: all .3s ease;
}

.home-new-facts__item--big,
.home-new-facts__item--wide {
  flex: 1 1 calc(40% - 8px);
}

.home-new-facts__item--box {
  flex: 1 1 calc(29% - 8px);
}

.home-new-facts__big,
.home-new-facts__box,
.home-new-facts__wide {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-new-facts__big {
  position: relative;
  height: 257px;
  overflow: hidden;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all .3s ease;
}

.home-new-facts__big:hover {
  border-color: rgba(46, 33, 96, .36);
}

.home-new-facts__big-wrap {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 32px;
}

.home-new-facts__label {
  display: block;
  margin-bottom: 8px;
  color: #767e8b;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.home-new-facts__big-title {
  display: block;
  max-width: 520px;
  color: #101820;
  font-family: var(--font-ui, Arial, sans-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 24px;
}

.home-new-facts__big-subtitle {
  display: block;
  margin-top: 10px;
  color: #767e8b;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.home-new-facts__big-btn {
  width: max-content;
  margin-top: auto;
  padding: 12px 28px;
  border-radius: 8px;
  background: var(--brand-purple, #2E2160);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.home-new-facts__mark {
  position: absolute;
  right: 32px;
  bottom: 32px;
  width: 132px;
  height: auto;
  opacity: .16;
  transition: opacity .3s ease;
}

.home-new-facts__big:hover .home-new-facts__mark {
  opacity: .32;
}

.home-new-facts__mobile-arrow {
  display: none;
  position: absolute;
  right: 20px;
  bottom: 20px;
}

.home-new-facts__box {
  position: relative;
  height: 259px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all .3s ease;
}

.home-new-facts__box:hover {
  transform: translateY(-5px);
}

.home-new-facts__box::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 13px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg width='13' height='17' viewBox='0 0 13 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.495 10.495C12.7683 10.2216 12.7683 9.77839 12.495 9.50503L8.0402 5.05025C7.76684 4.77689 7.32362 4.77689 7.05025 5.05025C6.77689 5.32362 6.77689 5.76684 7.05025 6.0402L11.0101 10L7.05025 13.9598C6.77689 14.2332 6.77689 14.6764 7.05025 14.9497C7.32362 15.2231 7.76683 15.2231 8.0402 14.9497L12.495 10.495ZM0 10.7H12V9.3H0V10.7Z' fill='white'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transition: opacity .3s ease;
}

.home-new-facts__box:hover::after {
  opacity: 1;
}

.home-new-facts__box-image,
.home-new-facts__wide-image {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  clip-path: content-box;
}

.home-new-facts__box-image::before,
.home-new-facts__wide-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
  background: linear-gradient(60.89deg, rgba(20, 25, 26, .4) 0%, rgba(20, 25, 26, 0) 100%);
}

.home-new-facts__box-image img,
.home-new-facts__wide-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 259px;
  object-fit: cover;
}

.home-new-facts__box-title,
.home-new-facts__wide-title {
  position: absolute;
  z-index: 2;
  right: 40px;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 18px;
}

.home-new-facts__wide {
  position: relative;
  z-index: 1;
  height: 257px;
  overflow: hidden;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all .3s ease;
}

.home-new-facts__wide:hover {
  border-color: rgba(46, 33, 96, .36);
}

.home-new-facts__wide:hover .home-new-facts__wide-btn {
  background-color: #f6f5f4;
}

.home-new-facts__wide-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.home-new-facts__wide-image {
  position: relative;
  z-index: 1;
}

.home-new-facts__wide-title {
  z-index: 4;
}

.home-new-facts__wide-btn {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 5;
  display: flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  border-radius: .8rem;
  background-color: #fff;
  color: #292522;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  transition: all .3s ease;
}

.home-new-facts__wide-icon {
  display: flex;
  align-items: center;
}

.home-new-facts__wide-icon::before {
  content: "";
  width: 2rem;
  height: 2rem;
  margin-right: .8rem;
  background: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.666748 3.16699L6.50008 0.666992L11.5001 3.16699L16.7526 0.916159C16.816 0.888979 16.8851 0.877966 16.9539 0.884111C17.0226 0.890255 17.0887 0.913364 17.1463 0.951363C17.2038 0.989362 17.2511 1.04106 17.2837 1.10182C17.3164 1.16259 17.3335 1.23051 17.3334 1.29949V14.8337L11.5001 17.3337L6.50008 14.8337L1.24758 17.0845C1.18418 17.1117 1.11501 17.1227 1.0463 17.1165C0.977591 17.1104 0.911481 17.0873 0.853904 17.0493C0.796327 17.0113 0.749086 16.9596 0.716421 16.8988C0.683755 16.8381 0.666687 16.7701 0.666748 16.7012V3.16699ZM12.3334 15.1628L15.6667 13.7345V3.19449L12.3334 4.62283V15.1628ZM10.6667 15.0537V4.61366L7.33342 2.94699V13.387L10.6667 15.0537ZM5.66675 13.3778V2.83783L2.33342 4.26616V14.8062L5.66675 13.3778Z' fill='%23292522'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

.home-new-modal {
  position: fixed;
  inset: 0;
  z-index: 1425;
  opacity: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: opacity .22s ease;
}

.home-new-modal[hidden] {
  display: none;
}

.home-new-modal.is-open {
  opacity: 1;
}

.home-new-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 14, .64);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.home-new-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56px minmax(0, 1080px) 56px;
  align-items: center;
  gap: 20px;
  width: min(1220px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 46px 0;
}

.home-new-modal__card {
  position: relative;
  overflow: hidden;
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  background: #fff;
  color: #101820;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .22);
}

.home-new-modal__image-wrap {
  height: min(46vh, 470px);
  overflow: hidden;
  background: #f3f2f0;
}

.home-new-modal__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-new-modal__body {
  padding: 28px 44px 36px;
}

.home-new-modal__title {
  max-width: 850px;
  margin: 0 0 18px;
  color: #101820;
  font-family: var(--font-ui, Arial, sans-serif);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.home-new-modal__text {
  max-width: 920px;
  margin: 0;
  color: #24272d;
  font-size: clamp(17px, 1.15vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-line;
}

.home-new-modal__list {
  display: grid;
  gap: 8px;
  max-width: 920px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(16, 24, 32, .78);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.home-new-modal__list li {
  position: relative;
  padding-left: 20px;
}

.home-new-modal__list li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-purple, #2E2160);
}

.home-new-modal__button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 12px 28px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-purple, #2E2160);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
}

.home-new-modal__close,
.home-new-modal__nav {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #101820;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
  transition: transform .2s ease, background-color .2s ease;
}

.home-new-modal__close:hover,
.home-new-modal__nav:hover {
  background: #f6f5f4;
  transform: translateY(-1px);
}

.home-new-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  font-size: 30px;
}

.home-new-modal__nav {
  justify-self: center;
}

@media (max-width: 750px) {
  .home-new-facts {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .home-new-facts__grid {
    flex-direction: column;
  }

  .home-new-facts__item--big,
  .home-new-facts__item--box,
  .home-new-facts__item--wide {
    flex-basis: auto;
    width: 100%;
  }

  .home-new-facts__big {
    width: 100%;
    height: 259px;
    border-color: rgba(46, 33, 96, .36);
  }

  .home-new-facts__big-wrap {
    position: static;
    padding: 20px;
  }

  .home-new-facts__label {
    position: static;
    max-width: 250px;
    margin: 0 0 8px 0;
    color: inherit;
    font-weight: 500;
    line-height: 20px;
  }

  .home-new-facts__big-title {
    max-width: 100%;
  }

  .home-new-facts__big-subtitle {
    display: block;
    visibility: visible;
    margin-top: 8px;
    opacity: 1;
  }

  .home-new-facts__mark {
    display: block;
    right: 20px;
    bottom: 20px;
    width: 96px;
    opacity: .16;
  }

  .home-new-facts__big-btn {
    display: inline-flex;
    width: max-content;
    margin-top: auto;
    align-items: center;
    justify-content: center;
  }

  .home-new-facts__mobile-arrow {
    display: none;
  }

  .home-new-facts__box {
    width: 100%;
    height: 250px;
  }

  .home-new-facts__box:hover {
    transform: none;
  }

  .home-new-facts__box::after {
    opacity: 1;
  }

  .home-new-facts__wide {
    width: 100%;
    height: auto;
    margin-top: 20px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .home-new-facts__wide-image {
    height: 257px;
  }

  .home-new-facts__wide-image img {
    min-height: 0;
  }

  .home-new-facts__wide-title {
    bottom: 86px;
  }

  .home-new-facts__wide-btn {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 10px;
    padding: 1rem 1.4rem;
    text-decoration: none;
  }

  .home-new-modal__dialog {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 100dvh;
    padding: 0;
  }

  .home-new-modal__card {
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .home-new-modal__image-wrap {
    height: 42dvh;
  }

  .home-new-modal__body {
    padding: 22px 20px max(32px, calc(env(safe-area-inset-bottom) + 32px));
  }

  .home-new-modal__text {
    font-size: 16px;
  }

  .home-new-modal__list {
    font-size: 15px;
  }

  .home-new-modal__button {
    width: 100%;
  }

  .home-new-modal__close,
  .home-new-modal__nav {
    position: absolute;
    z-index: 3;
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .home-new-modal__close {
    top: 12px;
    right: 12px;
  }

  .home-new-modal__nav--prev {
    top: calc(21dvh - 22px);
    left: 12px;
  }

  .home-new-modal__nav--next {
    top: calc(21dvh - 22px);
    right: 12px;
  }
}
