/**
 * NFS Auto — DS Pack v4 (компоненты O–ZB + демо-футер).
 * Префикс .nfs-ds4-* чтобы не конфликтовать с глобальными .hero и т.д.
 * Стили максимально близки к nfsauto_ds_v4_pack.html, но используют токены из nfs-design-system.css.
 */

/* ════════════════════════
   O. HERO SECTION
════════════════════════*/
.nfs-ds4-hero {
  background: linear-gradient(155deg, var(--nfs-cockpit) 0%, #111827 50%, var(--nfs-cockpit-mid) 100%);
  border-radius: var(--nfs-rl);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  border: 0.5px solid rgba(26, 95, 217, 0.2);
}

.nfs-ds4-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--nfs-blue) 15%, var(--nfs-blue3) 25%, #fff 33%, var(--nfs-blue3) 41%, var(--nfs-red) 55%, #ffaaaa 63%, var(--nfs-red) 71%, var(--nfs-ch3) 80%, #fff 87%, var(--nfs-ch3) 93%, transparent 100%);
  background-size: 300% 100%;
  animation: nfs-shimmer 3.5s linear infinite;
}

.nfs-ds4-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(59, 127, 255, 0.2), rgba(26, 95, 217, 0.1));
  border: 0.5px solid rgba(59, 127, 255, 0.35);
  color: #7AB3FF;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.nfs-ds4-hero-h1 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 8px;
}

.nfs-ds4-hero-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--nfs-blue3), #7AB3FF, var(--nfs-blue3));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nfs-shimmer-slow 3s linear infinite;
}

.nfs-ds4-hero-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 340px;
}

.nfs-ds4-hero-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.nfs-ds4-hs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nfs-ds4-hs-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.nfs-ds4-hs-lbl {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nfs-ds4-hs-div {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  align-self: stretch;
}

.nfs-ds4-hero-btns {
  display: flex;
  gap: 10px;
}

.nfs-ds4-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nfs-ff);
  font-weight: 700;
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  padding: 9px 18px;
  transition: transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.nfs-ds4-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: 200% center;
  transition: background-position 0.4s;
  pointer-events: none;
}

.nfs-ds4-btn:hover::after {
  background-position: -200% center;
}

.nfs-ds4-btn--primary {
  background: var(--nfs-blue-g);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 2px 10px rgba(26, 95, 217, 0.28);
}

.nfs-ds4-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(59, 127, 255, 0.5), 0 0 14px rgba(59, 127, 255, 0.25);
}

.nfs-ds4-btn--ghost {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.6);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.nfs-ds4-route-mini {
  position: absolute;
  right: 22px;
  top: 24px;
  width: 220px;
}

.nfs-ds4-route-mini-title {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.nfs-ds4-route-step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.nfs-ds4-rs-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.nfs-ds4-rs-dot--active {
  background: linear-gradient(135deg, var(--nfs-blue2), var(--nfs-blue));
  border-color: var(--nfs-blue);
  box-shadow: 0 0 10px var(--nfs-blue-glow);
}

.nfs-ds4-rs-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.nfs-ds4-rs-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1px;
}

.nfs-ds4-route-connector {
  width: 1.5px;
  height: 12px;
  background: linear-gradient(180deg, var(--nfs-blue) 0%, rgba(255, 255, 255, 0.1) 100%);
  margin: 0 auto 0 13px;
  flex-shrink: 0;
}

/* ════════════════════════
   P. DELIVERY STAGES (6-step)
════════════════════════*/
.nfs-ds4-stages-wrap {
  display: flex;
  gap: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--nfs-rl);
  border: 0.5px solid var(--nfs-b1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nfs-ds4-stage-item {
  flex: 1;
  position: relative;
  padding: 14px 12px 14px 14px;
  background: linear-gradient(170deg, var(--nfs-white), var(--nfs-ch1));
  border-right: 0.5px solid var(--nfs-b1);
  transition: all 0.2s;
  cursor: pointer;
}

.nfs-ds4-stage-item:first-child {
  border-radius: var(--nfs-r) 0 0 var(--nfs-r);
}

.nfs-ds4-stage-item:last-child {
  border-radius: 0 var(--nfs-r) var(--nfs-r) 0;
  border-right: none;
}

.nfs-ds4-stage-item:hover,
.nfs-ds4-stage-item.active {
  background: linear-gradient(150deg, rgba(59, 127, 255, 0.1), rgba(26, 95, 217, 0.05));
  border-color: rgba(26, 95, 217, 0.25);
  z-index: 1;
}

.nfs-ds4-stage-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nfs-ch2), var(--nfs-ch3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--nfs-ch5);
  margin-bottom: 8px;
}

