.tripy-home-kicker {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5b5bff;
}

.tripy-home-hero {
  display: grid;
  gap: 20px;
  padding: 16px;
}

.tripy-home-hero__banner {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 30px;
  background: linear-gradient(135deg, #0f172a, #2b5fd6);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18);
}

.tripy-home-hero__image,
.tripy-home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tripy-home-hero__overlay {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 420px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(81, 232, 158, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.72));
}

.tripy-home-hero__floating {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.tripy-home-hero__wallet,
.tripy-home-hero__prefs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.tripy-home-hero__prefs img {
  width: 22px;
  height: 14px;
  border-radius: 4px;
  object-fit: cover;
}

.tripy-home-hero__wallet img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.tripy-home-hero__copy {
  max-width: 760px;
  color: #fff;
}

.tripy-home-hero__copy h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.01;
  letter-spacing: -0.04em;
}

.tripy-home-hero__copy p {
  margin: 0;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.84);
}

.tripy-home-hero__cta {
  margin-top: 18px;
}

.tripy-home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.tripy-home-search input {
  min-height: 60px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 24px;
  color: var(--tripy-text);
}

.tripy-home-search button {
  min-width: 150px;
}

.tripy-home-search__smart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  margin-top: -10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #78d437, #6d5cff 52%, #18b7d8);
  color: #fff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.tripy-home-search__smart span {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.tripy-home-search__smart small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
}

.tripy-home-categories {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 6px;
}

.tripy-home-category {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tripy-text);
}

.tripy-home-category__icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.94));
  border: 2px solid rgba(34, 197, 94, 0.28);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  font-size: 26px;
}

.tripy-home-category__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tripy-home-category__label {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.tripy-home-section {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.tripy-home-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.tripy-home-section__head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.tripy-home-section__rail,
.tripy-home-holiday__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tripy-home-card {
  min-height: 100%;
}

.tripy-home-card__media {
  aspect-ratio: 1.18;
}

.tripy-home-card--compact .tripy-home-card__media {
  aspect-ratio: 1.12;
}

.tripy-home-card__row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.tripy-home-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tripy-home-trips__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.tripy-home-trip {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.tripy-home-trip__image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.tripy-home-trip__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 190px;
  padding: 18px;
}

.tripy-home-trip__status {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.tripy-home-trip__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.18;
}

.tripy-home-trip__meta {
  color: rgba(255, 255, 255, 0.76);
}

.tripy-home-trip__price {
  font-size: 28px;
  font-weight: 900;
}

.tripy-home-friends__list {
  display: grid;
  gap: 12px;
}

.tripy-home-friend {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.96);
  border: 1px solid rgba(209, 213, 219, 0.72);
}

.tripy-home-friend__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.tripy-home-friend__avatar--fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  color: #1e3a8a;
  font-weight: 900;
}

.tripy-home-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) 1.16fr;
  gap: 0;
}

.tripy-home-strip__media {
  min-height: 240px;
  background-position: center;
  background-size: cover;
}

.tripy-home-strip__content {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(29, 78, 216, 0.92));
  color: #fff;
}

.tripy-home-strip__content h2,
.tripy-home-strip__content p {
  margin: 0;
}

.tripy-home-holiday {
  background:
    radial-gradient(circle at top right, rgba(255, 171, 87, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.94);
}

.tripy-home-holiday__card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
}

.tripy-home-holiday__image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.tripy-home-holiday__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 6px;
  min-height: 220px;
  padding: 18px;
}

.tripy-home-holiday__title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.06;
}

.tripy-home-holiday__price {
  font-size: 28px;
  font-weight: 900;
}

.tripy-home-holiday__old {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: line-through;
}

.tripy-home-tabs {
  display: grid;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(110, 165, 255, 0.14), transparent 26%),
    rgba(255, 255, 255, 0.94);
}

