/* ========================================
   FinModel — Base Styles (Light Theme)
   ======================================== */

:root {
    --bg: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --surface: #FFFFFF;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --text: #334155;
    --text-secondary: #64748B;
    --muted: #94A3B8;
    --accent: #056892;
    --accent-hover: #056892dd;
    --accent-light: #eff1ff;
    --red: #EF4444;
    --red-light: #FEF2F2;
    --green: #10B981;
    --green-light: #ECFDF5;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

/* Typography */
h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    color: #0F172A;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #0F172A;
    margin-bottom: 16px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 8px;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

/* Section labels */
.section-label {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-header {
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: #CBD5E1;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Navigation */
nav {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 18px;
    color: #0F172A;
    text-decoration: none;
}

.logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0F172A;
}

/* Hero */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.hero-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 650px;
    margin: 20px auto 36px;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Canvas / Schema */
.hero-visual,
.model-schema {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.schema-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #1E293B;
    text-align: center;
    white-space: nowrap;
}

.schema-arrow {
    color: #94A3B8;
    font-size: 20px;
    font-weight: 300;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Segments Grid */
.segments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.segment-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.segment-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.segment-tag {
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    margin-bottom: 16px;
}

.segment-card p {
    margin: 12px 0 24px;
    font-size: 15px;
    color: var(--text-secondary);
}

/* Pain Grid */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.pain-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    gap: 14px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.pain-card:hover {
    border-color: #CBD5E1;
    box-shadow: var(--shadow-md);
}

.pain-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.pain-card p {
    font-size: 15px;
    margin-top: 4px;
    color: var(--text-secondary);
}

/* Solution Table */
.solution-table {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 32px;
    box-shadow: var(--shadow-sm);
}

.sol-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    align-items: start;
}

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

.sol-header {
    background: #F8FAFC;
    font-weight: 600;
    color: #0F172A;
    font-size: 14px;
}

.sol-row div {
    font-size: 14px;
}

.sol-row .pain-col {
    color: var(--red);
    font-weight: 500;
}

.sol-row .result-col {
    color: var(--green);
    font-weight: 500;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
}

.comp-row {
    display: grid;
    grid-template-columns: 40px 1fr 40px 1fr;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

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

.comp-header {
    background: #F8FAFC;
    font-weight: 600;
    color: #0F172A;
}

.comp-bad {
    color: var(--red);
}

.comp-good {
    color: var(--green);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.metric-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.metric-label {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 8px;
}

.metric-change {
    font-size: 18px;
}

.metric-old {
    color: var(--red);
    text-decoration: line-through;
}

.metric-new {
    color: var(--green);
    font-weight: 600;
    font-size: 20px;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.result-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.result-card:hover {
    border-color: #CBD5E1;
    box-shadow: var(--shadow-md);
}

.result-before {
    color: var(--red);
    text-decoration: line-through;
    font-size: 15px;
}

.result-arrow {
    color: var(--muted);
    margin: 8px 0;
    font-size: 20px;
}

.result-after {
    color: var(--green);
    font-weight: 600;
    font-size: 16px;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 32px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 auto 20px;
}

.step-card p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Integrations Bar */
.integrations-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.integration-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 150px;
    font-weight: 500;
    display: flex;
    font-size: 18px;
    color: #666;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    align-items: center;
    justify-content: center;}

.integration-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

/* CTA Block */
.cta {
    background: var(--accent-light);
    border: 1px solid #BFDBFE;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin-top: 60px;
}

.cta h2 {
    margin-bottom: 12px;
}

.cta p {
    margin-bottom: 28px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* Backgrounds */
.bg-surface {
    background: var(--bg-secondary);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    background: var(--bg-secondary);
}

.footer-brand {
    color: #0F172A;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-links {
    margin-top: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #0F172A;
}

.footer-copy {
    margin-top: 24px;
}

.sv1{
    display: none;
}
.hide{
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .sv1{
	display: block;
    }
    .s1{
        display: none;
    }
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    section {
        padding: 48px 0;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .features-grid,
    .segments-grid,
    .steps-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }

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

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

    .sol-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .comp-row {
        grid-template-columns: 1fr 1fr;
        font-size: 14px;
    }

    .hero-visual,
    .model-schema {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        display: none;
    }

    .integrations-bar {
        gap: 16px;
    }

    .cta {
        padding: 40px 20px;
    }
}

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(3px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease, visibility 0.25s;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Само модальное окно */
        .modal {
            background: #ffffff;
            max-width: 460px;
            width: 90%;
            border-radius: 32px;
            box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
            padding: 32px 28px;
            transform: scale(0.95);
            transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        }

        .modal-overlay.active .modal {
            transform: scale(1);
        }

        /* Заголовок */
        .modal h2 {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: #1e2b3c;
        }

        .modal .sub {
            color: #5b6f82;
            margin-bottom: 28px;
            border-left: 3px solid #3b82f6;
            padding-left: 12px;
            font-size: 0.9rem;
        }

        /* Группы полей */
        .input-group {
            margin-bottom: 22px;
        }

        .input-group label {
            display: block;
            font-weight: 600;
            margin-bottom: 8px;
            color: #1e293b;
            font-size: 0.9rem;
        }

        .input-group input {
            width: 100%;
            padding: 14px 16px;
            font-size: 1rem;
            border: 1.5px solid #e2e8f0;
            border-radius: 20px;
            outline: none;
            transition: all 0.2s;
            background: #fefefe;
        }

        .input-group input:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
        }

        /* Кнопки */
        .button-group {
            display: flex;
            gap: 14px;
            margin-top: 28px;
        }

        .submit-btn {
            background: #1e2b3c;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 40px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            flex: 2;
            transition: background 0.2s;
        }

        .submit-btn:hover {
            background: #0f1e2c;
        }

        .cancel-btn {
            background: #f1f5f9;
            border: none;
            padding: 12px 20px;
            border-radius: 40px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            flex: 1;
            color: #334155;
            transition: background 0.2s;
        }

        .cancel-btn:hover {
            background: #e2e8f0;
        }

        /* сообщение об успехе/ошибке */
        .message-status {
            margin-top: 20px;
            font-size: 0.85rem;
            text-align: center;
            padding: 8px;
            border-radius: 30px;
            background: #f8fafc;
        }

        .error-msg {
            color: #dc2626;
            background: #fee2e2;
        }

        .success-msg {
            color: #15803d;
            background: #dcfce7;
        }

        /* крестик сверху */
        .close-icon {
            position: absolute;
            top: 20px;
            right: 24px;
            font-size: 28px;
            cursor: pointer;
            color: #94a3b8;
            transition: color 0.2s;
        }

        .close-icon:hover {
            color: #1e293b;
        }

        .modal {
            position: relative;
        }
