/* АВТО: файл собирает manage.py gen_cert_design_styles из modules/sales/cert_designs.py.
   Руками не править: правка перечня и этот файл меняются одним коммитом (ADR-0232, п. 2.9). */

/* Карточка сертификата: общий каркас. Единица ширины карточки это 1cqw, как в картинке письма. */
.cert-card {
  position: relative;
  aspect-ratio: 1.6;
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #f5f4f7;
  container-type: inline-size;
  box-shadow: 0 1px 2px rgba(27, 26, 33, 0.08), 0 18px 40px -12px rgba(27, 26, 33, 0.28);
}
.cert-card__ghost {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cert-card__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: var(--cert-ink, #1b1a21);
}
.cert-card__logo {
  position: absolute;
  left: 5cqw;
  top: 5cqw;
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 1.2cqw 3.2cqw 1.2cqw 1.2cqw;
  border-radius: 999px;
  background: #fff;
  color: #1b1a21;
  font-weight: 600;
  font-size: 3.4cqw;
  box-shadow: 0 1px 3px rgba(27, 26, 33, 0.14);
}
.cert-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.4cqw;
  height: 6.4cqw;
  border-radius: 50%;
  background: #1b1a21;
  color: #fff;
  font-family: var(--font-head, inherit);
  font-size: 2.6cqw;
  font-weight: var(--w-head, 700);
}
.cert-card__plate {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  padding: 3cqw 6cqw;
  border-radius: 4cqw;
  text-align: center;
  white-space: nowrap;
}
.cert-card__label {
  font-size: 2.9cqw;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
}
.cert-card__sum {
  font-family: var(--font-head, inherit);
  font-size: 11cqw;
  font-weight: var(--w-head, 700);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cert-card--own .cert-card__content {
  display: none;
}
.cert-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Оформления системы: по классу на каждый код перечня. */
.cert-design--fill_graphite {
  background: linear-gradient(135deg, #23252e, #4a4e60);
  --cert-ink: #ffffff;
}

.cert-design--fill_emerald {
  background: linear-gradient(135deg, #0d4f41, #1c8368);
  --cert-ink: #ffffff;
}

.cert-design--fill_lavender {
  background: linear-gradient(135deg, #e4defc, #bfc8fa);
  --cert-ink: #1b1a21;
}

.cert-design--fill_coral {
  background: linear-gradient(135deg, #ff9478, #ffc39a);
  --cert-ink: #1b1a21;
}

.cert-design--art_winter_evening {
  background: url("bg/art_winter_evening.jpg") center / cover no-repeat;
  --cert-ink: #ffffff;
}
.cert-design--art_winter_evening .cert-card__plate {
  background: rgba(12, 16, 34, 0.5);
}

.cert-design--art_party {
  background: url("bg/art_party.jpg") center / cover no-repeat;
  --cert-ink: #1b1a21;
}
.cert-design--art_party .cert-card__plate {
  background: rgba(255, 255, 255, 0.84);
}

.cert-design--art_tulips {
  background: url("bg/art_tulips.jpg") center / cover no-repeat;
  --cert-ink: #1b1a21;
}
.cert-design--art_tulips .cert-card__plate {
  background: rgba(255, 255, 255, 0.84);
}