.tripy-home-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tripy-home-tabs__btn {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--tripy-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tripy-home-tabs__btn.is-active {
  background: linear-gradient(135deg, #6a55ff, #f042a8);
  color: #fff;
}

.tripy-home-tabs__panel {
  display: none;
  gap: 18px;
}

.tripy-home-tabs__panel.is-active {
  display: grid;
}

.tripy-home-host {
  display: grid;
  gap: 20px;
  padding: 28px;
  text-align: center;
}

.tripy-home-host__headline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tripy-home-host__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 20px;
  border-radius: 18px;
  transform: rotate(-7deg);
  background: #27d857;
  color: #fff;
  font-size: clamp(20px, 4vw, 38px);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.tripy-home-host__chip--dark {
  background: #0f1737;
  transform: rotate(7deg);
}

.tripy-home-host__chip--gold {
  background: #ffd02f;
  color: #111827;
  transform: rotate(-6deg);
}

.tripy-home-host__chip--pink {
  background: #ed4d9b;
  transform: rotate(8deg);
}

.tripy-home-host__chip--blue {
  background: #456fe1;
  transform: rotate(-8deg);
}

.tripy-home-host p {
  margin: 0 auto;
  max-width: 760px;
  color: #506075;
  font-size: 16px;
  line-height: 1.6;
}

.tripy-home-host__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 12px 0 24px;
}

.tripy-home-host__main,
.tripy-home-host__sticker {
  display: block;
  object-fit: contain;
}

.tripy-home-host__main {
  max-width: min(620px, 100%);
  width: 100%;
  filter: drop-shadow(0 26px 40px rgba(15, 23, 42, 0.14));
}

.tripy-home-host__sticker {
  position: absolute;
  top: 50%;
  width: 170px;
  max-width: 26vw;
  transform: translateY(-50%) rotate(-6deg);
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.16));
}

.tripy-home-host__sticker--left {
  left: 10px;
}

.tripy-home-host__sticker--right {
  right: 10px;
  transform: translateY(-50%) rotate(7deg);
}

.tripy-home-section__rail::-webkit-scrollbar,
.tripy-home-categories::-webkit-scrollbar,
.tripy-home-holiday__rail::-webkit-scrollbar {
  height: 8px;
}

.tripy-home-section__rail::-webkit-scrollbar-thumb,
.tripy-home-categories::-webkit-scrollbar-thumb,
.tripy-home-holiday__rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.4);
}

@media (max-width: 980px) {
  .tripy-home-hero__overlay,
  .tripy-home-hero__banner {
    min-height: 360px;
  }

  .tripy-home-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .tripy-home-section,
  .tripy-home-hero {
    padding: 18px;
  }

  .tripy-home-search {
    grid-template-columns: 1fr;
  }

  .tripy-home-search__smart {
    flex-direction: column;
    align-items: start;
  }

  .tripy-home-search input {
    font-size: 18px;
  }

  .tripy-home-section__head {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .tripy-home-hero {
    padding: 12px;
  }

  .tripy-home-hero__banner,
  .tripy-home-hero__overlay {
    min-height: 320px;
    border-radius: 24px;
  }

  .tripy-home-hero__overlay {
    padding: 20px;
  }

  .tripy-home-hero__copy h1 {
    font-size: 34px;
  }

  .tripy-home-hero__copy p {
    font-size: 15px;
  }

  .tripy-home-hero__floating {
    justify-content: space-between;
  }

  .tripy-home-hero__wallet,
  .tripy-home-hero__prefs {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .tripy-home-categories {
    grid-auto-columns: 94px;
    gap: 14px;
  }

  .tripy-home-category__icon {
    width: 70px;
    height: 70px;
  }

  .tripy-home-section {
    padding: 18px 16px;
  }

  .tripy-home-section__head h2 {
    font-size: 22px;
  }

  .tripy-home-section__rail,
  .tripy-home-holiday__rail {
    grid-auto-columns: minmax(250px, 84vw);
  }

  .tripy-home-host {
    padding: 22px 16px;
  }

  .tripy-home-host__visual {
    min-height: 260px;
    padding-bottom: 12px;
  }

  .tripy-home-host__sticker {
    display: none;
  }

  .tripy-home-host__chip {
    min-height: 48px;
    padding: 0 16px;
    font-size: 24px;
  }
}
