/**
 * NT Credit Page Styles
 *
 * Styles for /credit/ — installment & credit page
 * Hero: Neo-Brutalism (from prototype-hero-contacts + homepage-v3 sizes)
 * Calculator: ROI calculator style (from product-page.css)
 * Table: Comparison table style (gradient header from product-page.css)
 * SEO: Product description style (from product-description.php)
 * Tabs: Pill/chip style (from catalog-v2.css .category-chip)
 *
 * @package HelloElementorChild
 * @since 1.2.0
 */

/* ===== PAGE WRAPPER ===== */
.nt-credit-page {
    /* Единая типо-палитра страницы: текст near-black, приглушённый — navy 72%.
       Раньше мешались navy #213777 / серые rgba — цвета «разъезжались». */
    --text-dark: #16181D;
    --text-gray: rgba(33, 55, 119, 0.72);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #16181D;
    line-height: 1.6;
    background: var(--bg-page);
}

.nt-credit-page *,
.nt-credit-page *::before,
.nt-credit-page *::after {
    box-sizing: border-box;
}

/* ===== SECTION TITLES ===== */
.nt-credit-page .nt-section-title {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 900;
    color: #000;
    text-align: center;
    margin: 0 0 8px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

.nt-credit-page .nt-section-subtitle {
    font-size: 14.5px;
    color: rgba(33, 55, 119, 0.72);
    text-align: center;
    margin: 0 0 40px;
    line-height: 1.55;
    font-weight: 500;
}

/* ===== BUTTONS ===== */
.nt-credit-page .nt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: 0;
    padding: 14px 32px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.nt-credit-page .nt-btn-primary {
    background: var(--primary);
    color: #FFFFFF;
}

.nt-credit-page .nt-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 61, 245, 0.3);
}

.nt-credit-page .nt-btn-primary:visited,
.nt-credit-page .nt-btn-primary:active {
    color: #FFFFFF;
}

.nt-credit-page .nt-btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid #E5E7EB;
}

.nt-credit-page .nt-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(44, 61, 245, 0.04);
}

.nt-credit-page .nt-btn-outline:visited,
.nt-credit-page .nt-btn-outline:active {
    color: var(--text-dark);
}


/* ============================================================
   1. HERO — Fullwidth with SNB calculator cards
   ============================================================ */
.nt-credit-page .nt-hero-section {
    padding: 24px 0 40px;
}

/* Breadcrumbs */
.nt-credit-page .nt-hero-breadcrumbs {
    margin-bottom: 12px;
}

.nt-credit-page .nt-hero-breadcrumbs .woocommerce-breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nt-credit-page .nt-hero-breadcrumbs .woocommerce-breadcrumb a {
    color: rgba(0,0,0,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.nt-credit-page .nt-hero-breadcrumbs .woocommerce-breadcrumb a:hover {
    color: #000000;
}

/* H1 */
.nt-credit-page .nt-hero-section h1 {
    font-size: 2.75rem;
    font-weight: 900;
    color: #000000;
    line-height: 1.1;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Subtitle */
.nt-credit-page .neo-subtitle {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0 0 28px 0;
    max-width: 600px;
}

/* Calculator — single SNB card, split layout */
.nt-credit-page .nt-hero-calc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #FFFFFF;
    border: 3px solid #000000;
    border-radius: 20px;
    box-shadow: 6px 6px 0px 0px rgba(0,0,0,1);
    overflow: hidden;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* Left side: controls */
.nt-credit-page .nt-calc-controls {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

.nt-credit-page .nt-calc-controls .nt-control-group {
    margin-bottom: 0;
}

/* Right side: result panel (gradient) */
.nt-credit-page .nt-calc-result {
    background: var(--gradient-primary);
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
}

.nt-credit-page .nt-calc-result .nt-result-item {
    margin-bottom: 8px;
}

.nt-credit-page .nt-calc-result .nt-result-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: 4px;
}

.nt-credit-page .nt-calc-result .nt-result-value {
    font-family: 'Unbounded', 'Montserrat', sans-serif;
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    line-height: 1.1;
}

.nt-credit-page .nt-calc-result .nt-result-value--sm {
    font-size: 1.3rem;
}

/* Overpayment line */
.nt-credit-page .nt-result-overpay {
    margin-bottom: 16px !important;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nt-credit-page .nt-result-value--overpay {
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* CTA button — SNB style on gradient */
.nt-credit-page .neo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFFFFF;
    color: var(--primary);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border: 2.5px solid #000000;
    border-radius: 0;
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,1);
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 8px;
}

.nt-credit-page .neo-cta:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px 0px rgba(0,0,0,1);
}

/* Ховер «Оформить рассрочку»: держим кнопку белой — общий
   .nt-btn-primary:hover красил её в синий, и она терялась
   на синей панели результата (владелец 14.07) */
.nt-credit-page .nt-btn-primary.neo-cta:hover {
    background: #FFFFFF;
    color: var(--primary);
}

.nt-credit-page .neo-cta:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,1);
}

