.documents-page {
  padding: calc(var(--site-header-offset, 110px) + 20px) 24px 72px;
  background: #fff;
}

.documents-wrap {
  max-width: 1240px;
  margin: 0 auto;
}

.documents-section {
  margin-top: 48px;
}

.documents-section-certificates {
  margin-top: 0;
}

.documents-section-title {
  margin: 0 0 20px;
  padding: 0;
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: #929292;
  text-align: left;
}

.documents-section-empty {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.documents-page-title {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: #929292;
  text-align: left;
}

.documents-grid {
  display: grid;
  gap: 8px;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
}

.documents-grid-certificates {
  grid-template-columns: repeat(6, 168px);
  margin-top: 25px;
}

.documents-grid-wide {
  grid-template-columns: repeat(7, 168px);
  row-gap: 30px;
  column-gap: 8px;
}

.doc-card {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  display: flex;
  flex-direction: column;
  width: 168px;
  height: 226px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.doc-card-link {
  cursor: pointer;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.doc-card-link:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #b5b5b5;
}

.doc-card-media {
  padding: 4px;
  background: #efefef;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-card-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border: 1px solid #cfcfcf;
}

.documents-section-certificates .doc-card-media {
  flex: 0 0 188px;
  height: 188px;
}

.documents-section-certificates .doc-card-title {
  background: #c00000;
  color: #ffffff !important;
  font-family: 'Kdam Thmor Pro', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  min-height: 34px;
  padding: 4px 6px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
}

.documents-section-catalog .doc-card-media,
.documents-section-manuals .doc-card-media {
  padding: 0;
  overflow: hidden;
}

.documents-section-catalog .doc-card-media img,
.documents-section-manuals .doc-card-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  border: none;
}

@media (max-width: 1240px) {
  .documents-grid-wide {
    grid-template-columns: repeat(auto-fill, 168px);
  }
}

@media (max-width: 768px) {
  .documents-grid-certificates,
  .documents-grid-wide {
    grid-template-columns: repeat(auto-fill, 168px);
    justify-content: center;
  }

  .documents-page {
    padding: 110px 16px 48px;
  }
}

