/* Premium route cards for the «Идеи для путешествий» section */

.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 34px;
  margin-top: 72px;
}

.route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .6s var(--ease), border-color .5s ease, box-shadow .6s ease;
}

.route-card:hover,
.route-card[data-reveal].is-inview:hover {
  transform: translateY(-10px);
  border-color: rgba(196, 145, 40, .55);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .85);
}

.route-card__media {
  position: relative;
  display: block;
  height: 330px;
  overflow: hidden;
  background: #101328;
}

.route-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 22, .18) 0%, rgba(8, 10, 22, .55) 100%);
  pointer-events: none;
}

.route-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease);
}

.route-card:hover .route-card__media img {
  transform: scale(1.07);
}

.route-card__tag {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(11, 13, 26, .72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 145, 40, .55);
  color: var(--gold-soft);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.route-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 42px 40px 40px;
}

.route-card__body h3 {
  font-family: "Prata", serif;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 31px);
  line-height: 1.2;
  color: var(--white);
}

.route-card__body h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 20px 0;
}

.route-card__route {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  line-height: 1.8;
  margin-bottom: 18px;
}

.route-card__text {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .62);
  text-wrap: pretty;
}

.route-card__perks {
  list-style: none;
  margin: 26px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px 20px;
}

.route-card__perks li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
}

.route-card__perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.route-card__meta {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.route-card__meta div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-card__meta span {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

.route-card__meta strong {
  font-family: "Prata", serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--white);
}

.route-card__btn {
  margin-top: 34px;
  display: inline-block;
  width: 100%;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-align: center;
  padding: 18px 26px;
  border-radius: 999px;
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s var(--ease), box-shadow .35s ease;
}

.route-card__btn:hover {
  background: transparent;
  color: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(196, 145, 40, .5);
}

.route-card__btn:active {
  transform: translateY(0) scale(.985);
}

/* Заметный блок-приглашение после списка идей */
.route-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 64px;
  padding: 42px 48px;
  background:
    linear-gradient(120deg, rgba(196, 145, 40, .1), rgba(196, 145, 40, .02)),
    var(--mist);
  border: 1px solid rgba(196, 145, 40, .35);
  border-left: 3px solid var(--gold);
  box-shadow: 0 34px 60px -48px rgba(18, 20, 43, .35);
}

.route-note__copy {
  max-width: 72ch;
}

.route-note__title {
  font-family: "Prata", serif;
  font-weight: 400;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 14px;
}

.route-note__copy p:last-child {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.route-note__copy a {
  color: var(--gold);
  font-weight: 500;
  border-bottom: 1px solid rgba(196, 145, 40, .4);
  transition: color .3s ease, border-color .3s ease;
}

.route-note__copy a:hover {
  color: #a67b1e;
  border-color: #a67b1e;
}

.route-note__btn {
  flex: none;
  display: inline-block;
  min-width: 220px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  padding: 17px 30px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s var(--ease), box-shadow .35s ease;
}

.route-note__btn:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(196, 145, 40, .5);
}

.route-note__btn:active {
  transform: translateY(0) scale(.985);
}

@media (max-width: 860px) {
  .route-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 28px;
  }

  .route-note__btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .route-card__media {
    height: 240px;
  }

  .route-card__body {
    padding: 32px 24px 28px;
  }

  .route-grid {
    gap: 24px;
    margin-top: 48px;
  }
}