/* ============================================================
   1.5. ADVANTAGE BAR (stats strip below hero)
   ============================================================ */
.nt-credit-advantages-bar {
    padding: 0;
    margin-bottom: var(--section-gap, 48px);
}

/* Нео-карточки (как на главной и у брендов): белый фон, чёрный контур 3px,
   офсет-тень, острые углы, ховер синий + белый текст. Ушли от пастели. */
.nt-credit-page .nt-advantages-bar {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    overflow: visible !important;
    gap: 16px;
}

.nt-credit-page .nt-advantage-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff !important;
    border: 3px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: 6px 6px 0 0 #000 !important;
    padding: 22px 12px;
    transition: transform .18s cubic-bezier(.175,.885,.32,1.275), box-shadow .18s cubic-bezier(.175,.885,.32,1.275), background .18s ease;
}

.nt-credit-page .nt-advantage-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 0 #000 !important;
    background: #2C3DF5 !important;
}

.nt-credit-page .nt-advantage-number {
    font-family: 'Unbounded', 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #000;
    line-height: 1;
    margin-bottom: 8px;
    transition: color .18s ease;
}

.nt-credit-page .nt-advantage-text {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(33, 55, 119, 0.65);
    line-height: 1.3;
    transition: color .18s ease;
}

.nt-credit-page .nt-advantage-item:hover .nt-advantage-number,
.nt-credit-page .nt-advantage-item:hover .nt-advantage-text {
    color: #fff !important;
}

/* ============================================================
   2. CALCULATOR — styles for result, controls, tabs, perks
   ============================================================ */

/* --- Result panel (gradient) --- */
.nt-credit-page .nt-calculator-result,
.nt-credit-page .calculator-result {
    background: var(--gradient-primary);
    border-radius: 0;
    padding: 32px 28px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.nt-credit-page .nt-result-item,
.nt-credit-page .result-item {
    text-align: center;
    margin-bottom: 24px;
}

.nt-credit-page .nt-result-label,
.nt-credit-page .result-label {
    font-size: 15px;
    opacity: 1;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: 700;
}

.nt-credit-page .nt-result-value,
.nt-credit-page .result-value {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
}

.nt-credit-page .nt-result-value--sm {
    font-size: 28px;
}

.nt-credit-page .nt-result-buttons,
.nt-credit-page .result-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
}

.nt-credit-page .nt-result-buttons .nt-btn,
.nt-credit-page .result-buttons .nt-btn {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* White button on blue bg */
.nt-credit-page .nt-result-buttons .nt-btn-primary,
.nt-credit-page .result-buttons .nt-btn-primary {
    background: #FFFFFF !important;
    color: var(--primary) !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.nt-credit-page .nt-result-buttons .nt-btn-primary:hover,
.nt-credit-page .result-buttons .nt-btn-primary:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* --- Controls --- */
.nt-credit-page .nt-calculator-controls,
.nt-credit-page .calculator-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
}

/* Credit page override: single column */
.nt-credit-page .nt-credit-controls {
    grid-template-columns: 1fr;
    gap: 28px;
}

/* --- Control group --- */
.nt-credit-page .nt-control-group,
.nt-credit-page .control-group {
    display: grid;
    gap: 12px;
    position: relative;
}

/* Suffix (₽, etc) */
.nt-credit-page .nt-control-group::after,
.nt-credit-page .control-group::after {
    content: attr(data-suffix);
    position: absolute;
    right: 16px;
    top: calc(20px + 12px + 12px + 10px);
    color: rgba(143, 150, 163, 0.6);
    font-size: 15px;
    font-weight: 600;
    pointer-events: none;
    z-index: 2;
    line-height: 20px;
    display: flex;
    align-items: center;
    height: 20px;
}

.nt-credit-page .nt-control-group--no-suffix::after {
    display: none;
}

/* --- Label --- */
.nt-credit-page .nt-control-label,
.nt-credit-page .control-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 20px;
    line-height: 1.4;
}

