/* ============================================================
   NEUROPF — Лендинг (главная страница)
   ============================================================ */

/* ====== Hero ====== */
.npf-hero {
    padding: 96px 0 80px;
    border-bottom: 1px solid var(--npf-border);
    position: relative;
    overflow: hidden;
}

/* Фоновая сетка */
.npf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--npf-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--npf-border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
    pointer-events: none;
}

.npf-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.npf-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--npf-text-3);
    border: 1px solid var(--npf-border-md);
    border-radius: 2px;
    padding: 5px 12px;
    margin-bottom: 20px;
}

.npf-hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--npf-text);
}

.npf-hero-title {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 900;
    letter-spacing: -2.5px;
    line-height: 1.05;
    color: var(--npf-text);
    margin-bottom: 20px;
}

.npf-hero-title span {
    display: block;
    color: var(--npf-text-3);
}

.npf-hero-desc {
    font-size: 16px;
    line-height: 1.75;
    color: var(--npf-text-2);
    margin-bottom: 32px;
    max-width: 480px;
}

.npf-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Визуал справа */
.npf-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.npf-hero-card {
    background: var(--npf-bg);
    border: 1px solid var(--npf-border);
    border-radius: var(--npf-radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--npf-shadow-lg);
}

.npf-hero-card-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--npf-text-3);
    margin-bottom: 16px;
}

.npf-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--npf-border);
}

.npf-metric-row:last-child { border-bottom: none; }

.npf-metric-label { font-size: 13px; color: var(--npf-text-2); }

.npf-metric-value {
    font-family: var(--npf-mono);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--npf-text);
}

.npf-metric-up   { color: var(--npf-success-text) !important; }
.npf-metric-down { color: var(--npf-danger-text)  !important; }

/* ====== Статистика ====== */
.npf-stats-section {
    padding: 64px 0;
    border-bottom: 1px solid var(--npf-border);
}

.npf-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--npf-border);
    border-radius: var(--npf-radius-lg);
    overflow: hidden;
}

.npf-stat-item {
    padding: 28px 24px;
    border-right: 1px solid var(--npf-border);
    text-align: center;
}

.npf-stat-item:last-child { border-right: none; }

.npf-stat-num {
    font-size: 40px;
    font-weight: 900;
    font-family: var(--npf-mono);
    letter-spacing: -2px;
    color: var(--npf-text);
    line-height: 1;
    margin-bottom: 6px;
}

.npf-stat-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--npf-text-3);
}

/* ====== Функционал ====== */
.npf-features-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--npf-border);
}

.npf-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 20px;
}

.npf-section-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--npf-text-3);
    margin-bottom: 8px;
}

.npf-section-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--npf-text);
}

.npf-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--npf-border);
    border: 1px solid var(--npf-border);
    border-radius: var(--npf-radius-lg);
    overflow: hidden;
}

.npf-feature-card {
    background: var(--npf-bg);
    padding: 28px 26px;
    transition: background 0.18s ease;
}

.npf-feature-card:hover { background: var(--npf-bg-2); }

.npf-feature-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--npf-bg-2);
    border: 1px solid var(--npf-border);
    border-radius: var(--npf-radius-md);
    margin-bottom: 14px;
    color: var(--npf-text);
}

.npf-feature-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--npf-text);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.npf-feature-desc {
    font-size: 13.5px;
    color: var(--npf-text-2);
    line-height: 1.65;
}

/* ====== Как работает ====== */
.npf-how-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--npf-border);
}

.npf-how-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.npf-how-step {
    padding: 24px;
    position: relative;
    text-align: center;
}

.npf-how-step::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: var(--npf-border);
}

.npf-how-step:last-child::after { display: none; }

.npf-step-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--npf-text);
    border-radius: 2px;
    font-size: 15px;
    font-weight: 900;
    font-family: var(--npf-mono);
    color: var(--npf-text);
    margin: 0 auto 14px;
}

.npf-step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--npf-text);
    margin-bottom: 6px;
}

.npf-step-desc {
    font-size: 13px;
    color: var(--npf-text-2);
    line-height: 1.6;
}

/* ====== Отзывы ====== */
.npf-reviews-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--npf-border);
}

/* ── Слайдер отзывов ───────────────────────────────────────────────────────── */
.npf-reviews-slider-outer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.npf-reviews-slider-wrap {
    flex: 1;
    overflow: hidden;
}

