/**
 * TVK Motion — эффекты с tvkplastic.ru (typewriter, reveal, progress, badges)
 * Подключается после main.css · контент всегда виден без JS
 */

/* —— Scroll progress —— */
.tvk-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #ff6b6b, var(--data));
  box-shadow: 0 0 12px var(--accent-glow);
  pointer-events: none;
}

/* —— Ambient mesh (как на проде) —— */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 12% 8%, rgba(229, 57, 53, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 18%, rgba(0, 201, 167, 0.05), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 201, 167, 0.03), transparent 55%);
}

/* —— Header scroll state —— */
.site-header {
  transition:
    background 0.35s var(--tvk-ease-out),
    border-color 0.35s var(--tvk-ease-out),
    box-shadow 0.35s var(--tvk-ease-out);
}

.site-header.is-scrolled {
  background: rgba(8, 11, 16, 0.88) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.site-nav a {
  position: relative;
}

.site-nav:not(.is-open) a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--tvk-ease-out);
}

.site-nav:not(.is-open) a:hover::after,
.site-nav:not(.is-open) a:focus-visible::after {
  transform: scaleX(1);
}

/* —— Hero typewriter —— */
.hero-text-cycle {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  height: 1.35em;
  vertical-align: bottom;
  min-width: 0;
  max-width: 100%;
}

.hero-text-cycle__item {
  display: none;
}

.hero-text-cycle--typewriter .hero-text-cycle__item {
  display: none !important;
}

.hero-text-cycle__typed {
  display: inline-block;
  line-height: 1.35em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--accent), #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

.hero-text-cycle__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.08em;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: heroCaretBlink 0.55s step-end infinite;
}

@keyframes heroCaretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-h1-cycle-wrap {
  display: block;
  margin-top: 0.2em;
  font-size: clamp(0.55em, 2.2vw, 0.7em);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  line-height: 1.35;
}

.hero-h1-cycle-wrap .cycle-label {
  display: inline-block;
  color: var(--text-muted);
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 400;
}

.hero-eyebrow-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--data);
  background: var(--data-dim);
  border: 1px solid rgba(0, 201, 167, 0.25);
}

.hero-eyebrow-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--data);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-lead--offer {
  font-size: 1rem;
  color: var(--text-secondary);
}

.hero-lead-link {
  color: var(--data);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-lead-link:hover {
  color: var(--text-primary);
}

/* —— Guarantee badges —— */
.guarantee-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.guarantee-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.guarantee-badge.tvk-badge-live,
.guarantee-badge:hover {
  border-color: rgba(229, 57, 53, 0.4);
  box-shadow: 0 0 16px rgba(229, 57, 53, 0.12);
  color: var(--text-primary);
}

.guarantee-badge.tvk-badge-live {
  animation: tvk-badge-pop 0.45s var(--tvk-ease-out) both;
  animation-delay: calc(var(--tvk-badge-i, 0) * 60ms);
}

@keyframes tvk-badge-pop {
  from { transform: scale(0.96); opacity: 0.7; }
  to { transform: scale(1); opacity: 1; }
}

/* —— Hero stats strip —— */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-border);
  background: rgba(0, 0, 0, 0.2);
}

.hero-stats article,
.hero-stats .hero-stat {
  text-align: center;
  padding: 8px 6px 6px;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease, border-color 0.3s ease;
  min-height: 52px;
}

.hero-stats article:hover,
.hero-stats .hero-stat:hover {
  transform: translateY(-2px);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.hero-stats span {
  display: block;
  margin-top: 6px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* —— Hero lab (interactive pipe cross-section) —— */
.hero-lab {
  --lab-glow: #dc2626;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-lab__head { display: flex; flex-direction: column; gap: 4px; }

.hero-lab__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--data);
}

.hero-lab__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.hero-lab__sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.hero-lab__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 8px 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(220, 38, 38, 0.08), transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      rgba(255, 255, 255, 0.03) 19px,
      rgba(255, 255, 255, 0.03) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 19px,
      rgba(255, 255, 255, 0.03) 19px,
      rgba(255, 255, 255, 0.03) 20px
    );
  border: 1px solid var(--bg-border);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.hero-lab__stage.is-dragging { cursor: grabbing; }

.hero-lab__svg {
  width: min(100%, 260px);
  height: auto;
  display: block;
  transform: rotate(var(--lab-rot, 0deg));
  transition: transform 0.08s linear;
}

.hero-lab__ring {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.25s ease, stroke-width 0.25s ease;
}

