/* ==========================================================================
   YUPPCAD — ULTRA LUXURY INDUSTRIAL DESIGN & ANIMATION SYSTEM (2026)
   - Спокойный, глубокий, ультра-премиальный стиль (Obsidian + Laser Ruby + Gold)
   - Идеально плавная кинематика при наведении (без резких наклонов и радуги)
   - Инженерный CAD Blueprint Showcase для карт раскроя DXF
   - Единая прозрачная 3-уровневая структура тарифов без урезания функций
   ========================================================================== */
/* Шрифты сайта (Montserrat, JetBrains Mono) — локально из assets/fonts, без запросов к Google */
@import url('../assets/fonts/fonts.css?v=20261018');

:root {
  /* Ultra-Deep Luxury Obsidian Palette (Darkened & High Contrast) */
  --bg-void: #050608;
  --bg-dark: #080a0f;
  --bg-surface: #0b0e15;
  --bg-card: #0f121a;
  --bg-card-hover: #141822;
  --bg-input: #12151f;
  --bg-input-focus: #181d2b;

  /* Luxury Hairline Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border: #1e2230;
  --border-light: #2a3044;
  --border-accent: rgba(230, 57, 70, 0.35);
  --border-gold: rgba(212, 175, 55, 0.35);

  /* Primary Accent: Laser Ruby */
  --accent: #e63946;
  --accent-hover: #d62839;
  --accent-glow: rgba(230, 57, 70, 0.25);
  --accent-soft: rgba(230, 57, 70, 0.08);

  /* Secondary Accent: Champagne Gold */
  --gold: #d4af37;
  --gold-light: #f3d887;
  --gold-soft: rgba(212, 175, 55, 0.08);
  --gold-glow: rgba(212, 175, 55, 0.2);

  /* Technical Precision: Titanium, Steel, Platinum */
  --platinum: #f8fafc;
  --titanium: #94a3b8;
  --steel: #64748b;
  --text: #f8fafc;
  --text-muted: #9aa5b8;
  --text-dim: #5a6378;

  /* Status */
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.1);
  --cyan: #0ea5e9;
  --cyan-soft: rgba(14, 165, 233, 0.1);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.85);

  /* Fonts */
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Smooth Easing */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   RESET & TYPOGRAPHY
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-hyphens: none !important;
  -moz-hyphens: none !important;
  -ms-hyphens: none !important;
  hyphens: none !important;
  -webkit-user-drag: none;
  user-drag: none;
}

html {
  background-color: var(--bg-void);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  max-width: 100%;
  -webkit-hyphens: none !important;
  -moz-hyphens: none !important;
  -ms-hyphens: none !important;
  hyphens: none !important;
}

body {
  font-family: var(--font-main);
  font-size: 1rem;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--bg-void);
  color: var(--text);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 72px;

  /* Global selection & copy lockout */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  word-break: normal;
  overflow-wrap: normal;
}

[id] {
  scroll-margin-top: 84px;
}

/* Prevent mobile browsers from auto-zooming viewport scale when focusing inputs */
@media (max-width: 768px) {
  input, select, textarea, .form-control {
    font-size: 16px !important;
  }
}

main {
  flex-grow: 1;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
  background: #222736;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   ELEGANT CAD BACKGROUND
   ========================================================================== */
.bg-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-ambient-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(230, 57, 70, 0.035) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 85%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
}

