.trip-story {
  margin-top: clamp(30px, 4vw, 56px);
}

.trip-story__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 24px;
}

.trip-story__feature {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.95));
  border: 1px solid rgba(9, 51, 92, 0.08);
  box-shadow: 0 28px 60px rgba(7, 24, 43, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.trip-story__feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 72px rgba(7, 24, 43, 0.12);
}

.trip-story__media {
  min-height: 280px;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}

.trip-story__feature:hover .trip-story__media {
  transform: scale(1.04);
}

.trip-story__lead {
  padding: 24px 22px;
}

.trip-story__lead p {
  font-size: 1.05rem;
  color: rgba(15, 39, 71, 0.8);
}

.trip-story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.trip-story__problems {
  display: grid;
  gap: 16px;
}

.trip-story__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border-radius: 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.trip-story__card--problem {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid rgba(9, 51, 92, 0.08);
}

.trip-story__card--problem::before,
.trip-story__card--solution::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, rgba(13, 99, 169, 0.94), rgba(100, 199, 255, 0.5));
}

.trip-story__card--solution {
  background:
    radial-gradient(circle at top right, rgba(72, 191, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #081f3a, #0e5a95 76%, #1171bc);
  box-shadow: 0 28px 66px rgba(6, 24, 44, 0.18);
}

.trip-story__card:hover {
  transform: translateY(-4px);
}

.trip-story__card--problem:hover {
  box-shadow: 0 24px 54px rgba(7, 24, 43, 0.1);
  border-color: rgba(17, 114, 191, 0.14);
}

.trip-story__card--solution:hover {
  box-shadow: 0 34px 78px rgba(6, 24, 44, 0.24);
}

.trip-story__card h3 {
  margin-bottom: 0;
  min-height: 2.35em;
}

.trip-story__card--problem p {
  color: rgba(15, 39, 71, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trip-story__card--solution h3,
.trip-story__card--solution li {
  color: var(--color-white);
}

.trip-story__card--solution ul {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.trip-story__card--solution li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.84);
}

.trip-story__card--solution li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7fd0ff;
  transform: translateY(-50%);
}

.trip-story__problems .trip-story__card:nth-child(2) {
  transition-delay: 0.06s;
}

.trip-story__problems .trip-story__card:nth-child(3) {
  transition-delay: 0.12s;
}

@media (min-width: 960px) {
  .trip-story__top {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .trip-story__feature {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .trip-story__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: start;
  }

  .trip-story__solution .trip-story__card--solution {
    position: sticky;
    top: 112px;
  }
}

@media (max-width: 767px) {
  .trip-story__problems {
    display: flex;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    padding: 0 14px 10px 2px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .trip-story__problems::-webkit-scrollbar {
    display: none;
  }

  .trip-story__problems.is-draggable {
    cursor: grab;
  }

  .trip-story__problems.is-dragging {
    cursor: grabbing;
  }

  .trip-story__problems::after {
    content: "";
    flex: 0 0 2px;
  }

  .trip-story__problems .trip-story__card {
    flex: 0 0 clamp(228px, calc(100vw - 108px), 268px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 22px 18px;
    min-height: 218px;
  }

  .trip-story__feature,
  .trip-story__feature *,
  .trip-story__card,
  .trip-story__card * {
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
  }

  .trip-story__card h3 {
    font-size: 1.08rem;
    line-height: 1.18;
  }

  .trip-story__card p,
  .trip-story__card--solution li {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}