.hero-lab__ring--outer { stroke: rgba(150, 196, 216, 0.75); }
.hero-lab__ring--ppu { stroke: rgba(0, 201, 167, 0.55); stroke-dasharray: 6 4; }
.hero-lab__ring--armor { stroke: rgba(229, 57, 53, 0.45); }

.hero-lab__core {
  fill: rgba(10, 12, 16, 0.92);
  stroke: var(--lab-glow);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.3s ease, fill 0.3s ease;
}

.hero-lab__hit {
  fill: none;
  stroke: transparent;
  stroke-width: 16;
  pointer-events: stroke;
  cursor: pointer;
}

.hero-lab__hit--core {
  fill: transparent;
  stroke: none;
  pointer-events: all;
}

.hero-lab__cross line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.hero-lab__layer {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-lab__layer.is-active .hero-lab__ring { stroke-width: 3; }
.hero-lab__layer[data-layer="jacket"].is-active .hero-lab__ring--outer { stroke: #96c4d8; }
.hero-lab__layer[data-layer="ppu"].is-active .hero-lab__ring--ppu { stroke: var(--data); }
.hero-lab__layer[data-layer="armor"].is-active .hero-lab__ring--armor { stroke: var(--accent); }
.hero-lab__layer[data-layer="core"].is-active .hero-lab__core { stroke-width: 3.5; fill: rgba(220, 38, 38, 0.1); }

.hero-lab__particle {
  fill: url(#lab-ruby);
  opacity: 0.95;
  filter: drop-shadow(0 0 7px rgba(220, 38, 38, 0.65));
  animation: labFlow 2.4s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.hero-lab__particle--2 { animation-delay: -0.8s; opacity: 0.6; }
.hero-lab__particle--3 { animation-delay: -1.6s; opacity: 0.45; }

@keyframes labFlow {
  0% { transform: translate(0, -34px); opacity: 0; }
  12% { opacity: 0.9; }
  88% { opacity: 0.9; }
  100% { transform: translate(0, 34px); opacity: 0; }
}

.hero-lab__orbit {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(220, 38, 38, 0.2);
  pointer-events: none;
  animation: labOrbitSpin 24s linear infinite;
}

@keyframes labOrbitSpin {
  to { transform: rotate(360deg); }
}

.hero-lab__slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-lab__slider-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-lab__slider-out {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--data);
}

.hero-lab__slider {
  width: 100%;
  height: 6px;
  margin: 0;
  accent-color: var(--data);
  cursor: pointer;
}

.hero-lab__modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hero-lab__mode {
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-border);
  background: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.hero-lab__mode:hover {
  border-color: rgba(0, 201, 167, 0.35);
  color: var(--text-primary);
}

.hero-lab__mode.is-active {
  border-color: rgba(0, 201, 167, 0.5);
  background: var(--data-dim);
  color: var(--data);
  box-shadow: 0 0 0 1px rgba(0, 201, 167, 0.15);
}

.hero-lab__readout {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-border);
  background: rgba(0, 0, 0, 0.22);
  min-height: 56px;
}

.hero-lab__layer-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hero-lab__layer-spec {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.hero-lab__cta {
  width: 100%;
  text-align: center;
  margin-top: 2px;
}

.hero-lab[data-mode="75"] { --lab-glow: #5eb8ff; }
.hero-lab[data-mode="95"] { --lab-glow: #e53935; }
.hero-lab[data-mode="115"] { --lab-glow: #ff6b4a; }

/* —— Marquee belt polish —— */
.tvk-marquee-belt {
  border-top: 1px solid rgba(229, 57, 53, 0.12);
  border-bottom: 1px solid rgba(229, 57, 53, 0.12);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(229, 57, 53, 0.03) 50%,
    transparent 100%
  );
}

.tvk-marquee-belt::before,
.tvk-marquee-belt::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}

.tvk-marquee-belt::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-base), transparent);
}

.tvk-marquee-belt::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-base), transparent);
}

/* —— Scroll reveal (контент виден, движение — бонус) —— */
.reveal,
.tvk-reveal {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(22px);
  transition:
    transform 0.65s var(--tvk-ease-out),
    box-shadow 0.4s var(--tvk-ease-out);
  transition-delay: var(--reveal-delay, var(--tvk-reveal-delay, 0ms));
}

.reveal.visible,
.tvk-reveal.is-inview,
.tvk-reveal--in {
  transform: translateY(0);
}

/* —— Button shine + CTA nudge —— */
.btn-accent,
.button-accent {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-accent::after,
.button-accent::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 45%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 0.55s var(--tvk-ease-out);
  pointer-events: none;
}

.btn-accent:hover::after,
.button-accent:hover::after {
  left: 140%;
}