.bg-cad-grid {
  position: absolute;
  inset: 0;
  background-size: 32px 32px, 160px 160px;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(to right, rgba(56, 189, 248, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.09) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at 50% 25%, black 45%, rgba(0, 0, 0, 0.5) 80%, transparent 98%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 25%, black 45%, rgba(0, 0, 0, 0.5) 80%, transparent 98%);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ==========================================================================
   BADGES
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-red {
  background: var(--accent-soft);
  color: #ff6b6b;
  border: 1px solid rgba(230, 57, 70, 0.3);
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-cyan {
  background: var(--cyan-soft);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-green {
  background: var(--success-soft);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-gray,
.badge-secondary {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  text-align: center;
  position: relative;
  letter-spacing: 0.01em;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.2;
}

.btn svg {
  flex-shrink: 0;
}

/* Только сброс системного вида кнопки: размер шрифта и интерлиньяж задают классы .btn-*,
   иначе <button class="btn"> выглядит крупнее и выше, чем <a class="btn"> рядом */
button.btn,
input[type="submit"].btn {
  font-family: var(--font-main);
  -webkit-appearance: none;
  appearance: none;
}

.btn-primary {
  padding: 12px 26px;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230, 57, 70, 0.55);
  color: #ffffff;
}

.btn-gold {
  padding: 12px 26px;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #d4af37 0%, #b89222 100%);
  color: #0b0c10;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.5);
  color: #000000;
}

.btn-secondary {
  padding: 11px 22px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline-red {
  padding: 11px 22px;
  font-size: 0.88rem;
  background: transparent;
  color: #ff6b6b;
  border: 1px solid rgba(230, 57, 70, 0.4);
}

.btn-outline-red:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-telegram {
  background: linear-gradient(135deg, #24A1DE 0%, #1783b7 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(36, 161, 222, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(36, 161, 222, 0.55);
  color: #ffffff;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
  color: #ffffff;
}

.btn-max {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-max:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.55);
  color: #ffffff;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
/* ==========================================================================
   HEADER (Luxury Floating Glassmorphism Dock)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(9, 12, 20, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  transition: none !important;
  transform: none !important;
  contain: none !important;
}

.header .container {
  max-width: 1440px;
  width: 100%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.92;
}

.logo img {
  width: 41px;
  height: 34px;
  aspect-ratio: 137 / 114;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.logo-brand {
  display: flex;
  flex-direction: column;
  white-space: nowrap !important;
}

.logo-title {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap !important;
}

.logo-title span {
  color: var(--accent, #e63946);
  font-weight: 900;
}

.logo-subtitle {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.2;
  white-space: nowrap !important;
}

/* В хедере и футере сайта логотип ВСЕГДА светлый (белый текст и белые крылья),
   так как шапка и подвал сайта всегда на темно-синем фоне #0d1117 независимо от темы */
.logo img,
.header .logo img,
header.header .logo img,
.footer .logo img,
footer .logo img {
  content: normal !important;
}

.logo-title,
.header .logo-title,
header.header .logo-title,
.footer .logo-title,
footer .logo-title {
  color: #ffffff !important;
}

.logo-title span,
.header .logo-title span,
header.header .logo-title span,
.footer .logo-title span,
footer .logo-title span {
  color: var(--accent, #e63946) !important;
}

.logo-subtitle,
.header .logo-subtitle,
header.header .logo-subtitle,
.footer .logo-subtitle,
footer .logo-subtitle {
  color: #8b949e !important;
}

.logo-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

/* Верхнее меню: одна плоская плашка, пункты во всю её высоту.
   Выбранная страница заливает свою ячейку до краёв (у крайних — до скругления),
   без объёмных теней; снизу — рубиновая линия. Стили только внутри .nav-links:
   у пунктов мобильного меню тот же класс .nav-link */
.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.nav-links li {
  display: flex;
  position: relative;
  z-index: 2;
}

/* Тонкие разделители между пунктами; рядом с выбранным и наведённым пропадают */
.nav-links li+li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
  transition: opacity 0.2s ease;
}

.nav-links li:hover::before,
.nav-links li:hover+li::before,
.nav-links li:has(> .nav-link.active)::before,
.nav-links li:has(> .nav-link.active)+li::before,
.nav-links li.has-active::before,
.nav-links li.has-active+li::before {
  opacity: 0;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.22s var(--ease-smooth), background-color 0.22s var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  position: relative;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links .nav-link {
  height: 100%;
  padding: 0 16px;
  border-radius: 0;
}

.nav-links .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #ff6b6b);
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.6);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.nav-links .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
}

.nav-links .nav-link:hover::after {
  opacity: 0.55;
}

.nav-links .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links .nav-link.active::after {
  opacity: 1;
}

.nav-links .nav-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-actions .btn,
.header-actions .btn-sm {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0 14px;
  font-size: 0.78rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.header-actions .btn-primary {
  border-color: rgba(230, 57, 70, 0.45);
}

.header-actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.14);
}

.header-actions .btn-outline-red {
  border-color: rgba(230, 57, 70, 0.45);
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  z-index: 1002;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.burger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.mobile-menu-btn.active .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-drawer {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 9, 15, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 20px 22px 36px;
  gap: 12px;
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav-drawer.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-links .nav-link {
  font-size: 1.02rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: normal;
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Полоса слева — тенью, а не рамкой: рамка сдвигала бы текст активного пункта */
.mobile-nav-links .nav-link.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.mobile-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-actions .btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.92rem;
  text-align: center;
  justify-content: center;
  gap: 0;
}

.mobile-nav-actions .btn svg {
  display: none !important;
}

.mobile-nav-contact {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

.mobile-nav-contact a {
  color: #38bdf8;
  text-decoration: underline;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 100px 0 75px;
  overflow: hidden;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

@keyframes heroFadeDown {
  0% {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  animation: heroFadeDown 0.8s var(--ease-smooth) 0.1s backwards;
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.14;
  color: #ffffff;
  margin-bottom: 22px;
  animation: heroFadeDown 0.9s var(--ease-smooth) 0.25s backwards;
}

.hero-title .text-accent {
  color: #ff4d5a;
}

.hero-title .text-gold {
  color: var(--gold-light);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 740px;
  margin: 0 auto 36px;
  font-weight: 400;
  animation: heroFadeDown 1s var(--ease-smooth) 0.4s backwards;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  animation: heroFadeDown 1.1s var(--ease-smooth) 0.55s backwards;
}

.hero-cta .btn {
  width: auto;
  min-width: 260px;
  height: 54px;
  min-height: 54px;
  padding: 0 28px;
  font-size: 0.94rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.hero-cta .btn-primary {
  border-color: rgba(230, 57, 70, 0.45);
}

.hero-cta .btn-gold {
  border-color: rgba(212, 175, 55, 0.45);
}

.hero-cta .btn-secondary {
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  margin: 0 auto 36px;
  opacity: 0.6;
}

/* 4 Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 1040px;
  margin: 0 auto;
  animation: heroFadeDown 1.2s var(--ease-smooth) 0.7s backwards;
}

.metric-tile {
  background: var(--bg-card);
  padding: 22px 16px;
  text-align: center;
  transition: var(--transition);
}

.metric-tile:hover {
  background: var(--bg-card-hover);
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.metric-num.c-cyan {
  color: #7dd3fc;
}

.metric-num.c-green {
  color: #86efac;
}

.metric-num.c-red {
  color: #fca5a5;
}

.metric-num.c-gold {
  color: #fde68a;
}

.metric-asterisk {
  font-size: 0.9rem;
  color: #7dd3fc;
  vertical-align: super;
  font-weight: 600;
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Footnotes for Asterisk Claims */
.metrics-footnotes {
  max-width: 1040px;
  margin: 12px auto 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  text-align: left;
  animation: heroFadeDown 1.2s var(--ease-smooth) 0.8s backwards;
}

.footnote-item {
  font-size: 0.73rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.fn-star {
  color: #7dd3fc;
  font-weight: 700;
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  -webkit-font-feature-settings: "liga" 0, "calt" 0;
  font-feature-settings: "liga" 0, "calt" 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.footnote-item strong {
  color: var(--text-muted);
}

/* ==========================================================================
   PAGE HEADERS (Sub-pages)
   ========================================================================== */
.page-header {
  position: relative;
  padding: 64px 0 44px;
  overflow: hidden;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 100% 70% at 50% 0%, rgba(230, 57, 70, 0.06) 0%, transparent 60%);
}

.page-header .container {
  text-align: center;
  position: relative;
  z-index: 2;
  animation: heroFadeDown 0.8s var(--ease-smooth) 0.1s backwards;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.page-title {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  margin-bottom: 10px;
}

.page-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  position: relative;
  padding: 80px 0;
  z-index: 1;
}

.section-alt {
  background: rgba(255, 255, 255, 0.012);
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 48px;
}

.section-badge {
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.3rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   REALISTIC CAD BLUEPRINT SHOWCASE (Replacing crude divs)
   ========================================================================== */
.demo-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}

.demo-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-r {
  background: #ff5f57;
}

.dot-y {
  background: #ffbd2e;
}

.dot-g {
  background: #28ca41;
}

.demo-path {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.demo-body {
  display: grid;
  grid-template-columns: 65% 35%;
}

.demo-canvas-side {
  padding: 24px 20px;
  background: #080a10;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  min-height: 400px;
  position: relative;
}

/* CAD Blueprint Container */
.cad-blueprint-view {
  width: 100%;
  max-width: 680px;
  background: #05070d;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.85);
}

.cad-blueprint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.cad-blueprint-svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: #070912;
}

/* Laser Scanning Beam Line */
.cad-scan-line {
  position: absolute;
  top: 40px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ff3344 50%, transparent 100%);
  box-shadow: 0 0 10px #ff3344;
  opacity: 0;
  pointer-events: none;
  transition: top 1.4s ease-in-out, opacity 0.3s;
}

.cad-scan-line.scanning {
  opacity: 1;
  top: calc(100% - 40px);
}

.cad-kpi-badge {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold-light);
  text-align: center;
  margin-top: 6px;
  transition: color 0.4s ease;
}

/* Демо-раскладка: координаты в мм, каждая деталь летит из позиции «вручную» в позицию YuppCAD */
.nest-demo .nest-sheet {
  fill: rgba(8, 12, 20, 0.6);
  stroke: #2a324b;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.nest-demo .np {
  transform-box: view-box;
  transform-origin: 0 0;
  transform: translate(var(--bx), var(--by)) rotate(var(--br));
  transition:
    transform 1.1s cubic-bezier(0.65, 0, 0.35, 1) var(--d),
    opacity 0.5s ease var(--d);
}

.nest-demo.is-nested .np {
  transform: translate(var(--ax), var(--ay)) rotate(var(--ar));
}

/* Не поместились при ручной раскладке — ждут за краем листа */
.nest-demo .np-out {
  opacity: 0;
}

.nest-demo.is-nested .np-out {
  opacity: 1;
}

/* Цвета деталей заданы атрибутами в <defs>: стили документа внутрь <use> не попадают */
.nest-demo .nest-remnant {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.nest-demo.is-nested .nest-remnant {
  opacity: 1;
  transition-delay: 1.9s;
}

.nest-demo .nest-remnant rect {
  fill: rgba(134, 239, 172, 0.04);
  stroke: #86efac;
  stroke-width: 1;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}

.nest-demo .nest-remnant text {
  fill: #86efac;
  font-family: var(--font-mono);
  font-size: 66px;
  font-weight: 700;
  text-anchor: middle;
  letter-spacing: 2px;
}

.nest-demo .nest-remnant .nest-remnant-size {
  font-size: 58px;
  font-weight: 500;
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {

  .nest-demo .np,
  .nest-demo .nest-remnant {
    transition: none;
  }
}

.demo-info-side {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 18px;
}

.demo-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.demo-feature-item .fi-icon {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 700;
}

.demo-feature-item strong {
  color: #ffffff;
}

/* ==========================================================================
   ROI / METAL SAVINGS CALCULATOR
/* ==========================================================================
   ROI / METAL SAVINGS CALCULATOR (Strict Industrial Design)
   ========================================================================== */
.roi-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.roi-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.roi-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roi-input-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.roi-input-card:hover {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 42, 0.65);
}

.roi-field-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.roi-field-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.roi-field-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.roi-field-hint {
  font-size: 0.72rem;
  color: var(--text-dim, #94a3b8);
  line-height: 1.25;
}

.roi-field-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* Strict Segmented Preset Controls */
.metal-preset-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px;
  margin-top: 2px;
}

.metal-preset-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 5px 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}

.metal-preset-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.metal-preset-btn.active {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Strict Range Sliders: Clean B2B Engineering Precision */
.roi-input-card input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #1e293b;
  border: none;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 6px 0 3px 0;
}

.roi-input-card input[type=range]:focus {
  outline: none;
}

.roi-input-card input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2px solid #0b0f19;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4), 0 2px 5px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.roi-input-card input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #7dd3fc;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.6), 0 2px 7px rgba(0, 0, 0, 0.8);
}

.roi-input-card input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2px solid #0b0f19;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4), 0 2px 5px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.roi-input-card input[type=range]::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: #7dd3fc;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.6), 0 2px 7px rgba(0, 0, 0, 0.8);
}

/* Right Result Box: Strict Corporate Audit */
.roi-result-box {
  background: rgba(11, 15, 25, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.roi-audit-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.roi-audit-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.roi-audit-subtitle {
  font-size: 0.73rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.roi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.roi-row:last-of-type {
  border-bottom: none;
}

.roi-row-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.roi-row-val {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 700;
  color: #f1f5f9;
}

/* Speed & Retention Card (Official B2B style) */
.roi-priceless-card {
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  position: relative;
  transition: border-color 0.2s ease;
}

.roi-priceless-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.roi-priceless-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-xs);
  padding: 2px 8px;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.roi-priceless-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 4px;
}

.roi-priceless-title .roi-priceless-cyan {
  color: #38bdf8;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.roi-priceless-desc {
  font-size: 0.73rem;
  color: var(--text-dim, #94a3b8);
  line-height: 1.45;
  margin: 0;
}

.roi-total-card {
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.roi-total-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.roi-total-val {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
}

@media (max-width: 900px) {
  .roi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   UNIFIED 3-TIER PRICING MATRIX (Pure, Flat, Ultra-Luxurious)
   ========================================================================== */
.pricing-single-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 992px) {
  .pricing-single-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
    padding-top: 26px;
    padding-bottom: 20px;
  }
}

@media (max-width: 991px) {
  .pricing-single-container {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 480px;
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  min-width: 0;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* Центральная акцентная карточка (1 Год) - на одной высоте со всеми, выделена и визуально увеличена для привлечения внимания */
.pricing-card.featured {
  border: 2px solid rgba(212, 175, 55, 0.75);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, rgba(18, 22, 31, 0.98) 60%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 40px rgba(212, 175, 55, 0.22);
  position: relative;
  z-index: 2;
  padding: 32px 26px;
}

@media (min-width: 992px) {
  .pricing-card.featured {
    transform: scale(1.035);
    z-index: 3;
    margin-top: 0;
    margin-bottom: 0;
  }

  .pricing-card.featured:hover {
    border-color: var(--gold);
    box-shadow: 0 26px 65px rgba(0, 0, 0, 0.9), 0 0 55px rgba(212, 175, 55, 0.4);
    transform: scale(1.05) translateY(-4px);
  }
}

.pricing-ribbon {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold) 0%, #a8841a 100%);
  color: #050608;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-badge-tier {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.pricing-badge-tier.red {
  background: var(--accent-soft);
  color: #ff6b6b;
}

.pricing-badge-tier.gold {
  background: var(--gold-soft);
  color: var(--gold-light);
}

.pricing-badge-tier.cyan {
  background: var(--cyan-soft);
  color: #38bdf8;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.pricing-card.featured .plan-name {
  font-size: 1.35rem;
}

.plan-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  min-height: 44px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.plan-badge-slot {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.plan-price-wrap {
  margin-bottom: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.plan-price {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.plan-price.text-accent {
  color: #ff5252;
}

.plan-period {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  flex: 1 1 auto;
  padding: 0;
}

/* ==========================================================================
   PRICING CARD FOOTER & BUTTON ALIGNMENT
   - Подписки и Enterprise: строго на одной высоте (48px)
   - Год: чуть больше (56px) и идеально отцентрирована по вертикали
   ========================================================================== */
.pricing-card-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.pricing-card .btn-card-action {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0 16px;
  line-height: 1;
}

.pricing-card.featured .btn-card-action.btn-card-action-lg {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
}

.pricing-card-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  min-height: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .pricing-card.featured .pricing-card-note {
    margin-top: 10px;
  }
}

.pricing-card-note-link {
  cursor: pointer;
  transition: var(--transition);
}

.pricing-card-note-link:hover {
  color: #ffffff;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  text-align: left;
  min-height: 40px;
}

.plan-feature .chk {
  color: var(--success);
  flex-shrink: 0;
  font-weight: 800;
  line-height: 1.5;
  width: 14px;
  text-align: center;
}

.plan-feature-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  display: block;
}

.plan-feature-text strong {
  color: #ffffff;
  font-weight: 600;
}

/* Period Switcher inside Subscription Card */
.sub-period-pills {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
  margin-bottom: 14px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  box-sizing: border-box;
  align-items: center;
}

.sub-pill-btn {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.sub-pill-btn.active {
  background: var(--accent);
  color: #ffffff;
}

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 36px;
}

.comparison-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1px solid var(--border);
}

.comparison-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  color: var(--text);
  font-weight: 600;
}

.comparison-table .table-sub {
  font-size: 0.78em;
  font-weight: normal;
  opacity: 0.85;
}

.comparison-table th .table-sub {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
}

.comparison-table td:first-child .table-sub {
  font-size: 0.85em;
  font-weight: normal;
  color: var(--text-muted);
}

.table-disclaimer {
  margin-top: 14px;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-dim);
  padding: 0 4px;
}

/* ==========================================================================
   FEATURES GRID
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon-wrap.red {
  background: var(--accent-soft);
  color: #ff6b6b;
  border: 1px solid rgba(230, 57, 70, 0.2);
}

.feature-icon-wrap.gold {
  background: var(--gold-soft);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.feature-icon-wrap.cyan {
  background: var(--cyan-soft);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.feature-icon-wrap.green {
  background: var(--success-soft);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-icon-wrap.blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   5-CARD ENTERPRISE GRID (3 on top row, 2 centered in-between on bottom row)
   ========================================================================== */
.features-grid-5 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.features-grid-5 .feature-card {
  grid-column: span 2;
}

.features-grid-5 .feature-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.features-grid-5 .feature-card:nth-child(5) {
  grid-column: 4 / span 2;
}

@media (max-width: 960px) {
  .features-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid-5 .feature-card {
    grid-column: span 1;
  }

  .features-grid-5 .feature-card:nth-child(4) {
    grid-column: span 1;
  }

  .features-grid-5 .feature-card:nth-child(5) {
    grid-column: span 2;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .features-grid-5 {
    grid-template-columns: 1fr;
  }

  .features-grid-5 .feature-card,
  .features-grid-5 .feature-card:nth-child(4),
  .features-grid-5 .feature-card:nth-child(5) {
    grid-column: span 1;
    max-width: none;
    margin: 0;
  }
}

/* ==========================================================================
   OFFICIAL INDUSTRIAL FEATURES GRID (MINIMALIST & ANIMATED 3x2)
   ========================================================================== */
.official-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.official-feature-card {
  background: linear-gradient(180deg, rgba(20, 25, 38, 0.75) 0%, rgba(12, 16, 25, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Mouse Spotlight Effect */
.official-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(230, 57, 70, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.official-feature-card:hover::before {
  opacity: 1;
}

.official-feature-card:hover,
.section.revealed .official-feature-card:hover,
#productionFeaturesSection.revealed .official-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
}

/* Visual Animation Stage */
.feat-anim-stage {
  height: 145px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, rgba(5, 7, 12, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  z-index: 2;
}

.feat-stage-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Card Body */
.feat-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  z-index: 2;
}

.feat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.official-metric-pill {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(230, 57, 70, 0.08);
  color: #ff6b6b;
  border: 1px solid rgba(230, 57, 70, 0.2);
}

.official-metric-pill.cyan {
  background: rgba(14, 165, 233, 0.08);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.2);
}

.official-metric-pill.gold {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.2);
}

.official-metric-pill.green {
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
}

.official-metric-pill.amber {
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
}

.official-metric-pill.blue {
  background: rgba(99, 102, 241, 0.08);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.2);
}

.feat-card-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--titanium);
  opacity: 0.6;
}

.official-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 8px;
}

.official-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

/* ==========================================================================
   MICRO-ANIMATION BASE RESTING STATES (CALM BY DEFAULT)
   ========================================================================== */

/* 1. Comb Interlocking Resting State (Сетчатая раскладка друг над другом) */
.interlock-comb-top {
  transform: translateY(-16px);
  transition: transform 0.5s var(--ease-smooth);
}

.interlock-comb-bot {
  transform: translateY(16px);
  transition: transform 0.5s var(--ease-smooth);
}

.interlock-seam-glow {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* 2. DXF Auto-Heal Resting State (Микро-разрывы на поворотах) */
.heal-scanner-beam {
  transform: translateX(35px);
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

.heal-corner-bridge-1,
.heal-corner-bridge-2 {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.heal-corner-spark-1,
.heal-corner-spark-2 {
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 4px #38bdf8);
}

.heal-gap-dot-t1-a,
.heal-gap-dot-t1-b,
.heal-gap-dot-t2-a,
.heal-gap-dot-t2-b {
  fill: #ff4d5a;
  transition: fill 0.3s ease, opacity 0.3s ease;
}

.heal-corner-tag-1,
.heal-corner-tag-2 {
  fill: #ff4d5a;
  transition: fill 0.3s ease;
}

.heal-closed-contour-glow {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* 3. Laser Marking & Thermal Label Resting State */
.laser-mark-spark {
  opacity: 0;
  transform-origin: 32px 91px;
}

.laser-mark-text {
  opacity: 0.75;
  transition: opacity 0.4s ease;
}

.barcode-scan-laser {
  opacity: 0;
  transform: translateY(0);
}

.thermal-label-sticker {
  transform: translateY(0);
  transition: transform 0.4s var(--ease-smooth);
}

/* 4. Smart Remnant Resting State (Обводка дела) */
.remnant-laser-cut-seam {
  opacity: 0;
  stroke-dasharray: 98;
  stroke-dashoffset: 98;
  transition: opacity 0.3s ease;
}

.remnant-stock-sheet {
  transform: none !important;
}

.remnant-contour-trace {
  stroke-dasharray: 474;
  stroke-dashoffset: 474;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.remnant-dim-arrow,
.remnant-dim-label {
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.remnant-badge-frame {
  transition: filter 0.4s ease, stroke 0.4s ease;
}

/* 5. Precision 1° Rotation & Manual Docking Resting State */
.manual-docking-part-carrier {
  transform-origin: 200px 65px;
  transform: rotate(0deg);
  transition: transform 0.4s var(--ease-smooth);
}

.manual-arc-track {
  stroke-dasharray: 21;
  stroke-dashoffset: 21;
  opacity: 0.2;
  transition: opacity 0.4s ease;
}

.manual-angle-badge-box {
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.manual-cad-mouse-cursor {
  transform: translate(222px, 85px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.manual-snap-ring {
  opacity: 0;
  transform-origin: 91px 65px;
  transform: scale(0.5);
}

.manual-dock-target-rect {
  stroke: rgba(56, 189, 248, 0.35);
}

/* 6. Instant Cloud CNC Dispatch Resting State */
.cnc-stream-line {
  stroke: rgba(56, 189, 248, 0.35);
  stroke-dasharray: 4 3;
  animation: cncLineStream 3.6s linear infinite;
  transition: stroke 0.4s ease, filter 0.4s ease;
}

.cnc-data-pulse {
  opacity: 0;
}

.cnc-target {
  opacity: 0.7;
  filter: none;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.cnc-chip-rect {
  transition: stroke 0.4s ease, fill 0.4s ease;
}

.cnc-wasm-led {
  fill: #38bdf8;
  transition: filter 0.3s ease;
}

/* ==========================================================================
   ACTIVATE ANIMATIONS ONLY ON HOVER (OR TOUCH ACTIVE)
   ========================================================================== */

/* 1. Comb Interlocking */
.official-feature-card:hover .interlock-comb-top,
.official-feature-card.is-hovered .interlock-comb-top {
  animation: combInterlockTop 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.official-feature-card:hover .interlock-comb-bot,
.official-feature-card.is-hovered .interlock-comb-bot {
  animation: combInterlockBot 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.official-feature-card:hover .interlock-seam-glow,
.official-feature-card.is-hovered .interlock-seam-glow {
  animation: combSeamPulse 2.8s ease infinite;
}

/* 2. DXF Auto-Heal (Сшивание на поворотах) */
.official-feature-card:hover .heal-scanner-beam,
.official-feature-card.is-hovered .heal-scanner-beam {
  animation: healScannerSweep 2.6s linear infinite;
}

.official-feature-card:hover .heal-corner-bridge-1,
.official-feature-card.is-hovered .heal-corner-bridge-1 {
  animation: healBridgeCorner1 2.6s ease infinite;
}

.official-feature-card:hover .heal-corner-bridge-2,
.official-feature-card.is-hovered .heal-corner-bridge-2 {
  animation: healBridgeCorner2 2.6s ease infinite;
}

.official-feature-card:hover .heal-corner-spark-1,
.official-feature-card.is-hovered .heal-corner-spark-1 {
  animation: healSparkCorner1 2.6s ease infinite;
}

.official-feature-card:hover .heal-corner-spark-2,
.official-feature-card.is-hovered .heal-corner-spark-2 {
  animation: healSparkCorner2 2.6s ease infinite;
}

.official-feature-card:hover .heal-gap-dot-t1-a,
.official-feature-card:hover .heal-gap-dot-t1-b,
.official-feature-card.is-hovered .heal-gap-dot-t1-a,
.official-feature-card.is-hovered .heal-gap-dot-t1-b {
  animation: healDotsTurn1 2.6s ease infinite;
}

.official-feature-card:hover .heal-gap-dot-t2-a,
.official-feature-card:hover .heal-gap-dot-t2-b,
.official-feature-card.is-hovered .heal-gap-dot-t2-a,
.official-feature-card.is-hovered .heal-gap-dot-t2-b {
  animation: healDotsTurn2 2.6s ease infinite;
}

.official-feature-card:hover .heal-corner-tag-1,
.official-feature-card.is-hovered .heal-corner-tag-1 {
  animation: healTagTurn1 2.6s ease infinite;
}

.official-feature-card:hover .heal-corner-tag-2,
.official-feature-card.is-hovered .heal-corner-tag-2 {
  animation: healTagTurn2 2.6s ease infinite;
}

.official-feature-card:hover .heal-closed-contour-glow,
.official-feature-card.is-hovered .heal-closed-contour-glow {
  animation: healClosedContourPulse 2.6s ease infinite;
}

/* 3. Laser Marking & Thermal Label */
.official-feature-card:hover .laser-mark-spark,
.official-feature-card.is-hovered .laser-mark-spark {
  animation: laserMarkSparkMove 2.6s ease infinite;
}

.official-feature-card:hover .laser-mark-text,
.official-feature-card.is-hovered .laser-mark-text {
  animation: laserMarkTextGlow 2.6s ease infinite;
}

.official-feature-card:hover .barcode-scan-laser,
.official-feature-card.is-hovered .barcode-scan-laser {
  animation: barcodeScanSweep 2.6s ease-in-out infinite;
}

.official-feature-card:hover .thermal-label-sticker,
.official-feature-card.is-hovered .thermal-label-sticker {
  animation: labelSlightFeed 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* 4. Smart Remnant (Плавный рез и лазерная обводка остатка) */
.official-feature-card:hover .remnant-laser-cut-seam,
.official-feature-card.is-hovered .remnant-laser-cut-seam {
  animation: remnantSeamDraw 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.official-feature-card:hover .remnant-contour-trace,
.official-feature-card.is-hovered .remnant-contour-trace {
  animation: remnantContourTrace 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.official-feature-card:hover .remnant-sheet-plate,
.official-feature-card.is-hovered .remnant-sheet-plate {
  animation: remnantPlateGlow 3.6s ease infinite;
}

.official-feature-card:hover .remnant-dim-arrow,
.official-feature-card:hover .remnant-dim-label,
.official-feature-card.is-hovered .remnant-dim-arrow,
.official-feature-card.is-hovered .remnant-dim-label {
  animation: remnantDimsGlow 3.6s ease infinite;
}

.official-feature-card:hover .remnant-badge-frame,
.official-feature-card.is-hovered .remnant-badge-frame {
  animation: remnantBadgePulse 3.6s ease infinite;
}

/* 5. Precision 1° Rotation & Manual Docking (Захват, юстировка 1° и snap в карман) */
.official-feature-card:hover .manual-cad-mouse-cursor,
.official-feature-card.is-hovered .manual-cad-mouse-cursor {
  animation: cadCursorNesting 3.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.official-feature-card:hover .manual-docking-part-carrier,
.official-feature-card.is-hovered .manual-docking-part-carrier {
  animation: manualPartDockFlow 3.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.official-feature-card:hover .manual-arc-track,
.official-feature-card.is-hovered .manual-arc-track {
  animation: manualAngleArcSweep 3.4s ease infinite;
}

.official-feature-card:hover .manual-angle-badge-box,
.official-feature-card.is-hovered .manual-angle-badge-box {
  animation: manualAngleBadgePulse 3.4s ease infinite;
}

.official-feature-card:hover .manual-snap-ring,
.official-feature-card.is-hovered .manual-snap-ring {
  animation: manualSnapRingBurst 3.4s ease infinite;
}

.official-feature-card:hover .manual-dock-target-rect,
.official-feature-card.is-hovered .manual-dock-target-rect {
  animation: manualTargetGlow 3.4s ease infinite;
}

/* 6. Instant Cloud CNC Dispatch (Передача данных и экспорт в ЧПУ) */
.official-feature-card:hover .cnc-stream-line,
.official-feature-card.is-hovered .cnc-stream-line {
  stroke: #38bdf8;
  filter: none;
  animation: cncLineStream 2.4s linear infinite;
}

.official-feature-card:hover .cnc-pulse-1,
.official-feature-card.is-hovered .cnc-pulse-1 {
  animation: cncDataPulse1 2.8s ease-in-out infinite;
}

.official-feature-card:hover .cnc-pulse-2,
.official-feature-card.is-hovered .cnc-pulse-2 {
  animation: cncDataPulse2 2.8s ease-in-out 0.4s infinite;
}

.official-feature-card:hover .cnc-pulse-3,
.official-feature-card.is-hovered .cnc-pulse-3 {
  animation: cncDataPulse3 2.8s ease-in-out 0.8s infinite;
}

.official-feature-card:hover .cnc-target-1,
.official-feature-card.is-hovered .cnc-target-1 {
  animation: cncTargetGlow 2.8s ease infinite;
}

.official-feature-card:hover .cnc-target-2,
.official-feature-card.is-hovered .cnc-target-2 {
  animation: cncTargetGlow 2.8s ease 0.4s infinite;
}

.official-feature-card:hover .cnc-target-3,
.official-feature-card.is-hovered .cnc-target-3 {
  animation: cncTargetGlow 2.8s ease 0.8s infinite;
}

.official-feature-card:hover .cnc-hub-rect,
.official-feature-card.is-hovered .cnc-hub-rect {
  stroke: #38bdf8;
  filter: none;
}

.official-feature-card:hover .cnc-wasm-led,
.official-feature-card.is-hovered .cnc-wasm-led {
  animation: cncTxLedBlink 1.4s ease-in-out infinite alternate;
}

/* ==========================================================================
   MICRO-ANIMATION KEYFRAME SEQUENCES
   ========================================================================== */

/* 1. Comb Interlocking */
@keyframes combInterlockTop {
  0% {
    transform: translateY(-16px);
  }

  34%,
  78% {
    transform: translateY(0);
  }

  92%,
  100% {
    transform: translateY(-16px);
  }
}

@keyframes combInterlockBot {
  0% {
    transform: translateY(16px);
  }

  34%,
  78% {
    transform: translateY(0);
  }

  92%,
  100% {
    transform: translateY(16px);
  }
}

@keyframes combSeamPulse {

  0%,
  30% {
    opacity: 0;
  }

  38%,
  76% {
    opacity: 1;
    filter: drop-shadow(0 0 5px #38bdf8);
  }

  88%,
  100% {
    opacity: 0;
  }
}

/* 2. DXF Auto-Heal (Сшивание микро-разрывов на поворотах) */
@keyframes healScannerSweep {
  0% {
    transform: translateX(35px);
    opacity: 0.95;
  }

  75% {
    transform: translateX(245px);
    opacity: 0.95;
  }

  78% {
    transform: translateX(248px);
    opacity: 0;
  }

  82%,
  94% {
    transform: translateX(35px);
    opacity: 0;
  }

  100% {
    transform: translateX(35px);
    opacity: 0.95;
  }
}

@keyframes healBridgeCorner1 {

  0%,
  7% {
    opacity: 0;
  }

  10%,
  88% {
    opacity: 1;
  }

  94%,
  100% {
    opacity: 0;
  }
}

@keyframes healBridgeCorner2 {

  0%,
  67% {
    opacity: 0;
  }

  70%,
  88% {
    opacity: 1;
  }

  94%,
  100% {
    opacity: 0;
  }
}

@keyframes healSparkCorner1 {

  0%,
  6.5% {
    opacity: 0;
  }

  8.5% {
    opacity: 1;
  }

  11.5%,
  100% {
    opacity: 0;
  }
}

@keyframes healSparkCorner2 {

  0%,
  67% {
    opacity: 0;
  }

  69% {
    opacity: 1;
  }

  72%,
  100% {
    opacity: 0;
  }
}

@keyframes healDotsTurn1 {

  0%,
  7% {
    fill: #ff4d5a;
    opacity: 1;
  }

  11%,
  88% {
    fill: #38bdf8;
    opacity: 0.35;
  }

  94%,
  100% {
    fill: #ff4d5a;
    opacity: 1;
  }
}

@keyframes healDotsTurn2 {

  0%,
  67% {
    fill: #ff4d5a;
    opacity: 1;
  }

  71%,
  88% {
    fill: #38bdf8;
    opacity: 0.35;
  }

  94%,
  100% {
    fill: #ff4d5a;
    opacity: 1;
  }
}

@keyframes healTagTurn1 {

  0%,
  7% {
    fill: #ff4d5a;
    opacity: 0.85;
  }

  11%,
  88% {
    fill: #38bdf8;
    opacity: 1;
  }

  94%,
  100% {
    fill: #ff4d5a;
    opacity: 0.85;
  }
}

@keyframes healTagTurn2 {

  0%,
  67% {
    fill: #ff4d5a;
    opacity: 0.85;
  }

  71%,
  88% {
    fill: #38bdf8;
    opacity: 1;
  }

  94%,
  100% {
    fill: #ff4d5a;
    opacity: 0.85;
  }
}

@keyframes healClosedContourPulse {

  0%,
  73% {
    opacity: 0;
  }

  77%,
  88% {
    opacity: 0.85;
  }

  94%,
  100% {
    opacity: 0;
  }
}

/* 3. Laser Marking & Thermal Label Printing */
@keyframes laserMarkBeamPulse {

  0%,
  18% {
    opacity: 0;
    stroke-width: 1;
  }

  25%,
  68% {
    opacity: 1;
    stroke-width: 1.6;
  }

  78%,
  100% {
    opacity: 0;
    stroke-width: 1;
  }
}

@keyframes laserMarkSparkMove {

  0%,
  18% {
    opacity: 0;
    transform: translateX(0);
  }

  24% {
    opacity: 1;
    transform: translateX(0);
  }

  64% {
    opacity: 1;
    transform: translateX(28px);
  }

  72%,
  100% {
    opacity: 0;
    transform: translateX(28px);
  }
}

@keyframes laserMarkTextGlow {

  0%,
  20% {
    opacity: 0.65;
    fill: #38bdf8;
    filter: none;
  }

  30%,
  72% {
    opacity: 1;
    fill: #ffffff;
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.7));
  }

  85%,
  100% {
    opacity: 0.65;
    fill: #38bdf8;
    filter: none;
  }
}

@keyframes barcodeScanSweep {

  0%,
  25% {
    opacity: 0;
    transform: translateY(0);
  }

  30% {
    opacity: 0.95;
  }

  68% {
    opacity: 0.95;
    transform: translateY(22px);
  }

  75%,
  100% {
    opacity: 0;
    transform: translateY(22px);
  }
}

@keyframes labelSlightFeed {
  0% {
    transform: translateY(0);
  }

  30%,
  75% {
    transform: translateY(2px);
  }

  90%,
  100% {
    transform: translateY(0);
  }
}

/* 4. Smart Remnant (Плавный рез и лазерная обводка контура) */
@keyframes remnantSeamDraw {
  0% {
    stroke-dashoffset: 98;
    opacity: 0;
  }

  4% {
    opacity: 1;
    stroke-dashoffset: 98;
  }

  28% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  85% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  92%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes remnantContourTrace {
  0%,
  26% {
    stroke-dashoffset: 474;
    opacity: 0;
  }

  28% {
    stroke-dashoffset: 474;
    opacity: 1;
  }

  64% {
    stroke-dashoffset: 0;
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.7));
  }

  85% {
    stroke-dashoffset: 0;
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.7));
  }

  92%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes remnantPlateGlow {
  0%,
  30% {
    fill: rgba(212, 175, 55, 0.08);
  }

  64%,
  85% {
    fill: rgba(212, 175, 55, 0.16);
  }

  92%,
  100% {
    fill: rgba(212, 175, 55, 0.08);
  }
}

@keyframes remnantDimsGlow {
  0%,
  45% {
    opacity: 0.35;
    filter: none;
  }

  64%,
  85% {
    opacity: 1;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.6));
  }

  92%,
  100% {
    opacity: 0.35;
    filter: none;
  }
}

@keyframes remnantBadgePulse {
  0%,
  50% {
    stroke: rgba(212, 175, 55, 0.45);
    filter: none;
  }

  64%,
  85% {
    stroke: var(--gold, #d4af37);
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.8));
  }

  92%,
  100% {
    stroke: rgba(212, 175, 55, 0.45);
    filter: none;
  }
}

/* 5. Precision 1° Rotation & Manual Docking (Захват, поворот на 45° и snap в карман) */
@keyframes cadCursorNesting {
  0% {
    transform: translate(222px, 85px);
    opacity: 0;
  }

  8% {
    transform: translate(216px, 83px);
    opacity: 1;
  }

  16%,
  36% {
    transform: translate(200px, 65px);
    opacity: 1;
  }

  46% {
    transform: translate(200px, 65px);
    opacity: 1;
  }

  70%,
  78% {
    transform: translate(91px, 65px);
    opacity: 1;
  }

  84% {
    transform: translate(115px, 48px);
    opacity: 0.6;
  }

  90%,
  100% {
    transform: translate(222px, 85px);
    opacity: 0;
  }
}

@keyframes manualPartDockFlow {

  0%,
  12% {
    transform: rotate(0deg);
  }

  16% {
    transform: rotate(15deg);
  }

  26% {
    transform: rotate(30deg);
  }

  36%,
  44% {
    transform: rotate(45deg);
  }

  70%,
  86% {
    transform: translate(-109px, 0px) rotate(45deg);
  }

  94%,
  100% {
    transform: rotate(0deg);
  }
}

@keyframes manualAngleArcSweep {

  0%,
  12% {
    stroke-dashoffset: 21;
    opacity: 0;
  }

  36%,
  48% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  64%,
  100% {
    stroke-dashoffset: 21;
    opacity: 0;
  }
}

@keyframes manualAngleBadgePulse {

  0%,
  12% {
    opacity: 0.6;
    filter: none;
  }

  26%,
  54% {
    opacity: 1;
    filter: drop-shadow(0 0 5px #fbbf24);
  }

  70%,
  100% {
    opacity: 0.6;
    filter: none;
  }
}

@keyframes manualSnapRingBurst {

  0%,
  68% {
    opacity: 0;
    transform: scale(0.4);
  }

  71% {
    opacity: 1;
    transform: scale(0.9);
  }

  80% {
    opacity: 0;
    transform: scale(1.8);
  }

  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes manualTargetGlow {

  0%,
  68% {
    stroke: rgba(56, 189, 248, 0.35);
    filter: none;
    fill: rgba(56, 189, 248, 0.04);
  }

  71%,
  86% {
    stroke: #38bdf8;
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5));
    fill: rgba(56, 189, 248, 0.15);
  }

  92%,
  100% {
    stroke: rgba(56, 189, 248, 0.35);
    filter: none;
    fill: rgba(56, 189, 248, 0.04);
  }
}

/* 6. Instant Cloud CNC Dispatch (Передача потока данных в ЧПУ) */
@keyframes cncLineStream {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -14;
  }
}

@keyframes cncDataPulse1 {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }

  15% {
    opacity: 0.85;
    filter: none;
  }

  50% {
    opacity: 0.85;
    transform: translate(-40px, 32px);
    filter: none;
  }

  65%,
  100% {
    opacity: 0;
    transform: translate(-40px, 32px);
    filter: none;
  }
}

@keyframes cncDataPulse2 {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }

  15% {
    opacity: 0.85;
    filter: none;
  }

  50% {
    opacity: 0.85;
    transform: translate(0, 32px);
    filter: none;
  }

  65%,
  100% {
    opacity: 0;
    transform: translate(0, 32px);
    filter: none;
  }
}

@keyframes cncDataPulse3 {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }

  15% {
    opacity: 0.85;
    filter: none;
  }

  50% {
    opacity: 0.85;
    transform: translate(40px, 32px);
    filter: none;
  }

  65%,
  100% {
    opacity: 0;
    transform: translate(40px, 32px);
    filter: none;
  }
}

@keyframes cncTargetGlow {

  0%,
  42% {
    opacity: 0.7;
    filter: none;
  }

  50%,
  75% {
    opacity: 1;
    filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.4));
  }

  88%,
  100% {
    opacity: 0.7;
    filter: none;
  }
}

@keyframes cncTxLedBlink {
  0% {
    fill: #38bdf8;
    filter: none;
  }

  100% {
    fill: #7dd3fc;
    filter: none;
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .official-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .official-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   LEGAL PORTAL
   ========================================================================== */
.legal-portal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: flex-start;
}

.legal-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 20;
}

.legal-nav-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.4;
}

.legal-nav-btn:hover {
  background: var(--bg-input);
  color: #ffffff;
}

.legal-nav-btn.active {
  background: var(--accent-soft);
  color: #ffffff;
  border-left: 3px solid var(--accent);
  padding-left: 11px;
}

.legal-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.legal-content-body {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.legal-content-body h3 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 8px;
}

.legal-content-body h4 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
  color: #ffffff;
  font-weight: 600;
}

.legal-content-body p {
  margin-bottom: 14px;
}

.legal-content-body ul {
  margin: 10px 0 16px 22px;
  list-style-type: disc;
}

.legal-content-body ol {
  margin: 10px 0 16px 22px;
  list-style-type: decimal;
}

.legal-content-body li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.legal-content-body strong {
  color: #f8fafc;
  font-weight: 600;
}

/* Legal content typography */
.legal-content-body code {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.85em;
  box-sizing: border-box;
  vertical-align: baseline;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.legal-content-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.legal-content-body a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.legal-content-body a.legal-link {
  text-decoration: none !important;
}

.legal-content-body a code,
.legal-content-body a.legal-link code {
  color: var(--cyan);
  cursor: pointer;
  display: inline-block;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.08);
  box-sizing: border-box;
  vertical-align: baseline;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.legal-content-body a:hover code,
.legal-content-body a.legal-link:hover code {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  transform: none;
}


/* Legal callouts & boxes */
.legal-callout {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid #10b981;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  color: #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.legal-callout strong {
  color: #34d399;
}

.legal-callout ul {
  margin: 8px 0 4px 20px;
}

.legal-requisites-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 12px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #cbd5e1;
}

/* Legal tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.86rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.legal-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 600;
}

.legal-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.cabinet-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.cab-tab-btn {
  background: none;
  border: none;
  padding: 12px 22px;
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.cab-tab-btn.active {
  color: #ffffff;
  border-bottom-color: var(--accent);
}

.cab-view {
  display: none;
}

.cab-view.active {
  display: block;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: rgba(230, 57, 70, 0.3);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.faq-icon {
  color: var(--accent);
  transition: transform 0.25s var(--ease-smooth);
  font-size: 1.1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-smooth), padding 0.3s;
  padding: 0 22px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 22px 18px;
}

/* FAQ Technical Specialist Contact Card */
.faq-contact-card {
  margin-top: 32px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(13, 17, 26, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.faq-contact-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.faq-contact-info p {
  max-width: 720px;
}

.faq-contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Benchmark Comparison: Manual vs YuppCAD */
.benchmark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1080px;
  margin: 36px auto 0;
}

.benchmark-col {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benchmark-col.old {
  border-color: rgba(248, 113, 113, 0.22);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, rgba(15, 18, 26, 0.95) 100%);
}

.benchmark-col.new {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.07) 0%, rgba(15, 18, 26, 0.95) 100%);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.06);
}

.bm-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.bm-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benchmark-col.old .bm-icon-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.benchmark-col.new .bm-icon-box {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.bm-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.benchmark-col.old .bm-tag {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.benchmark-col.new .bm-tag {
  background: rgba(16, 185, 129, 0.12);
  color: #86efac;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.bm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.bm-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.bm-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.benchmark-col.old .bm-bullet {
  background: #f87171;
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.6);
}

.benchmark-col.new .bm-bullet {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}

.bm-item strong {
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 768px) {
  .benchmark-grid {
    grid-template-columns: 1fr;
  }
}

/* CNC Brand Pills */
.cnc-brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   FORMS, CHECKBOXES & MODAL
   ========================================================================== */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.86rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: rgba(230, 57, 70, 0.55);
  background: var(--bg-input-focus);
}

.legal-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.legal-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 450;
  color: #e2e8f0;
  line-height: 1.5;
  user-select: none;
}

.legal-check-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  cursor: pointer;
}

.legal-check-label a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.key-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--cyan);
  gap: 12px;
  white-space: nowrap;
}

.key-box span,
.key-box code {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.payment-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.payment-tab-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.payment-tab-btn.active {
  background: var(--bg-card-hover);
  border-color: rgba(230, 57, 70, 0.45);
  color: #ffffff;
}

.payment-form-view {
  display: none;
}

.payment-form-view.active {
  display: block;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  gap: 12px;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  /* Крестик был 14 × 24: попасть по нему трудно */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -4px -6px -4px 0;
  border-radius: var(--radius-xs);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.modal-body {
  padding: 22px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Enterprise Inquiry Form & Modal Alignment */
#enterpriseModal .modal-card {
  max-width: 880px;
  width: 95%;
}

#checkoutModal .modal-card {
  max-width: 660px;
  width: 95%;
}

.ent-inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
  row-gap: 16px;
  width: 100%;
}
.ent-inquiry-grid .form-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ent-inquiry-grid .form-label {
  display: flex;
  align-items: flex-end;
  min-height: 20px;
  line-height: 1.3;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ent-inquiry-grid .form-control:not(textarea) {
  height: 44px;
  box-sizing: border-box;
  font-size: 0.88rem;
  width: 100%;
}
.ent-inquiry-grid textarea.form-control {
  min-height: 84px;
  box-sizing: border-box;
  resize: vertical;
  font-size: 0.88rem;
  width: 100%;
}
.ent-hint-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -6px;
  margin-bottom: 2px;
  width: 100%;
}
.company-suggestions-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1050;
  background: #0d1527;
  border: 1px solid #334155;
  border-radius: 8px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  margin-top: 4px;
}
@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px;
    align-items: center;
  }
  .modal-card {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 94vh;
  }
  #enterpriseModal .modal-card,
  #checkoutModal .modal-card {
    max-width: 100% !important;
    width: 100% !important;
  }
  .modal-header {
    padding: 14px 16px;
    align-items: flex-start;
    gap: 12px;
  }
  .modal-title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    flex: 1;
  }
  .modal-title {
    font-size: 1rem !important;
    line-height: 1.35;
    white-space: normal !important;
    word-break: normal !important;
  }
  .modal-body {
    padding: 18px 16px !important;
  }
  .ent-inquiry-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ent-hint-row {
    grid-column: 1;
  }
}

