/* Проба 01.10.2026: первый экран по мотивам lachuga.shop + блок «Заходите в Telegram» с проводом.
   Палитра — токены из style.css; своё только цвет слова для слайда поддержки (бирюза Ирис). */

.x3d {
  /* 02.10.2026 (Стас: «границы героя и контента по краям отличаются»): поля героя как у .wrap — на экранах шире
     --wrap контент центрируется, и текст, слайдер и выноски героя встают по тем же краям */
  --edge: calc(max(0px, (100% - var(--wrap)) / 2) + var(--gutter));
  --word: var(--accent);
  --wire: color-mix(in srgb, var(--text) 55%, transparent);
  --hot: var(--accent);
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(640px, calc(100svh - var(--header-h)), 940px);
  background:
    radial-gradient(60% 55% at 50% 62%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    var(--bg);
}
.x3d[data-slide="support"] { --word: #2dd4bf; --hot: #2dd4bf; }
/* 02.10.2026 (Стас): NEKOAGENT оранжевым и на светлой теме; фон главной на светлой — тёплый светло-серый, как у
   Лачуги, без свечения за фигурой (на белом оно читалось светлым пятном) */
[data-theme="light"] .x3d[data-slide="support"] { --word: #14b8a6; --hot: #0d9488; }
[data-theme="light"]:has(.x3d) { --bg: #edebe7; --bg-elev: #f3f2ef; --surface: #f7f6f3; --surface-2: #efede9; --border: #dcd9d3; --border-strong: #c9c5be; }
[data-theme="light"] .x3d { background: var(--bg); }

/* ---- слово во всю ширину */
/* ---- бегущая строка над словом (Стас 02.10.2026, как у Лачуги) */
.x3d__ticker {
  position: absolute; left: 0; right: 0; top: 14px; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.x3d__track { display: flex; align-items: center; width: max-content; animation: x3d-ticker 60s linear infinite; }
.x3d__track span { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.x3d__track i { width: 5px; height: 5px; margin: 0 clamp(22px, 2.6vw, 40px); border-radius: 50%; background: var(--hot); flex: 0 0 auto; transition: background .5s; }
@keyframes x3d-ticker { to { transform: translateX(-50%); } }

/* ---- слово во всю ширину */
.x3d__word {
  position: absolute; inset: 46px max(0px, (100% - var(--wrap)) / 2) auto; z-index: 0;
  display: flex; justify-content: center; pointer-events: none;
}
.x3d__letters {
  display: inline-flex; white-space: nowrap;
  font-weight: 900; letter-spacing: -.06em; line-height: .82;
  font-size: var(--word-size, 18vw); color: var(--word);
  transition: color .5s ease;
  transform-origin: 50% 0;
}
.x3d__letters span { display: inline-block; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.x3d__letters.is-out span { transform: translateY(-14%); opacity: 0; }
.x3d__letters.is-in span { transform: translateY(14%); opacity: 0; transition: none; }

/* ---- фигурка */
.x3d__scene {
  position: absolute; left: 50%; bottom: 0; z-index: 1;
  /* 104%: крупнее (Стас 01.10.2026: «стройные, мелко смотрятся»), макушка доходит до шапки, ступни целиком */
  height: 104%; aspect-ratio: 466 / 1100; transform: translateX(-50%);
  pointer-events: none;
}
.x3d__tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.x3d__bob { position: absolute; inset: 0; animation: x3d-bob 6s ease-in-out infinite; }
.x3d__fig {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: translateY(10px) scale(.985);
  transition: opacity .55s ease, transform .7s cubic-bezier(.2,.8,.2,1);
  /* 02.10.2026 (Стас): вокруг персонажей небольшая тень — мягкий ореол по контуру + отброшенная вниз */
  filter: drop-shadow(0 0 14px rgba(0,0,0,.55)) drop-shadow(0 30px 40px rgba(0,0,0,.45));
}
[data-theme="light"] .x3d__fig { filter: drop-shadow(0 0 16px rgba(60,45,30,.22)) drop-shadow(0 24px 30px rgba(40,30,20,.20)); }
.x3d__fig.is-on { opacity: 1; transform: none; }
/* облёт Нэко за мышью (hero3d.js): канвас с кадрами ролика стоит на месте картинки; left/width ставит скрипт —
   кадр шире сцены, чтобы шар и локти на боковых ракурсах не срезало. Пока листы не пришли, видна картинка. */
.x3d__spin {
  position: absolute; top: 0; height: 100%; pointer-events: none; opacity: 0;
  transition: opacity .55s ease;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.45));
}
[data-theme="light"] .x3d__spin { filter: drop-shadow(0 26px 34px rgba(0,0,0,.16)); }
.x3d.is-spin .x3d__fig[data-fig="neko"] { opacity: 0; transition: none; }
.x3d.is-spin .x3d__fig[data-fig="neko"].is-on ~ .x3d__spin { opacity: 1; }
.x3d__wires .is-off { opacity: 0; transition: opacity .2s ease; }
/* Нэко сама крутится (hero3d-video.js): канвас с роликом на месте картинки, шире рамки; left/width ставит скрипт.
   Картинка гаснет, когда отрисован первый кадр ролика. */
.x3d__vid {
  position: absolute; top: 0; height: 100%; pointer-events: none; opacity: 0;
  transition: opacity .6s ease;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.45));
}
[data-theme="light"] .x3d__vid { filter: drop-shadow(0 26px 34px rgba(0,0,0,.16)); }
.x3d.is-vid .x3d__fig[data-fig="neko"] { opacity: 0; transition: opacity .6s ease; }
.x3d.is-vid .x3d__fig[data-fig="neko"].is-on ~ .x3d__vid { opacity: 1; }
/* Нэко можно крутить мышью/пальцем; горизонтальный жест на герое — поворот, вертикальный — прокрутка страницы */
.x3d.is-vid { touch-action: pan-y; }
.x3d.is-grab { cursor: grab; }
.x3d.is-grabbing { cursor: grabbing; user-select: none; }
/* провода от карточек к фигурке: 01.10 убирали («чёрточки мешаются»), 02.10 Стас вернул — как у Лачуги */
/* 3D-модель Нэко (hero3d-model.js): канвас шире рамки картинки (left/width ставит скрипт), картинка гаснет,
   когда модель загрузилась. Ядро над ладонью — отдельный слой поверх сцены; когда ладонь за спиной — под сценой. */
.x3d__model {
  position: absolute; top: 0; height: 100%; pointer-events: none; opacity: 0;
  transition: opacity .55s ease;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.45));
}
.x3d.is-model .x3d__fig[data-fig="neko"] { opacity: 0; transition: none; }
.x3d.is-model .x3d__fig[data-fig="neko"].is-on ~ .x3d__model { opacity: 1; }
.x3d__core {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0;
  transition: opacity .4s ease; will-change: transform;
  filter: drop-shadow(0 0 18px rgba(255,140,40,.45));
}
.x3d.is-model[data-slide="neko"] .x3d__core { opacity: 1; }
.x3d__core.is-behind { z-index: 0; }
/* у Ирис волосы у самого края картинки (у Нэко сверху 5.5% воздуха) — чуть меньше и по низу, чтобы макушку не срезала шапка */
.x3d__fig[data-fig="iris"] { inset: auto auto 0 3.25%; width: 93.5%; height: 93.5%; }
.x3d__floor {
  position: absolute; left: 50%; bottom: -1.5%; width: 120%; height: 6%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); z-index: -1;
}
[data-theme="light"] .x3d__floor { background: radial-gradient(closest-side, rgba(40,30,20,.24), transparent); }
@keyframes x3d-bob { 50% { transform: translateY(-8px); } }

