:root{
  --bg0:#06070a;
  --bg1:#0b0f16;
  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(255,255,255,.07);
  --txt: rgba(235,242,255,.92);
  --muted: rgba(235,242,255,.65);
  --muted2: rgba(235,242,255,.52);
  --gold1: rgba(255, 214, 120, .55);
  --shadow: 0 24px 90px rgba(0,0,0,.55);
  --r16: 16px;
  --r20: 20px;
  --r24: 24px;
}

html, body{ height:100%; }
body.guide{
  margin:0;
  min-height:100vh;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(255,214,120,.10), transparent 55%),
    radial-gradient(900px 600px at 90% 15%, rgba(120,255,180,.08), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(90,140,255,.07), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  color:var(--txt);
}

.wrap{
  width:100%;
  padding: 18px clamp(14px, 3vw, 28px) 64px;
}

.card{
  border-radius: var(--r24);
  border: 1px solid var(--stroke2);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}

.pad{ padding:16px; }

.topbar-guide{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,14,20,.52);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.topbar-guide .nav{
  display:flex;
  align-items:center;
  gap:12px;
}

.pill{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--txt);
  font-weight: 900;
  font-size: 13px;
  text-decoration:none;
}
.pill.gold{
  border-color: rgba(255,214,120,.34);
  background: linear-gradient(180deg, rgba(255,214,120,.22), rgba(255,214,120,.10));
  box-shadow: 0 14px 40px rgba(255,214,120,.12);
}

.h1{
  margin: 8px 0 10px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.4px;
  font-weight: 950;
}
.sub{
  color: var(--muted);
  font-size: 14px;
  line-height:1.6;
  max-width: 78ch;
}

.grid2{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 12px;
}
@media (max-width: 980px){
  .grid2{ grid-template-columns: 1fr; }
}

.kpis{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
@media (max-width: 620px){
  .kpis{ grid-template-columns: 1fr; }
}
.kpi{
  border-radius: var(--r16);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding: 12px;
}
.kpi .k{ font-size:12px; color: var(--muted2); }
.kpi .v{ margin-top:6px; font-size:16px; font-weight:950; }

.media{
  border-radius: var(--r20);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  overflow:hidden;
  min-height: 260px;
  position: relative;
}
.media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  opacity:.92;
}
.media::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(500px 300px at 30% 10%, rgba(255,214,120,.14), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.42));
  pointer-events:none;
}
.mediaFallback{
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(235,242,255,.65);
  font-weight: 900;
}
.mediaFallback::before{
  content:"Добавь картинки в /static/img/guide/";
}

.secHead{
  margin: 22px 0 10px;
}
.secHead h2{
  margin:0;
  font-size: 20px;
  font-weight: 950;
}
.secHead p{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px){
  .grid3{ grid-template-columns: 1fr; }
}
.tile{
  border-radius: var(--r20);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding: 14px;
}
.tile h3{ margin: 8px 0 6px; font-size: 15px; font-weight: 950; }
.tile p{ margin:0; color: var(--muted); font-size: 13px; line-height:1.5; }

.note{
  border-radius: var(--r20);
  border: 1px solid rgba(255,214,120,.22);
  background: rgba(255,214,120,.07);
  padding: 12px 14px;
  color: rgba(235,242,255,.82);
  font-size: 13px;
  line-height:1.55;
}

.steps{
  display:grid;
  gap: 10px;
}
.step{
  display:grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r20);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.step .n{
  width: 34px; height: 34px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 950;
  border: 1px solid rgba(255,214,120,.28);
  background: rgba(255,214,120,.10);
}
.step .t{ font-weight: 950; }
.step .d{ grid-column: 2 / 3; color: var(--muted); font-size: 13px; line-height:1.45; }

.table{
  margin-top: 10px;
  overflow:hidden;
  border-radius: var(--r20);
  border: 1px solid rgba(255,255,255,.08);
}
.trow{
  display:grid;
  grid-template-columns: 1.8fr 1fr;
  border-top: 1px solid rgba(255,255,255,.07);
}
.trow.head{
  border-top: 0;
  background: rgba(255,255,255,.03);
  font-weight: 950;
}
.tc0, .tc1{
  padding: 12px 14px;
  font-size: 13px;
}
.tc0{ color: rgba(235,242,255,.86); }
.tc1{ color: rgba(235,242,255,.72); }

.faqQ{
  width:100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--txt);
  padding: 12px 12px;
  border-radius: var(--r20);
  cursor:pointer;
  margin-top: 10px;
  font-weight: 950;
}
.faqQ i{
  width: 28px; height: 28px;
  border-radius: 10px;
  display:inline-flex; align-items:center; justify-content:center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.15);
  font-style: normal;
  color: rgba(235,242,255,.82);
}
.faqA{
  display:none;
  margin: 8px 8px 0;
  padding: 10px 12px;
  color: var(--muted);
  border-left: 2px solid rgba(255,214,120,.35);
  background: rgba(255,255,255,.02);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}
.faqQ.open + .faqA{ display:block; }

.foot{
  margin-top: 18px;
  text-align:center;
}
.footLine{
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 18px 0 12px;
}
.footText{
  color: rgba(235,242,255,.55);
  font-size: 12px;
}