@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Playfair+Display+SC:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');

/* #region Header */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    color: #fff;
    font-size: 20px;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.logo {
    display: inline-block;
    height: 70px;
    width: auto;
    z-index: 1; /* Чтобы логотип был поверх фона */
}

.wrapper {
    background: rgba(24, 24, 24, 1);
    width: 100%;
    min-height: 100vh; /* Чтобы был контент для скролла */
}

.container {
    width: 80%;
    margin: 0 auto;

    /* Планшет */
    @media (max-width: 1024px) {
        width: 92%;
        margin: 0 auto;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        width: 92%;
        margin: 0 auto;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        width: 92%;
        margin: 0 auto;
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center; /* Центрируем контейнер по горизонтали */
    align-items: center; /* Центрируем по вертикали */
}

.container12 {
    display: flex;
    width: 90%; /* или 80%, как было раньше */
    align-items: center;
    justify-content: space-between;
}

/* Стили для фона header */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Белый фон с 10% прозрачностью */
    background: rgba(70, 70, 70, 0.1);
    
    /* Размытие фона */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    
    /* Внутренние тени */
    box-shadow: 
        /* Первая внутренняя тень */
        inset 1.5px 1.5px 5px rgba(255, 255, 255, 0.15),
        /* Вторая внутренняя тень */
        inset -1.5px -1.5px 5px rgba(255, 255, 255, 0.15),
        /* Внешняя тень с spread */
        0 0 0 -6px rgba(0, 0, 0, 0.15);
    
    z-index: -1; /* Помещаем фон под контент */
}


header nav {
    float: right;
    width: 80%;
    z-index: 1; /* Чтобы навигация была поверх фона */
} 

header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
}
header nav ul li {
    display: inline-block;
}

header nav ul li a{
    color: white;
}

header nav ul li:not(.btn) {
    position: relative;
    padding-bottom: 0px;
}

header nav ul li:not(.btn) a {
    position: relative;
    z-index: 1;
}


header nav ul li:not(.btn) a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

header nav ul li:not(.btn) a:hover::after {
    width: 100%;
}

header nav ul li.btn a{
    background: #D9D9D9;
    padding: 12px 30px ;
    border-radius: 5px;
    transition: 300ms ease;
    color: #0D0D0D;
    font-weight: 600;
    border: 1px solid transparent;
}

header nav ul li.btn a:hover{
    background: #1B1B1B;
    color: #D9D9D9; 
    border: 1px solid #FFFFFF;
}

/* #endregion */

/* #region Main */

.section-title {
    font-family: "Playfair Display SC", sans-serif;
    font-size: 64px; /* Десктоп */
    font-weight: 400;
    color: #fff;
    margin-bottom: 40px;
    padding-top: 60px;
    
    /* Планшет */
    @media (max-width: 1024px) {
        font-size: 48px; /* Например, 48px для планшета */
        padding-top: 50px;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        font-size: 36px; /* 36px из Figma */
        margin-bottom: 10px;
        padding-top: 40px;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        font-size: 32px;
        padding-top: 30px;
    }
}

.section-text {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 40px; 

    /* Планшет */
    @media (max-width: 1024px) {
        font-size: 16px; /* Например, 48px для планшета */
        padding-top: 50px;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        font-size: 14px;
        margin-bottom: 30px;
        padding-top: 10px;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        font-size: 12px;
        padding-top: 30px;
    }
}
/* #endregion */

/* #region Hero */

.hero {
    position: relative;
    min-height: 800px; 
    padding: 30px 0;
    overflow: hidden;
    
    /* Добавляем радиальный градиент поверх фона */
    background: 
        radial-gradient(
            circle at center,
            #252525 0%,      /* Внешний цвет (более светлый) */
            #181818 100%     /* Внутренний цвет (более темный) */
        );
}