.btn-accent.tvk-cta-nudge {
  animation: tvkCtaNudge 1.4s var(--tvk-ease-out) 2;
}

@keyframes tvkCtaNudge {
  0%, 100% { box-shadow: 0 4px 16px var(--accent-glow); }
  50% { box-shadow: 0 4px 28px rgba(229, 57, 53, 0.55), 0 0 0 4px rgba(229, 57, 53, 0.12); }
}

/* —— Card hover: will-change только через tvk-will-change.css ── */

/* —— Calc flash on hash —— */
.tvk-flash-target {
  animation: tvkCalcFlash 1.2s ease-out 2;
}

@keyframes tvkCalcFlash {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.35), 0 0 32px rgba(0, 201, 167, 0.15); }
}

/* —— Page enter —— */
html.tvk-ready body {
  animation: tvkPageEnter 0.4s var(--tvk-ease-out) both;
}

@keyframes tvkPageEnter {
  from { opacity: 0.92; }
  to { opacity: 1; }
}

::selection {
  background: rgba(229, 57, 53, 0.35);
  color: #fff;
}

/* —— Section rail (scroll-spy, desktop) —— */
.tvk-section-rail {
  position: fixed;
  right: clamp(10px, 2vw, 18px);
  top: 50%;
  z-index: 330;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.tvk-section-rail.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.tvk-section-rail__dot {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.tvk-section-rail__dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(229, 57, 53, 0.65);
  transform: scale(1.25);
}

.tvk-section-rail__dot:hover {
  background: rgba(229, 57, 53, 0.75);
}

.tvk-section-rail__tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  opacity: 0;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(229, 57, 53, 0.15);
  border: 1px solid rgba(229, 57, 53, 0.3);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tvk-section-rail__dot:hover .tvk-section-rail__tip,
.tvk-section-rail__dot:focus-visible .tvk-section-rail__tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.tvk-section-rail.is-catalog-pinned-hide,
body:has(#products.tvk-catalog-pin) .tvk-section-rail {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-50%) translateX(12px);
}

#products.is-catalog-pinned {
  z-index: 120;
  position: relative;
}

#products.is-catalog-pinned ~ * {
  pointer-events: auto;
}

/* —— Section toast (светофор сверху) —— */
.tvk-section-toast {
  position: fixed;
  left: 50%;
  top: calc(var(--header-h) + 10px);
  z-index: 1005;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -130%);
  opacity: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(229, 57, 53, 0.45);
  background: rgba(8, 11, 16, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.tvk-section-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tvk-section-toast__signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(229, 57, 53, 0.75);
  animation: tvkSignalPulse 1.2s ease-in-out infinite;
}

@keyframes tvkSignalPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

@media (max-width: 900px) {
  .tvk-section-rail {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-h1-cycle-wrap {
    font-size: clamp(0.62em, 3.5vw, 0.75em);
  }

  .tvk-cursor-glow {
    display: none !important;
  }
}

/* ============================================================
   TVK EXTRA FX v1.0 — приколюхи и полировка
   ============================================================ */

@keyframes tvkMeshDrift {
  0%, 100% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
  33% {
    transform: scale(1.03) translate(1%, -0.5%);
  }
  66% {
    transform: scale(0.98) translate(-0.5%, 0.8%);
  }
}

body::before {
  animation: tvkMeshDrift 28s ease-in-out infinite;
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

/* Cursor glow */
.tvk-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  background:
    radial-gradient(circle, rgba(0, 201, 167, 0.11) 0%, transparent 58%),
    radial-gradient(circle at 65% 35%, rgba(229, 57, 53, 0.07) 0%, transparent 50%);
  mix-blend-mode: screen;
  will-change: transform;
  transition: opacity 0.4s ease;
}

body:not(.tvk-has-cursor-glow) .tvk-cursor-glow {
  display: none;
}

/* Marquee pause on hover */
.tvk-marquee-belt:hover .tvk-marquee-track {
  animation-play-state: paused;
}

/* 3D tilt cards */
.tvk-tilt-card {
  transform-style: preserve-3d;
  transition:
    transform 0.35s var(--tvk-ease-out),
    border-color 0.3s ease,
    box-shadow 0.35s ease;
  will-change: transform;
}

.tvk-tilt-card.is-tilting {
  transform:
    perspective(900px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translateY(-3px);
}

.catalog-card.tvk-tilt-card.is-tilting {
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(229, 57, 53, 0.15);
}

.catalog-card__media img {
  transition: transform 0.55s var(--tvk-ease-out);
}

.catalog-card:hover .catalog-card__media img,
.catalog-card.is-tilting .catalog-card__media img {
  transform: scale(1.06);
}

/* Metric shine sweep */
.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 58%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.metric-card:hover::after {
  transform: translateX(120%);
}

.metric-card--lab.tvk-float-gentle {
  animation: tvkIsoFloat 5s ease-in-out infinite;
}

@keyframes tvkIsoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Magnetic buttons */
.tvk-magnetic {
  transition: transform 0.22s var(--tvk-ease-out), box-shadow 0.22s ease;
  transform: translate(var(--mag-x, 0), var(--mag-y, 0));
}

.tvk-ripple-host {
  position: relative;
  overflow: hidden;
}

.tvk-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: tvkRipple 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes tvkRipple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* Heading sweep underline */
.tvk-heading-sweep {
  position: relative;
  display: inline-block;
}

.tvk-heading-sweep::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--data), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.65s var(--tvk-ease-out);
}

