/* Витрина для гостей (открытая бета). Всегда тёмная, минимум цвета, янтарный акцент — «выбранная» квартира.
   Подключается из app.html; действует только пока на body класс on-landing. */
body.on-landing {
  color-scheme: dark;
  --bg: #000; --bg-2: #1c1c1e; --card: #1c1c1e; --fill: rgba(120, 120, 128, .24); --fill-2: rgba(120, 120, 128, .36);
  --sep: rgba(84, 84, 88, .55); --sep-2: rgba(84, 84, 88, .8);
  --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #86868b;
  --blue: #0a84ff; --blue-soft: rgba(10, 132, 255, .18); --green: #30d158; --green-text: #30d158; --green-soft: rgba(48, 209, 88, .16);
  --orange: #ff9f0a; --orange-text: #ff9f0a; --orange-soft: rgba(255, 159, 10, .16);
  --red: #ff453a; --red-text: #ff6961; --red-soft: rgba(255, 69, 58, .16);
  --glass: rgba(0, 0, 0, .55); --tip-bg: rgba(245, 245, 247, .94); --tip-text: #1d1d1f; --shadow: none;
  --amber: #ffb547; --amber-soft: rgba(255, 181, 71, .14); --amber-glow: rgba(255, 166, 50, .38);
  --line: rgba(255, 255, 255, .09); --panel: rgba(255, 255, 255, .04);
  --ease: cubic-bezier(.2, .7, .2, 1);
  background: #000; color: var(--text);
}
@media (prefers-reduced-motion: no-preference) { html:has(body.on-landing) { scroll-behavior: smooth; } }

