/* Сайт mSIOlNet: главная и вход. Палитра — как в приложениях и Mini App. */
:root {
  --bg: #0E0E14; --surface: #1C1C24; --surface-2: #26262F; --border: #292933;
  --text: #FFFFFF; --text-2: #9C9CB0; --text-3: #85859A;
  --brand: #5A67E3; --brand-press: #4B57CE; --brand-text: #9AA3F5; --brand-soft: rgba(90, 103, 227, 0.2);
  --ok: #22C55E; --ok-text: #7CE0A6; --warn: #F5A624; --danger-text: #FF7B7B;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
body { background-image: radial-gradient(90% 520px at 50% -80px, rgba(90, 103, 227, 0.32), transparent 70%); min-height: 100vh; }
a { color: var(--brand-text); }
a:hover { color: #C3C8FA; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 20px; font-weight: 700; }
.logo:hover { color: var(--text); }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); display: flex; align-items: center; justify-content: center; color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; padding: 10px 12px; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav .nav-login { color: var(--text); font-weight: 600; background: var(--surface-2); border: 1px solid #33333F; border-radius: 12px; padding: 10px 18px; margin-left: 6px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; border: none; border-radius: 14px; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; transition: opacity .15s, background .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-press); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid #33333F; }
.btn-outline:hover { background: var(--surface); color: var(--text); }
.btn-soft { background: var(--surface-2); color: var(--text); }
.btn-soft:hover { color: var(--text); background: #2E2E38; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-block { width: 100%; }

/* главная */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 56px 0 88px; }
.hero-text { flex: 1 1 460px; min-width: 0; }
.pill { display: inline-block; margin-bottom: 18px; font-size: 14px; color: var(--brand-text); background: var(--brand-soft); border: 1px solid rgba(90, 103, 227, 0.35); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px; }
.lead { font-size: 19px; color: var(--text-2); max-width: 540px; margin-bottom: 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-3); }
.hero-art { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.phone { width: 330px; max-width: 100%; background: #16161D; border: 1px solid var(--border); border-radius: 28px; padding: 26px 22px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.phone-top { display: flex; justify-content: space-between; margin-bottom: 22px; font-size: 15px; font-weight: 600; }
.phone-top span:last-child { font-weight: 400; font-size: 13px; color: var(--text-2); }
.orb { width: 140px; height: 140px; margin: 4px auto 14px; border-radius: 50%; border: 3px solid var(--ok); background: radial-gradient(circle, rgba(34, 197, 94, .22), rgba(34, 197, 94, .04) 70%); display: flex; align-items: center; justify-content: center; color: var(--ok); box-shadow: 0 0 48px rgba(34, 197, 94, .28); }
.orb .ic { width: 52px; height: 52px; stroke-width: 1.8; }
.phone-status { text-align: center; font-size: 18px; font-weight: 700; }
.phone-sub { text-align: center; font-size: 14px; color: var(--text-2); margin: 4px 0 20px; }
.dev { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 14px; padding: 12px 14px; margin-top: 8px; font-size: 15px; }
.dev .ic { color: var(--brand-text); }
.dev span:nth-child(2) { flex: 1; }
.dev .ok { font-size: 13px; color: var(--ok-text); }

.section { padding: 0 0 80px; }
.section h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 28px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--text-2); }
.num { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 16px; }
.price-card.main { border-color: rgba(90, 103, 227, .5); }
.price-card .label { color: var(--brand-text); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.price small { font-size: 18px; font-weight: 500; color: var(--text-2); }
.app-card { display: flex; flex-direction: column; gap: 14px; }
.app-card .ic { width: 28px; height: 28px; color: var(--brand-text); }
.app-card .btn { margin-top: auto; min-height: 46px; font-size: 16px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; }
.faq summary { font-size: 17px; font-weight: 600; cursor: pointer; }
.faq p { margin-top: 12px; color: var(--text-2); }
.foot { border-top: 1px solid var(--border); padding: 26px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--text-3); font-size: 14px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--text-2); }

/* вход */
.auth { max-width: 400px; margin: 0 auto; padding: 24px 20px 40px; min-height: 100vh; display: flex; flex-direction: column; }
.auth-back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--surface); color: var(--text); }
.auth-back:hover { color: var(--text); }
.auth-head { margin-top: 56px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.auth-mark { width: 64px; height: 64px; border-radius: 18px; background: var(--brand); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 12px 40px rgba(90, 103, 227, .45); }
.auth-mark.soft { background: var(--brand-soft); color: var(--brand-text); box-shadow: none; }
.auth-mark .ic { width: 30px; height: 30px; }
.auth-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.auth-head p { color: var(--text-2); }
.auth-head b { color: var(--text); }
.auth-form { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.auth-form label { font-size: 14px; color: var(--text-2); }
.field { height: 56px; width: 100%; background: var(--surface); border: 1.5px solid #33333F; border-radius: 14px; padding: 0 18px; color: var(--text); font: inherit; font-size: 17px; outline: none; }
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(90, 103, 227, .2); }
.field.code { text-align: center; font-size: 28px; font-weight: 700; letter-spacing: 12px; padding-left: 30px; }
.auth-err { color: var(--danger-text); font-size: 15px; min-height: 22px; }
.auth-links { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 15px; }
.auth-links button { background: none; border: none; color: var(--brand-text); font: inherit; cursor: pointer; padding: 6px; }
.auth-links button[disabled] { color: var(--text-3); cursor: default; }
.auth-note { margin-top: auto; padding-top: 32px; text-align: center; font-size: 13px; color: var(--text-3); }
.tip { margin-top: 24px; background: var(--surface); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; color: var(--text-2); font-size: 14px; }
.tip .ic { color: var(--warn); margin-top: 1px; }
.hidden { display: none !important; }