.tvk-heading-sweep.is-swept::after {
  transform: scaleX(1);
}

/* Parallax micro-movement */
.guarantee-badge,
.hero-stat {
  transform: translateY(var(--para-y, 0));
  transition: transform 0.15s linear;
}

/* Counter pop */
.tvk-stat-pop {
  animation: tvkStatPop 0.45s var(--tvk-ease-out);
}

@keyframes tvkStatPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); color: var(--data); }
  100% { transform: scale(1); }
}

.stat-accent.tvk-stat-pop,
.tvk-lstat__value.tvk-stat-pop .tvk-count {
  display: inline-block;
}

/* Trust stat hover glow */
.tvk-lstat:hover {
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(0, 201, 167, 0.12);
}

/* ============================================================
   TVK SITE POLISH v1.0
   ============================================================ */

/* Hero entrance */
.tvk-hero-enter > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--tvk-ease-out),
    transform 0.55s var(--tvk-ease-out);
  transition-delay: calc(var(--enter-i, 0) * 70ms);
}

.tvk-hero-enter.is-entered > * {
  opacity: 1;
  transform: translateY(0);
}

/* Compact header */
.site-header.is-compact .header-inner {
  padding-block: 10px;
}

.site-header.is-compact .brand-mark--img img {
  width: 36px;
  height: 36px;
}

.site-header.is-compact .header-hours {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

.site-header.is-compact .brand-copy strong {
  font-size: 0.9375rem;
}

/* Factory live badge */
.tvk-factory-live {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--data);
  background: var(--data-dim);
  border: 1px solid rgba(0, 201, 167, 0.28);
  white-space: nowrap;
}

.tvk-factory-live__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--data);
  box-shadow: 0 0 8px rgba(0, 201, 167, 0.7);
  animation: pulse-dot 2s ease-in-out infinite;
}

@media (min-width: 1100px) {
  .tvk-factory-live {
    display: inline-flex;
  }
}

/* Catalog filter */
.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  flex: 1 1 auto;
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.catalog-toolbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.catalog-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--bg-border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s,
    transform 0.2s var(--tvk-ease-out);
}

.catalog-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
}

.catalog-filter__btn.is-active .catalog-filter__count {
  color: var(--accent);
  background: rgba(229, 57, 53, 0.16);
}

.catalog-filter__btn:hover {
  border-color: rgba(229, 57, 53, 0.35);
  color: var(--text-primary);
}

.catalog-filter__btn.is-active {
  border-color: rgba(229, 57, 53, 0.55);
  background: rgba(229, 57, 53, 0.12);
  color: var(--accent);
  transform: translateY(-1px);
}

.catalog-filter__btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.catalog-card.is-filtered-out {
  display: none !important;
}

.catalog-grid.is-filtering .catalog-card:not(.is-filtered-out) {
  animation: tvkFilterIn 0.4s var(--tvk-ease-out) both;
  animation-delay: calc(var(--filter-i, 0) * 45ms);
}

