/* Основной контейнер партнеров */
.partners-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Секции партнеров */
.partners-section {
    margin-bottom: 60px;
}

.partners-section:last-child {
    margin-bottom: 0;
}

/* Заголовки секций */
.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--theme-color, #1e3a8a);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Сетка партнеров */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Карточка партнера */
.partner-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px 25px 10px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.partner-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Ссылка партнера */
.partner-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.partner-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Логотип партнера */
.partner-logo {
    width: 250px;
    height: 160px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #f8fafc; */
    /* border-radius: 12px; */
    /* border: 2px solid #e2e8f0; */
}

.partner-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Информация о партнере */
.partner-info {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-name {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.partner-description {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Специальные стили для учредителей */
.partners-section:first-child .partner-item {
    border: 2px solid var(--theme-color, #1e3a8a);
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%);
}

.partners-section:first-child .partner-logo {
    border-color: var(--theme-color, #1e3a8a);
    /* background: white; */
}

.partners-section:first-child .partner-logo img {
    filter: grayscale(0%);
}

/* Адаптивность */
@media (max-width: 768px) {
    .partners-content {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .partner-item {
        padding: 20px;
    }

    .partner-logo {
        width: 150px;
        height: 100px;
    }

    .partner-logo img {
        max-width: 140px;
        max-height: 90px;
    }

    .partner-name {
        font-size: 18px;
    }

    .partner-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .partners-content {
        padding: 15px 10px;
    }

    .section-title {
        font-size: 22px;
    }

    .partner-item {
        padding: 15px;
    }

    .partner-logo {
        margin-bottom: 15px;
    }

}