/* --- Text Input --- */
.nt-credit-page .nt-control-input,
.nt-credit-page .control-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #000;
    border-radius: 0;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #000;
    background: #FFFFFF;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    position: relative;
    height: 48px;
    box-sizing: border-box;
    line-height: 22px;
    font-family: 'Unbounded', 'Montserrat', sans-serif;
}

.nt-credit-page .nt-control-input:hover,
.nt-credit-page .control-input:hover {
    border-color: rgba(0, 0, 0, 0.12);
    background: #FFFFFF;
}

.nt-credit-page .nt-control-input:focus,
.nt-credit-page .control-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(245, 249, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(44, 61, 245, 0.1);
}

/* --- Range Slider --- */
.nt-credit-page .nt-control-slider,
.nt-credit-page .control-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--fill, 50%), var(--bg-light) var(--fill, 50%), var(--bg-light) 100%);
    outline: none;
    cursor: pointer;
}

.nt-credit-page .nt-control-slider::-webkit-slider-thumb,
.nt-credit-page .control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
}

.nt-credit-page .nt-control-slider::-webkit-slider-thumb:hover,
.nt-credit-page .control-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(44, 61, 245, 0.1);
}

.nt-credit-page .nt-control-slider::-moz-range-thumb,
.nt-credit-page .control-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

/* --- Tabs (pill/chip style — like .category-chip in catalog) --- */
/* High specificity to override Elementor kit button styles */
.nt-credit-page .nt-credit-calc__tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nt-credit-page .nt-credit-calc__tab,
.nt-credit-page button.nt-credit-calc__tab,
.nt-credit-page button.nt-credit-calc__tab[type="button"] {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: #FFFFFF;
    border: 2px solid #000;
    border-radius: 0;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #000;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.4;
}

.nt-credit-page .nt-credit-calc__tab:hover,
.nt-credit-page button.nt-credit-calc__tab:hover {
    background: #000;
    color: #fff;
}

/* Active tab — синяя заливка + белый текст (как активная строка FAQ) */
.nt-credit-page .nt-credit-calc__tab--active,
.nt-credit-page button.nt-credit-calc__tab--active,
.nt-credit-page button.nt-credit-calc__tab--active[type="button"] {
    background: #2C3DF5;
    border-color: #000;
    color: #fff;
}

.nt-credit-page .nt-credit-calc__tab--active:hover,
.nt-credit-page button.nt-credit-calc__tab--active:hover {
    background: #1a2ce0;
    border-color: #000;
    color: #fff;
}

/* --- Perks (credit-specific) --- */
.nt-credit-calc__perks {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.nt-credit-calc__perk {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.nt-credit-calc__perk svg {
    flex-shrink: 0;
}


/* ============================================================
   4. CONDITIONS TABLE — Comparison table style (from product-page.css)
   ============================================================ */
.nt-credit-conditions {
    padding: 0;
    margin-bottom: var(--section-gap, 48px);
}

/* Инженерная таблица (как грид запчастей на главной): рамка 2px, делители 1px,
   чёрная шапка-readout, зебра #F7F7F7 (тихий темп, не рябит), цифры Unbounded,
   острые углы. Строка «Выбор №1» — синий акцент слева. */
.nt-credit-page .nt-comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 2px solid #000;
    border-radius: 0;
    box-shadow: none;
    background: #FFFFFF;
    margin-top: 12px;
}

.nt-credit-page .nt-comparison-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    /* глобальный table{margin-bottom:15px} темы оставлял белую полосу под tfoot
       внутри рамки — дисклеймер казался «не частью таблицы» */
    margin: 0 !important;
}

