:root{
  --bg:#0A1017; --panel:#111A24; --panel2:#0D151E; --line:#1E2C3A; --line2:#2A3B4D;
  --text:#E6EEF5; --muted:#B7C4D1; --dim:#93A4B5; --accent:#3FCFE0; --accent-ink:#04161B;
  --accent-soft:#0F2630; --ok:#7BE29B; --ok-bg:#12301F; --bad:#FF9AA4; --bad-line:#7A2E35;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Manrope,system-ui,sans-serif;font-size:16px;line-height:1.5}
a{color:#5FD8E8}a:hover{color:#9BE8F2}
h1,h2,.display{font-family:Unbounded,Manrope,sans-serif}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* шапка */
.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:20px 0}
.brand{display:flex;align-items:center;gap:12px;color:var(--text);text-decoration:none}
.brand img{width:44px;height:44px}
.brand span{font-family:Unbounded,sans-serif;font-weight:700;font-size:20px}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:22px;font-size:15px}
.nav a{color:var(--muted);text-decoration:none}
.nav a:hover{color:var(--text)}

/* кнопки */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 24px;border-radius:12px;
  font:700 16px Manrope,sans-serif;text-decoration:none;cursor:pointer;border:1px solid var(--line2);background:transparent;color:var(--text)}
.btn:hover{border-color:#3B5068;color:var(--text)}
.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.btn-primary:hover{background:#6FDDEA;border-color:#6FDDEA;color:var(--accent-ink)}
.btn-danger{border-color:var(--bad-line);color:var(--bad)}
.btn-danger:hover{border-color:#A3434C;color:#FFC2C8}
.btn-sm{min-height:40px;padding:8px 14px;font-size:14px;font-weight:600}
.btn-block{width:100%}
button:disabled,.btn[aria-disabled=true]{opacity:.5;cursor:not-allowed}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* общие блоки */
.card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:28px}
.muted{color:var(--muted)}.dim{color:var(--dim)}
.section{padding:0 0 96px}
.section-head{text-align:center;display:flex;flex-direction:column;gap:10px;margin-bottom:32px}
.section-head h2{margin:0;font-size:36px}
.section-head p{margin:0;color:var(--muted);font-size:17px}
.grid{display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.pill{display:inline-block;white-space:nowrap;padding:4px 10px;border-radius:999px;background:#1A2633;color:var(--muted);font-size:13px;font-weight:700}

/* сообщения */
.flash{margin:0 0 20px;padding:14px 18px;border-radius:12px;background:var(--accent-soft);border:1px solid #1F5966;color:#CFEFF4}
.flash.error{background:#2A1418;border-color:var(--bad-line);color:#FFC9CE}

/* главная */
.hero{display:flex;flex-wrap:wrap;align-items:center;gap:48px;padding:64px 0 88px}
.hero-text{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:24px}
.hero h1{margin:0;font-size:clamp(34px,5vw,52px);line-height:1.1}
.hero p{margin:0;font-size:19px;line-height:1.6;color:var(--muted);max-width:560px}
.hero-art{flex:1 1 300px;display:flex;justify-content:center}
.hero-art img{width:100%;max-width:380px;height:auto}
.badge{align-self:flex-start;padding:6px 12px;border-radius:999px;background:#10232C;color:#7FE3EF;font-size:14px;font-weight:600}
.row{display:flex;flex-wrap:wrap;gap:12px}
.facts{display:flex;flex-wrap:wrap;gap:24px;color:var(--dim);font-size:15px}
.feature{display:flex;flex-direction:column;gap:12px}
.feature h3{margin:0;font-size:19px}
.feature p{margin:0;color:var(--muted);line-height:1.55}

/* тарифы */
.plan{position:relative;display:block;cursor:pointer}
.plan-card{height:100%;display:flex;flex-direction:column;gap:14px;padding:28px;border-radius:18px;background:var(--panel);border:2px solid var(--line)}
.plan:hover .plan-card{border-color:#34495F}
.plan input:checked + .plan-card{border-color:var(--accent);background:var(--accent-soft)}
.plan input:focus-visible + .plan-card{outline:2px solid var(--accent);outline-offset:3px}
.plan-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}
.plan-top h3{margin:0;font-size:20px}
.price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.price b{font-family:Unbounded,sans-serif;font-size:36px}
.price s{color:#8A9BAC;font-size:18px}
.plan-pick{margin-top:auto;padding:12px;border-radius:12px;border:1px solid var(--line2);text-align:center;font-weight:700}
.plan input:checked + .plan-card .plan-pick{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.plan input:checked + .plan-card .plan-pick::after{content:" ✓"}
.best{background:var(--accent);color:var(--accent-ink)}

.checkout{display:flex;flex-wrap:wrap;gap:32px;align-items:flex-start;margin-top:24px}
.checkout > div{flex:1 1 320px;display:flex;flex-direction:column;gap:12px}
.field{display:flex;flex-direction:column;gap:8px}
.field label{font-weight:600}
input[type=email],input[type=text],input[inputmode=numeric]{width:100%;padding:15px 16px;border-radius:12px;border:1px solid var(--line2);
  background:var(--bg);color:var(--text);font:17px Manrope,sans-serif}
input[type=email]:focus,input[type=text]:focus,input[inputmode=numeric]:focus{border-color:var(--accent);outline:none}
.check{display:flex;gap:10px;align-items:flex-start;color:var(--muted);font-size:14px;line-height:1.5;cursor:pointer}
.check input{width:20px;height:20px;margin:1px 0 0;flex:none;accent-color:var(--accent)}

/* шаги / инструкции */
.step-n{font-family:Unbounded,sans-serif;font-size:28px;color:var(--accent)}
details.faq{padding:18px 22px;border-radius:14px;background:var(--panel);border:1px solid var(--line)}
details.faq summary{font-weight:700;font-size:17px;cursor:pointer}
details.faq p{margin:12px 0 0;color:var(--muted);line-height:1.6}
.app-block{display:flex;flex-direction:column;gap:14px}
.app-block h2{margin:0;font-size:24px}
.app-block ol{margin:0;padding-left:22px;color:var(--muted);line-height:1.7}
.tabs-links{display:flex;flex-wrap:wrap;gap:10px}

/* формы входа */
.narrow{max-width:460px;margin:48px auto 80px}
.narrow .card{display:flex;flex-direction:column;gap:16px;padding:36px}
.narrow h1{margin:0;font-size:26px}
.code-input{font-size:26px!important;letter-spacing:.3em;text-align:center}
.links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:14px}
.linkbtn{background:none;border:0;padding:0;color:#5FD8E8;font:inherit;cursor:pointer;text-decoration:underline}
.linkbtn:disabled{color:var(--dim);text-decoration:none;cursor:default}

/* кабинет */
.cab{display:flex;flex-direction:column;gap:24px;padding:16px 0 80px}
.cab h1{margin:0;font-size:32px}
.cab-row{display:flex;flex-wrap:wrap;gap:24px}
.cab-main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:20px}
.cab-side{flex:1 1 320px;display:flex;flex-direction:column;gap:14px}
.cab h2{margin:0;font-size:22px;font-family:Manrope,sans-serif;font-weight:700}
.cab h3{margin:6px 0 0;font-size:18px}
.head-line{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.status{padding:6px 12px;border-radius:999px;font-size:14px;font-weight:700}
.status.on{background:var(--ok-bg);color:var(--ok)}
.status.off{background:#2A1418;color:var(--bad)}
.status.wait{background:#2B2410;color:#F2D27A}
.stats{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.stat{padding:18px;border-radius:14px;background:var(--panel2);display:flex;flex-direction:column;gap:4px}
.stat span:first-child{color:var(--dim);font-size:14px}
.stat b{font-size:20px}
.note{padding:16px 18px;border-radius:14px;background:var(--accent-soft);border:1px solid #1F5966;color:#CFEFF4;line-height:1.55}
.note form{display:inline}
.plans-mini{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.plans-mini button{padding:16px;border-radius:14px;border:1px solid var(--line2);background:var(--panel2);color:var(--text);text-align:left;
  font-family:Manrope,sans-serif;cursor:pointer;display:flex;flex-direction:column;gap:4px;min-height:72px}
.plans-mini button:hover{border-color:#3B5068}
.plans-mini button.cur{border:2px solid var(--line2)}
.plans-mini button.sel{border:2px solid var(--accent);background:var(--accent-soft)}
.plans-mini b{font-size:16px}
.plans-mini span{color:var(--muted);font-size:14px}
.danger-zone{border-top:1px solid var(--line);padding-top:20px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.qr{align-self:center;width:220px;height:220px;border-radius:16px;background:#F4F7FA;padding:8px;display:flex;align-items:center;justify-content:center;color:#0A1017}
.qr svg{width:100%;height:100%}
.copy{display:flex;gap:8px}
.copy input{flex:1 1 auto;min-width:0;font-size:14px!important;color:var(--muted)!important}
.table-box{overflow-x:auto}
.table{min-width:560px;width:100%;border-collapse:collapse}
.table th{color:var(--dim);font-size:14px;font-weight:500;text-align:left;padding:10px 8px;border-bottom:1px solid var(--line)}
.table td{padding:12px 8px;border-bottom:1px solid var(--line);color:var(--muted)}
.table td:first-child{color:var(--text);font-weight:600}
.table tr:last-child td{border-bottom:0}

/* юридические тексты */
.legal{max-width:820px;margin:32px auto 80px;line-height:1.7}
.legal h1{font-size:30px}
.legal h2{font-size:20px;margin-top:32px;font-family:Manrope,sans-serif}
.legal p,.legal li{color:var(--muted)}

/* подвал */
.foot{border-top:1px solid var(--line)}
.foot .wrap{display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;padding-top:28px;padding-bottom:28px;color:var(--dim);font-size:14px}
.foot nav{display:flex;flex-wrap:wrap;gap:18px}
.foot a{color:var(--muted)}

@media (max-width:600px){
  .wrap{padding:0 16px}
  .card,.plan-card{padding:22px}
  .narrow .card{padding:24px}
  .section{padding-bottom:64px}
  .section-head h2{font-size:28px}
  .hero{padding:32px 0 56px;gap:32px}
  .nav{gap:14px}
}
