/**
 * NFS AUTO — Стили секций согласно дизайн-системе v3
 * Features, Import, AI Assistant, Footer
 */

/* ══════════════════════════════════════════════════════════
   ОБЩИЕ СТИЛИ СЕКЦИЙ
   ══════════════════════════════════════════════════════════ */

.nfs-section {
  padding: 5rem 0;
  background: var(--nfs-bg);
  position: relative;
}

.nfs-section--alt {
  background: var(--nfs-surface);
}

/* Заголовок секции */
.nfs-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.nfs-section-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font-family: var(--nfs-ff);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--nfs-t1);
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.nfs-accent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* Внутри обёртки акцент остаётся инлайновым, иначе ломается строка заголовка */
.nfs-section-title-inner .nfs-accent {
  display: inline;
  flex-direction: unset;
  justify-content: unset;
  align-items: unset;
}

.nfs-section-title .nfs-accent {
  background: linear-gradient(135deg, var(--nfs-blue2), var(--nfs-blue-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nfs-section-subtitle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font-family: var(--nfs-ff);
  font-size: 1.125rem;
  color: var(--nfs-t3);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   FEATURES SECTION
   ══════════════════════════════════════════════════════════ */

.nfs-features {
  padding: 5rem 0;
  background: var(--nfs-bg);
}

.nfs-features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .nfs-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .nfs-features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Карточка возможности — использует nfs-motif-card */
.nfs-feature-card {
  border-radius: var(--nfs-rl);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--nfs-white), var(--nfs-ch1));
  border: 0.5px solid var(--nfs-b1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 0 rgba(255,255,255,0.9) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

/* Анимированная полоса слева */
.nfs-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,
    var(--nfs-blue) 0% 28%,
    var(--nfs-white) 28%, var(--nfs-white) 32%,
    var(--nfs-red) 32%, var(--nfs-red) 60%,
    var(--nfs-white) 60%, var(--nfs-white) 64%,
    var(--nfs-ch3) 64%, var(--nfs-ch3) 88%,
    var(--nfs-white) 88%, var(--nfs-white) 92%,
    var(--nfs-ch3) 92%
  );
  background-size: 100% 300%;
  animation: nfs-shimmer-vertical 3.5s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nfs-feature-card:hover::before {
  opacity: 1;
}

.nfs-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 95, 217, 0.25);
  box-shadow: 
    0 0 0 3px var(--nfs-blue-glow),
    0 8px 24px rgba(0,0,0,0.08);
}

.nfs-feature-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.nfs-feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--nfs-r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Shimmer overlay на иконках */
.nfs-feature-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: 200% center;
  transition: background-position 0.4s;
}

.nfs-feature-card:hover .nfs-feature-icon::after {
  background-position: -200% center;
}