.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 280px;
  margin-top: 12px;
}

.footer-col-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--platinum);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   TOASTS & COOKIE BANNER
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 85px;
  right: 20px;
  z-index: 2000000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  color: #fff;
  font-size: 0.84rem;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  max-width: 320px;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.info {
  border-left-color: var(--cyan);
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(160%);
  background: rgba(13, 16, 25, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 100005 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 780px;
  width: calc(100% - 32px);
  transition: transform 0.4s var(--ease-smooth);
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-content {
  flex: 1 1 auto;
}

.cookie-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cookie-text {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.cookie-text a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  white-space: nowrap;
  font-size: 0.78rem;
  padding: 8px 14px;
}

.cookie-btn-highlight {
  font-weight: 700 !important;
  box-shadow: 0 0 16px rgba(230, 57, 70, 0.45);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    bottom: 16px;
    padding: 16px;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    z-index: 100005 !important;
  }

  .cookie-actions {
    width: 100%;
    justify-content: stretch;
    gap: 8px;
  }

  .cookie-actions .btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
    white-space: normal !important;
    padding: 10px 12px;
  }
}

/* ==========================================================================
   PAGE MAIN CONTAINER
   ========================================================================== */
main {
  display: block;
  transition: opacity 0.12s ease-out;
}

/* ==========================================================================
   SMOOTH SCROLL REVEAL (Clean, silky smooth, no layout jitter)
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.04s;
}

.delay-2 {
  transition-delay: 0.08s;
}

.delay-3 {
  transition-delay: 0.12s;
}

.delay-4 {
  transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  main {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
.hide-compact {
  display: inline;
}

@media (max-width: 1400px) {
  .hide-compact {
    display: none !important;
  }

  .logo-subtitle {
    display: none !important;
  }
}

/* На десктопе от 992px три тарифа идут в ряд, ниже 992px — аккуратная колонка */
@media (max-width: 991px) {
  .pricing-single-container {
    grid-template-columns: 1fr;
    max-width: 540px;
  }
}