.nfs-ds4-stage-item.active .nfs-ds4-stage-num {
  background: linear-gradient(135deg, var(--nfs-blue2), var(--nfs-blue));
  color: #fff;
  box-shadow: 0 0 0 3px var(--nfs-blue-glow);
}

.nfs-ds4-stage-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--nfs-t1);
  margin-bottom: 3px;
  line-height: 1.3;
}

.nfs-ds4-stage-item.active .nfs-ds4-stage-title {
  color: var(--nfs-blue);
}

.nfs-ds4-stage-sub {
  font-size: 9px;
  color: var(--nfs-t3);
  line-height: 1.4;
}

/* ════════════════════════
   Q. IMPORT CALCULATOR
════════════════════════*/
.nfs-ds4-calc-wrap {
  background: linear-gradient(160deg, var(--nfs-white), var(--nfs-ch1));
  border: 0.5px solid var(--nfs-b1);
  border-radius: var(--nfs-rl);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nfs-ds4-calc-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  background: linear-gradient(160deg, var(--nfs-ch1), var(--nfs-ch2));
  border-radius: 8px;
  padding: 3px;
}

.nfs-ds4-ctab {
  flex: 1;
  padding: 7px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  color: var(--nfs-t3);
  transition: all 0.2s;
  border: none;
  background: transparent;
  font-family: var(--nfs-ff);
}

.nfs-ds4-ctab.on {
  background: linear-gradient(150deg, var(--nfs-blue2), var(--nfs-blue));
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 95, 217, 0.3);
}

.nfs-ds4-calc-slider-group {
  margin-bottom: 14px;
}

.nfs-ds4-csl-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--nfs-t3);
  margin-bottom: 6px;
}

.nfs-ds4-csl-val {
  color: var(--nfs-blue);
  font-weight: 800;
}

.nfs-ds4-calc-wrap input[type="range"] {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  border: none;
  background: linear-gradient(90deg, var(--nfs-blue) var(--p, 40%), var(--nfs-ch2) var(--p, 40%));
  -webkit-appearance: none;
}

.nfs-ds4-calc-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, var(--nfs-ch1));
  border: 1.5px solid var(--nfs-blue);
  box-shadow: 0 1px 4px rgba(26, 95, 217, 0.25);
}