/* Градиенты иконок */
.nfs-feature-icon--blue {
  background: linear-gradient(150deg, #3B7FFF 0%, var(--nfs-blue) 50%, #1248B0 100%);
  box-shadow: 0 2px 10px rgba(26, 95, 217, 0.3);
}

.nfs-feature-icon--red {
  background: linear-gradient(150deg, #E03030 0%, var(--nfs-red) 50%, #A01818 100%);
  box-shadow: 0 2px 10px rgba(201, 34, 34, 0.25);
}

.nfs-feature-icon--purple {
  background: linear-gradient(150deg, #8B5CF6 0%, #7C3AED 50%, #5B21B6 100%);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.nfs-feature-icon--green {
  background: linear-gradient(150deg, var(--nfs-green-bright) 0%, var(--nfs-green) 50%, var(--nfs-green-dark) 100%);
  box-shadow: 0 2px 10px rgba(20, 163, 74, 0.25);
}

.nfs-feature-icon--orange {
  background: linear-gradient(150deg, var(--nfs-amber-bright) 0%, var(--nfs-amber) 50%, var(--nfs-amber-dark) 100%);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.nfs-feature-icon--cyan {
  background: linear-gradient(150deg, #22D3EE 0%, #06B6D4 50%, #0891B2 100%);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.nfs-feature-icon--indigo {
  background: linear-gradient(150deg, #818CF8 0%, #6366F1 50%, #4F46E5 100%);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.nfs-feature-icon--rose {
  background: linear-gradient(150deg, #FB7185 0%, #F43F5E 50%, #E11D48 100%);
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.3);
}

.nfs-feature-icon--teal {
  background: linear-gradient(150deg, #2DD4BF 0%, #14B8A6 50%, #0D9488 100%);
  box-shadow: 0 2px 10px rgba(20, 184, 166, 0.3);
}

.nfs-feature-title {
  font-family: var(--nfs-ff);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--nfs-t1);
  margin: 0;
  line-height: 1.3;
}

.nfs-feature-desc {
  font-family: var(--nfs-ff);
  font-size: 0.9375rem;
  color: var(--nfs-t3);
  line-height: 1.55;
  margin: 0;
}

/* CTA кнопка секции */
.nfs-section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ══════════════════════════════════════════════════════════
   IMPORT SECTION
   ══════════════════════════════════════════════════════════ */

/* Секция импорта: как в референсе dizich — фон страницы, не белая «простыня» */
.nfs-import,
.import-section {
  padding: 52px 0;
  background: var(--nfs-bg);
}

/* Обёртка контента как в референсе (section-inner вместо .container) */
.section-inner {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Табы стран */
.nfs-import-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.nfs-import-tab {
  font-family: var(--nfs-ff);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  border: 0.5px solid var(--nfs-b2);
  background: linear-gradient(160deg, var(--nfs-white), var(--nfs-ch1));
  color: var(--nfs-t3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.nfs-import-tab.active {
  background: linear-gradient(150deg, #3B7FFF 0%, var(--nfs-blue2) 40%, var(--nfs-blue) 70%, #1248B0 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 2px 10px rgba(26, 95, 217, 0.3);
}

/* Калькулятор */
.nfs-calculator {
  background: linear-gradient(170deg, var(--nfs-white) 0%, var(--nfs-ch1) 100%);
  border: 0.5px solid var(--nfs-b1);
  border-radius: var(--nfs-rl);
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.9) inset;
  position: relative;
  overflow: hidden;
}

/* Анимированная полоса сверху */
.nfs-calculator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--nfs-blue) 0% 28%,
    var(--nfs-white) 28%, var(--nfs-white) 32%,
    var(--nfs-red) 32%, var(--nfs-red) 60%,
    var(--nfs-white) 60%, var(--nfs-white) 64%,
    var(--nfs-ch3) 64%, var(--nfs-ch3) 88%,
    var(--nfs-white) 88%, var(--nfs-white) 92%,
    var(--nfs-ch3) 92%
  );
  background-size: 300% 100%;
  animation: nfs-shimmer 3.5s linear infinite;
}

.nfs-calculator-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nfs-calculator-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--nfs-r);
  background: linear-gradient(150deg, #3B7FFF 0%, var(--nfs-blue) 50%, #1248B0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 2px 10px rgba(26, 95, 217, 0.3);
}

.nfs-calculator-title {
  font-family: var(--nfs-ff);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--nfs-t1);
  margin: 0 0 0.25rem 0;
}

.nfs-calculator-subtitle {
  font-family: var(--nfs-ff);
  font-size: 0.9375rem;
  color: var(--nfs-t3);
  margin: 0;
}

.nfs-calculator-disclaimer {
  font-family: var(--nfs-ff);
  font-size: 0.8125rem;
  color: var(--nfs-t4);
  background: linear-gradient(135deg, rgba(59,127,255,0.06), rgba(26,95,217,0.03));
  border: 0.5px solid rgba(26,95,217,0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

/* Слайдеры */
.nfs-slider-group {
  margin-bottom: 1.5rem;
}

.nfs-slider-label {
  font-family: var(--nfs-ff);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nfs-t2);
  margin-bottom: 0.75rem;
  display: block;
}

.nfs-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--nfs-ch2), var(--nfs-ch3));
  border-radius: 3px;
  outline: none;
}

.nfs-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(150deg, #3B7FFF 0%, var(--nfs-blue) 50%, #1248B0 100%);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 95, 217, 0.4);
  transition: transform 0.15s ease;
}

.nfs-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.nfs-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(150deg, #3B7FFF 0%, var(--nfs-blue) 50%, #1248B0 100%);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 95, 217, 0.4);
  border: none;
}

.nfs-slider-values {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-family: var(--nfs-ff);
  font-size: 0.75rem;
  color: var(--nfs-t4);
}

.nfs-slider-values .current {
  font-weight: 700;
  color: var(--nfs-blue);
  font-family: var(--nfs-ff-mono);
}

/* Breakdown */
.nfs-breakdown {
  background: linear-gradient(160deg, var(--nfs-ch1), var(--nfs-ch2) 50%);
  border-radius: var(--nfs-r);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.nfs-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 0.5px solid var(--nfs-b1);
  font-family: var(--nfs-ff);
  font-size: 0.875rem;
}

.nfs-breakdown-item:last-child {
  border-bottom: none;
}

.nfs-breakdown-item span:first-child {
  color: var(--nfs-t3);
}

.nfs-breakdown-item span:last-child {
  font-weight: 600;
  color: var(--nfs-t1);
  font-family: var(--nfs-ff-mono);
}

.nfs-breakdown-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--nfs-b2);
  font-family: var(--nfs-ff);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--nfs-t2);
}

