/* =========================================================
   DOCUMENTS
   ========================================================= */

.documents-page {
  width: min(94vw, 1180px);
  margin: 32px auto 48px;
}

.documents-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.document-group {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce6ee;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(20, 55, 80, .08);
}

.document-group-wide {
  grid-column: 1 / -1;
}

.document-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px 18px;
  color: #173b5f;
  background: linear-gradient(135deg, #f7fafc, #eaf5fb);
  border-bottom: 1px solid #e1eaf0;
  font-size: 1.08rem;
  font-weight: 700;
}

.document-group-title > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 9px;
  color: #0a7ec2;
  background: #dff0fa;
}

.document-group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 16px;
  list-style: none;
}

.document-group:not(.document-group-wide) ul {
  grid-template-columns: 1fr;
}

.document-group li {
  min-width: 0;
  margin: 0;
}

.document-group li a {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 58px;
  padding: 13px 14px;
  color: #234a73;
  background: #fbfdfe;
  border: 1px solid #e7eef3;
  border-radius: 8px;
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.document-group li a i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #0a7ec2;
}

.document-group li a:hover {
  background: #f0f8fc;
  border-color: #bdd9e8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 126, 194, .09);
}

@media (max-width: 800px) {
  .documents-page {
    width: calc(100% - 24px);
    margin: 22px auto 32px;
  }

  .documents-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .document-group-wide {
    grid-column: auto;
  }

  .document-group-title {
    min-height: 60px;
    padding: 12px 14px;
    font-size: 1rem;
  }

  .document-group-title > i {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .document-group ul,
  .document-group:not(.document-group-wide) ul {
    grid-template-columns: 1fr;
    padding: 11px;
    gap: 8px;
  }

  .document-group li a {
    min-height: 52px;
    padding: 11px 12px;
    font-size: .9rem;
  }
}

@media (max-width: 380px) {
  .documents-page {
    width: calc(100% - 18px);
  }

  .document-group ul {
    padding: 8px;
  }
}