.nfs-ds4-calc-rows {
  background: rgba(26, 95, 217, 0.04);
  border: 0.5px solid rgba(26, 95, 217, 0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.nfs-ds4-cr {
  display: flex;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 0.5px solid rgba(26, 95, 217, 0.08);
  font-size: 11px;
}

.nfs-ds4-cr:last-child {
  border-bottom: none;
}

.nfs-ds4-cr-label {
  color: var(--nfs-t3);
  font-weight: 500;
}

.nfs-ds4-cr-val {
  color: var(--nfs-t1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nfs-ds4-cr.total {
  background: linear-gradient(135deg, rgba(26, 95, 217, 0.08), rgba(26, 95, 217, 0.03));
  padding: 10px 12px;
}

.nfs-ds4-cr-total-price {
  font-size: 16px;
  font-weight: 800;
  background: var(--nfs-blue-g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nfs-ds4-cr-save {
  background: var(--nfs-green-light);
  color: var(--nfs-green);
  border: 0.5px solid rgba(20, 163, 74, 0.2);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ════════════════════════
   R. TOKEN / SUBSCRIPTION
════════════════════════*/
.nfs-ds4-token-card {
  background: linear-gradient(155deg, var(--nfs-cockpit) 0%, #111827 60%, #101828 100%);
  border: 0.5px solid rgba(26, 95, 217, 0.2);
  border-radius: var(--nfs-rl);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.nfs-ds4-token-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--nfs-blue), var(--nfs-blue3), #fff, var(--nfs-blue3), var(--nfs-amber), #fff, var(--nfs-amber), transparent);
  background-size: 300% 100%;
  animation: nfs-shimmer 3s linear infinite;
}

.nfs-ds4-token-pack {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.nfs-ds4-token-pack:hover,
.nfs-ds4-token-pack.featured {
  border-color: rgba(59, 127, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(59, 127, 255, 0.15), 0 0 16px rgba(59, 127, 255, 0.12);
}

.nfs-ds4-token-pack.featured {
  background: linear-gradient(150deg, rgba(59, 127, 255, 0.12), rgba(26, 95, 217, 0.06));
}

.nfs-ds4-tp-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 10px;
  display: inline-flex;
  margin-bottom: 8px;
}

.nfs-ds4-tp-badge.hot {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.25), rgba(217, 119, 6, 0.1));
  color: #FBBF24;
  border: 0.5px solid rgba(217, 119, 6, 0.3);
}

.nfs-ds4-tp-badge.best {
  background: var(--nfs-blue-g);
  color: #fff;
}

.nfs-ds4-tp-tokens {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.nfs-ds4-tp-price {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.nfs-ds4-tp-price strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.nfs-ds4-tp-features {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nfs-ds4-tp-feat {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 5px;
}

.nfs-ds4-tp-feat::before {
  content: '✓';
  color: var(--nfs-blue3);
  font-weight: 700;
}

/* ════════════════════════
   S. NOTIFICATIONS / TOASTS
════════════════════════*/
.nfs-ds4-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--nfs-white), var(--nfs-ch1));
  border: 0.5px solid var(--nfs-b1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  animation: nfs-ds4-slide-up 0.3s ease both;
  position: relative;
  overflow: hidden;
}

@keyframes nfs-ds4-slide-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nfs-ds4-toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px 0 0 2px;
}

.nfs-ds4-toast.success::before {
  background: linear-gradient(180deg, #22C55E, #14A34A);
}

.nfs-ds4-toast.error::before {
  background: linear-gradient(180deg, #E03030, var(--nfs-red));
}

.nfs-ds4-toast.info::before {
  background: linear-gradient(180deg, var(--nfs-blue3), var(--nfs-blue));
}

.nfs-ds4-toast.warn::before {
  background: linear-gradient(180deg, #FBBF24, var(--nfs-amber));
}

.nfs-ds4-toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG в разметке маленький — заполняем область иконки (36×36 минус скругление) */
.nfs-ds4-toast-icon svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.nfs-ds4-toast.success .nfs-ds4-toast-icon {
  background: var(--nfs-green-light);
  color: var(--nfs-green);
}

.nfs-ds4-toast.error .nfs-ds4-toast-icon {
  background: rgba(201, 34, 34, 0.08);
  color: var(--nfs-red);
}

.nfs-ds4-toast.info .nfs-ds4-toast-icon {
  background: var(--nfs-blue-light);
  color: var(--nfs-blue);
}

.nfs-ds4-toast.warn .nfs-ds4-toast-icon {
  background: var(--nfs-amber-light);
  color: var(--nfs-amber);
}

.nfs-ds4-toast-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--nfs-t1);
  line-height: 1.35;
}

.nfs-ds4-toast-msg {
  font-size: 13px;
  color: var(--nfs-t3);
  margin-top: 3px;
  line-height: 1.45;
}

.nfs-ds4-toast-close {
  margin-left: auto;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--nfs-t4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.nfs-ds4-toast-close:hover {
  background: var(--nfs-ch2);
}

/* ════════════════════════
   T. ORDER TRACKING
════════════════════════*/
.nfs-ds4-order-track {
  width: 600px;
  max-width: 100%;
  background: linear-gradient(170deg, var(--nfs-white), var(--nfs-ch1));
  border: 0.5px solid var(--nfs-b1);
  border-radius: var(--nfs-rl);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nfs-ds4-ot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.nfs-ds4-ot-id {
  font-size: 11px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  background: var(--nfs-blue-light);
  border: 0.5px solid rgba(26, 95, 217, 0.2);
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--nfs-blue);
}

.nfs-ds4-ot-status {
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(217, 119, 6, 0.06));
  border: 0.5px solid rgba(217, 119, 6, 0.25);
  color: var(--nfs-amber);
  padding: 3px 9px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nfs-ds4-ot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nfs-amber);
  animation: nfs-ds4-pulse-dot 1.5s ease-in-out infinite;
}

@keyframes nfs-ds4-pulse-dot {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.nfs-ds4-ot-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nfs-ds4-ots {
  display: flex;
  gap: 12px;
  position: relative;
}

.nfs-ds4-ots-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22px;
  flex-shrink: 0;
}

.nfs-ds4-ots-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  transition: all 0.2s;
}

.nfs-ds4-ots.done .nfs-ds4-ots-circle {
  background: linear-gradient(135deg, #22C55E, #14A34A);
  color: #fff;
  box-shadow: 0 2px 6px rgba(20, 163, 74, 0.3);
}

.nfs-ds4-ots.active .nfs-ds4-ots-circle {
  background: linear-gradient(135deg, var(--nfs-blue2), var(--nfs-blue));
  color: #fff;
  box-shadow: 0 0 0 3px var(--nfs-blue-glow), 0 2px 8px rgba(26, 95, 217, 0.3);
  font-size: 8px;
  animation: nfs-ds4-pulse-dot 1.5s ease infinite;
}

.nfs-ds4-ots.pending .nfs-ds4-ots-circle {
  background: linear-gradient(160deg, var(--nfs-ch1), var(--nfs-ch2));
  color: var(--nfs-t4);
  border: 1.5px solid var(--nfs-ch3);
}

.nfs-ds4-ots-line {
  flex: 1;
  width: 1.5px;
  background: linear-gradient(180deg, var(--nfs-blue) 0%, var(--nfs-ch2) 100%);
}

.nfs-ds4-ots.pending .nfs-ds4-ots-line {
  background: var(--nfs-ch2);
}

.nfs-ds4-ots-content {
  padding: 0 0 16px 0;
  flex: 1;
}

.nfs-ds4-ots-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--nfs-t1);
}

.nfs-ds4-ots.pending .nfs-ds4-ots-title {
  color: var(--nfs-t4);
}

.nfs-ds4-ots.active .nfs-ds4-ots-title {
  color: var(--nfs-blue);
}

.nfs-ds4-ots-sub {
  font-size: 10px;
  color: var(--nfs-t3);
  margin-top: 2px;
}

.nfs-ds4-ots-tag {
  display: inline-flex;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 5px;
}

.nfs-ds4-ots.done .nfs-ds4-ots-tag {
  background: var(--nfs-green-light);
  color: var(--nfs-green);
  border: 0.5px solid rgba(20, 163, 74, 0.2);
}

.nfs-ds4-ots.active .nfs-ds4-ots-tag {
  background: var(--nfs-blue-light);
  color: var(--nfs-blue);
  border: 0.5px solid rgba(26, 95, 217, 0.2);
}

/* ════════════════════════
   U. PRICE COMPARISON (RB market)
════════════════════════*/
.nfs-ds4-cmp-block {
  background: linear-gradient(170deg, var(--nfs-white), var(--nfs-ch1));
  border: 0.5px solid var(--nfs-b1);
  border-radius: var(--nfs-rl);
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nfs-ds4-cmp-bar-wrap {
  margin-bottom: 14px;
}

.nfs-ds4-cmp-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 5px;
}

.nfs-ds4-cmp-bar-track {
  height: 8px;
  background: var(--nfs-ch2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.nfs-ds4-cmp-bar-fill {
  height: 100%;
  border-radius: 4px;
  position: relative;
}

.nfs-ds4-cmp-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: nfs-shimmer 2.5s linear infinite;
}

.nfs-ds4-cmp-saving {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--nfs-green-light);
  border: 0.5px solid rgba(20, 163, 74, 0.2);
  border-radius: 8px;
}

.nfs-ds4-cmp-save-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--nfs-green);
}

.nfs-ds4-cmp-save-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--nfs-green);
}