@keyframes tvkFilterIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile catalog horizontal scroll */
@media (max-width: 767px) {
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
  }

  .catalog-toolbar__actions {
    display: none !important;
  }

  .catalog-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    margin-bottom: 0;
    padding-bottom: 2px;
  }

  .catalog-filter::-webkit-scrollbar {
    display: none;
  }

  .catalog-filter__btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .catalog-filter__label {
    white-space: nowrap;
  }

  .catalog-filter__count {
    min-width: 1.1rem;
    padding: 1px 5px;
    font-size: 0.625rem;
  }

  .catalog-grid-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    margin-inline: calc(-1 * var(--page-pad, 20px));
    padding-inline: var(--page-pad, 20px);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pinch-zoom;
  }

  .catalog-grid-wrap::-webkit-scrollbar {
    display: none;
  }

  .catalog-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: unset !important;
    gap: 14px;
    width: max-content;
    padding-bottom: 8px;
  }

  .catalog-grid .catalog-card {
    flex: 0 0 min(82vw, 320px) !important;
    width: min(82vw, 320px) !important;
    max-width: min(82vw, 320px) !important;
    scroll-snap-align: start;
  }

  .catalog-grid.is-filtering {
    width: max-content;
  }

  .catalog-grid.is-filtering .catalog-card:not(.is-filtered-out) {
    flex: 0 0 min(82vw, 320px) !important;
  }

  .tvk-back-top {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    right: 14px;
  }

  .tvk-mobile-fab {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  body:has(.sticky-cta.visible) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .toast {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

.catalog-scroll-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  animation: tvkHintPulse 2s ease-in-out infinite;
}

.catalog-scroll-hint.is-hidden {
  opacity: 0;
  transition: opacity 0.4s ease;
}

@keyframes tvkHintPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* Back to top */
.tvk-back-top {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 310;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bg-border);
  border-radius: 50%;
  background: rgba(8, 11, 16, 0.92);
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s var(--tvk-ease-out),
    border-color 0.2s ease;
  backdrop-filter: blur(8px);
}

.tvk-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.tvk-back-top:hover {
  border-color: rgba(0, 201, 167, 0.45);
}

.tvk-back-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tvk-back-top__track {
  stroke: rgba(255, 255, 255, 0.08);
}

.tvk-back-top__prog {
  stroke: var(--data);
  transition: stroke-dashoffset 0.12s linear;
}

.tvk-back-top__arrow {
  position: relative;
  z-index: 1;
  font-size: 1.125rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .tvk-back-top {
    bottom: 28px;
  }
}

/* Mobile FAB */
.tvk-mobile-fab {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 305;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tvk-mobile-fab__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s var(--tvk-ease-out);
}

.tvk-mobile-fab__btn:active {
  transform: scale(0.94);
}

.tvk-mobile-fab__btn--call {
  background: var(--data);
  color: #041510;
  font-size: 1.25rem;
}

.tvk-mobile-fab__btn--kp {
  background: var(--accent);
  color: #fff;
}

body:has(.sticky-cta.visible) .tvk-mobile-fab {
  bottom: 82px;
}

/* Spec table highlight */
.tvk-spec-table tbody tr {
  transition: background 0.2s ease;
}

.tvk-spec-table tbody tr.is-highlight {
  background: rgba(0, 201, 167, 0.08);
}

.tvk-spec-table tbody tr.is-highlight td:first-child {
  color: var(--data);
  font-weight: 600;
}

/* Calc flash */
.tvk-calc-flash {
  animation: tvkCalcFlash 0.55s var(--tvk-ease-out);
}

@keyframes tvkCalcFlash {
  0% { color: var(--data); transform: scale(1.06); }
  100% { color: inherit; transform: scale(1); }
}

/* Trust grid animated connector */
.tvk-trust-animated .trust-card {
  position: relative;
}

.tvk-trust-animated .trust-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.4s, transform 0.4s var(--tvk-ease-out);
}

.tvk-trust-animated .trust-card.is-inview:not(:last-child)::after {
  opacity: 0.6;
  transform: scaleX(1);
}

@media (max-width: 767px) {
  .tvk-trust-animated .trust-card::after {
    display: none;
  }
}

/* Brand mark shine */
.brand-mark--img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.brand:hover .brand-mark--img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%
  );
  animation: tvkBrandShine 0.65s ease;
}

@keyframes tvkBrandShine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

/* Section dividers */
#factory,
#products,
#why-us,
#calc,
#trust-facts,
#process,
#faq {
  position: relative;
}

#factory::before,
#products::before,
#why-us::before,
#calc::before,
#trust-facts::before,
#process::before,
#faq::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 720px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(229, 57, 53, 0.35),
    rgba(0, 201, 167, 0.35),
    transparent
  );
  pointer-events: none;
}

/* Selection color */
::selection {
  background: rgba(229, 57, 53, 0.35);
  color: #fff;
}

.calc-panel.is-live {
  border-color: rgba(0, 201, 167, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 201, 167, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.45s ease, border-color 0.45s ease;
}

.ribbon-chip {
  animation: tvkChipIn 0.45s var(--tvk-ease-out) both;
  animation-delay: calc(var(--chip-i, 0) * 70ms);
}

@keyframes tvkChipIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.engineering-tools-ribbon .ribbon-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.15);
}

/* ============================================================
   TVK CATALOG PIN — scroll-driven horizontal showcase
   ============================================================ */
