@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Variable.ttf") format("truetype-variations");
  font-weight: 1 999;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

.gateway-body {
  margin: 0;
  min-height: 100vh;
  background: #ebf5fd;
  font-family: "Roboto", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.gateway {
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
  min-height: 100vh;
  padding: 2.6rem;
}
@media (max-width: 576px) {
  .gateway {
    gap: 1rem;
    padding: 1rem;
  }
}
.gateway__cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem;
}
@media (max-width: 992px) {
  .gateway__cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.gateway-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32rem;
  overflow: hidden;
  border-radius: 1.75rem;
  text-decoration: none;
}
.gateway-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gateway-card:hover::before, .gateway-card:focus-visible::before {
  opacity: 1;
}
.gateway-card:hover .gateway-card__logo, .gateway-card:focus-visible .gateway-card__logo {
  filter: blur(6px);
  opacity: 0.6;
}
.gateway-card:hover .gateway-card__button, .gateway-card:focus-visible .gateway-card__button {
  opacity: 1;
}
.gateway-card:focus-visible {
  outline: 3px solid #1550b1;
  outline-offset: 4px;
}
@media (max-width: 992px) {
  .gateway-card {
    min-height: 20rem;
    justify-content: flex-start;
    padding-left: 8%;
  }
}
.gateway-card__logo {
  position: relative;
  z-index: 1;
  width: 38.5%;
  height: auto;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.gateway-card__button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  background: #fff;
  border-radius: 999px;
  color: #b71731;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}
.gateway-card__button-icon {
  width: 1rem;
  height: 1rem;
}
.gateway-card__photo {
  position: absolute;
  bottom: 0;
  width: auto;
}
.gateway-card--zdravka-trutnov {
  background: #1550b1;
}
.gateway-card--zdravka-trutnov .gateway-card__photo {
  right: -6%;
  height: 53%;
}
.gateway-card--oa-trutnov {
  background: #600036;
}
.gateway-card--oa-trutnov .gateway-card__logo {
  width: 28.6%;
}
.gateway-card--oa-trutnov .gateway-card__photo {
  right: -13%;
  height: 52%;
}
.gateway-card--zdravka-kostelec {
  background: #b71731;
}
.gateway-card--zdravka-kostelec .gateway-card__photo {
  right: -15%;
  height: 48%;
}
@media (max-width: 992px) {
  .gateway-card .gateway-card__logo {
    width: 30%;
  }
  .gateway-card.gateway-card--oa-trutnov .gateway-card__logo {
    width: 18%;
  }
  .gateway-card .gateway-card__photo {
    height: 90%;
  }
}

.gateway-contact {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 1.75rem;
}
.gateway-contact__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 1.5rem;
  background: #edf3fb;
  border-radius: 1.25rem;
  color: #1550b1;
  font-style: normal;
  line-height: 1.4;
  text-align: center;
}
.gateway-contact__name {
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 0.75rem;
  font-weight: 500;
}
.gateway-contact__link {
  color: #b71731;
}
.gateway-contact__link:hover {
  text-decoration: none;
}
.gateway-contact__link + .gateway-contact__link {
  margin-top: -0.6rem;
}
