/* ===================================================================
   Finratio · Оформление платного доступа
   Блок покупки (paywall), заглушки закрытых уроков, тост-уведомления.
   Подключается только на страницах платных курсов.
   =================================================================== */

/* ── Закрытый урок ── */
.lesson-locked {
  padding: 48px 32px;
  text-align: center;
  background: var(--cream);
  border: 1px dashed rgba(200, 168, 75, .45);
  border-radius: 8px;
  margin: 8px 0 4px;
}
.lesson-locked-ico { font-size: 2rem; margin-bottom: 14px; opacity: .8; }
.lesson-locked-title {
  font-family: var(--font-display);
  font-size: 1.22rem; font-weight: 700; color: var(--ink);
  margin-bottom: 10px;
}
.lesson-locked-text {
  font-size: .94rem; line-height: 1.65; color: #6b6b6b;
  max-width: 460px; margin: 0 auto 20px;
}
.lesson-locked-btn {
  display: inline-block; padding: 12px 26px;
  background: var(--gold); color: var(--ink);
  font-family: var(--font-ui); font-weight: 800; font-size: .84rem;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  border-radius: 100px; transition: background .2s, transform .2s;
}
.lesson-locked-btn:hover { background: var(--gold-light, #e8d080); transform: translateY(-1px); }

/* ── Блок покупки ── */
.paywall {
  background: var(--ink);
  padding: 64px 24px;
  margin-top: 48px;
  scroll-margin-top: 90px;
}
.paywall-inner { max-width: 620px; margin: 0 auto; text-align: center; color: #fff; }
.paywall-label {
  font-family: var(--font-label); font-size: .7rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.paywall-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700;
  line-height: 1.16; margin-bottom: 14px; color: #fff;
}
.paywall-sub {
  font-size: .98rem; line-height: 1.68; color: rgba(255, 255, 255, .68);
  margin-bottom: 26px;
}
.paywall-list {
  list-style: none; margin: 0 0 30px; padding: 0;
  display: inline-block; text-align: left;
}
.paywall-list li {
  position: relative; padding-left: 28px; margin-bottom: 11px;
  font-size: .95rem; color: rgba(255, 255, 255, .82);
}
.paywall-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
}
.paywall-price {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 12px;
  font-family: var(--font-display); line-height: 1; margin-bottom: 26px;
}
.paywall-now { order: -1; flex-basis: 100%; font-size: 2.6rem; font-weight: 750; letter-spacing: -0.02em; color: var(--gold-lt, #d9a940); }
.paywall-old { font-size: 1.1rem; color: rgba(255, 255, 255, .55); text-decoration-thickness: 1.5px; }
.paywall-off { font-size: .85rem; font-weight: 650; color: #fff; background: var(--rust, #b3412a); padding: 3px 7px; border-radius: 6px; }
.paywall-price span {
  flex-basis: 100%; font-size: .85rem; font-weight: 450; color: rgba(255, 255, 255, .55); margin-top: 4px;
}
.paywall-btn {
  display: inline-block; padding: 16px 44px; border: none; cursor: pointer;
  background: var(--gold); color: var(--ink);
  font-family: var(--font-ui); font-weight: 800; font-size: .92rem;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  border-radius: 100px; transition: background .2s, transform .2s;
}
.paywall-btn:hover:not(:disabled) { background: #e8d080; transform: translateY(-2px); }
.paywall-btn:disabled { opacity: .6; cursor: default; }
.paywall-note {
  font-size: .82rem; color: rgba(255, 255, 255, .5);
  margin-top: 18px; line-height: 1.6;
  max-width: 460px; margin-left: auto; margin-right: auto;
}
.paywall-note a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(200,168,75,.4); }
.paywall-note a:hover { color: #e8d080; }
.paywall-error {
  color: #ffb4a2; font-size: .9rem; margin-top: 16px; min-height: 1.2em;
}

/* ── Тост ── */
.access-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff;
  padding: 15px 26px; border-radius: 100px;
  border: 1px solid rgba(200, 168, 75, .35);
  font-size: .9rem; line-height: 1.5; max-width: min(560px, calc(100vw - 32px));
  text-align: center; z-index: 900;
  opacity: 0; transition: opacity .35s, transform .35s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.access-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .paywall { padding: 44px 18px; }
  .lesson-locked { padding: 36px 20px; }
  .paywall-now { font-size: 2.1rem; }
}