@media (max-width: 1100px) {

  /* На 1280 три карточки в ряд помещаются: при переломе на 1360 они растягивались до 611px */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1360px) {

  /* Header Tier 2: Laptops & 1280px Displays */
  .container {
    padding: 0 16px;
  }

  .header-container {
    gap: 10px;
  }

  .logo {
    gap: 8px;
  }

  .logo img {
    height: 30px;
  }

  .logo-title {
    font-size: 0.92rem;
  }

  .nav-links {
    height: 34px;
  }

  .nav-links .nav-link {
    font-size: 0.75rem;
    padding: 0 12px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .btn,
  .header-actions .btn-sm {
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    padding: 0 11px;
    font-size: 0.75rem;
  }
}

/* Header Tier 3: Compact Desktop / 1024px Monitors / Split-Screen (993px to 1180px) */
@media (max-width: 1180px) and (min-width: 993px) {
  body {
    padding-top: 66px;
  }

  .header {
    height: 66px;
  }

  .container {
    padding: 0 10px;
    max-width: 100%;
  }

  .header-container {
    gap: 6px;
    justify-content: space-between;
  }

  .logo {
    gap: 6px;
    flex-shrink: 0;
  }

  .logo img {
    height: 26px;
  }

  .logo-title {
    font-size: 0.82rem;
    letter-spacing: -0.02em;
  }

  .logo-badge {
    font-size: 0.50rem;
    padding: 1px 3px;
    margin-left: 2px;
  }

  .nav-links {
    height: 30px;
    flex-shrink: 1;
  }

  .nav-links li+li::before {
    top: 8px;
    bottom: 8px;
  }

  .nav-links .nav-link {
    font-size: 0.70rem;
    padding: 0 8px;
    letter-spacing: 0;
  }

  .header-actions {
    gap: 4px;
    flex-shrink: 0;
  }

  .header-actions .btn,
  .header-actions .btn-sm {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    padding: 0 8px;
    font-size: 0.70rem;
    gap: 3px;
  }
}

@media (max-width: 992px) {
  body {
    padding-top: 72px;
  }

  .header {
    height: 72px;
  }

  .mobile-nav-drawer {
    top: 72px;
  }

  .nav-links {
    display: none !important;
  }

  .header-actions {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex !important;
  }

  .header-container {
    gap: 12px;
  }

  .demo-body {
    grid-template-columns: 1fr;
  }

  .demo-canvas-side {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .roi-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-portal-grid {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 960px) and (min-width: 769px) {
  .hero-cta .btn {
    width: auto;
    min-width: 220px;
    height: 50px;
    min-height: 50px;
    font-size: 0.88rem;
    padding: 0 20px;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 64px;
  }

  .header {
    height: 64px;
  }

  .mobile-nav-drawer {
    top: 64px;
  }

  [id] {
    scroll-margin-top: 74px;
  }

  /* Prevent automatic mobile viewport zoom when focusing inputs */
  input,
  select,
  textarea,
  .form-control {
    font-size: 16px !important;
  }

  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    line-height: 1.35;
    word-break: normal;
  }

  .btn-lg {
    padding: 13px 20px;
    font-size: 0.94rem;
  }

  .container,
  .container-narrow {
    padding: 0 16px;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .hero-eyebrow {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    max-width: 100%;
  }

  .hero-eyebrow .badge {
    white-space: nowrap !important;
    word-break: keep-all !important;
    text-align: center;
    line-height: 1.3;
    padding: 4px 10px;
    font-size: clamp(0.56rem, 2.7vw, 0.68rem) !important;
    letter-spacing: 0.01em !important;
    max-width: 100%;
    box-sizing: border-box;
    gap: 5px;
  }

  .badge {
    white-space: nowrap !important;
    word-break: keep-all !important;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6.8vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 24px;
    padding: 0 4px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 36px;
  }

  .hero-cta .btn {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 50px;
    min-height: 50px;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .metric-tile {
    padding: 16px 12px;
  }

  .metric-num {
    font-size: 1.4rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .demo-topbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }

  .demo-dots {
    order: 1;
  }

  .demo-topbar .btn {
    order: 2;
    font-size: 0.76rem;
    padding: 6px 12px;
  }

  .demo-path {
    order: 3;
    width: 100%;
    justify-content: center;
    font-size: 0.68rem;
    padding: 5px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 6px;
  }

  .demo-canvas-side {
    padding: 18px 12px;
    min-height: auto;
  }

  .cad-blueprint-view {
    padding: 10px;
  }

  .roi-wrap {
    padding: 18px 14px;
  }

  .roi-input-card {
    padding: 12px 12px;
  }

  .metal-preset-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 3px;
  }

  .metal-preset-btn {
    width: 100%;
    text-align: center;
    padding: 6px 4px;
    font-size: 0.7rem;
  }

  .roi-field-hdr {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .roi-field-val {
    align-self: center;
  }

  .roi-result-box {
    padding: 18px 14px;
  }

  .roi-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .roi-row-val {
    text-align: left;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 58px;
  }

  .header {
    height: 58px;
  }

  .mobile-nav-drawer {
    top: 58px;
    padding: 16px 16px 30px;
  }

  [id] {
    scroll-margin-top: 66px;
  }

  .btn {
    padding-left: 14px;
    padding-right: 14px;
  }

  .logo {
    gap: 8px;
  }

  .logo img {
    height: 28px;
  }

  .logo-title {
    font-size: 0.86rem;
    line-height: 1.15;
  }

  .logo-badge {
    font-size: 0.52rem;
    padding: 1px 5px;
    margin-left: 4px;
  }

  .logo-subtitle {
    display: none;
  }

  .metrics-strip {
    grid-template-columns: 1fr;
  }

  .hero-eyebrow .badge {
    font-size: clamp(0.52rem, 2.7vw, 0.64rem) !important;
    padding: 3px 9px !important;
    letter-spacing: 0.01em !important;
    gap: 5px !important;
  }
}

/* ==========================================================================
   PRINT STYLESHEET (Clean official A4 document printing)
   ========================================================================== */
@media print {
  @page {
    size: auto;
    margin: 0 !important;
  }

  *,
  *::before,
  *::after {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html,
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10.5pt !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 12mm 15mm !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .header,
  .footer,
  .legal-sidebar,
  .bg-canvas-container,
  .mobile-menu-btn,
  .mobile-nav-drawer,
  .cookie-banner,
  .toast-container,
  .breadcrumbs,
  .page-header,
  .header-actions,
  #btnDemoNesting,
  .cabinet-tabs,
  .btn,
  #docDisplayBadge,
  .badge {
    display: none !important;
  }

  /* Support for clean modal document printing if Ctrl+P is pressed while modal is open */
  body:has(#updModal.active)>*:not(#updModal),
  body:has(#fiscalReceiptModal.active)>*:not(#fiscalReceiptModal) {
    display: none !important;
  }

  #updModal.active,
  #fiscalReceiptModal.active {
    position: static !important;
    display: block !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #updModal.active .modal-card,
  #fiscalReceiptModal.active .modal-card {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }

  #updModal.active .modal-card>div:first-child,
  #updModal.active .modal-card>div:last-child,
  #fiscalReceiptModal.active .modal-card>div:first-child,
  #fiscalReceiptModal.active .modal-card>div:last-child {
    display: none !important;
  }

  .section {
    padding: 0 !important;
  }

  .container,
  .container-narrow {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .legal-portal-grid {
    display: block !important;
  }

  .legal-content-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #000000 !important;
  }

  .legal-content-body {
    color: #111111 !important;
    font-size: 10.5pt !important;
  }

  .legal-content-body h3,
  .legal-content-body h4,
  #docDisplayTitle {
    color: #000000 !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  .legal-content-body p,
  .legal-content-body li,
  .legal-content-body tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }

}

/* ==========================================================================
   3D-SECURE ACS STYLES (TEST PAYMENT GATEWAY SIMULATOR)
   ========================================================================== */
.modal-3ds-card {
  max-width: 440px;
  width: 100%;
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: modalFadeIn 0.25s ease-out;
}

.modal-3ds-header {
  background: #0f172a;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #00d2ff;
}

.modal-3ds-body {
  padding: 24px 22px;
}

.modal-3ds-input {
  width: 130px;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 6px;
  font-weight: 800;
  font-family: monospace;
  padding: 8px 10px;
  border: 2px solid #00d2ff;
  border-radius: 8px;
  color: #0f172a;
  background: #f8fafc;
}

/* ==========================================================================
   CONTENT PROTECTION & SELECTABLE WHITELIST
   Selection and copying are permitted ONLY for:
   1. Legal Center & Legal Documents
   2. Company requisites & legal details
   3. Contacts (phones, emails, messenger links, address info)
   4. Data fields, inputs, textareas, code blocks, tables, license keys, metrics
   5. Live support chat messages & inputs
   ========================================================================== */

/* 1. Legal Center & Legal Documents */
body.legal-page {
  overflow: visible;
  overflow-x: clip;
}

.legal-page,
.legal-page main,
.legal-portal-grid,
.legal-content-card,
.legal-content-body,
#docDisplayContent,
#docDisplayContent *,
#docDisplayTitle,
#docDisplaySubtitle,
.legal-callout,
.legal-requisites-box,
.legal-section,
.legal-article,
.modal-legal,
[data-legal] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  cursor: auto;
}

/* 2. Requisites */
.requisites,
.company-requisites,
.requisite-item,
.requisites-block,
.bank-details,
.inn-block,
.kpp-block,
.ogrn-block,
.footer-requisites,
.footer-brand-desc,
.footer-bottom,
.footer-legal,
.ent-requisites,
.legal-requisites-box,
[data-requisites],
.selectable-requisite {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  cursor: text;
}

/* 3. Contacts */
.contacts,
.contact-item,
.contact-link,
.contact-info,
.footer-contacts,
.footer-links a[href^="mailto:"],
.footer-links a[href^="tel:"],
a[href^="mailto:"],
a[href^="tel:"],
a[href*="t.me"],
a[href*="wa.me"],
a[href*="whatsapp.com"],
a[href*="max.ru"],
.phone-number,
.email-address,
.contact-value,
[data-contact] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  cursor: text;
}

/* 4. Data fields, numbers, tables, code blocks, license keys, metrics, inputs */
input,
textarea,
pre,
code,
kbd,
samp,
table,
th,
td,
.table-specs,
.mono,
.font-mono,
.code-block,
.license-key,
.key-box,
.key-display,
.stat-value,
.stat-num,
.metric-value,
.calc-result,
.specs-value,
.price-amount,
.price-currency,
.form-control,
.selectable,
.allow-copy,
[data-selectable],
[data-copyable] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* 5. Live Support Chat Messages & Inputs */
.yupp-chat-bubble,
.yupp-chat-bubble *,
.yupp-chat-textarea,
.yupp-att-name,
.yupp-att-meta,
.yupp-chat-contact-bar,
.yupp-chat-contact-form input {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Global suppression of mid-word breaks and hyphens on badges, pills */
.badge,
.nav-badge,
.chip,
.pill,
.logo-title,
.logo-badge,
.hero-badge-wrap,
.hero-pill {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  -webkit-hyphens: none !important;
  hyphens: none !important;
}

/* Responsive wrapping and overflow safety for buttons */
.btn {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.btn-block,
.btn-card-action {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 768px) {
  .btn {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-align: center;
    line-height: 1.35;
    max-width: 100%;
  }
}

/* ==========================================================================
   DOCUMENTS SHOWCASE (КП / ТР / шаблон) — блок #documents, анимация js/docs-showcase.js
   Сцены рисуются на холсте 860×640 и масштабируются под ширину окна (--ds-scale).
   Документы повторяют окна программы: размеры, цвета и шрифты как в cad-calculator.
   ========================================================================== */
.ds-section {
  overflow: hidden;
}

/* Подзаголовок блока — шире стандартного, чтобы на компьютере вставал в две строки */
.ds-section .section-header {
  max-width: 980px;
}

.ds-section .section-subtitle {
  text-wrap: balance;
}

.ds-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

/* ---------- Окно программы ---------- */
.ds-stage {
  position: relative;
  min-width: 0;
}

.ds-window {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: #0b0d12;
  box-shadow: var(--shadow-lg), 0 30px 90px -30px rgba(230, 57, 70, 0.28), 0 0 70px -20px rgba(212, 175, 55, 0.14);
  overflow: hidden;
}

.ds-window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #151820, #10131a);
  border-bottom: 1px solid var(--border);
}

.ds-window-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  flex-shrink: 0;
}

.ds-window-brand img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ds-window-brand b {
  color: var(--accent);
  font-weight: 800;
}

.ds-window-order {
  display: flex;
  gap: 6px;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.ds-window-order span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}

.ds-play {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.ds-play:hover {
  color: #fff;
  border-color: var(--gold);
}

.ds-play .ds-ico-play {
  display: none;
}

.ds-play.is-paused .ds-ico-play {
  display: block;
}

.ds-play.is-paused .ds-ico-pause {
  display: none;
}

.ds-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 860 / 640;
  overflow: hidden;
  background: #121214;
}

.ds-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 860px;
  height: 640px;
  transform-origin: 0 0;
  transform: scale(var(--ds-scale, 1));
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  line-height: normal;
  text-align: left;
}

/* ---------- Сцены ---------- */
.ds-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease-smooth), visibility 0s linear 0.55s;
}

