/* Стили сложного калькулятора: шаги, SKU, результаты и мобильная адаптация. */

/* ============================================================
   RESET & VARS
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bl: #1B6EF3; --bl2: #1452CC; --bll: #EEF4FF; --bll2: #dbeafe;
    --t1: #111827; --t2: #1F2937; --t3: #374151; --t4: #6B7280; --t5: #9CA3AF;
    --b1: #E5E7EB; --b2: #F3F4F6; --b3: #F9FAFB; --wh: #fff;
    --grn: #16A34A; --grn-bg: #F0FDF4; --grn-t: #166534; --grn2: #dcfce7;
    --red: #DC2626; --red-bg: #FEF2F2;
    --r: 12px; --r2: 8px; --r3: 6px;
    --sh: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    --sh2: 0 4px 20px rgba(0,0,0,.09);
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--t1); background: var(--b3);
    font-size: 14px; line-height: 1.5;
}

/* ============================================================
   NAV
============================================================ */
.nav {
    position: sticky; top: 0; z-index: 300;
    background: var(--wh); border-bottom: 1px solid var(--b1);
    height: 52px; box-shadow: var(--sh);
}
.nav-c {
    max-width: 1360px; margin: 0 auto; padding: 0 20px;
    height: 100%; display: flex; align-items: center; gap: 12px;
}
.logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 800; color: var(--t1); margin-right: auto;
}
.logo-icon {
    width: 30px; height: 30px; background: var(--bl);
    border-radius: 7px; display: flex; align-items: center;
    justify-content: center; font-size: 14px; flex-shrink: 0;
}
.logo strong { color: var(--bl); }
.nav-badge {
    background: var(--bll); color: var(--bl);
    font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
}
.rates-bar {
    display: flex; align-items: center; gap: 10px;
    background: var(--b2); border: 1px solid var(--b1);
    border-radius: 8px; padding: 5px 12px;
}
.rate-item { display: flex; align-items: center; gap: 5px; font-size: 11.5px; }
.rate-label { color: var(--t4); font-weight: 500; }
.rate-value { font-weight: 800; color: var(--t1); font-size: 13px; }
.rate-div { width: 1px; height: 12px; background: var(--b1); }
.help-btn {
    display: inline-flex; align-items: center; gap: 5px;
    height: 30px; padding: 0 12px;
    background: var(--b2); color: var(--t3);
    border: 1px solid var(--b1); border-radius: 20px;
    font-size: 11.5px; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: .15s; white-space: nowrap;
}
.help-btn:hover { background: var(--bll); color: var(--bl); border-color: var(--bl); }

