.directory-page > h2 {
  margin: 10px 0 0;
  text-align: center;
  text-transform: none;
  line-height: 1;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.directory-rule {
  height: 2px;
  margin: 30px 30px 50px;
  border: 0;
  background: #475a00;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 30px;
  margin: 0 0 50px;
}

.directory-card:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

.directory-card {
  padding: 10px 30px;
}

.directory-card h3 {
  margin: 0 0 20px;
  text-align: center;
  text-transform: none;
  line-height: 1;
}

.directory-card p {
  margin: 0;
  line-height: 26px;
}

.directory-card a.directory-button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 70px;
  margin-top: 20px;
  padding: 13px 46px;
  background-color: #475a00;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  font-family: Lato, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.directory-card:last-child a.directory-button {
  padding: 15px 5px;
}

.directory-card a.directory-button:hover,
.directory-card a.directory-button:focus {
  background-color: #fff;
  color: #475a00;
  border-color: #475a00;
}

@media (max-width: 1024px) {
  .directory-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .directory-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }
}