.catalog-view-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--bg-border);
  background: var(--bg-base);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.catalog-filter {
  align-items: center;
  margin-bottom: 0;
}

.catalog-toolbar {
  margin-bottom: 20px;
}

.catalog-view-toggle:hover {
  border-color: rgba(0, 201, 167, 0.4);
  color: var(--data);
}

.catalog-view-toggle[aria-pressed="true"] {
  border-color: rgba(0, 201, 167, 0.45);
  background: var(--data-dim);
  color: var(--data);
}

@media (min-width: 1024px) {
  .tvk-catalog-pin .catalog-pin-viewport {
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -6px;
    margin-bottom: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
    display: block;
    height: auto;
    min-height: 0;
  }

  .tvk-catalog-pin .catalog-grid-wrap {
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    width: 100%;
    height: auto;
    display: block;
  }

  .tvk-catalog-pin .catalog-grid {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: clamp(20px, 2.5vw, 32px);
    width: max-content;
    min-height: 0;
    height: auto;
    padding-block: 0;
    grid-template-columns: unset !important;
    will-change: transform;
  }

  .tvk-catalog-pin .catalog-grid .catalog-card {
    flex: 0 0 min(460px, 68vw);
    width: min(460px, 68vw);
    height: auto;
    max-height: calc(100vh - var(--header-h, 64px) - 120px);
    display: flex;
    flex-direction: column;
    overflow: visible !important;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transition:
      opacity 0.45s ease,
      transform 0.45s ease,
      filter 0.35s ease;
    transform: scale(0.92);
    opacity: 0.22;
    filter: none;
    transform-origin: center center;
  }

  .tvk-catalog-pin .catalog-grid .catalog-card.is-pin-active {
    transform: scale(1);
    opacity: 1;
    filter: none;
    border-color: transparent;
    box-shadow: none;
    z-index: 2;
  }

  .tvk-catalog-pin .catalog-grid .catalog-card.is-pin-active .catalog-card__body {
    border-color: rgba(229, 57, 53, 0.45);
    box-shadow:
      0 24px 56px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(229, 57, 53, 0.14);
  }

  .tvk-catalog-pin .catalog-grid .catalog-card.is-pin-near {
    transform: scale(0.96);
    opacity: 0.42;
    filter: none;
    z-index: 1;
  }

  .tvk-catalog-pin .catalog-card:hover {
    transform: scale(0.92);
  }

  .tvk-catalog-pin .catalog-card.is-pin-active:hover,
  .tvk-catalog-pin .catalog-card.is-pin-near:hover {
    transform: scale(1);
  }

  .tvk-catalog-pin .catalog-card.is-pin-near:hover {
    transform: scale(0.96);
  }

  .tvk-catalog-pin .catalog-card__idx {
    display: none;
  }

  .tvk-catalog-pin .catalog-card__media {
    aspect-ratio: unset !important;
    flex: 0 0 auto;
    width: 100%;
    height: min(
      clamp(240px, 36vh, 440px),
      var(--catalog-pin-media-h, 440px)
    );
    min-height: min(
      clamp(220px, 32vh, 400px),
      var(--catalog-pin-media-h, 440px)
    );
    max-height: min(
      clamp(280px, 40vh, 460px),
      var(--catalog-pin-media-h, 460px)
    );
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: transparent !important;
    position: relative;
    margin-bottom: -8px;
    z-index: 2;
  }

  .tvk-catalog-pin .catalog-card__media::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 4%;
    height: 42%;
    background: radial-gradient(
      ellipse at center,
      rgba(229, 57, 53, 0.1) 0%,
      rgba(229, 57, 53, 0.03) 42%,
      transparent 72%
    );
    pointer-events: none;
    z-index: 0;
  }

  .tvk-catalog-pin .catalog-card__media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-height: none;
    transform: none !important;
    object-fit: contain;
    object-position: center bottom;
    image-rendering: auto;
    mix-blend-mode: lighten;
    filter: contrast(1.07) saturate(1.06)
      drop-shadow(0 22px 38px rgba(0, 0, 0, 0.5));
  }

  /* фото-каталоги с светлым фоном — без blend */
  .tvk-catalog-pin .catalog-card__media img[src*="catalog-gfi"],
  .tvk-catalog-pin .catalog-card__media img[src*="mtu-opt"],
  .tvk-catalog-pin .catalog-card__media img[src*="product-mtu"] {
    mix-blend-mode: normal;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.45));
    border-radius: var(--radius-md);
  }

  .tvk-catalog-pin .catalog-card__body {
    flex: 0 0 auto;
    min-height: 0;
    padding: 18px 22px 22px;
    gap: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
    background: var(--bg-elevated);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
  }

  .tvk-catalog-pin .catalog-card__body h3 {
    font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
    line-height: 1.3;
    flex-shrink: 0;
  }

  .tvk-catalog-pin .catalog-card__body p {
    font-size: 0.9375rem;
    line-height: 1.55;
    flex: 0 0 auto;
    margin: 0;
    overflow: visible;
    display: block;
  }

  .tvk-catalog-pin .catalog-card__chips {
    flex-shrink: 0;
  }

  .tvk-catalog-pin .catalog-card__chips li {
    font-size: 0.75rem;
    padding: 5px 11px;
  }

  .tvk-catalog-pin .catalog-card__actions {
    flex-shrink: 0;
    margin-top: 4px;
    padding-top: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .tvk-catalog-pin .catalog-card__btn-kp,
  .tvk-catalog-pin .catalog-card__btn-spec {
    padding: 12px 18px;
    font-size: 0.875rem;
  }

  .tvk-catalog-pin .catalog-card.tvk-tilt-card.is-tilting,
  .tvk-catalog-pin .catalog-card.tvk-tilt-card.is-tilting.is-pin-active {
    transform: scale(1);
  }

  .tvk-catalog-pin .catalog-card.tvk-tilt-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
  }

  .tvk-catalog-pin .catalog-grid .catalog-card.is-filtered-out {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #products.tvk-catalog-pin .catalog-filter {
    position: sticky;
    top: calc(var(--header-h, 64px) + 4px);
    z-index: 140;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: -8px;
    margin-bottom: 0;
    padding: 6px 0 8px;
    background: linear-gradient(
      180deg,
      var(--bg-surface) 0%,
      var(--bg-surface) 85%,
      rgba(8, 11, 16, 0) 100%
    );
  }

  #products.tvk-catalog-pin.is-catalog-pinned .section-heading {
    max-height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      max-height 0.35s var(--tvk-ease-out),
      opacity 0.28s ease,
      margin 0.35s var(--tvk-ease-out),
      transform 0.35s var(--tvk-ease-out);
  }

  #products.tvk-catalog-pin .section-heading {
    max-height: 280px;
    margin-bottom: clamp(12px, 1.5vw, 20px);
    transition:
      max-height 0.35s var(--tvk-ease-out),
      opacity 0.28s ease,
      margin 0.35s var(--tvk-ease-out),
      transform 0.35s var(--tvk-ease-out);
  }

  #products.tvk-catalog-pin.is-catalog-pinned .catalog-filter {
    top: calc(var(--header-h, 64px) + 2px);
    margin-top: -10px;
    padding-top: 4px;
    padding-bottom: 6px;
  }

  .tvk-catalog-pin .catalog-view-toggle {
    margin-left: auto;
  }

  .catalog-pin-progress {
    margin-left: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--data);
    background: rgba(8, 11, 16, 0.72);
    border: 1px solid rgba(0, 201, 167, 0.22);
    pointer-events: none;
    align-self: center;
  }
}

