/* Механики конверсии (23.10.2026): бонус, exit-попап, закрытая разбивка калькулятора, мобильная панель, Telegram. */
.ffc-badge-wrap { margin: 0 0 16px; }
.ffc-badge-wrap .ffc-badge { margin: 0; }
.ffc-badge__main { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ffc-badge__terms { flex: none; padding: 0; border: 0; background: none; color: #21054b; font: 600 13px Inter, Arial, sans-serif; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ffc-badge-terms { max-width: 640px; margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff; color: #3b3248; font: 400 13px/1.5 Inter, Arial, sans-serif; }
.ffc-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 9px 16px 9px 10px; border: 1px solid rgba(33, 5, 75, .14); border-radius: 999px; background: #d9fb1d; color: #21054b; font: 500 14px/1.35 Inter, Arial, sans-serif; text-align: left; cursor: pointer; }
.ffc-badge:hover { background: #e6ff5c; }
.ffc-badge u { text-underline-offset: 2px; white-space: nowrap; }
.ffc-badge__gift { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: #21054b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9fb1d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12v9H4v-9M2 7h20v5H2zM12 21V7M12 7H7.5a2.5 2.5 0 1 1 0-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 1 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E") center / 15px no-repeat; display: inline-block; vertical-align: middle; }

/* Попап */
.ffc-locked { overflow: hidden; }
.ffc-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 4, 46, .62); }
.ffc-modal[hidden] { display: none; }
.ffc-modal__box { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px 24px 22px; border-radius: 24px; background: #fff; color: #21054b; box-shadow: 0 30px 90px rgba(20, 4, 46, .45); }
.ffc-modal__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eee5fb; color: #21054b; font: 400 26px/1 Arial, sans-serif; cursor: pointer; }
.ffc-modal__kicker { margin: 0 0 6px; color: #5a19bd; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ffc-modal__title { margin: 0 44px 8px 0; font-size: 24px; line-height: 1.2; font-weight: 800; }
.ffc-modal__sub { margin: 0 0 16px; color: #756c80; font-size: 15px; }
.ffc-form { display: grid; gap: 12px; }
.ffc-form .ff-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.ffc-form input[type="tel"], .ffc-form input[type="text"], .ffc-form select { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid rgba(33, 5, 75, .2); border-radius: 14px; background: #fff; color: #21054b; font: 400 16px/1.2 Inter, Arial, sans-serif; }
.ffc-form input[aria-invalid="true"] { border-color: #a02f2f; }
.ffc-how { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ffc-how .ff-option { position: relative; display: block; cursor: pointer; }
.ffc-how .ff-option input { position: absolute; opacity: 0; }
.ffc-how .ff-option span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 10px; border: 1px solid rgba(33, 5, 75, .2); border-radius: 12px; font-size: 14px; font-weight: 600; text-align: center; }
.ffc-how .ff-option input:checked + span { border-color: #5a19bd; background: #eee5fb; }
.ffc-how .ff-option input:focus-visible + span { outline: 3px solid #d9fb1d; outline-offset: 2px; }
.ffc-tgnick[hidden] { display: none !important; }
.ffc-consent { margin: 0; color: #756c80; font-size: 12px; line-height: 1.45; }
.ffc-status { font-size: 14px; }
.ffc-status:empty { display: none; }
.ffc-status.is-error { color: #a02f2f; }
.ffc-alt { margin: 14px 0 0; text-align: center; font-size: 14px; color: #756c80; }
.ffc-terms { margin-top: 12px; font-size: 13px; color: #756c80; }
.ffc-terms summary { cursor: pointer; color: #5a19bd; font-weight: 600; }
.ffc-terms p { margin: 8px 0 0; line-height: 1.5; }
.ffc-done p { margin: 0 0 8px; }

/* Калькулятор */
.ffc-gated dd { filter: blur(6px); user-select: none; }
.ffc-gate { margin: 14px 0; padding: 18px; border: 1px dashed rgba(90, 25, 189, .45); border-radius: 18px; background: #f7f2ff; }
.ffc-gate__title { margin: 0 0 4px; font-weight: 800; font-size: 17px; }
.ffc-gate__sub { margin: 0 0 12px; color: #756c80; font-size: 14px; }
.ffc-gate__ok { margin: 0 0 10px; color: #2e7200; font-weight: 600; }
.ffc-tgbtn { margin-top: 10px; }

/* Квиз */
.ffc-quiz-bonus { margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; background: #f4ffc4; font-size: 14px; }
.ffc-quiz-bonus p { display: flex; align-items: center; gap: 10px; margin: 0; }
.ffc-quiz-bonus .ffc-terms { margin-top: 6px; }
.ffc-quiz-alt { display: grid; gap: 8px; margin-top: 12px; text-align: center; color: #756c80; font-size: 13px; }
.ffc-quiz-alt .ffc-tgbtn { margin-top: 0; }
.ffc-price-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 0 0 28px; padding: 22px 24px; border-radius: 24px; background: #fff; }
.ffc-price-head__big { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; line-height: 1; }
.ffc-price-head__big small { font-size: .45em; font-weight: 600; color: #756c80; }
.ffc-price-head__text { flex: 1 1 260px; margin: 0; color: #756c80; font-size: 15px; }
.ffc-price-head__cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Тост */
.ffc-toast { position: fixed; left: 50%; bottom: 90px; z-index: 1001; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 14px; background: #21054b; color: #fff; font-size: 14px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.ffc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Мобильная панель: Позвонить / Telegram / Рассчитать */
.ffc-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30; display: none; gap: 6px; transition: opacity .2s, transform .2s; }
.ffc-bar .ff-btn { flex: 1 1 0; min-width: 0; min-height: 50px; padding: 0 8px; font-size: 15px; box-shadow: 0 10px 30px rgba(33, 5, 75, .28); }
.ffc-bar .ffc-bar__call, .ffc-bar .ffc-bar__tg { background: #fff; color: #21054b; }
.ffc-bar .ffc-bar__tg { background: #eee5fb; }
.ffc-bar.is-hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
@media (max-width: 960px) {
  .ffc-bar { display: flex; }
  html.ffc-has-bar body { padding-bottom: 76px; }
  .ff-sticky-cta { display: none !important; }
}
@media (max-width: 560px) {
  .ffc-badge { font-size: 13px; }
  .ffc-modal { align-items: flex-end; padding: 0; }
  .ffc-modal__box { width: 100%; border-radius: 22px 22px 0 0; max-height: 92vh; padding: 24px 18px 18px; }
  .ffc-modal__title { font-size: 21px; }
}

/* 23.10.2026: пояснение «бесплатна только приёмка» */
.ffc-badge-note { margin: 8px 0 0; color: #756c80; font: 400 13px/1.4 Inter, Arial, sans-serif; max-width: 560px; }
.ffc-note { margin: -8px 0 14px; color: #756c80; font-size: 13px; line-height: 1.4; }
.ffc-quiz-bonus .ffc-note { margin: 6px 0 0; }

/* 23.10.2026: блок КП в калькуляторе — тёмный текст на светлом фоне (панель калькулятора тёмная) */
.ffc-gate { background: #fff; color: #21054b; border: 1px solid rgba(33, 5, 75, .12); }
.ffc-gate .ffc-gate__title { color: #21054b; }
.ffc-gate .ffc-gate__sub, .ffc-gate .ffc-consent { color: #5d5468; }
.ffc-gate .ffc-consent a { color: #5a19bd; }
.ffc-gate .ff-field span { color: #21054b; }
.ffc-gate .ff-field input { background: #fff; color: #21054b; border-color: rgba(33, 5, 75, .25); }
.ffc-gate .ff-option { background: none; border: 0; padding: 0; color: #21054b; }
.ffc-gate .ff-option span { background: #fff; color: #21054b; border: 1px solid rgba(33, 5, 75, .25); }
.ffc-gate .ff-option input:checked + span { background: #efe6ff; border-color: #5a19bd; color: #21054b; }
.ffc-gate .ffc-tgbtn { background: #fff; color: #21054b; border: 1px solid rgba(33, 5, 75, .25); }
.ffc-gate .ffc-status.is-error { color: #b3261e; }
/* Компактная cookie-плашка на мобильных: одна строка, над нижней панелью */
@media (max-width: 600px) {
  .ds-cookie { flex-wrap: nowrap !important; left: 8px; right: 8px; bottom: 8px; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; font-size: 12px; line-height: 1.3; }
  .ds-cookie p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ds-cookie__long { display: none; }
  .ds-cookie__btns { width: auto !important; gap: 6px; }
  .ds-cookie__ok, .ds-cookie__no { min-height: 30px; padding: 0 10px; font-size: 12px; }
}
@media (min-width: 601px) { .ds-cookie__short { display: none; } }
/* 24.10.2026: квиз выше на мобильных — сразу после заголовка и подзаголовка; остальной текст первого экрана — под квизом */
.ff-quiz__ask { margin: 14px 0 8px; font-weight: 700; }
@media (max-width: 600px) {
  .ff-hero__grid, .ds-hero__grid { display: flex; flex-direction: column; gap: 0; }
  .ff-hero__grid > .ff-hero__copy, .ds-hero__grid > div:first-child { display: contents; }
  .ff-hero__grid > .ff-hero__copy > *, .ds-hero__grid > div:first-child > * { order: 3; }
  .ff-hero__grid > .ff-hero__copy > .ff-eyebrow, .ff-hero__grid > .ff-hero__copy > h1, .ff-hero__grid > .ff-hero__copy > .ff-lead,
  .ds-hero__grid > div:first-child > .ff-eyebrow, .ds-hero__grid > div:first-child > h1, .ds-hero__grid > div:first-child > .ds-lead { order: 1; }
  .ff-hero__grid > .ff-hero__copy > .ff-lead, .ds-hero__grid > div:first-child > .ds-lead { margin-bottom: 16px; }
  .ff-hero__grid > #quiz, .ds-hero__grid > #quiz { order: 2; margin-bottom: 22px; }
}

/* 24.10.2026: при «В Telegram» кнопка Telegram — главная */
.ffc-quiz-alt.is-primary{margin:12px 0 14px;display:flex;flex-direction:column;gap:6px}
.ffc-quiz-alt.is-primary span{order:2;font-size:13px;line-height:1.35;color:var(--ds-muted,#6b6b7b);text-align:left}
.ffc-quiz-alt.is-primary .ff-btn{order:1}

/* 29.10.2026: блок «индивидуальные условия» в калькуляторе */
.ffc-gate--offer { margin-top: 16px; padding: 18px 18px 16px; border-radius: 18px; border: 1px solid rgba(194, 242, 80, .55); background: linear-gradient(180deg, #f7ffe8 0%, #fff 58%); box-shadow: 0 10px 28px rgba(33, 5, 75, .12); }
.ffc-gate__kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5a19bd; }
.ffc-gate--offer .ffc-gate__title { font-size: 18px; line-height: 1.25; margin: 0 0 10px; }
.ffc-gate__perks { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; }
.ffc-gate__perks li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.35; color: #21054b; }
.ffc-gate__perks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 12px; height: 12px; border-radius: 50%; background: #c2f250; box-shadow: inset 0 0 0 3px #21054b; }
.ff-calc__example { margin: -8px 0 14px; font-size: 13px; }
@media (max-width: 560px) {
  .ffc-gate--offer { padding: 16px 14px 14px; }
  .ffc-gate--offer .ffc-gate__title { font-size: 16px; }
}


/* 02.11.2026 growth: мобильный шаг контакта квиза — не перекрывать submit нижней панелью/клавиатурой */
@media (max-width: 960px) {
  html.ffc-has-bar body { padding-bottom: 92px; }
  .ff-quiz .ff-step[data-step="5"],
  .ff-quiz .ff-step:last-of-type {
    padding-bottom: 28px;
  }
  .ff-quiz button[type="submit"],
  .ff-field--phone,
  .ff-quiz input[name="Phone"],
  .ff-quiz input[name="Telegram"],
  .ff-quiz .ds-consent-line,
  .ff-status {
    scroll-margin-bottom: 140px;
  }
}