/* Шапка — синяя readout-полоса (стандарт шапок таблиц, 18.07.2026) */
.nt-credit-page .nt-comparison-table thead {
    background: #2C3DF5;
    color: #fff;
}

.nt-credit-page .nt-comparison-table thead th {
    border: none !important;
}

.nt-credit-page .nt-comparison-table th {
    padding: 16px 20px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    vertical-align: middle;
    border: none;
    border-radius: 0;
    white-space: nowrap;
}

.nt-credit-page .nt-comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #000;
    border-left: none;
    border-right: none;
    border-top: none;
    font-size: 15px;
    color: #16181D;
    vertical-align: middle;
    text-align: left;
}

/* Цифры/значения (все колонки кроме «Тариф») — Unbounded */
.nt-credit-page .nt-comparison-table td:not(:first-child) {
    font-family: 'Unbounded', 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.nt-credit-page .nt-comparison-table td:first-child {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Зебра — тихий темп (не рябит) */
.nt-credit-page .nt-comparison-table tbody tr:nth-child(even) td {
    background: #F7F7F7;
}

.nt-credit-page .nt-comparison-table tbody tr:hover td {
    background: #EEF0FF;
}

.nt-credit-page .nt-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Строка «Выбор №1» — синий левый акцент + жирнее */
.nt-credit-page .nt-table-highlight td {
    background: #EEF0FF !important;
    font-weight: 700;
}

.nt-credit-page .nt-table-highlight td:first-child {
    box-shadow: inset 4px 0 0 0 #2C3DF5;
}

/* Дисклеймер — строка в самом низу таблицы (footer-row на всю ширину).
   Высота как у обычных строк: те же 16px верт. паддинг, одна строка текста. */
.nt-credit-page .nt-comparison-table tfoot .nt-table-note td {
    /* делитель 1px как между строками данных — строка часть таблицы, не подвал */
    border-top: 1px solid #000 !important;
    border-bottom: none !important;
    background: #fff !important;
    padding: 16px 20px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: rgba(33, 55, 119, 0.72) !important;
    line-height: 1.4 !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.nt-credit-page .nt-comparison-table tfoot .nt-table-note svg {
    color: #000;
    vertical-align: -2px;
    margin-right: 6px;
    flex-shrink: 0;
}

/* Мобильный: заметка — плоский блок, не карточка */
@media (max-width: 768px) {
    .nt-credit-page .nt-comparison-table tfoot .nt-table-note {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin-top: 4px !important;
    }
    .nt-credit-page .nt-comparison-table tfoot .nt-table-note td {
        display: block !important;
        border-top: 2px solid #000 !important;
        padding: 14px 4px !important;
        white-space: normal !important;
    }
}

/* Ярлык «Выбор №1» — острые углы, синий */
.nt-credit-page .nt-table-popular {
    display: inline-block;
    background: #2C3DF5;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border: 2px solid #000;
    border-radius: 0;
    box-shadow: 2px 2px 0 0 rgba(0,0,0,1);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: 8px;
    vertical-align: middle;
}

.nt-credit-conditions__note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 16px 20px;
    background: #FFF9E6;
    border-radius: 12px;
    font-size: 14px;
    color: #92690C;
    line-height: 1.5;
}

.nt-credit-conditions__note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #D4A017;
}


/* ============================================================
   5. PARTNER BANKS
   ============================================================ */
.nt-credit-banks {
    padding: 0;
    margin-bottom: var(--section-gap, 48px);
}

.nt-credit-banks__strip {
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
    justify-items: center;
    align-items: center;
}

.nt-credit-banks__logo {
    height: 34px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nt-credit-banks__logo:hover {
    opacity: 1;
}


/* ============================================================
   6. CTA FORM (from cta-form.php — styles match homepage-v3.css)
   ============================================================ */
.nt-credit-page .nt-cta-section-wrapper {
    padding: 0;
    margin-bottom: var(--section-gap, 48px);
}

.nt-credit-page .nt-cta-section {
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 380px 1fr;
}

.nt-credit-page .nt-cta-manager {
    background: linear-gradient(180deg, var(--primary) 0%, #1E28B8 100%);
    padding: 48px 36px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nt-credit-page .nt-manager-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin-bottom: 20px;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255,255,255,0.5);
}

.nt-credit-page .nt-manager-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nt-credit-page .nt-manager-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.nt-credit-page .nt-manager-role {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 20px;
    color: white;
}

.nt-credit-page .nt-manager-stats {
    display: flex;
    gap: 28px;
    margin-bottom: 24px;
}

.nt-credit-page .nt-stat {
    text-align: center;
}

.nt-credit-page .nt-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.nt-credit-page .nt-stat-label {
    font-size: 10px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.nt-credit-page .nt-manager-quote {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.9;
    font-style: italic;
    padding: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
}

.nt-credit-page .nt-manager-contacts {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.nt-credit-page .nt-manager-contact {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.nt-credit-page .nt-manager-contact:hover {
    background: rgba(255,255,255,0.25);
}

.nt-credit-page .nt-manager-contact svg {
    width: 18px;
    height: 18px;
    color: white;
    fill: white;
}

.nt-credit-page .nt-cta-form-wrapper {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nt-credit-page .nt-cta-form-header {
    margin-bottom: 28px;
}

.nt-credit-page .nt-cta-form-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-align: left;
}

.nt-credit-page .nt-cta-form-header p {
    font-size: 15px;
    color: var(--text-gray);
}

.nt-credit-page .nt-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E8FFF3;
    color: #059669;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.nt-credit-page .nt-cta-badge svg {
    width: 16px;
    height: 16px;
}

.nt-credit-page .nt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.nt-credit-page .nt-form-group {
    margin-bottom: 14px;
}

.nt-credit-page .nt-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.nt-credit-page .nt-form-group input,
.nt-credit-page .nt-form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-dark);
    background: white;
    transition: all 0.2s;
}

.nt-credit-page .nt-form-group input:focus,
.nt-credit-page .nt-form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(44, 61, 245, 0.1);
}

.nt-credit-page .nt-form-group input::placeholder {
    color: #9CA3AF;
}

.nt-credit-page .nt-form-group.select-wrapper {
    position: relative;
}

.nt-credit-page .nt-form-group.select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    bottom: 17px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #6B7280;
    border-bottom: 2px solid #6B7280;
    transform: rotate(45deg);
    pointer-events: none;
}