@media (min-width: 1400px) {
  .tvk-catalog-pin .catalog-grid .catalog-card {
    flex: 0 0 min(520px, 62vw);
    width: min(520px, 62vw);
  }
}

@media (min-width: 1024px) {
  #products.tvk-catalog-pin {
    padding-top: clamp(16px, 2vw, 28px);
    padding-bottom: clamp(20px, 2.5vh, 36px);
  }

  #products.tvk-catalog-pin.is-catalog-pinned {
    padding-top: 8px;
  }
}

@media (max-width: 1023px) {
  .catalog-view-toggle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .tvk-reveal {
    transform: none !important;
    transition: none !important;
  }

  .hero-text-cycle__caret {
    animation: none;
    opacity: 0.6;
  }

  .btn-accent.tvk-cta-nudge,
  .tvk-flash-target,
  html.tvk-ready body {
    animation: none !important;
  }

  .tvk-scroll-progress {
    display: none;
  }

  .tvk-section-toast {
    animation: none !important;
  }

  .tvk-section-toast__signal {
    animation: none;
  }

  .tvk-marquee-track {
    animation: none !important;
  }

  .hero-lab__orbit,
  .hero-lab__particle {
    animation: none !important;
  }

  .hero-lab__layer {
    transition: none;
  }

  body::before {
    animation: none !important;
  }

  .metric-card--lab.tvk-float-gentle {
    animation: none !important;
  }

  .tvk-tilt-card.is-tilting {
    transform: none !important;
  }

  .hero-particles {
    display: none !important;
  }

  .tvk-cursor-glow {
    display: none !important;
  }

  .tvk-hero-enter > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .catalog-grid.is-filtering .catalog-card {
    animation: none !important;
  }

  .tvk-catalog-pin .catalog-grid .catalog-card {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* ============================================================
   TVK Extra FX v1.2 — микро-эффекты
   ============================================================ */

/* Eyebrow: точка + линия при появлении */
.eyebrow.tvk-eyebrow-fx {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow.tvk-eyebrow-fx::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--data);
  box-shadow: 0 0 12px rgba(0, 201, 167, 0.55);
  transform: scale(0);
  opacity: 0;
  transition:
    transform 0.45s var(--tvk-ease-out),
    opacity 0.35s ease;
}

.eyebrow.tvk-eyebrow-fx.is-lit::before {
  transform: scale(1);
  opacity: 1;
  animation: tvkEyebrowPulse 2.8s ease-in-out infinite;
}

@keyframes tvkEyebrowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 201, 167, 0.4); }
  50% { box-shadow: 0 0 16px rgba(0, 201, 167, 0.75); }
}

