.routes-page {
  min-width: 0;
}

.routes26 {
  width: calc(100% - 40px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 0 9rem;
}

.routes26__navigation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 4rem;
}

.routes26__navigation-link {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 2px solid var(--blue26);
  border-radius: 16px;
  background: transparent;
  color: var(--blue26);
  font-family: var(--upie);
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.routes26__navigation-link:hover,
.routes26__navigation-link:focus-visible {
  transform: translateY(-2px);
  background: var(--blue26);
  color: #fff;
  text-decoration: none;
}

.routes26__section {
  margin: 0 0 6rem;
  scroll-margin-top: 100px;
}

.routes26__section:last-child {
  margin-bottom: 0;
}

.routes26__section-title {
  margin: 0 0 1.5rem;
  color: var(--blue26);
  font-family: var(--upie);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
}

.routes26__films {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.routes26__film {
  min-width: 0;
}

.routes26__film a.img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background-color: rgba(14, 119, 186, .08);
}

.routes26__film a.title {
  color: var(--blue26);
  font-family: var(--geologica);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.routes26__film a.title:hover,
.routes26__film a.title:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.routes26__film .info_txt {
  margin: 7px 0 0 !important;
  padding: 0;
}

.routes26__film .info_txt p {
  margin: .3rem 0;
  padding: 0;
  font-size: .9rem;
  line-height: 1.3;
}

.routes26__programs {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.4rem;
}

.routes26__program-link,
.routes26__program-label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .55rem .9rem;
  border: 1px solid var(--blue26);
  border-radius: 999px;
  background: transparent;
  color: var(--blue26);
  font-size: .95rem;
  line-height: 1.25;
  text-decoration: none;
}

.routes26__program-link:hover,
.routes26__program-link:focus-visible {
  background: var(--blue26);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 960px) {
  .routes26__navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 3rem;
  }

  .routes26__films {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .routes26 {
    width: calc(100% - 32px);
    padding-top: 6rem;
    padding-bottom: 9rem;
  }

  .routes26__navigation {
    grid-template-columns: minmax(0, 1fr);
    gap: .6rem;
    margin-bottom: 2.5rem;
  }

  .routes26__navigation-link {
    width: 100%;
    min-height: 52px;
    padding: .7rem .55rem;
    border-radius: 12px;
    font-family: var(--geologica);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
  }

  .routes26__section {
    margin-bottom: 6rem;
    scroll-margin-top: 72px;
  }

  .routes26__section-title {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .routes26__films {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .routes26__film a.title {
    margin-top: .85rem !important;
    font-size: 1.1rem;
  }

  .routes26__programs {
    gap: .55rem;
    margin-top: 1rem;
  }

  .routes26__program-link,
  .routes26__program-label {
    width: 100%;
    min-height: 36px;
    padding: .45rem .7rem;
    font-size: .9rem;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .routes26__navigation-link {
    transition: none;
  }
}
