/* Fullfillio — рекламные посадочные /fbs/. Палитра основного сайта, без внешних CDN. */
:root {
  --ink: #21054b; --ink-2: #351064; --purple: #5a19bd; --purple-2: #7340d8;
  --lime: #d9fb1d; --cream: #f8f5ef; --paper: #fff; --lavender: #eee5fb;
  --line: rgba(33, 5, 75, .14); --muted: #756c80; --ok: #2e7200; --bad: #a02f2f;
  --r-lg: 28px; --r-md: 18px; --shadow: 0 24px 70px rgba(33, 5, 75, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--purple); }
img { max-width: 100%; height: auto; }
.ff-wrap { width: min(1180px, calc(100vw - 40px)); margin: 0 auto; }
.ff-muted { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Кнопки */
.ff-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--purple); color: #fff; font: 700 16px/1.2 Inter, Arial, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.ff-btn:hover { background: var(--purple-2); transform: translateY(-1px); }
.ff-btn:focus-visible, .ff-option input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.ff-btn--small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.ff-btn--wide { width: 100%; }
.ff-btn--ghost { background: var(--lavender); color: var(--ink); }
.ff-btn--ghost:hover { background: #e2d5f8; }
.ff-btn--lime { background: var(--lime); color: var(--ink); }
.ff-btn--lime:hover { background: #e6ff5c; }
.ff-btn[disabled] { opacity: .6; cursor: progress; }
.ff-link-btn { border: 0; background: none; color: var(--muted); font: 600 14px Inter, Arial, sans-serif; cursor: pointer; padding: 8px 0; }

/* Шапка */
.ff-header { position: sticky; top: 0; z-index: 20; background: rgba(248, 245, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ff-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.ff-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; margin-right: auto; }
.ff-brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ff-brand__mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--purple), var(--ink)); box-shadow: inset 0 0 0 6px var(--lime); }
.ff-nav { display: flex; gap: 22px; }
.ff-nav a, .ff-header__phone { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.ff-nav a:hover, .ff-header__phone:hover { color: var(--purple); }

/* Первый экран */
.ff-hero { padding: 48px 0 64px; background: radial-gradient(circle at 85% 0%, rgba(115, 64, 216, .16), transparent 45%), var(--cream); }
.ff-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
.ff-eyebrow, .ff-kicker { margin: 0 0 14px; color: var(--purple); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ff-hero h1 { margin: 0; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -.045em; }
.ff-hero h1 em { font-style: normal; color: var(--purple); background: linear-gradient(transparent 62%, var(--lime) 62%); }
.ff-lead { margin: 22px 0 0; font-size: 18px; color: #4a3f5c; max-width: 620px; }
.ff-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.ff-chips li { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.ff-hero__cta { margin-top: 28px; }
.ff-hero__note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* Квиз */
.ff-quiz-card { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); border: 1px solid var(--line); }
.ff-quiz__head { margin-bottom: 18px; }
.ff-quiz__title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ff-quiz__progress { margin: 4px 0 10px; color: var(--muted); font-size: 13px; }
.ff-quiz__bar { height: 6px; border-radius: 6px; background: var(--lavender); overflow: hidden; }
.ff-quiz__bar span { display: block; height: 100%; width: 20%; background: var(--purple); border-radius: 6px; transition: width .3s; }
.ff-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.ff-step + .ff-step { margin-top: 22px; }
.js .ff-step + .ff-step { margin-top: 0; }
.js .ff-step:not(.is-active) { display: none; }
.ff-step legend { padding: 0; margin-bottom: 14px; font-size: 18px; font-weight: 700; }
.ff-options { display: grid; gap: 8px; }
.ff-options--two { grid-template-columns: 1fr 1fr; }
.ff-options--inline { grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.ff-option { position: relative; display: block; cursor: pointer; }
.ff-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ff-option span { display: block; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; line-height: 1.3; transition: border-color .15s, background .15s; }
.ff-option span small { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: 13px; }
.ff-option:hover span { border-color: var(--purple-2); }
.ff-option input:checked + span { border-color: var(--purple); background: var(--lavender); box-shadow: inset 0 0 0 1px var(--purple); }
.ff-field { display: block; margin-bottom: 12px; }
.ff-field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #4a3f5c; }
.ff-field input, .ff-field select { width: 100%; min-height: 50px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: 16px Inter, Arial, sans-serif; }
.ff-field input:focus, .ff-field select:focus { outline: none; border-color: var(--purple); }
.ff-field input[aria-invalid="true"] { border-color: var(--bad); }
.ff-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 13px; line-height: 1.45; color: #4a3f5c; cursor: pointer; }
.ff-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--purple); }
.ff-check--optional { color: var(--muted); }
.ff-quiz__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; min-height: 0; }
.ff-quiz__nav [hidden] { display: none; }
.ff-status { margin-top: 10px; font-size: 14px; font-weight: 600; }
.ff-status.is-error { color: var(--bad); }
.ff-estimate { margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; }
.ff-estimate strong { display: block; font-size: 30px; line-height: 1.1; color: var(--lime); letter-spacing: -.02em; margin-bottom: 4px; }
.ff-estimate__month { font-size: 13px; color: rgba(255, 255, 255, .72); }
.ff-estimate[hidden] { display: none; }
.ff-quiz-done p { margin: 10px 0; }

/* Секции */
.ff-section { padding: 72px 0; }
.ff-section--white { background: var(--paper); }
.ff-section--dark { background: var(--ink); color: #fff; }
.ff-section--dark .ff-kicker { color: var(--lime); }
.ff-h2 { margin: 0 0 32px; max-width: 820px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.035em; }
.ff-pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ff-pain { padding: 22px; border-radius: var(--r-md); background: var(--cream); border: 1px solid var(--line); }
.ff-pain span { color: var(--purple); font-weight: 800; }
.ff-pain p { margin: 8px 0 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.ff-proofs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ff-proof { padding: 26px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.ff-proof h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.ff-proof p { margin: 0; color: #4a3f5c; }
.ff-quote { margin: 28px 0 0; padding: 26px 30px; border-left: 6px solid var(--lime); border-radius: var(--r-md); background: var(--ink); color: #fff; }
.ff-quote p { margin: 0; font-size: 19px; line-height: 1.45; }
.ff-quote cite { display: block; margin-top: 12px; color: rgba(255, 255, 255, .7); font-style: normal; font-size: 14px; }
.ff-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.ff-steps li { padding: 20px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); counter-increment: s; }
.ff-steps li::before { content: "0" counter(s); display: block; margin-bottom: 10px; color: var(--lime); font-weight: 800; }
.ff-steps strong { display: block; font-size: 16px; }
.ff-steps span { display: block; margin-top: 6px; color: rgba(255, 255, 255, .72); font-size: 14px; }
.ff-note { margin: 22px 0 0; color: rgba(255, 255, 255, .72); font-size: 14px; }

/* Тариф и калькулятор */
.ff-tariff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ff-tariff__card { padding: 24px; border-radius: var(--r-md); background: var(--cream); border: 1px solid var(--line); }
.ff-tariff__card span { display: block; font-weight: 600; color: #4a3f5c; }
.ff-tariff__card strong { display: block; margin: 6px 0 2px; font-size: 40px; letter-spacing: -.04em; }
.ff-tariff__card small { color: var(--muted); }
.ff-tariff__card--main { background: var(--ink); color: #fff; }
.ff-tariff__card--main span, .ff-tariff__card--main small { color: rgba(255, 255, 255, .75); }
.ff-tariff__card--main strong { color: var(--lime); }
.ff-conditions { margin: 18px 0 0; padding: 18px 20px; border-radius: var(--r-md); background: var(--lavender); font-size: 14px; line-height: 1.6; }
.ff-examples { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; }
.ff-examples__row { display: grid; grid-template-columns: 160px repeat(6, minmax(70px, 1fr)); }
.ff-examples__row span { padding: 12px 14px; font-size: 14px; white-space: nowrap; }
.ff-examples__row--head span { background: var(--cream); font-weight: 700; }
.ff-examples__row:not(.ff-examples__row--head) span { font-weight: 600; }
.ff-calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; margin-top: 32px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ff-calc__form { padding: 28px; background: #fff; }
.ff-calc__form h3 { margin: 0 0 18px; font-size: 22px; letter-spacing: -.02em; }
.ff-calc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.ff-field--wide { grid-column: 1 / -1; }
.ff-calc__result { padding: 28px; background: var(--ink); color: #fff; }
.ff-calc__result dl { margin: 0 0 14px; }
.ff-calc__result dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.ff-calc__result dt { color: rgba(255, 255, 255, .72); }
.ff-calc__result dd { margin: 0; font-weight: 700; text-align: right; }
.ff-calc__total dd { color: var(--lime); font-size: 22px; }
.ff-calc__hero { padding: 0 0 14px; margin: 0 0 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ff-calc__hero span { display: block; font-size: 14px; color: rgba(255, 255, 255, .72); }
.ff-calc__hero strong { display: block; margin: 4px 0 6px; font-size: 44px; line-height: 1.05; color: var(--lime); letter-spacing: -.03em; }
.ff-calc__hero small { display: block; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .72); }
.ff-calc__result .ff-muted { color: rgba(255, 255, 255, .6); }
.ff-calc__result .ff-btn { margin-top: 8px; background: var(--lime); color: var(--ink); }

/* О нас, FAQ, финал */
.ff-about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.ff-lead--dark { color: #4a3f5c; }
.ff-timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ff-timeline li { padding: 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.ff-timeline strong { display: block; font-size: 32px; letter-spacing: -.04em; color: var(--purple); }
.ff-timeline span { color: #4a3f5c; font-size: 14px; }
.ff-faq { max-width: 860px; }
.ff-faq__item { border-bottom: 1px solid var(--line); }
.ff-faq__item summary { cursor: pointer; padding: 18px 36px 18px 0; position: relative; list-style: none; font-weight: 700; font-size: 17px; }
.ff-faq__item summary::-webkit-details-marker { display: none; }
.ff-faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--purple); }
.ff-faq__item[open] summary::after { content: "–"; }
.ff-faq__item p { margin: 0 0 18px; color: #4a3f5c; }
.ff-final { padding: 64px 0; background: var(--purple); color: #fff; }
.ff-final__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.ff-final h2 { margin: 0; max-width: 680px; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -.03em; }
.ff-footer { padding: 36px 0 90px; background: var(--ink); color: rgba(255, 255, 255, .78); font-size: 14px; }
.ff-footer__inner { display: flex; justify-content: space-between; gap: 32px; }
.ff-footer p { margin: 0 0 8px; }
.ff-footer .ff-muted { color: rgba(255, 255, 255, .55); }
.ff-footer__links { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.ff-footer a { color: #fff; text-decoration: none; }
.ff-footer a:hover { color: var(--lime); }
.ff-sticky-cta { display: none; }

@media (max-width: 960px) {
  .ff-nav, .ff-header__phone { display: none; }
  .ff-hero { padding: 28px 0 40px; }
  .ff-hero__grid, .ff-about, .ff-calc { grid-template-columns: 1fr; gap: 28px; }
  .ff-hero__cta { display: inline-flex; margin-top: 18px; } /* 02.11.2026: был display:none — на мобайле теряли вход в квиз с первого экрана */
  .ff-steps { grid-template-columns: 1fr 1fr; }
  .ff-proofs, .ff-pains, .ff-tariff { grid-template-columns: 1fr; }
  .ff-final__inner, .ff-footer__inner { flex-direction: column; align-items: flex-start; }
  .ff-footer__links { text-align: left; }
  .ff-sticky-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 30; box-shadow: 0 12px 30px rgba(33, 5, 75, .35); transition: opacity .2s, transform .2s; }
  .ff-sticky-cta.is-hidden { opacity: 0; transform: translateY(120%); pointer-events: none; }
}
@media (max-width: 560px) {
  .ff-wrap { width: calc(100vw - 28px); }
  .ff-section { padding: 52px 0; }
  .ff-quiz-card { padding: 20px; border-radius: 22px; }
  .ff-options--two { grid-template-columns: 1fr; }
  .ff-calc__grid { grid-template-columns: 1fr 1fr; }
  .ff-calc__form, .ff-calc__result { padding: 20px; }
  .ff-calc__hero strong { font-size: 36px; }
  .ff-steps { grid-template-columns: 1fr; }
  .ff-lead { font-size: 16px; }
  .ff-tariff__card strong { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Блок «Хранение 3 ₽/л» рядом с тарифом (messages.php: storage_block) */
.ff-storage { display: flex; flex-direction: column; gap: 4px; margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--lavender); border-left: 4px solid var(--purple); color: var(--ink); }
.ff-storage strong { font-size: 1.05rem; }
.ff-storage span { font-size: .95rem; line-height: 1.45; }

/* Основатели — равноправная пара (главная и посадочные с цитатой) */
.ff-founders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(28px, 4vw, 44px); }
.ff-founder { display: grid; grid-template-columns: clamp(170px, 17vw, 220px) minmax(0, 1fr); grid-template-areas: "photo quote" "photo name"; grid-template-rows: 1fr auto; column-gap: clamp(18px, 2vw, 26px); row-gap: 16px; margin: 0; padding: clamp(16px, 1.8vw, 22px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(33, 5, 75, .07); }
.ff-founder__photo { grid-area: photo; display: block; align-self: start; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--lavender); }
.ff-founder__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ff-founder__quote { grid-area: quote; margin: 0; padding: 4px 0 0 16px; border-left: 4px solid var(--lime); align-self: start; }
.ff-founder__quote p { margin: 0; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.5; color: var(--ink); }
.ff-founder__name { grid-area: name; align-self: end; padding-left: 20px; }
.ff-founder__name strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.ff-founder__name span { display: block; color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) { .ff-founders { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .ff-founder { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "photo name" "quote quote"; grid-template-rows: auto auto; row-gap: 16px; column-gap: 16px; }
  .ff-founder__name { align-self: center; padding-left: 0; }
  .ff-founder__quote { padding-left: 14px; }
}

/* v5 24.10.2026: «Знакомо? → Как у нас» (ds/pains.php) */
.ff-painsv5__lead { margin: -6px 0 22px; color: var(--muted); max-width: 760px; }
.ff-painsv5__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ff-painsv5__item { display: grid; grid-template-columns: 1fr 1.25fr; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ff-painsv5__pain { margin: 0; padding: 20px; background: var(--cream); font-size: 17px; font-weight: 700; line-height: 1.32; }
.ff-painsv5__pain span { display: block; margin-bottom: 8px; color: var(--bad); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.ff-painsv5__ans { padding: 20px; }
.ff-painsv5__label { margin: 0 0 6px; color: var(--purple); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ff-painsv5__t { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.25; }
.ff-painsv5__t small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 600; }
.ff-painsv5__d { margin: 8px 0 0; font-size: 15px; line-height: 1.5; }
.ff-painsv5__why { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; margin-top: 18px; padding: 24px; border-radius: var(--r-md); background: var(--ink); color: #fff; }
.ff-painsv5__why strong { font-size: 20px; color: var(--lime); }
.ff-painsv5__why p { grid-column: 1; margin: 0; font-size: 16px; line-height: 1.5; }
.ff-painsv5__why .ff-btn { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 1080px) { .ff-painsv5__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ff-painsv5__item { grid-template-columns: 1fr; }
  .ff-painsv5__pain { padding: 16px 16px 12px; font-size: 16px; }
  .ff-painsv5__ans { padding: 12px 16px 16px; }
  .ff-painsv5__t { font-size: 17px; }
  .ff-painsv5__why { grid-template-columns: 1fr; padding: 20px; }
  .ff-painsv5__why .ff-btn { grid-column: 1; grid-row: auto; width: 100%; }
}
/* v5 правки критика: мобильные короткие ответы, ссылки, 2-й CTA */
.ff-painsv5__d a { color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ff-painsv5__d--m, .ff-painsv5__mcta { display: none; }
.ff-painsv5__btns { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 10px; }
.ff-painsv5__why .ff-painsv5__btns .ff-btn { grid-column: auto; grid-row: auto; }
.ff-painsv5__tg.ff-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.ff-painsv5__tg.ff-btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
@media (max-width: 640px) {
  .ff-painsv5__d--full { display: none; }
  .ff-painsv5__d--m { display: block; }
  .ff-painsv5__mcta { display: block; }
  .ff-painsv5__mcta .ff-btn { width: 100%; }
  .ff-painsv5__btns { grid-column: 1; grid-row: auto; }
  .ff-painsv5__why .ff-painsv5__btns .ff-btn { width: 100%; }
}
