* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5; /* Серый фон для всего сайта */
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 50px; /* Увеличил отступ снизу */
    flex-wrap: wrap;
}

.photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 30px;
    border: 3px solid #4a6fa5;
}

.title {
    font-size: 24px;
    font-weight: bold;
    color: #4a6fa5;
    margin-bottom: 20px; /* Добавил отступ снизу */
}

.portfolio-container {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Увеличил расстояние между блоками */
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white; /* Белый фон для блоков */
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Более темная тень */
}

.preview {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    cursor: pointer;
}

.item-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #4a6fa5;
}

.download-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4a6fa5;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.download-link:hover {
    background-color: #3a5a80;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .photo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .portfolio-item {
        padding: 15px;
    }
}