/* ---- провода к выноскам */
.x3d__wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.x3d__wires path { fill: none; stroke: var(--wire); stroke-width: 1.2; }
.x3d__wires .x3d__halo { stroke: var(--bg); stroke-width: 5; opacity: .9; }
.x3d__wires .x3d__pulse {
  stroke: var(--hot); stroke-width: 1.6; stroke-dasharray: .12 1; stroke-dashoffset: 1.12;
  animation: x3d-pulse 3.2s linear infinite;
}
.x3d__wires .x3d__pulse + .x3d__pulse { animation-delay: 1.6s; }
@keyframes x3d-pulse { to { stroke-dashoffset: 0; } }
.x3d__dot circle { fill: var(--hot); }
.x3d__dot .x3d__ping { fill: none; stroke: var(--hot); transform-origin: center; transform-box: fill-box; animation: x3d-ping 2.4s ease-out infinite; }
@keyframes x3d-ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }

/* ---- выноски */
/* 02.10.2026 (Стас): выноски ближе к середине, крупнее, граница с лёгким неоном цвета слайда */
.x3d__callout {
  --off: clamp(0px, 7vw - 40px, 150px);   /* отступ от края сверх полей: на 1440 ≈ 60px, на 2560 ≈ 140px */
  position: absolute; z-index: 3; width: min(310px, 23vw);
  display: grid; gap: 10px; padding: 18px 20px 20px;
  color: var(--text); border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--hot) 55%, var(--border-strong));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hot) 14%, transparent),
              0 0 18px color-mix(in srgb, var(--hot) 26%, transparent),
              inset 0 0 14px color-mix(in srgb, var(--hot) 8%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .5s, box-shadow .5s, transform .2s;
}
.x3d__callout:hover {
  color: var(--text); border-color: var(--hot); transform: translateY(-2px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hot) 30%, transparent), 0 0 28px color-mix(in srgb, var(--hot) 40%, transparent),
              inset 0 0 16px color-mix(in srgb, var(--hot) 10%, transparent);
}
.x3d__callout strong { font-size: 1.06rem; line-height: 1.38; font-weight: 600; }
.x3d__ck { display: flex; justify-content: space-between; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }
.x3d__ck b { color: var(--hot); font-weight: 700; }
/* 02.10.2026 (Стас, по стрелкам на скрине): левая ближе к Нэко и чуть ниже, правая левее и ниже */
.x3d__callout--l { left: calc(var(--edge) + var(--off-l, var(--off))); top: 48%; --off-l: clamp(0px, 14vw - 40px, 330px); }
.x3d__callout--r { right: calc(var(--edge) + var(--off-r, var(--off))); top: 39%; text-align: right; --off-r: clamp(0px, 12vw - 40px, 300px); }