.nt-credit-page .nt-form-group select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 44px;
    cursor: pointer;
}

.nt-credit-page .nt-form-submit {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, #5B6BFF 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(44, 61, 245, 0.3);
}

.nt-credit-page .nt-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 61, 245, 0.4);
}

.nt-credit-page .nt-form-note {
    font-size: 12px;
    color: var(--text-gray);
    text-align: center;
    margin-top: 14px;
}

.nt-credit-page .nt-form-note a {
    color: var(--primary);
}

.nt-credit-page .nt-form-benefits {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #F0F0FF;
}

.nt-credit-page .nt-form-benefit {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-gray);
}

.nt-credit-page .nt-form-benefit svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    stroke: var(--primary);
}


/* ============================================================
   7. BESTSELLERS
   ============================================================ */
.nt-credit-bestsellers {
    padding: 0;
    margin-bottom: var(--section-gap, 48px);
}

/* Карточки-хиты → «инженерная таблица» как на главной.
   Рендер nt_render_equipment_card() → <a.product-card> с .pc-* внутри.
   Обёртка = единый прибор (рамка 2px), строки слитные через делители 1px,
   галочки-клише скрыты. !important — базовый catalog-cards.css + WPFC-бандл. */
.nt-credit-page .nt-credit-bestsellers__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    border: 2px solid #000 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.nt-credit-page .nt-credit-bestsellers__grid .product-card {
    position: relative !important;
    border: none !important;
    border-top: 1px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    background: #fff !important;
    transition: none !important;
}

.nt-credit-page .nt-credit-bestsellers__grid .product-card:first-child {
    border-top: none !important;
}

.nt-credit-page .nt-credit-bestsellers__grid .product-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #000 !important;
}

.nt-credit-page .nt-credit-bestsellers__grid .pc-name {
    color: #000 !important;
    font-weight: 800 !important;
}

/* Цена — Unbounded (правило: цены = Unbounded; так же на главной) */
.nt-credit-page .nt-credit-bestsellers__grid .pc-price {
    font-family: 'Unbounded', 'Montserrat', sans-serif !important;
    font-weight: 500 !important;
    color: #000 !important;
    letter-spacing: -0.01em !important;
}

