/**
 * Promo page — small cards matching events .brands-box layout
 */

.promo-page {
  position: relative;
  overflow-x: clip;
  padding-bottom: 2rem;
}
.promo-page .container {
  max-width: 1300px !important;
}

.promo-page__decor-stars {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.promo-page__decor-stars--left {
  left: 64px;
  top: 80px;
  width: 67.66px;
  height: 180.706px;
  opacity: 0.9;
}

.promo-page__decor-stars--right {
  right: 0;
  top: 40px;
  width: 102.838px;
  height: 245.705px;
  opacity: 0.9;
}

.promo-page__watermark {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  margin: 0;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: clamp(72px, 15vw, 205px);
  line-height: 0.85;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 22%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.promo-brands {
  position: relative;
  z-index: 1;
  padding-top: 210px;
  padding-bottom: 10px;
}

.promo-brands--ended {
  padding-top: 0 !important;
}

.promo-brands .brands__title {
  color: #fff;
}

.promo-brands--ended .brands__title {
  opacity: 0.9;
}

.promo-brands .brands__wrapper {
  justify-content: center;
}

.promo-card {
  gap: 12px !important;
  align-items: stretch;
  max-width: 400px !important;
  margin-left: auto;
  margin-right: auto;
}

.promo-card__banner {
  display: block;
  width: 100%;
  height: 185px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

.promo-card__title {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(42, 88, 206, 0.12);
  color: #29375a;
  font-family: Poppins, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

.promo-card__text {
  flex: 1 1 auto;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f4f7fc 0%, #fafbfd 100%);
  border: 1px solid rgba(42, 88, 206, 0.1);
  color: #627093;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

.promo-card__text p {
  margin: 0 0 0.75rem;
}

.promo-card__text p:last-child {
  margin-bottom: 0;
}

.promo-card__text strong {
  color: #29375a;
  font-weight: 600;
}

/* Section label before a list */
.promo-card__text p:has(+ ul) {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2a58ce;
}

.promo-card__text p:has(+ ul) strong {
  color: #2a58ce;
  font-weight: 700;
}

/* Highlight line (e.g. +€50 bonus) */
.promo-card__text > p:nth-of-type(2):not(:has(+ ul)) {
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(173, 255, 0, 0.22) 0%,
    rgba(42, 88, 206, 0.06) 100%
  );
  border-left: 3px solid #adff00;
  margin-bottom: 12px;
}

.promo-card__text > p:nth-of-type(2):not(:has(+ ul)) strong {
  color: #29375a;
  font-size: 14px;
}

.promo-card__text ul {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-card__text li {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(42, 88, 206, 0.08);
  color: #627093;
  line-height: 1.45;
}

.promo-card__text li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a58ce;
  box-shadow: 0 0 0 3px rgba(42, 88, 206, 0.14);
}

.promo-card__text li strong {
  color: #2a58ce;
}

.promo-card__text em {
  display: block;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(98, 112, 147, 0.08);
  border-left: 2px solid rgba(42, 88, 206, 0.35);
  color: #627093;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.promo-card__code {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(42, 88, 206, 0.08);
  border: 1px dashed rgba(42, 88, 206, 0.45);
  color: #2a58ce;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.05em;
}

.promo-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.promo-card__btn-secondary {
  background: transparent !important;
  border: 1px solid #2a58ce !important;
  color: #2a58ce !important;
}

.promo-card__btn-secondary:hover {
  background: rgba(42, 88, 206, 0.08) !important;
}

.promo-empty {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 24px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-family: Poppins, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

body:has(.promo-page)::after {
  height: min(1200px, 90vh);
}

@media (max-width: 768px) {
  .promo-brands {
    padding-top: 90px;
  }
  .promo-page__decor-stars--left {
    left: 8px;
    width: 40px;
    height: auto;
  }

  .promo-page__decor-stars--right {
    width: 56px;
    height: auto;
  }

  .promo-brands .brands__wrapper {
    justify-content: center;
    align-items: stretch;
  }

  .promo-brands .brands-box.promo-card {
    width: 100%;
    max-width: 400px !important;
    margin-left: auto;
    margin-right: auto;
  }

  .promo-card__banner {
    height: auto;
    min-height: 160px;
    max-height: 200px;
  }
}
