main {
  width: 50%;
  min-width: 500px;
  margin: 50px auto;
}
h1 {
  text-align: center;
}

.dokument:not(:first-of-type) {
  border-top: 1px solid var(--light)
}
.dokument {
  padding: 15px 0;
  display: grid;
  grid-template-areas:
    'n d'
    'f d';
  grid-template-columns: 1fr 200px
}

.dokument * {
  margin: 0;
}
.dokument .name {
  font-weight: 760;
  font-size: 150%;
  grid-area: n;
}
.dokument .fn {
  font-style: italic;
  font-weight: 200;
  grid-area: f;
}
.dokument a {
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  grid-area: d;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--main-col);
  color: white !important;
  border: 3px solid var(--main-col);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.dokument a:hover {
  background-color: white;
  color: black !important;
  border-radius: 20px;
}

@media screen and (max-width: 585px) {
  main {
    width: calc(100vw - 40px);
    min-width: unset;
  }
  .dokument {
    grid-template-columns: 1fr 70px;
  }
  .dokument a text {
    display: none;
  }
  .dokument a {
    background-image: url("/icon/download.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    width: unset;
    aspect-ratio: 1;
  }
}