/* шапка: прозрачная, стеклянная после прокрутки */
body.on-landing .nav { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .35s, border-color .35s; }
body.on-landing.lp-scrolled .nav { background: rgba(0, 0, 0, .66); border-bottom-color: var(--line);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
body.on-landing .brand { color: #f5f5f7; }
body.on-landing .mark { background: #f5f5f7; color: #000; }
body.on-landing #nav-signin { background: transparent; color: #f5f5f7; font-size: 13px; }
body.on-landing #nav-signin:hover { background: rgba(255, 255, 255, .1); }
.lp-links { display: flex; gap: 2px; margin-left: 18px; }
.lp-links a { color: rgba(245, 245, 247, .7); font-size: 12px; padding: 6px 10px; border-radius: 980px; }
.lp-links a:hover { color: #fff; text-decoration: none; }
.btn.lp-nav-join { background: #f5f5f7; color: #000; font-weight: 600; font-size: 12px; padding: 6px 14px; }
.btn.lp-nav-join:hover { background: #fff; }

/* общая сетка */
.lp { overflow-x: clip; }
.lp-in { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.lp-sec { padding: clamp(110px, 14vw, 180px) 0 0; }
.lp-kicker { font-size: 17px; font-weight: 600; color: var(--amber); margin-bottom: 12px; letter-spacing: -0.01em; }
.lp-h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 700; margin: 0 0 20px; }
.lp-h2 span { color: var(--text-3); }
.lp-lead { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.45; color: var(--text-2); max-width: 640px; margin: 0; letter-spacing: -0.01em; }
.lp-center { text-align: center; }
.lp-center .lp-lead { margin-left: auto; margin-right: auto; }
.lp-hero h1 em, .lp-poster h2 em { font-style: normal; background: linear-gradient(100deg, #ffe0a3 0%, #ffb547 45%, #ff9f0a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* появление при прокрутке */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* кнопки */
.btn.lp-primary { background: #f5f5f7; color: #000; font-weight: 600; padding: 14px 26px; font-size: 17px; }
.btn.lp-primary:hover { background: #fff; }
.btn.lp-primary svg, .btn.lp-glass svg { width: 18px; height: 18px; }
.btn.lp-glass { background: rgba(255, 255, 255, .08); color: #f5f5f7; padding: 14px 24px; font-size: 17px; border: 1px solid rgba(255, 255, 255, .14); }
.btn.lp-glass:hover { background: rgba(255, 255, 255, .14); }
.lp-link { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--amber); font: inherit; font-size: 17px; }
.lp-link svg { width: 15px; height: 15px; }
.lp-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; }
.lp-invite { margin-top: 16px; font-size: 13px; color: var(--text-3); }
.lp-badge { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: #f5f5f7; padding: 7px 14px 7px 11px;
  border-radius: 980px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lp-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: lp-pulse 2.4s ease-out infinite; }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 var(--amber-glow); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

/* ---------- герой ---------- */
.lp-hero { padding-top: clamp(120px, 15vw, 168px); }
.lp-hero .lp-badge { margin-bottom: 28px; }
.lp-hero h1 { font-size: clamp(48px, 8vw, 96px); line-height: 1; letter-spacing: -0.055em; font-weight: 700; margin: 0 0 24px; }
.lp-hero .lp-lead { margin-bottom: 36px; }
.lp-hero .banner { margin: 22px auto 0; max-width: 560px; }
.lp-shot { position: relative; margin: clamp(56px, 7vw, 80px) auto 0; border-radius: 28px; overflow: hidden; aspect-ratio: 21 / 9;
  border: 1px solid var(--line); box-shadow: 0 50px 140px rgba(255, 166, 50, .1); }
.lp-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; display: block; animation: lp-zoom 20s var(--ease) both; }
.lp-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 45%); }
@keyframes lp-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.lp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 48px 0 0; text-align: center; }
.lp-stats div + div { border-left: 1px solid var(--line); }
.lp-stats dt { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.lp-stats dd { margin: 4px 0 0; font-size: 14px; color: var(--text-3); }

/* площадки под кнопками героя */
.lp-sources { margin-top: 44px; display: grid; gap: 16px; justify-items: center; }
.lp-sources > span { font-size: 13px; color: var(--text-3); }
.lp-sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 40px; }
.ws { color: rgba(245, 245, 247, .55); font-size: 22px; line-height: 1; white-space: nowrap; transition: color .25s; user-select: none; }
.ws:hover { color: #f5f5f7; }
.ws i { font-style: normal; opacity: .6; }
.ws-sreality { font-weight: 700; letter-spacing: -0.04em; }
.ws-bezrealitky { font-weight: 800; letter-spacing: -0.035em; text-transform: lowercase; }
.ws-ulovdomov { font-weight: 500; letter-spacing: -0.02em; }
.ws-ulovdomov b { font-weight: 800; }
.ws-idnes { font-weight: 400; font-size: 20px; letter-spacing: -0.01em; }
.ws-idnes b { font-weight: 900; letter-spacing: -0.03em; }
.ws-bazos { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-style: italic; letter-spacing: -0.01em; }

/* ---------- как работает ---------- */
.lp-steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.lp-steps li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px 30px; }
.lp-steps .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #f5f5f7; margin-bottom: 24px; }
.lp-steps li:last-child .ico { background: var(--amber-soft); color: var(--amber); }
.lp-steps .ico svg { width: 22px; height: 22px; }
.lp-steps .n { position: absolute; top: 28px; right: 24px; font-size: 13px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lp-steps h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.02em; }
.lp-steps p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* ---------- две колонки ---------- */
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }

/* ---------- демо: профиль и подбор ---------- */
.lp-demo { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; margin-top: 56px; align-items: start; }
.dm-side { position: sticky; top: 76px; display: grid; gap: 14px; }
.dm-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.dm-tabs button { border: 0; background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 6px; border-radius: 9px; cursor: pointer;
  transition: background .25s, color .25s; }
.dm-tabs button:hover { color: var(--text); }
.dm-tabs button[aria-selected="true"] { background: #f5f5f7; color: #000; }
.dm-profile { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 22px; animation: fade .4s ease both; }
.dm-photo { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; margin-bottom: 18px; display: grid; place-items: center;
  background: radial-gradient(circle at 70% 30%, rgba(255, 181, 71, .28), transparent 60%), linear-gradient(160deg, #1d1d22, #0c0c0e); }
.dm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dm-photo .ico { width: 64px; height: 64px; color: rgba(245, 245, 247, .9); }
.dm-photo .ico svg { width: 64px; height: 64px; }
.dm-photo img + .ico { display: none; }
.dm-profile h3 { margin: 0 0 14px; font-size: 24px; letter-spacing: -0.03em; }
.dm-rows { margin: 0; display: grid; gap: 10px; }
.dm-rows div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; font-size: 14px; }
.dm-rows dt { display: flex; align-items: center; gap: 8px; color: var(--text-3); }
.dm-rows dt svg { width: 16px; height: 16px; flex: none; }
.dm-rows dd { margin: 0; }
.dm-wish-h { margin: 16px 0 8px; font-size: 14px; color: var(--text-3); }
.dm-wishes { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-wishes span { font-size: 13px; padding: 5px 11px; border-radius: 980px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.dm-run { width: 100%; justify-content: center; margin-top: 20px; font-size: 15px !important; padding: 11px 16px !important; }

.dm-console { min-height: 560px; background: #0b0b0d; border: 1px solid var(--line); border-radius: 26px; padding: 22px 22px 14px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 90px rgba(255, 166, 50, .06); }
.dm-hd { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dm-console:not(.busy) .dm-hd .lp-pulse { animation: none; background: var(--green); }
.dm-funnel { list-style: none; margin: 0; padding: 6px 0; }
.dm-funnel li { display: flex; align-items: center; gap: 16px; padding: 9px 0; font-size: 15px; animation: dm-in .45s var(--ease) both; }
.dm-funnel li + li { border-top: 1px dashed rgba(255, 255, 255, .07); }
.dm-funnel li div { flex: 1; min-width: 0; color: var(--text-2); }
.dm-funnel small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.dm-funnel b { font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dm-funnel li.rej b { color: var(--red-text); }
.dm-out h4 { margin: 10px 0 6px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.dm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dm-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) 52px; gap: 14px; align-items: start; padding: 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.dm-item:first-child { border-color: rgba(255, 181, 71, .35); background: linear-gradient(90deg, rgba(255, 181, 71, .08), rgba(255, 181, 71, .015)); }
.dm-item:hover { border-color: rgba(255, 255, 255, .2); }
.dm-list.anim .dm-item { animation: dm-in .6s var(--ease) both; animation-delay: var(--d); }
@keyframes dm-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dm-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #1c1c1e; color: var(--text-3); }
.dm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dm-thumb > svg { width: 24px; height: 24px; }
.dm-rank { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 980px; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; background: rgba(0, 0, 0, .66); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dm-title { display: block; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-title:hover { color: var(--amber); text-decoration: none; }
.dm-meta { font-size: 13px; color: var(--text-3); margin: 3px 0 8px; }
.dm-meta b { color: var(--text); font-weight: 600; }
.dm-pc { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.dm-pc li { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 9px 3px 7px; border-radius: 980px; }
.dm-pc li svg { width: 12px; height: 12px; flex: none; }
.dm-pc .p { background: var(--green-soft); color: var(--green-text); }
.dm-pc .c { background: var(--orange-soft); color: var(--orange-text); }
.dm-score { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--amber) calc(var(--s) * 360deg), rgba(255, 255, 255, .09) 0); }
.dm-score b { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #0b0b0d; font-size: 18px; color: var(--amber); }
.dm-empty { color: var(--text-2); font-size: 15px; padding: 24px 0; text-align: center; }
.lp-note { max-width: 720px; margin: 22px auto 0; text-align: center; font-size: 13px; color: var(--text-3); line-height: 1.5; }

/* ---------- личный кабинет ---------- */
.lp-feats { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.lp-feats li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; }
.lp-feats .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.lp-feats .ico svg { width: 20px; height: 20px; }
.lp-feats b { display: block; font-size: 16px; font-weight: 600; }
.lp-feats span span, .lp-feats div span { color: var(--text-2); font-size: 14px; }
.lp-login { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line); border-radius: 32px;
  padding: 44px 36px 36px; text-align: center; display: grid; gap: 12px; justify-items: stretch; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.lp-login .mark { justify-self: center; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #f5f5f7; color: #000; margin-bottom: 8px; }
.lp-login .mark svg { width: 28px; height: 28px; }
.lp-login h3 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.lp-login p { margin: 0 0 14px; color: var(--text-2); font-size: 15px; }
.lp-login .btn { justify-content: center; }
.lp-login .or { height: 1px; background: var(--line); margin: 10px 0 6px; }
.lp-login .lp-link { justify-self: center; font-size: 15px; }

/* ---------- постер открытой беты ---------- */
.lp-poster { position: relative; border-radius: 36px; overflow: hidden; isolation: isolate; min-height: 620px; display: flex; align-items: flex-end;
  border: 1px solid rgba(255, 181, 71, .22); box-shadow: 0 0 120px rgba(255, 166, 50, .1); }
.lp-poster .bg { position: absolute; inset: 0; z-index: -2; }
.lp-poster .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
.lp-poster::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .75) 42%, rgba(0, 0, 0, .1) 78%), linear-gradient(90deg, rgba(0, 0, 0, .5), transparent 60%); }
.lp-poster-in { padding: clamp(32px, 6vw, 72px); width: 100%; text-align: center; }
.lp-poster h2 { font-size: clamp(44px, 7.4vw, 92px); line-height: 1; letter-spacing: -0.055em; font-weight: 700; margin: 26px 0 20px; }
.lp-poster .lp-lead { margin: 0 auto 28px; color: rgba(245, 245, 247, .78); }
.lp-poster ul { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 15px; color: rgba(245, 245, 247, .85); }
.lp-poster li { display: inline-flex; align-items: center; gap: 8px; }
.lp-poster li svg { width: 16px; height: 16px; color: var(--amber); }

.lp-foot { margin-top: clamp(80px, 10vw, 120px); border-top: 1px solid var(--line); }
.lp-foot .lp-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 36px; font-size: 12px; color: var(--text-3); }
.lp-foot .seg { margin-left: auto; }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .lp-links { display: none; }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-split { grid-template-columns: 1fr; gap: 48px; }
  .lp-demo { grid-template-columns: 1fr; }
  .dm-side { position: static; }
  .lp-split .lp-copy { text-align: center; }
  .lp-split .lp-lead { margin-left: auto; margin-right: auto; }
  .lp-feats { max-width: 420px; margin-left: auto; margin-right: auto; text-align: left; }
  .lp-login { max-width: 460px; width: 100%; justify-self: center; }
}
@media (max-width: 720px) {
  body.on-landing .nav-in { gap: 8px; }
  body.on-landing #nav-signin { padding: 6px 8px; }
  .lp-in { padding: 0 16px; }
  .lp-hero h1 { font-size: clamp(42px, 12vw, 60px); }
  .lp-hero .lp-lead { font-size: 17px; }
  .lp-ctas { flex-direction: column; }
  .btn.lp-primary, .btn.lp-glass { width: 100%; justify-content: center; }
  .lp-shot { aspect-ratio: 4 / 3; border-radius: 22px; }
  .lp-sources { margin-top: 32px; }
  .lp-sources ul { gap: 12px 24px; }
  .ws { font-size: 18px; }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .lp-stats div:nth-child(3) { border-left: 0; }
  .lp-steps { grid-template-columns: 1fr; }
  .dm-item { grid-template-columns: 72px minmax(0, 1fr) 44px; gap: 10px; padding: 10px; }
  .dm-score { width: 44px; height: 44px; }
  .dm-score b { width: 36px; height: 36px; font-size: 16px; }
  .dm-console { padding: 16px 14px 10px; border-radius: 22px; min-height: 0; }
  .dm-rows div { grid-template-columns: 100px 1fr; }
  .lp-login { padding: 36px 20px 28px; border-radius: 26px; }
  .lp-poster { min-height: 560px; border-radius: 26px; }
  .lp-poster-in { padding: 28px 20px 32px; }
  .lp-foot .seg { margin-left: 0; }
}
