/* Лендинг desuper.app. Переменные — тёмная тема по умолчанию (как у приложения),
   светлая — по системной настройке. Логические свойства — чтобы иврит (dir=rtl)
   раскладывался зеркально без отдельных правил. */
:root {
  --bg: #0b0f14; --bg-2: #121820; --bg-3: #1a222d; --line: #243040;
  --text: #e8eef5; --muted: #8b98a8; --accent: #64d2ff; --ok: #34c759;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Hebrew", sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f3f5f8; --bg-2: #fff; --bg-3: #eef1f5; --line: #d9dfe7; --text: #15202b; --muted: #5f6c7b; --accent: #0b7bd6; --ok: #1f9d4a; color-scheme: light; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.2; }
h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 20px; } h4 { font-size: 17px; }
p { margin: 0 0 12px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 12px 24px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 20px; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ok); display: inline-block; position: relative; }
.mark::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 3px solid #04210e; }
.top-nav { display: flex; gap: 18px; margin-inline-start: 8px; } .top-nav a { color: var(--muted); font-size: 15px; } .top-nav a:hover { color: var(--text); }
.top-right { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { background: transparent; border: 0; color: var(--muted); padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; } .lang button.on { background: var(--bg-3); color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); font-weight: 600; white-space: nowrap; }
.btn:hover { filter: brightness(1.1); }
.btn.primary { background: var(--accent); color: #04202b; border-color: transparent; }
@media (prefers-color-scheme: light) { .btn.primary { color: #fff; } }
.link { font-weight: 600; }

main { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.hero { padding: 72px 0 40px; text-align: center; }
.lead { color: var(--muted); font-size: 20px; max-width: 760px; margin: 0 auto 32px; }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: start; }
.hero-card { display: block; padding: 24px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); transition: transform .15s, border-color .15s; }
.hero-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.hero-card.accent { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--bg-2)), var(--bg-2)); }
.hero-card p { color: var(--muted); margin: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.block { padding: 56px 0; border-top: 1px solid var(--line); }
.block.alt { position: relative; }
.block.alt::before { content: ""; position: absolute; inset: 0 -100vw; background: var(--bg-2); z-index: -1; }
.block-head { max-width: 800px; margin-bottom: 28px; } .block-head p { color: var(--muted); font-size: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 20px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); } .feat p { color: var(--muted); margin: 0; font-size: 15px; }
.actions { margin-top: 24px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; padding: 20px 20px 20px 64px; position: relative; background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; }
[dir="rtl"] .steps li { padding: 20px 64px 20px 20px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #04202b; font-weight: 800; display: grid; place-items: center; }
.steps span { color: var(--muted); font-size: 15px; }
.contact { text-align: center; } .contact p { color: var(--muted); } .contact .actions { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 20px 24px 40px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .top { flex-wrap: wrap; gap: 10px; } .top-nav { display: none; } .top-right { margin-inline-start: auto; }
  .hero { padding: 44px 0 24px; } .hero-cards, .grid3, .steps { grid-template-columns: 1fr; }
}