.ds-scene.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s var(--ease-smooth), visibility 0s;
}

.ds-scene-tpl {
  background: radial-gradient(ellipse at 50% 0%, #1d1f25, #111214 70%);
}

.ds-scene-doc {
  background: radial-gradient(ellipse at 50% 0%, #17181c, #0c0c0e 70%);
}

.ds-app-modal,
.ds-doc-modal {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translate(-50%, 20px);
  transition: transform 0.6s var(--ease-smooth);
}

.ds-scene.is-active .ds-app-modal,
.ds-scene.is-active .ds-doc-modal {
  transform: translate(-50%, 0);
}

/* ---------- Окно «Настройка шаблона» (тёмная тема программы) ---------- */
.ds-app-modal {
  width: 600px;
  height: 600px;
  background: #222327;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px 20px 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(244, 67, 54, 0.2);
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
}

.ds-app-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #36373c;
}

.ds-app-modal-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.ds-app-modal-close {
  color: #afb3c0;
  font-size: 1.1rem;
  padding: 0 8px;
}

.ds-app-modal-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ds-app-modal-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
  transition: transform 1.2s var(--ease-smooth);
}

.ds-app-intro {
  font-size: 0.8rem;
  color: #afb3c0;
  line-height: 1.5;
  margin-bottom: 4px;
}

