/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

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

section {
    padding: 40px 0;
}

h2 {
    font-size: 1.8rem;
    color: #241a1b;
    margin-bottom: 25px;
    text-align: center;
}

/* Шапка */
header {
    background: linear-gradient(135deg, #504046, #49262c);
    color: white;
    text-align: center;
    padding: 50px 0;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Обо мне */
.about-section {
    background: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.photo-container {
    flex-shrink: 0;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #43353a;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 12px;
    color: #555;
}

.university {
    font-weight: bold;
    color: #49262c;
}

/* Мои навыки */
.skills-section {
    background: #f8f9fa;
}

.skills-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.skill-category h3 {
    color: #49262c;
    margin-bottom: 15px;
    font-size: 1.2rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 8px 0;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Портфолио */
.portfolio-section {
    background: white;
}

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

.portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.portfolio-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.portfolio-item p {
    padding: 12px;
    text-align: center;
    color: #49262c;
    margin: 0;
}

/* Футер */
footer {
    background: #300f17;
    color: white;
    text-align: center;
    padding: 25px 0;
}

footer p {
    margin-bottom: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text h2 {
        text-align: center;
    }
    
    .profile-photo {
        width: 180px;
        height: 180px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 30px 0;
    }
    
    .skills-simple {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}