.nfs-breakdown-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, rgba(20, 163, 74, 0.08), rgba(20, 163, 74, 0.03));
  border: 0.5px solid rgba(20, 163, 74, 0.2);
  border-radius: 8px;
  font-family: var(--nfs-ff);
}

.nfs-breakdown-total span:first-child {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nfs-t1);
}

.nfs-breakdown-total span:last-child {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--nfs-green);
  font-family: var(--nfs-ff-mono);
}

/* Savings */
.nfs-savings {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(20, 163, 74, 0.1), rgba(20, 163, 74, 0.04));
  border: 0.5px solid rgba(20, 163, 74, 0.22);
  border-radius: var(--nfs-r);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.nfs-savings-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--nfs-green-bright) 0%, var(--nfs-green) 50%, var(--nfs-green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
  animation: nfs-savings-pulse 2s ease-in-out infinite;
}

@keyframes nfs-savings-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.nfs-savings-label {
  font-family: var(--nfs-ff);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nfs-t4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nfs-savings-value {
  font-family: var(--nfs-ff-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--nfs-green);
  line-height: 1;
  margin: 0.25rem 0;
}

/* Stub (заглушка) */
.nfs-import-stub {
  background: linear-gradient(170deg, var(--nfs-white) 0%, var(--nfs-ch1) 100%);
  border: 0.5px solid var(--nfs-b1);
  border-radius: var(--nfs-rl);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nfs-import-stub-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--nfs-ch1), var(--nfs-ch2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: var(--nfs-t3);
}

.nfs-import-stub-title {
  font-family: var(--nfs-ff);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nfs-t1);
  margin: 0 0 0.75rem 0;
}