.nfs-ds4-cmp-logo {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(26, 95, 217, 0.12), rgba(26, 95, 217, 0.06));
  border: 0.5px solid rgba(26, 95, 217, 0.2);
  color: var(--nfs-blue);
}

/* ════════════════════════
   V. CHAT / MESSAGING
════════════════════════*/
.nfs-ds4-chat-wrap {
  background: linear-gradient(170deg, var(--nfs-white), var(--nfs-ch1));
  border: 0.5px solid var(--nfs-b1);
  border-radius: var(--nfs-rl);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nfs-ds4-chat-head {
  padding: 12px 16px;
  background: linear-gradient(160deg, var(--nfs-cockpit), #111827);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.nfs-ds4-chat-head::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--nfs-blue), var(--nfs-red), transparent);
  opacity: 0.4;
}

.nfs-ds4-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nfs-blue2), var(--nfs-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nfs-ds4-chat-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.nfs-ds4-chat-online {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}

.nfs-ds4-chat-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.nfs-ds4-chat-msgs {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
}

.nfs-ds4-msg {
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nfs-ds4-msg.out {
  align-self: flex-end;
  align-items: flex-end;
}

.nfs-ds4-msg.in {
  align-self: flex-start;
}

.nfs-ds4-msg-bubble {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
}

.nfs-ds4-msg.in .nfs-ds4-msg-bubble {
  background: linear-gradient(160deg, var(--nfs-ch1), var(--nfs-ch2));
  color: var(--nfs-t1);
  border-radius: 2px 10px 10px 10px;
  border: 0.5px solid var(--nfs-b1);
}

.nfs-ds4-msg.out .nfs-ds4-msg-bubble {
  background: var(--nfs-blue-g);
  color: #fff;
  border-radius: 10px 2px 10px 10px;
  box-shadow: 0 2px 8px rgba(26, 95, 217, 0.25);
}

.nfs-ds4-msg-time {
  font-size: 9px;
  color: var(--nfs-t4);
  font-weight: 600;
}

.nfs-ds4-chat-input {
  padding: 10px 14px;
  border-top: 0.5px solid var(--nfs-b1);
  display: flex;
  gap: 8px;
  background: linear-gradient(180deg, var(--nfs-white), var(--nfs-ch1));
}

.nfs-ds4-chat-inp {
  flex: 1;
  padding: 8px 12px;
  border: 0.5px solid var(--nfs-b2);
  border-radius: 8px;
  font-family: var(--nfs-ff);
  font-size: 11px;
  background: linear-gradient(180deg, var(--nfs-white), var(--nfs-ch1));
  outline: none;
  color: var(--nfs-t1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) inset;
}

.nfs-ds4-chat-inp:focus {
  border-color: var(--nfs-b3);
  box-shadow: 0 0 0 3px var(--nfs-blue-glow);
}

.nfs-ds4-chat-send {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--nfs-blue-g);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(26, 95, 217, 0.28);
}

.nfs-ds4-ibtn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(160deg, #fff, var(--nfs-ch1));
  border: 0.5px solid var(--nfs-b2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--nfs-t3);
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nfs-ds4-ibtn:hover {
  border-color: rgba(26, 95, 217, 0.4);
  color: var(--nfs-blue);
  box-shadow: 0 0 0 3px var(--nfs-blue-glow);
}

/* ════════════════════════
   W. MODAL DIALOG
════════════════════════*/
.nfs-ds4-modal-overlay {
  background: rgba(13, 17, 23, 0.45);
  border-radius: var(--nfs-rl);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.nfs-ds4-modal {
  background: linear-gradient(160deg, var(--nfs-white) 0%, var(--nfs-ch1) 100%);
  border: 0.5px solid var(--nfs-b2);
  border-radius: var(--nfs-rl);
  padding: 22px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  position: relative;
  overflow: hidden;
}

.nfs-ds4-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--nfs-blue) 0% 33%, #fff 33% 35%, var(--nfs-red) 35% 68%, #fff 68% 70%, var(--nfs-ch3) 70% 100%);
  background-size: 300% 100%;
  animation: nfs-shimmer 3s linear infinite;
}

.nfs-ds4-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 0.5px solid var(--nfs-b2);
  background: var(--nfs-ch1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nfs-t4);
  transition: all 0.15s;
}

.nfs-ds4-modal-close:hover {
  background: var(--nfs-ch2);
  color: var(--nfs-t1);
}

.nfs-ds4-modal-emoji {
  font-size: 18px;
  margin-bottom: 6px;
  margin-top: 8px;
}

.nfs-ds4-modal-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--nfs-t1);
  margin-bottom: 4px;
}

