/* ============================================
   BONUS CERTIFICATE — «Бонус на заказ 3 000 ₽»
   Prefix: .npb- (avoid conflict with .np-card in examples)
   Fonts: site-wide Lora + Golos Text (no external Google Fonts)
   ============================================ */

.npb-bonus {
  --npb-bg:        #0f0e0c;
  --npb-bg2:       #141210;
  --npb-cream:     #f4f2ed;
  --npb-gold:      #c4b49a;
  --npb-gold-lt:   #ddd0b8;
  --npb-gold-mid:  #9a8c7a;
  --npb-gold-dim:  #7a6e5f;
  --npb-gold-dark: #5a5044;
  --npb-gold-deep: #4a4438;
  --npb-serif:     'Lora', Georgia, serif;
  --npb-sans:      'Golos Text', sans-serif;
}

.npb-bonus {
  background: linear-gradient(160deg, #161412 0%, var(--npb-bg) 40%, #12110f 100%);
  padding: 40px 28px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  font-family: var(--npb-sans);
  border-radius: 20px;
  border: 1px solid rgba(196,180,154,0.12);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

/* ─── Разделитель ─── */
.npb-sep {
  display: flex; align-items: center; gap: 14px;
  width: 100%; max-width: 560px;
}
.npb-sep-line { flex: 1; height: 1px; background: rgba(196,180,154,0.15); }
.npb-sep-text {
  font-size: 15px; color: rgba(196,180,154,0.85); letter-spacing: 0.02em;
  white-space: nowrap; font-style: italic;
  font-family: var(--npb-serif); font-weight: 400;
}

/* ─── Карточка ─── */
.npb-card {
  width: 100%; max-width: 560px;
  position: relative;
  background: var(--npb-bg2);
  border: 1px solid rgba(196,180,154,0.18);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  border-radius: 14px;
}
.npb-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 64px rgba(0,0,0,0.65), 0 0 32px rgba(196,180,154,0.07);
}
.npb-card::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    170deg, transparent, transparent 3px,
    rgba(196,180,154,0.025) 3px, rgba(196,180,154,0.025) 4px
  );
  pointer-events: none; z-index: 0;
}

/* ─── Десктоп: вертикальная полоса ─── */
.npb-stripe {
  position: absolute; left: 0; top: 0; bottom: 0; width: 56px;
  background: linear-gradient(180deg, #2a2218 0%, #1a1612 100%);
  border-right: 1px solid rgba(196,180,154,0.18);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; z-index: 1;
}
.npb-stripe-text {
  font-family: var(--npb-serif); font-size: 9px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--npb-gold);
  writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 400;
}
.npb-stripe-divider { width: 1px; height: 28px; background: rgba(196,180,154,0.25); }

.npb-stripe-top { display: none; }
.npb-mob-bottom { display: none; }

/* ─── Тело ─── */
.npb-body {
  margin-left: 56px;
  padding: 24px 28px;
  display: flex; align-items: center;
  position: relative; z-index: 1;
}

/* ─── Цена ─── */
.npb-left {
  flex-shrink: 0;
  padding-right: 24px;
  border-right: 1px dashed rgba(196,180,154,0.22);
  text-align: center;
}
/* ─── Проблеск по зоне цены ─── */
.npb-left {
  position: relative;
  overflow: hidden;
}
.npb-left::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(196,180,154,0.22), transparent);
  transform: skewX(-20deg);
  animation: btnShine 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.npb-issued {
  font-size: 8px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--npb-gold-dark); display: block; margin-bottom: 6px;
}
.npb-sum {
  font-family: var(--npb-serif); font-size: 56px; font-weight: 400;
  color: var(--npb-gold); line-height: 1; letter-spacing: -0.03em; display: block;
  white-space: nowrap;
}
.npb-cur {
  font-family: var(--npb-serif); font-size: 13px; color: var(--npb-gold-mid);
  letter-spacing: 0.1em; display: block; margin-top: 3px;
}

/* ─── Дырка ─── */
.npb-hole {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--npb-bg); border: 1px solid rgba(196,180,154,0.15);
  flex-shrink: 0; margin: 0 -8px; z-index: 2;
}