.npf-reviews-slider {
    display: flex;
    gap: 18px;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    align-items: stretch;
}

.npf-review-card {
    flex-shrink: 0;
    background: var(--npf-bg);
    border: 1px solid var(--npf-border);
    border-radius: var(--npf-radius-lg);
    padding: 22px;
    transition: border-color .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

.npf-review-card:hover {
    border-color: var(--npf-border-dark);
    box-shadow: var(--npf-shadow);
}

/* Кнопки слайдера */
.npf-slider-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--npf-border);
    background: var(--npf-bg-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--npf-text-2);
    transition: var(--npf-transition);
}

.npf-slider-btn:hover:not(:disabled) {
    background: var(--npf-bg-3);
    border-color: var(--npf-border-dark);
    color: var(--npf-text);
}

.npf-slider-btn:disabled {
    opacity: .3;
    cursor: default;
}

/* Точки */
.npf-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
}

.npf-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--npf-border-dark);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width .25s, background .25s;
}

.npf-slider-dot.active {
    width: 22px;
    background: var(--npf-accent);
}

.npf-review-stars {
    font-size: 14px;
    margin-bottom: 10px;
    color: #f59e0b;
    letter-spacing: 2px;
}

.npf-review-text {
    font-size: 13.5px;
    color: var(--npf-text-2);
    line-height: 1.7;
    margin-bottom: 14px;
}

.npf-review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.npf-review-avatar {
    width: 34px;
    height: 34px;
    border-radius: 2px;
    background: var(--npf-bg-3);
    border: 1px solid var(--npf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--npf-mono);
    color: var(--npf-text-2);
    flex-shrink: 0;
}

.npf-review-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--npf-text);
}

.npf-review-meta {
    font-size: 11.5px;
    color: var(--npf-text-3);
}

/* ====== CTA ====== */
.npf-cta-section {
    padding: 96px 0;
    text-align: center;
    border-bottom: 1px solid var(--npf-border);
    position: relative;
    overflow: hidden;
}

.npf-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--npf-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--npf-border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
    pointer-events: none;
}

.npf-cta-inner { position: relative; z-index: 1; }

.npf-cta-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.npf-cta-desc {
    font-size: 16px;
    color: var(--npf-text-2);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ====== Footer (лендинг) ====== */
.npf-landing-footer {
    padding: 36px 0;
    border-top: 1px solid var(--npf-border);
}

.npf-landing-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.npf-landing-footer-logo {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--npf-text);
    text-decoration: none;
}

.npf-landing-footer-links {
    display: flex;
    gap: 20px;
}

.npf-landing-footer-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--npf-text-3);
    text-decoration: none;
    transition: color 0.15s;
}

.npf-landing-footer-links a:hover { color: var(--npf-text); }

.npf-landing-footer-copy { font-size: 12.5px; color: var(--npf-text-3); }

/* ====== Лендинг-хедер ====== */
.npf-landing-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--npf-bg);
    border-bottom: 1px solid var(--npf-border);
    padding: 0;
}

.npf-landing-header-inner {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.npf-landing-nav {
    display: flex;
    gap: 2px;
}

.npf-landing-nav a {
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 500;
    color: var(--npf-text-3);
    text-decoration: none;
    border-radius: var(--npf-radius);
    transition: var(--npf-transition);
}

.npf-landing-nav a:hover {
    background: var(--npf-bg-2);
    color: var(--npf-text);
}

.npf-landing-header-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ====== LIVE-бейдж ====== */
.npf-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #22c55e;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .25);
    border-radius: 20px;
    padding: 3px 9px;
}

.npf-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: npfLivePulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes npfLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

/* ====== Hero-карточка ====== */
.npf-hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* Sparkline */
.npf-sparkline-wrap {
    margin: 0 0 14px;
}

.npf-sparkline {
    width: 100%;
    height: 48px;
    display: block;
}

.npf-sparkline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--npf-text-3);
    margin-top: 3px;
    padding: 0 2px;
}

/* ====== Лента активности ====== */
.npf-activity-section {
    padding: 40px 0 48px;
    border-top: 1px solid var(--npf-border);
}

.npf-activity-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.npf-activity-hint {
    font-size: 12px;
    color: var(--npf-text-3);
}

.npf-activity-ticker-wrap {
    border: 1px solid var(--npf-border);
    border-radius: var(--npf-radius-lg, 12px);
    overflow: hidden;
    background: var(--npf-bg-2);
}

