.product-page__title {
  line-height: 150%;
  font-weight: 500;
}

.product-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 80px 0 200px;
}

.product-item {
  background-color: #F2F4F7;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-info {
  padding: 60px 56px 54px;
}

.product-process {
  font-size: 20px;
  line-height: 150%;
  color: #989898;
}

.product-name {
  font-weight: 500;
  font-size: 26px;
  line-height: 135%;
  max-width: 450px;
}

.product-process+.product-name {
  margin: 16px 0 0;
}

.product-button {
  display: inline-block;
  padding: 20px 40px;
  margin: 56px 0 0;
}

.product-button:hover {
  text-decoration: none;
}

.product-image__content {
  margin: auto 0 0;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.product-image__content:after {
  content: "";
  display: block;
  padding-top: 68.25%;
}

.product-image__content.larger:after {
  padding-top: 95.24%;
}

.product-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
}

.product-bg {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .3);
  z-index: 50;
  display: none;
  opacity: 0;
  transition: opacity .3s ease;
}

.product-bg_show {
  display: block;
}

.product-bg_active {
  opacity: 1;
}

.product-bg__wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.product-modal {
  background: #FFFFFF;
  box-shadow: 0px 10px 20px rgba(12, 11, 17, 0.1);
  border-radius: 8px;
  max-height: 100%;
  overflow: auto;
  position: relative;
  display: none;
  transform: translateY(20px) scale(.9);
  opacity: 0;
  transition-duration: .3s;
  transition-timing-function: ease;
  transition-property: opacity, transform;
}

.product-modal_show {
  display: block;
}

.product-modal_active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-modal[data-modal="chats"] {
  max-width: 660px;
  padding: 44px 40px;
  width: 100%;
}

.product-modal__title {
  font-weight: 500;
  font-size: 32px;
  line-height: 135%;
}

.product-modal__items {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 20px;
}

.product-category {
  display: block;
}

.product-category:hover {
  text-decoration: none;
}

.product-category:hover .product-category__image {
  transform: scale(1.05);
}

.product-category__image-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.product-category__image-content:after {
  content: "";
  padding-top: 57.14%;
  display: block;
}

.product-category__image {
  position: absolute;
  left: 0;
  top: 0;
  transform: scale(1);
  transition: transform .3s ease;
  width: 100%;
}

.product-category__name {
  font-size: 18px;
  line-height: 135%;
  margin: 12px 0 0;
}

.product-modal__close {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L8 8M15 15L8 8M8 8L15 1M8 8L1 15' stroke='%23CFCFCF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
  width: 24px;
  height: 24px;
  position: absolute;
  right: 0;
  top: 0;
  right: 20px;
  top: 20px;
  transition: background .3s ease;
  cursor: pointer;
}

.product-modal__close:hover {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L8 8M15 15L8 8M8 8L15 1M8 8L1 15' stroke='%23201D26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

@media (max-width: 1440px) {
  .product-page__title {
    font-size: 48px;
  }
}

@media (max-width:1300px) {
  .product-items {
    gap: 40px 30px;
    margin: 60px 0 140px;
  }

  .product-info {
    padding: 40px;
  }

  .product-process+.product-name {
    margin: 12px 0 0;
  }

  .product-name {
    font-size: 24px;
  }

  .product-button {
    margin: 30px 0 0;
  }
}

@media (max-width:1000px) {
  .product-info {
    padding: 35px 25px 20px;
  }

  .product-process {
    font-size: 18px;
  }

  .product-name {
    font-size: 22px;
  }

  .product-button {
    padding: 12px 25px;
  }

  .product-items {
    gap: 30px 20px;
    margin: 40px 0 100px;
  }

  .product-modal[data-modal="chats"] {
    padding: 35px 25px;
  }

  .product-modal__title {
    font-size: 26px;
  }

  .product-modal__items {
    margin: 30px 0 0;
    gap: 25px 16px;
  }

  .product-modal__close {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L8 8M15 15L8 8M8 8L15 1M8 8L1 15' stroke='%23CFCFCF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 0;
    top: 0;
    right: 15px;
    top: 15px;
  }
}

@media (max-width:900px) {
  .product-page__title {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .product-items {
    grid-template-columns: 1fr;
    margin: 30px 0 60px;
  }

  .product-item {
    border-radius: 18px;
  }

  .product-modal__title {
    font-size: 22px;
  }
}

@media (max-width:400px) {
  .product-modal__items {
    grid-template-columns: 1fr;
  }
}