/* ==========================================================================
   Кастомные стили лендинга «Куда делись деньги»
   Дополняют Tailwind (Play CDN) там, где нужны точные детали дизайна.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ---------- Шапка: фон появляется при скролле ---------- */
#site-header {
  background: transparent;
}
#site-header.is-scrolled {
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -15px rgba(11, 18, 32, 0.4);
}
#site-header.is-scrolled a,
#site-header.is-scrolled nav a {
  color: #fff;
}
#site-header.is-scrolled nav a {
  color: rgba(255, 255, 255, 0.7);
}
#site-header.is-scrolled nav a:hover {
  color: #fff;
}
#site-header.is-scrolled span.text-ink\/60 {
  color: rgba(255, 255, 255, 0.6);
}
#site-header:not(.is-scrolled) {
  color: #0b1220;
}
#site-header #burger {
  color: #0b1220;
}
#site-header.is-scrolled #burger {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
#site-header.is-scrolled button[data-modal-open] {
  background: #33e0b4;
  color: #0b1220;
}
#site-header.is-scrolled button[data-modal-open]:hover {
  background: #fff;
}

/* ---------- Скролл-реакция: карточки/секции ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Карточки "после вебинара" (bento) ---------- */
.bento-card {
  background: #fff;
  border: 1px solid rgba(11, 18, 32, 0.06);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px -18px rgba(11, 18, 32, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -18px rgba(11, 18, 32, 0.22);
}
.bento-card p {
  color: #0b1220;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.85rem;
}
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: rgba(51, 224, 180, 0.15);
  color: #17b693;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ---------- Блок "кому подойдёт" ---------- */
.audience-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
}
.audience-card p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  font-size: 0.98rem;
}

/* ---------- Блок "как использовать информацию" ---------- */
.benefit-item {
  background: #fff;
  border: 1px solid rgba(11, 18, 32, 0.06);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 10px 30px -20px rgba(11, 18, 32, 0.15);
}
.benefit-item h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #0b1220;
}
.benefit-item p {
  margin-top: 0.6rem;
  color: rgba(11, 18, 32, 0.6);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- План вебинара ---------- */
.plan-item {
  position: relative;
  display: flex;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid rgba(11, 18, 32, 0.06);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 30px -22px rgba(11, 18, 32, 0.15);
}
.plan-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: #0b1220;
  color: #33e0b4;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.plan-item h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #0b1220;
}
.plan-item p {
  margin-top: 0.4rem;
  color: rgba(11, 18, 32, 0.6);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Спикер ---------- */
.speaker-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(51, 224, 180, 0.1);
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  color: #0b1220;
  font-weight: 600;
  line-height: 1.35;
}
.speaker-badge::before {
  content: '';
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #17b693;
}

/* ---------- Две ошибки ---------- */
.mistake-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2rem;
}
.mistake-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 107, 87, 0.15);
  color: #ff6b57;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
}
.mistake-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: #fff;
  margin-top: 1rem;
}
.mistake-card p {
  margin-top: 0.85rem;
  line-height: 1.65;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Риски ---------- */
.risk-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: #f6f4ee;
}
.risk-item > span {
  flex-shrink: 0;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: rgba(11, 18, 32, 0.15);
}
.risk-item h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #0b1220;
}
.risk-item p {
  margin-top: 0.5rem;
  color: rgba(11, 18, 32, 0.6);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Финальный CTA: чек-лист ---------- */
.reg-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  font-size: 0.98rem;
}
.reg-check::before {
  content: '';
  flex-shrink: 0;
  margin-top: 0.4rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #33e0b4;
}

/* ---------- Таймер ---------- */
.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.6rem;
  padding: 0.65rem 0.4rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.countdown-box span {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #33e0b4;
  line-height: 1;
}
.countdown-box small {
  margin-top: 0.3rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Модальное окно регистрации ---------- */
#cta-modal.is-open {
  display: block;
}
#cta-modal .modal-panel {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#cta-modal.is-open .modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.field-error {
  display: none;
  color: #ff6b57;
  font-size: 0.78rem;
  margin-top: 0.35rem;
}
.has-error input {
  border-color: #ff6b57 !important;
  box-shadow: 0 0 0 2px rgba(255, 107, 87, 0.15);
}
.has-error .field-error {
  display: block;
}

/* ---------- Утилиты ---------- */
@media (max-width: 640px) {
  .plan-item {
    padding: 1.25rem;
    gap: 1rem;
  }
  .plan-num {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}
