:root{
  --bg0:#050A0D; --bg1:#071218;
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --muted2:rgba(255,255,255,.46);
  --accent:#36F0E4; --accent2:#00B7FF;
  --danger:#ff5468; --ok:#4CFFB3;
  --shadow: 0 16px 40px rgba(0,0,0,.55);
  --radius: 22px;
}
*{ box-sizing:border-box; }
html,body{ height:100%; background:#020406; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 800px at 60% -20%, rgba(54,240,228,.22), transparent 60%),
              radial-gradient(900px 600px at 10% 10%, rgba(0,183,255,.14), transparent 55%),
              linear-gradient(180deg, var(--bg1), var(--bg0) 55%, #020406);
  overflow-x:hidden;
  min-height:100dvh;
}
@supports (padding: max(0px)) {
  body{ padding-bottom: env(safe-area-inset-bottom); padding-top: env(safe-area-inset-top); }
}

/* звездная пыль */
.stardust{
  position:fixed; inset:-40px;
  pointer-events:none;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,.22) 40%, transparent 42%),
    radial-gradient(1px 1px at 75% 55%, rgba(255,255,255,.18) 40%, transparent 42%),
    radial-gradient(1px 1px at 45% 80%, rgba(255,255,255,.16) 40%, transparent 42%),
    radial-gradient(1px 1px at 62% 18%, rgba(255,255,255,.14) 40%, transparent 42%),
    radial-gradient(1px 1px at 28% 62%, rgba(255,255,255,.12) 40%, transparent 42%),
    radial-gradient(1px 1px at 88% 32%, rgba(255,255,255,.10) 40%, transparent 42%);
  opacity:.55;
  filter: blur(.2px);
  transform: translateZ(0);
}
.stardust::after{
  content:"";
  position:absolute; inset:0;
  background-image:
    radial-gradient(2px 2px at 20% 70%, rgba(54,240,228,.10) 40%, transparent 45%),
    radial-gradient(2px 2px at 70% 20%, rgba(0,183,255,.08) 40%, transparent 45%),
    radial-gradient(2px 2px at 85% 78%, rgba(54,240,228,.06) 40%, transparent 45%);
  opacity:.9;
  filter: blur(.3px);
}

.container{ width:min(980px, 100%); margin:0 auto; padding:18px 16px 28px; }

.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius: 18px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position:sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index:50;
}
.brand{ display:flex; align-items:center; gap:10px; min-width:0; }
.brand .logo{
  width:36px;height:36px; display:grid; place-items:center;
  border-radius: 12px;
  border: 1px solid rgba(54,240,228,.22);
  background: rgba(6,18,22,.35);
  box-shadow: 0 0 22px rgba(54,240,228,.16);
}
.brand .logo img{ width:24px;height:24px; display:block; }
.brand .title{ display:flex; flex-direction:column; line-height:1.05; min-width:0; }
.brand .title b{
  letter-spacing:.14em; font-size:12px; text-transform:uppercase;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.brand .title span{
  font-size:12px; color:var(--muted2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.top-actions{ display:flex; gap:10px; }
.icon-btn{
  width:44px; height:44px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(10,20,24,.45);
  color: rgba(255,255,255,.85);
  display:grid; place-items:center;
  backdrop-filter: blur(18px);
  transition: transform .12s ease, border-color .12s ease;
}
.icon-btn:active{ transform: scale(.98); }

.navchips{
  display:flex; gap:10px;
  padding:12px 2px 2px;
  overflow:auto;
  scrollbar-width:none;
}
.navchips::-webkit-scrollbar{ display:none; }
.chip{
  flex:0 0 auto;
  padding:12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,20,24,.35);
  color: rgba(255,255,255,.78);
  backdrop-filter: blur(16px);
  white-space:nowrap;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.chip.active{
  border-color: rgba(54,240,228,.26);
  box-shadow: 0 0 26px rgba(54,240,228,.14);
  color: rgba(255,255,255,.90);
}

.hero{ padding:18px 2px 10px; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius: 999px;
  border:1px solid rgba(54,240,228,.22);
  background: rgba(10,20,24,.35);
  color: rgba(255,255,255,.76);
  backdrop-filter: blur(16px);
}
.badge .dot{
  width:10px;height:10px;border-radius:99px;
  background: var(--ok);
  box-shadow: 0 0 18px rgba(76,255,179,.35);
}

h1{ margin:14px 0 10px; font-size:44px; line-height:1.02; letter-spacing:-0.02em; }
h1 .accent{ color: var(--accent); text-shadow: 0 0 24px rgba(54,240,228,.18); }
.lead{ margin:0 0 16px; font-size:16px; color: var(--muted); line-height:1.55; max-width:46ch; }

.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.netcard{ padding:18px; margin: 14px 0 10px; }
.netrow{ display:flex; align-items:center; justify-content:space-between; gap:12px; color: var(--muted); margin-bottom: 10px; min-width:0; }
.netrow .pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,20,24,.32);
  color: rgba(255,255,255,.85);
  min-width:0;
}
.progress{ height:10px; border-radius: 999px; background: rgba(255,255,255,.10); overflow:hidden; }
.progress>div{ height:100%; width:68%; background: linear-gradient(90deg, rgba(54,240,228,.95), rgba(0,183,255,.85)); box-shadow: 0 0 18px rgba(54,240,228,.18); }

.bullets{ display:grid; gap:10px; margin: 12px 0 16px; }
.bullet{
  display:flex; align-items:center; gap:10px;
  padding:14px 16px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(10,20,24,.28);
  color: rgba(255,255,255,.78);
  min-width:0;
}
.bullet .ic{
  width:28px;height:28px; border-radius: 12px;
  border: 1px solid rgba(54,240,228,.20);
  display:grid; place-items:center;
  color: var(--accent);
  box-shadow: 0 0 18px rgba(54,240,228,.12);
  flex:0 0 auto;
}
.bullet .txt{ min-width:0; overflow:hidden; text-overflow: ellipsis; white-space:nowrap; }

.btn-row{ display:flex; gap:12px; margin: 14px 0 8px; }
.btn{
  flex:1; min-width:0;
  padding:14px 16px; border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,20,24,.35);
  color: rgba(255,255,255,.90);
  font-weight:600;
  display:flex; align-items:center; justify-content:center; gap:10px;
  cursor:pointer; user-select:none;
  -webkit-tap-highlight-color: transparent;
  white-space:nowrap; overflow:hidden; text-overflow: ellipsis;
}
.btn.primary{
  border-color: rgba(54,240,228,.25);
  background: linear-gradient(180deg, rgba(54,240,228,.18), rgba(10,20,24,.35));
  box-shadow: 0 0 28px rgba(54,240,228,.12);
}
.btn:active{ transform: translateY(1px); }

