/* ===== Base ===== */
:root{
  --bg: #050607;
  --bg2:#080a0c;
  --text:#e9eef5;
  --muted: rgba(233,238,245,.72);
  --glass: rgba(255,255,255,.06);
  --glass2: rgba(255,255,255,.10);
  --stroke: rgba(255,255,255,.12);
  --glow: rgba(255,255,255,.18);
  --shadow: 0 20px 60px rgba(0,0,0,.55);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 50% 30%, rgba(255,255,255,.06), transparent 60%),
              radial-gradient(900px 500px at 70% 60%, rgba(255,255,255,.04), transparent 65%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x:hidden;
}

/* ===== Starfield background ===== */
.starfield{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.starfield::before,
.starfield::after{
  content:"";
  position:absolute;
  inset:-30%;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.55) 40%, transparent 45%),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,.35) 40%, transparent 45%),
    radial-gradient(1px 1px at 60% 30%, rgba(255,255,255,.45) 40%, transparent 45%),
    radial-gradient(1px 1px at 80% 65%, rgba(255,255,255,.30) 40%, transparent 45%),
    radial-gradient(1px 1px at 45% 55%, rgba(255,255,255,.25) 40%, transparent 45%),
    radial-gradient(2px 2px at 15% 55%, rgba(255,255,255,.22) 35%, transparent 40%),
    radial-gradient(2px 2px at 75% 25%, rgba(255,255,255,.18) 35%, transparent 40%),
    radial-gradient(2px 2px at 55% 85%, rgba(255,255,255,.16) 35%, transparent 40%);
  opacity:.9;
  filter: blur(.1px);
  transform: translate3d(0,0,0);
  animation: drift 18s linear infinite;
}

.starfield::after{
  opacity:.55;
  filter: blur(.6px);
  animation-duration: 28s;
}

@keyframes drift{
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-3%,2%,0); }
}

/* ===== Subtle vignette ===== */
.vignette{
  position: fixed;
  inset: 0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(1200px 800px at 50% 40%, transparent 50%, rgba(0,0,0,.55) 100%);
}

/* ===== Layout ===== */
.container{
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 28px 0 70px;
}

/* ===== Top nav ===== */
.topbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 18px 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5,6,7,.72), rgba(5,6,7,.35));
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 10;
}

.nav-group{
  display:flex;
  gap: 14px;
  align-items:center;
}

.brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 6px;
  letter-spacing: .18em;
  text-transform: uppercase;
  user-select:none;
}

.brand .logo{
  width: 26px;
  height: 26px;
  opacity:.9;
  filter: drop-shadow(0 0 18px rgba(255,255,255,.20));
}

.brand .title{
  font-weight: 650;
  font-size: 18px;
}

.brand .subtitle{
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform:none;
}

.nav-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  color: var(--text);
  text-decoration:none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.nav-link:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.30);
}

.nav-link.active{
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 6px rgba(255,255,255,.03);
}

.icon{
  width: 18px;
  height: 18px;
  opacity:.95;
}

/* ===== Hero ===== */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  margin-top: 26px;
}

.card{
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-main{
  padding: 26px 26px 22px;
  position: relative;
  overflow:hidden;
}

.hero-main::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(closest-side at 50% 40%, rgba(255,255,255,.10), transparent 60%);
  transform: rotate(8deg);
  pointer-events:none;
}

.h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: .02em;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
  max-width: 62ch;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}

.badge{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.86);
  font-size: 12px;
}

.hero-side{
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
  overflow:hidden;
}

.glow{
  position:absolute;
  inset: 0;
  background: radial-gradient(400px 250px at 60% 35%, rgba(255,255,255,.15), transparent 70%),
              radial-gradient(600px 350px at 30% 70%, rgba(255,255,255,.08), transparent 70%);
  pointer-events:none;
}

.figure{
  width: 100%;
  max-width: 280px;
  opacity:.95;
  filter: drop-shadow(0 0 25px rgba(255,255,255,.10));
}

/* ===== Content area ===== */
.content{
  margin-top: 26px;
  padding: 22px 22px 26px;
}

.section-title{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing:.02em;
}

.placeholder{
  margin: 0;
  color: var(--muted);
  line-height:1.7;
}

/* ===== Footer ===== */
.footer{
  margin-top: 24px;
  color: rgba(233,238,245,.55);
  font-size: 12px;
  text-align:center;
}

/* ===== Responsive ===== */
@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; }
  .brand{ display:none; } /* чтобы верх был компактнее на мобиле */
}
