.routes {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.routes .route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: clamp(18px, 2vw, 30px);
}

.routes .route {
  position: relative;
  min-height: clamp(310px, 27vw, 390px);
  padding: clamp(30px, 3vw, 46px) !important;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .35s ease;
}

.routes .route:last-child {
  border-right: 0;
}

.routes .route::before {
  display: none !important;
  background-image: none !important;
}

.routes .route .no {
  display: block;
  padding-bottom: clamp(48px, 5vw, 76px);
  color: var(--terra);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .18em;
}

.routes .route > div {
  align-self: start;
}

.routes .route h3 {
  margin: 0 0 17px;
  font-size: clamp(2.35rem, 3.25vw, 3.75rem);
  line-height: .92;
}

.routes .route p {
  max-width: 31ch;
  margin: 0;
  font-size: clamp(.96rem, 1.15vw, 1.08rem);
  line-height: 1.65;
}

.routes .route > span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 400 25px/1 Manrope, Arial, sans-serif;
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}

.routes .route:hover,
.routes .route:focus-visible {
  background: #ebe4da;
}

.routes .route:hover > span:last-child,
.routes .route:focus-visible > span:last-child {
  transform: translate(4px, -4px);
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 800px) {
  .routes .route-grid {
    grid-template-columns: 1fr;
    padding-block: 10px;
  }

  .routes .route {
    min-height: 0;
    padding: 34px 0 38px !important;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .routes .route:last-child {
    border-bottom: 0;
  }

  .routes .route .no {
    padding-bottom: 34px;
  }

  .routes .route h3 {
    font-size: clamp(2.7rem, 13vw, 3.6rem);
  }

  .routes .route > span:last-child {
    margin-top: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .routes .route,
  .routes .route > span:last-child {
    transition: none;
  }
}