/* Буллеты «Бесплатная доставка / Обучение / Гарантия» — показываем как на главной
   (чёрные точки, не галочки), чтобы карточка была одинаковой везде */

/* Пилюля «Рассрочка от X ₽/мес» — единое правило .pc-credit (catalog-cards.css),
   отдельного оверрайда для credit НЕТ: одинаково на главной и тут */

/* Бейдж «ХИТ» и чипы-атрибуты — острые углы */
.nt-credit-page .nt-credit-bestsellers__grid .badge {
    border-radius: 0 !important;
}

.nt-credit-page .nt-credit-bestsellers__grid .feature-tag {
    border-radius: 0 !important;
    border: 1.5px solid #000 !important;
    background: #fff !important;
}


/* ============================================================
   8. STEPS — Horizontal timeline
   ============================================================ */
.nt-credit-steps {
    padding: 0;
    margin-bottom: var(--section-gap, 48px);
}

/* Открытая шкала 01–04 (утв. 18.07, прототип v8): без коробки — 2px сверху/снизу,
   делители 1px, индексы и факты Unbounded, финальная ячейка — синяя инверсия.
   !important на шрифтах/цветах — щит от глобалки. */
.nt-steps-ig {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #000;
}

.nt-steps-ig__cell {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 20px;
    border-right: 1px solid #000;
    transition: background .15s ease;
}

.nt-steps-ig__cell:last-child {
    border-right: none;
}

.nt-steps-ig__cell:hover {
    background: #FAFAFA;
}

.nt-steps-ig__num {
    font-family: 'Unbounded', 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: clamp(24px, 2.4vw, 30px) !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #000 !important;
    margin-bottom: 14px;
    transition: color .15s ease;
}

.nt-steps-ig__cell:hover .nt-steps-ig__num {
    color: #2C3DF5 !important;
}

.nt-steps-ig__title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.01em;
    color: #000 !important;
    line-height: 1.3;
    margin: 0 0 8px;
}

.nt-steps-ig__desc {
    font-family: 'Unbounded', 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    color: rgba(33, 55, 119, 0.72) !important;
    margin: 0;
}

.nt-steps-ig__fact {
    margin-top: auto;
    padding-top: 18px;
}

.nt-steps-ig__v {
    font-family: 'Unbounded', 'Montserrat', sans-serif !important;
    font-weight: 500 !important;
    font-size: clamp(21px, 2vw, 26px) !important;
    letter-spacing: -0.01em;
    line-height: 1;
    color: #000 !important;
    white-space: nowrap;
}

.nt-steps-ig__l {
    font-family: 'Unbounded', 'Montserrat', sans-serif !important;
    font-size: 9px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: rgba(33, 55, 119, 0.72) !important;
    margin-top: 8px;
    line-height: 1.5;
}

/* Финальная ячейка — синяя инверсия (финиш пути = выгода) */
.nt-steps-ig__cell--accent {
    background: #2C3DF5 !important;
    border-right: none;
}

.nt-steps-ig__cell--accent .nt-steps-ig__num,
.nt-steps-ig__cell--accent .nt-steps-ig__title,
.nt-steps-ig__cell--accent .nt-steps-ig__v {
    color: #fff !important;
}

.nt-steps-ig__cell--accent .nt-steps-ig__desc {
    color: rgba(255, 255, 255, 0.75) !important;
}

.nt-steps-ig__cell--accent .nt-steps-ig__l {
    color: rgba(255, 255, 255, 0.65) !important;
}

.nt-steps-ig__cell--accent:hover {
    background: #1a2ce0 !important;
}

.nt-steps-ig__cell--accent:hover .nt-steps-ig__num {
    color: #fff !important;
}

