﻿/* ---------- Базовые стили ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
    text-align: center;
}

.btn-primary {
    background: #0066cc;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.30);
}

    .btn-primary:hover {
        background: #0052a3;
        box-shadow: 0 6px 20px rgba(0, 102, 204, 0.40);
        transform: translateY(-2px);
    }

.btn-outline {
    background: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

    .btn-outline:hover {
        background: #0066cc;
        color: #fff;
    }

.btn-white {
    background: #fff;
    color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

    .btn-white:hover {
        background: #f0f4ff;
        transform: translateY(-2px);
    }

/* ---------- Шапка ---------- */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e9edf2;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.92);
}

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

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: #0b2b4a;
}

    .logo span {
        color: #0066cc;
    }

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

    .nav a {
        font-weight: 600;
        color: #334155;
        transition: color 0.2s;
        font-size: 0.95rem;
    }

        .nav a:hover {
            color: #0066cc;
        }

    .nav .btn {
        font-weight: 600;
        padding: 8px 20px;
        font-size: 0.95rem;
    }

/* ---------- Выпадающее меню "Дашборды" ---------- */
.dropdown {
    position: relative;
}

    .dropdown .dropbtn {
        font-weight: 500;
        color: #334155;
        transition: color 0.2s;
        font-size: 0.95rem;
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 0;
    }

        .dropdown .dropbtn:hover {
            color: #0066cc;
        }

        .dropdown .dropbtn i {
            font-size: 0.7rem;
            margin-left: 2px;
        }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
    border-radius: 16px;
    padding: 8px 0;
    z-index: 200;
    border: 1px solid #eef2f6;
}

    .dropdown-content a {
        display: block;
        padding: 10px 24px;
        color: #1e293b;
        font-weight: 400;
        font-size: 0.9rem;
        transition: background 0.2s, color 0.2s;
    }

        .dropdown-content a:hover {
            background: #f0f7ff;
            color: #0066cc;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin-top: 8px;
        border-radius: 0;
        display: none;
    }

        .dropdown-content a {
            padding: 8px 16px;
            color: #334155;
        }

            .dropdown-content a:hover {
                background: #f0f7ff;
            }

    .dropdown.open .dropdown-content {
        display: block;
    }

    .nav {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

        .nav .dropdown .dropbtn {
            width: 100%;
            justify-content: space-between;
        }

        .nav .btn {
            align-self: center;
        }
}

/* ---------- Hero ---------- */
.hero {
    padding: 60px 0 60px;
    background: linear-gradient(145deg, #f0f7ff 0%, #ffffff 70%);
    text-align: center;
}

    .hero h1 {
        font-size: 2.2rem;
        font-weight: 700;
        letter-spacing: -0.03em;
        line-height: 1.2;
        max-width: 800px;
        margin: 0 auto 16px;
        color: #0b2b4a;
    }

        .hero h1 span {
            color: #0066cc;
        }

    .hero p {
        font-size: 1.25rem;
        color: #475569;
        max-width: 640px;
        margin: 0 auto 32px;
    }


/* ---------- Карусель ---------- */
.slider-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    background: #fff;
    border: 1px solid #eef2f6;
}

.slider-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slide {
    flex: 0 0 100%;    
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

    .slide a {
        display: block;
        width: 100%;
    }

    .slide img {
        width: 100%;
        object-fit: cover;
        display: block;
        transition: opacity 0.2s;
    }

    .slide a:hover img {
        opacity: 0.85;
    }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

    .slider-dots button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: none;
        background: #cbd5e1;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
        padding: 0;
    }

        .slider-dots button.active {
            background: #0066cc;
            transform: scale(1.2);
        }

        .slider-dots button:hover {
            background: #0066cc;
            opacity: 0.7;
        }

/* ---------- Секция "Почему мы" ---------- */
.section {
    padding: 72px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #0b2b4a;
}

.section-sub {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 48px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.card {
    background: #fff;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s, transform 0.2s;
    text-align: center;
    border: 1px solid #f0f3f7;
}

    .card:hover {
        box-shadow: 0 16px 48px rgba(0, 102, 204, 0.08);
        transform: translateY(-4px);
    }

    .card i {
        font-size: 2.6rem;
        color: #0066cc;
        margin-bottom: 16px;
        background: #eaf1fe;
        padding: 16px;
        border-radius: 16px;
    }

    .card h3 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .card p {
        color: #64748b;
        font-size: 0.95rem;
    }

/* ---------- Секция с дашбордами (увеличены в 2 раза) ---------- */
.dashboard-section {
    background: #ffffff;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.dashboard-item {
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
    transition: box-shadow 0.3s, transform 0.2s;
}

    .dashboard-item:hover {
        box-shadow: 0 12px 40px rgba(0, 102, 204, 0.10);
        transform: translateY(-4px);
    }

    .dashboard-item .img-link {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 6;
        background: linear-gradient(145deg, #e9edf2, #dbe0e8);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        font-size: 1rem;
        font-weight: 500;
        flex-direction: column;
        gap: 8px;
        transition: opacity 0.2s;
        cursor: pointer;
    }

        .dashboard-item .img-link:hover {
            opacity: 0.85;
        }

        .dashboard-item .img-link i {
            font-size: 3.6rem;
            color: #b9c7da;
        }

        .dashboard-item .img-link img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

    .dashboard-item .desc {
        padding: 24px 28px 28px;
    }

        .dashboard-item .desc h4 {
            font-weight: 600;
            font-size: 1.2rem;
            margin-bottom: 6px;
        }

        .dashboard-item .desc p {
            color: #64748b;
            font-size: 0.95rem;
        }

/* ---------- Этапы работы ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    counter-reset: step;
    margin-top: 16px;
}

.step {
    text-align: center;
    position: relative;
    padding-top: 40px;
}

    .step::before {
        counter-increment: step;
        content: counter(step);
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 44px;
        background: #0066cc;
        color: #fff;
        font-weight: 700;
        font-size: 1.2rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .step h4 {
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 4px;
        margin-top: 8px;
    }

    .step p {
        color: #64748b;
        font-size: 0.9rem;
    }

/* ---------- CTA ---------- */
.cta-section {
    background: #0066cc;
    color: #fff;
    text-align: center;
    padding: 72px 0;
    border-radius: 0;
}

    .cta-section h2 {
        font-size: 2.4rem;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .cta-section p {
        font-size: 1.15rem;
        opacity: 0.9;
        max-width: 560px;
        margin: 0 auto 32px;
    }

    .cta-section .btn-white {
        font-size: 1.05rem;
        padding: 14px 44px;
    }

/* ---------- Подвал ---------- */
.footer {
    background: #0b2b4a;
    color: #cbd5e1;
    padding: 48px 0 32px;
}

    .footer .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 32px;
    }

    .footer .col {
        flex: 1 1 180px;
    }

        .footer .col h5 {
            color: #fff;
            font-weight: 600;
            margin-bottom: 12px;
            font-size: 1rem;
        }

        .footer .col a {
            display: block;
            color: #cbd5e1;
            font-size: 0.9rem;
            margin-bottom: 6px;
            transition: color 0.2s;
        }

            .footer .col a:hover {
                color: #fff;
            }

    .footer .copy {
        text-align: center;
        border-top: 1px solid #1f3a57;
        padding-top: 24px;
        margin-top: 32px;
        font-size: 0.85rem;
        color: #94a3b8;
        width: 100%;
    }

/* ---------- Адаптивность ---------- */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .slider-wrapper {
        border-radius: 16px;
    }
}
