/* Лендинг: макеты экранов приложения (РНП, Товары, А/Б, Дашборд). Данные условные. */
.dm-sec { padding: 72px 0; }
.dm-sec.alt { background: color-mix(in srgb, var(--paper) 70%, #fff); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dm-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.dm-head .mn-text { margin: 0 auto; }
.dm-app { background: #f2f3f7; border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: 0 30px 70px -40px rgba(20,20,15,.35); font-family: Inter, system-ui, sans-serif; color: #151826; overflow: hidden; }
.dm-top { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; flex-wrap: wrap; }
.dm-top h4 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.dm-chip { background: #eef0f6; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: #3b4157; white-space: nowrap; }
.dm-chip.on { background: #151826; color: #fff; }
.dm-sp { flex: 1; }
.dm-grid { display: grid; gap: 12px; }
.dm-g4 { grid-template-columns: repeat(4, 1fr); }
.dm-g3 { grid-template-columns: repeat(3, 1fr); }
.dm-g2 { grid-template-columns: 1.1fr 1fr; }
.dm-card { background: #fff; border-radius: 16px; padding: 16px; min-width: 0; }
.dm-card h5 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.dm-card small, .dm-sm { font-size: 11.5px; color: #7a8096; }
.dm-kpi { border-radius: 16px; padding: 16px; color: #fff; min-width: 0; }
.dm-kpi.dark { background: #141726; }
.dm-kpi.blue { background: linear-gradient(135deg, #3d5afe, #6f7dff); }
.dm-kpi.green { background: linear-gradient(135deg, #14a86a, #2cc383); }
.dm-kpi.light { background: #fff; color: #151826; }
.dm-kpi .l { font-size: 12.5px; opacity: .85; display: flex; gap: 8px; align-items: center; }
.dm-kpi .l i { font-style: normal; background: rgba(255,255,255,.18); border-radius: 999px; padding: 2px 8px; font-size: 10.5px; }
.dm-kpi .v { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.dm-kpi .s { font-size: 12px; opacity: .8; }
.dm-kpi .row { display: flex; justify-content: space-between; font-size: 12.5px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.22); font-variant-numeric: tabular-nums; }
.up { color: #14a86a; } .dn { color: #e5484d; }
.dm-bars { display: grid; gap: 7px; margin-top: 10px; }
.dm-bar { display: grid; grid-template-columns: 110px 1fr 28px; gap: 8px; align-items: center; font-size: 12px; }
.dm-bar span { height: 5px; border-radius: 9px; background: rgba(255,255,255,.28); position: relative; }
.dm-bar span b { position: absolute; inset: 0 auto 0 0; border-radius: 9px; background: #fff; }
.dm-donut-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.dm-donut { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.dm-donut div { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 14px; line-height: 1.1; }
.dm-donut small { display: block; font-weight: 500; font-size: 10px; color: #7a8096; }
.dm-legend { flex: 1; min-width: 150px; display: grid; gap: 6px; font-size: 12.5px; }
.dm-legend div { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-variant-numeric: tabular-nums; }
.dm-legend div::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.dm-legend div span { flex: 1; }
.dm-scroll { overflow-x: auto; margin: 0 -2px; }
.dm-tbl { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 860px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dm-tbl th { text-align: right; font-weight: 600; color: #7a8096; padding: 8px 10px; white-space: nowrap; font-size: 11.5px; }
.dm-tbl th:first-child, .dm-tbl td:first-child { text-align: left; }
.dm-tbl td { text-align: right; padding: 9px 10px; border-top: 1px solid #eef0f5; white-space: nowrap; }
.dm-tbl tr.sum td { font-weight: 700; background: #f7f8fb; }
.dm-art { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.dm-ph { width: 36px; height: 46px; border-radius: 8px; flex: none; background: var(--g, linear-gradient(160deg,#d9c3a5,#a98467)); }
.dm-art b { display: block; font-size: 12.5px; }
.dm-art small { color: #7a8096; font-size: 11px; }
.dm-tag { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; }
.dm-tag.ok { background: #dcf5e8; color: #0d8a53; } .dm-tag.bad { background: #fde3e4; color: #c8323a; } .dm-tag.mid { background: #fff0d6; color: #a96a00; } .dm-tag.blue { background: #e4e9ff; color: #3446d6; }
.dm-spark { display: block; width: 100%; height: 300px; }
.dm-note { margin: 12px 4px 0; font-size: 12px; color: var(--ink-faint); }
/* товары */
.dm-pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dm-p { background: #fff; border-radius: 16px; overflow: hidden; min-width: 0; }
.dm-p .im { aspect-ratio: 4/3.4; background: var(--g); position: relative; }
.dm-p .im em { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.92); }
.dm-p .bd { padding: 10px 12px 12px; font-size: 12px; }
.dm-p .bd b { display: block; font-size: 13px; margin-bottom: 2px; }
.dm-p dl { margin: 8px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; font-variant-numeric: tabular-nums; }
.dm-p dt { color: #7a8096; } .dm-p dd { margin: 0; font-weight: 600; text-align: right; }
.dm-stock { height: 5px; background: #e9ebf2; border-radius: 9px; margin-top: 8px; overflow: hidden; display: flex; }
.dm-stock i { display: block; height: 100%; }
/* а/б */
.dm-ab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dm-abc { background: #fff; border-radius: 16px; padding: 12px; border: 2px solid transparent; min-width: 0; }
.dm-abc.win { border-color: #14a86a; }
.dm-abc .im { aspect-ratio: 4/3; border-radius: 12px; background: var(--g); margin-bottom: 10px; }
.dm-abc .t { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.dm-abc .mx { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
.dm-abc .mx div { background: #f4f5f9; border-radius: 10px; padding: 8px 10px; }
.dm-abc .mx small { display: block; }
.dm-abc .mx b { font-size: 16px; }
.dm-prog { height: 7px; border-radius: 9px; background: #e9ebf2; overflow: hidden; }
.dm-prog i { display: block; height: 100%; background: #3d5afe; border-radius: 9px; }
/* дашборд: расчёт прибыли */
.dm-pl { display: grid; gap: 0; font-variant-numeric: tabular-nums; }
.dm-pl div { display: grid; grid-template-columns: 1fr auto 64px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid #eef0f5; font-size: 13.5px; }
.dm-pl div:first-child { border-top: 0; }
.dm-pl div span:last-child { color: #7a8096; font-size: 12px; text-align: right; }
.dm-pl .tot { font-weight: 800; font-size: 16px; border-top: 2px solid #151826; margin-top: 4px; padding-top: 12px; }
/* подключение */
.dm-cta { background: #141726; color: #fff; border-radius: 26px; padding: 44px 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.dm-cta h2 { color: #fff !important; font-family: var(--font-display); font-weight: 800; font-size: clamp(26px,3.2vw,38px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 14px; }
.dm-cta p { margin: 0; color: rgba(255,255,255,.74); font-size: 17px; line-height: 1.55; }
.dm-cta ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.dm-cta li { display: flex; gap: 10px; font-size: 15.5px; color: rgba(255,255,255,.9); }
.dm-cta li::before { content: '✓'; color: #4be39a; font-weight: 800; }
.dm-wa { background: #fff; color: #151826; border-radius: 20px; padding: 28px; text-align: center; }
.dm-wa small { color: #7a8096; font-size: 13px; }
.dm-wa .num { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 18px; font-variant-numeric: tabular-nums; }
.dm-wa a.btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #25d366; color: #fff; font-weight: 700; border-radius: 999px; padding: 15px 22px; text-decoration: none; font-size: 16px; }
.dm-wa p { color: #7a8096; font-size: 12.5px; margin-top: 12px; }
@media (max-width: 900px) {
  .dm-sec { padding: 48px 0; }
  .dm-g4 { grid-template-columns: 1fr 1fr; } .dm-g3, .dm-g2 { grid-template-columns: 1fr; }
  .dm-pgrid { grid-template-columns: 1fr 1fr; } .dm-ab { grid-template-columns: 1fr; }
  .dm-cta { grid-template-columns: 1fr; padding: 30px 22px; gap: 26px; }
  .dm-app { padding: 10px; border-radius: 16px; }
  .dm-kpi .v { font-size: 26px; }
}
#hid-login { display: none !important; }
#hid-login.show { display: inline-flex !important; }
@media (max-width: 900px) {
  .dm-g4 .dm-card .v, .dm-g4 .dm-kpi .v { font-size: 20px !important; word-break: keep-all; }
  .dm-wa a.btn { font-size: 15px; padding: 14px 16px; white-space: nowrap; }
  .dm-wa .num { font-size: 24px; }
  .dm-pl div { grid-template-columns: 1fr auto 52px; font-size: 12.5px; }
}
@media (max-width: 560px) { .dm-g4 { grid-template-columns: 1fr; } .dm-pgrid { grid-template-columns: 1fr 1fr; gap: 8px; } }