.nfs-ds4-modal-sub {
  font-size: 11px;
  color: var(--nfs-t3);
  margin-bottom: 16px;
  line-height: 1.6;
}

.nfs-ds4-modal-inp {
  width: 100%;
  padding: 9px 12px;
  border: 0.5px solid var(--nfs-b2);
  border-radius: 8px;
  font-family: var(--nfs-ff);
  font-size: 12px;
  color: var(--nfs-t1);
  background: linear-gradient(180deg, #fff, var(--nfs-ch1));
  outline: none;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) inset;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nfs-ds4-modal-inp:focus {
  border-color: var(--nfs-b3);
  box-shadow: 0 0 0 3px var(--nfs-blue-glow);
}

.nfs-ds4-modal-inp::placeholder {
  color: var(--nfs-t4);
}

/* ════════════════════════
   X. EMPTY STATE
════════════════════════*/
.nfs-ds4-empty-state {
  text-align: center;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.nfs-ds4-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--nfs-ch1), var(--nfs-ch2));
  border: 0.5px solid var(--nfs-b2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nfs-ds4-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--nfs-t1);
}

.nfs-ds4-empty-sub {
  font-size: 12px;
  color: var(--nfs-t3);
  max-width: 220px;
  line-height: 1.6;
}

/* ════════════════════════
   Y. LOADING SKELETON
════════════════════════*/
.nfs-ds4-skel {
  background: linear-gradient(90deg, var(--nfs-ch1) 25%, var(--nfs-ch2) 50%, var(--nfs-ch1) 75%);
  background-size: 200% 100%;
  animation: nfs-shimmer 1.5s linear infinite;
  border-radius: 6px;
}

