/* ============================================================
   REG — мини-лендинг приглашения в бот-куратора.
   Шапка и hero берутся 1-в-1 с основного лендинга (наследуют
   стили из hero.css). Здесь только стили дополнительной
   секции .reg-mess — центрированный блок с TextBack-виджетом
   под hero, на тёплой peach-подложке (зебра).
   ============================================================ */

body.reg-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.reg-page > main { flex: 1 0 auto; }

/* На мини-лендингах меню убрано — оставляем только печать «5 лет клубу».
   Перебиваем grid из hero.css через flex + justify-content: flex-end
   и !important, чтобы спецификация .nav (0,1,0) не выиграла у нашего
   .reg-page .nav (0,2,0) из-за случайного source-order или каскада. */
.reg-page .nav {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}
.reg-page .nav__menu-empty { display: none; }

/* ============================================================
   .reg-mess — секция «Выберите мессенджер».
   Тёплая peach-подложка под всю ширину viewport (как зебра-
   подложка на главной), центрированный контент.
   ============================================================ */
.reg-mess {
  position: relative;
  text-align: center;
  padding-top: clamp(48px, 8vh, 100px);
  padding-bottom: clamp(48px, 9vh, 110px);
}
.reg-mess::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  background: #fbe9d6;
  pointer-events: none;
}

.reg-mess__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 620px;
  margin: 0 auto clamp(32px, 5vh, 48px);
}
.reg-mess__title {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.04;
}
.reg-mess__lead {
  font-size: clamp(14px, 1.1vw, 15px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 500px;
}

/* === TEXTBACK WIDGET — без обёртки-карточки.
   Раньше была белая card вокруг ~50px кругов MAX/Telegram, но
   маленькие иконки в большой пустой карточке выглядели убого. Теперь
   виджет сидит прямо на peach-подложке секции. === */
.reg-mess__widget {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(20px, 3vh, 32px);
  min-height: 80px;
}
.reg-mess__widget tb-notification-widget {
  display: block;
}

/* === FALLBACK «нажмите здесь» ===
   Если у юзера TextBack не отрисовался, по клику раскрывается блок
   с прямыми инструкциями (поиск бота вручную). */
.reg-mess__fallback {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}
.reg-mess__fallback-toggle {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--g3);
  border-bottom: 1px dashed rgba(155, 95, 223, 0.4);
}
.reg-mess__fallback-toggle:hover { border-bottom-style: solid; }

/* Раскрывающийся блок плашек с прямыми ссылками на бота */
.reg-mess__instructions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
  margin: 14px auto 0;
  animation: regInstrFade .25s ease-out both;
}
@keyframes regInstrFade {
  0%   { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.reg-mess__bot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 14px 28px -20px rgba(28, 34, 54, 0.20);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-width: 0;
}
.reg-mess__bot:hover {
  transform: translateY(-1px);
  border-color: rgba(28, 34, 54, 0.18);
  box-shadow: 0 18px 32px -18px rgba(28, 34, 54, 0.25);
}
.reg-mess__bot-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reg-mess__bot-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reg-mess__bot-body strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.reg-mess__bot-body small {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* === CONSENT NOTE === */
.reg-mess__consent {
  margin: clamp(24px, 4vh, 36px) auto 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 560px;
}
.reg-mess__consent a {
  color: var(--g2);
  text-decoration: none;
  border-bottom: 1px dashed rgba(233, 74, 161, 0.4);
}
.reg-mess__consent a:hover { border-bottom-style: solid; }

@media (max-width: 540px) {
  .reg-mess__instructions { grid-template-columns: 1fr; }
}