/* ============================================================
   HERO
============================================================ */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1B6EF3 100%);
    padding: 18px 0 0; overflow: hidden;
}
.hero-c {
    max-width: 1360px; margin: 0 auto; padding: 0 20px 16px;
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.hero-text h1 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.hero-text p { font-size: 11.5px; color: #93C5FD; max-width: 380px; }

/* Hero path */
.hero-steps {
    display: flex; align-items: center; gap: 0;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; padding: 8px 12px; flex-wrap: nowrap; overflow-x: auto;
}
.hero-step {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; padding: 4px 10px; border-radius: 8px;
    transition: .15s; flex-shrink: 0; min-width: 64px;
}
.hero-step.active-hs { background: rgba(255,255,255,.12); }
.hero-step.done-hs .hs-num { background: var(--grn); }
.hs-num {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255,255,255,.2); color: #fff;
    font-size: 11px; font-weight: 700; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-step.active-hs .hs-num { background: var(--bl); }
.done-icon { background: var(--grn) !important; font-size: 10px; }
.hs-name { font-size: 10px; font-weight: 700; color: #fff; text-align: center; line-height: 1.2; }
.hs-sub { font-size: 9px; color: rgba(255,255,255,.55); text-align: center; }
.hs-arr { color: rgba(255,255,255,.25); font-size: 14px; flex-shrink: 0; padding: 0 2px; }

/* ============================================================
   MAIN WRAP
============================================================ */
.main-wrap {
    max-width: 1360px; margin: 0 auto; padding: 16px 20px 60px;
}

/* ============================================================
   WIZARD PROGRESS
============================================================ */
.wizard-progress {
    background: var(--wh); border: 1px solid var(--b1);
    border-radius: var(--r); padding: 12px 20px;
    margin-bottom: 14px; box-shadow: var(--sh);
}
.wp-track {
    height: 4px; background: var(--b1); border-radius: 4px;
    overflow: hidden; margin-bottom: 12px;
}
.wp-fill {
    height: 100%; background: var(--bl); border-radius: 4px;
    transition: width .4s ease;
}
.wp-steps { display: flex; justify-content: space-between; }
.wp-step {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--t5);
    cursor: pointer; padding: 2px 6px; border-radius: 6px;
    transition: .15s;
}
.wp-step:hover { color: var(--bl); }
.wp-step.active { color: var(--bl); }
.wp-step.done { color: var(--grn); }
.wp-step.done .ws-num { background: var(--grn); color: #fff; }
.wp-step.active .ws-num { background: var(--bl); color: #fff; }
.ws-num {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--b1); color: var(--t4);
    font-size: 10px; font-weight: 700; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
    transition: .2s;
}
.ws-lbl { display: none; }
@media(min-width: 640px) { .ws-lbl { display: block; } }

/* ============================================================
   STEP PANELS
============================================================ */
.step-panel { display: none; }
.step-panel.active { display: block; }

.step-card {
    background: var(--wh); border: 1px solid var(--b1);
    border-radius: var(--r); box-shadow: var(--sh2);
    overflow: hidden;
}

/* Step header */
.step-header {
    display: flex; align-items: flex-start;
    justify-content: space-between;
    padding: 16px 20px 12px; border-bottom: 1px solid var(--b1);
    background: var(--wh);
}
.step-header-left { display: flex; align-items: center; gap: 10px; }
.step-badge {
    background: var(--bll); color: var(--bl);
    font-size: 11px; font-weight: 700; padding: 3px 9px;
    border-radius: 20px; white-space: nowrap;
}
.step-title { font-size: 14px; font-weight: 800; color: var(--t1); }
.help-btn-sm {
    display: inline-flex; align-items: center; gap: 4px;
    height: 28px; padding: 0 10px;
    background: var(--b2); color: var(--t4);
    border: 1px solid var(--b1); border-radius: 20px;
    font-size: 11px; font-weight: 600; cursor: pointer;
    font-family: inherit; white-space: nowrap; transition: .15s;
}
.help-btn-sm:hover { color: var(--bl); border-color: var(--bl); }

/* Step progress bar */
.step-prog-bar {
    height: 3px; background: var(--b1);
}
.step-prog-fill {
    height: 100%; background: var(--bl); transition: width .4s;
}

/* ============================================================
   FORM ELEMENTS
============================================================ */
.form-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }

.field-group { display: flex; flex-direction: column; gap: 4px; }
.field-label { font-size: 11.5px; font-weight: 600; color: var(--t4); }
.field-input {
    height: 40px; padding: 0 12px;
    border: 1.5px solid var(--b1); border-radius: var(--r2);
    font-size: 13.5px; font-family: inherit; color: var(--t1);
    background: var(--wh); outline: none; width: 100%; transition: .15s;
}
.field-input:focus { border-color: var(--bl); box-shadow: 0 0 0 3px rgba(27,110,243,.08); }
.field-input::placeholder { color: #CBD5E1; }
.field-input[readonly] { background: var(--b2); color: var(--t4); }
.field-sm { max-width: 180px; }

.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.field-with-unit { display: flex; }
.field-with-unit .field-input { border-radius: var(--r2) 0 0 var(--r2); border-right: none; }
.unit-sel {
    height: 40px; padding: 0 8px;
    border: 1.5px solid var(--b1); border-radius: 0 var(--r2) var(--r2) 0;
    font-size: 12px; font-weight: 700; color: var(--t3);
    background: var(--b2); outline: none; cursor: pointer;
    font-family: inherit; min-width: 60px;
}

.currency-badge {
    height: 40px; padding: 0 16px;
    border: 1.5px solid var(--b1); border-radius: var(--r2);
    font-size: 13px; font-weight: 700; color: var(--t4);
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: .15s;
}
.currency-badge.active { background: var(--bl); color: #fff; border-color: var(--bl); }
.currency-badge:hover:not(.active) { border-color: var(--bl); color: var(--bl); }

/* ============================================================
   STEP FOOTER
============================================================ */
.step-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-top: 1px solid var(--b1);
    background: var(--b3);
}
.btn-next {
    display: inline-flex; align-items: center; gap: 7px;
    height: 44px; padding: 0 28px;
    background: var(--bl); color: #fff; border: none;
    border-radius: var(--r2); font-size: 14px; font-weight: 700;
    font-family: inherit; cursor: pointer; transition: .15s;
    letter-spacing: .01em;
}
.btn-next:hover { background: var(--bl2); }
.btn-back {
    height: 38px; padding: 0 18px;
    background: var(--b2); color: var(--t3);
    border: 1px solid var(--b1); border-radius: var(--r2);
    font-size: 13px; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: .15s;
}
.btn-back:hover { background: var(--b1); }

/* ============================================================
   STEP 2 — SKU TABLE
============================================================ */
.fill-progress {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px 0;
}
.fill-label { font-size: 12px; font-weight: 600; color: var(--t3); white-space: nowrap; }
.fill-track { flex: 1; height: 5px; background: var(--b2); border-radius: 4px; overflow: hidden; }
.fill-bar { height: 100%; background: var(--bl); border-radius: 4px; transition: width .4s; width: 0%; }
.fill-badge {
    background: var(--bll); color: var(--bl);
    font-size: 11px; font-weight: 700; padding: 2px 8px;
    border-radius: 20px; white-space: nowrap;
}

.tbl-section-label {
    font-size: 12px; font-weight: 700; color: var(--t3);
    padding: 12px 20px 6px; text-transform: uppercase;
    letter-spacing: .04em; font-size: 11px;
}

.tbl-toolbar {
    padding: 0 20px 10px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.tbl-toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.tnved-hint-box {
    display: flex; align-items: center; gap: 6px;
    background: var(--bll); border: 1px solid rgba(27,110,243,.2);
    border-radius: var(--r2); padding: 4px 8px;
}
.tnved-hint-item {
    font-size: 11px; font-weight: 600; color: var(--bl);
    cursor: pointer; padding: 3px 7px;
    border-radius: 4px; white-space: nowrap; transition: .1s;
}
.tnved-hint-item:hover { background: var(--bl); color: #fff; }

.btn-add {
    display: inline-flex; align-items: center; gap: 5px;
    height: 32px; padding: 0 14px;
    background: var(--bll); color: var(--bl);
    border: 1px solid rgba(27,110,243,.25); border-radius: var(--r2);
    font-size: 12.5px; font-weight: 700; cursor: pointer;
    font-family: inherit; transition: .15s;
}
.btn-add:hover { background: #D6E8FF; }
.btn-sec {
    height: 32px; padding: 0 12px;
    background: var(--b2); color: var(--t3);
    border: 1px solid var(--b1); border-radius: var(--r2);
    font-size: 12px; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: .15s;
}
.btn-sec:hover { background: var(--b1); }
.btn-danger { color: var(--red) !important; }
.btn-danger:hover { background: var(--red-bg) !important; border-color: #FECACA !important; }

/* Table */
.tbl-wrap {
    overflow-x: auto; padding: 0 20px 12px;
    -webkit-overflow-scrolling: touch;
}
.tbl-wrap::-webkit-scrollbar { height: 6px; }
.tbl-wrap::-webkit-scrollbar-track { background: var(--b2); border-radius: 3px; }
.tbl-wrap::-webkit-scrollbar-thumb { background: var(--b1); border-radius: 3px; }
.data-table {
    width: max-content; min-width: 100%;
    border-collapse: collapse; font-size: 12px;
}
.data-table thead th {
    background: var(--b3); padding: 8px 9px;
    text-align: center; font-size: 10.5px; font-weight: 700;
    color: var(--t4); border-bottom: 2px solid var(--b1);
    white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.data-table thead th:first-child { text-align: left; padding-left: 12px; }
.data-table tbody tr { border-bottom: 1px solid var(--b2); }
.data-table tbody tr:hover { background: var(--bll); }
.data-table tbody td { padding: 4px 8px; text-align: center; white-space: nowrap; vertical-align: middle; }
.data-table tbody td:first-child { padding-left: 12px; text-align: left; }
.tbl-input {
    width: 100%; min-width: 58px; height: 30px; padding: 0 7px;
    border: 1.5px solid transparent; border-radius: 4px;
    font-size: 12px; font-family: inherit; color: var(--t1);
    background: transparent; outline: none; text-align: center;
}
.tbl-input:hover { border-color: var(--b1); background: var(--wh); }
.tbl-input:focus { border-color: var(--bl); background: var(--wh); }
.tbl-input::placeholder { color: #CBD5E1; }
.tbl-input.art { text-align: left; min-width: 100px; }
.tbl-computed { font-size: 11px; color: var(--t4); white-space: nowrap; }
.col-sep { border-left: 3px solid var(--bl) !important; padding-left: 13px !important; }
.btn-del {
    width: 26px; height: 26px; background: none;
    border: 1px solid transparent; border-radius: 4px;
    color: #94a3b8; font-size: 11px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: .15s;
}
.btn-del:hover { background: var(--red-bg); border-color: #FECACA; color: var(--red); }

/* Upload box */
.upload-box {
    margin: 0 20px 16px;
    border: 2px dashed var(--b1); border-radius: var(--r);
    padding: 20px; text-align: center; background: var(--b3);
    cursor: pointer; transition: .15s;
}
.upload-box:hover { border-color: var(--bl); background: var(--bll); }
.upload-icon { font-size: 24px; color: var(--t5); margin-bottom: 6px; }
.upload-title { font-size: 13px; font-weight: 700; color: var(--t3); margin-bottom: 4px; }
.upload-sub { font-size: 11.5px; color: var(--t5); line-height: 1.5; }

/* ============================================================
   STEP 3 — TAXES
============================================================ */
.tnved-selected-box {
    display: flex; align-items: center; gap: 12px;
    background: var(--bll); border: 1px solid rgba(27,110,243,.2);
    border-radius: var(--r2); padding: 12px 16px; margin-bottom: 4px;
}
.tnved-selected-label { font-size: 11px; font-weight: 700; color: var(--bl); white-space: nowrap; }
.tnved-selected-code { font-size: 16px; font-weight: 800; color: var(--t1); flex: 1; }
.tnved-change-btn {
    height: 28px; padding: 0 12px;
    background: var(--wh); color: var(--bl);
    border: 1.5px solid var(--bl); border-radius: 20px;
    font-size: 11px; font-weight: 700; cursor: pointer;
    font-family: inherit; white-space: nowrap; transition: .15s;
}
.tnved-change-btn:hover { background: var(--bl); color: #fff; }

.vat-chips { display: flex; gap: 8px; }
.vat-chip {
    height: 36px; padding: 0 18px;
    background: var(--b2); color: var(--t3);
    border: 1.5px solid var(--b1); border-radius: 20px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    font-family: inherit; transition: .15s;
}
.vat-chip:hover:not(.active) { border-color: var(--bl); color: var(--bl); }
.vat-chip.active { background: var(--bl); color: #fff; border-color: var(--bl); }

.tax-info-banner {
    display: flex; align-items: flex-start; gap: 8px;
    background: #EFF6FF; border: 1px solid #BFDBFE;
    border-radius: var(--r2); padding: 10px 14px;
    font-size: 12px; color: #1e3a8a; line-height: 1.5;
}
.info-icon {
    width: 18px; height: 18px; background: #3b82f6; color: #fff;
    border-radius: 50%; font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}

/* ============================================================
   STEP 4 — SERVICES
============================================================ */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; padding: 16px 20px 14px;
}
.svc-card {
    border: 1.5px solid var(--b1); border-radius: var(--r2);
    padding: 14px; transition: .15s; background: var(--wh);
}
.svc-card.svc-on { border-color: var(--bl); background: var(--bll); }
.svc-card.svc-off { opacity: .75; }
.svc-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; margin-bottom: 8px;
}
.svc-icon { font-size: 22px; line-height: 1; }
.tog-item.compact { padding: 0; border: none; background: transparent; min-width: unset; flex: none; }
.svc-name { font-size: 13px; font-weight: 700; color: var(--t1); margin-bottom: 4px; }
.svc-desc { font-size: 11.5px; color: var(--t4); line-height: 1.4; margin-bottom: 6px; }
.svc-price { font-size: 12px; font-weight: 700; color: var(--bl); }

/* Toggles (shared) */
.tog-item {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; border: 1.5px solid var(--b1);
    border-radius: var(--r2); cursor: pointer; flex: 1;
    min-width: 140px; transition: .15s;
}
.tog-item.active-tog { border-color: var(--bl); background: var(--bll); }
.tog-sw { position: relative; width: 32px; height: 18px; flex-shrink: 0; }
.tog-sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.tog-t {
    position: absolute; inset: 0; background: #CBD5E1;
    border-radius: 999px; cursor: pointer; transition: .2s;
}
.tog-t::after {
    content: ''; position: absolute;
    width: 12px; height: 12px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: .2s;
}
.tog-sw input:checked + .tog-t { background: var(--bl); }
.tog-sw input:checked + .tog-t::after { transform: translateX(14px); }
.tog-lbl { font-size: 12px; font-weight: 600; color: var(--t2); }

.btn-calc-exact {
    display: flex; align-items: center; justify-content: center;
    height: 48px; margin: 0 20px 6px;
    background: var(--bl); color: #fff; border: none;
    border-radius: var(--r2); font-size: 15px; font-weight: 700;
    font-family: inherit; cursor: pointer; transition: .15s;
    letter-spacing: .01em;
}
.btn-calc-exact:hover { background: var(--bl2); }
.calc-exact-note {
    text-align: center; font-size: 11.5px; color: var(--t5);
    padding: 0 20px 14px;
}

/* ============================================================
   STEP 5 — CONTACTS
============================================================ */
.contacts-card {
    max-width: 480px; margin: 0 auto;
    border-radius: var(--r) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.18) !important;
}
.contacts-modal { padding: 28px 28px 24px; position: relative; }
.contacts-close {
    position: absolute; top: 14px; right: 16px;
    width: 28px; height: 28px; background: var(--b2);
    border: 1px solid var(--b1); border-radius: 50%;
    font-size: 16px; color: var(--t4); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: .15s;
}
.contacts-close:hover { background: var(--b1); color: var(--t1); }
.contacts-title { font-size: 17px; font-weight: 800; color: var(--t1); margin-bottom: 6px; }
.contacts-sub { font-size: 12.5px; color: var(--t4); line-height: 1.6; }
.btn-open-result {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; height: 48px; margin-top: 16px;
    background: var(--bl); color: #fff; border: none;
    border-radius: var(--r2); font-size: 15px; font-weight: 700;
    font-family: inherit; cursor: pointer; transition: .15s;
}
.btn-open-result:hover { background: var(--bl2); }
.btn-open-result:disabled { opacity: .6; cursor: not-allowed; }
.contacts-privacy {
    margin-top: 10px; font-size: 11px; color: var(--t5);
    text-align: center; line-height: 1.6;
}
.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
    border-radius: 50%; animation: spin .6s linear infinite; display: none;
}
.btn-open-result.loading .spinner { display: block; }
.btn-open-result.loading .btn-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Error box */
.err-box {
    padding: 8px 12px; background: var(--red-bg);
    border: 1px solid #FECACA; border-radius: var(--r2);
    color: var(--red); font-size: 12px; display: none;
    margin: 8px 20px 0;
}
#c_error.err-box { margin: 0; }

/* ============================================================
   RESULTS
============================================================ */
.results-section {
    display: none; margin-top: 14px;
    background: var(--wh); border: 1px solid var(--b1);
    border-radius: var(--r); box-shadow: var(--sh2); overflow: hidden;
}

.results-header {
    padding: 14px 20px 12px; border-bottom: 1px solid var(--b1);
    background: var(--b3);
}
.results-title { font-size: 15px; font-weight: 800; color: var(--t1); }

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0; border-bottom: 1px solid var(--b1);
}
.stat-card {
    padding: 14px 16px; border-right: 1px solid var(--b1);
    display: flex; align-items: flex-start; gap: 10px;
}
.stat-card:last-child { border-right: none; }
.stat-card.stat-blue { background: var(--bll); }
.stat-card.stat-highlight { background: #FEF3C7; }
.stat-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(0,0,0,.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}
.stat-body { min-width: 0; }
.stat-lbl { font-size: 10px; color: var(--t4); margin-bottom: 2px; line-height: 1.3; }
.stat-val { font-size: 16px; font-weight: 800; color: var(--t1); line-height: 1.1; word-break: break-all; }
.stat-sub { font-size: 10px; color: var(--t4); margin-top: 2px; }

/* Route tabs bar */
.route-tabs-bar {
    padding: 10px 20px; border-bottom: 1px solid var(--b1);
    display: flex; align-items: center; gap: 12px;
}
.route-tabs-lbl { font-size: 11.5px; font-weight: 700; color: var(--t4); white-space: nowrap; }
.route-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.route-tab {
    height: 30px; padding: 0 14px;
    background: var(--b2); color: var(--t3);
    border: 1.5px solid var(--b1); border-radius: 20px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: .15s; white-space: nowrap;
}
.route-tab:hover { border-color: var(--bl); color: var(--bl); }
.route-tab.active { background: var(--bl); color: #fff; border-color: var(--bl); }

/* Result SKU table (big) */
.res-tbl-wrap { overflow-x: auto; padding: 0 20px; margin-bottom: 14px; }
.res-tbl {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    border-radius: var(--r2);
    overflow: hidden;
    border: 1px solid var(--b1);
    table-layout: fixed;
}
.res-tbl thead th {
    background: var(--b3);
    padding: 9px 8px;
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--t4);
    border-bottom: 1px solid var(--b1);
    white-space: nowrap;
}
.res-tbl thead th:first-child,
.res-tbl thead th:nth-child(2) { text-align: left; }
.res-tbl tbody tr { border-bottom: 1px solid var(--b2); }
.res-tbl tbody tr:hover { background: var(--bll); }
.res-tbl tbody td { padding: 9px 8px; text-align: center; }
.res-tbl tbody td:first-child,
.res-tbl tbody td:nth-child(2) { text-align: left; }
.res-tbl .total-row td {
    font-weight: 700; background: var(--b3);
    border-top: 2px solid var(--b1);
}
.hl-col { color: var(--bl) !important; font-weight: 800 !important; }

/* Bottom grid: detail + sku */
.res-bottom-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; border-top: 1px solid var(--b1);
}
.res-detail-card,
.res-sku-card {
    padding: 14px 20px;
}
.res-detail-card { border-right: 1px solid var(--b1); }
.res-detail-title {
    font-size: 13px; font-weight: 700; color: var(--t1);
    margin-bottom: 10px; padding-bottom: 7px;
    border-bottom: 1px solid var(--b1);
    display: flex; align-items: center; gap: 6px;
}

/* Breakdown table */
.breakdown-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.breakdown-tbl td { padding: 5px 4px; border-bottom: 1px solid var(--b2); color: var(--t2); }
.breakdown-tbl td:last-child { text-align: right; font-weight: 600; color: var(--t1); white-space: nowrap; }
.breakdown-tbl tr:last-child td { border-bottom: none; }

.breakdown-tbl .breakdown-summary-row td {
    padding-top: 8px;
    color: var(--t1);
    font-weight: 800;
    border-top: 1px solid var(--b1);
    background: rgba(37, 99, 235, 0.04);
}
.breakdown-tbl .breakdown-summary-row td:last-child {
    color: var(--brand);
    font-weight: 900;
}
.tfoot-row td { border-top: 2px solid var(--b1) !important; padding-top: 8px !important; font-weight: 800 !important; font-size: 13px; color: var(--t1) !important; }

/* SKU small table */
.sku-tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.sku-tbl th { font-size: 10px; font-weight: 700; color: var(--t4); padding: 4px 5px; border-bottom: 1px solid var(--b1); text-align: right; background: var(--b3); }
.sku-tbl th:first-child { text-align: left; }
.sku-tbl td { padding: 5px; border-bottom: 1px solid var(--b2); text-align: right; }
.sku-tbl td:first-child { text-align: left; font-weight: 600; }
.sku-tbl .sum-row td { font-weight: 700; border-top: 2px solid var(--b1); background: var(--b3); }

/* CTA row */
.res-cta-row {
    display: flex; gap: 8px; padding: 14px 20px;
    border-top: 1px solid var(--b1); flex-wrap: wrap;
}
.cta-btn {
    flex: 1; min-width: 120px; height: 42px;
    border-radius: var(--r2); font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    transition: .15s;
}
.cta-outline {
    background: var(--wh); color: var(--t3);
    border: 1px solid var(--b1);
}
.cta-outline:hover { border-color: var(--bl); color: var(--bl); background: var(--bll); }
.cta-primary {
    background: var(--bl); color: #fff; border: none;
}
.cta-primary:hover { background: var(--bl2); }

/* ============================================================
   TOOLTIPS
============================================================ */
.tt-wrap {
    display: inline-flex; align-items: center;
    cursor: help; vertical-align: middle;
}
.tt-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; background: var(--bll2); color: #2563EB;
    border-radius: 50%; font-size: 9px; font-weight: 700;
    margin-left: 4px; flex-shrink: 0; transition: .15s; line-height: 1;
}
.tt-wrap:hover .tt-icon { background: #2563EB; color: #fff; }
.tt-text {
    position: absolute; left: -9999px; top: -9999px;
    opacity: 0; pointer-events: none;
}
.tnved-dropdown { border-radius: 0 0 6px 6px !important; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
    .stats-row { grid-template-columns: repeat(4, 1fr); }
    .stat-card { border-bottom: 1px solid var(--b1); }
}
@media (max-width: 768px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .field-row-3 { grid-template-columns: 1fr 1fr; }
    .res-bottom-grid { grid-template-columns: 1fr; }
    .res-detail-card { border-right: none; border-bottom: 1px solid var(--b1); }
    .hero-steps { display: none; }
}
@media (max-width: 520px) {
    .services-grid { grid-template-columns: 1fr; }
    .field-row-2, .field-row-3 { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 16px; }
    .stats-row { grid-template-columns: 1fr; }
}

/* ============================================================
   SUVILOGIST WEBSITE THEME OVERRIDES
   Подгонка калькулятора под дизайн основного сайта
============================================================ */
:root {
    --bl: #2563eb;
    --bl2: #1d4ed8;
    --bll: #eff6ff;
    --bll2: #dbeafe;
    --t1: #111827;
    --t2: #1f2937;
    --t3: #4b5563;
    --t4: #6b7280;
    --t5: #9ca3af;
    --b1: #e5e7eb;
    --b2: #f3f4f6;
    --b3: #f8fafc;
    --wh: #ffffff;
    --footer: #111827;
    --footer2: #1f2937;
    --r: 10px;
    --r2: 8px;
    --sh: 0 1px 2px rgba(15, 23, 42, .04);
    --sh2: 0 2px 8px rgba(15, 23, 42, .08);
}

html { background: var(--b3); overflow-x: hidden; }
body {
    background: var(--b3);
    color: var(--t1);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: .005em;
    overflow-x: hidden;
}

/* Верхнее меню как на основном сайте */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.site-header__inner {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 26px;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1e40af;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
    margin-right: 12px;
}
.site-logo__icon {
    width: 34px;
    height: 34px;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.site-logo__icon svg { width: 34px; height: 34px; display: block; }
.site-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 100%;
    flex: 1 1 auto;
}
.site-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .15s ease;
    white-space: nowrap;
}
.site-menu a:hover,
.site-menu a.active { color: #2563eb; }
.site-menu a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #2563eb;
    border-radius: 2px 2px 0 0;
}
.site-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.site-phone::before { content: '☎'; color: #ec4899; font-size: 14px; }
.site-cta {
    height: 36px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .15s ease, transform .15s ease;
}
.site-cta:hover { background: #1d4ed8; transform: translateY(-1px); }

/* Светлая шапка страницы */
.page-hero {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.page-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 36px;
}
.page-hero h1 {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: .01em;
    color: #111827;
    margin: 0 0 10px;
}
.page-hero p {
    max-width: 560px;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.main-wrap {
    max-width: 1280px;
    padding: 44px 24px 56px;
}

/* Прогресс как в референсе */
.wizard-progress {
    width: min(100%, 980px);
    margin: 0 auto 8px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}
.wizard-progress::before {
    content: 'Заполнено 100%';
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}
.wp-track {
    height: 7px;
    margin: 0;
    background: #dbeafe;
    border-radius: 999px;
}
.wp-fill { background: #2563eb; border-radius: 999px; }
.wp-steps {
    justify-content: flex-end;
    gap: 8px;
}
.wp-step {
    font-size: 13px;
    color: #2563eb;
    padding: 0;
}
.wp-step:not(.active) { display: none; }
.wp-step.active .ws-num { display: none; }
.wp-step.active .ws-lbl {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-weight: 500;
}
.wp-step.active .ws-lbl::before {
    content: '— Прогресс заполнения';
}
.wp-step.active .ws-lbl { font-size: 0; }
.wp-step.active .ws-lbl::before { font-size: 13px; }

/* Карточки формы */
.step-card {
    width: min(100%, 980px);
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .07);
    overflow: visible;
}
#step2 .step-card,
.results-section {
    width: 100%;
    max-width: 1280px;
}
.step-header {
    padding: 20px 22px 6px;
    border-bottom: 0;
    background: #fff;
}
.step-header-left {
    width: 100%;
    gap: 0;
}
.step-badge {
    display: none;
}
.step-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}
.step-title::before {
    content: '';
    display: inline-block;
    width: 0;
}

.inline-info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 22px 0;
    flex-wrap: wrap;
}
.inline-info-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #6b7280;
    font-size: 12px;
}
.inline-info-label {
    color: #4b5563;
    font-weight: 700;
    white-space: nowrap;
}
.inline-info-muted { color: #9ca3af; }
.rates-bar {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    gap: 14px;
}
.rate-label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}
.rate-value {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .03em;
}
.rate-div {
    height: 18px;
    background: #e5e7eb;
}

.form-body {
    padding: 16px 22px 14px;
    gap: 14px;
}
.field-row-2,
.field-row-3 { gap: 12px; }
.field-label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}
.field-input,
.tbl-input {
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, .02);
}
.field-input:focus,
.tbl-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}
.field-input::placeholder,
.tbl-input::placeholder { color: #9ca3af; }

.step-footer {
    padding: 14px 22px 20px;
    border-top: 0;
    background: #fff;
}
.btn-next,
.btn-back,
.btn-add,
.btn-sec,
.btn-calc-exact,
.btn-open-result,
.cta-btn {
    border-radius: 7px;
    font-weight: 700;
}
.btn-next,
.btn-calc-exact,
.btn-open-result {
    min-height: 48px;
    background: #2563eb;
    box-shadow: 0 8px 16px rgba(37, 99, 235, .15);
}
.btn-next:hover,
.btn-calc-exact:hover,
.btn-open-result:hover { background: #1d4ed8; }
.btn-back,
.btn-sec {
    background: #fff;
    border: 1px solid #dbeafe;
    color: #2563eb;
}
.btn-add {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
}

/* Таблица SKU */
.fill-progress {
    margin: 12px 22px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.fill-label,
.fill-badge {
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
}
.fill-track { background: #dbeafe; }
.fill-bar { background: #2563eb; }
.tbl-toolbar {
    padding: 12px 22px;
}
.tbl-wrap {
    margin: 0 22px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: auto;
    background: #fff;
}
.data-table {
    border: 0;
}
.data-table thead th {
    background: #f8fafc;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
    font-size: 11px;
    font-weight: 800;
}
.data-table tbody td {
    border-bottom: 1px solid #f3f4f6;
}
.data-table tbody tr:hover { background: #f8fafc; }
.tbl-computed { color: #4b5563; }
.btn-del {
    border-radius: 6px;
    background: #fef2f2;
    color: #dc2626;
}

/* Услуги и контакты */
.services-grid {
    padding: 16px 22px 8px;
    gap: 12px;
}
.svc-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.svc-card.svc-on,
.svc-card:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}
.tog-sw input:checked + .tog-t { background: #2563eb; }
.contacts-card {
    max-width: 440px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .16) !important;
}
.contacts-title { font-size: 20px; }
.contacts-sub { font-size: 14px; }
.err-box {
    border-radius: 7px;
    margin-left: 22px;
    margin-right: 22px;
}

/* Результаты как на референсе */
.results-section {
    margin: 28px auto 0;
    border-radius: 10px;
    border: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
}
.results-header {
    background: transparent;
    border: 0;
    padding: 0 0 12px;
}
.results-title {
    font-size: 22px;
    font-weight: 900;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    border: 0;
    margin-bottom: 16px;
}
.stat-card {
    min-height: 104px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .07);
}
.stat-card:last-child { border-right: 1px solid #e5e7eb; }
.stat-card.stat-blue { background: #fff; }
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 20px;
}
.stat-card:nth-child(2) .stat-icon { background: #dcfce7; color: #16a34a; }
.stat-card:nth-child(3) .stat-icon { background: #fef3c7; color: #ca8a04; }
.stat-card:nth-child(4) .stat-icon { background: #ede9fe; color: #7c3aed; }
.stat-card:nth-child(5) .stat-icon { background: #fee2e2; color: #dc2626; }
.stat-lbl { font-size: 13px; color: #6b7280; }
.stat-val { font-size: 22px; font-weight: 900; color: #111827; }
.stat-sub { font-size: 13px; color: #6b7280; }
.route-tabs-bar,
.res-tbl-wrap,
.res-bottom-grid,
.res-cta-row {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .07);
}
.route-tabs-bar {
    border-radius: 10px 10px 0 0;
    padding: 16px 20px;
}
.route-tabs-lbl { color: #111827; font-size: 15px; }
.route-tab {
    height: 36px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #111827;
    font-weight: 700;
}
.route-tab.active {
    background: #eff6ff;
    color: #2563eb;
    border-color: #2563eb;
}
.res-tbl-wrap {
    border-top: 0;
    border-bottom: 0;
    border-radius: 0;
    padding: 0 20px 16px;
    margin: 0;
}
.res-tbl,
.breakdown-tbl,
.sku-tbl {
    border-radius: 8px;
}
.res-tbl thead th,
.sku-tbl th {
    background: #f8fafc;
    color: #4b5563;
}
.hl-col { color: #2563eb !important; }
.res-bottom-grid {
    border-top: 0;
    border-radius: 0;
}
.res-detail-card,
.res-sku-card { padding: 20px; }
.res-detail-title { font-size: 16px; font-weight: 800; }
.res-cta-row {
    border-top: 0;
    border-radius: 0 0 10px 10px;
    padding: 16px 20px 20px;
}
.cta-outline {
    height: 46px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #2563eb;
}
.cta-outline:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

/* Подвал сайта */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 44px 0 48px;
}
.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.4fr .8fr 1fr 1fr;
    gap: 72px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bfdbfe;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 22px;
}
.footer-logo__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}
.footer-brand p {
    max-width: 360px;
    font-size: 14px;
    line-height: 1.75;
    color: #9ca3af;
    margin: 0 0 14px;
}
.footer-link,
.footer-col a,
.footer-col span {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.8;
}
.footer-link { color: #3b82f6; }
.footer-col h4 {
    margin: 0 0 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    font-weight: 900;
}
.footer-col a:hover { color: #fff; }
.footer-social-title { margin-top: 16px; }
.footer-social {
    width: 34px;
    height: 34px;
    margin-top: 8px;
    border-radius: 7px;
    background: #1f2937;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 12px !important;
    font-weight: 800;
    color: #d1d5db !important;
}

@media (max-width: 1120px) {
    .site-menu { display: none; }
    .site-header__inner { gap: 16px; }
    .site-logo { margin-right: auto; }
    .stats-row { grid-template-columns: repeat(3, 1fr); }
    .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
    .site-phone { display: none; }
    .page-hero__inner { padding: 34px 18px 28px; }
    .page-hero h1 { font-size: 26px; }
    .page-hero p { font-size: 14px; }
    .main-wrap { padding: 28px 14px 42px; }
    .wizard-progress {
        width: 100%;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 8px;
    }
    .wp-steps { justify-content: flex-start; }
    .inline-info-row { padding: 8px 18px 0; }
    .form-body,
    .step-header,
    .step-footer { padding-left: 18px; padding-right: 18px; }
    .tbl-toolbar,
    .fill-progress { margin-left: 18px; margin-right: 18px; padding-left: 0; padding-right: 0; }
    .import-hint { margin-left: 18px !important; margin-right: 18px !important; }
    .tbl-wrap { margin-left: 18px; margin-right: 18px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
    .site-header { height: auto; }
    .site-header__inner { min-height: 56px; padding: 8px 14px; }
    .site-logo { font-size: 18px; }
    .site-logo__icon, .site-logo__icon svg { width: 30px; height: 30px; }
    .site-cta { padding: 0 12px; height: 34px; font-size: 12px; }
    .stats-row { grid-template-columns: 1fr; }
    .rate-value { font-size: 16px; }
    .rates-bar { flex-wrap: wrap; }
}
.anchor-target { display:block; position:relative; top:-90px; visibility:hidden; height:0; }
.wizard-progress::before { content: none !important; display: none !important; }
.wizard-label { font-size: 13px; font-weight: 700; color: #111827; white-space: nowrap; }

/* ============================================================
   CALCULATOR STEP TABS — added for visible switching
============================================================ */
.wizard-progress {
    width: min(100%, 990px) !important;
    margin: 0 auto 16px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 12px 14px !important;
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.wizard-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    white-space: nowrap !important;
}
.wp-track {
    height: 7px !important;
    margin: 0 !important;
    background: #dbeafe !important;
    border-radius: 999px !important;
}
.wp-fill {
    background: #2563eb !important;
    border-radius: 999px !important;
}
.wp-steps {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    justify-content: stretch !important;
}
.wp-step,
.wp-step:not(.active) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 42px !important;
    padding: 8px 10px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    color: #4b5563 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
    cursor: pointer !important;
    transition: .18s ease !important;
}
.wp-step:hover {
    border-color: #2563eb !important;
    color: #2563eb !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .10) !important;
}
.wp-step.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .24) !important;
}
.wp-step.done {
    border-color: #bbf7d0 !important;
    background: #f0fdf4 !important;
    color: #15803d !important;
}
.wp-step.done.active,
.wp-step.active.done {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}
.wp-step.disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}
.wp-step .ws-num,
.wp-step.active .ws-num {
    display: inline-flex !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    flex-shrink: 0 !important;
}
.wp-step.active .ws-num {
    background: rgba(255,255,255,.22) !important;
    color: #fff !important;
}
.wp-step.done .ws-num {
    background: #22c55e !important;
    color: #fff !important;
}
.wp-step .ws-lbl,
.wp-step.active .ws-lbl {
    display: inline-flex !important;
    align-items: center !important;
    color: inherit !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}
.wp-step.active .ws-lbl::before {
    content: none !important;
}

@media (max-width: 900px) {
    .wp-steps {
        grid-template-columns: 1fr 1fr !important;
    }
    .wp-step-result {
        grid-column: 1 / -1 !important;
    }
}
@media (max-width: 560px) {
    .wizard-progress {
        grid-template-columns: 1fr !important;
    }
    .wizard-label {
        white-space: normal !important;
    }
    .wp-steps {
        display: flex !important;
        overflow-x: auto !important;
        padding-bottom: 4px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .wp-step,
    .wp-step:not(.active) {
        min-width: min(168px, calc(100vw - 44px)) !important;
        scroll-snap-align: start !important;
    }
    .wp-step-result {
        grid-column: auto !important;
    }
}

/* Итоговый результат вместо блока себестоимости */
.final-result-card {
    background: #fff;
}
.final-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.final-result-head .res-detail-title {
    margin-bottom: 0;
    flex: 1;
}
.profit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #15803d;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.final-result-tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    background: #fff;
}
.final-result-tbl td {
    padding: 12px 14px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}
.final-result-tbl tr:last-child td {
    border-bottom: 0;
}
.final-result-tbl td:last-child {
    text-align: right;
    color: #111827;
    font-weight: 800;
    white-space: nowrap;
}
.final-benefits {
    margin-top: 14px;
    display: grid;
    gap: 7px;
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
}
.final-includes {
    color: #374151;
}
.final-includes div {
    padding: 9px 10px;
    border-radius: 8px;
    line-height: 1.45;
}
.include-ok {
    background: #f0fdf4;
    color: #166534;
}
.include-muted {
    background: #f8fafc;
    color: #64748b;
}
.final-note {
    margin-top: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    color: #9ca3af;
    font-size: 12px;
}
.final-currency-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
}
.final-currency-select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-weight: 700;
}
.currency-rate-note {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}
.import-hint {
    margin: -4px 0 12px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}
.import-hint.import-ok {
    color: #15803d;
    font-weight: 800;
}
.import-hint.import-error {
    color: #dc2626;
    font-weight: 800;
}
.btn-sec.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    vertical-align: middle;
}
@media (max-width: 520px) {
    .calc-mode-tabs {
        padding: 0 14px !important;
        gap: 8px !important;
    }
    .calc-mode-tab {
        flex: 1 1 100% !important;
        min-height: 44px;
        padding: 10px 12px !important;
        border-radius: 10px !important;
        font-size: 13.5px !important;
    }
    .step-card,
    #step2 .step-card,
    .results-section {
        border-radius: 9px;
    }
    .step-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .step-footer button,
    .btn-next,
    .btn-back,
    .btn-add,
    .btn-sec,
    .btn-calc-exact,
    .btn-open-result {
        width: 100%;
    }
    .route-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .route-tab {
        flex: 0 0 auto;
    }
    .final-result-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .profit-badge {
        white-space: normal;
        text-align: center;
    }
    .final-result-tbl {
        table-layout: fixed;
    }
    .final-result-tbl td {
        padding: 11px 10px;
        font-size: 13px;
        overflow-wrap: anywhere;
    }
    .final-result-tbl td:last-child {
        width: 42%;
        white-space: normal;
    }
    .final-currency-row {
        flex-wrap: wrap;
    }
    .final-currency-select {
        width: 100%;
    }
}

/* ============================================================
   Container route availability status
============================================================ */
.route-tabs-bar {
    align-items: flex-start;
}
.route-tabs {
    flex: 1;
}
.route-tab.route-card {
    height: auto;
    min-height: 56px;
    min-width: 170px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 5px;
    text-align: left;
    white-space: normal;
    border-radius: 10px;
}
.route-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.route-card-name {
    font-weight: 800;
    line-height: 1.25;
}
.route-card-time {
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
    white-space: nowrap;
}
.route-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.route-badge {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1;
}
.route-badge-rec { background: #dbeafe; color: #1d4ed8; }
.route-badge-cheap { background: #dcfce7; color: #15803d; }
.route-badge-fast { background: #fee2e2; color: #dc2626; }
.route-badge-opt { background: #fef3c7; color: #b45309; }
.route-card-desc {
    color: #6b7280;
    font-size: 11.5px;
    line-height: 1.35;
}
.route-card-price {
    font-size: 14px;
    font-weight: 900;
    color: #111827;
}
.route-tab.route-card.active .route-card-name,
.route-tab.route-card.active .route-card-price {
    color: #2563eb;
}
.container-status {
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 9px;
    border: 1px solid;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11.5px;
    line-height: 1.25;
}
.container-warn {
    background: #fffbeb;
    border-color: #fbbf24;
    color: #92400e;
}
.container-ok {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}
.status-title {
    font-weight: 800;
}
.status-values {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}
.status-values span {
    display: flex;
    flex-direction: column;
    min-width: 70px;
}
.status-values b {
    font-size: 14px;
    color: #111827;
}
.status-values em {
    font-style: normal;
    color: #6b7280;
}
.status-min {
    color: #6b7280;
    font-weight: 600;
}
@media (max-width: 768px) {
    .route-tabs-bar {
        flex-direction: column;
    }
    .route-tab.route-card {
        width: 100%;
    }
}

/* ============================================================
   FIX: result-step label and compact route cards
   Added after SEO blocks so it overrides old duplicate styles.
============================================================ */
.wp-step .ws-lbl,
.wp-step.active .ws-lbl {
    font-size: 13px !important;
}

.route-tabs-bar {
    align-items: flex-start !important;
}

.route-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
    gap: 8px !important;
}

.route-tab.route-card {
    flex: 1 1 188px !important;
    max-width: 240px !important;
    min-height: 0 !important;
    padding: 10px 12px !important;
    align-self: flex-start !important;
}

.route-card-top {
    align-items: flex-start !important;
}

.container-status {
    width: 100% !important;
    margin-top: 6px !important;
    padding: 7px 9px !important;
    gap: 3px !important;
}

.status-values {
    gap: 6px !important;
}

.status-values span {
    min-width: 0 !important;
}

.status-values b {
    font-size: 13px !important;
}

.status-min {
    font-size: 11px !important;
}

@media (max-width: 900px) {
    .route-tab.route-card {
        flex: 1 1 100% !important;
        max-width: none !important;
    }
}

/* ============================================================
   Stronger SKU table readability and blue horizontal scrollbar
============================================================ */
.tbl-wrap {
    scrollbar-width: thin;
    scrollbar-color: #2563eb #dbeafe;
    border-bottom: 1px solid #dbeafe;
}
.tbl-wrap::-webkit-scrollbar,
.res-tbl-wrap::-webkit-scrollbar {
    height: 13px !important;
}
.tbl-wrap::-webkit-scrollbar-track,
.res-tbl-wrap::-webkit-scrollbar-track {
    background: #dbeafe !important;
    border-radius: 999px !important;
}
.tbl-wrap::-webkit-scrollbar-thumb,
.res-tbl-wrap::-webkit-scrollbar-thumb {
    background: #2563eb !important;
    border: 3px solid #dbeafe !important;
    border-radius: 999px !important;
}
.tbl-wrap::-webkit-scrollbar-thumb:hover,
.res-tbl-wrap::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8 !important;
}
.import-hint {
    margin: 0 20px 14px !important;
    padding: 10px 12px !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 10px !important;
    background: #eff6ff !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    text-align: center !important;
}
.import-hint.import-ok {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #15803d !important;
}
.import-hint.import-error {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
}
.fill-label,
.fill-badge {
    font-size: 14px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
}
.data-table thead th {
    font-size: 13px !important;
    font-weight: 900 !important;
    color: #1e293b !important;
}
.data-table tbody td {
    font-size: 14px !important;
    color: #1e293b !important;
}
.tbl-input {
    min-height: 44px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    border-color: #dbe3ef !important;
}
.tbl-computed {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #475569 !important;
}
