:root{
  --bg:#0c0c0f; --fg:#f2f2f2; --muted:#b8b8c3;
  --card:#15151b; --accent:#ff7bd8; --accent2:#7bd8ff;
  --gap:12px; --radius:10px; --border:#24242c;
  --strip-h:140px; --speed:24s;
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
img{max-width:100%;display:block}

/* Шапка */
.site-header{
  position:sticky; top:0; z-index:10;
  padding:10px 12px; border-bottom:1px solid var(--border);
  background:rgba(12,12,15,.65); backdrop-filter:saturate(1.2) blur(8px);
  display:flex; flex-direction:column; align-items:center; gap:6px;
}
.center-header{padding:0}
.brand{display:inline-flex; align-items:center; gap:8px; text-decoration:none}
.brand-logo{height:100px; width:auto}
.site-header h1{font-size:19px; margin:0; color:var(--accent); text-align:center}
.nav{display:flex; gap:12px; flex-wrap:wrap; justify-content:center}
.nav a{color:var(--accent2); text-decoration:none; font-size:15px}
.nav a:hover{text-decoration:underline}

/* Разделы и карточки */
.panel{padding:16px; border-bottom:1px dashed var(--border)}
.panel h2{margin:0 0 8px}
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:var(--gap); margin-top:10px}
.card{background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:10px;
  transition:transform .15s ease, box-shadow .15s ease}
.card:hover{transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.35)}
.card img{width:100%; height:200px; object-fit:contain; background:#0f0f14; border-radius:6px}
.card h3{margin:8px 0 0; font-size:14px}
.price{color:var(--accent); font-weight:700; margin:.35rem 0 0}

/* Подвал */
.site-footer{padding:16px; color:var(--muted)}

/* Вертикальная лента слева */
.vertical-strip-container{
  position:fixed; left:0; top:0; z-index:11;
  width:210px; height:100vh;
  display:flex; flex-direction:column; align-items:center;
  background:var(--card); border-right:1px solid var(--border);
  box-shadow:6px 0 32px rgba(0,0,0,.16);
}
.vertical-title{ text-align:center; font-size:18px; padding:10px 0 6px; letter-spacing:2px; color:var(--accent); font-weight:700 }
.scroll-vertical-strip{ flex:1; width:100%; overflow:hidden; display:flex }
.vstrip{ display:flex; flex-direction:column; gap:16px; margin:0; padding:10px 0; list-style:none; transition:transform .2s linear }
.vitem{ display:flex; flex-direction:column; align-items:center }
.vitem img{ width:96px; height:96px; border-radius:8px; object-fit:cover; background:#0f0f14; box-shadow:0 2px 12px rgba(0,0,0,.22) }
.vitem span{ margin-top:6px; color:var(--muted); font-size:15px }

/* Отступ под ленту слева */
body{ padding-left:210px }

/* Нижняя бегущая лента с квадратными гифками */
.links-strip-panel{
  margin-top:20px; border-top:1px solid var(--border);
  background:var(--card); padding:10px 0;
  box-shadow:0 -6px 20px rgba(0,0,0,.2) inset;
}
.links-strip-title{
  text-align:center; color:var(--accent); font-weight:700; margin-bottom:6px; font-size:15px;
}
.scroll-links-strip{ overflow:hidden; }
.links-strip{
  display:flex; align-items:center; gap:18px; list-style:none; margin:0; padding:10px;
  will-change:transform; transition:transform .2s linear;
}
.links-strip.images-mode .link-item{min-width:120px;min-height:120px;}
.links-strip.images-mode img{
  width:120px; height:120px; object-fit:cover; border-radius:12px;
  background:#0f0f14; box-shadow:0 2px 12px rgba(0,0,0,.16)
}
.links-strip.images-mode a{display:inline-block;line-height:0}

/* Адаптив */
@media (max-width:900px){
  .vertical-strip-container{ display:none }
  body{ padding-left:0 }
}
@media (max-width:640px){
  .brand-logo{height:34px}
  .nav a{font-size:14px}
  .card img{height:160px}
  :root{--speed:30s}
}