/* ─── Текст ─── */
.npb-right { flex: 1; padding-left: 24px; }
.npb-tag-desk {
  font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--npb-gold-dim); border: 1px solid rgba(122,110,95,0.38);
  padding: 3px 9px; display: inline-block; margin-bottom: 10px;
}
.npb-title {
  font-family: var(--npb-serif); font-size: 22px; font-weight: 400;
  color: var(--npb-cream); line-height: 1.18; margin-bottom: 7px;
}
.npb-title em { font-style: italic; color: var(--npb-gold-lt); }
.npb-desc {
  font-size: 12px; color: var(--npb-gold-dim); font-weight: 300;
  line-height: 1.55; margin-bottom: 16px;
}
.npb-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.npb-cond {
  font-size: 10px; color: var(--npb-gold-deep);
  font-style: italic; font-family: var(--npb-serif); font-weight: 400;
}
.npb-btn {
  background: var(--npb-gold); color: var(--npb-bg);
  font-family: var(--npb-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; padding: 10px 22px; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  border-radius: 100px; transition: background 0.22s, transform 0.2s; white-space: nowrap;
}
.npb-btn:hover { background: var(--npb-gold-lt); transform: translateY(-1px); }

/* ─── Серийный номер ─── */
.npb-serial {
  position: absolute; bottom: 9px; right: 14px;
  font-size: 8px; letter-spacing: 0.18em;
  color: rgba(90,80,68,0.55); z-index: 1; user-select: none;
}

/* ─── Условия акции ─── */
.npb-conditions {
  margin-left: 56px;
  padding: 0 28px 16px;
  position: relative; z-index: 1;
  border-top: 1px solid rgba(196,180,154,0.08);
  padding-top: 12px;
}
.npb-conditions-text {
  font-size: 10px; color: var(--npb-gold-deep);
  font-style: italic; font-family: var(--npb-serif);
  line-height: 1.5;
}

/* ─── Inline-форма внутри карточки ─── */
.npb-form-wrap {
  margin-left: 56px;
  padding: 0 28px 20px;
  position: relative; z-index: 1;
  display: none;
}
.npb-form-wrap.npb-active { display: block; }

.npb-form {
  display: flex; flex-direction: column; gap: 10px;
}
.npb-form-row {
  display: flex; gap: 10px;
}
.npb-input {
  flex: 1;
  background: rgba(196,180,154,0.06);
  border: 1px solid rgba(196,180,154,0.18);
  color: var(--npb-cream);
  font-family: var(--npb-sans);
  font-size: 13px; padding: 10px 14px;
  border-radius: 8px;
  transition: border-color 0.2s;
  outline: none;
}
.npb-input::placeholder { color: var(--npb-gold-dim); }
.npb-input:focus { border-color: var(--npb-gold); }
.npb-input.npb-error { border-color: #c47a7a; }

.npb-form-submit {
  width: 100%;
  background: var(--npb-gold); color: var(--npb-bg);
  font-family: var(--npb-sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none; padding: 13px 20px; cursor: pointer;
  border-radius: 100px; transition: background 0.22s, opacity 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.npb-form-submit:hover { background: var(--npb-gold-lt); }
.npb-form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.npb-form-hint {
  font-size: 10px; color: #c47a7a;
  font-family: var(--npb-sans);
  min-height: 14px;
}

.npb-privacy { margin: 2px 0 0; }
.npb-privacy .np-cb-label { color: var(--npb-gold-dim); font-size: 11px; }
.npb-privacy .np-cb-label a { color: var(--npb-gold); }
.npb-privacy .np-cb-box { border-color: var(--npb-gold-dim); }

/* ─── Результат: номер сертификата ─── */
.npb-result {
  margin-left: 56px;
  padding: 16px 28px 20px;
  position: relative; z-index: 1;
  display: none;
  text-align: center;
}
.npb-result.npb-active { display: block; }

.npb-result-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--npb-gold-dim); margin-bottom: 8px;
}
.npb-result-number {
  font-family: var(--npb-serif); font-size: 20px;
  color: var(--npb-gold); letter-spacing: 0.05em;
  padding: 10px 16px;
  border: 1px dashed rgba(196,180,154,0.3);
  display: inline-block;
  margin-bottom: 8px;
}
.npb-result-msg {
  font-size: 12px; color: var(--npb-gold-dim);
  line-height: 1.5;
}


/* ════════════════════════════════
   МОБИЛА ≤ 560px
════════════════════════════════ */
@media (max-width: 560px) {

  .npb-sep-text { white-space: normal; text-align: center; font-size: 13px; }

  /* вертикальная полоса — убираем */
  .npb-stripe { display: none; }

  /* горизонтальная полоса сверху */
  .npb-stripe-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px; height: 44px;
    background: linear-gradient(90deg, #2a2218 0%, #1a1612 100%);
    border-bottom: 1px solid rgba(196,180,154,0.18);
    position: relative; z-index: 1;
  }
  .npb-brand-mob {
    font-family: var(--npb-serif); font-size: 11px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--npb-gold); font-weight: 400;
  }
  .npb-tag-mob {
    font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--npb-gold-dim); border: 1px solid rgba(122,110,95,0.4); padding: 3px 9px;
  }

  /* тело — цена и текст рядом */
  .npb-body {
    margin-left: 0;
    padding: 20px 0;
    align-items: center;
    border-bottom: 1px dashed rgba(196,180,154,0.18);
  }

  /* цена — фиксированная ширина, текст слева */
  .npb-left {
    width: 135px;
    padding: 0 14px 0 18px;
    border-right: 1px dashed rgba(196,180,154,0.22);
    text-align: left;
  }
  .npb-sum { font-size: 38px; }
  .npb-cur { font-size: 12px; }

  .npb-hole { width: 13px; height: 13px; margin: 0 -6.5px; }

  .npb-right { flex: 1; padding: 0 16px 0 18px; }
  .npb-tag-desk { display: none; }
  .npb-title { font-size: 18px; }
  .npb-desc { font-size: 12px; margin-bottom: 0; }

  /* кнопку внутри body скрываем */
  .npb-footer { display: none; }

  /* кнопка на всю ширину снизу */
  .npb-mob-bottom {
    display: block;
    padding: 16px 18px 18px;
  }
  .npb-btn-mob {
    width: 100%;
    color: var(--npb-bg);
    font-family: var(--npb-sans); font-size: 14px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    border: none; padding: 18px 24px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border-radius: 100px;
    background: linear-gradient(135deg, #a08a68, var(--npb-gold) 30%, #ddd0b8 50%, var(--npb-gold) 70%, #a08a68);
    background-size: 200% 200%;
    animation: npb-gold-shift 4s ease-in-out infinite;
    box-shadow: 0 4px 24px rgba(196,180,154,0.25), 0 0 40px rgba(196,180,154,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; overflow: hidden;
  }
  .npb-btn-mob::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: npb-shine 3s ease-in-out infinite;
  }
  @keyframes npb-gold-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }
  @keyframes npb-shine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
  }
  .npb-btn-mob:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 32px rgba(196,180,154,0.35);
  }
  .npb-cond-mob {
    font-size: 11px; color: var(--npb-gold-deep);
    font-style: italic; font-family: var(--npb-serif);
    text-align: center; display: block; margin-top: 10px;
  }

  /* серийный номер в потоке */
  .npb-serial {
    position: static;
    display: block;
    text-align: right;
    padding: 0 16px 10px;
  }

  /* Форма и результат — без отступа слева */
  .npb-form-wrap { margin-left: 0; padding: 0 18px 18px; }
  .npb-form-row { flex-direction: column; }
  .npb-result { margin-left: 0; padding: 16px 18px 18px; }
  .npb-conditions { margin-left: 0; padding: 0 18px 14px; }
  .npb-br-desk { display: none; }
}

/* ─── Внутри vault — без фона, наследуем vault bg ─── */
.np-vault .npb-bonus {
  background: transparent;
  padding: 32px 0 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
