* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    background-image: url('../images/fon.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
.site-header {
    color: white;
    padding: 20px 0;

}

.university-links {
    text-align: right;
    padding: 0 20px 20px 0;
    margin-bottom: 20px;
}

.university-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.university-links a:hover {
    color:  #3d2bbe;
}
/* ПРОФИЛЬ И АВАТАР */
.profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    padding: 20px 40px;
    margin: 0; /* Убираем auto */
    max-width: none;
}

.avatar-container {
    flex-shrink: 0;

}

.avatar-container img {
    border-radius: 15px;
    border: 4px solid #0042ff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    pointer-events: none;
}
.info {
    flex: 1;
    background: rgba(15, 18, 20, 0.8); /* Добавим фон*/
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(5px); /* Эффект размытия фона */
}

.info h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.info p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.avatar-header a {
    color: #0042ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info a:hover {
    color: #3d2bbe;
}
a{
    text-decoration: none;
    color:white;
}
.topic {
    font-weight: bold;
    font-size: 1.2em !important;
    color: #f1c40f !important;
}

.supervisor {
    font-style: italic;
    color: #bdc3c7 !important;
}

/*НАВИГАЦИЯ*/
.navigation {
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
    background: rgba(15, 18, 20, 0.8); /* Добавим фон*/
    border-radius: 10px;
    backdrop-filter: blur(5px); /* Эффект размытия фона */
}

.nav-button {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
.nav-button:hover {
    color: #3d2bbe;
    user-select: none;
}
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.main-container h1 {
    color: #ffffff;
    margin: 20px 0;
    font-size: 2.2em;
}

.main-container hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    margin: 30px 0;
}

/*ЦЕНТРИРОВАННАЯ ТАБЛИЦА*/
#resume {
    width: 100%;
    border-collapse: collapse;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

#resume td {
    padding: 15px;
    border: 1px solid #0f1214;
    text-align: left;
    vertical-align: top;
}

#resume .c1 {
    background: #0f1214;
    font-weight: bold;
    width: 25%;
    color: #ffffff;
    text-align: center;
    font-size: 1.1em;
}

#resume .c2 {
    background: #0f1214;
    color: #ffffff;
    line-height: 1.6;

}

#resume .even {
    background: #0F1214FF;
}

#resume .odd {
    background: #F1214FF;
}

/* ===== СТИЛИ ДЛЯ СПИСКОВ В ТАБЛИЦЕ ===== */
#resume ol, #resume ul {
    margin: 10px 0;
    padding-left: 20px;
    text-align: left;
}

#resume li {
    margin-bottom: 8px;
    line-height: 1.5;
}

#resume a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

#resume a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* ===== КОНТЕЙНЕР ДЛЯ ТЕКСТА Индивидуального раздела ===== */
.main-container_individual {
    max-width: none;
    margin: 0 20px;
    padding: 20px;
    text-align: center;
}

/*text-container ТОЛЬКО ДЛЯ ИНДИВИДУАЛЬНОЙ СТРАНИЦЫ */
.main-container_individual .text-container {
    background: rgba(15, 18, 20, 0.9);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    box-sizing: border-box;
    max-width: none;
    color: white; /* Белый текст как на главной */
}

/* ЦВЕТА ЗАГОЛОВКОВ КАК НА ГЛАВНОЙ */
.main-container_individual .text-container h1 {
    color: white; /* Белый как на главной */
    margin: 25px 0 15px 0;
    text-align: center;
    font-size: 2.5em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.main-container_individual .text-container h2 {
    color: #3498db; /* Синий как на главной */
    font-size: 2em;
    margin: 25px 0 15px 0;
}

.main-container_individual .text-container h3 {
    color: #ffffff; /* Зеленый как на главной */
    font-size: 1.5em;
    margin: 25px 0 15px 0;
}

.main-container_individual .text-container p {
    color: white; /* Белый текст */
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: justify;
}

.main-container_individual .text-container ul,
.main-container_individual .text-container ol {
    color: white; /* Белый текст в списках */
    margin: 20px 0;
    padding-left: 30px;
}

.main-container_individual .text-container li {
    color: white; /* Белый текст в пунктах списка */
    margin-bottom: 10px;
    line-height: 1.6;
}
.main-container_individual h1 {
    color: white;
    margin: 20px 0;
    font-size: 2.2em;
    text-align: center;
}

.main-container_individual hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    margin: 30px 0;
}
/* ОБЩИЕ СТИЛИ ДЛЯ .text-container  */
.text-container {
    background: rgba(15, 18, 20, 0.9);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(87, 73, 73, 0.1);
    margin: 30px auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.text-container h1,
.text-container h2,
.text-container h3 {
    color: white;
    margin: 25px 0 15px 0;
    text-align: center;
}

.text-container h1 {
    font-size: 2.5em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.text-container h2 {
    font-size: 2em;
    color: #3498db;
}

.text-container h3 {
    font-size: 1.5em;
    color: #ffffff;
}

.text-container p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: justify;
}

.text-container ul,
.text-container ol {
    margin: 20px 0;
    padding-left: 30px;
}

.text-container li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.text-container a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-container a:hover {
    color: #3d2bbe;
    text-decoration: underline;
}

.text-container code {
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #2ecc71;
}
/* ===== КАРУСЕЛЬ С КАРТАМИ CS ===== */
.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: #000; /* Черный фон на случай если картинка не грузится */
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 400px; /* Фиксированная высота */
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Важно! Картинка заполнит весь слайд */
    display: block;
}

