


.main {
  margin: 16px auto 0;
  max-width: 1180px;
  padding: 16px 12px;
  color: var(--aff-text);
}

.aff-welcome {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;

  border-radius: 18px;
  border: 1px solid var(--aff-border);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--aff-shadow);
  padding: 18px;
}

.aff-welcome-text h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.aff-welcome-text p {
  color: rgba(234,243,255,0.80);
  line-height: 1.55;
  margin-bottom: 12px;
}

.aff-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aff-welcome-side {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-content: start;
}

.aff-stat {
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px;
  text-align: center;
}

.aff-stat strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.aff-stat span {
  color: rgba(234,243,255,0.72);
  font-weight: 800;
  font-size: 0.85rem;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 16px;

  background: linear-gradient(135deg, rgba(11, 94, 215, 0.35), rgba(255, 204, 0, 0.18));
  border-radius: 18px;
  padding: 18px;
  margin: 16px 0 0;

  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
  color: #fff;
}

.promo-img {
  width: 140px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

.promo-content h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 900;
}

.promo-content p {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.88);
  line-height: 1.35;
}

.promo-btn {
  background-color: var(--aff-yellow);
  color: #0b1d2e;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  display: inline-flex;
  width: fit-content;
}

.promo-btn:hover {
  filter: brightness(1.03);
}

.offers.aff-offers {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0 12px 28px;
}

.aff-section-head {
  padding: 14px 2px 12px;
}

.aff-section-head h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.aff-section-head p {
  color: rgba(234,243,255,0.72);
  line-height: 1.4;
}

.aff-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.offer-card.aff-product-card {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
  padding: 14px;
  color: var(--aff-text);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aff-product-media {
  position: relative;
  height: 140px;
  border-radius: 16px;
  border: 2px solid rgb(255 255 255 / 12%);
  overflow: hidden;
}

.aff-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.95);
  color: #0b1d2e;
  font-weight: 900;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 204, 0, 0.9);
}

.aff-product-title {
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;

  min-height: 2.5em;
}


.aff-product-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aff-price-old {
  color: rgba(234,243,255,0.60);
  text-decoration: line-through;
  font-weight: 800;
  font-size: 0.9rem;
}

.aff-price-now {
  color: #ffffff;
  font-weight: 1000;
  font-size: 1.25rem;
}

.aff-product-btn {
  width: 100%;
  justify-content: center;
}