:root {
    --primary: #c41e3a;
    --primary-dark: #9a1830;
    --secondary: #4a4a4a;
    --bg: #f5f5f5;
    --card-bg: #ffffff;
    --border: #ddd;
    --text: #222;
    --text-muted: #666;
    --success: #28a745;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* {
    box-sizing: border-box;
}

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

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

/* ── Шапка ─────────────────────────────────────────────────── */

.home-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.home-header .container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.header-brand h1 {
    margin: 0;
    font-size: 22px;
    color: var(--primary);
    line-height: 1.2;
}

.header-brand p {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.header-contacts {
    font-size: 14px;
    color: var(--text-muted);
    text-align: right;
}

.header-contacts a {
    color: var(--primary);
    font-weight: 500;
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 72px 24px;
    text-align: center;
}

.hero h2 {
    margin: 0 0 16px;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
}

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

.hero p {
    margin: 0 auto 36px;
    font-size: 18px;
    max-width: 680px;
    color: #d0d0d0;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

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

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

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    border-color: white;
}

/* ── Секции ────────────────────────────────────────────────── */

.section {
    padding: 60px 24px;
}

.section:nth-child(even) {
    background: var(--card-bg);
}

.section-title {
    text-align: center;
    margin: 0 0 40px;
    font-size: 28px;
    color: var(--text);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Преимущества ──────────────────────────────────────────── */

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

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

.benefit-card:hover {
    transform: translateY(-4px);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: rgba(196, 30, 58, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.benefit-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.benefit-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

/* ── Как это работает ──────────────────────────────────────── */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.step-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow);
}

.step-card::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    border: 3px solid var(--bg);
}

.step-card h3 {
    margin: 12px 0 10px;
    font-size: 17px;
}

.step-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* ── Вход для ролей ────────────────────────────────────────── */

.roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.role-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, border-color 0.2s;
}

.role-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.role-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.role-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.role-card p {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 14px;
    min-height: 42px;
}

.role-card .btn {
    width: 100%;
}

/* ── Подвал ────────────────────────────────────────────────── */

.footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 32px 24px;
    text-align: center;
    font-size: 14px;
}

.footer p {
    margin: 6px 0;
}

.footer a {
    color: #fff;
}

/* ── Адаптив ───────────────────────────────────────────────── */

@media (max-width: 768px) {
    .home-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-contacts {
        text-align: left;
        font-size: 13px;
    }

    .hero {
        padding: 48px 20px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 44px 20px;
    }

    .section-title {
        font-size: 24px;
    }
}
