*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  min-height:100dvh;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,sans-serif;
  font-size:16px;
  line-height:1.5;
  color:#f4f4f5;
  background:#0b0b0d;
  padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  display:flex;
  flex-direction:column;
  align-items:center;
}
.wrap{width:100%;max-width:480px}
.card-shell{
  border-radius:26px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
  box-shadow:0 24px 60px rgba(0,0,0,.45);
}
.top-peach{
  background:#e8b89f;
  padding:18px 20px 20px;
  text-align:center;
}
.brand{
  font-size:32px;
  font-weight:900;
  letter-spacing:8px;
  color:#1a100c;
  margin:0 0 8px;
}
.screen-title{
  margin:0 0 8px;
  font-size:24px;
  font-weight:800;
  color:#1a100c;
  line-height:1.25;
}
.subtitle{
  margin:0;
  font-size:14px;
  line-height:1.5;
  font-weight:600;
  color:#1a100c;
  opacity:.88;
}
.body-block{
  background:#16161a;
  padding:20px 20px 24px;
}
.label{
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:1px;
  color:rgba(255,255,255,.55);
  margin-bottom:8px;
  text-transform:uppercase;
}
.input{
  width:100%;
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  padding:13px 14px;
  font-size:16px;
  margin-bottom:16px;
  background:#0e0e12;
  color:#f4f4f5;
  outline:none;
}
.input:focus{border-color:#0d9488}
.tariff-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-bottom:16px;
}
.tariff-btn{
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:10px 6px;
  background:#0e0e12;
  color:#f4f4f5;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.tariff-btn.selected{
  border-color:#0d9488;
  background:rgba(13,148,136,.18);
  color:#5eead4;
}
.btn-primary{
  display:block;
  width:100%;
  text-align:center;
  text-decoration:none;
  border:none;
  border-radius:16px;
  padding:14px 16px;
  font-size:16px;
  font-weight:800;
  background:#0d9488;
  color:#fff;
  cursor:pointer;
}
.btn-primary:disabled{opacity:.55;cursor:not-allowed}
.btn-secondary{
  display:block;
  width:100%;
  text-align:center;
  text-decoration:none;
  border-radius:16px;
  padding:12px 16px;
  font-size:14px;
  font-weight:700;
  background:transparent;
  color:rgba(255,255,255,.55);
  margin-top:12px;
}
.auth-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:20px 0 16px;
  color:rgba(255,255,255,.45);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.auth-divider::before,.auth-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:rgba(255,255,255,.1);
}
.telegram-wrap{
  display:flex;
  justify-content:center;
  min-height:44px;
  margin-bottom:8px;
}
.telegram-hint{
  margin:0 0 12px;
  font-size:12px;
  line-height:1.45;
  color:rgba(255,255,255,.5);
  text-align:center;
}
.completion-panel.hidden,.telegram-block.hidden{display:none}
.completion-greeting{
  margin:0 0 16px;
  font-size:14px;
  line-height:1.5;
  color:rgba(255,255,255,.75);
}
.badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(13,148,136,.2);
  color:#5eead4;
  font-size:12px;
  font-weight:800;
  letter-spacing:.5px;
  text-transform:uppercase;
  margin-bottom:14px;
}
.steps{
  margin:0 0 20px;
  padding-left:20px;
  color:#f4f4f5;
  font-size:15px;
  line-height:1.55;
}
.steps li{margin-bottom:10px}
.error{
  margin-bottom:14px;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(176,0,32,.12);
  border:1px solid rgba(176,0,32,.35);
  color:#fecaca;
  font-size:14px;
}
.success{
  margin-bottom:14px;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(13,148,136,.12);
  border:1px solid rgba(13,148,136,.35);
  color:#99f6e4;
  font-size:14px;
}
.footnote{
  margin-top:16px;
  font-size:13px;
  line-height:1.5;
  color:rgba(255,255,255,.55);
}
.hidden{display:none}
.text-link{color:#5eead4;font-weight:700;text-decoration:none}
.text-link:hover{text-decoration:underline}
.page-nav{margin-top:18px;text-align:center;font-size:14px}
.success-text{margin:0 0 16px;font-size:15px;line-height:1.55;color:#f4f4f5}
.legal-page .body-block{padding:22px 20px 28px}
.legal-updated{margin:0 0 18px;font-size:13px;color:rgba(255,255,255,.55);font-weight:600}
.legal-section{margin:0 0 20px}
.legal-section h2{margin:0 0 8px;font-size:16px;font-weight:800;color:#f8fafc;line-height:1.35}
.legal-section p{margin:0 0 10px;font-size:15px;line-height:1.6;color:rgba(255,255,255,.82)}
.legal-nav{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.legal-nav a{font-size:14px}
.consent-row{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:4px 0 16px;
  cursor:pointer;
}
.consent-checkbox{
  width:20px;
  height:20px;
  margin-top:2px;
  flex-shrink:0;
  accent-color:#e8b89f;
  cursor:pointer;
}
.consent-text{
  font-size:13px;
  line-height:1.55;
  color:rgba(255,255,255,.62);
  font-weight:500;
}
.consent-text .text-link{margin:0 4px}
