:root {
    --brand-dark: #121A2F;
    --brand-blue: #0EA5E9;
    --brand-purple: #8B5CF6;
    --brand-rose: #F43F5E;
    --bg-hero: linear-gradient(135deg, #F0F4FF 0%, #F8FAFC 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #F8FAFC;
}

main {
    flex: 1;
}

/* ������� � ����� */
.navbar-brand img.logo-header {
    height: 35px !important; /* ��������� ������ */
    max-height: 35px !important;
    width: auto !important; /* ��������� ��������� */
    display: block;
}

/* ������� � ����� */
.logo-hero {
    height: 100px !important; /* ���� �������� ��� ������� */
    width: auto !important;
    margin: 0 auto 1.5rem auto;
    display: block;
}

/* ������ */
.btn-login {
    background-color: transparent;
    color: var(--brand-dark);
    border: 1px solid var(--brand-dark);
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

    .btn-login:hover {
        background-color: var(--brand-dark);
        color: white;
    }

.btn-cta-main {
    background-color: var(--brand-dark);
    color: white;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-cta-main:hover {
        background-color: #0a0f1c;
        color: white;
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }

.hero-section {
    background: var(--bg-hero);
    padding: 80px 0;
}

/* �������� */
.feature-card {
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    background-color: #ffffff;
    padding: 2rem 1.5rem;
    transition: transform 0.3s;
}

    .feature-card:hover {
        transform: translateY(-5px);
    }

.icon-blue {
    color: var(--brand-blue);
}

.icon-purple {
    color: var(--brand-purple);
}

.icon-rose {
    color: var(--brand-rose);
}
 

/* ���������� �������� ��� �������� � ����� */
.navbar-brand .logo-header {
    height: 35px !important; /* ��������� ������ */
    max-height: 35px !important; /* ������ �� ������������ */
    width: auto !important; /* ���������������� ��������� ������ */
    min-height: 35px !important;
    display: block !important;
    object-fit: contain !important; /* ����������, ��� �� ���������� */
}


:root {
            --mp-primary: #696cff;
            --mp-primary-dark: #5f61e6;
            --mp-dark: #233446;
            --mp-bg-light: #f5f5f9;
            --mp-accent-green: #71dd37;
            --mp-text-muted: #697a8d;
            --mp-heading: #566a7f;
        }

        body {
            font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
            color: var(--mp-text-muted);
            background-color: #ffffff;
            overflow-x: hidden;
        }

        /* Навигация и Хедер */
        .mp-navbar {
            background-color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #e2e8f0;
            z-index: 1050;
        }

        .mp-navbar .container {
            padding: 10px;
        }

        /* Hero Стилизация */
        .hero-section {
            padding: 160px 0 100px 0;
            background: radial-gradient(130% 100% at 50% 0%, rgba(37, 99, 235, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
        }
        .btn-mp-primary {
            background-color: var(--mp-primary);
            color: #fff;
            font-weight: 600;
            padding: 0.75rem 1.75rem;
            border-radius: 8px;
            transition: all 0.2s ease;
            border: none;
        }
        .btn-mp-primary:hover {
            background-color: var(--mp-primary-dark);
            color: #fff;
            transform: translateY(-1px);
        }
        .btn-mp-outline {
            background-color: transparent;
            color: var(--mp-dark);
            border: 1px solid #cbd5e1;
            font-weight: 600;
            padding: 0.75rem 1.75rem;
            border-radius: 8px;
            transition: all 0.2s ease;
        }
        .btn-mp-outline:hover {
            background-color: #f1f5f9;
            border-color: #94a3b8;
        }

        /* Имитация Браузера / Mac-мокап */
        .mac-mockup {
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
            background: #ffffff;
            overflow: hidden;
            transform-style: preserve-3d;
            will-change: transform;
        }
        .mac-header {
            background-color: #f1f5f9;
            padding: 12px 20px;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
        }
        .mac-dots {
            display: flex;
            gap: 6px;
            margin-right: 20px;
        }
        .mac-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }
        .mac-dot.red { background-color: #ef4444; }
        .mac-dot.yellow { background-color: #f59e0b; }
        .mac-dot.green { background-color: #10b981; }
        .mac-address {
            background-color: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            font-size: 0.75rem;
            color: var(--mp-text-muted);
            padding: 4px 16px;
            flex-grow: 1;
            max-width: 400px;
            font-family: monospace;
        }

        /* Модульный Шоукейс */
        .showcase-section {
            background-color: var(--mp-bg-light);
            padding: 100px 0;
            border-top: 1px solid #e2e8f0;
            border-bottom: 1px solid #e2e8f0;
        }
        .showcase-tabs .nav-link {
            color: var(--mp-text-muted);
            border: 1px solid transparent;
            border-radius: 8px;
            padding: 12px 20px;
            font-weight: 500;
            text-align: left;
            transition: all 0.2s ease;
            margin-bottom: 8px;
        }
        .showcase-tabs .nav-link:hover {
            background-color: rgba(37, 99, 235, 0.04);
            color: var(--mp-dark);
        }
        .showcase-tabs .nav-link.active {
            background-color: #ffffff;
            color: var(--mp-primary);
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
            border-color: #e2e8f0;
        }
        
        /* Внутренние стили плейсхолдеров системных UI */
        .sys-preview-table {
            font-size: 0.8rem;
            margin-bottom: 0;
        }
        .sys-preview-table th {
            background-color: #f8fafc !important;
            font-weight: 600;
            color: var(--mp-text-muted);
            border-bottom: 2px solid #e2e8f0;
        }
        .badge-fbo { background-color: rgba(37, 99, 235, 0.1); color: var(--mp-primary); }
        .badge-reprice { background-color: rgba(16, 185, 129, 0.1); color: var(--mp-accent-green); }

        /* Калькулятор юнит-экономики */
        .calculator-section {
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            padding: 80px 0;
        }
        .calc-flexbox {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .calc-flexbox .calc-card .text-muted {
            margin-bottom: unset;
        }
        .calc-card {
            background: #ffffff;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
            padding: 2rem;
        }
        .calc-PS {
            margin-top: calc(var(--bs-gutter-y));;
            height: 100%;
        }
        .calc-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: #e2e8f0;
            outline: none;
        }
        .calc-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--mp-primary);
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(105, 108, 255, 0.3);
            transition: all 0.2s ease;
        }
        .calc-slider::-webkit-slider-thumb:hover {
            transform: scale(1.1);
            background: var(--mp-primary-dark);
        }
        .calc-result-box {
            background: linear-gradient(135deg, var(--mp-dark) 0%, #2c3e50 100%);
            border-radius: 12px;
            padding: 1.5rem;
            color: #fff;

            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .calc-result-box .calc-result-box-output {
            padding-top: unset !important;
        }
        .calc-result-box-button {
            /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
            padding-left: unset !important;
            padding-bottom: unset !important;
            padding-right: unset !important;
            background: unset !important;
            border-radius: unset !important;
        }
        .calc-result-row {
            display: flex;
            justify-content: space-between;
            padding: 0.65rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .calc-result-row:last-child {
            border-bottom: none;
        }
        .calc-net-profit {
            font-size: 2rem;
            font-weight: 800;
            color: var(--mp-accent-green);
        }
        .text-success {
            color: var(--mp-accent-green) !important;
        }

        /* Блок сравнения с ФОТ */
        .fot-comparison-section {
            background-color: #ffffff;
            padding: 80px 0;
        }
        .fot-card {
            border-radius: 16px;
            padding: 2rem;
            height: 100%;
            transition: all 0.3s ease;
        }
        .fot-card.team {
            background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
            border: 2px solid #fecaca;
        }
        .fot-card.refiner {
            background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
            border: 2px solid #bbf7d0;
            box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
        }
        .fot-price {
            font-size: 2.5rem;
            font-weight: 800;
        }
        .fot-price.team { color: #dc2626; }
        .fot-price.refiner { color: var(--mp-accent-green); }

        /* Калькулятор тарифов */
        .tariff-calculator-section {
            background-color: var(--mp-bg-light);
            padding: 80px 0;
        }
        .tariff-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 2rem;
            box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
        }
        .tariff-toggle-btn {
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            background: #ffffff;
            color: var(--mp-text-muted);
            font-weight: 500;
            transition: all 0.2s ease;
        }
        .tariff-toggle-btn.active {
            background: var(--mp-primary);
            color: #fff;
            border-color: var(--mp-primary);
        }
        .tariff-toggle-btn:hover:not(.active) {
            background: #f1f5f9;
        }
        .module-checkbox {
            padding: 1rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .module-checkbox:hover {
            border-color: var(--mp-primary);
            background: rgba(37, 99, 235, 0.02);
        }
        .module-checkbox input:checked + .module-label {
            color: var(--mp-primary);
        }
        .final-price {
            font-size: 3rem;
            font-weight: 800;
            color: var(--mp-primary);
        }

        /* Блок команды */
        .team-section {
            background-color: #ffffff;
            padding: 80px 0;
        }
        .team-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 2rem;
            text-align: center;
            border: 1px solid #e2e8f0;
            transition: all 0.3s ease;
        }
        .team-card:hover {
            box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
            transform: translateY(-4px);
        }
        .team-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--mp-primary) 0%, var(--mp-primary-dark) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 2.5rem;
            font-weight: 800;
            color: #fff;
        }

        /* Футер */
        .mp-footer {
            background-color: var(--mp-dark);
            color: #fff;
            padding: 60px 0 30px 0;
        }
        .footer-logo {
            max-height: 40px;
        }
        .footer-link {
            color: #94a3b8;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .footer-link:hover {
            color: #fff;
        }
        .footer-form input {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: #fff;
        }
        .footer-form input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }
        .footer-form input:focus {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--mp-primary);
            color: #fff;
            box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.25);
        }
        .mp-footer .container .row {
            justify-content: space-between;
        }

        /* Badge стили */
        .badge-section-primary {
            background-color: rgba(105,108,255,0.08);
            color: var(--mp-primary);
            font-size: 0.75rem;
        }
        .badge-section-green {
            background-color: rgba(113,221,55,0.08);
            color: var(--mp-accent-green);
            font-size: 0.75rem;
        }
        .badge-section-red {
            background-color: rgba(255,62,29,0.08);
            color: #ff3e1d;
            font-size: 0.75rem;
        }

        /* Progress bar */
        .progress-sm {
            height: 6px;
        }

        /* Scroll padding для якорей */
        html {
            scroll-padding-top: 80px;
        }

        /* Исправление контрастности в calc-result-box */
        .calc-result-row {
            color: #fff;
        }
        .calc-result-row .text-muted {
            color: rgba(255, 255, 255, 0.7) !important;
        }

        .calc-mp-toggle .btn-mp-toggle {
            border: 1px solid var(--brand-dark, #121A2F);
            background: transparent;
            color: var(--brand-dark, #121A2F);
            font-weight: 600;
            padding: 8px 28px;
        }
        .calc-mp-toggle .btn-mp-toggle.active {
            background: var(--brand-dark, #121A2F);
            color: #fff;
        }

        /* Исправление контрастности в футере */
        .mp-footer .form-check-label {
            color: rgba(255, 255, 255, 0.8);
        }
        .mp-footer .text-muted {
            color: rgba(255, 255, 255, 0.6) !important;
        }

        /* KPI виджеты как в Portal */
        .kpi-mini {
            padding: 0.7rem;
            border-radius: 0.5rem;
            background: #fff;
            border-left: 4px solid transparent;
            box-shadow: 0 2px 4px rgba(161, 172, 184, 0.1);
            height: 100%;
        }
        .kpi-title {
            font-size: 0.65rem;
            text-transform: uppercase;
            color: #a1acb8;
            margin-bottom: 0.2rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .kpi-value {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0;
        }

        /* Переключатель режимов калькулятора */
        .calc-mode-toggle {
            display: flex;
            gap: 12px;
            background: #ffffff;
            padding: 8px;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        }
        .calc-mode-btn {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 12px 20px;
            border: none;
            background: transparent;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: var(--mp-text-muted);
        }
        .calc-mode-btn i {
            font-size: 1.5rem;
            margin-bottom: 4px;
        }
        .calc-mode-btn span {
            font-weight: 600;
            font-size: 0.9rem;
        }
        .calc-mode-btn small {
            font-size: 0.75rem;
            color: var(--mp-text-muted);
            font-weight: 400;
        }
        .calc-mode-btn:hover {
            background: rgba(37, 99, 235, 0.04);
            color: var(--mp-dark);
        }
        .calc-mode-btn.active {
            background: var(--mp-primary);
            color: #fff;
            box-shadow: 0 2px 8px rgba(105, 108, 255, 0.3);
        }
        .calc-mode-btn.active small {
            color: rgba(255, 255, 255, 0.8);
        }

        /* Улучшенная визуализация результатов */
        .calc-main-result {
            text-align: center;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        .calc-net-profit-large {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--mp-accent-green);
            line-height: 1;
        }
        .calc-distribution {
            padding: 1rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }
        .calc-progress-bar {
            display: flex;
            height: 20px;
            border-radius: 10px;
            overflow: hidden;
            background: rgba(0, 0, 0, 0.2);
        }
        .calc-progress-segment {
            height: 100%;
            transition: width 0.3s ease;
        }
        .calc-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            font-size: 0.75rem;
        }
        .calc-legend-item {
            display: flex;
            align-items: center;
            gap: 4px;
            color: rgba(255, 255, 255, 0.8);
        }
        .calc-legend-color {
            width: 8px;
            height: 8px;
            border-radius: 2px;
        }

        /* Кнопки действий калькулятора */
        .calc-actions {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
            padding-bottom: 1rem;
            border-bottom: 1px solid #e2e8f0;
        }
        .calc-action-btn {
            width: 36px;
            height: 36px;
            border: 1px solid #e2e8f0;
            background: #ffffff;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--mp-text-muted);
            font-size: 1.2rem;
        }
        .calc-action-btn:hover {
            background: var(--mp-primary);
            color: #fff;
            border-color: var(--mp-primary);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(105, 108, 255, 0.2);
        }