/* Основные стили */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* Шапка */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.header__title {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header__subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.header__nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav__link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.nav__link:hover {
    background: rgba(255,255,255,0.2);
}

/* Секции */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: var(--light-bg);
}

.section__title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* Обо мне */
.about__content {
    max-width: 800px;
    margin: 0 auto;
}

.about__text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: justify;
}

/* Опыт работы */
.experience__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience__timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--secondary-color);
}

.timeline__item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline__date {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.timeline__title {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline__company {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

.timeline__description {
    line-height: 1.5;
}

/* Навыки */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill__item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.skill__title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.skill__description {
    color: #666;
    line-height: 1.5;
}

/* Образование */
.education__list {
    max-width: 600px;
    margin: 0 auto;
}

.education__item {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
}

.education__title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.education__degree {
    color: #666;
    margin-bottom: 5px;
}

.education__year {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Контакты */
.contacts__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contacts__item {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contacts__message {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    font-style: italic;
}

/* Футер */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header__title {
        font-size: 2.2rem;
    }
    
    .header__subtitle {
        font-size: 1.1rem;
    }
    
    .header__nav {
        gap: 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section__title {
        font-size: 1.8rem;
    }
    
    .experience__timeline::before {
        left: 15px;
    }
    
    .timeline__item {
        padding-left: 45px;
    }
}