.nfs-import-stub-text {
  font-family: var(--nfs-ff);
  font-size: 0.9375rem;
  color: var(--nfs-t3);
  max-width: 500px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   AI ASSISTANT SECTION
   ══════════════════════════════════════════════════════════ */

.nfs-ai-section,
section.ai-section {
  padding: 5rem 0;
  background: var(--nfs-bg);
}

.nfs-ai-card {
  background: linear-gradient(155deg, #0C1630 0%, #0A1020 60%, #101828 100%);
  border-radius: var(--nfs-rl);
  border: 0.5px solid rgba(26, 95, 217, 0.22);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(26, 95, 217, 0.18);
  padding: 2rem;
}

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

.nfs-ai-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.nfs-ai-info-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nfs-ai-info-btn:hover {
  background: rgba(26, 95, 217, 0.2);
  border-color: rgba(26, 95, 217, 0.4);
  color: var(--nfs-blue3);
}

.nfs-ai-input-section {
  max-width: 600px;
  margin: 0 auto;
}

.nfs-ai-label {
  font-family: var(--nfs-ff);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.75rem;
  display: block;
}

.nfs-ai-input-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.nfs-ai-input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nfs-t4);
  font-size: 0.875rem;
}

.nfs-ai-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  font-family: var(--nfs-ff);
  font-size: 0.9375rem;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.nfs-ai-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.nfs-ai-input:focus {
  background: rgba(26, 95, 217, 0.1);
  border-color: rgba(26, 95, 217, 0.5);
  box-shadow: 0 0 0 3px rgba(26, 95, 217, 0.15);
}

.nfs-ai-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: rgba(255,255,255,0.4);
  font-family: var(--nfs-ff);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nfs-ai-divider::before,
.nfs-ai-divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: rgba(255,255,255,0.12);
}

.nfs-ai-upload {
  border: 1.5px dashed rgba(255,255,255,0.2);
  border-radius: var(--nfs-r);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

.nfs-ai-upload:hover {
  border-color: rgba(26, 95, 217, 0.5);
  background: rgba(26, 95, 217, 0.08);
}

.nfs-ai-upload i {
  font-size: 2rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
  display: block;
}

.nfs-ai-upload p {
  font-family: var(--nfs-ff);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 0.25rem 0;
}

.nfs-ai-upload span {
  font-family: var(--nfs-ff);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* CTA карточка внутри AI */
.nfs-ai-cta {
  background: linear-gradient(135deg, rgba(26, 95, 217, 0.15), rgba(26, 95, 217, 0.08));
  border: 0.5px solid rgba(26, 95, 217, 0.3);
  border-radius: var(--nfs-r);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.nfs-ai-cta-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--nfs-amber-bright), var(--nfs-amber));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: #fff;
  font-size: 1rem;
}

.nfs-ai-cta h4 {
  font-family: var(--nfs-ff);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.nfs-ai-cta p {
  font-family: var(--nfs-ff);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin: 0 0 1rem 0;
}

.nfs-ai-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nfs-ff);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(150deg, var(--nfs-amber-bright), var(--nfs-amber), var(--nfs-amber-dark));
  color: #fff;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
}

.nfs-ai-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

/* Кнопка анализа */
.nfs-ai-analyze-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--nfs-ff);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(150deg, #3B7FFF 0%, var(--nfs-blue2) 40%, var(--nfs-blue) 70%, #1248B0 100%);
  color: #fff;
  box-shadow: 
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 2px 12px rgba(26, 95, 217, 0.4);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

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

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

.nfs-ai-analyze-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 1px rgba(59,127,255,0.6),
    0 4px 20px rgba(26, 95, 217, 0.45);
}

.nfs-ai-tokens {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 1rem;
  font-family: var(--nfs-ff);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

.nfs-ai-tokens i {
  color: var(--nfs-amber);
}

.nfs-ai-tokens strong {
  color: var(--nfs-amber-bright);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */

.nfs-footer {
  background: linear-gradient(180deg, var(--nfs-cockpit-mid) 0%, var(--nfs-cockpit) 100%);
  padding: 0;
  position: relative;
}

/* Анимированная полоса сверху */
.nfs-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--nfs-blue) 0%, var(--nfs-blue3) 15%, #fff 25%, var(--nfs-blue3) 35%,
    var(--nfs-red) 50%, #ff9999 62%, var(--nfs-red) 72%,
    var(--nfs-ch3) 82%, #fff 90%, var(--nfs-ch3) 100%
  );
  background-size: 300% 100%;
  animation: nfs-shimmer 3.5s linear infinite;
}

