/* БЛОК ПРОЕКТОВ - ОБЕРТКА С ФОНОМ НА ВСЮ ШИРИНУ */
.projects-section {
    background-color: #f8f9fa;
    padding: 40px 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

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

.projects-header {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* === ИЗМЕНЕНА СЕТКА - ТЕПЕРЬ FLEX ДЛЯ РАВНОЙ ВЫСОТЫ === */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
    align-items: stretch; /* Растягивает все элементы по высоте */
}

/* === ССЫЛКА-ОБЕРТКА НА ВСЮ ВЫСОТУ ЯЧЕЙКИ === */
.project-card-link {
    display: flex;
    flex: 0 0 calc(33.333% - 17px); /* 3 карточки в ряд с учетом gap */
    max-width: calc(33.333% - 17px);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.project-card-link:hover {
    transform: translateY(-2px);
}

.project-card-link:hover .project-card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* === КАРТОЧКА НА ВСЮ ВЫСОТУ === */
.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%; /* Растягиваем на всю высоту родителя */
    display: flex;
    flex-direction: column; /* Вертикальное распределение контента */
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 180px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0; /* Фиксированная высота изображения */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === КОНТЕНТ РАСТЯГИВАЕТСЯ === */
.project-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Занимает все свободное место */
}

.project-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.project-badge-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #0D96F7;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.project-badge-text {
    line-height: 16px;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #282828;
    flex-shrink: 0;
}

.project-description {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 400;
    flex-grow: 1; 
    line-height: 1.6;
}

.project-funding {
    font-size: 32px;
    color: #282828;
    margin-bottom: 10px;
    line-height: 130%;
    flex-shrink: 0;
}

.project-status {
    font-size: 16px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.project-investors {
    font-size: 16px;
    color: #282828;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: auto; /* Прижимает блок к низу карточки */
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.project-more-text {
    display: inline-block;
    vertical-align: middle;
}

.project-more-icon {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.project-card-link:hover .project-more-icon {
    transform: translateX(4px);
}

.more-projects-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 20px;
    background: #0D96F7;
    color: white;
    text-align: center;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    width: fit-content;
}

.more-projects-btn:hover {
    background: #0a7dd6;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 992px) {
    .projects-header {
        font-size: 24px;
    }
    
    .project-funding {
        font-size: 28px;
    }
    
    .project-card-link {
        flex: 0 0 calc(50% - 13px); /* 2 карточки в ряд */
        max-width: calc(50% - 13px);
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 40px 0;
    }
    
    .projects-header {
        font-size: 22px;
    }
    
    .project-card-link {
        flex: 0 0 100%; /* 1 карточка в ряд */
        max-width: 100%;
    }
    
    .project-funding {
        font-size: 24px;
    }
    
    .more-projects-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 30px 0;
    }
    
    .projects-header {
        font-size: 20px;
    }
    
    .project-title {
        font-size: 18px;
    }
    
    .project-funding {
        font-size: 22px;
    }
}