/* Стили для стрелок */
.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: #000;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 400px;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Стили для стрелок */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #0f1214;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #0f1214;
    border-color: #0f1214;
}

/* Адаптивность */
@media (max-width: 768px) {
    .carousel-track {
        height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ===== КАСТОМНЫЙ СКРОЛЛБАР ===== */

/* Для Chrome, Safari, Edge */
::-webkit-scrollbar {
    width: 12px; /* Ширина скроллбара */
    height: 12px; /* Высота горизонтального скроллбара */
}

/* Дорожка (фон) скроллбара */
::-webkit-scrollbar-track {
    background: #1a1a1a; /* Темный фон */
    border-radius: 10px;
}

/* Ползунок (бегунок) */
::-webkit-scrollbar-thumb {
    background: #3498db; /* Синий цвет */
    border-radius: 10px;
    border: 2px solid #1a1a1a; /* Обводка*/
}

/* Ползунок при наведении */
::-webkit-scrollbar-thumb:hover {
    background: #2980b9; /* Темнее синий */
}

/* Ползунок при нажатии */
::-webkit-scrollbar-thumb:active {
    background: #1c5d87;
}

/* Для Firefox */
* {
    scrollbar-width: thin; /* "auto" или "thin" */
    scrollbar-color: #3498db #1a1a1a; /* ползунок и дорожка */
}

/* ===== СТИЛИ ДЛЯ СОДЕРЖАНИЯ С ЯКОРЯМИ ===== */
.content-list {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
}

.content-item {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}


.content-item.sub-item {
    padding-left: 40px;
    font-size: 0.95em;
}

.content-item a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 4px 0;
}

.content-item a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Якоря для навигации */
h2, h3 {
    position: relative;
    padding-top: 60px; /* Отступ для фиксированного хедера */
    margin-top: -40px;
}

/* Для плавной прокрутки */
html {
    scroll-behavior: smooth;
}

/* ===== СТИЛИ ДЛЯ ВИДЕО ===== */
.video-container {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
}

.video-container h3 {
    color: #f1c40f;
    margin-bottom: 20px;
    font-size: 1.5em;
}

video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid #3498db;
    background: #000;
    display: block;
    margin: 0 auto;
}


video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
    color: white;
}

.video-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(15, 18, 20, 0.7);
    border-radius: 8px;
    text-align: left;
    border-left: 4px solid #3498db;
}

.video-info p {
    color: #bdc3c7;
    margin: 8px 0;
    font-size: 0.95em;
}

.video-info strong {
    color: #f1c40f;
}
.text-container.compact {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
}

/* ===== СТИЛИ ТОЛЬКО ДЛЯ БЛОКА СОДЕРЖАНИЯ ===== */
.content-index {
    text-align: left;
    margin: 30px 0;
    padding: 0;
    width: 100%;
}

.content-index h1 {
    text-align: left;
    color: white;
    margin: 20px 0 15px 0;
    font-size: 2em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    text-align: left !important;
}

.content-index .new-content-list {
    text-align: left;
    padding-left: 0;
    margin-left: 0;
    list-style: none;
}

.content-index .new-content-item {
    margin-bottom: 8px;
    line-height: 1.5;
    text-align: left;
}

.content-index .new-content-item a {
    color: white !important; /* Белый цвет текста */
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 2px 0;
}

.content-index .new-content-item a:hover {
    color: #3498db !important; /* Синий при наведении */
    text-decoration: underline;
}

.content-index .new-sub-item {
    padding-left: 30px;
    font-size: 0.95em;
}

/* ===== СТИЛИ ТОЛЬКО ДЛЯ СПИСКА ИСТОЧНИКОВ ===== */
.sources-index {
    text-align: left;
    margin: 30px 0;
    padding: 0;
    width: 100%;
}

/* ЗАГОЛОВОК - ПО ЦЕНТРУ */
.sources-index h2 {
    text-align: center !important; /* Центрируем заголовок */
    color: white;
    margin: 30px 0 20px 0;
    font-size: 1.8em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}


.sources-index ol {
    text-align: left;
    padding-left: 40px;
    margin-left: 0;
}

.sources-index li {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: left;
    color: white;
}

.sources-index li a {
    color: #3498db !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sources-index li a:hover {
    color: #3d2bbe !important;
    text-decoration: underline;
}

/* ===== СТИЛИ ДЛЯ СПИСКОВ В ТЕКСТЕ ===== */
.numbered-list {
    text-align: left;
    margin: 20px 0 20px 40px;
    padding-left: 0;
    color: white;
    list-style-type: decimal;
}

.numbered-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: left;
    padding-left: 10px;
}

.numbered-list li strong {
    color: #ffffff;
}

.marked-list {
    text-align: left;
    margin: 20px 0 20px 40px;
    padding-left: 0;
    color: white;
    list-style-type: disc;
}

.marked-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: left;
    padding-left: 10px;
}

.marked-list li strong {
    color: #ffffff;
}

/* Для вложенных списков */
.marked-list ul,
.numbered-list ol {
    margin: 10px 0 10px 20px;
    padding-left: 20px;
}