.nfs-footer-content {
  padding: 3.5rem 0 2rem;
}

.nfs-footer-brand {
  margin-bottom: 1rem;
}

.nfs-footer-brand img {
  height: 40px;
  width: auto;
}

.nfs-footer-logo-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 24px;
}

.nfs-footer-logo-bars .bar {
  width: 5px;
  border-radius: 1.5px;
  transform: skewX(-12deg);
}

.nfs-footer-logo-bars .bar-1 {
  background: linear-gradient(180deg, #3B7FFF, #1A5FD9, #0A2A80, #1A5FD9, #3B7FFF);
  background-size: 100% 300%;
  animation: nfs-shimmer-vertical 3s linear infinite;
  height: 24px;
}

.nfs-footer-logo-bars .bar-2 {
  background: linear-gradient(180deg, #E03030, #C92222, #801010, #C92222, #E03030);
  background-size: 100% 300%;
  animation: nfs-shimmer-vertical 3s linear infinite 0.5s;
  height: 18px;
}

.nfs-footer-logo-bars .bar-3 {
  background: linear-gradient(180deg, #FFFFFF, #D8DCE8, #909AAE, #D8DCE8, #FFFFFF);
  background-size: 100% 300%;
  animation: nfs-shimmer-vertical 3s linear infinite 1s;
  height: 12px;
}

.nfs-footer-description {
  font-family: var(--nfs-ff);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  max-width: 280px;
}

.nfs-footer-social {
  display: flex;
  gap: 0.75rem;
}

.nfs-footer-social-link {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nfs-footer-social-link:hover {
  background: rgba(26, 95, 217, 0.2);
  border-color: rgba(26, 95, 217, 0.4);
  color: var(--nfs-blue3);
}

.nfs-footer-title {
  font-family: var(--nfs-ff);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 1.25rem 0;
}

.nfs-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nfs-footer-links li {
  margin-bottom: 0.75rem;
}

.nfs-footer-links a {
  font-family: var(--nfs-ff);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nfs-footer-links a:hover {
  color: var(--nfs-blue3);
}

.nfs-footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.nfs-footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-family: var(--nfs-ff);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.nfs-footer-contacts li i {
  color: var(--nfs-blue3);
  font-size: 0.875rem;
  margin-top: 0.125rem;
}

.nfs-footer-contacts a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nfs-footer-contacts a:hover {
  color: var(--nfs-blue3);
}

/* Newsletter */
.nfs-footer-newsletter h5 {
  font-family: var(--nfs-ff);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin: 0 0 0.75rem 0;
}

.nfs-newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.nfs-newsletter-input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  font-family: var(--nfs-ff);
  font-size: 0.875rem;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.nfs-newsletter-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.nfs-newsletter-input:focus {
  background: rgba(26, 95, 217, 0.1);
  border-color: rgba(26, 95, 217, 0.5);
}

.nfs-newsletter-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(150deg, #3B7FFF 0%, var(--nfs-blue) 50%, #1248B0 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(26, 95, 217, 0.3);
}

.nfs-newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 95, 217, 0.4);
}

/* Footer bottom */
.nfs-footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nfs-footer-bottom p {
  font-family: var(--nfs-ff);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.nfs-footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.nfs-footer-bottom-links a {
  font-family: var(--nfs-ff);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nfs-footer-bottom-links a:hover {
  color: var(--nfs-blue3);
}

/* Back to top */
.nfs-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: linear-gradient(150deg, #3B7FFF 0%, var(--nfs-blue) 50%, #1248B0 100%);
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(26, 95, 217, 0.4);
  z-index: 100;
}

.nfs-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nfs-back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(26, 95, 217, 0.5);
}

/* ══════════════════════════════════════════════════════════
   ИМПОРТ: сетка «этапы + калькулятор» (референс nfsauto_homepage)
   ══════════════════════════════════════════════════════════ */

.import-section .section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.import-section .section-header .nfs-section-underline,
.import-section .section-header .section-underline {
  margin-left: 0;
  margin-right: 0;
}

.nfs-import-grid,
.import-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.nfs-import-stages {
  background: linear-gradient(170deg, var(--nfs-white), var(--nfs-ch1));
  border: 0.5px solid var(--nfs-b1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* CTA start-line в карточке этапов импорта (после этапа 6) */
.nfs-import-stages .nfs-import-start-line-embed {
  padding: 14px 18px 16px;
}

.nfs-stage-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--nfs-b1);
  transition: background 0.15s;
}

.nfs-stage-row:last-child {
  border-bottom: none;
}

.nfs-stage-row:hover {
  background: rgba(26, 95, 217, 0.03);
}

.nfs-stage-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  margin-top: 1px;
}

.sn-blue {
  background: linear-gradient(150deg, var(--nfs-blue3), var(--nfs-blue));
  color: #fff;
  box-shadow: 0 0 0 3px rgba(26, 95, 217, 0.15);
}

.sn-gray {
  background: linear-gradient(160deg, var(--nfs-ch1), var(--nfs-ch2));
  color: var(--nfs-ch5);
  border: 1.5px solid var(--nfs-ch3);
}

.nfs-stage-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--nfs-t1);
  margin-bottom: 2px;
}

.nfs-stage-desc {
  font-size: 11px;
  color: var(--nfs-t3);
  line-height: 1.5;
}

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

.st-free {
  background: rgba(20, 163, 74, 0.1);
  color: var(--nfs-green);
  border: 0.5px solid rgba(20, 163, 74, 0.2);
}

.nfs-import-calc-column {
  min-width: 0;
}

/* ИИ: фон и сетка как в референсе (класс только .ai-section) */
.nfs-ai-section.ai-section,
section#aiAssistantSection.ai-section {
  background: linear-gradient(155deg, #0d1117 0%, #111827 60%, #101828 100%);
  position: relative;
  overflow: hidden;
}

.nfs-ai-section.ai-section::before,
section#aiAssistantSection.ai-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(26, 95, 217, 0.06), transparent);
  pointer-events: none;
}

