
.marketalpha-section {
    padding-bottom: 80px;
    font-family: var(--font-family-base);
}

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

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #252525;
    margin-bottom: 50px;
    line-height: 1.3;
}

.comparison-grid {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--color-primary-dark);
    overflow: hidden;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--color-primary);
    color: white;
    padding: 25px 30px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
}

.header-criterion {
    font-weight: 700;
    text-align: left;
}

.header-company {
    text-align: center;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 25px 30px;
    border-bottom: 1px solid #e8e8e8;
    align-items: center;
    min-height: 70px;
}

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

.criterion {
    font-weight: 500;
    color: #2c3e50;
    font-size: 16px;
}

.company {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    height: 100%;
}

.our-company {
    color: var(--color-primary);
}

.other-company {
    color: #8f8f8f;
}

.checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
}

.cross {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #919191;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    .marketalpha-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .comparison-header {
        padding: 20px;
        font-size: 14px;
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .comparison-row {
        padding: 20px;
        grid-template-columns: 1fr 1fr 1fr;
        min-height: 60px;
        text-align: center;
    }
    
    .criterion {
        font-size: 14px;
        text-align: left;
    }
    
    .company {
        font-size: 14px;
    }
    
    .checkmark,
    .cross {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

@media screen and (max-width: 600px) {
    .comparison-header {
        padding: 15px;
        font-size: 12px;
    }
    
    .comparison-row {
        padding: 15px;
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: left;
    }
    
    .criterion {
        font-size: 16px;
        font-weight: 600;
        padding-bottom: 10px;
        border-bottom: 1px solid #e8e8e8;
        text-align: center;
        margin-bottom: 10px;
    }
    
    /* Создаем карточки для каждой компании */
    .company {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
    }
    
    .our-company {
        background: #f0f8ff;
        border: 1px solid var(--color-primary);
        color: var(--color-primary);
    }
    
    .other-company {
        background: #f5f5f5;
        border: 1px solid #ddd;
        color: #666;
    }
    
    .our-company::before {
        content: "AiAuto";
        font-weight: 600;
    }
    
    .other-company::before {
        content: "Другие";
        font-weight: 600;
    }
    
    .checkmark,
    .cross {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-left: auto;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
    
    .comparison-header {
        display: none; /* Скрываем заголовок на мобильных */
    }
    
    .comparison-row {
        padding: 20px 15px;
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
        border-bottom: 1px solid #e8e8e8;
    }
    
    .comparison-row:last-child {
        border-bottom: none;
    }
    
    .criterion {
        font-size: 18px;
        font-weight: 600;
        padding-bottom: 15px;
        border-bottom: 1px solid #e8e8e8;
        text-align: center;
        margin-bottom: 15px;
    }
    
    /* Создаем карточки для каждой компании */
    .company {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 500;
    }
    
    .our-company {
        background: #f0f8ff;
        border: 2px solid var(--color-primary);
        color: var(--color-primary);
    }
    
    .other-company {
        background: #f5f5f5;
        border: 2px solid #ddd;
        color: #666;
    }
    
    .company::before {
        content: attr(data-company);
        font-weight: 600;
    }
    
    .our-company::before {
        content: "AiAuto";
    }
    
    .other-company::before {
        content: "Другие";
    }
    
    .checkmark,
    .cross {
        width: 28px;
        height: 28px;
        font-size: 16px;
        margin-left: auto;
    }
}