:root {
  --bg: #ffffff;
  --bg-2: #f4f5f9;
  --card: #ffffff;
  --line: rgba(15, 17, 22, .08);
  --text: #0f0f0f;
  --muted: #5b6170;
  --accent: #0A6CFF;
  --accent-hover: #075BDB;
  --accent-soft: #EFF6FF;
  --accent-2: #4A7BFF;
  --radius: 16px;
  --font-head: "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }

.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font-weight: 700; font-size: 16px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-main { background: var(--accent); color: #ffffff; }
.btn-main:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); background: #ffffff; }
.btn-ghost:hover { border-color: var(--muted); background: var(--bg-2); }
.btn-sm { padding: 9px 16px; font-size: 15px; }

/* hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(37, 99, 235, .09), transparent 62%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.hero-lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15px; padding: 0; margin: 0; list-style: none; }
.trust li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }

.panel {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--line); border-radius: 20px; padding: 26px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.status { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(13, 148, 136, .16); }
.switch { width: 52px; height: 30px; border-radius: 15px; background: var(--accent); position: relative; }
.switch::after { content: ""; position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(15,23,42,.2); }
.shield { display: grid; place-items: center; padding: 18px 0 24px; }
.shield svg { width: 120px; height: 120px; }
.rows { display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.row span:first-child { color: var(--muted); }

/* sections */
section { padding: 72px 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 40px; }

.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 16px rgba(15, 23, 42, .03); }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.ico svg { width: 22px; height: 22px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; box-shadow: 0 4px 16px rgba(15, 23, 42, .03); }
.plan.best { border: 2px solid var(--accent); position: relative; box-shadow: 0 12px 32px rgba(13, 148, 136, .10); }
.badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #ffffff; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 6px; }
.plan-name { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.price { font-family: var(--font-head); font-size: 38px; font-weight: 600; margin: 8px 0 2px; color: var(--text); }
.price small { font-size: 16px; font-family: var(--font-body); color: var(--muted); font-weight: 600; }
.per { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 15.5px; }
.plan li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.plan .btn { margin-top: auto; }
.note { color: var(--muted); font-size: 14.5px; margin-top: 22px; }

/* steps */
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .ico { flex: none; margin: 0; }

/* devices */
.devices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.device { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; box-shadow: 0 4px 16px rgba(15, 23, 42, .03); }
.device svg { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--accent); }
.device b { display: block; color: var(--text); }
.device span { color: var(--muted); font-size: 14px; }

/* faq */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* contacts */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.req { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15.5px; margin: 0; }
.req dt { color: var(--muted); }
.req dd { margin: 0; color: var(--text); }
.pay { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pay span { border: 1px solid var(--line); background: var(--bg-2); border-radius: 8px; padding: 6px 12px; font-size: 14px; font-weight: 700; color: var(--muted); }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 34px 0 44px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* legal pages */
.doc { max-width: 820px; padding: 56px 0 80px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); }
.doc h2 { font-size: 21px; margin-top: 34px; }
.doc p, .doc li { color: #334155; font-size: 16px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc .updated { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }

/* app pages: checkout, login, cabinet, demo-pay */
.app-wrap { max-width: 960px; padding: 48px 0 80px; }
.app-narrow { max-width: 480px; padding: 56px 0 80px; }
.checkout-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.plan-pick { display: grid; gap: 10px; }
.plan-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; border-radius: 12px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); transition: border-color .15s, background .15s;
}
.plan-opt:hover { border-color: var(--muted); }
.plan-opt.active { border-color: var(--accent); background: rgba(13, 148, 136, .06); }
.plan-opt .p-title { font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--text); }
.plan-opt .p-sub { color: var(--muted); font-size: 13.5px; }
.plan-opt .p-price { font-family: var(--font-head); font-size: 20px; font-weight: 600; white-space: nowrap; color: var(--text); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: #ffffff; }
.tag-warn { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.tag-muted { background: #e2e8f0; color: #334155; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font: inherit; font-size: 15.5px;
  background: #ffffff; color: var(--text); border: 1px solid var(--line); outline: none;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }

.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.method {
  padding: 12px; border-radius: 10px; text-align: center; cursor: pointer; font-weight: 700; font-size: 14.5px;
  background: #ffffff; border: 1.5px solid var(--line); color: var(--text);
}
.method.active { border-color: var(--accent); color: var(--accent); background: rgba(13, 148, 136, .06); }

.alert { padding: 12px 14px; border-radius: 10px; font-size: 14.5px; margin-bottom: 16px; }
.alert-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

.code-box {
  display: flex; gap: 8px; align-items: center; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, monospace; font-size: 13.5px;
  word-break: break-all; margin: 12px 0;
}
.code-box code { flex: 1; color: var(--accent-hover); }
.orders-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 10px; }
.orders-tbl th, .orders-tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.orders-tbl th { color: var(--muted); font-weight: 600; }
.btn-full { width: 100%; }
.btn-danger { background: #ffffff; border-color: #fca5a5; color: #b91c1c; }
.btn-danger:hover { border-color: #dc2626; background: #fef2f2; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tabs button { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.tabs button.active { border-color: var(--accent); color: var(--accent); background: rgba(13, 148, 136, .08); }

@media (max-width: 980px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3, .plans { grid-template-columns: 1fr 1fr; }
  .devices { grid-template-columns: repeat(3, 1fr); }
  .nav { display: none; }
  .top .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero { padding: 44px 0 40px; }
  .g4, .g3, .plans, .contacts { grid-template-columns: 1fr; }
  .devices { grid-template-columns: 1fr 1fr; }
  .req { grid-template-columns: 1fr; gap: 2px; }
  .req dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