/* Контент ИИ-секции — .section-inner как в референсе */
.nfs-ai-section.ai-section > .container,
section#aiAssistantSection.ai-section > .section-inner {
  position: relative;
  z-index: 1;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.ai-left .nfs-section-eyebrow {
  color: var(--nfs-blue3);
}

h2.ai-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 10px 0;
  line-height: 1.2;
  font-family: var(--nfs-ff);
}

.ai-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin: 0 0 24px 0;
  max-width: 420px;
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.ai-feat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ai-feat-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.nfs-ai-section .nfs-ai-card.ai-box,
section#aiAssistantSection.ai-section .nfs-ai-card.ai-box {
  border-radius: 14px;
  padding: 20px;
}

.ai-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ai-box-head-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(43, 111, 232, 0.2);
  border: 0.5px solid rgba(59, 127, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(59, 127, 255, 0.2);
}

.ai-box-head-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.ai-box-head-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.ai-box-head-text {
  flex: 1;
  min-width: 0;
}

.ai-box-head-badge {
  margin-left: auto;
  background: rgba(43, 111, 232, 0.2);
  color: #7ab3ff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 0.5px solid rgba(59, 127, 255, 0.3);
}

.ai-inp-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.ai-inp-wrap .nfs-ai-input {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.ai-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

.ai-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
}

.ai-check-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 5px currentColor;
}