.meta-links{ display:flex; gap:18px; flex-wrap:wrap; margin-top: 10px; color: rgba(255,255,255,.55); font-size: 14px; }
.meta-links a{ color: rgba(255,255,255,.70); text-decoration:none; }
.meta-links a:hover{ text-decoration:underline; }

.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin: 22px 2px 10px; }
.section-head h2{ margin:0; font-size: 36px; letter-spacing:-0.02em; }
.section-head .hint{ color: rgba(255,255,255,.38); font-size: 14px; }

.carousel{ position:relative; margin: 8px 0 8px; }
.track{
  display:flex; gap:14px;
  overflow:auto; scroll-snap-type:x mandatory;
  padding: 6px 2px 14px;
  scrollbar-width:none;
}
.track::-webkit-scrollbar{ display:none; }
.slide{
  flex:0 0 min(84%, 420px);
  scroll-snap-align:center;
  padding:18px;
  border-radius: 28px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(10,20,24,.34);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position:relative;
  min-width:0;
}
.slide h3{ margin:0 0 10px; font-size: 26px; display:flex; align-items:center; gap:10px; }
.slide p{ margin:0; color: rgba(255,255,255,.60); line-height:1.55; overflow-wrap:anywhere; word-break: break-word; }

.chipgrid{ display:flex; gap:10px; margin-top: 14px; }
.mini{
  flex:1; min-width:0;
  padding:12px 12px; border-radius: 18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(10,20,24,.28);
  color: rgba(255,255,255,.74);
  line-height:1.15;
}
.mini b{
  display:block; font-size: 12px;
  color: rgba(255,255,255,.46);
  margin-bottom: 6px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mini span{
  display:block; font-weight:700; font-size: 16px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.dots{ display:flex; gap:8px; justify-content:flex-end; padding: 0 10px 6px; }
.dot{ width:8px; height:8px; border-radius:99px; background: rgba(255,255,255,.18); }
.dot.active{ background: rgba(54,240,228,.9); box-shadow: 0 0 16px rgba(54,240,228,.20); }

.stepcard{ padding:18px; }
.stepcard .k{ display:flex; align-items:center; gap:12px; }
.stepcard .k .ic{
  width:34px;height:34px; border-radius: 14px;
  border:1px solid rgba(54,240,228,.18);
  display:grid; place-items:center;
  color: var(--accent);
  background: rgba(6,18,22,.28);
  box-shadow: 0 0 18px rgba(54,240,228,.12);
}
.stepcard .k b{ font-size:22px; }
.stepcard p{ margin-top:10px; }

.footer{ margin-top: 26px; padding: 18px 8px 30px; color: rgba(255,255,255,.42); font-size: 13px; }
.footer .row{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.footer a{ color: rgba(255,255,255,.60); text-decoration:none; }
.footer a:hover{ text-decoration:underline; }

/* toast */
.toast{
  position:fixed;
  left:50%;
  top: max(12px, env(safe-area-inset-top));
  transform: translateX(-50%);
  z-index:100;
  max-width: min(520px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,20,24,.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show{ opacity:1; pointer-events:auto; }
.toast .trow{ display:flex; align-items:flex-start; gap:10px; }
.toast .trow b{ display:block; margin-bottom: 2px; }
.toast .trow span{ display:block; color: rgba(255,255,255,.64); line-height:1.35; overflow-wrap:anywhere; }
.toast .badge{
  padding:6px 10px; border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  font-size:12px; color: rgba(255,255,255,.78);
}
.toast.ok{ border-color: rgba(76,255,179,.25); }
.toast.err{ border-color: rgba(255,84,104,.28); }

/* глобально: не вылезает */
p, .lead, .txt, .mini, .btn, .chip, .slide, .bullet{ overflow-wrap:anywhere; word-break: break-word; }
.btn, .mini b, .mini span, .bullet .txt{ text-overflow:ellipsis; overflow:hidden; }

/* Neon icons */
img.icon, .icon img{filter: drop-shadow(0 0 10px rgba(54,240,228,.55));}