.hero-content {
    position: relative;
    height: 100%;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/Rectangle\ 31.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero--info{
    padding-top: 120px;
    text-align: center;
}

.hero--info h1{
    font-family: "Playfair Display SC", sans-serif;
    font-size: 128px;
    font-weight: 400;
    color: #fff;
    text-align: center;
}

.hero--info h2{
    font-family: "Playfair Display SC", sans-serif;
    font-size: 64px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

.hero--info h3{
    font-family: "Manrope", sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: #fff;
    text-align: center;
}

.hero--info2{
    text-align: center;
    margin-top: 140px;
    margin-bottom: 50px;
}

.hero--info2 h1{
    color: #D9D9D9;
    font-size: 28px;
    font-weight: 400;
}

.hero--info2 h2{
    color: #D9D9D9;
    font-size: 70px;
    font-weight: 600;
    letter-spacing: 0.07em;
}
/* #endregion */

/* #region Description */

.description h2{
    margin-bottom: 0px;
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
}

.description h2 p:last-child {
    margin-bottom: 0;
}

.description p {
    margin-bottom: 20px;
}

.description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {

.description h2{
    margin-bottom: 0px;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
}

}

/* #endregion */

/* #region Candidates */

/* Стили для секции кандидатов */
.candidates-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 180px; 
    margin-top: 0px;
}

.candidate-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 5px 0 rgba(0, 0, 0, 0.25);
    width: 22%;
    aspect-ratio: 390 / 590; 
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.candidate-photo {
    background-color: #0D0D0D;
    position: relative;
    aspect-ratio: 390 / 590; /* Соотношение оригинального дизайна */
    overflow: hidden;
}

.candidate-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.candidate-card:hover .candidate-photo img {
    transform: scale(1.05);
}

.candidates-title h2 {
    font-family: "Playfair Display SC", sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.results-title-candidates {
    text-align: left;
    font-family: "Playfair Display SC", sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 20px;
    letter-spacing: 2px;

    /* Планшет */
    @media (max-width: 1024px) {
        font-size: 26px;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        font-size: 26px;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        font-size: 22px;
    }
}

/* Информация о кандидате */
.candidate-info {
    padding: 10px ;
}

.candidate-name {
    font-family: "Playfair Display SC", sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #D9D9D9;
    margin-bottom: 1px;
    text-transform: uppercase;
}

.candidate-role {
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    color: #D9D9D9;
    margin-bottom: -2px;
}

.candidate-faculty {
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    color: #949494;
    margin-bottom: 10px;
}

/* Кнопка выбора кандидата */
.vote-btn {
    width: 100%;
    padding: 6px 20px;
    background: #D9D9D9;
    color: #0D0D0D;
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; 
}

.vote-btn:hover {
    background: #1B1B1B;
    color: #D9D9D9;
    border: 1px solid #FFFFFF;
}

/* КАНДИДАТ ВЫБРАН */
.vote-btn.selected {
    background: #1B1B1B;
    color: #D9D9D9;
    border: 1px solid #FFFFFF;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

.vote-final-btn {
    text-align: center;
    margin-top: 40px;
}

.vote-final-btn .btn {
    padding: 8px 100px;
    font-family: "Manrope", sans-serif;
    font-size: 32px;
    font-weight: 600;
    background: #D9D9D9;
    color: #0D0D0D;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;

    /* Планшет */
    @media (max-width: 1024px) {
        padding: 4px 100px;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        padding: 4px 100px;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        padding: 4px 100px;
    }
}

.vote-final-btn .btn:hover {
    background: #1B1B1B;
    color: #D9D9D9; 
    border: 1px solid #FFFFFF;
}
/* #endregion */

/* #region Timeline*/
.timeline {
    position: relative;
}

.timeline.container123 {
    position: relative;
    padding-left: 22px; /* Отступ для вертикальной линии */
}

.timeline-item {
    position: relative;
    padding: 15px 30px 1px;
    margin-bottom: 0;
    border-bottom: 1px solid #C8C8C8;

    /* Планшет */
    @media (max-width: 1024px) {
        padding-left: 20px;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        padding-left: 20px;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        padding-left: 20px;
    }
}

.timeline-item.dark-bg {
    background-color: #282828;

    /* Планшет */
    @media (max-width: 1024px) {
        background-color: transparent;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        background-color: transparent;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        background-color: transparent;
    }
}

.timeline-item:last-child {
    border-bottom: none;
}

/* Вертикальная линия слева */
.timeline.container123::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #C8C8C8;
}

/* Круги на вертикальной линии */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -19px; /* С учетом padding-left контейнера */
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #C8C8C8;
    background-color: #181818;
    z-index: 1;

    /* Планшет */
    @media (max-width: 1024px) {
        font-size: 12px; /* Например, 48px для планшета */
        padding-top: 12px;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        width: 16px;
        height: 6px;
        left: -11px; /* С учетом padding-left контейнера */
        transform: translateY(-0%);
        top: 25%;

    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        font-size: 5px;
        padding-top: 5px;
    }
}

.timeline h2 {
    font-family: "Playfair Display SC", sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: #fff;
    margin-top: 0;
    margin-bottom: 10px;

    /* Планшет */
    @media (max-width: 1024px) {
        font-size: 12px; /* Например, 48px для планшета */
        padding-top: 12px;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        font-size: 20px; /* 36px из Figma */
        margin-bottom: 5px;
        padding-top: 5px;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        font-size: 5px;
        padding-top: 5px;
    }
}

/* #endregion */

/* #region Statistics */

.stats-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 8px 5px 0 rgba(0, 0, 0, 0.25);
    margin-bottom: 30px;

   /* Планшет */
    @media (max-width: 1024px) {
        padding: 10px 0;
        margin-bottom: 0px;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        padding: 10px 0;
        margin-bottom: 0px;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        padding: 10px 0;
        margin-bottom: 0px;
    }
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.stat-divider {
    width: 2px;
    height: 160px;
    background: rgba(255, 255, 255, 0.2);

    /* Планшет */
    @media (max-width: 1024px) {
        width: 1px;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        width: 1px;
        height: 30px;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        width: 1px;
    }
}

.stat-label {
    font-family: "Manrope", sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: #F6F6F6;
    margin-bottom: 15px;

    /* Планшет */
    @media (max-width: 1024px) {
        font-size: 18px;
        color: #929292;
        margin-bottom: 5px;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        font-size: 10px;
        color: #929292;
        margin-bottom: 5px;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        font-size: 8px;
        color: #929292;
        margin-bottom: 5px;
    }
}

.stat-value {
    font-family: "Manrope", sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;

    /* Планшет */
    @media (max-width: 1024px) {
        font-size: 22px;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        font-size: 14px;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        font-size: 12px;
    }
}






.voting-results {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.05); /* Фон прямоугольника */
}