/* на ноутбучных ширинах фигура занимает больше места — сдвиг к центру меньше, правая выноска выше слайдера */
@media (max-width: 1500px) {
  .x3d__callout--l { --off-l: clamp(0px, 7vw - 40px, 110px); top: 46%; }
  .x3d__callout--r { --off-r: clamp(0px, 7vw - 40px, 100px); top: 33%; }
}

/* ---- текст слева внизу */
.x3d__intro {
  position: absolute; z-index: 3; bottom: clamp(28px, 5vh, 52px);
  left: var(--edge); width: min(440px, 32vw);
}
.x3d__kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.x3d__kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.x3d__kicker em { font-style: normal; color: var(--accent-text); }
.x3d__intro h1 { font-size: clamp(1.35rem, 1rem + .9vw, 1.85rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; margin: 0; max-width: none; }
.x3d__fact { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 0; }
.x3d__fact b { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.x3d__fact span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }

/* ---- слайдер справа внизу */
.x3d__slider {
  position: absolute; z-index: 3; bottom: clamp(28px, 5vh, 52px);
  right: var(--edge); width: min(540px, 38vw);
  display: grid; justify-items: end; text-align: right;
}
.x3d__nav { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.x3d__thumb {
  width: 42px; height: 42px; padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer;
  background: var(--surface-2); border: 2px solid var(--border-strong); transition: border-color .2s, transform .2s;
}
.x3d__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x3d__thumb:hover { transform: translateY(-2px); }
.x3d__thumb.is-on { border-color: var(--hot); }
.x3d__count { margin-left: 12px; font-weight: 700; font-size: .86rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--text); }
.x3d__pause { margin-left: 10px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; cursor: pointer; padding: 0; }
.x3d__pause i { width: 2px; height: 12px; background: var(--text-faint); border-radius: 1px; }
.x3d__pause[aria-pressed="true"] i:first-child { width: 0; height: 0; background: none; border-left: 10px solid var(--text-faint); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.x3d__pause[aria-pressed="true"] i:last-child { display: none; }
.x3d__title { font-size: clamp(1.3rem, 1rem + .8vw, 1.7rem); letter-spacing: -.03em; line-height: 1.15; margin: 0; }
.x3d__text { margin: 10px 0 0; color: var(--text-dim); font-size: .95rem; line-height: 1.5; max-width: 38ch; }
/* смена слайда — мягкий наплыв: уходит с лёгким сдвигом вверх, новый проявляется на месте (02.10.2026) */
.x3d__title, .x3d__text, .x3d__price, .x3d__callout > * { transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.x3d.is-swap .x3d__title, .x3d.is-swap .x3d__text, .x3d.is-swap .x3d__price, .x3d.is-swap .x3d__callout > * { opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s ease; }
.x3d__buy { display: flex; gap: 12px; margin-top: 22px; flex-wrap: nowrap; justify-content: flex-end; align-items: center; }
.x3d__price {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 0 24px; height: 64px; align-items: center;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); white-space: nowrap;
}
.x3d__price b { font-size: 1.05rem; font-weight: 800; }
.x3d__price small { font-size: .8rem; color: var(--text-faint); }
/* Кнопка героя объёмная, как у Лачуги (Стас 02.10.2026: «у них кнопка как будто 3D и красиво пингует кружочком,
   у нас плоская с банальным бликом»): по кромке бежит световой ободок (конический градиент под основой),
   основа — радиальный градиент со светом слева сверху, внутренний блик сверху и тень снизу, от белого кружка
   со стрелкой раз в 3,2 с расходится кольцо, стрелка подталкивает. При наведении кнопку заливает светлым от кружка. */
.x3d__cta {
  --hot-hi: color-mix(in srgb, var(--hot) 62%, #fff);
  --hot-lo: color-mix(in srgb, var(--hot) 82%, #000);
  position: relative; isolation: isolate; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 16px; height: 64px; padding: 0 34px 0 10px;
  border-radius: 999px; background: var(--hot); color: var(--accent-ink); font-weight: 750; font-size: 1.14rem;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--hot) 32%, transparent), 0 3px 8px color-mix(in srgb, var(--hot-lo) 30%, transparent);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), background .4s;
}
.x3d__cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px; pointer-events: none; opacity: 0;
  box-shadow: 0 22px 52px color-mix(in srgb, var(--hot) 50%, transparent);
  animation: x3d-glow 3.2s ease-in-out infinite;
}
.x3d__clip { position: absolute; inset: 0; border-radius: 999px; overflow: hidden; pointer-events: none; z-index: 0; }
.x3d__rim {
  position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; margin: -310px 0 0 -310px;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 290deg, rgba(255,246,232,.95) 342deg, transparent 360deg);
  animation: x3d-rim 3.2s linear infinite;
}
.x3d__base {
  position: absolute; inset: 1.5px; border-radius: 999px;
  background: radial-gradient(130% 160% at 18% 0, var(--hot-hi) 0, var(--hot) 46%, var(--hot-lo) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.45), inset 0 -3px 6px color-mix(in srgb, var(--hot-lo) 55%, transparent);
}
.x3d__wipe {
  position: absolute; left: 34px; top: 50%; width: 600px; height: 600px; margin: -300px 0 0 -300px; border-radius: 50%;
  background: var(--surface); transform: scale(0); transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.x3d__cta-ic {
  position: relative; z-index: 1; flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--hot);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--hot-lo) 40%, transparent);
  transition: background .35s, color .35s;
}
.x3d__cta-ic svg { width: 16px; height: 16px; animation: x3d-nudge 2.2s ease-in-out infinite; }
.x3d__cta-ic i {
  position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); pointer-events: none;
  animation: x3d-ping-cta 3.2s cubic-bezier(.2,.6,.2,1) infinite;
}
[data-theme="light"] .x3d__cta-ic i { border-color: color-mix(in srgb, var(--hot) 55%, #fff); }
.x3d__cta-lbl { position: relative; z-index: 1; transition: color .35s; }
.x3d__cta:hover, .x3d__cta:focus-visible { color: var(--text); transform: translateY(-3px) scale(1.02); }
.x3d__cta:is(:hover, :focus-visible) .x3d__wipe { transform: scale(1); }
.x3d__cta:is(:hover, :focus-visible) .x3d__cta-ic { background: var(--hot); color: #fff; }
.x3d__cta:is(:hover, :focus-visible) .x3d__cta-lbl { color: var(--text); }
@keyframes x3d-rim { to { transform: rotate(360deg); } }
@keyframes x3d-glow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes x3d-ping-cta { 0%, 40% { transform: scale(1); opacity: 0; } 44% { opacity: .9; } 85%, 100% { transform: scale(2.3); opacity: 0; } }
@keyframes x3d-nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2px, -2px); } }

