:root{
  --bg:#0e1222;
  --card:#171c32;
  --text:#eef1ff;
  --muted:#bcc3e2;
  --line:#2a3460;
  --a:#7ea0ff;
  --b:#ff87ba;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  line-height:1.65;
  background:
    radial-gradient(1200px 800px at 10% 0%, rgba(126,160,255,.34), transparent 60%),
    radial-gradient(1200px 800px at 90% 100%, rgba(255,135,186,.24), transparent 60%),
    linear-gradient(180deg,#111735 0%,#0e1222 100%);
  background-attachment: fixed;
}

/* чтобы ничего не уезжало вправо */
.wrap{
  width:min(1080px, 100% - 24px);
  margin:0 auto;
  padding:16px 0 24px;
}
.top,.card{
  width:100%;
  background:rgba(23,28,50,.82);
  border:1px solid var(--line);
  border-radius:16px;
  backdrop-filter: blur(5px);
}
.top{
  display:flex;
  gap:14px;
  align-items:center;
  padding:14px;
}
.top > div{
  min-width:0; /* важно для переноса текста рядом с иконкой */
}

.logo{
  width:68px;
  height:68px;
  border-radius:15px;
  object-fit:cover;
  border:1px solid var(--line);
  background:#fff;
  flex:0 0 auto;
}

h1,h2,p,li,a,.sub{
  overflow-wrap:anywhere;
  word-break:break-word;
}

h1{margin:0;font-size:30px;line-height:1.2}
.sub{margin-top:4px;color:var(--muted);font-size:14px}
.card{
  margin-top:14px;
  padding:20px;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(0,0,0,.25);border-color:#3a4b86}
h2{margin:0 0 10px;font-size:22px;line-height:1.25}
p,li{margin:.35em 0}
ul{padding-left:20px}
.muted{color:var(--muted)}
.nav{display:flex;gap:10px;flex-wrap:wrap}
.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  text-decoration:none;
  color:var(--text);
  border:1px solid var(--line);
  background:linear-gradient(135deg, rgba(126,160,255,.22), rgba(255,135,186,.14));
  transition:transform .18s ease, filter .18s ease;
}
.btn:hover{transform:translateY(-1px);filter:brightness(1.08)}
a{color:var(--a)}
.footer{margin:18px 0 4px;color:var(--muted);font-size:13px}

/* blocks for main */
.grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.pill{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  background:rgba(255,255,255,.02);
}
.slider{position:relative;overflow:hidden;border-radius:14px;border:1px solid var(--line);background:#0b0f20}
.track{display:flex;transition:transform .5s ease}
.slide{min-width:100%;display:block}
.slide img{display:block;width:100%;height:auto;max-height:680px;object-fit:contain;background:#0b0f20}
.dots{display:flex;justify-content:center;gap:8px;margin-top:10px}
.dot{width:10px;height:10px;border-radius:999px;border:1px solid var(--line);background:#2d3a69;cursor:pointer}
.dot.active{background:linear-gradient(135deg,var(--a),var(--b));border-color:transparent}
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease, transform .6s ease}
.reveal.show{opacity:1;transform:none}

/* мобильная адаптация + иконка выше на маленьких экранах */
@media (max-width:860px){
  .grid{grid-template-columns:1fr}
  h1{font-size:24px}
  h2{font-size:20px}
  .top{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
}
.legal-page .top{
  flex-direction:column;
  align-items:center;
  text-align:center;
}