.ds-tpl-images {
  background: #2a2b2f;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #36373c;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-tpl-images-title {
  font-size: 0.78rem;
  font-weight: 700;
  border-bottom: 1px solid #36373c;
  padding-bottom: 4px;
}

.ds-tpl-row-title {
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.ds-tpl-row-body {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.ds-tpl-preview {
  position: relative;
  width: 120px;
  height: 64px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ds-tpl-preview img {
  position: absolute;
  left: 3px;
  top: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: contain;
  transition: opacity 0.45s ease, transform 0.55s var(--ease-smooth);
}

.ds-tpl-empty {
  font-size: 0.65rem;
  color: #94a3b8;
  transition: opacity 0.3s;
}

.ds-tpl-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ds-tpl-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: 280px;
}

.ds-btn-sec {
  background: #2a2b2f;
  border: 1px solid #36373c;
  color: #f0f0f0;
  border-radius: 7px;
  padding: 8px;
  font-weight: 600;
  font-size: 0.78rem;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s, transform 0.12s;
}

.ds-tpl-images .ds-btn-sec {
  background: #222327;
}

.ds-tpl-btn {
  padding: 4px 8px;
  font-size: 0.74rem;
}

.ds-tpl-btn-reset {
  color: #f44336;
}

.ds-btn-sec.is-press {
  background: #35363c;
  border-color: #4a4c54;
}

.ds-tpl-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #afb3c0;
}

.ds-checkbox {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1px solid #4a4c54;
  background: #1b1c20;
  position: relative;
}

.ds-checkbox.is-on {
  background: #f44336;
  border-color: #f44336;
}

.ds-checkbox.is-on::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 0.5px;
  width: 3.5px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

.ds-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ds-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ds-field label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #afb3c0;
  line-height: 1.25;
}

