/* Общие стили */
body {
    /* Новый шрифт */
    font-family: 'Montserrat', sans-serif;
    
    /* Базовый цвет фона */
    background-color: #1a1a1a;
    
    /* Добавляем креативный паттерн (polka dots) поверх базового цвета:
       - radial-gradient(#fca311 2px, transparent 2px) создаёт маленькие круги диаметром 4px (2px радиус)
       - / 50px 50px задаёт шаг сетки (50px)
       - repeat повторяет узор по всей области. */
    background-image: radial-gradient(#fca311 2px, transparent 2px);
    background-size: 50px 50px;
    
    /* Цвет текста и отступы */
    color: #f5f5f5;
    margin: 0;
    padding: 0;
    
    /* Плавный переход при hover/transition */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Стили для заголовка (header) */
.page-header {
    /* Градиентный фон */
    background: linear-gradient(45deg, #fca311, #e85d04);
    color: #fff;
    padding: 40px 0;
}

.header-container {
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Фотографию оставляем такой же, как в исходном коде, но с небольшими тенью и скруглениями */
.header-photo {
    width: 200px;
    height: 260px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 15px;
    border: 4px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.header-text h1, .header-text h2, .header-text h3 {
    margin: 10px 0;
}

/* Стили заголовков */
.header-text h1 {
    font-size: 2.8em;
    font-weight: 700;
    text-shadow: 1px 1px 2px #000;
}

.header-text h2 {
    font-size: 2em;
    font-weight: 600;
}

.header-text h3 {
    font-size: 1.2em;
    font-weight: 500;
    color: #ffd166;
}

/* Ссылки в шапке */
.header-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 10px;
}

.header-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.header-links a:hover {
    color: #ffd166;
}

/* Переключатель языка */
.language-switcher a {
    color: #264653;
    text-decoration: none;
    margin: 0 5px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.language-switcher a:hover {
    background-color: #e8e8e8;
}

/* Навигационное меню */
.main-navigation {
    background-color: #2c2c2c;
    text-align: center;
    padding: 15px 0;
}

.main-navigation a {
    color: #ffd166;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.15em;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.main-navigation a:hover {
    color: #fff;
    text-shadow: 0 0 5px #ffd166;
}

/* Стили для всплывающего окна фото */
.photo-popup {
    display: none; /* по умолчанию скрыто */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.photo-popup-content {
    position: relative;
}

.photo-popup-content img {
    width: 380px;
    height: 500px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.photo-popup-content img:hover {
    transform: scale(1.05);
}

/* Кнопка закрытия */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffd166;
    color: #000;
    border: none;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

.close-button:hover {
    background-color: #e8c055;
}

/* Стили для футера */
footer {
    background-color: #2c2c2c;
    color: #f5f5f5;
    text-align: center;
    padding: 20px 0;
}

footer nav a {
    color: #ffd166;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer nav a:hover {
    color: #fff;
}

footer p {
    margin-top: 10px;
    font-size: 0.9em;
    color: #aaa;
}

/* Стили для резюме */
.resume-table {
    width: 90%;
    margin: 30px auto;
    border-collapse: collapse;
    background-color: #2c2c2c;
    color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.resume-table th, .resume-table td {
    border: 1px solid #3d3d3d;
    padding: 15px 20px;
    text-align: left;
}

.resume-table th {
    background-color: #fca311;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.resume-table tr:nth-child(even) {
    background-color: #242424;
}

.resume-table tr:hover {
    background-color: #3d3d3d;
    cursor: default;
}

/* Стили для контейнера содержимого */
.content-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    
    /* Тёмный фон в стиле остального сайта */
    background-color: #2c2c2c;
    
    /* Скругление и более выраженная тень */
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    
    /* Текст и шрифт в том же стиле, что и на всём сайте */
    color: #f5f5f5;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    text-align: justify; /* Выравнивание текста по ширине */
    
    /* Плавные переходы на всякий случай */
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* Стили для link-section */
.link-section {
    display: flex;
    flex-direction: column;
    gap: 20px; /* чуть больше расстояние между элементами */
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    
    /* Дополняем общий тёмный стиль, можно сделать чуть темнее/светлее,
       чтобы визуально отличать от других блоков */
    background-color: #242424;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    
    color: #f5f5f5;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Текст в link-section */
.link-section p {
    margin: 0;
    font-size: 1em;
    color: #f5f5f5;
    line-height: 1.5;
}

/* Ссылки в link-section */
.link-section a {
    /* Цвет ссылок в том же стиле, что и на остальном сайте (яркий акцент) */
    color: #ffd166;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.link-section a:hover {
    color: #fff;
    text-decoration: underline;
    text-shadow: 0 0 4px #ffd166;
}

/* Выделение текста жирным */
.link-section strong {
    color: #fca311;
    font-weight: 700;
}
table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }
        table, th, td {
            border: 1px solid black;
        }
        th, td {
            padding: 8px;
            text-align: center;
        }
        .formula {
            text-align: center;
            font-style: italic;
            margin: 15px 0;
        }
