/* ==========================================================================
   StreamRotator designs (sweetwhitepanties.net, bestamateurpics.com):
   общий каркас. Тема дизайна (файл <site>-<name>.css) задаёт токены,
   шрифты и характер. Здесь - сетка 320px...4K, ячейки ротатора, рекламные
   места, списки описаний, пагинация, топлист, состояния (поиск, пусто).

   Тумбы ротатора фиксированного размера: pics 180x230, mov 320x240.
   Колонка сетки около 180px, чтобы тумбы не растягивались (не мылились).
   ========================================================================== */

:root {
  --bg: #111215;
  --surface: #1a1c21;
  --surface-2: #23262c;
  --fg: #eceef2;
  --muted: #9aa0ad;
  --line: #2c2f37;
  --accent: #e5484d;
  --accent-fg: #fff;
  --link: var(--fg);
  --skel: #22252b;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 12px;
  --r-img: 8px;
  --wrap: 1680px;
  --col: 172px;
  --col-mov: 250px;
  --gap: 12px;
  --pad: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg);
  font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--accent); color: var(--accent-fg);
  padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- шапка ---------- */
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.hdr__in { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.logo {
  font: 800 20px/1.05 var(--font-display); letter-spacing: -.02em; color: var(--fg);
  text-decoration: none; white-space: nowrap;
}
.logo b { color: var(--accent); font-weight: inherit; }
.search { display: flex; flex: 1 1 auto; min-width: 0; max-width: 520px; margin-left: auto; }
.search input {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 14px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: none; border-color: var(--accent); }
.search button {
  height: 40px; padding: 0 16px; border: 0; font-weight: 700; background: var(--accent); color: var(--accent-fg);
  border-radius: 0 8px 8px 0; transition: transform .15s var(--ease), filter .15s;
}
.search button:hover { filter: brightness(1.08); }
.search button:active { transform: translateY(1px); }
.burger {
  display: none; width: 42px; height: 40px; flex: 0 0 auto; padding: 0; background: transparent;
  border: 1px solid var(--line); border-radius: 8px;
}
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; }
.nav { border-top: 1px solid var(--line); }
.nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
  display: block; padding: 11px 12px; color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current] { color: var(--fg); }
.nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.hdr__ad { padding-top: 12px; }