.ds-input {
  display: block;
  min-height: 31px;
  background: #2a2b2f;
  border: 1px solid #36373c;
  border-radius: 6px;
  padding: 6px 8px;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.2s, background-color 0.2s;
}

.ds-input.ds-textarea {
  white-space: normal;
  min-height: 50px;
  font-size: 0.76rem;
}

.ds-input.is-focus {
  border-color: #f44336;
  background: #35363c;
}

.ds-input.is-focus::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -2px;
  background: #fff;
  animation: ds-caret 0.9s steps(1) infinite;
}

@keyframes ds-caret {
  50% {
    opacity: 0;
  }
}

.ds-app-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  border-top: 1px solid #36373c;
  padding-top: 12px;
}

.ds-app-modal-actions .ds-btn-sec {
  padding: 9px 14px;
}

.ds-btn-save {
  background: #38bdf8;
  color: #000;
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: 7px;
  padding: 9px 16px;
  transition: transform 0.12s, box-shadow 0.2s;
}

.ds-btn-save.is-press {
  transform: scale(0.95);
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.3);
}

/* Смена логотипа и сканов в превью шаблона */
.ds-tpl-logo-new {
  opacity: 0;
  transform: scale(0.7);
}

.ds-tpl-row.is-set .ds-tpl-logo-old {
  opacity: 0;
  transform: scale(1.2);
}

.ds-tpl-row.is-set .ds-tpl-logo-new {
  opacity: 1;
  transform: none;
}

.ds-tpl-scan {
  opacity: 0;
  transform: scale(0.7);
}

.ds-tpl-row.is-set .ds-tpl-scan {
  opacity: 1;
  transform: none;
}

.ds-tpl-row.is-set .ds-tpl-empty {
  opacity: 0;
}

.ds-tpl-row.is-set .ds-tpl-preview {
  animation: ds-flash 0.9s ease;
}

@keyframes ds-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.45);
  }

  100% {
    box-shadow: 0 0 0 7px rgba(212, 175, 55, 0);
  }
}

/* ---------- Белые окна документов ---------- */
.ds-doc-modal {
  width: 820px;
  height: 600px;
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  padding: 20px 22px 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(244, 67, 54, 0.2);
  display: flex;
  flex-direction: column;
}

.ds-doc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.ds-doc-modal-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.ds-doc-modal-close {
  color: #64748b;
  font-size: 1.1rem;
  padding: 0 8px;
}

.ds-doc-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ds-doc-inner {
  padding-bottom: 18px;
  transition: transform 1.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.ds-doc-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid #e2e8f0;
  padding: 12px 0 16px;
  background: #fff;
}

.ds-doc-actions>span {
  flex: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 8px;
  white-space: nowrap;
  transition: transform 0.12s, box-shadow 0.2s;
}

.ds-doc-btn {
  background: #2a2b2f;
  border: 1px solid #36373c;
  color: #f0f0f0;
}

.ds-doc-actions>.ds-doc-btn-narrow {
  flex: 0.7;
}

.ds-doc-actions>.ds-doc-btn-pdf {
  flex: 1.6;
  background: #f44336;
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  box-shadow: 0 4px 14px rgba(244, 67, 54, 0.35);
}

.ds-doc-actions>.ds-doc-btn-pdf-blue {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.ds-doc-actions>.ds-doc-btn-pdf.is-press {
  transform: scale(0.96);
  box-shadow: 0 0 0 6px rgba(244, 67, 54, 0.22);
}

.ds-doc-actions>.ds-doc-btn-pdf-blue.is-press {
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.22);
}

.ds-doc-inner b {
  font-weight: 700;
}

.ds-kp-header,
.ds-tr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1e3a8a;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.ds-tr-header {
  border-bottom-color: #0f172a;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.ds-kp-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ds-tr-header .ds-kp-brand {
  gap: 14px;
}

