/* ============================================================
   Общая база лендингов «кнопка → бот»
   Вёрстка mobile-first, одна колонка шириной до 600px (как у донора
   a1.gosbankrostvofl.ru). Цвета и шрифты задаёт тема лендинга
   в pages/<slug>.css через переменные ниже.
   ============================================================ */

:root {
  --accent:       #0042C1;   /* заголовки, иконки, ссылки */
  --accent-soft:  #EEF1FB;   /* подложки под иконки и плашки */
  --bg:           #E9ECF2;   /* фон вокруг колонки на десктопе */
  --surface:      #FFFFFF;   /* фон колонки */
  --text:         #1F2430;
  --muted:        #6B7280;
  --line:         #E5E7EB;
  --gutter:       20px;

  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-head: var(--font);

  /* Фирменные цвета мессенджеров — на всех лендингах одинаковые */
  --max-grad: linear-gradient(90deg, #4CC3F7 0%, #4B3BE6 60%, #9A3BDB 100%);
  --vk-blue:  #0077FF;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }

/* Сборщик вешает класс на <picture>, а не на <img>: размеры и скругления
   задаём обёртке, картинка её заполняет. Если высота обёртки не задана,
   height: 100% ни во что не упирается и картинка держит свои пропорции. */
picture { display: block; }
picture > img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }

/* Колонка-«карточка» */
.page {
  position: relative;
  max-width: 600px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  overflow: hidden;
}

@media (min-width: 640px) {
  .page {
    min-height: 0;
    margin-block: 24px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(16, 24, 40, .10);
  }
}

.wrap { padding-inline: var(--gutter); }

/* ================= КНОПКИ В БОТОВ ================= */

.bots { display: flex; gap: 12px; }
.bots--col { flex-direction: column; }

.bot {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: filter .15s, opacity .15s, transform .08s;
  -webkit-tap-highlight-color: transparent;
}

.bot svg { flex: 0 0 auto; width: 26px; height: 26px; }

.bot--max { background: var(--max-grad); box-shadow: 0 8px 20px rgba(75, 59, 230, .26); }
.bot--vk  { background: var(--vk-blue);  box-shadow: 0 8px 20px rgba(0, 119, 255, .26); }

.bot:hover  { filter: brightness(1.06); }
.bot:active { transform: scale(.985); }

/* Галочка согласия снята — кнопки бледнеют (см. app.js) */
.bot.is-off { opacity: .45; box-shadow: none; }

/* ================= СОГЛАСИЕ ================= */

/* Вариант с галочкой, как у донора */
.consent { margin-top: 14px; }

.consent__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
}

.consent__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent__box {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 2px solid #D7DBE3;
  border-radius: 6px;
  background: #fff;
  color: transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}

.consent__box svg { width: 12px; height: 10px; }

.consent__input:checked ~ .consent__box {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.consent__input:focus-visible ~ .consent__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.consent__text { font-size: 13px; line-height: 1.45; color: var(--text); }
.consent__text a { color: var(--accent); }

.consent__error {
  margin: 4px 10px 0;
  font-size: 13px;
  color: #D92D20;
}

.consent.is-error .consent__row { border-color: #D92D20; }

/* Вариант одной строкой под кнопками */
.consent-note {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.consent-note a { color: inherit; }

/* ================= ФУТЕР ================= */

.footer {
  padding: 22px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: #9A9A9A;
  font-size: 11px;
  line-height: 1.5;
}

.footer p { margin-bottom: 8px; }
.footer a { color: inherit; }
.footer__copy { margin-bottom: 0; }

/* ================= МЕЛОЧИ ================= */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Очень узкие экраны (iPhone SE и меньше) */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .bot { font-size: 15px; padding-inline: 12px; gap: 9px; }
}


/* ============================================================
   bfl-3 — прямой БФЛ, «честный разбор».
   Строгая подача: графит и охра, фото Алёны во весь первый экран,
   заголовок поверх фото, липкая панель с кнопками внизу.
   ============================================================ */

.page--bfl-3 {
  --accent:      #D9A441;
  --accent-soft: #FBF3E1;
  --ink:         #1E1F22;   /* тёмные блоки */
  --text:        #1E1F22;
  --muted:       #6F7177;
  --line:        #E6E6E3;
}

body { background: #D9D8D4; }

/* ---------- Первый экран ---------- */

.page--bfl-3 .cover {
  position: relative;
  background: var(--ink);
}

.page--bfl-3 .cover__img { width: 100%; }

.page--bfl-3 .cover__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 31, 34, 0) 38%, rgba(30, 31, 34, .78) 66%, var(--ink) 100%);
}

.page--bfl-3 .cover__body {
  position: absolute;
  inset: auto 0 0;
  padding-bottom: 22px;
  color: #fff;
}

.page--bfl-3 .cover__tag {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .82);
}

.page--bfl-3 .cover__tag b { display: block; font-size: 15px; color: #fff; font-weight: 700; }

.page--bfl-3 .title {
  font-size: 30px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -.4px;
}

.page--bfl-3 .title em { font-style: normal; color: var(--accent); }

/* ---------- Кнопки ---------- */

.page--bfl-3 .first {
  padding-block: 4px 26px;
  background: var(--ink);
  color: #fff;
}

.page--bfl-3 .first .text {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .84);
}

.page--bfl-3 .first .consent-note { color: rgba(255, 255, 255, .55); }

.page--bfl-3 .bot { border-radius: 12px; }

/* ---------- Когда стоит проверить ---------- */

.page--bfl-3 .when { padding-block: 30px 26px; }

.page--bfl-3 .subtitle {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.2px;
}

.page--bfl-3 .marks li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
}

.page--bfl-3 .marks li:last-child { border-bottom: 0; }

.page--bfl-3 .marks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 19px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
}

/* ---------- Что получите ---------- */

.page--bfl-3 .get {
  padding-block: 28px;
  background: var(--accent-soft);
}

.page--bfl-3 .get__list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.page--bfl-3 .get__list b {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #A8771B;
}

.page--bfl-3 .get__price {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
}

.page--bfl-3 .get__price b { color: var(--accent); white-space: nowrap; }

/* Запас снизу — под липкую панель, чтобы она не закрывала футер */
.page--bfl-3 .footer { padding-bottom: 96px; }

/* ---------- Липкая панель ---------- */

.page--bfl-3 .sticky {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 600px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(30, 31, 34, .96);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .18);
  transform: translateX(-50%);
  transition: transform .2s, opacity .2s;
}

.page--bfl-3 .sticky.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 100%);
}

.page--bfl-3 .sticky__label {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.page--bfl-3 .sticky .bot {
  flex: 0 0 auto;
  gap: 8px;
  min-height: 46px;
  padding: 8px 14px;
  font-size: 15px;
  box-shadow: none;
}

.page--bfl-3 .sticky .bot svg { width: 20px; height: 20px; }

@media (min-width: 640px) {
  .page--bfl-3 .sticky { bottom: 24px; border-radius: 16px; }
}

@media (max-width: 359px) {
  .page--bfl-3 .title { font-size: 26px; }
  .page--bfl-3 .sticky__label { font-size: 12px; }
}