@media (max-width: 720px) {
  .hdr__in { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .burger { display: block; margin-left: auto; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .nav { display: none; }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; }
}

/* ---------- заголовок страницы, поиск, пусто ---------- */
.main { padding-top: 20px; padding-bottom: 40px; } /* боковые отступы - от .wrap */
.head { margin: 0 0 18px; max-width: 980px; }
.head h1 { font-size: clamp(24px, 2.4vw + 12px, 40px); letter-spacing: -.025em; }
.head__sub { color: var(--muted); margin-top: 8px; max-width: 70ch; }
.head__q {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 99px;
  background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 14px;
}
.is-search .head h1 { font-size: clamp(18px, 1vw + 14px, 24px); color: var(--muted); }
.is-search .head__sub { display: none; }

.empty { text-align: center; padding: 30px 0 20px; max-width: 620px; margin: 0 auto 10px; }
.empty__code { font: 800 clamp(64px, 12vw, 128px)/1 var(--font-display); color: var(--accent); letter-spacing: -.04em; }
.empty h1, .empty h2 { font-size: 26px; margin: 8px 0 10px; }
.empty p { color: var(--muted); }
.empty .btn { margin-top: 18px; }
.search--big { margin: 22px auto 0; max-width: 520px; }

/* ---------- сетка ячеек ротатора ---------- */
.grid {
  display: grid; gap: var(--gap); margin: 0 0 var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(var(--col), 1fr));
  grid-auto-flow: dense; align-items: start;
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.c { min-width: 0; position: relative; }
.c__a { display: block; color: inherit; text-decoration: none; }
.c__f {
  display: block; aspect-ratio: 180 / 230; overflow: hidden; background: var(--skel); border-radius: var(--r-img);
}
.c__f img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease), filter .3s; }
.c__a:hover .c__f img { transform: scale(1.035); }
.c__t {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.3;
}
.c__t:empty { display: none; }
.c__m { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.c__n { display: none; }
.c__a:visited .c__t { opacity: .7; }

/* видео 320x240 */
.grid--mov { grid-template-columns: repeat(auto-fill, minmax(var(--col-mov), 1fr)); }
@media (max-width: 600px) { .grid--mov { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.c--mov .c__f { aspect-ratio: 4 / 3; }

/* реклама внутри сетки - полоса на всю ширину */
.c--ad { grid-column: 1 / -1; }
.c--ad .ad { margin: 0 auto; }

/* крупные ячейки без растяжения тумбы: ячейка на 2 колонки, тумба в
   натуральную ширину слева, текст справа (Daydream, Tabloid) */
@media (min-width: 601px) {
  .grid--feature > .c:not(.c--ad):nth-child(13n + 2) { grid-column: span 2; }
  .grid--feature > .c:not(.c--ad):nth-child(13n + 2) .c__a {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto;
    column-gap: var(--gap);
  }
  .grid--feature > .c:not(.c--ad):nth-child(13n + 2) .c__f { grid-column: 1; grid-row: 1 / 4; }
  .grid--feature > .c:not(.c--ad):nth-child(13n + 2) .c__t {
    grid-column: 2; grid-row: 2; -webkit-line-clamp: 5; font-size: 18px; margin: 0 0 6px;
  }
  .grid--feature > .c:not(.c--ad):nth-child(13n + 2) .c__m { grid-column: 2; grid-row: 3; }
  /* призыв в широкой карточке: у многих галерей нет описания */
  .grid--feature > .c:not(.c--ad):nth-child(13n + 2) .c__a::after {
    content: "Open gallery \2192"; grid-column: 2; grid-row: 4; margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--accent);
  }
}

/* скрываем блоки, которым стрим ничего не отдал (поиск, последние страницы) */
.grid:not(:has(.c:not(.c--ad))),
.block--desc:not(:has(.d)),
.block--mov:not(:has(.c--mov)),
.pager:not(:has(li)) { display: none; }

/* ---------- рекламные места ---------- */
.ad { position: relative; display: flex; justify-content: center; max-width: 100%; margin: 12px auto; }
.ad--banner { width: 100%; height: 90px; margin: 0 auto; overflow: hidden; display: block; }
.ad__fit { position: relative; width: 728px; height: 90px; margin: 0 auto; transform-origin: 50% 0; }
.ad--native5 { width: 100%; min-height: 233px; overflow-x: auto; }
.ad--native3 { width: 100%; min-height: 330px; overflow-x: auto; }
.ad--stub {
  flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: var(--r-img);
  border: 1px dashed color-mix(in srgb, var(--muted) 55%, transparent); color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--muted) 8%, transparent) 10px 20px);
  font: 600 12px/1.4 var(--font-mono); text-align: center;
}
.ad--stub.ad--banner { display: flex; width: min(728px, 100%); }
.ad__badge {
  position: absolute; top: 6px; left: 6px; font-size: 10px; letter-spacing: .06em; padding: 1px 6px;
  border-radius: 4px; background: var(--fg); color: var(--bg);
}
.ad__size { color: var(--fg); font-size: 13px; }

/* ---------- блоки ---------- */
.block { margin-top: 34px; }
.block--first { margin-top: 0; }
.block > h2 { font-size: 21px; letter-spacing: -.015em; margin-bottom: 14px; }
.block--mov .ad { margin: 0 auto 14px; }