@media (max-width: 860px) {
    .nt-steps-ig {
        grid-template-columns: 1fr 1fr;
    }
    .nt-steps-ig__cell {
        border-right: 1px solid #000;
        border-bottom: 1px solid #000;
        padding: 18px 16px 16px;
    }
    .nt-steps-ig__cell:nth-child(2n) {
        border-right: none;
    }
    .nt-steps-ig__cell:nth-child(n+3) {
        border-bottom: none;
    }
    .nt-steps-ig__num {
        font-size: 22px !important;
        margin-bottom: 10px;
    }
    .nt-steps-ig__v {
        font-size: 20px !important;
    }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large tablets */
@media (max-width: 1200px) {
    .nt-credit-page .nt-hero-section h1 {
        font-size: 2.25rem;
    }

}

/* Tablets */
@media (max-width: 900px) {
    .nt-credit-page .nt-section-title {
        font-size: 28px;
    }

    .nt-credit-page .nt-section-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    /* Hero — tablet */
    .nt-credit-page .nt-hero-section {
        padding: 20px 0 32px;
    }

    .nt-credit-page .nt-hero-section h1 {
        font-size: 2rem;
    }

    .nt-credit-page .neo-subtitle {
        font-size: 0.95rem;
    }

    .nt-credit-page .nt-hero-breadcrumbs .woocommerce-breadcrumb {
        font-size: 11px;
    }

    /* Calculator card — stack on tablet */
    .nt-credit-page .nt-hero-calc {
        grid-template-columns: 1fr;
        box-shadow: 4px 4px 0px 0px rgba(0,0,0,1);
    }

    .nt-credit-page .nt-calc-controls {
        padding: 28px 24px;
        gap: 20px;
    }

    .nt-credit-page .nt-calc-result {
        padding: 28px 24px;
    }

    /* Advantage bar — tablet */
    .nt-credit-page .nt-advantages-bar {
        flex-wrap: wrap;
    }

    .nt-credit-page .nt-advantage-item {
        flex: 0 0 33.333%;
        padding: 20px 12px;
    }

    .nt-credit-page .nt-advantage-item:nth-child(3) {
        border-right: none;
    }

    .nt-credit-page .nt-advantage-item:nth-child(n+4) {
        border-top: 1px solid var(--border);
    }

    .nt-credit-advantages-bar {
        margin-bottom: 36px;
    }

    .nt-credit-page .nt-advantages-bar {
        border-radius: 16px;
    }

    /* Table */
    .nt-credit-page .nt-comparison-table th,
    .nt-credit-page .nt-comparison-table td {
        padding: 14px 16px;
        font-size: 14px;
    }



    /* CTA Form */
    .nt-credit-page .nt-cta-section {
        grid-template-columns: 1fr;
    }

    .nt-credit-page .nt-cta-manager {
        padding: 32px 24px;
    }

    .nt-credit-page .nt-cta-form-wrapper {
        padding: 32px 24px;
    }

    .nt-credit-page .nt-form-row {
        grid-template-columns: 1fr;
    }

    .nt-credit-page .nt-form-benefits {
        flex-wrap: wrap;
    }

}

/* Tablets: table stacking at 768px (5 columns too wide for smaller screens) */
@media (max-width: 768px) {
    /* Remove wrapper background/shadow — cards are standalone */
    .nt-credit-page .nt-comparison-table {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }

    /* Responsive table: stack into cards */
    .nt-credit-page .nt-comparison-table thead {
        display: none;
    }

    .nt-credit-page .nt-comparison-table table,
    .nt-credit-page .nt-comparison-table tbody,
    .nt-credit-page .nt-comparison-table tr,
    .nt-credit-page .nt-comparison-table td {
        display: block;
    }

    .nt-credit-page .nt-comparison-table tr {
        padding: 20px;
        margin-bottom: 14px;
        border-bottom: none;
        background: #FFFFFF;
        border-radius: 0;
        box-shadow: 4px 4px 0 0 #000;
        border: 2px solid #000;
    }

    .nt-credit-page .nt-comparison-table .nt-table-highlight {
        border: 2px solid #000;
        box-shadow: 4px 4px 0 0 #2C3DF5;
    }

    /* Kill zebra-striping from Hello Elementor (style.min.css) */
    .nt-credit-page .nt-comparison-table tbody > tr:nth-child(2n+1) > td,
    .nt-credit-page .nt-comparison-table tbody > tr:nth-child(2n+1) > th {
        background: transparent !important;
    }

    .nt-credit-page .nt-comparison-table td {
        border: none;
        padding: 6px 0;
        font-size: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: transparent;
    }

    .nt-credit-page .nt-comparison-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-gray);
        font-size: 13px;
        flex-shrink: 0;
        margin-right: 12px;
    }

    .nt-credit-page .nt-comparison-table td:first-child {
        font-weight: 700;
        font-size: 17px;
        color: var(--text-dark, #213777);
        padding: 0 0 10px 0;
        margin-bottom: 4px;
        border-bottom: 1px solid #EAEEFF;
        display: block;
        background: transparent !important;
    }

    .nt-credit-page .nt-comparison-table td:first-child::before {
        display: none;
    }

    .nt-credit-page .nt-comparison-table td:last-child {
        font-weight: 700;
        color: var(--primary);
        font-size: 17px;
        padding-top: 8px;
        margin-top: 4px;
        border-top: none;
        background: transparent !important;
    }

    /* Banks — 3 columns on tablet (9÷3 = even rows) */
    .nt-credit-banks__strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 16px;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .nt-credit-banks__logo {
        height: 26px;
    }

}