/* ════════════════════════
   ZA. COMPARISON TABLE
════════════════════════*/
.nfs-ds4-cmp-table {
  width: 100%;
  border-collapse: collapse;
}

.nfs-ds4-cmp-th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--nfs-t4);
  border-bottom: 0.5px solid var(--nfs-b2);
}

.nfs-ds4-cmp-th.car-col {
  background: linear-gradient(160deg, var(--nfs-white), var(--nfs-ch1));
  border-radius: 8px 8px 0 0;
  border: 0.5px solid var(--nfs-b2);
  border-bottom: none;
  padding: 12px;
}

.nfs-ds4-cmp-th.highlight {
  background: linear-gradient(150deg, rgba(59, 127, 255, 0.08), rgba(26, 95, 217, 0.03));
  border-color: rgba(26, 95, 217, 0.25);
}

.nfs-ds4-cmp-td {
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--nfs-t1);
  border-bottom: 0.5px solid var(--nfs-b1);
}

.nfs-ds4-cmp-td.key {
  color: var(--nfs-t3);
  font-weight: 500;
}

.nfs-ds4-cmp-td.highlight {
  background: rgba(26, 95, 217, 0.03);
}

.nfs-ds4-cmp-tr:hover td {
  background: rgba(26, 95, 217, 0.03);
}

.nfs-ds4-cmp-winner {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  color: var(--nfs-green);
  background: var(--nfs-green-light);
  border: 0.5px solid rgba(20, 163, 74, 0.2);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

/* ════════════════════════
   ZB. AI SEARCH
════════════════════════*/
.nfs-ds4-ai-search-box {
  background: linear-gradient(155deg, var(--nfs-cockpit) 0%, #111827 60%, #101828 100%);
  border: 0.5px solid rgba(26, 95, 217, 0.22);
  border-radius: var(--nfs-rl);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.nfs-ds4-ai-search-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--nfs-blue), var(--nfs-blue3), #fff, var(--nfs-amber), var(--nfs-blue3), var(--nfs-blue));
  background-size: 300% 100%;
  animation: nfs-shimmer 3s linear infinite;
}

.nfs-ds4-ai-search-inp {
  width: 100%;
  padding: 11px 48px 11px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  font-family: var(--nfs-ff);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 12px;
}

.nfs-ds4-ai-search-inp:focus {
  border-color: rgba(59, 127, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 127, 255, 0.15);
}

.nfs-ds4-ai-search-inp::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.nfs-ds4-ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.nfs-ds4-ai-chip {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.2s;
}

.nfs-ds4-ai-chip:hover,
.nfs-ds4-ai-chip.on {
  background: linear-gradient(135deg, rgba(59, 127, 255, 0.2), rgba(26, 95, 217, 0.1));
  border-color: rgba(59, 127, 255, 0.4);
  color: var(--nfs-blue3);
}

.nfs-ds4-ai-result-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

/* ════════════════════════
   Z. FOOTER — фон и ритм как у .nfs-header; крупнее шрифты и логотип
════════════════════════*/
.nfs-ds4-footer {
  /* Как у шапки: тёмный градиент без резкого перехода к «другому» чёрному */
  background: linear-gradient(155deg, #0d1117 0%, #111827 55%, #151c2e 100%);
  border-radius: 0;
  padding: 40px 0 36px;
  position: relative;
  overflow: hidden;
}

/* Анимированная полоска сверху футера отключена */
.nfs-ds4-footer::before {
  content: none;
  display: none;
}

.nfs-ds4-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px 24px;
  margin-bottom: 28px;
}

.nfs-ds4-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* Логотип в футере — те же пропорции полос и слова, что в .nfs-header */
.nfs-ds4-footer .nfs-ds4-footer-logo-link {
  text-decoration: none;
  color: inherit;
}

.nfs-ds4-footer .nfs-logo--animated {
  gap: 10px;
}

.nfs-ds4-footer .nfs-logo-word {
  font-family: var(--nfs-ff, 'Montserrat', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f3f4f6;
  line-height: 1;
  /* Перебиваем градиентный текст из демо/наследования */
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #f3f4f6;
  animation: none;
  max-width: min(280px, 100%);
}

.nfs-ds4-footer .nfs-logo-stripes {
  height: 28px;
  flex-shrink: 0;
}

.nfs-ds4-footer .nfs-logo-stripes span {
  width: 5px;
}

.nfs-ds4-footer .nfs-logo-stripes span:nth-child(1) {
  height: 28px;
}

.nfs-ds4-footer .nfs-logo-stripes span:nth-child(2) {
  height: 22px;
}

.nfs-ds4-footer .nfs-logo-stripes span:nth-child(3) {
  height: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .nfs-ds4-footer .nfs-logo-stripes span {
    animation: none !important;
  }
}

/* Демо-блок футера: старые классы без .nfs-logo — крупнее под новый масштаб */
.nfs-ds4-fl-stripes {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 28px;
}

.nfs-ds4-fl-stripes span {
  width: 5px;
  border-radius: 1px;
  transform: skewX(-12deg);
}

.nfs-ds4-fl-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--nfs-ch3) 0%, var(--nfs-blue3) 40%, var(--nfs-ch3) 60%, var(--nfs-ch4) 80%, var(--nfs-ch3) 100%);
  background-size: 300% 100%;
  animation: nfs-shimmer-slow 5s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nfs-ds4-footer-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: 18px;
}