/* ---- узкие экраны: всё в поток, выноски и провода прячем */
@media (max-width: 1100px) {
  .x3d__callout { width: 220px; --off: 0px; padding: 14px 16px 16px; }
  .x3d__callout--l, .x3d__callout--r { --off-l: 0px; --off-r: 0px; }
  .x3d__callout strong { font-size: .9rem; }
  .x3d__intro { width: 36vw; }
  .x3d__slider { width: 44vw; }
  .x3d__buy { flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .x3d { height: auto; display: grid; grid-template-columns: minmax(0, 1fr); padding: 18px var(--gutter) 40px; gap: 0; }
  .x3d__word { position: relative; inset: auto; order: 0; width: 100%; overflow: hidden; }
  /* высота от ширины, не от svh: браузер Telegram на iOS при прокрутке прячет панель и меняет
     высоту окна — фигура росла и толкала всё ниже (Стас 02.10.2026, видео) */
  .x3d__scene { position: relative; left: auto; bottom: auto; transform: none; justify-self: center; height: min(112vw, 520px); margin-top: -9vw; order: 1; }
  .x3d__callout, .x3d__wires { display: none; }
  .x3d__ticker { position: relative; top: auto; order: -1; margin: 0 calc(-1 * var(--gutter)) 14px; }
  .x3d__slider { position: relative; inset: auto; width: auto; order: 2; justify-items: center; text-align: center; margin-top: 18px; }
  .x3d__buy { justify-content: center; }
  .x3d__intro { position: relative; inset: auto; width: auto; order: 3; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
  .x3d__text { max-width: none; }
}
@media (max-width: 420px) {
  .x3d__price { height: 50px; padding: 0 16px; }
  .x3d__buy { flex-wrap: wrap; }
  .x3d__cta { height: 54px; padding-right: 22px; font-size: 1rem; }
  .x3d__cta-ic { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .x3d__bob, .x3d__wires .x3d__pulse, .x3d__dot .x3d__ping, .x3d__track, .x3d__cta::after, .x3d__rim, .x3d__cta-ic i, .x3d__cta-ic svg { animation: none; }
  .x3d__rim { display: none; }
}

/* =================================================================== Telegram-панель с проводом */
.x3d-tg { padding-top: clamp(40px, 6vw, 80px); }
.tgp {
  --hot: var(--accent);
  position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 4vw, 52px); border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(70% 90% at 30% 110%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    #121212;
  color: #f2f2f2; border: 1px solid #262626;
}
.tgp__kicker, .tgp__label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #9a9a9a; }
.tgp__intro h2 { color: #f4f1ea; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); letter-spacing: -.04em; line-height: 1; margin: 14px 0 0; }
.tgp__intro > p { color: #b9b9b9; margin: 18px 0 0; max-width: 46ch; line-height: 1.55; }
.tgp__power { display: flex; align-items: center; gap: clamp(36px, 6vw, 80px); margin-top: 34px; }
.tgp__srcs { display: grid; gap: 10px; }
.tgp__src {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 34px 12px 16px; min-width: 230px;
  border-radius: 12px; color: #f2f2f2;
  background: color-mix(in srgb, var(--accent) 12%, #161616); border: 1px solid color-mix(in srgb, var(--accent) 40%, #262626);
  transition: border-color .2s;
}
.tgp__src:hover { color: #fff; border-color: var(--accent); }
.tgp__src b { display: grid; gap: 2px; font-size: .98rem; }
.tgp__src small { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #a5a5a5; font-weight: 600; }
.tgp__pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: tgp-pulse 2s infinite; flex: 0 0 auto; }
.tgp__src + .tgp__src .tgp__pulse { animation-delay: 1s; }
@keyframes tgp-pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tgp__term { position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 2px solid var(--accent); background: #121212; }
.tgp__outletwrap { display: grid; justify-items: center; gap: 10px; }
.tgp__outlet { width: 76px; height: 76px; border-radius: 18px; background: linear-gradient(145deg, #2a2a2a, #121212); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(0,0,0,.5); display: grid; place-items: center; }
.tgp__outlet span { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #ffb347, var(--accent) 55%, #b35600); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent); }
.tgp__status { margin: 24px 0 0; font-size: .86rem; font-weight: 700; color: #cfcfcf; }
.tgp__status span { color: var(--accent); }

.tgp__dests { display: grid; gap: 14px; align-content: center; }
.tgp__dest {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 18px 18px 18px 20px; border-radius: 16px; color: #f2f2f2;
  background: #181818; border: 1px solid #2a2a2a; transition: border-color .25s, background .25s;
}
.tgp__dest:hover { color: #fff; border-color: #3a3a3a; }
.tgp__dest.is-on { border-color: color-mix(in srgb, var(--accent) 70%, #2a2a2a); background: color-mix(in srgb, var(--accent) 7%, #181818); }
.tgp__socket { width: 40px; height: 40px; border-radius: 50%; background: #0c0c0c; box-shadow: inset 0 2px 6px rgba(0,0,0,.8), 0 0 0 1px #2c2c2c; display: grid; place-items: center; }
.tgp__socket i { width: 12px; height: 12px; border-radius: 50%; background: #1e1e1e; transition: background .25s, box-shadow .25s; }
.tgp__dest.is-on .tgp__socket i { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.tgp__dhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tgp__dhead b { font-size: clamp(1.1rem, .9rem + .7vw, 1.5rem); letter-spacing: -.02em; transition: color .25s; }
.tgp__dest.is-on .tgp__dhead b { color: var(--accent); }
.tgp__dhead small { font-size: .78rem; color: #9a9a9a; font-weight: 600; }
.tgp__dsub { display: block; margin-top: 4px; color: #a8a8a8; font-size: .9rem; line-height: 1.45; }
.tgp__go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3a3a3a; display: grid; place-items: center; color: #e8e8e8; transition: background .25s, color .25s; }
.tgp__go svg { width: 14px; height: 14px; }
.tgp__dest.is-on .tgp__go { background: #f2f2f2; color: #111; border-color: #f2f2f2; }

.tgp__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.tgp__wires path { fill: none; stroke-linecap: round; }
.tgp__feed { stroke: color-mix(in srgb, var(--accent) 75%, #000); stroke-width: 3; }
.tgp__flow { stroke: #ffd29a; stroke-width: 2; stroke-dasharray: .1 1; stroke-dashoffset: 1.1; animation: x3d-pulse 1.8s linear infinite; }
.tgp__flow--2 { animation-delay: .9s; }
.tgp__cable-sh { stroke: rgba(0,0,0,.55); stroke-width: 12; transform: translateY(6px); filter: blur(3px); }
.tgp__cable { stroke: #b84f00; stroke-width: 9; }
.tgp__cable-core { stroke: var(--accent); stroke-width: 6; }
.tgp__cable-flow { stroke: #ffe1b8; stroke-width: 2; stroke-dasharray: .06 .5; stroke-dashoffset: .56; animation: tgp-flow 1.4s linear infinite; opacity: .85; }
@keyframes tgp-flow { to { stroke-dashoffset: 0; } }

.tgp__plug {
  position: absolute; left: 0; top: 0; z-index: 2; width: 58px; height: 26px; padding: 0; cursor: pointer;
  border: 0; border-radius: 8px 13px 13px 8px; background: linear-gradient(180deg, #fafafa, #d9d9d9);
  box-shadow: 0 6px 14px rgba(0,0,0,.5), inset 0 -2px 0 rgba(0,0,0,.12);
  transform-origin: 50px 13px;
}
.tgp__plug span { position: absolute; left: 14px; top: 11px; width: 14px; height: 4px; border-radius: 2px; background: var(--accent); }
.tgp__plug i { position: absolute; right: -9px; top: 9px; width: 10px; height: 8px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #e8e8e8, #9a9a9a); }
.tgp__plug { cursor: grab; touch-action: manipulation; }
.tgp.is-dragging .tgp__plug { cursor: grabbing; }
.tgp.is-dragging { user-select: none; }
.tgp__plug:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 900px) {
  .tgp { grid-template-columns: 1fr; }
  .tgp__power { gap: 44px; }
  .tgp__src { min-width: 0; }
}
@media (max-width: 520px) {
  .tgp { padding: 24px 18px; border-radius: 22px; }
  .tgp__power { flex-direction: column; align-items: flex-start; gap: 22px; }
  .tgp__srcs { width: 100%; }
  .tgp__outletwrap { justify-items: start; }
  .tgp__dest { grid-template-columns: auto minmax(0, 1fr); padding: 14px 14px 14px 58px; gap: 14px; }
  .tgp__go { display: none; }
  .tgp__term, .tgp__feed, .tgp__flow { display: none; }
  .tgp__plug { width: 40px; height: 18px; border-radius: 6px 9px 9px 6px; }
  .tgp__plug span { left: 9px; top: 7px; width: 10px; height: 4px; }
  .tgp__plug i { right: -7px; top: 5px; width: 8px; height: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .tgp__flow, .tgp__cable-flow, .tgp__pulse { animation: none; }
}

/* =================================================================== статьи внизу главной: пять мельче (02.10.2026) */
.feed--mini { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.feed--mini .post__body { padding: 14px 16px 16px; gap: 8px; }
.feed--mini .post__title { font-size: .98rem; line-height: 1.3; }
.feed--mini .post__lead { display: none; }
.feed--mini .post__meta { font-size: .78rem; }
.h-posts .h-head h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
@media (max-width: 1200px) { .feed--mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } .feed--mini .post:nth-child(n+4) { display: none; } }
@media (max-width: 640px) { .feed--mini { grid-template-columns: 1fr 1fr; } .feed--mini .post:nth-child(n+4) { display: flex; } .feed--mini .post:nth-child(5) { display: none; } }

/* 02.10.2026 (Стас: «не покидает ощущение, что она не по центру»): у Нэко ось тела на 61% ширины картинки —
   рука с шаром тянет рамку влево. Картинку сдвигаем на 10% влево, чтобы по центру стояло тело, а не рамка. */
.x3d__fig[data-fig="neko"] { left: -10%; right: 10%; }

/* 02.10.2026 (Стас: «тень обрезается плоской полоской»): ступни стояли на самом краю героя, и тень пола с тенью
   фигуры срезал overflow героя. Сцену подняли на 3.5% и уменьшили до 100% высоты (макушка остаётся под бегущей
   строкой), тень фигуры вниз короче — овал тени целиком внутри героя. */
@media (min-width: 821px) {
  .x3d__scene { bottom: 3.5%; height: 100%; }
}
.x3d__fig { filter: drop-shadow(0 0 14px rgba(0,0,0,.55)) drop-shadow(0 16px 22px rgba(0,0,0,.4)); }
[data-theme="light"] .x3d__fig { filter: drop-shadow(0 0 16px rgba(60,45,30,.22)) drop-shadow(0 14px 18px rgba(40,30,20,.18)); }
.x3d__floor { bottom: -2%; height: 5%; }
