.service-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.service-card small {
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
}

.service-card small span {
  font-size: 0;
}

.service-card small span::after {
  content: "\2197";
  font-family: Arial, sans-serif;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .services-grid-five .service-card:nth-last-child(-n+2) {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  .services-grid,
  .services-grid-five {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-grid-five .service-card,
  .services-grid-five .service-card:nth-last-child(-n+2) {
    grid-column: 1 / -1;
  }

  .service-card {
    min-height: 0;
    padding: 30px 24px 32px;
  }

  .service-card h3 {
    max-width: none;
    margin: 36px 0 16px;
    font-size: 30px;
  }

  .service-card p {
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.65;
  }
}

@media (hover: none), (pointer: coarse) {
  .service-card:hover {
    color: inherit;
    background: transparent;
  }

  .service-card:hover h3 {
    color: var(--ink);
  }

  .service-card:hover p {
    color: var(--muted);
  }

  .service-card:hover small {
    color: var(--gold);
  }
}

/* Realizacje „przed i po”: zdjęcie przed zawsze jako pierwsze. */
#muranow-metamorfoza .project-photo[href="#muranow-metamorfoza-zdjecie-2"],
#poddasze-pruszkow .project-photo[href="#poddasze-pruszkow-zdjecie-9"] {
  order: -1;
}
