:root{
  --bg: #0b0b0e;
  --bg2: #0f0f14;
  --elev: rgba(255,255,255,.06);
  --elev2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.66);
  --muted2: rgba(255,255,255,.48);
  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.14);

  --accent: #e50914;
  --accent2: #f40612;
  --warm: #ff7823;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --shadow: 0 18px 60px rgba(0,0,0,.50);
  --shadow2: 0 12px 38px rgba(0,0,0,.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(229,9,20,.25), transparent 60%),
              radial-gradient(1000px 700px at 100% 10%, rgba(255,120,35,.18), transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, #07070a 100%);
  color: var(--text);
  overflow-x:hidden;
  background-attachment: fixed;
background-repeat: no-repeat;

}

a{ color:inherit; text-decoration:none; }
p{ color: var(--muted); line-height:1.65; }
ul{ color: var(--muted); line-height:1.7; }

.bg{
  position:fixed; inset:0;
  pointer-events:none;
  z-index:-1;
}
.bg__glow{
  position:absolute; inset:-200px;
  background: radial-gradient(700px 420px at 30% 20%, rgba(229,9,20,.18), transparent 65%),
              radial-gradient(700px 420px at 78% 22%, rgba(255,120,35,.14), transparent 65%),
              radial-gradient(900px 700px at 50% 85%, rgba(229,9,20,.10), transparent 70%);
  filter: blur(6px);
  opacity:.95;
}
.bg__noise{
  position:absolute;
  inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");

  /* ВОТ ЭТО ВАЖНО */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  mix-blend-mode: overlay;
  opacity: .22;
}

.container{
  width:min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 80px;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
  background: rgba(5,5,8,.50);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display:flex;
  align-items:center;
  gap:14px;
  padding: 12px 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand__logo{
  width:42px; height:42px;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.10);
}
.brand__name{
  font-weight: 700;
  letter-spacing: .2px;
}
.brand__sub{
  color: var(--muted2);
  font-size: 12.5px;
  margin-top: 2px;
}

.topnav{
  display:flex;
  gap:10px;
  flex:1;
  overflow:auto;
  padding: 2px 0;
}
.topnav__link{
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: .18s ease;
}
.topnav__link:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.topnav__link.is-active{
  color: var(--text);
  border-color: rgba(229,9,20,.35);
  background: linear-gradient(180deg, rgba(229,9,20,.18), rgba(255,255,255,.03));
}

.lang{
  display:flex;
  gap:8px;
}
.lang__btn{
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .6px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  background: rgba(255,255,255,.02);
  transition:.18s ease;
}
.lang__btn:hover{
  border-color: rgba(255,255,255,.18);
  color: var(--text);
}
.lang__btn.is-active{
  color: #fff;
  border-color: rgba(229,9,20,.45);
  background: rgba(229,9,20,.12);
}

.hero{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items:stretch;
  padding-top: 18px;
}
@media (max-width: 920px){
  .hero{ grid-template-columns: 1fr; }
  .brand{ min-width: unset; }
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.80);
  font-size: 12.5px;
}

.hero__title{
  margin: 14px 0 8px;
  font-size: clamp(28px, 4.3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}
.hero__desc{
  margin: 0 0 18px;
  max-width: 56ch;
}

.hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top: 14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 13.5px;
  transition: .18s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.20);
}
.btn--primary{
  border-color: rgba(229,9,20,.45);
  background: linear-gradient(180deg, rgba(229,9,20,.25), rgba(255,255,255,.02));
}
.btn--primary:hover{
  border-color: rgba(229,9,20,.65);
}
.btn--ghost{
  border-color: rgba(255,120,35,.35);
  background: linear-gradient(180deg, rgba(255,120,35,.14), rgba(255,255,255,.02));
}
.btn--ghost:hover{
  border-color: rgba(255,120,35,.55);
}
.btn--small{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  box-shadow: none;
}

.hint{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 18px;
  color: var(--muted2);
  font-size: 13px;
}
.hint__dot{
  width:10px;height:10px;
  border-radius: 99px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(229,9,20,.75));
  box-shadow: 0 0 0 4px rgba(229,9,20,.12);
}

.card{
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card--big{
  padding: 18px;
}
.card__head{
  display:flex;
  gap:12px;
  align-items:center;
  padding: 6px 6px 12px;
}
.card__icon{
  width:44px;height:44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(229,9,20,.12);
  border: 1px solid rgba(229,9,20,.25);
}
.card__title{
  font-weight: 800;
  letter-spacing:.2px;
}
.card__sub{
  font-size: 12.5px;
  color: var(--muted2);
  margin-top: 2px;
}
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
}

.tile{
  border-radius: 16px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  transition: .18s ease;
}
.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}
.tile__kicker{
  color: var(--muted2);
  font-size: 12px;
}
.tile__name{
  margin-top: 6px;
  font-weight: 800;
}
.tile__meta{
  margin-top: 8px;
  color: rgba(255,255,255,.55);
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.card__foot{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mini{
  display:flex;
  align-items:center;
  gap:12px;
}
.mini__logo{
  width:46px;height:46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
}
.mini__name{
  font-weight: 800;
}
.mini__sub{
  color: var(--muted2);
  font-size: 12.5px;
  margin-top: 2px;
}

.doc{
  margin-top: 18px;
}
.doc__top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.back{
  color: var(--muted);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.back:hover{ color: var(--text); border-color: rgba(255,255,255,.18); }

.doc__linkwrap{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.doc__linklabel{
  color: var(--muted2);
  font-size: 12px;
  margin-right: 6px;
}
.doc__link{
  color: rgba(255,255,255,.78);
  font-size: 12.2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  max-width: min(56vw, 520px);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper{
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(15,15,20,.72), rgba(10,10,14,.82));
  box-shadow: var(--shadow2);
  padding: 26px 22px;
}
.paper h1{
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  font-size: clamp(24px, 3.6vw, 34px);
}
.paper h2{
  margin: 22px 0 10px;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.paper p{ margin: 10px 0; }
.paper ul{ margin: 10px 0 10px 18px; }

.docmeta{
  display:flex;
  gap:10px;
  align-items:center;
  margin: 8px 0 18px;
  flex-wrap: wrap;
  color: var(--muted2);
  font-size: 13px;
}
.docmeta__date{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.docmeta__sep{ opacity:.6; }

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.82);
  padding: 6px 10px;
  font-weight: 700;
  font-size: 12.5px;
  cursor:pointer;
  transition: .18s ease;
}
.chip:hover{
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}
.chip--copy.copied{
  border-color: rgba(229,9,20,.55);
  background: rgba(229,9,20,.12);
}
.chip__icon{ opacity:.85; }

.footer{
  padding: 28px 16px 42px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(5,5,8,.30);
}
.footer__inner{
  width:min(1100px, calc(100% - 32px));
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}
.footer__left{ display:flex; align-items:center; gap:10px; }
.dot{
  width:10px;height:10px;border-radius:99px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,120,35,.80));
  box-shadow: 0 0 0 4px rgba(255,120,35,.12);
}
.footer__right{ display:flex; align-items:center; gap:8px; }
.footer__link{ color: rgba(255,255,255,.70); }
.footer__link:hover{ color: #fff; }
.sep{ opacity:.45; }
