/* Лендинг flipio.ru: раскладка поверх токенов (theme.css) и компонентов
   дизайн-системы (flipio.css). Префикс lp-. Десктоп — по макету 1440,
   телефон — по мобильной версии 390. */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }
img { max-width: 100%; }
.fl ul, .fl ol { margin: 0; }

.lp-wrap { max-width: 1280px; margin: 0 auto; padding-left: 40px; padding-right: 40px; box-sizing: border-box; }
.lp-section { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.lp-dark { background: var(--surface-brand); color: var(--ink-on-brand); }
.lp-subtle { background: var(--surface-subtle); }
.lp-green { color: var(--green-text); }
.lp-self-start { align-self: flex-start; }

/* ---------- шапка ---------- */
.lp-nav { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
.lp-nav__in { max-width: 1360px; margin: 0 auto; min-height: 72px; padding: 12px 40px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lp-nav__logo { display: flex; align-items: center; }
.lp-nav__logo img { height: 32px; width: auto; display: block; }
.lp-nav__links { display: flex; gap: 24px; flex-wrap: wrap; }
.lp-nav__links a { font: 500 14px/20px var(--font-sans); color: var(--ink); text-decoration: none; }
.lp-nav__links a:hover { color: var(--navy); }
.lp-nav__actions { display: flex; gap: 8px; align-items: center; }
.lp-nav__burger, .lp-nav__login-m { display: none !important; }

/* ---------- типографика ---------- */
.lp-overline { color: var(--navy); }
.lp-overline--dark { color: rgba(255,255,255,.6); }
.lp-h1 { font: 800 60px/64px var(--font-display); letter-spacing: -0.02em; text-wrap: pretty; }
.lp-mark { background: var(--green); color: var(--ink-on-green); padding: 0 10px; border-radius: 12px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lp-h2 { font: 800 40px/44px var(--font-display); letter-spacing: -0.02em; text-wrap: pretty; }
.lp-h2--xl { font-size: 44px; line-height: 48px; }
.lp-dark .lp-h2 { color: #ffffff; }
.lp-lead { font: 400 18px/28px var(--font-sans); color: var(--ink-muted); }
.lp-text { color: var(--ink-muted); font-size: 16px; line-height: 26px; }
.lp-text--dark { color: rgba(255,255,255,.78); font-size: 17px; line-height: 28px; }
.lp-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.lp-head--narrow { gap: 16px; max-width: 520px; }

.lp-checks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.lp-checks li { display: flex; align-items: flex-start; gap: 8px; }
.lp-checks svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: var(--green-text); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lp-checks--col { flex-direction: column; gap: 10px; font-size: 15px; line-height: 24px; color: var(--ink); }
.lp-checks--col svg { width: 20px; height: 20px; }
.lp-checks--dark { color: rgba(255,255,255,.78); }
.lp-checks--dark svg { stroke: var(--green); }

/* ---------- hero ---------- */
.lp-hero { padding-top: 72px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: 48px; align-items: center; }
.lp-hero__text { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.lp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-hero__visual { position: relative; min-height: 460px; }
.lp-map { padding: 0; overflow: hidden; height: 400px; position: relative; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  background: #f1f3f6 url("/assets/map.svg") no-repeat; background-size: 1376px 900px; background-position: -420px -140px; }
.lp-map__chips { position: absolute; left: 16px; top: 16px; right: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.lp-map__chips .fl-chip { box-shadow: var(--shadow-sm); cursor: default; }
.lp-area { position: absolute; left: -24px; bottom: 36px; width: 300px; padding: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; }
.lp-area__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 600 14px/20px var(--font-sans); }
.lp-area__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lp-toast { position: absolute; right: -16px; bottom: -28px; width: 320px; box-sizing: border-box; }
.lp-toast__body { display: flex; flex-direction: column; min-width: 0; }

/* ---------- полоса фактов ---------- */
.lp-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-subtle); }
.lp-strip__in { padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; }

/* ---------- как это работает ---------- */
.lp-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.lp-steps li { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); }
.lp-steps li > div { display: flex; flex-direction: column; gap: 12px; }
.lp-steps__n { font: 800 32px/36px var(--font-display); color: var(--green); }
.lp-steps h3 { font: 700 18px/26px var(--font-display); color: #ffffff; }
.lp-steps p { color: rgba(255,255,255,.75); font-size: 15px; line-height: 24px; }

/* ---------- пример пары ---------- */
.lp-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 48px; align-items: center; }
.lp-flip { max-width: 560px; width: 100%; justify-self: center; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.lp-flip__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lp-flip__head h3 { font: 700 16px/22px var(--font-display); }
.lp-flip__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-flip__col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lp-flip__photo { height: 132px; }
.lp-flip__photo--after { background: var(--green-soft); color: var(--green-text); }
.lp-flip__price { font: 700 16px/22px var(--font-display); font-variant-numeric: tabular-nums; }
.lp-flip__price span { font: 400 13px/20px var(--font-sans); color: var(--ink-muted); }
.lp-flip__timeline { padding-bottom: 18px; }
.lp-flip__repair { flex: 2 1 0; }
.lp-dot-green { background: var(--green-text); }
.lp-flip__delta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lp-flip__rub { font: 800 20px/24px var(--font-display); color: var(--green-text); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.lp-flip__pct { font: 600 14px/20px var(--font-sans); color: var(--green-text); }

/* ---------- карточки ---------- */
.lp-grid { display: grid; gap: 24px; }
.lp-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.lp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.lp-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.lp-who { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.lp-who h3 { font: 700 22px/28px var(--font-display); }
.lp-who p { color: var(--ink-muted); line-height: 24px; }
.lp-who ul { padding: 0 0 0 18px; line-height: 24px; font-size: 15px; }
.lp-fact { display: flex; flex-direction: column; gap: 10px; }
.lp-fact h3 { font: 700 18px/26px var(--font-display); }
.lp-fact p { color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.lp-fact__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---------- вопросы ---------- */
.lp-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 48px; align-items: start; }
.lp-faq__list { display: flex; flex-direction: column; gap: 8px; }
.lp-faq details { padding: 18px 20px; }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font: 600 16px/24px var(--font-sans); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--ink-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.lp-faq details[open] summary svg { transform: rotate(180deg); }
.lp-faq details p { margin-top: 10px; color: var(--ink-muted); line-height: 24px; }

/* ---------- доступ ---------- */
.lp-split--request { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.lp-join { max-width: 480px; width: 100%; justify-self: end; box-sizing: border-box; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-lg); color: var(--ink); }
.lp-join h3 { font: 700 22px/28px var(--font-display); letter-spacing: -0.01em; }
.lp-join__lead { color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.lp-join__alt { text-align: center; }

/* ---------- подвал ---------- */
.lp-footer { border-top: 1px solid var(--border); }
.lp-footer__in { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.lp-footer__in img { height: 24px; width: auto; }
.lp-footer__nav { display: flex; gap: 20px; flex-wrap: wrap; font: 500 14px/20px var(--font-sans); }

/* ---------- планшет ---------- */
@media (max-width: 1100px) {
  .lp-nav__links { display: none; }
  .lp-nav__burger { display: inline-flex !important; }
  .lp-nav[data-open] .lp-nav__links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 8px 0; }
  .lp-nav[data-open] .lp-nav__links a { padding: 12px 24px; font-size: 16px; line-height: 24px; }
  .lp-hero__visual { max-width: 640px; }
  .lp-area { left: 0; }
  .lp-toast { right: 0; }
}

/* ---------- телефон ---------- */
@media (max-width: 640px) {
  .lp-wrap { padding-left: 16px; padding-right: 16px; }
  .lp-section { padding-top: 40px; padding-bottom: 40px; gap: 20px; }
  .lp-nav__in { min-height: 60px; padding: 8px 16px; gap: 8px; }
  .lp-nav__logo img { height: 26px; }
  .lp-hide-m { display: none !important; }
  .lp-nav__login-m { display: block !important; }
  .lp-nav__cta { min-height: 36px; padding: 0 12px; font-size: 13px; }

  .lp-h1 { font-size: 36px; line-height: 40px; }
  .lp-mark { padding: 0 8px; border-radius: 10px; }
  .lp-h2, .lp-h2--xl { font-size: 28px; line-height: 32px; }
  .lp-lead { font-size: 16px; line-height: 24px; }
  .lp-text { font-size: 15px; line-height: 24px; }
  .lp-head, .lp-head--narrow { gap: 12px; }

  .lp-hero { padding-top: 36px; padding-bottom: 32px; gap: 20px; }
  .lp-hero__text { gap: 20px; }
  .lp-cta-row { flex-direction: column; gap: 8px; }
  .lp-cta-row .fl-btn { width: 100%; }
  .lp-checks:not(.lp-checks--col) { flex-direction: column; gap: 6px; }

  /* карта и карточка района — одной плиткой, без всплывающих блоков */
  .lp-hero__visual { min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
  .lp-map { height: 240px; border: 0; border-radius: 0; box-shadow: none; background-position: -470px -200px; }
  .lp-map__chips { display: none; }
  .lp-area { position: static; width: auto; border: 0; border-radius: 0; box-shadow: none; padding: 12px 14px; gap: 6px; }
  .lp-area .fx-metric-sm { font-size: 20px; line-height: 24px; }
  .lp-toast { display: none; }

  .lp-strip__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 20px; padding-bottom: 20px; }

  .lp-steps { gap: 12px; }
  .lp-steps li { flex-direction: row; gap: 14px; padding: 16px; }
  .lp-steps li > div { gap: 4px; }
  .lp-steps__n { font-size: 24px; line-height: 28px; width: 28px; flex: none; }
  .lp-steps h3 { font-size: 16px; line-height: 22px; }
  .lp-steps p { font-size: 14px; line-height: 20px; }

  .lp-split { gap: 24px; }
  .lp-self-start { align-self: stretch; }
  .lp-flip__photo { height: 104px; }
  .lp-flip__timeline .fx-timeline__lbl { font-size: 11px; }
  .lp-flip__timeline .fx-timeline__seg { min-width: 0; }
  .lp-flip__timeline { padding-bottom: 34px; }
  .lp-flip__repair .fx-timeline__lbl { white-space: normal; text-align: center; width: 120px; }

  .lp-grid { gap: 12px; }
  .lp-who { padding: 20px; }
  .lp-who h3 { font-size: 20px; line-height: 26px; }
  .lp-faq { gap: 20px; }
  .lp-faq details { padding: 14px 16px; }
  .lp-faq summary { font-size: 15px; line-height: 22px; }
  .lp-join { padding: 20px; justify-self: stretch; }
  .lp-footer__in { flex-direction: column; align-items: flex-start; }
}