.npf-tick-row {
    display: grid;
    grid-template-columns: 18px 200px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--npf-border);
    transition: background .3s;
}

.npf-tick-row:last-child { border-bottom: none; }

.npf-tick-row.npf-tick-new {
    background: rgba(34, 197, 94, .06);
}

.npf-tick-domain {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: baseline;
    gap: 0;
}

.npf-tick-domain-vis {
    color: var(--npf-accent);
    font-weight: 600;
}

.npf-tick-domain-stars {
    color: var(--npf-text-3);
    letter-spacing: 1px;
}

.npf-tick-domain-tld {
    color: var(--npf-text-2);
}

.npf-tick-kw {
    color: var(--npf-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.npf-tick-region {
    font-size: 12px;
    color: var(--npf-text-3);
    text-align: right;
    white-space: nowrap;
}

/* ====== Адаптив ====== */

/* --- Планшет широкий (до 1000px) --- */
@media (max-width: 1000px) {
    .npf-hero-inner { grid-template-columns: 1fr; }
    .npf-hero-visual { display: none; }
    .npf-hero-desc { max-width: 100%; }
    .npf-features-grid { grid-template-columns: 1fr 1fr; }
    .npf-features-section,
    .npf-how-section,
    .npf-reviews-section { padding: 64px 0; }
    .npf-stats-grid { grid-template-columns: 1fr 1fr; }
    /* Нижняя граница первого ряда в 2-колонке */
    .npf-stats-grid .npf-stat-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--npf-border);
    }
    .npf-how-steps { grid-template-columns: 1fr 1fr; }
    /* Правая колонка шагов — не нужен разделитель справа */
    .npf-how-step:nth-child(even)::after { display: none; }
    /* Чётные статы — нет правой границы (последняя колонка в 2-col) */
    .npf-stats-grid .npf-stat-item:nth-child(2n) { border-right: none; }
    /* Заголовки секций схлопываем */
    .npf-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .npf-section-sub { max-width: 100%; }
}

/* --- Мобильный (до 790px) --- */
@media (max-width: 790px) {
    .npf-hero { padding: 64px 0 48px; }
    /* Уменьшаем letter-spacing заголовков */
    .npf-hero-title { letter-spacing: -1.5px; }
    .npf-cta-title { letter-spacing: -1px; }
    .npf-section-title { letter-spacing: -1px; }

    /* Секции — меньше отступы */
    .npf-features-section,
    .npf-how-section,
    .npf-reviews-section,
    .npf-cta-section,
    .npf-stats-section { padding: 56px 0; }

    .npf-features-grid { grid-template-columns: 1fr; }
    .npf-feature-card { padding: 22px 18px; }

    .npf-reviews-slider-outer { gap: 6px; }
    .npf-slider-btn { width: 30px; height: 30px; }

    .npf-how-steps { grid-template-columns: 1fr; }
    .npf-how-step::after { display: none; }
    /* Шаги — выровнять влево на мобиле */
    .npf-how-step { text-align: left; }
    .npf-step-num { margin: 0 0 12px; }

    .npf-stats-grid { grid-template-columns: 1fr 1fr; }
    .npf-stat-item { border-bottom: 1px solid var(--npf-border); }
    .npf-stat-item:last-child { border-bottom: none; }
    .npf-stat-num { font-size: 32px; letter-spacing: -1px; }

    /* Скрываем навигацию */
    .npf-landing-nav { display: none; }

    /* Кнопки хедера на мобиле — компакт */
    .npf-landing-header-right { gap: 6px; }
    .npf-landing-header-right .neuropf-btn-sm { padding: 6px 10px; font-size: 12px; }

    /* Tech KPI — промежуточный размер до колонки */
    .npf-tech-kpi-num { font-size: 40px; letter-spacing: -2px; }
    .npf-tech-kpi-row { padding: 20px 24px; gap: 0; }
    .npf-tech-kpi-label { font-size: 12px; }

    /* Activity ticker — скрываем ключевое слово */
    .npf-tick-row { grid-template-columns: 18px 1fr auto; gap: 10px; }
    .npf-tick-kw { display: none; }

    /* Footer */
    .npf-landing-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .npf-landing-footer-links { flex-wrap: wrap; gap: 12px; }
}