/* Навигация: подчёркивание */
.tvk-nav-link {
  position: relative;
}

.tvk-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--data), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--tvk-ease-out);
  border-radius: 1px;
}

.tvk-nav-link:hover::after,
.tvk-nav-link:focus-visible::after,
.tvk-nav-link.is-active::after {
  transform: scaleX(1);
}

/* Marquee: лёгкий hover */
.tvk-marquee-item {
  transition:
    color 0.25s ease,
    transform 0.25s var(--tvk-ease-out),
    text-shadow 0.25s ease;
}

.tvk-marquee-belt:hover .tvk-marquee-item--accent {
  text-shadow: 0 0 18px rgba(0, 201, 167, 0.35);
}

.tvk-marquee-belt:hover .tvk-marquee-item--red {
  text-shadow: 0 0 14px rgba(229, 57, 53, 0.3);
}

/* Метрики: glow при hover */
.tvk-metric-glow:hover .stat-accent,
.tvk-metric-glow:hover .tvk-count {
  text-shadow: 0 0 22px rgba(0, 201, 167, 0.45);
  transition: text-shadow 0.35s ease;
}

.tvk-metric-glow:hover {
  border-top-color: var(--data) !important;
}

/* Catalog tag shimmer */
.catalog-tag.tvk-tag-shine {
  position: relative;
  overflow: hidden;
}

.catalog-tag.tvk-tag-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.catalog-card:hover .catalog-tag.tvk-tag-shine::after {
  transform: translateX(120%);
}

/* Индекс карточки каталога */
.catalog-card__idx.tvk-idx-fx {
  transition:
    color 0.25s ease,
    transform 0.25s var(--tvk-ease-out);
}

.catalog-card:hover .catalog-card__idx.tvk-idx-fx {
  color: var(--data);
  transform: scale(1.12);
}

/* Телефон в шапке */
.header-phone.tvk-phone-fx {
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.header-phone.tvk-phone-fx:hover {
  text-shadow: 0 0 16px rgba(229, 57, 53, 0.45);
}

/* Логотип в шапке */
.brand.tvk-brand-hover .brand-mark--img {
  transition: transform 0.35s var(--tvk-ease-out);
}

.brand.tvk-brand-hover:hover .brand-mark--img {
  transform: rotate(-4deg) scale(1.06);
}

/* Ссылки футера */
.tvk-footer-link {
  position: relative;
  transition: color 0.2s ease, padding-left 0.25s var(--tvk-ease-out);
}

.tvk-footer-link:hover,
.tvk-footer-link:focus-visible {
  padding-left: 6px;
  color: var(--data) !important;
}

/* Trust cards: линия снизу при hover */
.tvk-trust-hover {
  position: relative;
}

.tvk-trust-hover::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--data), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--tvk-ease-out);
}

.tvk-trust-hover:hover::before {
  transform: scaleX(1);
}

/* Кнопки: лёгкий press */
.btn.tvk-btn-press:active:not(:disabled) {
  transform: scale(0.97);
}

/* Section intro links */
.tvk-inline-link {
  position: relative;
  text-decoration: none;
  background-image: linear-gradient(var(--data), var(--data));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--tvk-ease-out), color 0.2s ease;
}

.tvk-inline-link:hover {
  color: var(--data);
  background-size: 100% 1px;
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow.tvk-eyebrow-fx::before,
  .tvk-marquee-item,
  .catalog-tag.tvk-tag-shine::after,
  .brand.tvk-brand-hover .brand-mark--img,
  .btn.tvk-btn-press:active {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