.ds-kp-logo {
  width: 130px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ds-kp-logo img {
  max-width: 130px;
  max-height: 58px;
  object-fit: contain;
}

.ds-tr-logo {
  width: 110px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ds-tr-logo img {
  max-width: 110px;
  max-height: 50px;
  object-fit: contain;
}

.ds-kp-company {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ds-kp-company-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.ds-kp-line {
  font-size: 0.78rem;
  color: #475569;
}

.ds-kp-line b {
  color: #0f172a;
  font-weight: 600;
}

.ds-kp-number .ds-kp-line b {
  font-weight: 700;
}

.ds-link {
  color: #2563eb;
  font-weight: 600;
}

.ds-kp-number {
  text-align: right;
}

.ds-kp-num {
  font-weight: 800;
  font-size: 1.05rem;
  color: #2563eb;
  margin-bottom: 2px;
}

.ds-tr-num {
  font-weight: 800;
  font-size: 1.05rem;
  color: #f44336;
  margin-bottom: 2px;
}

.ds-tr-company {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.ds-tr-contacts {
  color: #64748b;
  font-size: 0.75rem;
}

.ds-tr-site {
  color: #64748b;
  font-size: 0.72rem;
  margin-top: 1px;
}

.ds-kp-title,
.ds-tr-title {
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 6px 0 14px;
}

.ds-tr-title {
  color: #0f172a;
  margin-bottom: 12px;
}

.ds-kp-summary {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 7px 12px;
  margin-bottom: 14px;
  font-size: 0.78rem;
}

.ds-kp-summary span {
  color: #64748b;
}

.ds-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
}

.ds-table th,
.ds-table td {
  border: 1px solid #cbd5e1;
  text-align: right;
  color: #0f172a;
}

.ds-table th {
  background: #f1f5f9;
  font-weight: 700;
}

/* Таблицы КП и ТР — один кегль и одни отступы, чтобы документы читались одинаково */
.ds-kp-table {
  font-size: 0.74rem;
}

.ds-kp-table th,
.ds-kp-table td {
  padding: 6px 8px;
  white-space: nowrap;
}

.ds-table td.ds-name {
  text-align: left;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
}

.ds-kp-table td.ds-kp-sum {
  font-weight: 700;
  color: #1e3a8a;
}

.ds-kp-totals-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.ds-kp-totals {
  min-width: 300px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 14px;
}

.ds-kp-tline {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 4px;
}

.ds-kp-tline b {
  color: #0f172a;
}

.ds-kp-grand {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e3a8a;
  border-top: 1px solid #cbd5e1;
  padding-top: 6px;
  margin-top: 2px;
}

.ds-kp-lead {
  margin-bottom: 18px;
  padding: 9px 12px;
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #1e293b;
}

.ds-kp-sign-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 22px 0 14px;
  padding-bottom: 24px;
}

.ds-kp-pos {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.ds-kp-org {
  font-size: 0.74rem;
  color: #475569;
  margin-bottom: 24px;
}

.ds-kp-sign-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ds-kp-sign-col {
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ds-kp-sign-line {
  position: relative;
  width: 100%;
  height: 40px;
  border-bottom: 1px solid #334155;
}

.ds-kp-sign-line .ds-sign-img {
  position: absolute;
  left: 50%;
  bottom: -38px;
  max-height: 70px;
  max-width: 170px;
  transform: translateX(-50%);
  mix-blend-mode: multiply;
}

.ds-kp-sign-cap {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1;
}

.ds-kp-signer-name {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  padding-top: 16px;
}

.ds-kp-stamp {
  position: relative;
  width: 178px;
  height: 178px;
  margin-right: 15px;
  flex-shrink: 0;
}

.ds-kp-stamp-ph {
  position: absolute;
  inset: 0;
  border: 2px dashed #94a3b8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: #94a3b8;
  opacity: 0;
  transition: opacity 0.3s;
}

.ds-stamp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: rotate(-7deg);
}

.ds-kp-footer {
  border-top: 1px solid #cbd5e1;
  padding-top: 8px;
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.45;
}

.ds-kp-footer b {
  color: #475569;
}

/* ТР */
.ds-tr-info {
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.ds-table.ds-tr-info td {
  padding: 6px 8px;
  text-align: left;
  border-color: #e2e8f0;
  line-height: 1.3;
}

.ds-table.ds-tr-info td.ds-th-cell {
  background: #f8fafc;
  font-weight: 600;
}

.ds-tr-sec {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.ds-tr-parts {
  table-layout: fixed;
  font-size: 0.7rem;
  margin-bottom: 12px;
}

.ds-tr-parts th {
  padding: 5px 4px;
  background: #f1f5f9;
  line-height: 1.25;
}

.ds-tr-parts td {
  padding: 5px 4px;
  white-space: nowrap;
}

.ds-table.ds-tr-parts td.ds-name {
  padding: 5px 6px;
  line-height: 1.25;
}

.ds-tr-parts small {
  font-size: 0.8em;
  color: #64748b;
}

.ds-table td.ds-net {
  font-weight: 600;
}

.ds-table td.ds-cost {
  font-weight: 800;
}

.ds-tr-cost {
  font-size: 0.74rem;
  margin-bottom: 12px;
}

.ds-tr-cost th {
  padding: 6px 8px;
  background: #f1f5f9;
}

.ds-tr-cost td {
  padding: 6px 8px;
}

.ds-table.ds-tr-cost td:first-child {
  text-align: left;
}

.ds-tr-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff5f5;
  border: 2px solid #f44336;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.ds-tr-total-lbl {
  font-size: 0.74rem;
  color: #475569;
  font-weight: 600;
}

.ds-tr-total-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #d32f2f;
}

.ds-tr-total-vat {
  font-size: 0.7rem;
  color: #64748b;
}

.ds-tr-total-novat {
  font-size: 1.25rem;
  font-weight: 800;
}

.ds-tr-sign {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
  font-size: 0.72rem;
  color: #64748b;
  border-top: 1px dashed #cbd5e1;
  padding: 8px 0 24px;
}

.ds-tr-sign b {
  color: #0f172a;
}

.ds-tr-sign-line {
  position: relative;
  width: 130px;
  height: 30px;
  border-bottom: 1px solid #334155;
}

.ds-tr-sign-line .ds-sign-img {
  position: absolute;
  left: 50%;
  bottom: -26px;
  max-height: 56px;
  max-width: 150px;
  transform: translateX(-50%);
  mix-blend-mode: multiply;
}

.ds-tr-page2 {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #cbd5e1;
}

.ds-tr-page2-title {
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.ds-tr-sheet {
  text-align: center;
}

.ds-tr-sheet-img {
  position: relative;
  width: 300px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.ds-tr-sheet-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.ds-tr-laser {
  position: absolute;
  left: -14px;
  right: -14px;
  top: 0;
  height: 2px;
  background: #f44336;
  box-shadow: 0 0 12px 3px rgba(244, 67, 54, 0.55);
  opacity: 0;
}

.ds-tr-sheet-cap {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---------- Сборка документов (класс is-building ставит JS) ---------- */
.ds-rise,
.ds-row {
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}

.ds-scene.is-building .ds-rise:not(.is-in),
.ds-scene.is-building .ds-row:not(.is-in) {
  opacity: 0;
  transform: translateY(10px);
}

.ds-scene.is-building .ds-row.is-in td {
  animation: ds-row-glow 1.1s ease;
}

@keyframes ds-row-glow {
  0% {
    background-color: rgba(251, 191, 36, 0.14);
  }

  100% {
    background-color: transparent;
  }
}

.ds-scene.is-building .ds-kp-header.is-in .ds-kp-logo img,
.ds-scene.is-building .ds-tr-header.is-in .ds-tr-logo img {
  animation: ds-logo-in 0.8s var(--ease-smooth);
}

@keyframes ds-logo-in {
  0% {
    opacity: 0;
    transform: scale(0.6);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Подпись «пишется» слева направо */
.ds-scene.is-building .ds-sign-img {
  clip-path: inset(0 100% 0 0);
}

.ds-scene.is-building .is-signed .ds-sign-img {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s cubic-bezier(0.45, 0, 0.3, 1);
}

/* Печать ставится с «ударом» */
.ds-scene.is-building .ds-kp-stamp:not(.is-in) .ds-kp-stamp-ph {
  opacity: 1;
}

.ds-scene.is-building .ds-stamp-img {
  opacity: 0;
}

.ds-scene.is-building .ds-kp-stamp.is-in .ds-stamp-img {
  animation: ds-stamp 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.15) forwards;
}

@keyframes ds-stamp {
  0% {
    opacity: 0;
    transform: scale(1.9) rotate(-20deg);
  }

  55% {
    opacity: 1;
    transform: scale(0.93) rotate(-6deg);
  }

  75% {
    transform: scale(1.03) rotate(-7deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(-7deg);
  }
}

.ds-kp-stamp::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.ds-scene.is-building .ds-kp-stamp.is-in::after {
  animation: ds-stamp-ring 0.9s ease-out 0.35s;
}

@keyframes ds-stamp-ring {
  0% {
    opacity: 0.7;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  }

  100% {
    opacity: 0;
    box-shadow: 0 0 0 40px rgba(37, 99, 235, 0);
  }
}

/* Лазер проходит по схеме листа */
.ds-scene.is-building .ds-tr-sheet:not(.is-in) .ds-tr-sheet-img img {
  clip-path: inset(0 0 100% 0);
}

.ds-scene.is-building .ds-tr-sheet.is-in .ds-tr-sheet-img img {
  clip-path: inset(0 0 0 0);
  transition: clip-path 2.4s linear;
}

.ds-scene.is-building .ds-tr-sheet.is-in .ds-tr-laser {
  animation: ds-laser 2.4s linear forwards;
}

@keyframes ds-laser {
  0% {
    top: 0;
    opacity: 1;
  }

  96% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

/* ---------- Курсор ---------- */
.ds-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transform: translate(700px, 600px);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.ds-cursor.is-visible {
  opacity: 1;
}

.ds-cursor svg {
  display: block;
  width: 16px;
  height: 19px;
  transition: transform 0.12s;
  transform-origin: 2px 2px;
}

.ds-cursor.is-click svg {
  transform: scale(0.92);
}

.ds-cursor-ripple {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  opacity: 0;
}

.ds-cursor.is-click .ds-cursor-ripple {
  animation: ds-ripple 0.45s ease-out;
}

@keyframes ds-ripple {
  0% {
    opacity: 0.8;
    transform: scale(0.4);
  }

  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

/* ---------- Пауза: готовые документы, их можно листать колесом ---------- */
.ds-layout.is-browse .ds-doc-scroll,
.ds-layout.is-browse .ds-app-modal-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.5) transparent;
}

.ds-layout.is-browse .ds-doc-inner,
.ds-layout.is-browse .ds-app-modal-inner {
  transform: none !important;
  transition: none;
}

.ds-layout.is-browse .ds-cursor {
  opacity: 0;
}

.ds-layout.is-browse .ds-step-bar i {
  width: 0 !important;
}

/* ---------- Шаги ---------- */
.ds-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ds-step {
  position: relative;
  display: flex;
  gap: 14px;
  text-align: left;
  padding: 16px 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.35s, background-color 0.35s;
}

.ds-step:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.ds-step:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.ds-step.is-active {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), var(--bg-card) 60%);
}

.ds-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.ds-step.is-active .ds-step-num {
  color: #0b0e15;
  background: var(--gold);
  border-color: var(--gold);
}

.ds-step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ds-step-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.ds-step-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ds-step-list {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.ds-step.is-active .ds-step-list {
  display: flex;
  animation: ds-list-in 0.5s var(--ease-smooth);
}

@keyframes ds-list-in {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

.ds-step-list>span {
  position: relative;
  display: block;
  padding-left: 16px;
  font-size: 0.78rem;
  color: var(--platinum);
  line-height: 1.5;
}

.ds-step-list>span::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}

.ds-step-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.ds-step-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.ds-steps-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  line-height: 1.45;
}

.ds-steps-note svg {
  flex-shrink: 0;
  color: var(--gold);
}

/* ---------- Сравнение ---------- */
.ds-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.ds-compare-col {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.ds-compare-new {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.07), var(--bg-card) 55%);
}

.ds-compare-head {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.ds-compare-new .ds-compare-head {
  color: var(--gold-light);
}

/* Название продукта — в своём написании, без капса заголовка */
.ds-compare-head .ds-brand {
  text-transform: none;
  letter-spacing: 0.02em;
}

.ds-compare ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ds-compare li {
  position: relative;
  padding-left: 27px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.ds-compare-new li {
  color: var(--platinum);
}

.ds-compare li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.ds-compare-old li::before {
  content: "✕";
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
}

.ds-compare-new li::before {
  content: "✓";
  color: #0b0e15;
  background: var(--gold);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .ds-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ds-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ds-steps-note {
    grid-column: 1 / -1;
  }

  .ds-step {
    flex-direction: column;
    gap: 8px;
    padding: 14px;
  }
}

@media (max-width: 680px) {
  .ds-window-order span:nth-child(-n+2) {
    display: none;
  }

  .ds-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ds-step {
    flex-direction: row;
  }

  .ds-step:not(.is-active) .ds-step-text {
    display: none;
  }

  .ds-compare {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .ds-compare-col {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .ds-window-bar {
    gap: 8px;
    padding: 8px 10px;
  }

  .ds-window-brand span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .ds-scene,
  .ds-app-modal,
  .ds-doc-modal,
  .ds-doc-inner,
  .ds-app-modal-inner {
    transition: none;
  }

  .ds-cursor {
    display: none;
  }
}

/* Пауза показа: CSS-анимации замирают вместе с таймлайном */
.ds-layout.is-paused .ds-canvas *,
.ds-layout.is-paused .ds-canvas *::after {
  animation-play-state: paused;
}

/* ==========================================================================
   PAGE CONTENT SMOOTH ENTRANCE (HEADER REMAINS 100% STATIC)
   ========================================================================== */

@keyframes mainContentFadeIn {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 1;
  }
}

main {
  animation: mainContentFadeIn 0.16s ease-out both;
}

/* ==========================================================================
   ROI CALCULATOR COMPONENT (SHARED MONTSERRAT & JETBRAINS MONO)
   ========================================================================== */
.roi-calc-card {
  background: rgba(14, 18, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
}
.roi-calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr;
  gap: 36px;
  align-items: center;
}
.roi-val-display {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
}
.roi-val-display span {
  font-size: 1rem;
  color: var(--cyan);
  font-weight: 600;
}
.roi-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1c2233;
  outline: none;
  cursor: pointer;
  margin: 12px 0 6px 0;
}
.roi-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: transform 0.15s, background 0.15s;
}
.roi-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--cyan);
}
.roi-range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: transform 0.15s, background 0.15s;
}
.roi-range-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: var(--cyan);
}
.roi-metals-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}
.roi-metal-pill {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.roi-metal-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.roi-metal-pill.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.6);
  color: var(--gold-light);
}
.roi-output-box {
  background: #080b12;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  display: grid;
  gap: 18px;
}
.roi-stat-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}
.roi-stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.roi-stat-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 4px;
}
.roi-stat-number {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
}
.roi-stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .roi-calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}