/* --- Маленький мобильный (до 480px) --- */
@media (max-width: 480px) {
    .npf-hero { padding: 48px 0 40px; }
    .npf-hero-title { letter-spacing: -1px; }
    /* Кнопки hero — в стопку */
    .npf-hero-actions { flex-direction: column; gap: 10px; }
    .npf-hero-actions .neuropf-btn { width: 100%; justify-content: center; }

    /* Stats — одна колонка */
    .npf-stats-grid { grid-template-columns: 1fr; }
    .npf-stat-item {
        border-right: none;
        border-bottom: 1px solid var(--npf-border);
    }
    .npf-stat-item:last-child { border-bottom: none; }
    .npf-stat-num { font-size: 36px; }

    /* Section labels */
    .npf-section-title { letter-spacing: -0.8px; }
    .npf-cta-title { letter-spacing: -0.5px; }

    /* Tech KPI */
    .npf-tech-kpi-num { font-size: 36px; }
    .npf-tech-kpi-label { font-size: 11.5px; max-width: 130px; }

    /* Activity section */
    .npf-activity-hint { display: none; }
    .npf-activity-section { padding: 28px 0 36px; }
    .npf-tick-row {
        grid-template-columns: 1fr auto;
        padding: 8px 12px;
        gap: 8px;
    }
    /* Скрываем иконку статуса на самом мал. экране */
    .npf-tick-row > *:first-child { display: none; }

    /* Header — скрываем «Войти», оставляем «Начать бесплатно» */
    .npf-landing-header-right .neuropf-btn-outline { display: none; }

    /* Sections padding */
    .npf-features-section,
    .npf-how-section,
    .npf-reviews-section,
    .npf-cta-section,
    .npf-stats-section { padding: 48px 0; }

    /* How steps */
    .npf-how-step { padding: 20px 16px; }
    .npf-step-desc { font-size: 12.5px; }

    /* Reviews */
    .npf-review-text { font-size: 13px; }
    .npf-reviews-section { padding-bottom: 36px; }

    /* Footer */
    .npf-landing-footer-links { gap: 10px; }
    .npf-landing-footer-links a { font-size: 12px; }
}

/* ====================================================
   AI-Технология section
   ==================================================== */

.npf-tech-section {
    position: relative;
    padding: 96px 0 80px;
    border-top: 1px solid var(--npf-border);
    overflow: hidden;
}

/* Фоновая сетка */
.npf-tech-bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--npf-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--npf-border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

[data-theme=dark] .npf-tech-bg-grid { opacity: 0.18; }

/* Подзаголовок секции */
.npf-section-sub {
    max-width: 480px;
    font-size: 15px;
    color: var(--npf-text-3);
    line-height: 1.65;
    margin: 0;
}

/* KPI row ──────────────────────────────────────────── */
.npf-tech-kpi-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--npf-bg-2);
    border: 1px solid var(--npf-border);
    border-radius: 14px;
    padding: 28px 40px;
    margin: 40px 0 32px;
}

.npf-tech-kpi {
    flex: 1;
    text-align: center;
}

.npf-tech-kpi-num {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -3px;
    color: var(--npf-text);
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.npf-tech-kpi-sup {
    font-size: 28px;
    letter-spacing: -1px;
    color: var(--npf-text-3);
}

.npf-tech-kpi-unit {
    font-size: 28px;
    letter-spacing: -1px;
    font-weight: 700;
}

.npf-tech-kpi-label {
    font-size: 13px;
    color: var(--npf-text-3);
    max-width: 160px;
    margin: 0 auto;
    line-height: 1.4;
}

.npf-tech-kpi-sep {
    width: 1px;
    height: 56px;
    background: var(--npf-border);
    flex-shrink: 0;
}

/* ======= GRID ======================================== */
.npf-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* ======= BASE CARD ===================================  */
.npf-tech-card {
    position: relative;
    background: var(--npf-bg-2);
    border: 1px solid var(--npf-border);
    border-radius: 14px;
    padding: 26px 28px 24px;
    transition: border-color .22s, box-shadow .22s, transform .22s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.npf-tech-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--npf-shadow-lg);
}

/* ======= FEATURED CARD — full-width horizontal ======= */
.npf-tech-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.npf-tc-featured-left {
    flex: 1;
    min-width: 0;
    padding: 30px 32px 28px;
    display: flex;
    flex-direction: column;
}

.npf-tc-featured-right {
    flex-shrink: 0;
    width: 300px;
    border-left: 1px solid var(--npf-border);
    background: var(--npf-bg-3);
    padding: 28px 28px;
    display: flex;
    align-items: center;
}

