.documents-page {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  margin-top: 47px;
  margin-bottom: 140px;
  font-family: Roboto, Inter, Arial, sans-serif;
}

.breadcrumbs {
    font-size: 14px;
    color: #7a7a7a;
    margin-bottom: 50px;
    padding-left: 5px;
}

.breadcrumbs a {
    color: #555;
    text-decoration: none;
}

.documents-title {
  text-align: left;
  font-size: 28px;
  font-family: Roboto !important;
  font-weight: 400 !important;
  margin-bottom: 8px;
  letter-spacing: 0;
  line-height: normal;
  padding: 0px 0px 0px 5px;
}

.documents-subtitle {
  text-align: left;
  color: #64748b;
  margin-bottom: 40px;
  padding-left: 5px;
}

/* Сетка */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  justify-items: center;
}

/* Карточка */
.doc-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 24px;
  border: 1px solid rgb(0 0 0 / 16%);
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(5px);
  overflow: hidden;
  transition: box-shadow .3s ease-in-out, transform 0.5s;
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 9px 7px 3px rgba(15, 34, 79, .14);
  border-color: rgb(0 169 67 / 51%);
}

.doc-card.vertical {
  max-width: 279px;
}

.doc-card.vertical .doc-preview {
  width: 100%;
  aspect-ratio: 279 / 395;
}

.doc-card.vertical .doc-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 7px solid #f3f4f600;
}

.doc-card.vertical .doc-info {
  padding: 14px 12px 18px;
}

.doc-card.vertical .doc-info p {
  margin: 0;
  font-size: 14px;
  color: #444;
  line-height: 1.4;
  text-align: center;
}


/* Контакт */
.documents-contact {
  margin-top: 48px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(0,0,0,.04);
}

.documents-contact p {
  margin-bottom: 10px;
  font-size: 19px;
  color: #334155;
}

.documents-contact a {
    display: inline-block;
    font-size: 27px;
    font-family: Roboto;
    font-weight: 500;
    color: #00a943;
    text-decoration: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.documents-contact a:hover {
  transform: scale(1.05);
  opacity: 0.85;
}


/* Реквизиты */
.documents-info {
  background: #fff;
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  max-width: 900px;
}

.info-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  padding: 10px 0;
}

.info-label {
  font-size: 14px;
  color: #6b7280;
}

.info-value {
  font-size: 15px;
  color: #111827;
}

.info-value a {
  color: #2563eb;
  text-decoration: none;
}

.info-divider {
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: 22px 0;
}




/* Адаптив */
@media (max-width: 900px) {
  .documents-title,
  .documents-subtitle {
    text-align: center;
    padding-left: 0;
  }

  .doc-preview {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .documents-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .doc-card.vertical {
    max-width: 100%;
    border-radius: 17px;
  }

  .doc-card.vertical .doc-preview {
    aspect-ratio: 3 / 4;
  }
  .doc-card.vertical .doc-preview img {
    border-radius: 17px;
  }
  
  .doc-card.vertical .doc-info p {
    font-size: 13px;
  }

  .documents-contact {
    padding: 18px;
    border-radius: 20px;
    text-align: center;
  }

  .documents-contact p {
    font-size: 15px;
  }
}


@media (max-width: 360px) {
  .documents-grid {
    grid-template-columns: 1fr;
  }

  .doc-card.vertical {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .info-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .documents-info {
    padding: 24px 20px;
  }
}
