/* Тарифы */
.tier { border-radius:14px; box-shadow:0 2px 16px rgba(0,0,0,.1); transition:box-shadow .2s,transform .15s; cursor:pointer; }
.tier:hover { box-shadow:0 8px 28px rgba(0,0,0,.18); transform:translateY(-2px); }
.tier-mid { border:2px solid #14335a !important; }
.tier-header-title { font-size:18px; font-weight:700; }
.tier-header-price { font-size:22px; font-weight:800; color:#14335a; }
.tier-badge-soft { display:inline-block !important; padding:3px 10px !important; border-radius:20px; font-size:12px !important; font-weight:600 !important; letter-spacing:.3px; }

/* Платёжный экран: Вариант А */
.payment-body { display:flex !important; flex-direction:column !important; }

.payment-summary { order:-1; background:#14335a !important; color:#fff !important; border-radius:12px !important; padding:12px 18px !important; margin-bottom:14px !important; display:flex !important; align-items:center !important; justify-content:space-between !important; gap:8px; }

.payment-summary h3 { display:none !important; }
.payment-summary #orderItem { flex:1; display:flex !important; flex-direction:column; gap:2px; }
.payment-summary .summary-item-title { font-size:14px !important; font-weight:600 !important; color:#fff !important; margin:0 !important; }
.payment-summary .summary-item-desc { font-size:12px !important; color:rgba(255,255,255,.75) !important; margin:0 !important; }
.payment-summary .summary-item-desc::after { content:' · НДС включён'; }
.payment-summary .payment-row { display:none !important; }
.payment-summary .payment-row.total { display:flex !important; flex-direction:column !important; align-items:flex-end; gap:0; }
.payment-summary .payment-row.total span:first-child { font-size:11px !important; color:rgba(255,255,255,.6) !important; }
.payment-summary .payment-row.total strong { font-size:22px !important; font-weight:700 !important; color:#fff !important; }
.payment-summary .payment-pay-btn { display:none !important; }
.payment-summary .payment-security { display:none !important; }

/* Виджет на всю ширину */
.payment-methods { width:100% !important; }
#yk-widget-container { width:100% !important; min-height:300px !important; }
#paymentMethodsBox { width:100% !important; }

/* Убрать Made on Tilda */
div[id*=til][id*=lda][id*=aco][id*=opy] { height:0 !important; overflow:hidden !important; }

/* ── Phase 4: Viral Sharing + Referral ─────────────────── */
#referralBanner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    background: #00C2A8; color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 18px; font-size: 13px; font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  #referralBanner button {
    background: none; border: none; color: #fff; font-size: 20px;
    cursor: pointer; padding: 0 0 0 12px; line-height: 1; flex-shrink: 0;
  }

  /* ── Salary card (Card A) ─────────────────────────────────── */
  .salary-card {
    background: #0F0F0F;
    border-radius: 16px;
    padding: 36px 28px;
    margin: 0 auto 20px;
    display: flex; flex-direction: column; gap: 6px;
    position: relative; overflow: hidden;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.5);
    font-family: 'Manrope', sans-serif;
  }
  .salary-card.format-11  { width: 320px; height: 320px; max-width: 100%; }
  .salary-card.format-916 { width: 320px; height: 570px; max-width: 100%; padding-top: 60px; }
  .sc-meta   { font-size: 13px; color: #888; margin-bottom: 10px; white-space: pre-line; }
  .sc-salary { font-size: 42px; font-weight: 800; color: #fff; line-height: 1.1; }
  .sc-verdict { font-size: 20px; color: #00C2A8; font-weight: 700; margin-top: 14px; line-height: 1.3; }
  .sc-sub    { font-size: 17px; color: #fff; font-weight: 400; display: block; margin-top: 2px; }
  .sc-hint   { font-size: 13px; color: #555; font-style: italic; margin-top: 4px; }
  .sc-source { font-size: 11px; color: #444; margin-top: auto; padding-top: 16px; }
  .sc-brand  { font-size: 11px; color: #444; text-align: right; }

  /* ── Format toggle ────────────────────────────────────────── */
  .card-format-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
  .fmt-btn {
    padding: 5px 14px; border-radius: 20px; border: 1.5px solid var(--gray-300, #d1d5db);
    background: transparent; font-size: 12px; cursor: pointer; color: var(--gray-600, #4b5563);
    font-family: inherit;
  }
  .fmt-btn.active { background: var(--navy, #14335a); color: #fff; border-color: var(--navy, #14335a); }

  /* ── Share buttons ────────────────────────────────────────── */
  .share-btns { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
  .share-btn {
    padding: 13px 16px; border-radius: 10px; border: none;
    font-size: 14px; font-weight: 600; cursor: pointer; text-align: center;
    font-family: inherit; transition: opacity .15s;
  }
  .share-btn:active { opacity: .8; }
  .share-primary { background: var(--navy, #14335a); color: #fff; }
  .share-tg      { background: #2AABEE; color: #fff; }
  .share-ig      { background: transparent; color: var(--navy, #14335a); border: 1.5px solid var(--navy, #14335a); }

  /* ── Referral section ─────────────────────────────────────── */
  .referral-section {
    border-top: 1px solid var(--gray-200, #e5e7eb);
    padding-top: 18px; margin-top: 16px;
  }
  .referral-code-line { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--gray-700, #374151); }
  .referral-code-val  { font-family: 'Courier New', monospace; letter-spacing: 0.1em; color: #000; }
  .referral-body { font-size: 13px; line-height: 1.65; margin: 0 0 14px; color: var(--gray-600, #4b5563); }
  .referral-copy-btns { display: flex; gap: 10px; }
  .referral-btn {
    flex: 1; padding: 9px 12px; border-radius: 8px;
    border: 1.5px solid var(--gray-400, #9ca3af); background: transparent;
    font-size: 12px; font-weight: 600; cursor: pointer; color: var(--gray-700, #374151);
    font-family: inherit;
  }
  .referral-btn:hover { background: var(--gray-50, #f9fafb); }

  /* ── Card B ───────────────────────────────────────────────── */
  .card-b-block {
    background: #1a0a0a;
    border-left: 3px solid var(--red, #c43a3a);
    border-radius: 0 12px 12px 0;
    padding: 24px 20px;
    margin: 16px 0;
  }
  .cb-market-label { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
  .cb-salary { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.2; }
  .cb-verdict { font-size: 16px; color: #b45309; font-weight: 600; margin-bottom: 20px; }
  .cb-cta {
    display: block; color: #fff; text-decoration: none;
    font-size: 14px; font-weight: 600;
    padding: 13px 18px; background: var(--red, #c43a3a);
    border-radius: 8px; text-align: center;
  }
  .cb-cta:hover { background: #a32f2f; }

  /* ── Promo code input ─────────────────────────────────────── */
  .promo-row { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
  .promo-input {
    flex: 1; min-width: 140px; padding: 9px 12px; border-radius: 8px;
    border: 1.5px solid var(--gray-300, #d1d5db); font-size: 13px;
    letter-spacing: 0.06em; font-family: inherit; outline: none;
  }
  .promo-input:focus { border-color: var(--blue, #2f5fd8); }
  .promo-apply-btn {
    padding: 9px 14px; border-radius: 8px; border: none;
    background: var(--navy, #14335a); color: #fff; font-size: 13px;
    font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap;
  }
  .promo-status { font-size: 12px; font-weight: 600; }
  .promo-status.ok    { color: var(--green, #16a34a); }
  .promo-status.error { color: var(--red, #c43a3a); }

  /* ── Clipboard toast ──────────────────────────────────────── */
  .clip-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: #1a1a1a; color: #fff; padding: 10px 22px;
    border-radius: 24px; font-size: 13px; z-index: 10001;
    pointer-events: none; font-family: inherit; white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  }