/* Glow pseudo-element for featured card */
.npf-tc-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167,139,250,.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ======= SESSION METRICS (featured right panel) ====== */
.npf-tc-session { width: 100%; }

.npf-tc-session-head {
    margin-bottom: 18px;
}

.npf-tc-session-metric {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

.npf-tc-session-metric:last-child { margin-bottom: 0; }

.npf-tc-sm-label {
    font-size: 12px;
    color: var(--npf-text-2);
    width: 140px;
    flex-shrink: 0;
    white-space: nowrap;
}

.npf-tc-sm-track {
    flex: 1;
    height: 4px;
    background: var(--npf-border);
    border-radius: 2px;
    overflow: hidden;
}

.npf-tc-sm-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #a78bfa, #c4b5fd);
    transition: width 1.4s cubic-bezier(.22,1,.36,1);
}

.npf-tc-sm-val {
    font-size: 11.5px;
    font-family: var(--npf-mono);
    font-weight: 600;
    color: #a78bfa;
    width: 44px;
    text-align: right;
    flex-shrink: 0;
}

/* ======= LIFE CARD — span 2 cols on desktop ========== */
.npf-tc-life { grid-column: span 2; }

/* ======= CARD COLOR ACCENTS ========================== */
.npf-tc-ai  { border-top: 2px solid #a78bfa; }
.npf-tc-tls { border-top: 2px solid #34d399; }
.npf-tc-fp  { border-top: 2px solid #fbbf24; }
.npf-tc-net { border-top: 2px solid #60a5fa; }
.npf-tc-life { border-top: 2px solid #22d3ee; }
.npf-tc-fast { border-top: 2px solid #f472b6; }

.npf-tc-ai:hover  { box-shadow: 0 0 0 1px #a78bfa22, 0 8px 32px rgba(167,139,250,.08); }
.npf-tc-tls:hover { box-shadow: 0 0 0 1px #34d39922, 0 8px 32px rgba(52,211,153,.08); }
.npf-tc-fp:hover  { box-shadow: 0 0 0 1px #fbbf2422, 0 8px 32px rgba(251,191,36,.08); }
.npf-tc-net:hover { box-shadow: 0 0 0 1px #60a5fa22, 0 8px 32px rgba(96,165,250,.08); }
.npf-tc-life:hover { box-shadow: 0 0 0 1px #22d3ee22, 0 8px 32px rgba(34,211,238,.08); }
.npf-tc-fast:hover { box-shadow: 0 0 0 1px #f472b622, 0 8px 32px rgba(244,114,182,.08); }

/* ======= CARD HEADER ================================= */
.npf-tc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.npf-tc-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--npf-bg-3);
    border: 1px solid var(--npf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--npf-text-2);
}

.npf-tc-ai .npf-tc-icon  { color: #a78bfa; }
.npf-tc-tls .npf-tc-icon { color: #34d399; }
.npf-tc-fp .npf-tc-icon  { color: #fbbf24; }
.npf-tc-net .npf-tc-icon { color: #60a5fa; }
.npf-tc-life .npf-tc-icon { color: #22d3ee; }
.npf-tc-fast .npf-tc-icon { color: #f472b6; }

.npf-tc-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #a78bfa;
    background: rgba(167,139,250,.1);
    border: 1px solid rgba(167,139,250,.25);
    border-radius: 4px;
    padding: 3px 8px;
}

/* Title & desc */
.npf-tc-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--npf-text);
    margin: 0 0 9px;
    line-height: 1.3;
}

.npf-tech-card--featured .npf-tc-title {
    font-size: 19px;
    margin-bottom: 10px;
}

.npf-tc-desc {
    font-size: 13.5px;
    color: var(--npf-text-2);
    line-height: 1.65;
    margin: 0 0 16px;
    flex: 1;
}

/* Tags */
.npf-tc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.npf-tc-tags span {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--npf-text-3);
    background: var(--npf-bg-3);
    border: 1px solid var(--npf-border);
    border-radius: 5px;
    padding: 4px 9px;
}

/* Terminal block (TLS card) */
.npf-tc-terminal {
    margin-top: auto;
    background: var(--npf-bg);
    border: 1px solid var(--npf-border);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.npf-term-line {
    font-family: var(--npf-mono);
    font-size: 11px;
    color: var(--npf-text-2);
    line-height: 1.7;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.npf-term-line em {
    font-style: normal;
    color: #34d399;
}

.npf-term-comment { color: var(--npf-text-3) !important; }

/* FP chips */
.npf-tc-fp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.npf-tc-fp-chips span {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--npf-mono);
    color: #fbbf24;
    background: rgba(251,191,36,.08);
    border: 1px solid rgba(251,191,36,.2);
    border-radius: 5px;
    padding: 4px 9px;
}

/* Lifecycle bar */
.npf-tc-life-bar { margin-top: auto; }

.npf-tc-life-track {
    height: 6px;
    background: var(--npf-bg-3);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 8px;
}

.npf-tc-life-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    transition: width 1.6s cubic-bezier(.22,1,.36,1);
}

.npf-tc-life-fill.npf-animated { width: 85%; }

.npf-tc-life-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--npf-text-3);
}

/* Timeline (fast results card) */
.npf-tc-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.npf-tc-tl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--npf-text-3);
}

.npf-tc-tl-item.npf-tc-tl-done { color: var(--npf-text-2); }

.npf-tc-tl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--npf-border-md);
    flex-shrink: 0;
}

.npf-tc-tl-done .npf-tc-tl-dot {
    background: #f472b6;
    box-shadow: 0 0 0 3px rgba(244,114,182,.15);
}

/* Responsive ────────────────────────────────────────── */

/* Планшет (1000px): featured — горизонталь + 2 колонки */
@media (max-width: 1000px) {
    .npf-tech-grid {
        grid-template-columns: 1fr 1fr;
    }
    /* Featured — остаётся полной шириной */
    .npf-tech-card--featured {
        grid-column: 1 / -1;
    }
    /* featured-right становится уже */
    .npf-tc-featured-right { width: 260px; }
    .npf-tc-sm-label { width: 120px; }
    /* Life — назад к 1 колонке */
    .npf-tc-life { grid-column: span 1; }
    .npf-tech-kpi-num { font-size: 44px; }
    .npf-tech-kpi-row { padding: 24px 28px; }
}

/* Мобильный (790px): featured вертикальный */
@media (max-width: 790px) {
    .npf-tech-section { padding: 56px 0 48px; }
    .npf-tech-kpi-num { font-size: 38px; letter-spacing: -2px; }
    .npf-tech-kpi-row { padding: 18px 20px; }
    .npf-tech-kpi-label { font-size: 12px; max-width: 130px; }
    /* Featured card — вертикально на мобиле */
    .npf-tech-card--featured {
        flex-direction: column;
    }
    .npf-tc-featured-left { padding: 24px 22px 20px; }
    .npf-tc-featured-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--npf-border);
        padding: 20px 22px;
    }
    .npf-tc-sm-label { width: auto; flex: 1; min-width: 0; }
    .npf-tech-card { padding: 22px 20px 20px; }
    .npf-tc-title { font-size: 14.5px; }
    .npf-tech-card--featured .npf-tc-title { font-size: 17px; }
    .npf-tc-desc { font-size: 13px; }
}

/* Малый мобильный (680px) */
@media (max-width: 680px) {
    .npf-tech-section { padding: 48px 0 40px; }
    .npf-tech-kpi-row {
        flex-direction: column;
        gap: 24px;
        padding: 24px 20px;
    }
    .npf-tech-kpi-sep { width: 40px; height: 1px; }
    .npf-tech-kpi-num { font-size: 40px; letter-spacing: -2px; }
    .npf-tech-grid { grid-template-columns: 1fr; }
    .npf-tc-life { grid-column: span 1; }
    .npf-section-head { flex-direction: column; gap: 12px; align-items: flex-start; }
    .npf-section-sub { max-width: 100%; }
}

/* Очень маленький (480px) */
@media (max-width: 480px) {
    .npf-tech-kpi-num { font-size: 34px; }
    .npf-tech-kpi-label { font-size: 11.5px; max-width: 120px; }
    .npf-tech-card { padding: 18px 16px 16px; }
    .npf-tc-featured-left { padding: 20px 18px 16px; }
    .npf-tc-featured-right { padding: 16px 18px; }
    .npf-tc-tags span { font-size: 11px; padding: 3px 7px; }
    .npf-tc-fp-chips span { font-size: 10.5px; padding: 3px 7px; }
    .npf-term-line { font-size: 10.5px; }
    .npf-tc-sm-label { font-size: 11px; }
    .npf-tc-sm-val { font-size: 11px; }
}