.ai-check-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.ai-token-note {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nfs-ai-section .btn-ai,
section#aiAssistantSection.ai-section .btn-ai {
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(150deg, var(--nfs-blue3), var(--nfs-blue), #1248b0);
  color: #fff;
  font-family: var(--nfs-ff);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(26, 95, 217, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  margin-top: 0;
}

.nfs-ai-section .ai-box-info-btn,
section#aiAssistantSection.ai-section .ai-box-info-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.nfs-ai-eyebrow-line {
  background: linear-gradient(90deg, var(--nfs-blue3), transparent) !important;
}

/* Заголовки главной: как в референсе nfsauto_homepage — влево, каталог — ссылка справа */
#carListingsSection .nfs-listings-header {
  text-align: left;
}

#carListingsSection .nfs-section-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

#carListingsSection .nfs-section-header-inner > div:first-child {
  text-align: left;
  flex: 1;
  min-width: 200px;
}

#carListingsSection .nfs-section-eyebrow {
  justify-content: flex-start;
}

#carListingsSection .nfs-section-title,
#carListingsSection .nfs-section-subtitle {
  align-items: flex-start;
  text-align: left;
}

/* Заголовок «Популярные предложения» — одна строка (базовый .nfs-section-title — column) */
#carListingsSection .nfs-section-title {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.2em;
  white-space: nowrap;
}

#carListingsSection .nfs-section-subtitle {
  margin-left: 0;
  margin-right: 0;
}

#featuresSection .nfs-section-header {
  text-align: left;
}

#featuresSection .nfs-sec-label,
#featuresSection .nfs-section-title,
#featuresSection .nfs-section-subtitle {
  text-align: left;
}

#featuresSection .nfs-section-title {
  align-items: flex-start;
}

#featuresSection .nfs-section-subtitle {
  margin-left: 0;
  margin-right: 0;
  align-items: flex-start;
}

#importSection .section-header .nfs-section-title,
#importSection .section-header .nfs-section-subtitle {
  align-items: flex-start;
  text-align: left;
}

/* Заголовок «Импорт под ключ … из Кореи» — одна строка (базовый .nfs-section-title — column) */
#importSection .section-header .nfs-section-title {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.2em;
  white-space: nowrap;
}

#importSection .section-header .nfs-section-subtitle {
  margin-left: 0;
  margin-right: 0;
}

#aiAssistantSection .ai-left {
  text-align: left;
}

#aiAssistantSection .nfs-section-eyebrow {
  justify-content: flex-start;
}

#aiAssistantSection .ai-sub {
  margin-left: 0;
  margin-right: 0;
}

/* Тарифы ИИ-токенов под двухколоночной сеткой ИИ-секции */
.ai-section-token-wrap {
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
}

/* Убираем верхнюю анимированную полоску (nfs-ds4-token-card::before) */
#aiAssistantSection .ai-section-token-wrap .nfs-ds4-token-card::before {
  display: none;
  content: none;
}

.ai-section-token-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ai-section-token-card-head-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(59, 127, 255, 0.25), rgba(26, 95, 217, 0.12));
  border: 0.5px solid rgba(59, 127, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.ai-section-token-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.ai-section-token-card-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.ai-section-token-unit {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.ai-section-token-badge-pro {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
}

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

.ai-section-token-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
  .ai-section-token-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .nfs-import-grid,
  .import-grid {
    grid-template-columns: 1fr;
  }

  .ai-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .nfs-section {
    padding: 3.5rem 0;
  }
  
  .nfs-section-title {
    font-size: 1.75rem;
  }
  
  .nfs-section-subtitle {
    font-size: 1rem;
  }
  
  .nfs-calculator {
    padding: 1.5rem;
  }
  
  .nfs-ai-card {
    padding: 1.5rem;
  }
  
  .nfs-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .nfs-footer-bottom-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nfs-feature-card::before,
  .nfs-calculator::before,
  .nfs-ai-card::before,
  .nfs-footer::before,
  .nfs-savings-icon,
  .nfs-footer-logo-bars .bar {
    animation: none;
  }
}
