body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.main-content {
    display: flex;
    flex-direction: column;
}

.header {
    background-color: #003366;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: flex-start; /* Выравнивание по левому краю */
    align-items: center;         /* Вертикальное центрирование */
}

.header-content {
    display: flex;
    align-items: center; /* Выравнивание по вертикали */
    gap: 20px; /* Расстояние между фото и текстом */
    max-width: 900px;
    margin: 0; /* Убираем центрирование */
}

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

.photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.info h1 {
    margin: 0;
    font-size: 2em;
}
/* styles.css | file:///home/igor/projects/html/cv/styles.css */

.content-wrapper {
    display: flex;
    max-width: 1200px;
    margin-left: 5px;
    gap: 20px;
    padding: 0 20px;
}

.sidebar {
    width: 250px;
    background-color: #003366;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    /* НЕТ фиксации! */
    position: sticky;
    align-self: flex-start;
}

.sidebar h3 {
    margin-top: 0;
    color: #ffd700;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #336699;
}

.sidebar a:hover {
    background-color: #336699;
    border-radius: 4px;
}

.container {
    max-width: 900px;
    flex: 1;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.section {
    margin-bottom: 30px;
}

.section h2 {
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 5px;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}
