/* ============================================================
   Общая база лендингов «кнопка → бот»
   Вёрстка 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-1 — прямой БФЛ, контрольный вариант.
   Повторяет донора a1.gosbankrostvofl.ru: синий, Manrope, те же
   блоки в том же порядке. Отличается только фото первого экрана.
   ============================================================ */

.page--bfl-1 {
  --accent:      #0042C1;
  --accent-soft: rgba(0, 66, 193, .12);
  --font:        'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ---------- Шапка ---------- */

.page--bfl-1 .topbar {
  padding: 14px var(--gutter);
  background: var(--accent);
}

.page--bfl-1 .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.page--bfl-1 .brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .16);
}

.page--bfl-1 .brand__mark svg { width: 24px; height: 24px; }

.page--bfl-1 .brand__text { font-size: 12px; line-height: 1.3; }

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

.page--bfl-1 .hero__img { width: 100%; }

/* ---------- Оффер ---------- */

.page--bfl-1 .intro { padding-top: 22px; }

.page--bfl-1 .title {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--accent);
}

.page--bfl-1 .text { margin-bottom: 20px; }

.page--bfl-1 .lead {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.page--bfl-1 .lead__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.page--bfl-1 .lead__icon svg { width: 34px; height: 34px; }

.page--bfl-1 .lead__text { font-size: 17px; line-height: 1.4; }
.page--bfl-1 .lead__text strong { color: var(--accent); font-weight: 800; }

.page--bfl-1 .points__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.page--bfl-1 .points__item:last-child { border-bottom: 0; }

.page--bfl-1 .points__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.page--bfl-1 .points__icon svg { width: 22px; height: 22px; }

.page--bfl-1 .points strong { font-weight: 800; }

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

.page--bfl-1 .action { padding-block: 14px 26px; }

.page--bfl-1 .divider {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page--bfl-1 .divider__line { flex: 1; height: 1px; background: var(--accent); }

.page--bfl-1 .divider__title {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.page--bfl-1 .action__soc { padding: 2px 0 8px; text-align: center; }

.page--bfl-1 .action__desc {
  padding-bottom: 22px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 800;
  text-align: center;
}

/* У донора надпись на кнопке прижата влево, к иконке */
.page--bfl-1 .bot { justify-content: flex-start; border-radius: 10px; }

@media (max-width: 359px) {
  .page--bfl-1 .title { font-size: 25px; }
  .page--bfl-1 .divider__title { font-size: 19px; }
  .page--bfl-1 .action__desc { font-size: 18px; }
}
