/* SoftSwiss-style feature cards (cashback / welcome / other) */
.ss-section {
  margin: 28px 0 8px;
}

.ss-section__head {
  margin-bottom: 14px;
}

.ss-section__title {
  margin: 0 0 4px;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.ss-section__sub {
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
}

.ss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}

.ss-card {
  --ss-grad-a: #3a4656;
  --ss-grad-b: #62748c;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 168px;
  padding: 20px 22px 18px;
  border-radius: 22px;
  border: 0;
  outline: none;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(115deg, var(--ss-grad-a) 0%, var(--ss-grad-b) 100%);
  color: #fff;
}

.ss-card.ss-card--cashback {
  overflow: visible;
  isolation: auto;
}

.ss-card--cashback {
  --ss-grad-a: #3a4a5c;
  --ss-grad-b: #6d7f9c;
}

.ss-card--welcome-1 { --ss-grad-a: #275044; --ss-grad-b: #3f8a62; }
.ss-card--welcome-2 { --ss-grad-a: #2a4260; --ss-grad-b: #4f78a8; }
.ss-card--welcome-3 { --ss-grad-a: #463454; --ss-grad-b: #825898; }
.ss-card--welcome-4 { --ss-grad-a: #4e3a28; --ss-grad-b: #a86e3e; }
.ss-card--crypto { --ss-grad-a: #2a3e52; --ss-grad-b: #4f86a8; }
.ss-card--promo { --ss-grad-a: #2a4438; --ss-grad-b: #3f8a5e; cursor: pointer; }
.ss-card--lucky { --ss-grad-a: #3a2a55; --ss-grad-b: #7a4ab0; cursor: pointer; }
.ss-card--task-tg { --ss-grad-a: #2a3e52; --ss-grad-b: #4f86a8; }
.ss-card--task-nick { --ss-grad-a: #2a4438; --ss-grad-b: #3f8a5e; }

.ss-card--task .ss-card__foot--end {
  justify-content: flex-end;
}

.ss-card--task .ss-card__terms {
  display: none !important;
}

.ss-card--locked {
  filter: saturate(.72);
  opacity: .88;
}

.ss-card--used {
  opacity: .78;
}

.ss-card__art {
  position: absolute;
  top: -18px;
  right: -10px;
  width: min(46%, 168px);
  height: auto;
  max-height: 140%;
  object-fit: contain;
  object-position: right top;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
  user-select: none;
}

.ss-card__body {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 100px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 88px;
}

.ss-card__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 0;
  box-shadow: none;
  margin-bottom: 4px;
}

.ss-card__title {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}

.ss-card__desc {
  margin: 0;
  font-size: .95rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34ch;
}

.ss-card__desc--min {
  margin-top: 2px;
  font-size: .88rem;
  color: rgba(255, 255, 255, 0.58);
  max-width: none;
}

.ss-card__amount {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.ss-card__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.ss-card__terms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 650;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.ss-card__terms:hover {
  color: #fff;
}

.ss-card__terms-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff !important;
  color: #12141a !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  font-family: ui-sans-serif, system-ui, sans-serif;
  box-shadow: none;
  border: 0 !important;
  outline: none !important;
}

.ss-card__terms-ico svg {
  display: none;
}

.ss-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 12px;
  background: #fff;
  color: #141415;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s ease;
}

.ss-card__cta:hover {
  filter: brightness(0.96);
  color: #141415;
}

.ss-card__cta:disabled,
.ss-card__cta.is-disabled {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}

.ss-card__cta--lock {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  gap: 8px;
}

.ss-card__lock {
  width: 14px;
  height: 14px;
  display: block;
}

@media (max-width: 640px) {
  .ss-card {
    min-height: 156px;
    padding: 18px 16px 16px;
  }
  .ss-card__art {
    width: min(42%, 132px);
    top: -10px;
    right: -8px;
  }
  .ss-card__body {
    max-width: calc(100% - 88px);
  }
  .ss-card__title {
    font-size: 1.2rem;
  }
}
