/* СЕКЦИЯ «СОСТАВ И МАТЕРИАЛЫ» — страница товара */

.product-materials {
  padding: 60px 0;
  position: relative;
}

.product-materials::before {
  background: url('../../imgs/product-scheme.png') no-repeat left top / contain;
  position: absolute;
  content: '';
  opacity: 0.6;
  height: 100%;
  left: 0;
  top: 0;
  width: auto;
  aspect-ratio: 950 / 694;
}

.product-materials__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-materials__intro {
  position: relative;
  isolation: isolate;
  padding-top: 40px;
}

.product-materials__intro::before {
  content: '';
  position: absolute;
  inset: -20px -40px auto -40px;
  z-index: -1;
  height: 320px;
  
  opacity: 0.6;
  pointer-events: none;
}

/* ---- Карточка материалов ---- */

.product-materials__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background-color: var(--cards);
  border: 1px solid #FFFFFF;
  position: relative;
  z-index: 2;
}

.product-materials__card-title {
  padding-bottom: 20px;
  border-bottom: 1px solid #fff;
}

.product-materials__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid #fff;
}

.product-materials__group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.product-materials__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-materials__point {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-materials__point::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #fff;
}

/* ============================================
   ПЛАНШЕТ ≤ 1080px
   ============================================ */

@media (max-width: 1080px) {

  .product-materials__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================
   МОБАЙЛ ≤ 768px
   ============================================ */

@media (max-width: 768px) {

  .product-materials {
    padding: 30px 0;
  }

  .product-materials__inner {
    gap: 40px;
  }

  .product-materials__intro {
    padding-top: 0;
  }

  .product-materials__intro::before {
    display: none;
  }

  .product-materials__card {
    padding: 10px;
  }

  .product-materials__group {
    padding-bottom: 0;
    border-bottom: none;
  }
}