.nfs-ds4-social-row {
  display: flex;
  gap: 8px;
}

.nfs-ds4-soc-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  outline: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0; /* иконки Tabler SVG, не текст */
  line-height: 0;
  text-decoration: none;
  padding: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* Иконка на всю площадь кнопки (38×38; align-items:center мешает % — задаём явно) */
.nfs-ds4-soc-btn .nfs-ds4-soc-ico.nfs-ico {
  width: 38px !important;
  height: 38px !important;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
  opacity: 0.95;
}

.nfs-ds4-soc-btn:hover {
  background: rgba(26, 95, 217, 0.2);
  color: var(--nfs-blue3);
}

.nfs-ds4-soc-btn:hover .nfs-ds4-soc-ico {
  opacity: 1;
}

.nfs-ds4-soc-btn:focus-visible {
  outline: 2px solid rgba(59, 127, 255, 0.65);
  outline-offset: 2px;
}

.nfs-ds4-fl-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
}

.nfs-ds4-fl-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
  margin-bottom: 9px;
  cursor: pointer;
  display: block;
  transition: color 0.15s;
  text-decoration: none;
}

.nfs-ds4-fl-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.nfs-ds4-fl-contact {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.nfs-ds4-fl-contact svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.nfs-ds4-footer-subscribe {
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 8px;
}

.nfs-ds4-fl-email {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--nfs-ff);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  outline: none;
}

.nfs-ds4-fl-email::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.nfs-ds4-fl-send {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--nfs-blue-g);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26, 95, 217, 0.3);
}

.nfs-ds4-footer-bottom {
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nfs-ds4-fb-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
}

.nfs-ds4-fb-links {
  display: flex;
  gap: 18px;
}

.nfs-ds4-fb-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
}

.nfs-ds4-fb-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Адаптив */
@media (max-width: 820px) {
  .nfs-ds4-hero {
    padding-bottom: 180px;
  }

  .nfs-ds4-route-mini {
    position: static;
    width: 100%;
    margin-top: 20px;
  }

  .nfs-ds4-stages-wrap {
    flex-direction: column;
  }

  .nfs-ds4-stage-item {
    border-right: none;
    border-bottom: 0.5px solid var(--nfs-b1);
  }

  .nfs-ds4-stage-item:first-child {
    border-radius: var(--nfs-r) var(--nfs-r) 0 0;
  }

  .nfs-ds4-stage-item:last-child {
    border-radius: 0 0 var(--nfs-r) var(--nfs-r);
    border-bottom: none;
  }

  .nfs-ds4-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .nfs-ds4-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Утилита для доступности */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