/* ---------- списки описаний (ротатор descs) ---------- */
.d { min-width: 0; }
.d a { color: var(--fg); text-decoration: none; }
.d a:hover { color: var(--accent); }
.d a:visited { color: var(--muted); }
.d__n, .d__m { display: none; }
.dl--cols { columns: 4 250px; column-gap: 28px; }
.dl--cols .d { break-inside: avoid; border-bottom: 1px solid var(--line); }
.dl--cols .d a { display: block; padding: 7px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.dl--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dl--chips .d a {
  display: block; max-width: 34ch; padding: 6px 13px; border-radius: 99px; background: var(--surface);
  border: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dl--chips .d a:hover { border-color: var(--accent); color: var(--fg); }
.dl--num { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 28px; }
.dl--num .d { border-bottom: 1px solid var(--line); }
.dl--num .d a { display: flex; gap: 12px; padding: 8px 0; font-size: 14px; white-space: nowrap; overflow: hidden; }
.dl--num .d__n {
  display: inline-block; flex: 0 0 3ch; font: 500 12px/1.9 var(--font-mono); color: var(--muted); font-style: normal;
}
.dl--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.dl--cards .d { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-img); }
.dl--cards .d a { display: block; padding: 12px 14px 26px; font-weight: 600; font-size: 14px; line-height: 1.35; }
.dl--cards .d__m {
  display: block; position: absolute; left: 14px; bottom: 7px; font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
}
.dl--side .d a {
  display: block; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- две колонки: список слева, сетка справа ---------- */
.split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.split__side .block { margin-top: 0; }
@media (min-width: 1000px) {
  .split { grid-template-columns: 270px minmax(0, 1fr); align-items: start; }
  .split__side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
}
@media (max-width: 999px) {
  .split__side { order: 2; }
  .split__side .dl--side { columns: 2 220px; column-gap: 24px; }
}

/* ---------- пагинация ---------- */
.pager { margin: 26px 0 6px; }
.pager ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pg {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px; color: var(--fg); text-decoration: none; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
a.pg:hover { border-color: var(--fg); }
.pager .pg.pg--cur { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

/* ---------- топлист и ключевые ссылки ---------- */
.top { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; counter-reset: top; }
.top li { counter-increment: top; }
.top a {
  display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: var(--r-img);
  background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 600;
}
.top a::before { content: counter(top); font: 600 12px var(--font-mono); color: var(--muted); }
.top li:nth-child(-n + 3) a { font-size: 17px; }
.top a:hover { border-color: var(--accent); }
.top__join { margin-top: 12px; }
.top__join a { color: var(--accent); font-weight: 700; text-decoration: none; }
.kw { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.kw a { color: var(--muted); text-decoration: none; }
.kw a:hover { color: var(--fg); text-decoration: underline; }

/* ---------- старые страницы SWP ---------- */
.gl { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.gl a {
  display: block; height: 100%; padding: 14px 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: var(--fg);
}
.gl b { display: block; font-size: 13px; color: var(--accent); }
.gl span { display: block; margin-top: 4px; font-weight: 600; }
.gl a:hover { border-color: var(--accent); }
.lead { color: var(--muted); max-width: 64ch; margin-bottom: 14px; }
.links--big { font-size: 16px; gap: 10px 22px; }

/* ---------- кнопки, документы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px;
  border-radius: 8px; background: var(--accent); color: var(--accent-fg); font-weight: 700; text-decoration: none;
  white-space: nowrap; transition: transform .15s var(--ease), filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(.99); }
.doc { max-width: 72ch; }
.doc h1 { font-size: clamp(22px, 2vw + 12px, 32px); letter-spacing: -.02em; }
.doc h2 { font-size: 18px; margin: 26px 0 8px; }
.doc p { margin: 0 0 10px; }
.doc__lead { color: var(--muted); margin-top: 10px !important; }
.doc__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.doc__nav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: 14px; }
.todo { background: color-mix(in srgb, var(--accent) 18%, transparent); padding: 0 4px; border-radius: 3px; }

/* ---------- подвал ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--surface); padding: 24px 0 30px; margin-top: 30px; }
.ftr h2 { font: 700 13px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.links a { color: var(--fg); text-decoration: none; }
.links a:hover { text-decoration: underline; }
.ftr__legal { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.ftr__legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.ftr__legal a { color: var(--muted); text-decoration: none; }
.ftr__legal a:hover { color: var(--fg); }
.ftr__note { margin-top: 14px; font-size: 12.5px; color: var(--muted); max-width: 90ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- homemadearchive.net: тумбы 180x240 (bigpics) и 120x150 (pics) ---------- */
.c--bp .c__f { aspect-ratio: 3 / 4; }
.c--sm .c__f { aspect-ratio: 4 / 5; }
.grid--bp { --col: 172px; }
.grid--sm { grid-template-columns: repeat(auto-fill, minmax(var(--col-sm, 118px), 1fr)); }
@media (max-width: 600px) { .grid--sm { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* топ SmartCJ (top9.html: div > span > a), подключается тэгом #INCLUDE_ */
.top9 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; counter-reset: top; }
.top9 > div { counter-increment: top; text-align: left !important; }
.top9 a {
  display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: var(--r-img);
  background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 600;
}
.top9 a::before { content: counter(top); font: 600 12px var(--font-mono); color: var(--muted); }
.top9 > div:nth-child(-n + 3) a { font-size: 17px; }
.top9 a:hover { border-color: var(--accent); }

/* ---------- up-skirt-pics.com: топ SmartCJ itop.html (h3 + таблица с картинками 160x120) ---------- */
.itop > h3 { display: none; }
.itop table, .itop tbody, .itop tr { display: contents; }
.itop { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--gap); }
.itop td { display: block; min-width: 0; }
.itop a { display: block; color: var(--fg); text-decoration: none; font-size: 13.5px; line-height: 1.3; }
.itop img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); background: var(--skel); margin-bottom: 6px; }
.itop br { display: none; }
.itop a:hover { color: var(--accent); }
@media (max-width: 600px) { .itop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* зона 1736276: сейчас ExoClick в неё ничего не отдаёт - место не резервируем */
.ad--slot { margin: 4px auto; }
.ad--slot ins { display: block; }

/* ---------- glamourupskirt.com: тумбы 160x214, топ SmartCJ top.html (таблица), промо-баннер ---------- */
.c--gl .c__f { aspect-ratio: 160 / 214; }
.toph > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; text-align: left !important; }
.toph > div > b:first-child { display: none; }
.toph table, .toph tbody, .toph tr { display: contents; }
.toph td { display: block; text-align: left !important; }
.toph font { font-size: inherit !important; }
.toph a {
  display: block; height: 100%; padding: 10px 14px; border-radius: var(--r-img); background: var(--surface);
  border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 600;
}
.toph a:hover { border-color: var(--accent); }
.toph td:nth-child(1) a { font-size: 16px; }
.promo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 26px 0; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); text-decoration: none;
}
.promo img { width: 700px; max-width: 100%; height: auto; border-radius: var(--r-img); }
.promo__t { flex: 1 1 260px; color: var(--muted); font-size: 14px; }
.promo__t b { display: block; color: var(--fg); font-size: 17px; margin-bottom: 4px; }
.promo:hover b { color: var(--accent); }

/* ---------- spy-cam-vids.com: категории, плитки категорий, архивы, ключевые блоки ---------- */
.catbar { margin: 0 0 20px; }
.catbar ul { display: flex; flex-wrap: wrap; gap: 6px; }
.catbar a {
  display: block; padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); text-decoration: none; font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.catbar a:hover { border-color: var(--accent); }
.catbar li a[aria-current] { /* li - чтобы темы с фоном у .catbar a не перебивали */ background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
@media (max-width: 600px) {
  .catbar ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
  .catbar ul::-webkit-scrollbar { display: none; }
}
.cats { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 600px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cat { min-width: 0; }
.cat__a { position: relative; display: block; color: #fff; text-decoration: none; border-radius: var(--r-img); overflow: hidden; background: var(--skel); }
.cat__f { display: block; aspect-ratio: 4 / 3; }
.cat__f img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.cat__a:hover .cat__f img { transform: scale(1.04); }
.cat__a::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); pointer-events: none; }
.cat__t { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font: 700 16px/1.2 var(--font-display); }
.cat__m { display: none; }
.block--cats:not(:has(.cat)) { display: none; }
.more { margin-top: 4px; }
.more a { color: var(--accent); font-weight: 700; text-decoration: none; }
.more a::after { content: " \2192"; }
.arch { display: grid; gap: 18px; }
.arch__row h2 { font-size: 16px; margin: 0 0 8px; }
.arch .pager { margin: 0; }
.arch .pager ul { justify-content: flex-start; }
.arch .pg { min-width: 40px; height: 38px; padding: 0 10px; }
@media (min-width: 900px) { .arch { grid-template-columns: 1fr 1fr; } }
.kw--p { display: block; }
.kw--p li { margin-bottom: 8px; line-height: 1.55; }
.s-scv .promo img { width: auto; }
.s-scv .promo:not(.promo--wide) img { max-width: min(100%, 300px); }
.trap { display: none; }
.webcam { min-height: 60vh; }

/* ==========================================================================
   SCV 1: NIGHT VISION
   Прибор ночного видения: почти чёрный с зелёным подтоном (старый сайт был
   зелёным #495B49), единственный акцент - люминофорный зелёный. Manrope.
   Тумбы с тонкой зелёной рамкой-видоискателем при наведении. Радиус 10px.
   ========================================================================== */
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --bg: #070b08; --surface: #0e1510; --surface-2: #152018; --fg: #e6efe8; --muted: #8a9a8e;
  --line: #1b271e; --accent: #5ee38a; --accent-fg: #06110a; --skel: #111a13;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px; --r-img: 10px; --col-mov: 236px; --gap: 14px;
}
.d-nightvision .hdr { background: rgba(7, 11, 8, .94); border-bottom-color: var(--line); }
.d-nightvision .logo { font-weight: 800; letter-spacing: -.04em; }
.d-nightvision .logo b { color: var(--accent); }
.d-nightvision .search input { background: var(--surface); }
.d-nightvision .head h1 { font-weight: 800; letter-spacing: -.04em; }
.d-nightvision .head h1::before {
  content: ""; display: inline-block; width: .42em; height: .42em; margin: 0 .3em .12em 0; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.d-nightvision .c__f { position: relative; }
.d-nightvision .c__f::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none; opacity: 0; transition: opacity .2s var(--ease);
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 14px 2px, linear-gradient(var(--accent), var(--accent)) 0 0 / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) 100% 0 / 14px 2px, linear-gradient(var(--accent), var(--accent)) 100% 0 / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) 0 100% / 14px 2px, linear-gradient(var(--accent), var(--accent)) 0 100% / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 14px 2px, linear-gradient(var(--accent), var(--accent)) 100% 100% / 2px 14px;
  background-repeat: no-repeat;
}
.d-nightvision .c__a:hover .c__f::after { opacity: 1; }
.d-nightvision .c__a:hover .c__f img { transform: none; filter: saturate(.85) brightness(1.08); }
.d-nightvision .c__t { font-weight: 700; }
.d-nightvision .c__m { color: var(--accent); font-weight: 600; }

.d-nightvision .block > h2 { font-weight: 800; letter-spacing: -.025em; }
.d-nightvision .block--bp, .d-nightvision .block--mov { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.d-nightvision .cat__a { outline: 1px solid var(--line); }
.d-nightvision .cat__a:hover { outline-color: var(--accent); }
.d-nightvision .cat__t::before { content: "\25CF  "; color: var(--accent); font-size: 11px; vertical-align: 2px; }
.d-nightvision .catbar a { background: transparent; }
.d-nightvision .pg { background: var(--surface); }
.d-nightvision .ftr { background: #050806; }