/* Mobile */
@media (max-width: 640px) {
    .nt-credit-page .nt-section-title {
        font-size: 24px;
    }

    /* Hero — mobile */
    .nt-credit-page .nt-hero-section {
        padding: 16px 0 28px;
    }

    .nt-credit-page .nt-hero-section h1 {
        font-size: 1.6rem;
    }

    .nt-credit-page .neo-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    /* Advantage bar — mobile */
    .nt-credit-page .nt-advantage-item {
        flex: 0 0 50%;
        padding: 16px 10px;
    }

    .nt-credit-page .nt-advantage-item:last-child:nth-child(odd) {
        flex: 0 0 100%;
    }

    .nt-credit-page .nt-advantage-item:nth-child(3) {
        border-right: 1px solid var(--border);
    }

    .nt-credit-page .nt-advantage-item:nth-child(2n) {
        border-right: none;
    }

    .nt-credit-page .nt-advantage-item:nth-child(n+3) {
        border-top: 1px solid var(--border);
    }

    .nt-credit-page .nt-advantage-number {
        font-size: 18px;
    }

    .nt-credit-advantages-bar {
        margin-bottom: 24px;
    }

    /* Calculator card — compact mobile */
    .nt-credit-page .nt-hero-calc {
        border-width: 2.5px;
        border-radius: 16px;
        box-shadow: 4px 4px 0px 0px rgba(0,0,0,1);
        margin-right: 4px;
        margin-bottom: 4px;
    }

    .nt-credit-page .nt-calc-controls {
        padding: 20px 16px;
        gap: 16px;
    }

    .nt-credit-page .nt-calc-result {
        padding: 24px 16px;
    }

    .nt-credit-page .nt-calc-result .nt-result-value {
        font-size: 1.75rem;
    }

    .nt-credit-page .nt-calc-result .nt-result-value--sm {
        font-size: 1.1rem;
    }

    .nt-credit-page .neo-cta {
        font-size: 14px;
        padding: 12px 24px;
        width: 100%;
    }

    /* Sections spacing on mobile */
    .nt-credit-conditions,
    .nt-credit-steps,
    .nt-credit-banks,
    .nt-credit-bestsellers,
    .nt-credit-page .nt-cta-section-wrapper {
        margin-bottom: 36px;
    }

    .nt-credit-banks,
    .nt-credit-bestsellers {
        padding: 0;
    }

    /* Tabs */
    .nt-credit-calc__tabs {
        gap: 6px;
    }

    .nt-credit-calc__tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .nt-credit-calc__perks {
        flex-direction: column;
        gap: 10px;
    }

    /* Table cards — tighter on phone */
    .nt-credit-page .nt-comparison-table tr {
        padding: 16px;
        margin-bottom: 8px;
    }

    .nt-credit-page .nt-comparison-table td {
        font-size: 14px;
    }

    .nt-credit-banks__strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 12px;
        padding: 20px 16px;
        border-radius: 16px;
    }

    .nt-credit-banks__logo {
        height: 22px;
    }

    /* Timeline — 2x2 on mobile */




    /* Bestsellers */
    .nt-credit-bestsellers__grid {
        gap: 10px;
    }

}