.results-title {
    text-align: left;
    font-family: "Playfair Display SC", sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
    margin-top: 20px;

    /* Планшет */
    @media (max-width: 1024px) {
        font-size: 22px;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        font-size: 18px;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        font-size: 14px;
    }
}

.histogram {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Выравниваем по нижнему краю */
    height: 400px; /* Высота гистограммы */
    gap: 70px; /* Расстояние между столбцами */
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;

    /* Планшет */
    @media (max-width: 1024px) {
        height: 250px
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        height: 250px
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        height: 250px
    }
}

.histogram-container {
    background: #252525; /* Фон для гистограммы */
    padding: 40px ;
    box-shadow: 0 8px 5px 0 rgba(0, 0, 0, 0.25);
    margin-bottom: 30px;

    /* Планшет */
    @media (max-width: 1024px) {
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        padding: 20px 40px 80px;
        margin-bottom: 10px;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
    }
}

.histogram-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 320px; /* Ширина между столбца */
    height: 95%; /* Занимает всю высоту */
    position: relative;

    /* Планшет */
    @media (max-width: 1024px) {
        width: 5px;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        width: 5px;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        width: 5px;
    }
}

.column-value {
    width: 160px; /* Ширина цветного столбца */
    background: linear-gradient(to top, #575757, #bdbdbd, #575757); /* Градиент столбца */
    display: flex;
    align-items:  flex-end; /* Меняем на flex-end */
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex-grow: 1; /* Занимает доступную высоту */
    position: relative; /* Добавляем relative для позиционирования цифры внутри */

    /* Планшет */
    @media (max-width: 1024px) {

    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        width: 40px;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {

    }
}

/* Высота каждого столбца будет устанавливаться через JS */
/* Можно задать минимальную высоту для маленьких значений */
.column-value {
    min-height: 40px; /* Минимальная высота для маленьких значений */
}

.column-number {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    position: absolute;
    bottom: 100%; /* Позиционируем снизу от столбца */
    left: 0;
    right: 0;
    text-align: center;
    margin-bottom: 10px; /* Отступ от верха столбца */
    z-index: 10;
    pointer-events: none; /* Чтобы не мешало кликам */

    /* Планшет */
    @media (max-width: 1024px) {
        font-size: 12px;
    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        font-size: 10px;
        /* Ключевое исправление - центрирование относительно нового размера столбца */
        left: 50%;
        right: auto;
        transform: translateX(-50%); /* Центрируем по горизонтали */
        bottom: calc(100% + 5px); /* Отступ сверху столбца */
        margin-bottom: 0;
        width: auto;
        white-space: nowrap;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        font-size: 10px;
    }
}

.column-label {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 600; /* Жирный по ТЗ */
    color: #FFFFFF;
    margin-top: 15px;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap; /* Запрещаем перенос строк */
    display: flex;
    align-items: center;

    /* Планшет */
    @media (max-width: 1024px) {
        font-size: 12px;
        font-weight: 400;

    }
    
    /* Мобильные */
    @media (max-width: 768px) {
        font-size: 12px;
        font-weight: 400;
        
        /* Убираем запрет переносов */
        white-space: normal;
        word-break: break-word;
        
        /* Поворот текста */
        transform: rotate(-50.77deg);
        transform-origin: center center;
        
        /* Позиционирование */
        position: absolute;
        bottom: -55px; /* Увеличиваем отступ для повернутого текста */
        left: 50%;
        transform: translateX(-63%) rotate(-50.77deg);
        
        /* Размеры для переноса */
        width: 70px; /* Фиксированная ширина для контроля переносов */
        text-align: center;
        line-height: 1.2;
        
        /* Выравнивание по центру после поворота */
        display: inline-block;
        margin-top: 0;
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        font-size: 12px;
        font-weight: 400;

    }
}

/* Эффект при наведении */
.histogram-column:hover .column-value {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to top, #333333, #bdbdbd, #333333);
}


/* #endregion */

/* #region Organaizers */

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 41px 53px; /* Горизонтальные: 44px, Вертикальные: 53px */
    margin-top: 40px;
}

.team-card {
    background:#303030;
    overflow: hidden; /* Для clip content */
    width: 48%;
    aspect-ratio: 705 / 250;
    display: flex;
    flex-direction: row; /* Меняем с column на row */
    align-items: stretch; /* Растягиваем по высоте */
    justify-content: flex-start; /* Выравниваем по левому краю */
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 5px 0 rgba(0, 0, 0, 0.25);    
}



.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.team-photo {
    background-color: #0D0D0D;
    position: relative;
    aspect-ratio: 167/250; /* Убираем aspect-ratio: 1 */
    overflow: hidden;
    flex-shrink: 0; /* Запрещаем уменьшение */

    
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняем контейнер с обрезкой */
    transition: transform 0.3s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

/* Информация о члене команды */
.team-info {
    padding: 30px 24px; /* Добавляем отступы слева/справа */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Занимает оставшееся пространство */
    width: auto; /* Убираем width: 100% */
}

.team-name {
    font-family: "Playfair Display SC", sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.3;

    @media (max-width: 768px) {
        font-size: 15px; /* Уменьшаем размер имени */
        margin-bottom: 8px;
    }
}

.team-role {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    color: #DFDFDF;
    line-height: 1.5;

    @media (max-width: 768px) {
        font-size: 10px; /* Уменьшаем размер описания */
        line-height: 1.4;
    }

}

/* Планшет */
    @media (max-width: 1024px) {
    .team-card {
        width: 100%; /* 1 в ряд на планшете */
        aspect-ratio: auto; /* Сбрасываем фиксированное соотношение */
        min-height: 250px; /* Минимальная высота */
    }
}

/* Мобильные - ДВЕ КАРТОЧКИ В СТРОКУ */
@media (max-width: 768px) {
    .team-grid {
        gap: 10px; /* Уменьшаем отступы между карточками */
        margin-top: 20px;
    }
    
    .team-card {
        width: calc(50% - 8px); /* 2 карточки в строку с небольшим отступом */
        flex-direction: column; /* Вертикальное расположение */
        aspect-ratio: auto; /* Убираем фиксированное соотношение */
        min-height: auto;
        margin: 0; /* Убираем auto центрирование */
        max-width: none; /* Убираем ограничение по ширине */
    }
    
    .team-photo {
        aspect-ratio: 160 / 205; /* Сохраняем соотношение из дизайна */
        width: 100%;
        height: auto; /* Автоматическая высота */
    }
    
    .team-info {
        padding: 8px 8px; /* Уменьшаем отступы */
        width: 100%;
        text-align: left;
    }
    
    .team-name {
        font-size: 15px;
        margin-bottom: 5px;
        line-height: 1.2;
    }
}

    /* Очень маленькие экраны */
    @media (max-width: 375px) {

    }
/* #endregion */

/* #region Sponsors */

.sponsors {
    padding-bottom: 64px; /* ТОЛЬКО 60px сверху и снизу */
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 41px 53px; /* Горизонтальные: 44px, Вертикальные: 53px */
    margin-top: 40px;
}

.sponsor-card {
    background:#202020;
    overflow: hidden; /* Для clip content */
    width: 44%;
    aspect-ratio: 705 / 250; /* Соотношение сторон 705:250 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 5px 0 rgba(0, 0, 0, 0.25);
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.sponsor-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Clip content */
}

.sponsor-logo {
    height: 140px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sponsor-logo-2 {
    height: 100px;
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sponsor-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* Если хотите сохранить оригинальные цвета логотипов */
.sponsor-logo img.colored {
    filter: none;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .sponsors {
        padding: 00px 0 20px;
    }
    
    .sponsors-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }
    
    .sponsor-card {
        padding: 10px;
        min-height: 100px;
        width: 180px;
    }
    
    .sponsor-logo {
        height: 60px;
    }
    
    .sponsor-name h3 {
        font-size: 18px;
    }
}
/* #endregion */

/* #region Footer */


.footer {
    background: #121212;
    padding: 50px 0 20px 0;
}

.footer-content {
    position: relative;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две равные колонки */
    gap: 60px;
    margin-bottom: 60px;
}

/* Выравнивание для десктопа */
.footer-column:first-child {
    /* Быстрые ссылки - слева, текст по левому краю */
    text-align: left;
}

.footer-column:last-child {
    /* Другое - колонка справа, но текст внутри по левому краю */
    text-align: left;
    margin-left: auto;
}

.footer-title {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 20px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #D9D9D9;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Копирайт */
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #949494;
    margin: 0;
    /* Добавляем небольшой отступ для лучшего визуального выравнивания */
    padding-top: 2px;
}

/* Логотип в футере - ИСПРАВЛЕНО выравнивание */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

/* Адаптивность футера */
@media (max-width: 1024px) {
    .footer-columns {
        gap: 40px;
    }
    
    /* На планшетах - оставляем как на десктопе */
    .footer-column:first-child,
    .footer-column:last-child {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0 20px 0;
    }
    
    .footer-columns {
        grid-template-columns: 1fr 1fr; /* Две равные колонки */
        gap: 30px;
        margin-bottom: 30px;
    }
    
    
    .footer-title {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .footer-links li {
        margin-bottom: 2px;
    }

    .footer-logo-img {
        height: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .copyright {
        font-size: 12px;
        text-align: center;
    }
    
    .footer-logo {
        margin-top: 0;
        text-align: center;
    }
}
/* #endregion */

/* #region Vote Popup */
.vote-popup {
    /* 
    display: block !important;
    position: fixed;
     */
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Добавляем отступы для мобильных */
    box-sizing: border-box;
}

.vote-popup.active {
    display: flex;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1B1B1B;
    border-radius: 10px;
    padding: 50px 40px 40px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}

/* Убираем скроллбар на Webkit браузерах */
.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-header {
    text-align: center;
    margin-bottom: 20px;
}

.popup-title {
    font-family: "Playfair Display SC", sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.popup-subtitle {
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #D9D9D9;
    line-height: 1.5;
}

/* Карточки кандидатов как в основном блоке */
.popup-candidates-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    justify-content: center;
}

.popup-candidate-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    width: 280px;
    box-shadow: 0 8px 5px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    aspect-ratio: 390 / 590; 
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
}

.popup-candidate-card:hover {
    transform: translateY(-5px);
}

.popup-candidate-photo {
    background-color: #0D0D0D;
    overflow: hidden;
    aspect-ratio: 390 / 590;
}

.popup-candidate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popup-candidate-card:hover .popup-candidate-photo img {
    transform: scale(1.05);
}

.popup-candidate-info {
    padding: 10px;
}

.popup-candidate-name {
    font-family: "Playfair Display SC", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #D9D9D9;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.popup-candidate-fullname {
    font-family: "Playfair Display SC", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.popup-candidate-role {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    color: #D9D9D9;
    margin-bottom: 5px;
}

.popup-candidate-faculty {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    color: #949494;
    margin-bottom: 0;
}

/* Сообщение о согласии */
.popup-agreement {
    text-align: center;
    margin-bottom: 20px;
    padding: 0px;
}

.popup-agreement p {
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #D9D9D9;
    margin: 0;
}

.popup-agreement strong {
    font-weight: 600;
    color: #FFFFFF;
}

/* Кнопки в одну строку */
.popup-actions-row {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.popup-btn-telegram {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D9D9D9;
    color: #000000;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
    box-shadow: 0 8px 5px 0 rgba(0, 0, 0, 0.25);
}

.popup-btn-telegram:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    color: #D9D9D9;
}

.popup-btn-cancel {
    flex: 1;
    background: transparent;
    color: #D9D9D9;
    padding: 10px 10px;
    border-radius: 5px;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 5px 0 rgba(0, 0, 0, 0.25);
}

.popup-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #D9D9D9;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.agreement-link {
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .popup-content {
        padding: 40px 20px 30px;
        width: 95%;
        margin: 20px;
    }
    
    .popup-candidates-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .popup-candidate-card {
        width: 100%;
        max-width: 280px;
    }
    
    .popup-actions-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .popup-title {
        font-size: 28px;
    }
    
    .popup-subtitle {
        font-size: 16px;
    }
}
/* #endregion */