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

:root {
    --color-primary: #1a56db;
    --color-primary-dark: #1244b0;
    --color-accent: #0ea5e9;
    --color-bg: #ffffff;
    --color-bg-alt: #f1f5f9;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-green: #16a34a;
    --color-red: #dc2626;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text);
}

.logo span {
    color: var(--color-primary);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--color-primary);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 36px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-primary-dark);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section__title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section__desc {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.stats {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat__label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Models (outsourcing / outstaffing) */
.models-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.model-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.model-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.model-card__desc {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.model-card h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    margin-top: 20px;
    color: var(--color-text-muted);
}

.model-card ul {
    list-style: none;
    padding: 0;
}

.model-card ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 0.95rem;
}

.model-card ul li::before {
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 0.85rem;
}

.pros li::before {
    content: "+";
    color: var(--color-green);
}

.cons li::before {
    content: "−";
    color: var(--color-red);
}

.model-card__footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.tag {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Comparison table */
.comparison-table-wrap {
    margin-top: 48px;
}

.comparison-table-wrap h3,
.systems-compare h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.comparison-table thead {
    background: var(--color-primary);
    color: #fff;
}

.comparison-table th {
    font-weight: 600;
}

.comparison-table tbody tr:hover {
    background: #f8fafc;
}

/* Systems grid */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.system-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.system-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.system-card__icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.system-card h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.system-card__full {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.system-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.system-card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.system-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.system-card ul li {
    padding: 3px 0 3px 16px;
    position: relative;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.system-card ul li::before {
    content: "·";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--color-primary);
}

.system-card__target {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.systems-compare {
    margin-top: 48px;
}

/* Contacts */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.contact-info p:first-child {
    font-size: 1.15rem;
    color: var(--color-text);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-bg);
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Footer */
.footer {
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }

    .nav.open {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .about-grid,
    .models-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

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

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
    }

    .section {
        padding: 48px 0;
    }

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