.material-page {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 42px;
}

.material-page h1 {
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1.12;
}

.material-short-description {
  margin: 0 0 24px;
  max-width: 760px;
  color: #4b5563;
  font-size: 20px;
  line-height: 1.5;
}

.material-price {
  display: inline-block;
  margin-bottom: 32px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f3f4f6;
  font-size: 22px;
  font-weight: 700;
}

.material-content {
  max-width: 780px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.7;
}

.material-content p {
  margin: 0 0 18px;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.material-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.material-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

.material-card h2 a:hover {
  text-decoration: underline;
}

.material-card p {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.5;
}

.material-card-price {
  margin-top: auto;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .material-grid {
    grid-template-columns: 1fr;
  }

  .material-page {
    padding: 28px;
  }

  .material-page h1,
  .page-heading h1 {
    font-size: 32px;
  }
}